| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 QuicTime last_update_time_; | 70 QuicTime last_update_time_; |
| 71 | 71 |
| 72 // Last congestion window (in packets) used. | 72 // Last congestion window (in packets) used. |
| 73 QuicPacketCount last_congestion_window_; | 73 QuicPacketCount last_congestion_window_; |
| 74 | 74 |
| 75 // Max congestion window (in packets) used just before last loss event. | 75 // Max congestion window (in packets) used just before last loss event. |
| 76 // Note: to improve fairness to other streams an additional back off is | 76 // Note: to improve fairness to other streams an additional back off is |
| 77 // applied to this value if the new value is below our latest value. | 77 // applied to this value if the new value is below our latest value. |
| 78 QuicPacketCount last_max_congestion_window_; | 78 QuicPacketCount last_max_congestion_window_; |
| 79 | 79 |
| 80 // Number of acked packets accumulated to increase the CWND via Reno |
| 81 // 'tcp friendly' mode. |
| 82 QuicPacketCount acked_packets_count_; |
| 83 |
| 80 // Number of acked packets since the cycle started (epoch). | 84 // Number of acked packets since the cycle started (epoch). |
| 81 QuicPacketCount acked_packets_count_; | 85 // Used to limit CWND increases to 1/2 the number of acked packets. |
| 86 QuicPacketCount epoch_packets_count_; |
| 82 | 87 |
| 83 // TCP Reno equivalent congestion window in packets. | 88 // TCP Reno equivalent congestion window in packets. |
| 84 QuicPacketCount estimated_tcp_congestion_window_; | 89 QuicPacketCount estimated_tcp_congestion_window_; |
| 85 | 90 |
| 86 // Origin point of cubic function. | 91 // Origin point of cubic function. |
| 87 QuicPacketCount origin_point_congestion_window_; | 92 QuicPacketCount origin_point_congestion_window_; |
| 88 | 93 |
| 89 // Time to origin point of cubic function in 2^10 fractions of a second. | 94 // Time to origin point of cubic function in 2^10 fractions of a second. |
| 90 uint32_t time_to_origin_point_; | 95 uint32_t time_to_origin_point_; |
| 91 | 96 |
| 92 // Last congestion window in packets computed by cubic function. | 97 // Last congestion window in packets computed by cubic function. |
| 93 QuicPacketCount last_target_congestion_window_; | 98 QuicPacketCount last_target_congestion_window_; |
| 94 | 99 |
| 95 DISALLOW_COPY_AND_ASSIGN(Cubic); | 100 DISALLOW_COPY_AND_ASSIGN(Cubic); |
| 96 }; | 101 }; |
| 97 | 102 |
| 98 } // namespace net | 103 } // namespace net |
| 99 | 104 |
| 100 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ | 105 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ |
| OLD | NEW |