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

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

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 #include "net/quic/core/congestion_control/tcp_cubic_sender_base.h" 5 #include "net/quic/core/congestion_control/tcp_cubic_sender_base.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "net/quic/core/congestion_control/prr_sender.h" 9 #include "net/quic/core/congestion_control/prr_sender.h"
10 #include "net/quic/core/congestion_control/rtt_stats.h" 10 #include "net/quic/core/congestion_control/rtt_stats.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 prr_.OnPacketSent(bytes); 181 prr_.OnPacketSent(bytes);
182 } 182 }
183 DCHECK_LT(largest_sent_packet_number_, packet_number); 183 DCHECK_LT(largest_sent_packet_number_, packet_number);
184 largest_sent_packet_number_ = packet_number; 184 largest_sent_packet_number_ = packet_number;
185 hybrid_slow_start_.OnPacketSent(packet_number); 185 hybrid_slow_start_.OnPacketSent(packet_number);
186 return true; 186 return true;
187 } 187 }
188 188
189 QuicTime::Delta TcpCubicSenderBase::TimeUntilSend( 189 QuicTime::Delta TcpCubicSenderBase::TimeUntilSend(
190 QuicTime /* now */, 190 QuicTime /* now */,
191 QuicByteCount bytes_in_flight) const { 191 QuicByteCount bytes_in_flight) {
192 if (!no_prr_ && InRecovery()) { 192 if (!no_prr_ && InRecovery()) {
193 // PRR is used when in recovery. 193 // PRR is used when in recovery.
194 return prr_.TimeUntilSend(GetCongestionWindow(), bytes_in_flight, 194 return prr_.TimeUntilSend(GetCongestionWindow(), bytes_in_flight,
195 GetSlowStartThreshold()); 195 GetSlowStartThreshold());
196 } 196 }
197 if (GetCongestionWindow() > bytes_in_flight) { 197 if (GetCongestionWindow() > bytes_in_flight) {
198 return QuicTime::Delta::Zero(); 198 return QuicTime::Delta::Zero();
199 } 199 }
200 if (min4_mode_ && bytes_in_flight < 4 * kDefaultTCPMSS) { 200 if (min4_mode_ && bytes_in_flight < 4 * kDefaultTCPMSS) {
201 return QuicTime::Delta::Zero(); 201 return QuicTime::Delta::Zero();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 last_cutback_exited_slowstart_ = false; 273 last_cutback_exited_slowstart_ = false;
274 } 274 }
275 275
276 std::string TcpCubicSenderBase::GetDebugState() const { 276 std::string TcpCubicSenderBase::GetDebugState() const {
277 return ""; 277 return "";
278 } 278 }
279 279
280 void TcpCubicSenderBase::OnApplicationLimited(QuicByteCount bytes_in_flight) {} 280 void TcpCubicSenderBase::OnApplicationLimited(QuicByteCount bytes_in_flight) {}
281 281
282 } // namespace net 282 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/tcp_cubic_sender_base.h ('k') | net/quic/core/quic_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698