debian13开启bbr

bbr是一种拥塞控制算法,只对tcp有作用,debian上的默认拥塞控制算法是cpublic

1.检查当前内核版本

BBR 需要 Linux 4.9 及以上内核。可以用以下命令检查:
uname -r

2.开启bbr

注意debian13中在/etc/sysctl.conf中配置不生效了

需编辑 /etc/sysctl.d/sysctl.conf 文件,在里边加上以下内容

net.ipv4.neigh.default.base_reachable_time_ms = 600000
net.ipv4.neigh.eth1.delay_first_probe_time = 1
net.ipv4.neigh.default.mcast_solicit = 20
net.ipv4.neigh.default.retrans_time_ms = 250
net.ipv4.conf.all.rp_filter=0
net.ipv4.conf.eth0.rp_filter=0
net.ipv4.conf.eth1.rp_filter=0
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
net.ipv4.tcp_fastopen=3

3.重启验证

reboot
然后执行
sysctl net.ipv4.tcp_congestion_control
lsmod | grep bbr

观察输出,有bbr字样表示成功了。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注