To reduce bufferbloat on OpenWrt, install luci-app-sqm, turn off flow offloading if LuCI offers the setting, and enable Smart Queue Management (SQM) on your internet-facing device. In LuCI, pair cake with piece_of_cake.qos and start with upload and download limits just below your measured speeds. CAKE project guide · LuCI SQM settings · LuCI offloading settings · SQM rate guidance
Disable flow offloading and measure your line
In LuCI, open Network → Firewall → General Settings. If Routing/NAT Offloading is available, set Flow offloading type to None, then click Save & Apply. This turns off both software and hardware flow offloading. LuCI flags offloading as only partially compatible with SQM. Firewall menu · Offloading settings · Apply control
With SQM off and the network otherwise quiet, run a test that reports speed and latency at idle and during downloads and uploads. Record the download and upload speeds and the latency for each phase. Use the same test after enabling CAKE. SQM rate guidance · Bufferbloat test guide · Measurement and tuning guidance
Install SQM in LuCI
- Open the Software page. Software menu
- Click Update lists… and click Dismiss when the update finishes. Package manager controls
- Enter
luci-app-sqmin Filter. Click Install… next to that package, then confirm with Install. Package manager controls · CAKE installation guide
Configure CAKE on the WAN device
Open the Interfaces page and find the interface that connects to the internet. Note the device name if it is shown beneath that interface. You’ll use that device name in SQM. Interfaces menu · Interface device display · LuCI SQM settings · SQM setup guidance
Open Network → SQM QoS. If LuCI prompts you to start the service, click Enable SQM. Use the existing entry for your WAN device or click Add to create one. CAKE project guide · LuCI SQM settings · Add control
If your speed measurements are reliable, the Bufferbloat project’s CeroWrt guide suggests starting at 95% of each measured speed. For example, if your baseline is 100 Mbit/s down and 20 Mbit/s up, multiply each by 1,000 to get kbit/s, then by 0.95. That gives 95000 down and 19000 up. SQM rate guidance
| LuCI tab | Field | Value |
|---|---|---|
| Basic Settings | Enable this SQM instance. | Checked |
| Basic Settings | Interface name | The WAN device you identified |
| Basic Settings | Download speed (ingress) | Your download limit in kbit/s |
| Basic Settings | Upload speed (egress) | Your upload limit in kbit/s |
| Queue Discipline | Queueing discipline | cake |
| Queue Discipline | Queue setup script | piece_of_cake.qos |
If you need to account for framing, choose a Link layer under Link Layer Adaptation. Per Packet Overhead (bytes) is available for ATM and Ethernet with overhead. LuCI lists VDSL2 as an example for Ethernet with overhead. Click Save & Apply when your settings are ready. LuCI SQM fields and link-layer options · Apply control
Check latency under load
Run the same test with SQM enabled. Compare idle latency with latency during the download and upload phases, then compare those increases with your baseline. Lower increases mean less delay under load. Bufferbloat test guide · Measurement and tuning guidance
If latency still rises under load, try lowering the SQM speed limits. Click Save & Apply and retest after each change to find a balance between latency and throughput. LuCI SQM settings · Apply control · SQM tuning guide
Evidence and limits. The LuCI settings were checked against OpenWrt’s 25.12 LuCI branch, and the measurement method comes from Bufferbloat project guidance. The procedure was not run on a router for this guide. Sources checked November 26, 2026.