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

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

Issue 963293002: Remove RevertRetransmissionTimeout from QUIC's SendAlgorithmInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_stats_recording_reno_86629919
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
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void OnCongestionEvent(bool rtt_updated, 50 void OnCongestionEvent(bool rtt_updated,
51 QuicByteCount bytes_in_flight, 51 QuicByteCount bytes_in_flight,
52 const CongestionVector& acked_packets, 52 const CongestionVector& acked_packets,
53 const CongestionVector& lost_packets) override; 53 const CongestionVector& lost_packets) override;
54 bool OnPacketSent(QuicTime sent_time, 54 bool OnPacketSent(QuicTime sent_time,
55 QuicByteCount bytes_in_flight, 55 QuicByteCount bytes_in_flight,
56 QuicPacketSequenceNumber sequence_number, 56 QuicPacketSequenceNumber sequence_number,
57 QuicByteCount bytes, 57 QuicByteCount bytes,
58 HasRetransmittableData is_retransmittable) override; 58 HasRetransmittableData is_retransmittable) override;
59 void OnRetransmissionTimeout(bool packets_retransmitted) override; 59 void OnRetransmissionTimeout(bool packets_retransmitted) override;
60 void RevertRetransmissionTimeout() override;
61 QuicTime::Delta TimeUntilSend( 60 QuicTime::Delta TimeUntilSend(
62 QuicTime now, 61 QuicTime now,
63 QuicByteCount bytes_in_flight, 62 QuicByteCount bytes_in_flight,
64 HasRetransmittableData has_retransmittable_data) const override; 63 HasRetransmittableData has_retransmittable_data) const override;
65 QuicBandwidth PacingRate() const override; 64 QuicBandwidth PacingRate() const override;
66 QuicBandwidth BandwidthEstimate() const override; 65 QuicBandwidth BandwidthEstimate() const override;
67 bool HasReliableBandwidthEstimate() const override; 66 bool HasReliableBandwidthEstimate() const override;
68 QuicTime::Delta RetransmissionDelay() const override; 67 QuicTime::Delta RetransmissionDelay() const override;
69 QuicByteCount GetCongestionWindow() const override; 68 QuicByteCount GetCongestionWindow() const override;
70 bool InSlowStart() const override; 69 bool InSlowStart() const override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 109
111 // Track the largest packet that has been acked. 110 // Track the largest packet that has been acked.
112 QuicPacketSequenceNumber largest_acked_sequence_number_; 111 QuicPacketSequenceNumber largest_acked_sequence_number_;
113 112
114 // Track the largest sequence number outstanding when a CWND cutback occurs. 113 // Track the largest sequence number outstanding when a CWND cutback occurs.
115 QuicPacketSequenceNumber largest_sent_at_last_cutback_; 114 QuicPacketSequenceNumber largest_sent_at_last_cutback_;
116 115
117 // Congestion window in packets. 116 // Congestion window in packets.
118 QuicPacketCount congestion_window_; 117 QuicPacketCount congestion_window_;
119 118
120 // Congestion window before the last RTO.
121 // Must be 0 before or after RTO recovery.
122 QuicPacketCount previous_congestion_window_;
123
124 // Slow start congestion window in packets, aka ssthresh. 119 // Slow start congestion window in packets, aka ssthresh.
125 QuicPacketCount slowstart_threshold_; 120 QuicPacketCount slowstart_threshold_;
126 121
127 // Slow start threshold before the last loss event or RTO.
128 QuicPacketCount previous_slowstart_threshold_;
129
130 // Whether the last loss event caused us to exit slowstart. 122 // Whether the last loss event caused us to exit slowstart.
131 // Used for stats collection of slowstart_packets_lost 123 // Used for stats collection of slowstart_packets_lost
132 bool last_cutback_exited_slowstart_; 124 bool last_cutback_exited_slowstart_;
133 125
134 // Maximum number of outstanding packets for tcp. 126 // Maximum number of outstanding packets for tcp.
135 QuicPacketCount max_tcp_congestion_window_; 127 QuicPacketCount max_tcp_congestion_window_;
136 128
137 const QuicClock* clock_; 129 const QuicClock* clock_;
138 130
139 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender); 131 DISALLOW_COPY_AND_ASSIGN(TcpCubicSender);
140 }; 132 };
141 133
142 } // namespace net 134 } // namespace net
143 135
144 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_ 136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.h ('k') | net/quic/congestion_control/tcp_cubic_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698