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

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

Issue 1008323002: Land Recent QUIC Changes until 03/15/2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0315
Patch Set: Add quic_packet_reader to BUILD.gn to fix compiler errors 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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_BYTES_SENDER_H_ 7 #ifndef NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ 8 #define NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 namespace test { 25 namespace test {
26 class TcpCubicBytesSenderPeer; 26 class TcpCubicBytesSenderPeer;
27 } // namespace test 27 } // namespace test
28 28
29 class NET_EXPORT_PRIVATE TcpCubicBytesSender : public SendAlgorithmInterface { 29 class NET_EXPORT_PRIVATE TcpCubicBytesSender : public SendAlgorithmInterface {
30 public: 30 public:
31 TcpCubicBytesSender(const QuicClock* clock, 31 TcpCubicBytesSender(const QuicClock* clock,
32 const RttStats* rtt_stats, 32 const RttStats* rtt_stats,
33 bool reno, 33 bool reno,
34 QuicPacketCount initial_tcp_congestion_window, 34 QuicPacketCount initial_tcp_congestion_window,
35 QuicPacketCount max_congestion_window,
35 QuicConnectionStats* stats); 36 QuicConnectionStats* stats);
36 ~TcpCubicBytesSender() override; 37 ~TcpCubicBytesSender() override;
37 38
38 // Start implementation of SendAlgorithmInterface. 39 // Start implementation of SendAlgorithmInterface.
39 void SetFromConfig(const QuicConfig& config, 40 void SetFromConfig(const QuicConfig& config,
40 Perspective perspective, 41 Perspective perspective,
41 bool using_pacing) override; 42 bool using_pacing) override;
42 bool ResumeConnectionState( 43 bool ResumeConnectionState(
43 const CachedNetworkParameters& cached_network_params) override; 44 const CachedNetworkParameters& cached_network_params) override;
44 void SetNumEmulatedConnections(int num_connections) override; 45 void SetNumEmulatedConnections(int num_connections) override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 106
106 // Track the largest packet that has been acked. 107 // Track the largest packet that has been acked.
107 QuicPacketSequenceNumber largest_acked_sequence_number_; 108 QuicPacketSequenceNumber largest_acked_sequence_number_;
108 109
109 // Track the largest sequence number outstanding when a CWND cutback occurs. 110 // Track the largest sequence number outstanding when a CWND cutback occurs.
110 QuicPacketSequenceNumber largest_sent_at_last_cutback_; 111 QuicPacketSequenceNumber largest_sent_at_last_cutback_;
111 112
112 // Congestion window in bytes. 113 // Congestion window in bytes.
113 QuicByteCount congestion_window_; 114 QuicByteCount congestion_window_;
114 115
116 // Minimum congestion window in bytes.
117 QuicByteCount min_congestion_window_;
118
119 // Maximum congestion window in bytes.
120 QuicByteCount max_congestion_window_;
121
115 // Slow start congestion window in bytes, aka ssthresh. 122 // Slow start congestion window in bytes, aka ssthresh.
116 QuicByteCount slowstart_threshold_; 123 QuicByteCount slowstart_threshold_;
117 124
118 // Whether the last loss event caused us to exit slowstart. Used for stats 125 // Whether the last loss event caused us to exit slowstart. Used for stats
119 // collection of slowstart_packets_lost. 126 // collection of slowstart_packets_lost.
120 bool last_cutback_exited_slowstart_; 127 bool last_cutback_exited_slowstart_;
121 128
122 const QuicClock* clock_; 129 const QuicClock* clock_;
123 130
124 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender); 131 DISALLOW_COPY_AND_ASSIGN(TcpCubicBytesSender);
125 }; 132 };
126 133
127 } // namespace net 134 } // namespace net
128 135
129 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_ 136 #endif // NET_QUIC_CONGESTION_CONTROL_TCP_CUBIC_BYTES_SENDER_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/send_algorithm_interface.cc ('k') | net/quic/congestion_control/tcp_cubic_bytes_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698