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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 QuicByteCount AvailableSendWindow(); | 73 QuicByteCount AvailableSendWindow(); |
74 QuicByteCount SendWindow(); | 74 QuicByteCount SendWindow(); |
75 void MaybeIncreaseCwnd(QuicPacketSequenceNumber acked_sequence_number); | 75 void MaybeIncreaseCwnd(QuicPacketSequenceNumber acked_sequence_number); |
76 bool IsCwndLimited() const; | 76 bool IsCwndLimited() const; |
77 bool InRecovery() const; | 77 bool InRecovery() const; |
78 // Methods for isolating PRR from the rest of TCP Cubic. | 78 // Methods for isolating PRR from the rest of TCP Cubic. |
79 void PrrOnPacketLost(); | 79 void PrrOnPacketLost(); |
80 void PrrOnPacketAcked(QuicByteCount acked_bytes); | 80 void PrrOnPacketAcked(QuicByteCount acked_bytes); |
81 QuicTime::Delta PrrTimeUntilSend(); | 81 QuicTime::Delta PrrTimeUntilSend(); |
82 | 82 |
83 | |
84 HybridSlowStart hybrid_slow_start_; | 83 HybridSlowStart hybrid_slow_start_; |
85 Cubic cubic_; | 84 Cubic cubic_; |
86 const RttStats* rtt_stats_; | 85 const RttStats* rtt_stats_; |
87 QuicConnectionStats* stats_; | 86 QuicConnectionStats* stats_; |
88 | 87 |
89 // Reno provided for testing. | 88 // Reno provided for testing. |
90 const bool reno_; | 89 const bool reno_; |
91 | 90 |
92 // ACK counter for the Reno implementation. | 91 // ACK counter for the Reno implementation. |
93 int64 congestion_window_count_; | 92 int64 congestion_window_count_; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 126 |
128 // Maximum number of outstanding packets for tcp. | 127 // Maximum number of outstanding packets for tcp. |
129 QuicTcpCongestionWindow max_tcp_congestion_window_; | 128 QuicTcpCongestionWindow max_tcp_congestion_window_; |
130 | 129 |
131 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); | 130 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); |
132 }; | 131 }; |
133 | 132 |
134 } // namespace net | 133 } // namespace net |
135 | 134 |
136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ | 135 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ |
OLD | NEW |