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

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

Issue 605163004: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0925
Patch Set: Created 6 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/congestion_control/cubic.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/cubic.h
diff --git a/net/quic/congestion_control/cubic.h b/net/quic/congestion_control/cubic.h
index da41ddf8ab2f16bf9ed11a00994750a2bca16167..d9f7bb68f1d897182d203402a061dfd41d224d93 100644
--- a/net/quic/congestion_control/cubic.h
+++ b/net/quic/congestion_control/cubic.h
@@ -23,6 +23,8 @@ class NET_EXPORT_PRIVATE Cubic {
public:
Cubic(const QuicClock* clock, QuicConnectionStats* stats);
+ void SetNumConnections(int num_connections);
+
// Call after a timeout to reset the cubic state.
void Reset();
@@ -45,11 +47,19 @@ class NET_EXPORT_PRIVATE Cubic {
return QuicTime::Delta::FromMilliseconds(30);
}
+ // Compute the TCP Cubic alpha and beta based on the current number of
+ // connections.
+ float Alpha() const;
+ float Beta() const;
+
// Update congestion control variables in QuicConnectionStats.
void UpdateCongestionControlStats(QuicTcpCongestionWindow new_cubic_mode_cwnd,
QuicTcpCongestionWindow new_reno_mode_cwnd);
const QuicClock* clock_;
+ // Number of connections to simulate.
+ int num_connections_;
+
// Time when this cycle started, after last loss event.
QuicTime epoch_;
« no previous file with comments | « no previous file | net/quic/congestion_control/cubic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698