如何加速¶
常见的加速方法包括BBR
、锐速
BBR
加速¶
参考:
BBR是google
实现的一种TCP
拥塞控制算法。BBR
已在新版本的Linux
内核中集成,需要高于等于4.9
的Linux
内核才能开启
在root
权限下执行
# 下载一键安装包
$ wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
# 赋予执行权限
$ chmod +x bbr.sh
# 执行脚本
$ ./bbr.sh
安装完成后重启系统
# 检查linux内核
$ uanme -r
4.20.12-042012-generic
# 开启TCP BBR
$ sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = reno cubic bbr
$ sysctl net.ipv4.tcp_congestion_control
net.ipv4.tcp_congestion_control = bbr
$ sysctl net.core.default_qdisc
net.core.default_qdisc = fq
# 查看bbr是否已启动
$ lsmod | grep bbr
tcp_bbr 20480 20
测试网速
$ speedtest --share
Retrieving speedtest.net configuration...
Testing from Choopa, LLC (149.28.83.99)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by WebNX (Los Angeles, CA) [2.73 km]: 3.155 ms
Testing download speed................................................................................
Download: 2721.15 Mbit/s
Testing upload speed................................................................................................
Upload: 1708.89 Mbit/s
Share results: http://www.speedtest.net/result/8068280714.png