BBR brief introduction
BBR is a TCP congestion control technology developed by the Google community. It is currently in the early stages of development, but the prospects are great, and everyone can continue to pay attention, while BBR is integrated into the kernel with the latest version of Linux.
Specifically, what is the TCP congestion control technology? I don’t understand the details. I will explain it in a plain way. It is not necessarily accurate. Just look at it and understand it.
The original TCP traffic transmission has been unable to adapt to the current Internet. We compare TCP traffic to traffic on the road, and TCP transmission tunnels are highways, then:
In the original TCP traffic transmission, a crossroad road, a lot of traffic, but no traffic lights and traffic police, causing everyone to squeeze the right side of the traffic jam, which is not caused by reasonable management.
The TCP flow control technology such as BBR and Sharp speed is the traffic light + traffic police. They are at the unmanaged intersection, to reasonably command the distribution of traffic, and then maximize the use of traffic to ensure smooth roads.
Probably this is the easy way to understand Google BBR algorithm. Please indicate if there is any error.
BBR official project address: https://github.com/google/bbr
System support: CentOS 6+, Debian 7+, Ubuntu 12+
Virtual environment: Beyond OpenVZ (KVM, Xen, VMware, etc.)
Memory requirements: ≥128MB
About this script
- This script has been tested in VPS on Vultr.
- When the script detects that the virtual mode of the VPS is OpenVZ, it will prompt an error and automatically exit the installation.
- Some providers (such as Linode, DigitalOcean) may need to first configure the VPS as a customizable kernel, and then the configuration of grub2 will take effect.
- After the script finishes running and restarts, it can’t open the machine. Open VNC in the VPS background control panel, boot the card in grub boot, and manually select the kernel.
- Since you are using the latest version of the system kernel, it is best not to install it in a production environment to avoid unpredictable consequences.
Want to know more about Vultr VPS? Click the banner below:
How to use
Log in as the root user and run the following command:
wget -N --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && bash bbr.sh
After the installation is complete, the script will prompt you to restart the VPS, enter y and press Enter to restart.
After the reboot is complete, enter the VPS and verify that the latest kernel is successfully installed and TCP BBR is enabled. Enter the following command:
uname -r #View the kernel version, with 4.9.0, it means OK. # ———————————— sysctl net.ipv4.tcp_available_congestion_control # Return value is generally: # net.ipv4.tcp_available_congestion_control = bbr cubic reno # ———————————— sysctl net.ipv4.tcp_congestion_control # Return value is generally: # net.ipv4.tcp_congestion_control = bbr # ———————————— sysctl net.core.default_qdisc # Return value is generally: # net.core.default_qdisc = fq # ———————————— lsmod | grep bbr # The return value has the tcp_bbr module, indicating that bbr has started.
Reference link: https://teddysun.com/489.html