Back to Blog
bufferbloatlatencyqostroubleshooting

How to Fix Bufferbloat: Stop Lag Spikes on a Busy Network

Bufferbloat turns a fast internet connection into a laggy mess the moment someone starts downloading. Here’s what causes it, how to test for it, and how to fix it permanently.

WiFi Speed TeamApril 7, 20268 min read

You have a fast internet connection — your speed test says 300 Mbps — but the moment someone in your household starts downloading a large file or a game update, video calls freeze, games spike to 500 ms ping, and every website feels like it’s loading through dial-up. This is bufferbloat, and it’s one of the most common — and most overlooked — networking problems in home routers.

What Is Bufferbloat?

Bufferbloat is the excessive latency caused by oversized network buffers in your router. Here’s what happens: when data arrives faster than it can be sent out (for example, when you’re uploading a file), your router stores the overflow in a buffer (a queue of packets waiting to be sent). A well-designed router keeps this queue short so urgent traffic — like a voice packet or a gaming update — jumps to the front quickly.

A poorly designed router (which describes most consumer hardware by default) uses a huge buffer and a simple first-in, first-out queue. Your urgent gaming packet gets stuck behind hundreds of large file-transfer packets, waiting its turn. The result is latency that can spike from 5 ms to 500 ms or more — even though your raw speed is fine.

The term was coined by networking researcher Jim Gettys around 2010, but the problem remains widespread in consumer routers sold today.

How to Test for Bufferbloat

The easiest way to diagnose bufferbloat is with the Waveform Bufferbloat Test (waveform.com/tools/bufferbloat). It measures your baseline latency, then measures latency again while saturating your connection with a simultaneous download and upload. If your latency jumps dramatically under load, you have bufferbloat.

Understanding the Grade

The Waveform test assigns a letter grade based on how much your latency increases under load:

  • A / A+: Latency increase under 5 ms — excellent. Your router is managing queues properly.
  • B: Latency increase of 5–30 ms — acceptable. Minor bufferbloat, most users won’t notice.
  • C: Latency increase of 30–60 ms — noticeable. Video calls may stutter when someone downloads.
  • D / F: Latency increase of 60 ms or more — severe. Gaming and calls will suffer badly on a busy network.

Most stock consumer routers score C or D out of the box. Fixing bufferbloat can bring them up to A with the right configuration.

How to Fix Bufferbloat

Option 1: Enable SQM on OpenWrt (Best Fix)

Smart Queue Management (SQM) is the gold-standard solution for bufferbloat. It replaces your router’s dumb FIFO queue with an intelligent algorithm that keeps buffers short and prioritizes latency-sensitive traffic.

If your router runs OpenWrt firmware, enabling SQM takes about five minutes:

  1. Install the luci-app-sqm package via System > Software.
  2. Navigate to Network > SQM QoS.
  3. Select your WAN interface (usually eth0 or wan).
  4. Set your download speed to 85–90% of your measured speed — not the advertised speed. If you measure 280 Mbps on a 300 Mbps plan, enter 238000 Kbps for download.
  5. Set upload speed to 85–90% of your measured upload as well.
  6. Choose CAKE as the queuing discipline (preferred over fq_codel for most setups).
  7. Save and enable.

The reason you cap at 85–90% is deliberate: SQM needs to be the bottleneck, not your ISP’s modem. If the ISP’s equipment fills its buffer before SQM can act, the fix won’t work.

CAKE vs. FQ-CoDel: Which Algorithm to Use?

CAKE (Common Applications Kept Enhanced) is the newer and generally superior algorithm. It combines fair queuing, active queue management, traffic shaping, and flow isolation into a single system. CAKE is the recommended choice for most routers.

FQ-CoDel (Fair Queuing with Controlled Delay) is the predecessor to CAKE. It’s less CPU-intensive and works well on lower-powered hardware or very high-speed connections (above 500 Mbps) where CAKE’s CPU overhead can become a factor. On gigabit or multi-gig connections, fq_codel may outperform CAKE on underpowered hardware.

Option 2: Enable SQM on Asus Merlin Firmware

If you have an Asus router running the Merlin custom firmware, SQM is available via Adaptive QoS combined with the FlexQoS add-on script. This provides a more user-friendly interface than OpenWrt while still delivering CAKE-based queue management.

Option 3: Use OPNsense or pfSense

OPNsense and pfSense both support FQ-CoDel and CAKE through their traffic shaper. Navigate to Firewall > Shaper in OPNsense, create a pipe with HFSC or CAKE, and assign it to your WAN interface. These platforms are ideal for home labs and power users who want granular control.

Option 4: Standard QoS as a Partial Fix

If your router doesn’t support SQM, enabling standard QoS (Quality of Service) and setting gaming devices to highest priority will reduce — but not eliminate — bufferbloat. Set your QoS upload cap to 85–90% of your measured upstream speed. See our QoS settings guide for step-by-step instructions.

Routers With Native SQM/CAKE Support

The easiest path to bufferbloat-free networking is a router that ships with SQM or can be easily flashed with OpenWrt:

  • GL.iNet routers (GL-MT6000, GL-AXT1800) — all GL.iNet devices run a modified OpenWrt with SQM available out of the box.
  • Dynalink DL-WRX36 — inexpensive (~$80) and flashable to OpenWrt with a Qualcomm quad-core CPU capable of gigabit SQM.
  • Asus routers with Merlin — RT-AX86U, RT-AX88U, and similar models running Merlin firmware support advanced QoS with CAKE.
  • Netgate/pfSense hardware — any pfSense or OPNsense appliance supports full SQM configuration.

Does Bufferbloat Matter for You?

Bufferbloat matters most when your network is under load. If you live alone and rarely have simultaneous heavy transfers, you may never notice it. But in households with multiple users — or anyone who games, video conferences, or makes WiFi calls while others stream — fixing bufferbloat can be a bigger quality-of-life improvement than doubling your internet speed.

Run a speed test and then run the Waveform bufferbloat test to get a baseline. If you score a C, D, or F, the fixes above can bring you to an A — and you’ll feel the difference immediately. For more on reducing latency, see our guide on how to reduce WiFi latency and our explainer on what jitter is and why it matters.

Related Articles