Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: net/quic/core/congestion_control/tcp_cubic_sender_base.h

Issue 2833673006: Increases inflight limit for QUIC BBR if the ack rate in the past half-rtt was lower than half the… (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. 5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic.
6 6
7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ 7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_
8 #define NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ 8 #define NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_
9 9
10 #include <cstdint> 10 #include <cstdint>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 const CongestionVector& acked_packets, 55 const CongestionVector& acked_packets,
56 const CongestionVector& lost_packets) override; 56 const CongestionVector& lost_packets) override;
57 bool OnPacketSent(QuicTime sent_time, 57 bool OnPacketSent(QuicTime sent_time,
58 QuicByteCount bytes_in_flight, 58 QuicByteCount bytes_in_flight,
59 QuicPacketNumber packet_number, 59 QuicPacketNumber packet_number,
60 QuicByteCount bytes, 60 QuicByteCount bytes,
61 HasRetransmittableData is_retransmittable) override; 61 HasRetransmittableData is_retransmittable) override;
62 void OnRetransmissionTimeout(bool packets_retransmitted) override; 62 void OnRetransmissionTimeout(bool packets_retransmitted) override;
63 void OnConnectionMigration() override; 63 void OnConnectionMigration() override;
64 QuicTime::Delta TimeUntilSend(QuicTime now, 64 QuicTime::Delta TimeUntilSend(QuicTime now,
65 QuicByteCount bytes_in_flight) const override; 65 QuicByteCount bytes_in_flight) override;
66 QuicBandwidth PacingRate(QuicByteCount bytes_in_flight) const override; 66 QuicBandwidth PacingRate(QuicByteCount bytes_in_flight) const override;
67 QuicBandwidth BandwidthEstimate() const override; 67 QuicBandwidth BandwidthEstimate() const override;
68 bool InSlowStart() const override; 68 bool InSlowStart() const override;
69 bool InRecovery() const override; 69 bool InRecovery() const override;
70 std::string GetDebugState() const override; 70 std::string GetDebugState() const override;
71 void OnApplicationLimited(QuicByteCount bytes_in_flight) override; 71 void OnApplicationLimited(QuicByteCount bytes_in_flight) override;
72 72
73 protected: 73 protected:
74 // Called when resuming a previous bandwidth. 74 // Called when resuming a previous bandwidth.
75 virtual void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth, 75 virtual void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // When true, use unity pacing instead of PRR. 154 // When true, use unity pacing instead of PRR.
155 bool no_prr_; 155 bool no_prr_;
156 156
157 private: 157 private:
158 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderBase); 158 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderBase);
159 }; 159 };
160 160
161 } // namespace net 161 } // namespace net
162 162
163 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ 163 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/send_algorithm_interface.h ('k') | net/quic/core/congestion_control/tcp_cubic_sender_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698