云服务器免费试用

ubuntu开启bbr

服务器知识 0 799

Ubuntu开启BBR

BBR(Bottleneck Bandwidth and RTT)是Google在2016年提出的一种网络拥塞控制算法,能够有效提高网络的带宽利用率和减少网络延迟。在Ubuntu系统上开启BBR算法,可以显著提升网络速度和稳定性。下面介绍Ubuntu开启BBR的方法。

步骤一:更新系统

在命令行输入以下命令,更新系统软件包列表和已安装软件包。

ubuntu开启bbr

sudo apt-get update

sudo apt-get upgrade

步骤二:安装BBR内核模块

在命令行输入以下命令,安装BBR内核模块。

sudo apt-get install linux-generic-hwe-18.04-edge

安装完成后,重启系统使新的内核生效。

步骤三:开启BBR

在命令行输入以下命令,编辑sysctl配置文件。

sudo nano /etc/sysctl.conf

在文件末尾添加以下内容。

net.core.default_qdisc=fq

net.ipv4.tcp_congestion_control=bbr

保存文件后,执行以下命令使配置生效。

sudo sysctl -p

执行以下命令,检查BBR是否已经开启。

sysctl net.ipv4.tcp_available_congestion_control

如果返回结果包含"bbr",则说明BBR已经成功开启。

Step 1: Update the system

Enter the following commands in the terminal to update the software package list and installed software packages.

sudo apt-get update

sudo apt-get upgrade

Step 2: Install BBR kernel module

Enter the following command in the terminal to install the BBR kernel module.

sudo apt-get install linux-generic-hwe-18.04-edge

After the installation is complete, restart the system to make the new kernel effective.

Step 3: Enable BBR

Enter the following command in the terminal to edit the sysctl configuration file.

sudo nano /etc/sysctl.conf

Add the following content to the end of the file.

net.core.default_qdisc = fq

net.ipv4.tcp_congestion_control = bbr

After saving the file, execute the following command to make the configuration effective.

sudo sysctl -p

Execute the following command to check if BBR has been enabled.

sysctl net.ipv4.tcp_available_congestion_control

If the result returned contains "bbr", it means that BBR has been successfully enabled.

8767

声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942@qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: ubuntu开启bbr
本文地址: https://solustack.com/72937.html

相关推荐:

网友留言:

我要评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。