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

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

Issue 2825093002: Continue sending at the max bandwidth measured in the last two rounds for another SRTT. Protected … (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 623cfb78337ba35687af39a48cccec3a37ad2e64..d02ab68e1e2b4388d7506fa41465deab59ce56ad 100644
--- a/net/quic/core/congestion_control/bbr_sender.cc
+++ b/net/quic/core/congestion_control/bbr_sender.cc
@@ -145,11 +145,17 @@ QuicTime::Delta BbrSender::TimeUntilSend(QuicTime /* now */,
return QuicTime::Delta::Infinite();
}
-QuicBandwidth BbrSender::PacingRate(QuicByteCount /*bytes_in_flight*/) const {
+QuicBandwidth BbrSender::PacingRate(QuicByteCount bytes_in_flight) const {
if (pacing_rate_.IsZero()) {
return kHighGain * QuicBandwidth::FromBytesAndTimeDelta(
initial_congestion_window_, GetMinRtt());
}
+ if (FLAGS_quic_reloadable_flag_quic_bbr_keep_sending_at_recent_rate &&
+ mode_ == PROBE_BW && bytes_in_flight > congestion_window_) {
+ QUIC_FLAG_COUNT_N(quic_reloadable_flag_quic_bbr_keep_sending_at_recent_rate,
+ 1, 2);
+ return max_bandwidth_.GetThirdBest();
+ }
return pacing_rate_;
}
@@ -166,6 +172,15 @@ QuicByteCount BbrSender::GetCongestionWindow() const {
return std::min(congestion_window_, recovery_window_);
}
+ if (FLAGS_quic_reloadable_flag_quic_bbr_keep_sending_at_recent_rate &&
+ mode_ == PROBE_BW) {
+ QUIC_FLAG_COUNT_N(quic_reloadable_flag_quic_bbr_keep_sending_at_recent_rate,
+ 2, 2);
+ // Send for another SRTT at a more recently measured bandwidth.
+ return congestion_window_ +
+ max_bandwidth_.GetThirdBest() * rtt_stats_->smoothed_rtt();
+ }
+
return congestion_window_;
}
« 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