Skip to main content

Command Palette

Search for a command to run...

๐Ÿš€ Boosting Linux Network Performance with FQ-CoDel & BBR ๐Ÿš€

Enhance Linux Network Performance by Reducing Latency with FQ-CoDel & BBR

Published
๐Ÿš€ Boosting Linux Network Performance with FQ-CoDel & BBR ๐Ÿš€
R

Driving SD-WAN Adoption in South Africa

If you're looking to supercharge your Linux network performance, reducing latency and improving congestion handling, then FQ-CoDel and BBR are the dynamic duo you need! ๐Ÿ”ฅ

This guide will walk you through enabling FQ-CoDel (Fair Queueing Controlled Delay) and BBR (Bottleneck Bandwidth and Round-trip propagation time) on your Linux system. But first, let's understand why they matter.


๐Ÿง What is FQ-CoDel?

FQ-CoDel is a smart queueing algorithm designed to fight bufferbloat (excessive queuing delays in networking). It prioritises active flows fairly while keeping latency low. In short, it:

โœ… Reduces lag & jitter in network traffic ๐Ÿ“‰
โœ… Prevents one connection from hogging bandwidth ๐Ÿคฏ
โœ… Improves responsiveness for VoIP, gaming, and video calls ๐ŸŽฎ๐ŸŽฅ


๐Ÿš€ What is BBR?

BBR (Bottleneck Bandwidth and RTT) is a cutting-edge TCP congestion control algorithm developed by Google. Unlike traditional congestion controls like Cubic (which relies on packet loss), BBR estimates the actual available bandwidth and the round-trip time to make better congestion decisions.

๐Ÿ”น Faster throughput compared to traditional TCP congestion control ๐Ÿš„
๐Ÿ”น Reduces buffering delays while maintaining high speeds โฉ
๐Ÿ”น Ideal for high-speed internet, cloud computing, and streaming โ˜๏ธ๐ŸŽถ


โš™๏ธ How to Enable FQ-CoDel & BBR

โœ๏ธ Step 1: Create a Configuration File

Open a terminal and create a new sysctl configuration file:

sudo nano /etc/sysctl.d/10-custom-kernel-bbr.conf

๐Ÿ“ Step 2: Add the Following Lines

Paste the following settings into the file:

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

๐Ÿ”น The first line enables FQ-CoDel as the default queueing discipline.
๐Ÿ”น The second line sets BBR as the TCP congestion control algorithm.

Save the file (CTRL+X, then Y, then ENTER).


๐Ÿ”„ Step 3: Apply the Changes

Run the following command to load the new settings:

sudo sysctl --system

๐Ÿ› ๏ธ Step 4: Verify Your Configuration

To check if FQ-CoDel is set as your queueing discipline:

sysctl net.core.default_qdisc

To confirm that BBR is enabled:

sysctl net.ipv4.tcp_congestion_control

Both commands should output:

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

โœ… Congratulations! Your Linux system is now optimised with FQ-CoDel and BBR for smoother, faster networking! ๐ŸŽ‰


๐ŸŽฏ Wrap

By enabling FQ-CoDel and BBR, youโ€™re taking a proactive approach to improving your network experience. Whether youโ€™re streaming, gaming, or hosting critical services, youโ€™ll notice a smoother and more responsive connection.

Give it a try, and enjoy your bufferbloat-free, high-speed networking! ๐Ÿš€๐ŸŒ

Happy networking! ๐Ÿ˜ƒ