CentOS7安装TCP BBR加速

CentOS7安装TCP BBR加速

BBR(Bottleneck Bandwidth and Round-trip propagation time)是Google 提出的一种新型拥塞控制算法,可以使Linux服务器显著地提高吞吐量和减少TCP连接的延迟。Google已经开源了该算法,并提交到了Linux内核,从4.9开始,Linux内核已经用上了该算法。

查看当前Centos的版本

大于7.3即可

cat /etc/redhat-release

执行一键安装脚本

耐心等待安装完毕

wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh

安装完成后会提示重启系统

立即重启,输入:y ,等待重启完毕

image

验证当前的TCP算法

输出结果包含了:bbr 表示成功

[root@KevinBlandy ~]# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = reno cubic bbr

查看BBR是否启动

[root@KevinBlandy ~]# sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = bbr

查看BBR是否已经载入了系统模块

[root@KevinBlandy ~]# lsmod | grep bbr
tcp_bbr                20480  8