Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(843)

Side by Side Diff: net/quic/congestion_control/tcp_cubic_sender.h

Issue 1001933003: Create a QUIC connection option to set the min CWND to 1 packet instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replaces_Perspective_enun_88006458
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/congestion_control/tcp_cubic_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Track the largest packet that has been acked. 108 // Track the largest packet that has been acked.
109 QuicPacketSequenceNumber largest_acked_sequence_number_; 109 QuicPacketSequenceNumber largest_acked_sequence_number_;
110 110
111 // Track the largest sequence number outstanding when a CWND cutback occurs. 111 // Track the largest sequence number outstanding when a CWND cutback occurs.
112 QuicPacketSequenceNumber largest_sent_at_last_cutback_; 112 QuicPacketSequenceNumber largest_sent_at_last_cutback_;
113 113
114 // Congestion window in packets. 114 // Congestion window in packets.
115 QuicPacketCount congestion_window_; 115 QuicPacketCount congestion_window_;
116 116
117 // Minimum congestion window in packets.
118 QuicPacketCount min_congestion_window_;
119
117 // Slow start congestion window in packets, aka ssthresh. 120 // Slow start congestion window in packets, aka ssthresh.
118 QuicPacketCount slowstart_threshold_; 121 QuicPacketCount slowstart_threshold_;
119 122
120 // Whether the last loss event caused us to exit slowstart. 123 // Whether the last loss event caused us to exit slowstart.
121 // Used for stats collection of slowstart_packets_lost 124 // Used for stats collection of slowstart_packets_lost
122 bool last_cutback_exited_slowstart_; 125 bool last_cutback_exited_slowstart_;
123 126
124 const QuicClock* clock_; 127 const QuicClock* clock_;
125 128
126 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 129 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
127 }; 130 };
128 131
129 } // namespace net 132 } // namespace net
130 133
131 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 134 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/congestion_control/tcp_cubic_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698