Someone starts a big download, and your video call freezes. Your game shows a fine ping in the lobby, then starts rubber-banding the second a console update kicks off. Yet the speed test says you're getting every megabit you pay for.

Very often, that's bufferbloat. It's one of the most common causes of lag on a home connection, and it has very little to do with how fast your plan is. The good news is that the fix lives in your router, and it usually takes about fifteen minutes.

Below we cover what bufferbloat is, how to test for it in a couple of minutes, and how to fix it with SQM or QoS on ASUS, GL.iNet, OpenWrt and DD-WRT routers.

The short answer

Bufferbloat is the lag you get when your connection is busy. Data piles up in a queue in your modem or router, and anything that needs a quick reply, like a game or a call, waits at the back of the line. Test for it with a bufferbloat test that measures latency while the line is loaded. Fix it by turning on SQM with Cake (or QoS on routers that don't have SQM) and setting its speeds a little below what your line really delivers, so the queue forms in your router, where it can be kept short.

The basics

What is bufferbloat?

Every modem and router has buffers, small holding areas for data waiting to go out. A little buffering is a good thing. It smooths out bursts so nothing gets dropped.

The trouble starts when equipment holds far too much. When the connection gets busy, that buffer turns into a long line, and every packet has to wait its turn. Your game's next move, the audio in your call and even the lookup that starts loading a web page all sit at the back of the line behind someone's download.

Think of a store with one checkout and no express lane. You're holding a single bottle of water, and the person ahead of you has three full carts. The cashier isn't slow. You're just stuck behind a lot of stuff.

That's why bufferbloat feels like lag, not like slow internet. The download keeps going at full speed. Everything that needs a quick answer waits. A ping that sits around 15 ms on a quiet line can climb into the hundreds the moment someone starts a cloud backup.

Uploads are often the worst offender, especially on cable and other plans where upload speed is a small fraction of download. A phone backing up photos can fill a small upload pipe in seconds.

Signs of bufferbloat
What you noticeWhat's going on
Video calls freeze or sound robotic when someone uploadsThe upload queue is full
Game ping spikes when another device downloadsThe download queue is full
Web pages are slow to start loading during a big download, even though the speed test looks finePage and DNS requests are waiting in line
Ping is fine when idle but jumps during a speed testClassic bufferbloat

Speed vs lag

Will a faster internet plan fix bufferbloat?

Not on its own. Speed is how much data fits through the line. Lag is how long one packet waits. A faster plan gives you more room, so the line fills up less often, but a game download, a 4K stream or a cloud backup can still fill it. When it does, the same queue forms and the same lag comes back.

That's why people on gigabit fiber still complain about lag spikes, and why the fix is managing the queue, not buying more speed.

Step 1 · Test

How do I test for bufferbloat?

A normal speed test mostly tells you about speed. A bufferbloat test also measures your ping while the line is busy, which is the number that matters here.

  1. Plug a computer into the router with an Ethernet cable. Wi-Fi adds its own lag and makes the results hard to read.
  2. Pause what you can on the network. Streaming, game downloads and cloud backups on other devices will skew the test.
  3. Run a bufferbloat test. The Waveform Bufferbloat Test measures your ping while idle, while downloading and while uploading, and gives you a letter grade. The Cloudflare speed test also shows latency under load.
  4. Look at how much the ping goes up, not the download speed. Write down the idle ping and the increase during download and upload.
  5. Run it two or three times, including once in the evening when your neighborhood is busiest.
Reading your result (a rough guide)
Ping increase under loadWhat it meansWhat to do
A few millisecondsLittle or no bufferbloatNothing to fix
Tens of millisecondsMild bufferbloatWorth fixing if you game or take a lot of calls
100 ms or moreClear bufferbloatTurn on SQM or QoS

On the Waveform test, aim for an A or A+. If your upload result is much worse than your download, that's normal for bufferbloat, and it's usually where the fix makes the biggest difference.

From our support desk

On very fast plans, browser-based tests get noisy, and a single run can look worse or better than reality. Run the test a few times and go by the typical result, not the one bad run.

Step 2 · The fix

How do SQM and QoS fix bufferbloat?

The trick is moving the line. The big buffers sit in your modem and your provider's equipment, and you can't change those. What you can do is tell your router to send and receive slightly slower than the line can handle. Now the queue forms in your router instead, and your router can be smart about it.

SQM (Smart Queue Management) does exactly that. It holds traffic to a speed you set and uses a queue manager like Cake or fq_codel to keep the line short and give every connection a fair turn. A big download can't crowd out your game, because the game's packets don't have to wait behind it.

Classic QoS (Quality of Service) works differently. It sorts traffic into priority classes, so one device or app goes first. That helps when you need to guarantee something, but you have to tell it what matters, and on its own it doesn't keep the queue short.

SQM vs classic QoS
SQM (Cake or fq_codel)Classic QoS
What it doesKeeps queues short and shares the line fairlyPuts chosen traffic ahead of the rest
SetupEnter two speeds and pick CakeBuild priority rules by device, app or port
Best forBufferbloat, gaming, calls, busy householdsMaking sure one device or app always comes first
Where you'll find itOpenWrt, GL.iNet, Asuswrt-Merlin (Cake)Stock ASUS firmware, DD-WRT and most other routers

There is a catch. Shaping traffic is work for the router's processor, and on many routers turning it on also switches off speed features like hardware acceleration. On a fast plan, an older router may not keep up, and you'll see a lower top speed. For most people that's a good trade for calls and games that just work, but it's worth knowing going in.

Step 3 · The numbers

What download and upload speed should I enter?

This is the setting that makes or breaks it. Set the numbers too high and the queue goes back to your modem, so nothing changes. Set them too low and you give away speed for no reason.

  • Measure with QoS or SQM turned off. Use a wired computer and run the test a few times. Use the speed you get consistently, not the best run.
  • Start at about 90% of your measured download and upload. OpenWrt's guide recommends 90%. DD-WRT's guide suggests starting at 80% and never going above 95%.
  • Run the bufferbloat test again. If the ping still climbs under load, take another 5% off the direction that's still bad. Upload usually needs the bigger cut.
  • Once it's clean, you can creep back up a little at a time. When the lag starts to return, go back one step.

One gotcha with cable internet: some providers give you a short burst of extra speed at the start of a test. If you set your numbers from that burst, they'll be too high once the line settles down.

From our support desk

On Starlink and 5G home internet, the line speed moves around during the day, so one fixed number is always a compromise. Set it for the busier times of day. GL.iNet routers on firmware 4.11 or later have Cake Autorate, which adjusts the setting as your speed changes.

Go deeper

Setup · ASUS and Merlin

How do I fix bufferbloat on an ASUS router?

On stock ASUS firmware, QoS lives under Adaptive QoS in the left-hand menu. Newer models call it Adaptive QoE. Turn QoS on, then pick a type:

  • Adaptive QoS puts traffic first by category, like gaming, streaming, video calls and work from home. It's the easiest place to start.
  • Traditional QoS lets you set a minimum and maximum bandwidth and a priority for each kind of service.
  • Bandwidth Limiter caps the speed of individual devices, up to 32 of them. Handy for a device that hogs the line.

ASUS only runs one of these at a time. Pick the one that fits, apply it, and run the bufferbloat test again to see if it helped.

On Asuswrt-Merlin, you get one more option. Merlin adds Cake SQM to the QoS settings on newer models, and that's the one we'd reach for to fix bufferbloat. Choose Cake, enter your speeds at about 90% of what you measured, apply, and retest.

Go deeper

Setup · GL.iNet and OpenWrt

How do I turn on SQM on GL.iNet or OpenWrt?

GL.iNet routers (firmware 4.9 or later) have SQM right in the admin panel, including the Flint 3 and Slate 7:

  1. Open the admin panel and go to Flow Control, then SQM.
  2. Enter your upload and download speeds in Mbps. On firmware 4.11 or later, Run Speedtest fills them in for you. Bring them down to about 90% if they're the raw results.
  3. Set the queue discipline to cake, which is GL.iNet's recommended choice.
  4. Apply, then run the bufferbloat test again.

Turning SQM on switches off GL.iNet's Network Acceleration, and you can't run SQM and GL.iNet's separate QoS feature at the same time. SQM also covers traffic going through the router's VPN client.

OpenWrt uses the luci-app-sqm package:

  1. Install luci-app-sqm from the software page, then go to Network, then SQM QoS.
  2. On the Basic Settings tab, check Enable, pick your internet (WAN) interface, and enter download and upload at 90% of what you measured.
  3. On the Queue Discipline tab, choose cake and the piece_of_cake.qos script.
  4. On the Link Layer Adaptation tab, pick your connection type. OpenWrt's SQM guide lists the right values for cable, fiber and DSL. If you're not sure, it suggests Ethernet with an overhead of 44.
  5. Click Save & Apply, and make sure hardware flow offloading is off under Network, then Firewall. Software flow offloading is fine.

From our support desk

If an older OpenWrt router can't keep up with Cake at your speed, try fq_codel. It's lighter on the processor, though not quite as thorough.

Go deeper

Setup · DD-WRT

How do I set up QoS in DD-WRT?

If you came here looking for our old DD-WRT QoS walkthrough, this is the updated version. DD-WRT doesn't use the name SQM, but its QoS page can do much the same job when you choose the fq_codel queue. Menus vary a little between builds, so use this as a map.

  1. Log in to the router and open NAT/QoS, then the QoS tab.
  2. Check Enable and leave Port set to WAN.
  3. For Packet Scheduler, choose HTB if you see a Queuing Discipline option below it. If you don't, use HFSC.
  4. Set Queuing Discipline to FQ_CODEL.
  5. Enter Downlink and Uplink in kbps (1 Mbps is 1,000 kbps). Start at about 80% of your measured speeds and stay at or below 95%.
  6. Click Save, then Apply Settings, and run the bufferbloat test again.

That alone fixes most lag. If you also want certain traffic to go first, DD-WRT has five priority classes. From highest to lowest they're Maximum, Premium, Express, Standard and Bulk. Anything you don't assign lands in Standard, and Bulk mostly gets what's left over when the line is busy, which makes it a good home for big downloads.

  • MAC Priority ranks one device, like a game console or a work laptop. You'll find each device's MAC address in the router's list of connected clients.
  • Netmask Priority ranks an IP address or a range. For a single address, end it in /32. Be careful with /0, which matches every device.
  • Services Priority ranks an app or a port range, like a video calling service.

If two rules disagree, DD-WRT applies the MAC rule first, then netmask, then interface, then services.

On routers that have it, turning QoS on also disables DD-WRT's Shortcut Forwarding Engine (SFE), a speed feature. On a fast plan, expect a lower top speed with QoS on.

From our support desk

Use Maximum sparingly. If everything is a priority, nothing is. In most homes, fq_codel with sensible speed limits does more for lag than a long list of rules.

Go deeper

VPN routers

Does SQM work with a VPN on the router?

Yes. SQM shapes traffic as it leaves through your internet port, and with the VPN running on the router, that's the encrypted tunnel traffic. GL.iNet's documentation says outright that its SQM covers traffic from the router's VPN client.

Two things to keep in mind. First, the VPN and SQM both run on the router's processor. On a fast plan, an older router may not manage both at full speed. WireGuard or NordLynx leave far more room than OpenVPN. Second, the VPN adds a little extra data to every packet, so if lag creeps back with the VPN on, take a little more off your upload setting.

It also helps to know what a VPN can't fix. A faraway VPN server adds steady lag all the time. Bufferbloat is the extra lag that shows up only when your line is busy. If your ping is high even on a quiet line, pick a closer server. If it only spikes during downloads, it's bufferbloat.

From our support desk

For the lowest ping in online games, consider leaving the console off the VPN with policy-based routing, and give it priority with SQM or QoS.

Go deeper

When it's not the line

What if the lag only happens on Wi-Fi?

If the wired test is clean and the lag only shows up on Wi-Fi, the queue is in the wireless link, not your internet line. SQM on the internet side won't fix that.

  • Plug in the devices that matter most. A game console or a desk computer on Ethernet sidesteps Wi-Fi lag entirely.
  • Use the 5 GHz or 6 GHz band and get closer to the router. A weak signal means retries, and retries mean lag.
  • Check the device. An older phone or console on an older Wi-Fi standard can drag down its own connection.

Go deeper

When the router is the limit

When does it make sense to upgrade the router?

If your router has no SQM or QoS at all, or it can't shape traffic at your plan's speed without falling well short, it's time for faster hardware. Look for SQM with Cake, a processor that can keep up with your plan, and WireGuard or NordLynx if you run a VPN.

Every router we sell is tested in our office before it ships, and we can help you pick one that fits your plan speed and what you use the connection for.

SQM built in

GL.iNet Flint 3

Wi-Fi 7 with SQM and Cake right in GL.iNet's admin panel, plus WireGuard, OpenVPN and a choice of which devices use the VPN.

See the Flint 3

Cake QoS

ASUS routers with Merlin

Asuswrt-Merlin installed and ready, with Cake QoS on newer models, VPN Director and the tools power users want.

See our Merlin routers

Want more options? See The Best Open-Source VPN Routers to Buy in 2026, or take the Router Quiz and we'll suggest one.

FAQ

Frequently asked questions

What is a good bufferbloat test result?

Your ping should go up by only a few milliseconds while the line is busy. On the Waveform Bufferbloat Test, that means an A or A+ grade. If your ping jumps by 100 ms or more during the download or upload part of the test, you have bufferbloat worth fixing.

Does bufferbloat cause lag in online games?

Yes, and it's one of the most common causes on a home connection. Games send small packets that need a quick reply. When another device fills the line, those packets wait in a queue and your ping spikes. SQM with Cake, plus a wired connection for the console, fixes most of it.

Should I use Cake or fq_codel?

Use Cake if your router offers it and can keep up at your speed. It's the more complete option for bufferbloat. fq_codel is lighter on the processor, so it's a good choice on older routers or very fast plans where Cake costs too much speed.

Does SQM slow down my internet?

A little, on purpose. You set it slightly below your line's real speed, so your top speed drops by around 10%. On some routers it also turns off hardware acceleration, which can lower top speed further on fast plans. In exchange, calls, games and browsing stay responsive when the line is busy.

Is QoS the same as SQM?

Not quite. Classic QoS puts some traffic ahead of other traffic based on rules you set. SQM keeps queues short and shares the line fairly without needing a rulebook. SQM is usually the better fix for bufferbloat, and some routers let you combine the two.

Can my internet provider fix bufferbloat?

Some newer cable modems and provider networks handle queues better than older ones, but you can't control that. Setting up SQM or QoS on your own router fixes it from your side, whatever equipment your provider uses.

For everything else about VPN routers, from setup behind your ISP's box to picking a provider, see our VPN Router Guide.

Still fighting lag?

Tell us your internet plan, your router and what's lagging, and our US-based experts will help you sort it out. Shopping for a router that can handle SQM at your speed? The quiz will point you to one.

Talk to an expertTake the Router Quiz

100,000+ Routers Shipped · 15+ Years of VPN Expertise · Official NordVPN Partner · US-Based Experts

About the author

Joe S.

Co-Founder · FlashRouters

Joe S. co-founded FlashRouters in 2011 and leads sales and marketing. Joe has spent more than 15 years working with VPN providers and open-source router firmware, and writes about router security, VPNs and keeping a whole home private without making it complicated.

More from Joe (58) → How we write & fact-check