Skip to content

How to fix bufferbloat

Updated

Worked example Example

A test measured 96.3 Mbit/s down and 11.8 Mbit/s up, with the queue in the upload. The starting values are below. They are where you begin, not where you stop.

Starting values from the example test
DirectionMeasuredStarting value (95%)In kbit/s
Download96.3 Mbit/s91.5 Mbit/s91,485
Upload11.8 Mbit/s11.2 Mbit/s11,210

1. Find which direction fills

Run the bufferbloat test, on a cable if you can, with the other devices idle. Look at which direction sets the final grade. A bad upload grade with a good download grade usually means the queue is in the upload path, in the router or the modem. Bad in both directions usually means there is no queue control, or that the slowest link on the path fills up either way. If latency at rest moves between phases, the line was not steady, which is usually Wi-Fi or another device: settle that first. Bufferbloat grades explained shows what each letter covers.

You do not need a command window or anything to install: the test runs in the browser, loads the line itself and compares the delay at rest with the delay under load. A ping typed into a Windows command prompt only shows the delay of whatever the line is doing at that moment; it does not load the line for you.

2. What queue control does

Queue control, or active queue management (AQM), keeps queues short instead of letting them fill. The IETF's RFC 7567 presents "a strong recommendation for testing, standardization, and widespread deployment of active queue management (AQM) in network devices". The common algorithms are CoDel, FQ-CoDel and PIE; all three RFCs have Experimental status, not Standards Track. CAKE is a Linux queue discipline that, in the words of its man page, "uses both AQM and FQ" and includes a shaper. The sqm-scripts project describes two ways to run queue control: the HTB shaper with fq_codel, or CAKE alone.

Why set a limit under the line rate? So the queue forms in your router, where the algorithm controls it, and not in the modem or the provider's equipment. That is our explanation of the setting, not a quote.

3. Starting values from your test

The Bufferbloat project's guide for CeroWrt 3.10, a historical guide whose page carries no date, says: "If you have done a good speed measurement, set the values to 95% of the measured speed." Measure with SQM turned off and with the network quiet. The same guide calls these "arbitrary values chosen to give you a good result on the first try" that you can increase later.

The project's current page, What Can I Do About Bufferbloat?, gives no percentage: measure without SQM, set the speeds to the measured values, and "keep running your speed test and adjusting the SQM speed settings until the latency remains low while achieving good speeds". Platforms differ too: OPNsense starts at 85% of the advertised speed and pfSense at the measured one. So read 95% as a first guess to measure again and adjust, never as the right setting.

Starting values calculator

Enter both speeds, measured with SQM turned off, to see the starting values.

Two cautions from the same guide. For cable, it warns that modem makers use a "Speedboost" that "usually gives you an extra 10 mbits or so for the first 10 seconds", so use a longer test than that; our full test loads each direction for 10 s, so on cable the measured speed may include the boost. For DSL it says to pick the ATM link layer with a per-packet overhead of 44 (any DSL or ADSL) or "Ethernet with overhead" with 8 (VDSL2), and "None (default)" for cable, fiber or direct Ethernet.

4. Does your router have queue control?

Check the maker's document, not the menu name: a "QoS" page may describe priority only, not queue control. The table gives only what each document says, read on 2026-11-15, not what the product does inside.

What each maker's own document says
MakerFeature, as the maker names itWhat the document saysSource
OPNsenseFQ_CoDel pipe scheduler. Firewall > Shaper > Pipes, then Queues and Rules.Bandwidth: "Set initially to 85% of ISP advertised BW, tune later". It starts from the advertised speed, not the measured one.OPNsense manual
pfSense (Netgate)FQ_CODEL limiter scheduler. Firewall > Traffic Shaper > Limiters, one for download and one for upload, plus a floating rule.Bandwidth: "Set equal to WAN download bandwidth (confirm via speed test first)". It starts from the measured speed.Netgate recipe
MikroTik RouterOSQueue types CoDel, FQ-Codel and CAKE (/queue type), available since RouterOS 7.1beta3.For CAKE: "In most cases, the configuration requires only a bandwidth parameter to get useful results". The page does not use the word bufferbloat.RouterOS Queues
eeroSmart Queue Management (SQM). eero app > Settings > Advanced networking > Network services > SQM."Smart Queue Management (SQM) can help reduce latency and improve quality for voice calls, video calls, and online gaming." Not available on eero Business or in bridge mode. The page names no algorithm and gives no speed limit.eero help article
ASUSAdaptive QoS, with the types Adaptive QoS, Traditional QoS and Bandwidth Limiter."Quality of Service (QoS) ensures bandwidth for high-priority tasks and applications." This is QoS by priority. The page does not mention fq_codel, CAKE or bufferbloat.ASUS FAQ
Netgear (Nighthawk Pro Gaming, such as XR300, XR500, XR700, XR1000)Anti-buffer bloat."... reserving a percentage of your overall Internet bandwidth for interactive applications like VoIP and online gaming." That is a bandwidth reservation, not queue control per flow. The article does not say how to turn it on.Netgear article
TP-LinkQoS. Advanced > QoS > Application Priority or Device Priority."Enable QoS, enter the upload and download bandwidth provided by your internet service provider." It is priority by app or device. The page does not mention fq_codel, CAKE or bufferbloat.TP-Link FAQ
Google Nest Wifi and WifiPrioritize device. Google Home app > Wifi > Devices."When you prioritize a device, it gets 70% of available bandwidth. All other devices share the remaining bandwidth." This is priority, not queue control. The pages do not mention queues or bufferbloat.Nest help, second article

We could not read Ubiquiti's UniFi documentation, so we say nothing about its Smart Queues. We found no Starlink document about queues or bufferbloat. We have not read OpenWrt's own manual page, so we do not quote its recommended values. If the box your provider supplies has no such setting, queue control has to run on a router you control, placed between that box and your devices; ask your provider how to turn the box's own routing off.

5. Measure again, then adjust

Run the same test again. Your previous result stays on screen as a dotted ghost behind the new trace, and Compare puts the two side by side per direction. bufferbloat.net says: "If the test shows latency below 15-25 msec, it means that bufferbloat is under control." OPNsense's guide says to keep adjusting "until the latency increases, then back off the setting" and to pick one test and keep using it. If the added delay is still high, lower the limits a little; if it is low and the speed is below what you need, raise them in small steps and test after each.

For links whose speed changes through the day, bufferbloat.net suggests cake-autorate and notes that "LTE, cable modems, and Starlink can all change throughput rates from morning to evening, or even from minute to minute".

6. When the router is not the problem

Wi-Fi adds delay of its own: repeat on a cable before blaming the line. On cable, RFC 8034 records that the DOCSIS 3.1 specification mandates an AQM (a PIE variant) in cable modems for upstream traffic. That is what the standard requires; it does not show that your modem runs it. For fibre equipment we found no comparable document, see Bufferbloat on fibre. To take a result to your provider, use Print the report on the result screen. For background on the word, see What is bufferbloat?

The starting percentage comes from Setting up SQM for CeroWrt 3.10 (bufferbloat.net), read on .

Other sources (the makers' documents are linked in the table), read on : bufferbloat.net, What Can I Do About Bufferbloat? (listed as updated 16 Feb 2026); RFC 7567 (BCP 197), July 2015; RFC 8289, CoDel, Experimental; RFC 8290, FQ-CoDel, Experimental; RFC 8033, PIE, Experimental; tc-cake(8) man page; sqm-scripts README; RFC 8034, DOCSIS-PIE, Informational.

Run the bufferbloat test

Questions

Can I fix bufferbloat without SQM?

Without queue control on the router the options are limited. You can lower the rate of the one app that fills the line, since most backup and sync apps have a speed setting, but that helps only for that app's traffic. The lasting answer is a router or firmware that has queue control, or a router you control behind the provider's box.

Is QoS the same as SQM?

Not necessarily. The ASUS, TP-Link and Google Nest documents we read describe QoS as priority for apps or devices, and Netgear's describes a reserved share of bandwidth. None of them describes fq_codel or CAKE. The Bufferbloat project's sqm-scripts run fq_codel or CAKE on a rate-limited link, which is a different mechanism.

Will SQM slow my connection?

A little, by design: the limit sits under the line rate so the queue forms in the router. The project guide says you may get very close to the rated upload after some tuning and about 95% of the real download speed, and that you need to measure repeatedly to get there. eero's page says you may see slower performance on certain devices.

Do I need a new router to fix bufferbloat?

Only if the one you have cannot do queue control. The ASUS, TP-Link and Google Nest documents we read describe priority QoS only. OPNsense, pfSense, MikroTik RouterOS and the sqm-scripts project document queue control, and eero has an SQM switch in its app, except on eero Business and in bridge mode.

What is the difference between fq_codel and CAKE?

fq_codel schedules packets and manages each queue, and the sqm-scripts pair it with a separate shaper called HTB. CAKE does the shaping and the queue management in one qdisc. The CAKE man page says most people only need to set the bandwidth parameter to get useful results.

How do I know the fix worked?

Run the same test again and compare. The direction that was bad should drop to a lower added delay, and the speeds should stay near the limits you set. If the delay is still high, lower the limits a little and test again.