How to enable BBR on Ubuntu VPS

This article provides a guide describing how to enable BBR on Ubuntu VPS.

What is BBR?

BBR is a modern TCP congestion control algorithm that provides significant performance improvements for many types of internet connections, especially when traditional algorithms struggle.

Key Features of BBR:

  • Optimizes throughput and latency by modeling the network's bottleneck bandwidth and round-trip time (RTT), rather than reacting to packet loss like traditional algorithms (e.g., TCP Reno or Cubic).
  • Avoids bufferbloat, which occurs when large buffers introduce high latency in the network.
  • Designed for modern networks, including those with high bandwidth-delay products (e.g., satellite or cross-country fiber connections).

How BBR Works:

  1. Estimates bandwidth and RTT continuously.
  2. Controls sending rate based on its model, not on packet loss or ACK timing alone.
  3. Minimizes queuing delay by avoiding overfilling network buffers.

Benefits:

  • Higher throughput.
  • Lower latency.
  • Better performance on lossy or variable connections (e.g., mobile, Wi-Fi, satellite).

Prerequisites

 Important: Ensure your kernel is version 4.9 or higher, as BBR was introduced in that version.

This guide assumes the following environment variables:

Launch 100% SSD Ubuntu VPS from $2.49/mo!

How to Enable BBR on Ubuntu VPS

To enable BBR on Ubuntu VPS, follow the process outlined below:

  1. Login via SSH as root.
  2. Run the following command to ensure the kernel version is 4.9 or greater:
    uname -r
  3. Edit the /etc/sysctl.conf file with your preferred text editor:
    nano /etc/sysctl.conf
  4. Add the following lines to the end of the file:
    net.core.default_qdisc=fq
    net.ipv4.tcp_congestion_control=bbr
  5. Save and exit the file.
  6. Run the following command:
    sysctl -p
  7. Verify if BBR is enabled by running the following command:

    sysctl net.ipv4.tcp_congestion_control

    Expected output:

    net.ipv4.tcp_congestion_control = bbr
  8. BBR is now enabled on your Ubuntu VPS.

Launch 100% SSD Ubuntu VPS from $2.49/mo!

Conclusion

You now know how to enable BBR on Ubuntu VPS.

  • ubuntu, vps guide, vps guides
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

What Server Virtualization Are Your Hypervisors?

All VPS hypervisors use KVM virtualization technology. Order here: KVM VPS servers

How to Update MTU Speed on CentOS VPS

Follow this guide to update MTU speed on CentOS VPS servers. Prerequisites To update the MTU...

Install Python Interpreter on Ubuntu VPS or Dedicated Server

This article provides a step-by-step guide to installing the Python interpreter on an Ubuntu VPS...

What are My root User Login Credentials?

The root (admin) user password is randomly generated. This password can be found in your welcome...

Modify Server Hostname Using SSH in CentOS

This article provides a guide to modify server Hostname using SSH in CentOS server. You can use...