OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |