Optimizing Linux TCP Congestion Control for High-Throughput Servers

Modern cloud workloads often suffer from bandwidth underutilization when operating over high-latency transcontinental links. Traditional loss-based algorithms like CUBIC interpret packet loss as congestion, drastically reducing the congestion window.

Enabling Bottleneck Bandwidth and RTT (BBR)

Google's BBR algorithm models the network path based on actual delivery rate and minimum round-trip time rather than packet loss events. On Ubuntu 24.04, enabling BBR is straightforward:

net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr

Combining Fair Queue (fq) packet scheduling with BBR ensures smooth pacing of outbound packets and prevents bufferbloat at intermediate routers.