At present, we usually install Google BBR acceleration from the bottom of the server. Here we used to install it after changing the kernel by steps. Sometimes some friends won't install it. Here we can directly find the one click installation package available on the Internet.
Check whether the architecture supports BBR
OpenVZ virtualization does not support upgrading the kernel separately, so you can give up directly. KVM, XEN and other virtualization are generally supported. CentOS can view the currently used virtualization technology by executing the following command:
#Install virt what
yum install virt-what
#View Schema
virt-what
Upgrade the kernel and start BBR
Execute the following commands in turn to upgrade the kernel and start the BBR. After the execution, restart the server. If the system cannot start due to the failure of kernel upgrade, you can select Start Kernel Startup in the VNC console.
#Execute the following commands to upgrade the kernel
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./ bbr.sh
spare:
wget --no-check-certificate https://github.com/imdupeng/across/raw/master/bbr.sh && chmod +x bbr.sh && ./ bbr.sh
Check whether BBR is installed and started
#Check the kernel version. The general return value is>=4.9
uname -r
#Execute the following command, and generally return net.ipv4.tcp_available_congestion_control=bbr cubic reno
sysctl net.ipv4.tcp_available_congestion_control
#The following command generally returns net.ipv4.tcp_conestion_control=bbr
sysctl net.ipv4.tcp_congestion_control
#The following command generally returns net.core.default_qdisc=fq
sysctl net.core.default_qdisc
#The return value contains the tcp_bbr module, indicating that the BBR has been started
lsmod | grep bbr
The return value of the tcp_bbr module indicates that the bbr has been started. Note: Not all VPS will have this return value. If not, it is normal.