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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 // Track the largest packet that has been acked. | 108 // Track the largest packet that has been acked. |
109 QuicPacketSequenceNumber largest_acked_sequence_number_; | 109 QuicPacketSequenceNumber largest_acked_sequence_number_; |
110 | 110 |
111 // Track the largest sequence number outstanding when a CWND cutback occurs. | 111 // Track the largest sequence number outstanding when a CWND cutback occurs. |
112 QuicPacketSequenceNumber largest_sent_at_last_cutback_; | 112 QuicPacketSequenceNumber largest_sent_at_last_cutback_; |
113 | 113 |
114 // Congestion window in packets. | 114 // Congestion window in packets. |
115 QuicPacketCount congestion_window_; | 115 QuicPacketCount congestion_window_; |
116 | 116 |
| 117 // Minimum congestion window in packets. |
| 118 QuicPacketCount min_congestion_window_; |
| 119 |
117 // Slow start congestion window in packets, aka ssthresh. | 120 // Slow start congestion window in packets, aka ssthresh. |
118 QuicPacketCount slowstart_threshold_; | 121 QuicPacketCount slowstart_threshold_; |
119 | 122 |
120 // Whether the last loss event caused us to exit slowstart. | 123 // Whether the last loss event caused us to exit slowstart. |
121 // Used for stats collection of slowstart_packets_lost | 124 // Used for stats collection of slowstart_packets_lost |
122 bool last_cutback_exited_slowstart_; | 125 bool last_cutback_exited_slowstart_; |
123 | 126 |
124 const QuicClock* clock_; | 127 const QuicClock* clock_; |
125 | 128 |
126 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 129 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
127 }; | 130 }; |
128 | 131 |
129 } // namespace net | 132 } // namespace net |
130 | 133 |
131 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 134 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
OLD | NEW |