BBR is a new algorithm for TCP Congestion Control. It was tested in Google's data center networks as well as on some of their public-facing Web servers including Google.com and YouTube. It strives to optimize both throughput and latency/RTT by estimating the bottleneck bandwidth and RTT to compute a pacing rate. One goal — one that sets it apart from most traditional TCP variants — is to avoid filling up the bottleneck buffer, which might induce Bufferbloat.
The BBR team developed an improved version, BBRv2, to address some shortcomings with the original version of BBR. BBRv2 should no longer starve instances of other TCP implementations (e.g. Reno or CUBIC) sharing the same bottleneck, or induce high loss rates when the queue at the bottleneck is limited. BBRv2 also supports some forms of ECN signals; not the "classical" version where each "congestion experienced" bit is supposed to be interpreted like a lost packet for congestion control, but the newer "DCTCP-style" ECN variants, including Prague TCP/L4S. Unlike BBR"v1", BBRv2 interprets loss as a signal, and tries to respect a (configurable) target loss rate ceiling.
A description of the BBR (v1) algorithm was published in the September/October 2016 issue of ACM Queue. An implementation in the Linux kernel has been proposed as a patch. Dave Taht posted a preliminary evaluation ("a quick look...") on his blog. An good description of the BBR's motivation and approach is included in the proposed kernel patch (see below).
Here is a state transition diagram for BBR: | V +---> STARTUP ----+ | | | | V | | DRAIN ----+ | | | | V | +---> PROBE_BW ----+ | ^ | | | | | | | +----+ | | | +---- PROBE_RTT <--+ A BBR flow starts in STARTUP, and ramps up its sending rate quickly. When it estimates the pipe is full, it enters DRAIN to drain the queue. In steady state a BBR flow only uses PROBE_BW and PROBE_RTT. A long-lived BBR flow spends the vast majority of its time remaining (repeatedly) in PROBE_BW, fully probing and utilizing the pipe's bandwidth in a fair manner, with a small, bounded queue. If a flow has been continuously sending for the entire min_rtt window, and hasn't seen an RTT sample that matches or decreases its min_rtt estimate for 10 seconds, then it briefly enters PROBE_RTT to cut inflight to a minimum value to re-probe the path's two-way propagation delay (min_rtt). When exiting PROBE_RTT, if we estimated that we reached the full bw of the pipe then we enter PROBE_BW; otherwise we enter STARTUP to try to fill the pipe.
BBRv2 is based on the same state machine. The new behavior is illustrated in slides 20–26 of the IETF-104 presentation, see under "References" below.
Linux kernel TCP implementation
BBR exports its bandwidth and RTT estimates using the
getsockopt(TCP_CC_INFO) interface, see
struct tcp_bbr_info . User-space applications can use this information as hints for adapting their use of a given connection, e.g. by selecting appropriate audio or video encodings.
Netflix is working on an implementation of BBR for FreeBSD. BBR has also been implemented for QUIC (including BBRv2, see above), and is in active use on Google's servers. Mark Claypool has written an implementation of BBR for ns-3, a popular network simulator.
- BBR Congestion Control Development, Google Groups, last accessed February 2019, mailing list with overview page full of pointers
- BBR: Congestion-Based Congestion Control, ACM Queue, Vol. 14 No. 5, September-October 2016 (HTML/PDF)
- tcp_bbr: add BBR congestion control, N. Cardwell, V. Jacobson, Y. Cheng, N. Dukkipati, E. Dumazet, S. Yeganeh, commit 0f8782ea14974ce992618b55f0c041ef43ed0b78, Linus Torvalds's Linux Git tree, September 2016
- draft-cardwell-iccrg-bbr-congestion-control-00, BBR Congestion Control, Neal Cardwell, Yuchung Cheng, Soheil Hassas Yeganeh, Van Jacobson, July 2017
- draft-cheng-iccrg-delivery-rate-estimation-00, Delivery Rate Estimation, Yuchung Cheng, Neal Cardwell, Soheil Hassas Yeganeh, Van Jacobson, July 2017
- A Quick Look at TCP BBR, D. Taht, blog post, 19 September 2016
- Making Linux TCP Fast, Y. Cheng, N. Cardwell, netdevconf 1.2, October 2016, (abstract, video)
- TCP BBR Quick-Start: Building and Running TCP BBR on Google Compute Engine, N. Cardwell, October 2016 (last accessed)
- BBR Congestion Control, N. Cardwell, Y. Cheng, Presentation to ICCRG at IETF 97, Seoul, November 2016 (video, starting ~57'00", slides)
- BBR congestion control, J. Corbet, LWN.net, September 2016
- BBR Congestion Control: An Update, N. Cardwell, Y. Cheng, Presentation to ICCRG at IETF 98, Chicago, March 2017 (video, starting ~1h35'28", slides)
- BBR TCP Opportunities, Matt Mathis, Presentation at the Quilt, 19 October 2016 (PDF slides)
- BBR TCP, Geoff Huston, May 2017, Potaroo blog/RIPELabs
- CS 244 '17: ReBBR: Reproducing BBR Performance In Lossy Networks, Luke Hsiao and Jervis Muindi, June 2017 CS244 blog
- CS 244 '17: Congestion-Based Congestion Control With BBR, Brad Girardeau and Samantha Steele, June 2017 CS244 blog
- BBR Congestion Control: IETF 99 Update, N. Cardwell, Y. Cheng, C. S. Dunn, S. H. Yeganeh, I. Swett, J. Iyengar, V. Vasiliev, V. Jacobson, Presentation to ICCRG at IETF 99, Prague, July 2017 (video, slides)
- How Google is speeding up the Internet, B. Butler, Network World, August 2017
- BBR Congestion Control: IETF 100 Update: BBR in shallow buffers, Neal N.l Cardwell, Yuchung Y. Cheng, C. Stephen S. Gunn, Soheil S. Hassas Yeganeh, Ian I. Swett, Jana J. Iyengar, Victor V. Vasiliev, Van V. Jacobson, Presentation to ICCRG at IETF 100, Singapore, Nov 2017 (video, slides)
- BBR Congestion Control Work at Google: IETF 101 Update, Neal N. Cardwell, Yuchung Y. Cheng, C. Stephen S. Gunn, Soheil S. Hassas Yeganeh, Ian I. Swett, Jana J. Iyengar, Victor V. Vasiliev, Priyaranjan P. Jha, Yousuk Y. Seung, Van V. Jacobson, Presentation to ICCRG at IETF 101, London, March 2018 (video, slides)
- BBR Congestion Control Work at Google: IETF 102 Update, Neal N. Cardwell, Yuchung Y. Cheng, C. Stephen S. Gunn, Soheil S. Hassas Yeganeh, Ian I. Swett, Jana J. Iyengar, Victor V. Vasiliev, Priyaranjan P. Jha, Yousuk Y. Seung, Kevin K. Yang, Matt M. Mathis, Van V. Jacobson, Presentation to ICCRG at IETF 102, Montréal, July 2018 (video, slides)
- BBR Congestion Control: IETF 102 Update: BBR Startup, Ian Swett, Montréal, July 2018 (video, slides)
- BBRx: Extending BBR for Customized TCP Performance, Jae Won Chung, Feng Li, Beomjun Kim, NetDev 0x12, Montréal, July 2018 (abstract, video, slides, paper)
- BBR v2: A Model-based Congestion Control, N. Cardwell, Y. Cheng, S. Hassas Yeganeh, I. Swett, V. Vasiliev, P. Jha, Y. Seung, M. Mathis, V. Jacobson, Presentation to ICCRG at IETF 104, Prague, March 2019 (slides, video)
- BBR v2: A Model-based Congestion Control—IETF 105 Update, N. Cardwell, Y. Cheng, S. Hassas Yeganeh, P. Jha, Y. Seung, I. Swett, V. Vasiliev, Bin Wu, M. Mathis, V. Jacobson, Presentation to ICCRG, Montréal, July 2019 (slides)