Add a QUIC protocol flag to control minimum bandwidth to allow bursting.
PiperOrigin-RevId: 393120968
diff --git a/quic/core/congestion_control/pacing_sender.cc b/quic/core/congestion_control/pacing_sender.cc
index 265a422..e4b6534 100644
--- a/quic/core/congestion_control/pacing_sender.cc
+++ b/quic/core/congestion_control/pacing_sender.cc
@@ -97,7 +97,8 @@
GetQuicFlag(FLAGS_quic_lumpy_pacing_cwnd_fraction)) /
kDefaultTCPMSS)));
if (sender_->BandwidthEstimate() <
- QuicBandwidth::FromKBitsPerSecond(1200)) {
+ QuicBandwidth::FromKBitsPerSecond(
+ GetQuicFlag(FLAGS_quic_lumpy_pacing_min_bandwidth_kbps))) {
// Below 1.2Mbps, send 1 packet at once, because one full-sized packet
// is about 10ms of queueing.
lumpy_tokens_ = 1u;
diff --git a/quic/core/quic_protocol_flags_list.h b/quic/core/quic_protocol_flags_list.h
index 62c1712..4b2e818 100644
--- a/quic/core/quic_protocol_flags_list.h
+++ b/quic/core/quic_protocol_flags_list.h
@@ -83,6 +83,11 @@
"Congestion window fraction that the pacing sender allows in bursts "
"during pacing.")
+QUIC_PROTOCOL_FLAG(
+ int32_t, quic_lumpy_pacing_min_bandwidth_kbps, 1200,
+ "The minimum estimated client bandwidth below which the pacing sender will "
+ "not allow bursts.")
+
QUIC_PROTOCOL_FLAG(int32_t,
quic_max_pace_time_into_future_ms,
10,