Bufferbloat: why your ping jumps when someone else downloads
Last updated · 6 min read
You're on 20 ms until someone at home starts a download, and then on 150 until it finishes. That's bufferbloat: a queue on your own line that fills whenever the line is busy, with your game waiting in it. You can test for it in a few minutes, and the fix is a router setting, if your router has it.
What bufferbloat is
Somewhere between your PC and the internet, the connection gets narrower. Your home network usually runs faster than the line your provider sells you, and the internet behind your provider faster still. Where the fast side meets the slow one, packets that arrive quicker than the line can carry them wait in a queue.
A short queue does no harm. The trouble is that downloads and uploads speed up until the line is full, then keep pushing, and the usual signal to back off is a lost packet. Equipment with a large buffer loses nothing for a long time, so the queue keeps growing, and your game's packets wait in it behind the download. That wait is added to your ping.
On the way out, the queue is in your router or modem. On the way in, it's at your provider's end of your line. Either way it's on your own connection, before your traffic has gone anywhere near the game.
How it feels in a game
The game is smooth while the house is quiet, then the ping on screen jumps by tens or hundreds of milliseconds, shots land late and voice chat breaks up until the transfer stops. If the queue overflows, lost packets come with it: Ping, jitter and packet loss explains what each does to a game. The usual triggers don't announce themselves:
- A launcher or a console downloading an update.
- A phone backing up its photos and videos as soon as they're taken.
- A cloud folder syncing, or a video going up to a streaming site.
Put your game's ping on screen (Lag and ping, game by game says where, for the games we've written about) and watch it while someone else uses the line. If it climbs and falls with them, this is your problem. If not, the other places a ping spike can start are worth a look.
How to test for it
Measure your ping with the line quiet, then again while it's full, once downloading and once uploading. Your ping at rest doesn't matter here. The rise does.
Waveform's bufferbloat test does all three in your browser and grades the larger of the two rises: A+ under 5 ms, A under 30, B under 60, C under 200, D under 400, and F above that. Waveform counts A+ to B as responsive under load, and warns that from a C the delay may be noticeable.
You can also watch it happen in Windows:
- Open a terminal (press Win, type
cmd, Enter), runping -t 1.1.1.1and note the usual time while nothing else uses the line. - Start a large download, such as a game update, and watch the times. Then do the same with an upload, such as a big file going to cloud storage. A speed test does both, one after the other.
- Stop it with Ctrl + C.
Times that climb while the line is busy and fall back once it's quiet are bufferbloat, and the rise reads on the same scale.
Run either test on a PC with a network cable if you can. Wi-Fi keeps queues of its own, and on a cable you see your line's. If the cable is clean and Wi-Fi isn't, Wi-Fi or Ethernet for gaming covers what helps.
Fix it in your router with smart queue management
The fix is a router feature usually called smart queue management, or SQM. It does two things:
- It holds your traffic a little below the line's real speed. That moves the queue into your router, where it can be managed, out of the modem or your provider's end, where you can't reach it.
- It keeps that queue short and fair. Each connection gets a small queue of its own, so your game's light traffic goes straight out instead of waiting behind a download's backlog.
OpenWrt, GL.iNet and eero call it SQM, and Ubiquiti's UniFi gateways call it Smart Queues. The method underneath is most often cake or fq_codel, and OpenWrt's and GL.iNet's documentation both recommend cake. To set it up:
- Run a speed test with SQM off and nothing else using the line, and note the download and upload speeds.
- Switch SQM on. If it asks, pick cake and enter about 90% of each measured speed: that's OpenWrt's starting point.
- Run the bufferbloat test again. If the grade is good and you entered speeds, you can raise them a little at a time until the ping starts to rise under load, then go back a step.
SQM generally can't run alongside a router's hardware acceleration: OpenWrt says to keep hardware offloading off, and GL.iNet's routers switch their acceleration off when SQM goes on.
If your router can't do it
- Check for a firmware update. GL.iNet, for one, added SQM to many of its routers in an update.
- Add a router that can. Plug it in behind your provider's box, with that box in modem or bridge mode if it offers one.
- Replace the firmware. OpenWrt has SQM as an add-on, for the routers it supports.
- Mind a line whose speed moves around, as 4G, 5G and satellite do: a fixed setting can't follow it. GL.iNet's Cake Autorate adjusts the limit as it goes, guided by small pings.
- Tame the triggers. Steam can cap its download speed and keep automatic updates to hours you choose (Steam > Settings > Downloads), and OneDrive can limit its upload and download rates.
Where NoSpike fits
NoSpike can't fix bufferbloat, and no route can: the queue is on your own line, before your traffic reaches any relay, so changing the route doesn't touch it.
What it can do is measure it. The app's Network check has a bufferbloat test: it pings the nearest of NoSpike's relays in Amsterdam, Copenhagen, Frankfurt, London, Madrid and Sweden for a few seconds at rest, then while the app downloads from and uploads to Cloudflare's speed test (never through a relay), and grades the larger rise on the same steps as Waveform's test. Keep everything else off the line while it runs. From a C down, it tells you it's bufferbloat and to turn on SQM in your router, set a little below your line's speed.
It fills your line on purpose, so it has a button of its own. It uses at most about 400 MB downloading and 150 MB uploading (each half also stops after ten seconds), and tells you afterwards how much it used: worth knowing on a plan with a data cap. You don't need Pro for it.
If your grade is good and a game still spikes, the delay comes from somewhere else: finding the cause of ping spikes shows where to look. The route to the game server is the part NoSpike was built for.
Frequently asked questions
Does a gaming router fix bufferbloat?
Only if it has smart queue management, switched on and set a little below your line's speed. Many routers sold for gaming have a QoS setting that only gives devices or games priority, which changes the order the router sends packets in. Without the speed limit, the queue still builds in the modem or at your provider's end, where that order doesn't reach.
Why is upload often worse than download?
Upload is usually the slower direction, often by a lot on cable and DSL, and a queue drains at the speed of the line it waits for. A quarter of a megabyte waiting adds about 10 ms in front of a 200 Mbit/s download, and about 100 ms in front of a 20 Mbit/s upload.
Will SQM slow my internet?
A little. Set at about 90% of your measured speed, it takes at least that tenth off your top speed in a speed test, and keeps the line responsive when it's busy. On a fast line it can cost more, because SQM runs on the router's processor: GL.iNet warns it may lower peak speed on fast connections, and Ubiquiti doesn't recommend its Smart Queues at 300 Mbit/s or more. If your speed with SQM on lands well below what you set, try fq_codel, which asks less of the router than cake.