How to Set Up SQM and QoS to Fix Bufferbloat

By Saif Ullah · Last reviewed 2026-11-26 · 9 min read

Set up SQM (Smart Queue Management) on the router that routes your connection, shape it to about 90 percent of your measured download and upload speeds , and use CAKE with piece_of_cake.qos , or fq_codel with simple.qos on a slower router. On OpenWrt that means installing luci-app-sqm , enabling it on the WAN interface under Network, SQM QoS, and turning flow offloading off. Expect loaded ping to fall back near idle ping, at the cost of about 5 to 10 percent of raw throughput.

Your plan says 200 Mbps and the speed test agrees, yet games lag and calls freeze the moment someone starts a download or a cloud backup. That is bufferbloat, not a slow plan: an oversized queue at the slowest link fills up, and every small packet waits behind it. QoS settings that only prioritise one device do not fix it. SQM does, because it manages the queue itself. This guide shows the setup on OpenWrt, where SQM is best supported, plus the before and after test that proves whether it worked.

One honest note first: FastSpeedTest now offers a built-in bufferbloat test that grades loaded latency in one click, so start there. The manual protocol below still works if you want to verify the result: the regular speed test plus a large transfer to load the line, exactly as the bufferbloat guide describes. No extra software is needed.

On this page

What SQM and QoS actually do

Step 1: prove it is bufferbloat before you change anything

Step 2: install SQM on OpenWrt

Step 3: configure it in LuCI

Worked example: a 100 Mbps down, 20 Mbps up line

Step 4: test again and tune

SQM on routers that are not running OpenWrt

What SQM cannot fix

Sources

QoS is the broad idea of managing traffic: prioritising some packets over others. SQM is the specific system that fixes bufferbloat, and bufferbloat.net defines it as per-flow packet scheduling plus active queue management plus traffic shaping plus QoS prioritisation, working together. The shaping part matters most. By capping speed slightly below the real line rate, SQM moves the bottleneck queue out of your modem or ISP equipment, where you cannot control it, and into your router, where CAKE or fq_codel can keep it short. Each flow gets its own queue, so a bulk download cannot crowd out a game or a call.

OpenWrt recommends CAKE as the more comprehensive option, with fq_codel as the lighter alternative when hardware capacity is a concern. Start with CAKE and only switch if the router CPU cannot keep up. Source: OpenWrt SQM guide , bufferbloat.net FAQs .

Do this test before touching the router, and repeat the exact same test after setup. Same computer, same Ethernet cable, same time of day if you can manage it.

If ping is already high when the line is idle, SQM will not help: that points at Wi-Fi, routing, or the distance to the server instead. See reduce ping for gaming for those causes.

SQM is an optional add-on package on OpenWrt, not installed by default. Check first that your router model is on the OpenWrt Table of Hardware, and note your WAN settings before changing firmware.

Source: OpenWrt SQM details, link layer adaptation , checked November 2026. If your line uses PPPoE or a mandatory VLAN, add its overhead on top of the table figure; the SQM details page explains the exact additions.

A household measures 96 Mbps down and 19 Mbps up on a wired test, a little under the 100/20 plan. The SQM values are 90 percent of the measured speeds, converted to kbit/s.

The speed test after setup will show about 86 Mbps down on the first row, not 96. That is the shaper doing its job, not a fault. The number to watch is ping under load, not the headline Mbps.

Repeat the Step 1 test exactly: same wired computer, same large transfer running, same speed test. Write the numbers next to the baseline.

Key points

Frequently asked questions

Steps

More from FastSpeedTest