← All technical notes

Networks / Field notes

Understanding TCP BBR

Published

Network throughput is shaped by bottleneck capacity, round-trip delay, queueing and competing traffic. Congestion control is one piece of that system, not a universal performance switch.

Bandwidth, delay and queues

The bandwidth-delay product approximates the amount of data needed in flight to fill a path. For example, a 100 Mbit/s path with a 50 ms round-trip time has a bandwidth-delay product of about 625 kB (decimal). Sending far beyond the path’s capacity can increase queueing delay without increasing delivered throughput.

Sender
Bottleneck link
Receiver
ACK feedback
The sender uses delivery feedback to adapt its transmission behavior.

How BBR approaches congestion

BBR estimates the delivery rate and a baseline round-trip time to model the network path. It adjusts pacing and the amount of data in flight using those estimates. This differs from classic loss-driven approaches, although modern congestion controllers are more nuanced than a simple loss-versus-delay distinction.

Performance depends on the implementation version, competing traffic and network conditions. A change in congestion control can improve one workload while producing little benefit or worse results for another.

Inspect the Linux configuration

sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
sysctl net.core.default_qdisc
tc qdisc show
ss -tin

The default TCP algorithm applies to new connections unless an application selects another. The configured default queue discipline and the actual interface queue discipline are distinct; inspect both. A TCP congestion-control setting does not automatically change UDP application behavior.

Measure before tuning

Compare throughput, retransmissions and latency under load using the same endpoints, transfer size and test duration. Use a destination you own or have permission to test. Repeat measurements at different times and record the median and variability rather than relying on a single peak result.

BBR cannot repair an unreachable destination, invalid DNS record or failed TLS handshake. Diagnose connectivity before tuning performance.

Further reading