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

Unified Diff: net/quic/core/congestion_control/cubic.h

Issue 2351963005: Limit QUIC's Cubic CWND increases to 1/2 the bytes acked when in (Closed)
Patch Set: Created 4 years, 3 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/cubic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/congestion_control/cubic.h
diff --git a/net/quic/core/congestion_control/cubic.h b/net/quic/core/congestion_control/cubic.h
index c9de98246ec08c13a02a082d38d928b5b12a0df2..30657e57c9d6b58d4e9943d6f733dd9399adbe2c 100644
--- a/net/quic/core/congestion_control/cubic.h
+++ b/net/quic/core/congestion_control/cubic.h
@@ -77,9 +77,14 @@ class NET_EXPORT_PRIVATE Cubic {
// applied to this value if the new value is below our latest value.
QuicPacketCount last_max_congestion_window_;
- // Number of acked packets since the cycle started (epoch).
+ // Number of acked packets accumulated to increase the CWND via Reno
+ // 'tcp friendly' mode.
QuicPacketCount acked_packets_count_;
+ // Number of acked packets since the cycle started (epoch).
+ // Used to limit CWND increases to 1/2 the number of acked packets.
+ QuicPacketCount epoch_packets_count_;
+
// TCP Reno equivalent congestion window in packets.
QuicPacketCount estimated_tcp_congestion_window_;
« no previous file with comments | « no previous file | net/quic/core/congestion_control/cubic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698