Tuning Linux TCP BBR & FQ Pacing
Traditional loss-based congestion control algorithms such as CUBIC treat any packet drop as a signal of router buffer exhaustion. On long-haul WAN paths with shallow random packet loss and 120–220 ms round-trip times, this leads to frequent congestion window halving and severe under-utilization of available bandwidth.
Why Pair BBR with Fair Queue (fq)
BBR estimates both the bottleneck bandwidth (BtlBw) and the minimum round-trip propagation time (RTprop). Rather than sending bursts as fast as the NIC allows, BBR paces outgoing segments smoothly. The Linux fq qdisc performs per-flow packet pacing directly in the traffic control layer.
net.core.default_qdisc = fq alongside BBR. Without packet pacing, BBR relies on internal TCP timers with lower granularity.
Recommended Sysctl Configuration
# /etc/sysctl.d/99-bbr.conf
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
# Increase socket buffer ceilings for high-BDP links
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
Verification
Apply the configuration and verify that the active qdisc and congestion control module are loaded:
sudo sysctl --system
sysctl net.ipv4.tcp_congestion_control net.core.default_qdisc
ss -ti | head -n 12
In ss -ti output, active connections should display bbr along with live pacing_rate and delivery_rate telemetry.