Linux kernel 4.9 and above open TCP BBR congestion algorithm
BBR the goal is to try to run full bandwidth, and try not to have a queuing situation, the effect is not faster than the speed of sharp difference
Linux kernel 4.9+ has supported TCP_BBR below to briefly describe how a KVM-based architecture VPS is powered on
Install Linux kernel version 4.9 and above
General installation of the latest version of the kernel
Debian 8+/Ubuntu 14.04
- Download the latest kernel
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.12/ Linux-image-4.14.12-041412-generic_4.14.12-041412.201801051649_amd64.deb
# dpkg-i linux-image-4. *.deb
- Deleting legacy kernels (optional)
grep linux-image # apt-get purge old kernel
- Update grub and restart server
# update-grub# reboot
Ubuntu16.04
- Install Hardware enablement Stack (HWE), update kernel automatically
Install --install-recommends linux-generic-hwe-16.04
- Deleting legacy kernels (optional)
# apt Autoremove
- Restart the server to enable the latest kernel
# reboot
centos6.x
- Enable Elrepo source and install Kernel-ml
# RPM--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org# RPM-UVH http:// www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpmYuminstall kernel-ml-y
- Check if the kernel is already installed
grep Kernel
- Update grub and restart server
sed ' s:default=.*:d efault=0:g ' /etc/grub.conf# reboot
centos7.x
- Enable Elrepo source and install Kernel-ml
# 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.rpmYuminstall kernel-ml-y
- Check if the kernel is already installed
# Rpm-qa | grep kernel
# Grub2-mkconfig-o/boot/grub2/grub.cfg
# reboot
Check kernel version
Check if the kernel version is greater than 4.9 with the uname-r command
uname -R
Enable BBR congestion algorithm
Modprobeecho"tcp_bbr" >>/etc/modules-load.d/ Modules.conf
- modifying kernel parameters
Echo " NET.CORE.DEFAULT_QDISC=FQ " >>/etc/echo"net.ipv4.tcp_congestion_control=bbr " >>/etc/sysctl.conf
# sysctl-p
- Check if BBR is turned on
Lsmod grep bbr# sysctl net.ipv4.tcp_available_congestion_control# sysctl Net.ipv4.tcp_congestion_control
If the result has bbr, it means that the BBR algorithm has been turned on
Linux kernel 4.9 and above open TCP BBR congestion algorithm