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

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

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/quic/congestion_control/cube_root.cc ('k') | net/quic/congestion_control/cubic.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 // Cubic algorithm, helper class to TCP cubic. 5 // Cubic algorithm, helper class to TCP cubic.
6 // For details see http://netsrv.csc.ncsu.edu/export/cubic_a_new_tcp_2008.pdf. 6 // For details see http://netsrv.csc.ncsu.edu/export/cubic_a_new_tcp_2008.pdf.
7 7
8 #ifndef NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ 8 #ifndef NET_QUIC_CONGESTION_CONTROL_CUBIC_H_
9 #define NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ 9 #define NET_QUIC_CONGESTION_CONTROL_CUBIC_H_
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Last congestion window (in packets) used. 65 // Last congestion window (in packets) used.
66 QuicPacketCount last_congestion_window_; 66 QuicPacketCount last_congestion_window_;
67 67
68 // Max congestion window (in packets) used just before last loss event. 68 // Max congestion window (in packets) used just before last loss event.
69 // Note: to improve fairness to other streams an additional back off is 69 // Note: to improve fairness to other streams an additional back off is
70 // applied to this value if the new value is below our latest value. 70 // applied to this value if the new value is below our latest value.
71 QuicPacketCount last_max_congestion_window_; 71 QuicPacketCount last_max_congestion_window_;
72 72
73 // Number of acked packets since the cycle started (epoch). 73 // Number of acked packets since the cycle started (epoch).
74 uint32 acked_packets_count_; 74 QuicPacketCount acked_packets_count_;
75 75
76 // TCP Reno equivalent congestion window in packets. 76 // TCP Reno equivalent congestion window in packets.
77 QuicPacketCount estimated_tcp_congestion_window_; 77 QuicPacketCount estimated_tcp_congestion_window_;
78 78
79 // Origin point of cubic function. 79 // Origin point of cubic function.
80 QuicPacketCount origin_point_congestion_window_; 80 QuicPacketCount origin_point_congestion_window_;
81 81
82 // Time to origin point of cubic function in 2^10 fractions of a second. 82 // Time to origin point of cubic function in 2^10 fractions of a second.
83 uint32 time_to_origin_point_; 83 uint32 time_to_origin_point_;
84 84
85 // Last congestion window in packets computed by cubic function. 85 // Last congestion window in packets computed by cubic function.
86 QuicPacketCount last_target_congestion_window_; 86 QuicPacketCount last_target_congestion_window_;
87 87
88 // QuicConnectionStats includes congestion control related stats. 88 // QuicConnectionStats includes congestion control related stats.
89 QuicConnectionStats* stats_; 89 QuicConnectionStats* stats_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(Cubic); 91 DISALLOW_COPY_AND_ASSIGN(Cubic);
92 }; 92 };
93 93
94 } // namespace net 94 } // namespace net
95 95
96 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_H_ 96 #endif // NET_QUIC_CONGESTION_CONTROL_CUBIC_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/cube_root.cc ('k') | net/quic/congestion_control/cubic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698