Ubuntu开启BBR
BBR(Bottleneck Bandwidth and RTT)是Google在2016年提出的一种网络拥塞控制算法,能够有效提高网络的带宽利用率和减少网络延迟。在Ubuntu系统上开启BBR算法,可以显著提升网络速度和稳定性。下面介绍Ubuntu开启BBR的方法。
步骤一:更新系统
在命令行输入以下命令,更新系统软件包列表和已安装软件包。
sudo apt-get updatesudo 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=fqnet.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 updatesudo 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 = fqnet.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
网友留言: