Skip to content

Instantly share code, notes, and snippets.

@jthigh
Forked from carry0987/RPi3-TCP-BBR.md
Created December 29, 2019 19:51
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jthigh/98f83cc9a780879ec99859646020df92 to your computer and use it in GitHub Desktop.
Save jthigh/98f83cc9a780879ec99859646020df92 to your computer and use it in GitHub Desktop.
Raspberry Pi 3B+ Using BBR Congestion Control

Raspberry Pi 3B+ Using BBR Congestion Control

Check Kernel

uname -r

The kernel version should >= 4.9.4, if isn't, please follow the script below to update kernel:

Update Kernel

  1. sudo rpi-update
  2. sudo reboot

Install BBR

  1. sudo bash -c 'echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf'

  2. sudo bash -c 'echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf'

  3. sudo sysctl -p

  4. sudo reboot

Check BBR

sysctl net.ipv4.tcp_available_congestion_control

It might display like this:

net.ipv4.tcp_available_congestion_control = bbr cubic reno

Then use lsmod to check if bbr is running

lsmod | grep bbr

It might display like this:

tcp_bbr 20480 3

Finish

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