Interview Prep/Networking/Network Models, TCP, UDP & Ports

Compare TCP congestion control algorithms such as CUBIC and BBR.

AdvancedConceptNetwork Models, TCP, UDP & Ports
Answer

CUBIC is loss-based: it grows the window until packets drop, then backs off. It is Linux's default and fine for most traffic, but it fills router buffers (bufferbloat) and reacts badly to random loss on long paths. BBR is model-based: it estimates bottleneck bandwidth and minimum RTT and paces to that, so it keeps queues short and holds throughput on lossy, high-latency links.

sysctl net.ipv4.tcp_available_congestion_control
sysctl -w net.core.default_qdisc=fq net.ipv4.tcp_congestion_control=bbr

We have seen BBR help on cross-region and user-facing edge servers; it can be unfair to CUBIC flows sharing a bottleneck, so test before rolling out.

All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports