Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux 服务器启用 BBR #10

Open
Ecss11 opened this issue Jun 14, 2022 · 0 comments
Open

Linux 服务器启用 BBR #10

Ecss11 opened this issue Jun 14, 2022 · 0 comments
Labels
笔记 在项目前的学习资料

Comments

@Ecss11
Copy link
Owner

Ecss11 commented Jun 14, 2022

BBR 是一个新的 TCP 拥塞控制算法,常用于改善网络连接如代理。

前置环境

在 Linux Kernal 4.9 以及往上,BBR 会自动集成在系统中,无需用户手动安装。

输入以下命令查看可用的 TCP 控制算法:

sysctl net.ipv4.tcp_available_congestion_control

启用算法

使用任意编辑器打开 /etc/sysctl.conf 文件,添加以下两行:

net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr

部分云服务商,如 DMIT 在初始化服务器时以及配置好了 BBR 算法,可以使用以下指令查看:

sysctl net.ipv4.tcp_congestion_control

最后配上成功后的结果:

root@vmi819506:~# sysctl net.ipv4.tcp_congestion_control 
net.ipv4.tcp_congestion_control = bbr
@Ecss11 Ecss11 added the 笔记 在项目前的学习资料 label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
笔记 在项目前的学习资料
Projects
None yet
Development

No branches or pull requests

1 participant