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

Side by Side Diff: net/quic/core/congestion_control/bbr_sender.h

Issue 2962033002: Add a new connection option(BBRR) to enable BBR's rate based recovery. Protected by FLAGS_quic_rel… (Closed)
Patch Set: Rebase Created 3 years, 5 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/core/congestion_control/bbr_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // BBR (Bottleneck Bandwidth and RTT) congestion control algorithm. 5 // BBR (Bottleneck Bandwidth and RTT) congestion control algorithm.
6 6
7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_BBR_SENDER_H_ 7 #ifndef NET_QUIC_CORE_CONGESTION_CONTROL_BBR_SENDER_H_
8 #define NET_QUIC_CORE_CONGESTION_CONTROL_BBR_SENDER_H_ 8 #define NET_QUIC_CORE_CONGESTION_CONTROL_BBR_SENDER_H_
9 9
10 #include <cstdint> 10 #include <cstdint>
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 struct DataDelivered { 327 struct DataDelivered {
328 QuicTime ack_time; 328 QuicTime ack_time;
329 QuicByteCount acked_bytes; 329 QuicByteCount acked_bytes;
330 }; 330 };
331 331
332 // Data structure to record recently received acks. Used for determining 332 // Data structure to record recently received acks. Used for determining
333 // recently seen ack rate over a short period in the past. 333 // recently seen ack rate over a short period in the past.
334 std::deque<DataDelivered> recently_acked_; 334 std::deque<DataDelivered> recently_acked_;
335 QuicByteCount bytes_recently_acked_; 335 QuicByteCount bytes_recently_acked_;
336 336
337 // When true, recovery is rate based rather than congestion window based.
338 bool rate_based_recovery_;
339
337 DISALLOW_COPY_AND_ASSIGN(BbrSender); 340 DISALLOW_COPY_AND_ASSIGN(BbrSender);
338 }; 341 };
339 342
340 QUIC_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, 343 QUIC_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os,
341 const BbrSender::Mode& mode); 344 const BbrSender::Mode& mode);
342 QUIC_EXPORT_PRIVATE std::ostream& operator<<( 345 QUIC_EXPORT_PRIVATE std::ostream& operator<<(
343 std::ostream& os, 346 std::ostream& os,
344 const BbrSender::DebugState& state); 347 const BbrSender::DebugState& state);
345 348
346 } // namespace net 349 } // namespace net
347 350
348 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_BBR_SENDER_H_ 351 #endif // NET_QUIC_CORE_CONGESTION_CONTROL_BBR_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/congestion_control/bbr_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698