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_PACKETS_H_ | 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_ |
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_ | 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_PACKETS_H_ |
9 | 9 |
10 #include <stdint.h> | 10 #include <stdint.h> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 protected: | 52 protected: |
53 // TcpCubicSenderBase methods | 53 // TcpCubicSenderBase methods |
54 void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth, | 54 void SetCongestionWindowFromBandwidthAndRtt(QuicBandwidth bandwidth, |
55 QuicTime::Delta rtt) override; | 55 QuicTime::Delta rtt) override; |
56 void SetCongestionWindowInPackets(QuicPacketCount congestion_window) override; | 56 void SetCongestionWindowInPackets(QuicPacketCount congestion_window) override; |
57 void SetMinCongestionWindowInPackets( | 57 void SetMinCongestionWindowInPackets( |
58 QuicPacketCount congestion_window) override; | 58 QuicPacketCount congestion_window) override; |
59 void ExitSlowstart() override; | 59 void ExitSlowstart() override; |
60 void OnPacketLost(QuicPacketNumber largest_loss, | 60 void OnPacketLost(QuicPacketNumber largest_loss, |
| 61 QuicByteCount lost_bytes, |
61 QuicByteCount bytes_in_flight) override; | 62 QuicByteCount bytes_in_flight) override; |
62 void MaybeIncreaseCwnd(QuicPacketNumber acked_packet_number, | 63 void MaybeIncreaseCwnd(QuicPacketNumber acked_packet_number, |
63 QuicByteCount acked_bytes, | 64 QuicByteCount acked_bytes, |
64 QuicByteCount bytes_in_flight) override; | 65 QuicByteCount bytes_in_flight) override; |
65 void HandleRetransmissionTimeout() override; | 66 void HandleRetransmissionTimeout() override; |
66 | 67 |
67 private: | 68 private: |
68 friend class test::TcpCubicSenderPacketsPeer; | 69 friend class test::TcpCubicSenderPacketsPeer; |
69 | 70 |
70 Cubic cubic_; | 71 Cubic cubic_; |
(...skipping 20 matching lines...) Expand all Loading... |
91 // Initial maximum TCP congestion window. This variable can only be set when | 92 // Initial maximum TCP congestion window. This variable can only be set when |
92 // this algorithm is created. | 93 // this algorithm is created. |
93 const QuicPacketCount initial_max_tcp_congestion_window_; | 94 const QuicPacketCount initial_max_tcp_congestion_window_; |
94 | 95 |
95 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderPackets); | 96 DISALLOW_COPY_AND_ASSIGN(TcpCubicSenderPackets); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace net | 99 } // namespace net |
99 | 100 |
100 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 101 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
OLD | NEW |