Skip to content

Instantly share code, notes, and snippets.

@zz
Forked from chalos/UbuntuCongestionControlBBR.md
Last active February 12, 2022 16:46
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save zz/173cb33b82073eac8c3dd0298bb54602 to your computer and use it in GitHub Desktop.
Save zz/173cb33b82073eac8c3dd0298bb54602 to your computer and use it in GitHub Desktop.
Ubuntu using BBR

Set your Ubuntu Congestion Control to BBR

  1. Check if Ubuntu Linux Kernel version is 4.9

    $ uname -r
  2. If not, follow the link http://www.yourownlinux.com/2016/12/how-to-install-linux-kernel-4-9-0-in-linux.html instructions to update your Ubuntu Linux Kernel to 4.9

  3. Check again the kernel version, make sure again kernel version is 4.9

    $ uname -r
  4. Then confirm the bbr modules is included...

    $ ls -a /lib/modules/$(uname -r)/kernel/net/ipv4 | grep bbr
    tcp_bbr.ko
  5. Grep to see the congestion control currently using in Ubuntu, for me, my default is using cubic

    $ cat /proc/sys/net/ipv4/tcp_congestion_control
    cubic
  6. Change the setting of tcp_congestion_control by echo, i did that in root

    $ sudo -i
    $ echo "bbr" > /proc/sys/net/ipv4/tcp_congestion_control
    $ cat /proc/sys/net/ipv4/tcp_congestion_control
    bbr
  7. You are now using bbr congestion control

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment