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 #include "net/quic/core/congestion_control/bbr_sender.h" | 5 #include "net/quic/core/congestion_control/bbr_sender.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "net/quic/core/congestion_control/rtt_stats.h" | 10 #include "net/quic/core/congestion_control/rtt_stats.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 min_rtt_(QuicTime::Delta::Zero()), | 92 min_rtt_(QuicTime::Delta::Zero()), |
93 min_rtt_timestamp_(QuicTime::Zero()), | 93 min_rtt_timestamp_(QuicTime::Zero()), |
94 congestion_window_(initial_tcp_congestion_window * kDefaultTCPMSS), | 94 congestion_window_(initial_tcp_congestion_window * kDefaultTCPMSS), |
95 initial_congestion_window_(initial_tcp_congestion_window * | 95 initial_congestion_window_(initial_tcp_congestion_window * |
96 kDefaultTCPMSS), | 96 kDefaultTCPMSS), |
97 max_congestion_window_(max_tcp_congestion_window * kDefaultTCPMSS), | 97 max_congestion_window_(max_tcp_congestion_window * kDefaultTCPMSS), |
98 pacing_rate_(QuicBandwidth::Zero()), | 98 pacing_rate_(QuicBandwidth::Zero()), |
99 pacing_gain_(1), | 99 pacing_gain_(1), |
100 congestion_window_gain_(1), | 100 congestion_window_gain_(1), |
101 congestion_window_gain_constant_( | 101 congestion_window_gain_constant_( |
102 static_cast<float>(GetQuicFlag(FLAGS_quic_bbr_cwnd_gain))), | 102 static_cast<float>(FLAGS_quic_bbr_cwnd_gain)), |
103 rtt_variance_weight_( | 103 rtt_variance_weight_( |
104 static_cast<float>(GetQuicFlag(FLAGS_quic_bbr_rtt_variation_weight))), | 104 static_cast<float>(FLAGS_quic_bbr_rtt_variation_weight)), |
105 num_startup_rtts_(kRoundTripsWithoutGrowthBeforeExitingStartup), | 105 num_startup_rtts_(kRoundTripsWithoutGrowthBeforeExitingStartup), |
106 congestion_window_gain_for_slow_delivery_(static_cast<float>( | 106 congestion_window_gain_for_slow_delivery_( |
107 GetQuicFlag(FLAGS_quic_bbr_slow_delivery_cwnd_gain))), | 107 static_cast<float>(FLAGS_quic_bbr_slow_delivery_cwnd_gain)), |
108 threshold_multiplier_for_slow_delivery_(static_cast<float>( | 108 threshold_multiplier_for_slow_delivery_(static_cast<float>( |
109 GetQuicFlag(FLAGS_quic_bbr_slow_delivery_threshold_multiplier))), | 109 FLAGS_quic_bbr_slow_delivery_threshold_multiplier)), |
110 cycle_current_offset_(0), | 110 cycle_current_offset_(0), |
111 last_cycle_start_(QuicTime::Zero()), | 111 last_cycle_start_(QuicTime::Zero()), |
112 is_at_full_bandwidth_(false), | 112 is_at_full_bandwidth_(false), |
113 rounds_without_bandwidth_gain_(0), | 113 rounds_without_bandwidth_gain_(0), |
114 bandwidth_at_last_round_(QuicBandwidth::Zero()), | 114 bandwidth_at_last_round_(QuicBandwidth::Zero()), |
115 exiting_quiescence_(false), | 115 exiting_quiescence_(false), |
116 exit_probe_rtt_at_(QuicTime::Zero()), | 116 exit_probe_rtt_at_(QuicTime::Zero()), |
117 probe_rtt_round_passed_(false), | 117 probe_rtt_round_passed_(false), |
118 last_sample_is_app_limited_(false), | 118 last_sample_is_app_limited_(false), |
119 recovery_state_(NOT_IN_RECOVERY), | 119 recovery_state_(NOT_IN_RECOVERY), |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() | 782 os << "Minimum RTT timestamp: " << state.min_rtt_timestamp.ToDebuggingValue() |
783 << std::endl; | 783 << std::endl; |
784 | 784 |
785 os << "Last sample is app-limited: " | 785 os << "Last sample is app-limited: " |
786 << (state.last_sample_is_app_limited ? "yes" : "no"); | 786 << (state.last_sample_is_app_limited ? "yes" : "no"); |
787 | 787 |
788 return os; | 788 return os; |
789 } | 789 } |
790 | 790 |
791 } // namespace net | 791 } // namespace net |
OLD | NEW |