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 TCP cubic. | 5 // TCP cubic send side congestion algorithm, emulates the behavior of TCP cubic. |
6 | 6 |
7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ |
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
15 #include "net/quic/congestion_control/cubic.h" | 15 #include "net/quic/congestion_control/cubic.h" |
16 #include "net/quic/congestion_control/hybrid_slow_start.h" | 16 #include "net/quic/congestion_control/hybrid_slow_start.h" |
17 #include "net/quic/congestion_control/prr_sender.h" | 17 #include "net/quic/congestion_control/prr_sender.h" |
18 #include "net/quic/congestion_control/send_algorithm_interface.h" | 18 #include "net/quic/congestion_control/send_algorithm_interface.h" |
19 #include "net/quic/quic_bandwidth.h" | 19 #include "net/quic/quic_bandwidth.h" |
20 #include "net/quic/quic_connection_stats.h" | 20 #include "net/quic/quic_connection_stats.h" |
21 #include "net/quic/quic_protocol.h" | 21 #include "net/quic/quic_protocol.h" |
22 #include "net/quic/quic_time.h" | 22 #include "net/quic/quic_time.h" |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
26 class RttStats; | 26 class RttStats; |
27 | 27 |
| 28 // Maximum window to allow when doing bandwidth resumption. |
| 29 const QuicPacketCount kMaxResumptionCongestionWindow = 200; |
| 30 |
28 namespace test { | 31 namespace test { |
29 class TcpCubicSenderBasePeer; | 32 class TcpCubicSenderBasePeer; |
30 } // namespace test | 33 } // namespace test |
31 | 34 |
32 class NET_EXPORT_PRIVATE TcpCubicSenderBase : public SendAlgorithmInterface { | 35 class NET_EXPORT_PRIVATE TcpCubicSenderBase : public SendAlgorithmInterface { |
33 public: | 36 public: |
34 // Reno option and max_tcp_congestion_window are provided for testing. | 37 // Reno option and max_tcp_congestion_window are provided for testing. |
35 TcpCubicSenderBase(const QuicClock* clock, | 38 TcpCubicSenderBase(const QuicClock* clock, |
36 const RttStats* rtt_stats, | 39 const RttStats* rtt_stats, |
37 bool reno, | 40 bool reno, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // When true, exit slow start with large cutback of congestion window. | 143 // When true, exit slow start with large cutback of congestion window. |
141 bool slow_start_large_reduction_; | 144 bool slow_start_large_reduction_; |
142 | 145 |
143 private: | 146 private: |
144 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderBase); | 147 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderBase); |
145 }; | 148 }; |
146 | 149 |
147 } // namespace net | 150 } // namespace net |
148 | 151 |
149 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ | 152 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_BASE_H_ |
OLD | NEW |