Skip to content

Instantly share code, notes, and snippets.

@chalos
Last active January 6, 2017 11:06

Revisions

  1. chalos revised this gist Dec 23, 2016. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions UbuntuCongestionControlBBR.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,6 @@
    Set your Ubuntu Congestion Control to BBR
    =========================================

    1. Check if Ubuntu Linux Kernel version is 4.9

    ```bash
  2. chalos revised this gist Dec 23, 2016. 1 changed file with 11 additions and 0 deletions.
    11 changes: 11 additions & 0 deletions UbuntuCongestionControlBBR.md
    Original file line number Diff line number Diff line change
    @@ -1,27 +1,38 @@
    1. Check if Ubuntu Linux Kernel version is 4.9

    ```bash
    $ 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

    ```bash
    $ uname -r
    ```

    4. Then confirm the bbr modules is included...

    ```bash
    $ 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

    ```bash
    $ cat /proc/sys/net/ipv4/tcp_congestion_control
    cubic
    ```

    6. Change the setting of tcp_congestion_control by echo, i did that in root

    ```bash
    $ 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
  3. chalos renamed this gist Dec 23, 2016. 1 changed file with 0 additions and 0 deletions.
  4. chalos created this gist Dec 23, 2016.
    27 changes: 27 additions & 0 deletions UbuntuCongestionControlBBR
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    1. Check if Ubuntu Linux Kernel version is 4.9
    ```bash
    $ 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
    ```bash
    $ uname -r
    ```
    4. Then confirm the bbr modules is included...
    ```bash
    $ 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
    ```bash
    $ cat /proc/sys/net/ipv4/tcp_congestion_control
    cubic
    ```
    6. Change the setting of tcp_congestion_control by echo, i did that in root
    ```bash
    $ 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