One-Step
Quick installation(懒人一键安装)
PS: Requirments
OS: CentOS 6+,Debian 7+,Ubuntu 12+
Virtual platform: Except OpenVZ, such as KVM, Xen, VMware etc.
Memory: ≥128M
1 2 3 wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh chmod +x bbr.sh ./bbr.sh
Check-BBR 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [root@vps-d ~] Linux vps-d 4.10.4-1.el7.elrepo.x86_64 [root@vps-d ~] net.ipv4.tcp_available_congestion_control = bbr cubic reno [root@vps-d ~] net.ipv4.tcp_congestion_control = bbr [root@vps-d ~] net.core.default_qdisc = fq [root@vps-d ~] tcp_bbr 16384 24
PS: If the kernel version less than 4.12, you need upgrade.
Upgrade-Kernel## Sample with CentOS 7:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm yum --enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel -y rpm -qa | grep kernel egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \' # default 0 # Run by the first core(表示第一个内核设置为默认运行) grub2-set-default 0 # restart reboot
Reference:
开启TCP BBR拥塞控制算法
一键安装最新内核并开启 BBR 脚本