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 // TCP cubic send side congestion algorithm, emulates the behavior of | 5 // TCP cubic send side congestion algorithm, emulates the behavior of |
6 // TCP cubic. | 6 // TCP cubic. |
7 | 7 |
8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 // Track the largest packet that has been acked. | 111 // Track the largest packet that has been acked. |
112 QuicPacketSequenceNumber largest_acked_sequence_number_; | 112 QuicPacketSequenceNumber largest_acked_sequence_number_; |
113 | 113 |
114 // Track the largest sequence number outstanding when a CWND cutback occurs. | 114 // Track the largest sequence number outstanding when a CWND cutback occurs. |
115 QuicPacketSequenceNumber largest_sent_at_last_cutback_; | 115 QuicPacketSequenceNumber largest_sent_at_last_cutback_; |
116 | 116 |
117 // Congestion window in packets. | 117 // Congestion window in packets. |
118 QuicPacketCount congestion_window_; | 118 QuicPacketCount congestion_window_; |
119 | 119 |
120 // Congestion window before the last loss event or RTO. | 120 // Congestion window before the last RTO. |
| 121 // Must be 0 before or after RTO recovery. |
121 QuicPacketCount previous_congestion_window_; | 122 QuicPacketCount previous_congestion_window_; |
122 | 123 |
123 // Slow start congestion window in packets, aka ssthresh. | 124 // Slow start congestion window in packets, aka ssthresh. |
124 QuicPacketCount slowstart_threshold_; | 125 QuicPacketCount slowstart_threshold_; |
125 | 126 |
126 // Slow start threshold before the last loss event or RTO. | 127 // Slow start threshold before the last loss event or RTO. |
127 QuicPacketCount previous_slowstart_threshold_; | 128 QuicPacketCount previous_slowstart_threshold_; |
128 | 129 |
129 // Whether the last loss event caused us to exit slowstart. | 130 // Whether the last loss event caused us to exit slowstart. |
130 // Used for stats collection of slowstart_packets_lost | 131 // Used for stats collection of slowstart_packets_lost |
131 bool last_cutback_exited_slowstart_; | 132 bool last_cutback_exited_slowstart_; |
132 | 133 |
133 // Maximum number of outstanding packets for tcp. | 134 // Maximum number of outstanding packets for tcp. |
134 QuicPacketCount max_tcp_congestion_window_; | 135 QuicPacketCount max_tcp_congestion_window_; |
135 | 136 |
136 const QuicClock* clock_; | 137 const QuicClock* clock_; |
137 | 138 |
138 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 139 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
139 }; | 140 }; |
140 | 141 |
141 } // namespace net | 142 } // namespace net |
142 | 143 |
143 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 144 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
OLD | NEW |