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

Unified Diff: net/quic/congestion_control/tcp_cubic_sender.cc

Issue 698713002: Change QUIC's Reno congestion controller to use a higher beta. Fixed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/congestion_control/tcp_cubic_sender_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/tcp_cubic_sender.cc
diff --git a/net/quic/congestion_control/tcp_cubic_sender.cc b/net/quic/congestion_control/tcp_cubic_sender.cc
index 9ea96aed5f5b171c0c6e60ecb4c9d02b76897f51..c55d6205ef0d71098fa26af46b3434e79f048b11 100644
--- a/net/quic/congestion_control/tcp_cubic_sender.cc
+++ b/net/quic/congestion_control/tcp_cubic_sender.cc
@@ -24,6 +24,7 @@ const QuicPacketCount kMinimumCongestionWindow = 2;
const QuicByteCount kMaxSegmentSize = kDefaultTCPMSS;
const int64 kInitialCongestionWindow = 10;
const int kMaxBurstLength = 3;
+const float kRenoBeta = 0.7f; // Reno backoff factor.
} // namespace
TcpCubicSender::TcpCubicSender(
@@ -133,7 +134,7 @@ void TcpCubicSender::OnPacketLost(QuicPacketSequenceNumber sequence_number,
prr_.OnPacketLost(bytes_in_flight);
if (reno_) {
- congestion_window_ = congestion_window_ >> 1;
+ congestion_window_ = congestion_window_ * kRenoBeta;
} else {
congestion_window_ =
cubic_.CongestionWindowAfterPacketLoss(congestion_window_);
« no previous file with comments | « no previous file | net/quic/congestion_control/tcp_cubic_sender_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698