BBR congestion control algorithm principle and the deployment of installation, speed up network transmission speed

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/deng_xj/article/details/96874386

BBR congestion control algorithm principle and the deployment of installation, speed up network transmission speed

Traditional TCP congestion control algorithm is based on the protocol packet loss feedback, is a passive congestion control mechanisms, which do based on network packet loss event of network congestion judgment. Even when the network load is high, as long as no congestion loss, the agreement will not take the initiative to reduce their transmission speed. This protocol may be utilized to maximize the residual bandwidth network, improving the throughput. However, due to feedback protocol based on packet loss in the network near saturation demonstrated aggressive, while greatly improving network bandwidth utilization; but on the other hand, based congestion control protocol for packet loss feedback is greatly improve network utilization at the same time means that a congestion loss event not far off, so these agreements while improving network bandwidth utilization also indirectly increase the network packet loss rate, resulting in increased jitter of the entire network.

The so-called BBR (BBR (Bottleneck Bandwidth and RTT )), is a new Google proposed congestion control algorithm , it does not take packet loss as congestion control signal, the Linux server can significantly improve throughput and reduce latency TCP connection. With BBR algorithm, Linux server may significantly improve throughput and reduce connection delay, simply BBR network transmission speed can be accelerated.


CentOS deployment:
wget https://d.kxxzz.com/sh/tcp.sh
chmod +x tcp.sh
./tcp.sh

If the above URL fails, the server can be downloaded upload:

  • Link: https: //pan.baidu.com/s/1rvYM_HmWH5k7FbRoEtcoCg
  • Extraction code: ff5x
chmod +x bbr.sh
./bbr.sh

BBR install core (1), and then using acceleration BBR (4).

Here Insert Picture Description


Debian 7 +, Ubuntu 12+ deployment:
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
chmod +x bbr.sh
./bbr.sh

After the installation is complete, the script will be prompted to restart VPS, enter y and press Enter after the restart.
After the reboot is complete, enter the VPS, to test whether the successful installation of the latest kernel and open TCP BBR, enter the following command:

uname -r              # 查看内核版本,含有 4.10 就表示 OK 了

lsmod | grep bbr      # 返回值有 tcp_bbr 模块即说明bbr已启动
Kernel upgrade method:
CentOS:
yum --enablerepo=elrepo-kernel -y install kernel-ml kernel-ml-devel
CentOS 6:
sed -i 's/^default=.*/default=0/g' /boot/grub/grub.conf
CentOS 7:
grub2-set-default 0

If it is Debian / Ubuntu system, you need to manually download the latest version of the kernel to install the upgrade. Go here to download the latest version of the kernel deb package. If the system is 64, then the download linux-image amd64 contained in the generic deb package;
Here Insert Picture Description

If the system is 32, then the download linux-image i386 contains the generic deb package;
Here Insert Picture Description

The installation command is as follows (in the latest version 5.3.0 64 example, is replaced with the downloaded deb package):

dpkg -i linux-image-unsigned-5.3.0-050300rc1-generic_5.3.0-050300rc1.201907212232_amd64.deb

#安装完成后,再执行命令
/usr/sbin/update-grub

Reference:
. 1 : https://www.kxxzz.com/xx/367.html
2 : http://www.aeink.com/1167.html

Guess you like

Origin blog.csdn.net/deng_xj/article/details/96874386