DEV Community

Andrew Ryan
Andrew Ryan

Posted on

How to open BBR

Using TCP BBR on a network link with a certain packet loss rate can improve the transmission speed.

First uname -r to see if the kernel is >= 4.9
Enter the administrator terminal

su
Enter fullscreen mode Exit fullscreen mode

run lsmod | grep bbr, if there is no tcp_bbr in the result, execute it first

modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
Enter fullscreen mode Exit fullscreen mode

run

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
Enter fullscreen mode Exit fullscreen mode

Save

sysctl -p
Enter fullscreen mode Exit fullscreen mode

run

sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_congestion_control
Enter fullscreen mode Exit fullscreen mode

If the result has bbr, it proves that your kernel has bbr enabled

run

lsmod | grep bbr
Enter fullscreen mode Exit fullscreen mode

If you see the tcp_bbr module, it means that bbr has been started

Top comments (0)