Skip to content
Related Articles

Related Articles

Improve Article
How to Boost Linux Server Internet Speed with TCP BBR?
  • Last Updated : 28 Mar, 2021

BBR is a modern TCP congestion control algorithm. It was put to the test in Google’s data center networks and on some of their public-facing Web servers, such as Google.com and YouTube. By estimating the bottleneck bandwidth and RTT to calculate a pacing rate, it aims to optimize both throughput and latency/RTT. One target, which distinguishes it from most conventional TCP versions, is to prevent overflowing the bottleneck buffer, which could result in Bufferbloat.

To fix some shortcomings with the original version of BBR, the BBR team created BBRv2. As the queue at the bottleneck is small, BBRv2 can no longer starve instances of other TCP implementations (e.g. Reno or CUBIC) sharing the same bottleneck, or cause high loss rates. Not the “classical” version, where each “congestion encountered” bit is supposed to be interpreted as a lost packet for congestion control, but the newer “DCTCP-style” ECN versions, such as Prague TCP/L4S, are supported by BBRv2. Unlike BBRv1, BBRv2 considers loss to be a signal and seeks to stay within a (configurable) loss rate ceiling.

Requirements for boost Linux server internet speed

You should have a Linux kernel version 4.9 or higher installed, with the following options compiled in:

  1. CONFIG_TCP_CONG_BBR
  2. CONFIG_NET_SCH_FQ

Run the following commands to see if the above options are compiled in your kernel:

$ sudo cat /boot/config-$(uname -r) | grep 'CONFIG_TCP_CONG_BBR'

How to Boost Linux Server Internet Speed with TCP BBR



$ sudo cat /boot/config-$(uname -r) | grep 'CONFIG_NET_SCH_FQ'

How to Boost Linux Server Internet Speed with TCP BBR

Enabling TCP BBR Congestion Control in Linux

Edit the /etc/sysctl.conf file:

$ sudo nano /etc/sysctl.conf

How to Boost Linux Server Internet Speed with TCP BBR

The config file should look like this:

How to Boost Linux Server Internet Speed with TCP BBR

Now add these two to the bottom of the config file:

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

How to Boost Linux Server Internet Speed with TCP BBR

Now save the file and exit then, either reboot the Linux box or use the sysctl command to reload the changes:

$ sudo reboot
OR
$ sudo sysctl --system

How to Boost Linux Server Internet Speed with TCP BBR

Now as you can see option has been added

My Personal Notes arrow_drop_up
Recommended Articles
Page :