Author Topic: Suggestion Improvement of the TCP stack for higher speed  (Read 1672 times)

0 Members and 1 Guest are viewing this topic.

Suggestion Improvement of the TCP stack for higher speed
« on: April 27, 2022, 11:23:50 PM »
I may have a suggestion for those running the CWP on a linux distribution.
To improve the  upload to your webclients you can implement a different way how the TCP stack is handeling the requests.

Enable TCP BBR and other network stack optimizations
BBR is a new congestion control agorithm which dramatically decreases the time needed for a TCP connection to ramp up to maximum speed. It also contains improvements to counter other problems like router buffer bloat which causes network latency spikes.

To enable BBR you need you have kernel version 4.9 or higher. See your kernel version with uname -a. On Ubuntu you can upgrade to a newer kernel by enabling HWE.

Create a file called /etc/sysctl.d/60-bbr.conf with the following contents:

Code: [Select]
net.core.default_qdisc = fq_codel
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_notsent_lowat = 16384
net.ipv4.tcp_slow_start_after_idle = 0

After doing that you can run sysctl -p or reboot to apply the changes.
Verify that itís working with this command: sysctl net.ipv4.tcp_congestion_control. It should return bbr.

Here a link to get more information on how to test it before and after implementation.