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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 #include "net/quic/congestion_control/cubic.h" | 14 #include "net/quic/congestion_control/cubic.h" |
15 #include "net/quic/congestion_control/hybrid_slow_start.h" | 15 #include "net/quic/congestion_control/hybrid_slow_start.h" |
16 #include "net/quic/congestion_control/send_algorithm_interface.h" | 16 #include "net/quic/congestion_control/send_algorithm_interface.h" |
17 #include "net/quic/quic_bandwidth.h" | 17 #include "net/quic/quic_bandwidth.h" |
18 #include "net/quic/quic_connection_stats.h" | 18 #include "net/quic/quic_connection_stats.h" |
19 #include "net/quic/quic_protocol.h" | 19 #include "net/quic/quic_protocol.h" |
20 #include "net/quic/quic_time.h" | 20 #include "net/quic/quic_time.h" |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 | 23 |
24 // Default maximum packet size used in Linux TCP implementations. | |
25 const QuicByteCount kDefaultTCPMSS = 1460; | |
26 | |
27 class RttStats; | 24 class RttStats; |
28 | 25 |
29 namespace test { | 26 namespace test { |
30 class TcpCubicSenderPeer; | 27 class TcpCubicSenderPeer; |
31 } // namespace test | 28 } // namespace test |
32 | 29 |
33 class NET_EXPORT_PRIVATE TcpCubicSender : public SendAlgorithmInterface { | 30 class NET_EXPORT_PRIVATE TcpCubicSender : public SendAlgorithmInterface { |
34 public: | 31 public: |
35 // Reno option and max_tcp_congestion_window are provided for testing. | 32 // Reno option and max_tcp_congestion_window are provided for testing. |
36 TcpCubicSender(const QuicClock* clock, | 33 TcpCubicSender(const QuicClock* clock, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 127 |
131 // Maximum number of outstanding packets for tcp. | 128 // Maximum number of outstanding packets for tcp. |
132 QuicTcpCongestionWindow max_tcp_congestion_window_; | 129 QuicTcpCongestionWindow max_tcp_congestion_window_; |
133 | 130 |
134 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 131 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
135 }; | 132 }; |
136 | 133 |
137 } // namespace net | 134 } // namespace net |
138 | 135 |
139 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
OLD | NEW |