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 TCP cubic. |
6 // TCP cubic. | |
7 | 6 |
8 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
9 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
13 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
14 #include "net/quic/congestion_control/cubic.h" | 13 #include "net/quic/congestion_control/cubic.h" |
15 #include "net/quic/congestion_control/hybrid_slow_start.h" | 14 #include "net/quic/congestion_control/hybrid_slow_start.h" |
16 #include "net/quic/congestion_control/prr_sender.h" | 15 #include "net/quic/congestion_control/prr_sender.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 106 |
108 // Track the largest packet that has been acked. | 107 // Track the largest packet that has been acked. |
109 QuicPacketSequenceNumber largest_acked_sequence_number_; | 108 QuicPacketSequenceNumber largest_acked_sequence_number_; |
110 | 109 |
111 // Track the largest sequence number outstanding when a CWND cutback occurs. | 110 // Track the largest sequence number outstanding when a CWND cutback occurs. |
112 QuicPacketSequenceNumber largest_sent_at_last_cutback_; | 111 QuicPacketSequenceNumber largest_sent_at_last_cutback_; |
113 | 112 |
114 // Congestion window in packets. | 113 // Congestion window in packets. |
115 QuicPacketCount congestion_window_; | 114 QuicPacketCount congestion_window_; |
116 | 115 |
| 116 // Minimum congestion window in packets. |
| 117 QuicPacketCount min_congestion_window_; |
| 118 |
117 // Slow start congestion window in packets, aka ssthresh. | 119 // Slow start congestion window in packets, aka ssthresh. |
118 QuicPacketCount slowstart_threshold_; | 120 QuicPacketCount slowstart_threshold_; |
119 | 121 |
120 // Whether the last loss event caused us to exit slowstart. | 122 // Whether the last loss event caused us to exit slowstart. |
121 // Used for stats collection of slowstart_packets_lost | 123 // Used for stats collection of slowstart_packets_lost |
122 bool last_cutback_exited_slowstart_; | 124 bool last_cutback_exited_slowstart_; |
123 | 125 |
124 const QuicClock* clock_; | 126 const QuicClock* clock_; |
125 | 127 |
126 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 128 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
127 }; | 129 }; |
128 | 130 |
129 } // namespace net | 131 } // namespace net |
130 | 132 |
131 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 133 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
OLD | NEW |