6

Debian添加BBR拥塞控制算法

 2 years ago
source link: https://www.howru.cc/articles/588.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Debian添加BBR拥塞控制算法

2022年1月3日 195点热度 0人点赞 0条评论

众所周知,如果网路的延时高或者丢包率高,在服务器上启用BBR拥塞控制算法,会比reno,cubic算法达到更高的带宽。在内核版本4.9以上的Debian,只需要简单几步就可以启用BBR算法。

1. 添加Linux内核参数。

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

2. 保存生效。

sysctl -p
sysctl -p

3. 查看内核已启用的拥塞算法。

sysctl net.ipv4.tcp_available_congestion_control
sysctl net.ipv4.tcp_available_congestion_control

如果有BBR代表参数已经生效。

net.ipv4.tcp_available_congestion_control = reno cubic bbr
net.ipv4.tcp_available_congestion_control = reno cubic bbr

4. 查看系统载入的模块有没有BBR。

lsmod | grep bbr
lsmod | grep bbr

有的话就成功了。

tcp_bbr 20480 1
tcp_bbr                20480  1

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK