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

Unified Diff: net/quic/core/congestion_control/bbr_sender.cc

Issue 2832003002: Remain in packet conservation mode if BBR is in PROBE_BW and not in high-gain mode. Protected by F… (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/quic/core/congestion_control/bbr_sender_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/congestion_control/bbr_sender.cc
diff --git a/net/quic/core/congestion_control/bbr_sender.cc b/net/quic/core/congestion_control/bbr_sender.cc
index 666a9d7f62997bfc452ec7bb7a972cf50139ed2d..4c025330cbad6ace2c3ff49afb79ab8d9ef02b22 100644
--- a/net/quic/core/congestion_control/bbr_sender.cc
+++ b/net/quic/core/congestion_control/bbr_sender.cc
@@ -515,6 +515,25 @@ void BbrSender::UpdateRecoveryState(QuicPacketNumber last_acked_packet,
// Exit recovery if appropriate.
if (!has_losses && last_acked_packet > end_recovery_at_) {
recovery_state_ = NOT_IN_RECOVERY;
+ return;
+ }
+
+ if (!FLAGS_quic_reloadable_flag_quic_bbr_extra_conservation) {
+ return;
+ }
+
+ // Use "single round in conservation" approach outside of PROBE_BW.
+ if (mode_ != PROBE_BW) {
+ return;
+ }
+
+ // Switch between conservation and growth depending on position in the
+ // gain cycle.
+ if (cycle_current_offset_ == 0 ||
+ cycle_current_offset_ == kGainCycleLength - 1) {
+ recovery_state_ = GROWTH;
+ } else {
+ recovery_state_ = CONSERVATION;
}
break;
}
« no previous file with comments | « no previous file | net/quic/core/congestion_control/bbr_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698