Enable BBR in Ubuntu After 20.04
Requirements
BBR requires Linux kernel version 4.9 or above. Since Ubuntu 20.04 comes with the 5.4.0 kernel, we can enable BBR right away.
How to enable?
-
Check available congestion control algorithms
Output:
So,
BBR
is not configured.Run the command
sysctl net.ipv4.tcp_congestion_control
to see current congestion control algorithms. Output: -
Vim
/etc/sysctl.conf
to add the following configuration at the end -
Refresh the new added configuration by using this command
sudo sysctl -p
Output:
-
Check if
BBR
is enabled by commandsysctl net.ipv4.tcp_congestion_control
Output:
Now, BBR
is enabled. Enjoy!