Cloudflare fixes CUBIC congestion control bug in QUIC implementation that permanently pinned performance at minimum
By
sbulaev
Master baker tier. Every paragraph earns its place on the tray.
Summary
Cloudflare engineers discovered and fixed a bug in the CUBIC congestion control algorithm (RFC 9438) used in their QUIC implementation (quiche). The bug caused the congestion window (cwnd) to become permanently pinned at its minimum floor value, severely degrading performance. The root cause was that the kernel's idle detection mechanism incorrectly treated normal RTT wait times as application idleness, triggering an unnecessary cwnd reset. The fix involved correctly measuring idle periods to distinguish between actual application idleness and normal network round-trip time waits.
Key quotes
· 3 pulledCUBIC, standardized in RFC 9438, is the default congestion controller in Linux, and as a result governs how most TCP and QUIC connections on the public Internet probe for available bandwidth.
In this post, we'll tell the story of a bug in which CUBIC's congestion window (cwnd) gets permanently pinned at its minimum and never recovers.
The fix involved correctly measuring idle periods to distinguish RTT wait times from actual application idleness.
You might also wanna read
IPv8: An Alternative IPv4 Successor with Backward Compatibility and Integrated Network Management
This article introduces IPv8, an alternative successor to IPv4 that differs from IPv6 by focusing on integrated network management and singl
OpenBSD PF Packet Filter Overcomes 4.29 Gbps Bandwidth Limitation for HFSC Traffic Shaping
OpenBSD's PF packet filter has overcome a significant technical limitation where HFSC traffic shaping queues were previously capped at appro
Aether: Open-Source ISP Orchestration Lab for Network Testing
Aether is an open-source ISP orchestration lab that provides a demo environment for testing broadband network infrastructure. The lab includ
Distributed BNG Architecture Using eBPF/XDP for ISP Edge Infrastructure
The article presents an innovative approach to ISP infrastructure by developing an open-source, eBPF-accelerated Broadband Network Gateway (
OpenBSD pf Firewall Patch Proposes Making af-to IPv4/IPv6 Translation Less Magical
The article discusses a proposed patch for OpenBSD's pf firewall to make the af-to option less 'magical' and more explicit. The af-to option
Netflix engineer's open-source tool cuts AI token usage by up to 90%
Netflix senior engineer Tejas Chopra created software called "Project Headroom" that prunes redundant tokens from AI agent instructions befo
