
关于其他系统的,这里就不记录了,主要是我们这边所有的生产线和开发测试环境用的都是 debian 的,所以记录一下。
TCP 拥塞控制算法 BBR (Bottleneck Bandwidth and RTT) 可以大限度地利用服务器带宽,减少排队的情况,提高网络质量。
Debian10 / 11 默认的内核就是 4.19 版本的内核而且编译了 TCP BBR 模块,所以可以直接通过参数开启。
echo net.core.default_qdisc=fq >> /etc/sysctl.conf
echo net.ipv4.tcp_congestion_control=bbr >> /etc/sysctl.conf
sysctl -p
检查是否成功:
sysctl net.ipv4.tcp_available_congestion_control
显示:
net.ipv4.tcp_available_congestion_control = bbr cubic reno
表示开启成功。
或执行 lsmod | grep bbr ,检测 BBR 是否开启。
- All rights reserved.
- No part of this website, including text and images, may be reproduced, modified, distributed, or transmitted in any form or by any means, without the prior written permission of the author.
- Unauthorized commercial use is strictly prohibited.
- Unauthorized personal use is strictly prohibited.