OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONGESTION_CONTROL_CUBIC_H_ | 8 #ifndef NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ |
9 #define NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ | 9 #define NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Last congestion window (in packets) used. | 65 // Last congestion window (in packets) used. |
66 QuicPacketCount last_congestion_window_; | 66 QuicPacketCount last_congestion_window_; |
67 | 67 |
68 // Max congestion window (in packets) used just before last loss event. | 68 // Max congestion window (in packets) used just before last loss event. |
69 // Note: to improve fairness to other streams an additional back off is | 69 // Note: to improve fairness to other streams an additional back off is |
70 // applied to this value if the new value is below our latest value. | 70 // applied to this value if the new value is below our latest value. |
71 QuicPacketCount last_max_congestion_window_; | 71 QuicPacketCount last_max_congestion_window_; |
72 | 72 |
73 // Number of acked packets since the cycle started (epoch). | 73 // Number of acked packets since the cycle started (epoch). |
74 uint32 acked_packets_count_; | 74 QuicPacketCount acked_packets_count_; |
75 | 75 |
76 // TCP Reno equivalent congestion window in packets. | 76 // TCP Reno equivalent congestion window in packets. |
77 QuicPacketCount estimated_tcp_congestion_window_; | 77 QuicPacketCount estimated_tcp_congestion_window_; |
78 | 78 |
79 // Origin point of cubic function. | 79 // Origin point of cubic function. |
80 QuicPacketCount origin_point_congestion_window_; | 80 QuicPacketCount origin_point_congestion_window_; |
81 | 81 |
82 // Time to origin point of cubic function in 2^10 fractions of a second. | 82 // Time to origin point of cubic function in 2^10 fractions of a second. |
83 uint32 time_to_origin_point_; | 83 uint32 time_to_origin_point_; |
84 | 84 |
85 // Last congestion window in packets computed by cubic function. | 85 // Last congestion window in packets computed by cubic function. |
86 QuicPacketCount last_target_congestion_window_; | 86 QuicPacketCount last_target_congestion_window_; |
87 | 87 |
88 // QuicConnectionStats includes congestion control related stats. | 88 // QuicConnectionStats includes congestion control related stats. |
89 QuicConnectionStats* stats_; | 89 QuicConnectionStats* stats_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(Cubic); | 91 DISALLOW_COPY_AND_ASSIGN(Cubic); |
92 }; | 92 }; |
93 | 93 |
94 } // namespace net | 94 } // namespace net |
95 | 95 |
96 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ | 96 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ |
OLD | NEW |