This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1|Reply: 0

[Linux] Server Linux enabled BBR congestion control algorithm

[Copy link]
Posted on54 seconds ago | | | |
The default traditional TCP congestion control algorithms (Cubic / Reno) on Linux systems halve the packet rate as soon as a packet loss is detected!

Activating Google's open-source BBR (Bottleneck Bandwidth and Round-trip propagation time) algorithm can completely solve this chronic problem!

BBR core mechanism: abandons the traditional conservative strategy of "dropping packets immediately upon dropping," detects the network's maximum bandwidth and minimum RTT in real time, and can still squeeze out physical bandwidth even in weak packet loss environments.
Activation condition: Linux kernel version >= 4.9 (Debian 11/12, Ubuntu 22.04/24.04 all meet the standard by default).

Option 1 (Recommended):

The command is executed as follows:
In modern Linux systems, it is recommended to use /etc/sysctl.d/99-bbr.conf (a modular .d directory format). It is identical to directly modifying /etc/sysctl.conf in the final kernel parameter results, but with clear differences in configuration priority, system upgrade security, and management maintenance. Naming it 99-bbr.conf ensures your configuration loads last and is not overwritten by other default files (such as 10-network.conf).

Additionally, the core difference between sysctl --system and sysctl -p lies in the scope and order in which configuration files are loaded:sysctl --system scans and loads all standard configuration directories on the system by priority, while sysctl -p by default only reads a single file from /etc/sysctl.conf.

Check the currently active congestion control algorithm with the following command:
As shown below:



Option 2:

The command is as follows:
The effect is the same as Option 1, but this option is not recommended.

Attached to others

Includes query commands to view currently supported TCP algorithms and to view currently running algorithms:
For Linux kernel optimization, you can also refer to the following project scripts.

VPS Network Optimization:The hyperlink login is visible.
TCP/UDP Network Deep Tuning Script:The hyperlink login is visible.
Linux-NetSpeed:The hyperlink login is visible.
TuneTCP:The hyperlink login is visible.




Previous:To determine if the IP is a CN2 line, check the IP location by checking the ISP + traceroute for verification
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com