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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 // This class is a helper class to TcpCubicSender. 5 // This class is a helper class to TcpCubicSender.
6 // Slow start is the initial startup phase of TCP, it lasts until first packet 6 // Slow start is the initial startup phase of TCP, it lasts until first packet
7 // loss. This class implements hybrid slow start of the TCP cubic send side 7 // loss. This class implements hybrid slow start of the TCP cubic send side
8 // congestion algorithm. The key feaure of hybrid slow start is that it tries to 8 // congestion algorithm. The key feaure of hybrid slow start is that it tries to
9 // avoid running into the wall too hard during the slow start phase, which 9 // avoid running into the wall too hard during the slow start phase, which
10 // the traditional TCP implementation does. 10 // the traditional TCP implementation does.
11 // This does not implement ack train detection because it interacts poorly with 11 // This does not implement ack train detection because it interacts poorly with
12 // pacing. 12 // pacing.
13 // http://netsrv.csc.ncsu.edu/export/hybridstart_pfldnet08.pdf 13 // http://netsrv.csc.ncsu.edu/export/hybridstart_pfldnet08.pdf
14 // http://research.csc.ncsu.edu/netsrv/sites/default/files/hystart_techreport_20 08.pdf 14 // http://research.csc.ncsu.edu/netsrv/sites/default/files/hystart_techreport_20 08.pdf
15 15
16 #ifndef NET_QUIC_CONGESTION_CONTROL_HYBRID_SLOW_START_H_ 16 #ifndef NET_QUIC_CONGESTION_CONTROL_HYBRID_SLOW_START_H_
17 #define NET_QUIC_CONGESTION_CONTROL_HYBRID_SLOW_START_H_ 17 #define NET_QUIC_CONGESTION_CONTROL_HYBRID_SLOW_START_H_
18 18
19 #include "base/basictypes.h" 19 #include <stdint.h>
20
21 #include "base/macros.h"
20 #include "net/base/net_export.h" 22 #include "net/base/net_export.h"
21 #include "net/quic/quic_protocol.h" 23 #include "net/quic/quic_protocol.h"
22 #include "net/quic/quic_time.h" 24 #include "net/quic/quic_time.h"
23 25
24 namespace net { 26 namespace net {
25 27
26 class NET_EXPORT_PRIVATE HybridSlowStart { 28 class NET_EXPORT_PRIVATE HybridSlowStart {
27 public: 29 public:
28 HybridSlowStart(); 30 HybridSlowStart();
29 31
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 }; 66 };
65 67
66 // Whether the hybrid slow start has been started. 68 // Whether the hybrid slow start has been started.
67 bool started_; 69 bool started_;
68 HystartState hystart_found_; 70 HystartState hystart_found_;
69 // Last packet number sent which was CWND limited. 71 // Last packet number sent which was CWND limited.
70 QuicPacketNumber last_sent_packet_number_; 72 QuicPacketNumber last_sent_packet_number_;
71 73
72 // Variables for tracking acks received during a slow start round. 74 // Variables for tracking acks received during a slow start round.
73 QuicPacketNumber end_packet_number_; // End of the receive round. 75 QuicPacketNumber end_packet_number_; // End of the receive round.
74 uint32 rtt_sample_count_; // Number of rtt samples in the current round. 76 uint32_t rtt_sample_count_; // Number of rtt samples in the current round.
75 QuicTime::Delta current_min_rtt_; // The minimum rtt of current round. 77 QuicTime::Delta current_min_rtt_; // The minimum rtt of current round.
76 78
77 DISALLOW_COPY_AND_ASSIGN(HybridSlowStart); 79 DISALLOW_COPY_AND_ASSIGN(HybridSlowStart);
78 }; 80 };
79 81
80 } // namespace net 82 } // namespace net
81 83
82 #endif // NET_QUIC_CONGESTION_CONTROL_HYBRID_SLOW_START_H_ 84 #endif // NET_QUIC_CONGESTION_CONTROL_HYBRID_SLOW_START_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/general_loss_algorithm_test.cc ('k') | net/quic/congestion_control/hybrid_slow_start.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698