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

Side by Side Diff: net/quic/core/congestion_control/cubic_bytes.h

Issue 2571643002: relnote: Use event_time instead of ApproximateNow() in QUIC cubic code. Protected by --quic_use_eve… (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Cubic algorithm, helper class to TCP cubic. 5 // Cubic algorithm, helper class to TCP cubic.
6 // For details see http://netsrv.csc.ncsu.edu/export/cubic_a_new_tcp_2008.pdf. 6 // For details see http://netsrv.csc.ncsu.edu/export/cubic_a_new_tcp_2008.pdf.
7 7
8 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_CUBIC_BYTES_H_ 8 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_CUBIC_BYTES_H_
9 #define NET_QUIC_CORE_CONGESTION_CONTROL_CUBIC_BYTES_H_ 9 #define NET_QUIC_CORE_CONGESTION_CONTROL_CUBIC_BYTES_H_
10 10
(...skipping 25 matching lines...) Expand all
36 // Returns the new congestion window in packets. The new congestion window is 36 // Returns the new congestion window in packets. The new congestion window is
37 // a multiplicative decrease of our current window. 37 // a multiplicative decrease of our current window.
38 QuicByteCount CongestionWindowAfterPacketLoss(QuicPacketCount current); 38 QuicByteCount CongestionWindowAfterPacketLoss(QuicPacketCount current);
39 39
40 // Compute a new congestion window to use after a received ACK. 40 // Compute a new congestion window to use after a received ACK.
41 // Returns the new congestion window in bytes. The new congestion window 41 // Returns the new congestion window in bytes. The new congestion window
42 // follows a cubic function that depends on the time passed since last packet 42 // follows a cubic function that depends on the time passed since last packet
43 // loss. 43 // loss.
44 QuicByteCount CongestionWindowAfterAck(QuicByteCount acked_bytes, 44 QuicByteCount CongestionWindowAfterAck(QuicByteCount acked_bytes,
45 QuicByteCount current, 45 QuicByteCount current,
46 QuicTime::Delta delay_min); 46 QuicTime::Delta delay_min,
47 QuicTime event_time);
47 48
48 // Call on ack arrival when sender is unable to use the available congestion 49 // Call on ack arrival when sender is unable to use the available congestion
49 // window. Resets Cubic state during quiescence. 50 // window. Resets Cubic state during quiescence.
50 void OnApplicationLimited(); 51 void OnApplicationLimited();
51 52
52 void SetFixConvexMode(bool fix_convex_mode); 53 void SetFixConvexMode(bool fix_convex_mode);
53 54
54 void SetFixCubicQuantization(bool fix_cubic_quantization); 55 void SetFixCubicQuantization(bool fix_cubic_quantization);
55 56
56 private: 57 private:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Fix for quantization in cubic mode. 107 // Fix for quantization in cubic mode.
107 // TODO(jokulik): Remove once the experiment is done. 108 // TODO(jokulik): Remove once the experiment is done.
108 bool fix_cubic_quantization_; 109 bool fix_cubic_quantization_;
109 110
110 DISALLOW_COPY_AND_ASSIGN(CubicBytes); 111 DISALLOW_COPY_AND_ASSIGN(CubicBytes);
111 }; 112 };
112 113
113 } // namespace net 114 } // namespace net
114 115
115 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_CUBIC_BYTES_H_ 116 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_CUBIC_BYTES_H_
OLDNEW
« no previous file with comments | « net/quic/core/congestion_control/cubic.cc ('k') | net/quic/core/congestion_control/cubic_bytes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698