EnableBBROnUbuntu1604

TurnToJPG -->


The kernel should be newer than 4.9, then you could enable BBR algorithm.

Take v4.12 for example, visit http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12/ for getting the daily build kernel:

wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12/linux-headers-4.12.0-041200-generic_4.12.0-041200.201707022031_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12/linux-headers-4.12.0-041200_4.12.0-041200.201707022031_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.12/linux-image-4.12.0-041200-generic_4.12.0-041200.201707022031_amd64.deb

Install debs via dpkg -i *.deb, reboot the machine.

Change in sysctl:

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p

Verification:

# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno
# lsmod | grep bbr
tcp_bbr                20480  0

Now the bbr algorithm for tcp is enabled, enjoy the high speed.

https://github.com/iMeiji/shadowsocks_install/wiki/%E5%BC%80%E5%90%AFTCP-BBR%E6%8B%A5%E5%A1%9E%E6%8E%A7%E5%88%B6%E7%AE%97%E6%B3%95