# 🚀 Boosting Linux Network Performance with FQ-CoDel & BBR 🚀

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:

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

### 📝 Step 2: Add the Following Lines

Paste the following settings into the file:

```plaintext
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:

```plaintext
sudo sysctl --system
```

---

### 🛠️ Step 4: Verify Your Configuration

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

```plaintext
sysctl net.core.default_qdisc
```

To confirm that BBR is enabled:

```plaintext
sysctl net.ipv4.tcp_congestion_control
```

Both commands should output:

```plaintext
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!** 😃
