Skip to content

What is bufferbloat? Lag when your internet is busy, and how to fix it

Bufferbloat is lag that appears when your connection is busy: ping jumps while something downloads or uploads. How to test it, read the grade and fix it.

Published 10 min read

The short answer

Bufferbloat is the lag you get when your internet connection is busy. While something large downloads or uploads, data piles up in a queue, usually in your router or modem, and everything else has to wait behind it. Your ping jumps, so video calls freeze and games lag, even on a fast plan. The usual fix is a router setting called Smart Queue Management (SQM), which keeps that queue short.

You may know the feeling: the connection seems fine until someone starts a cloud backup or a game update, and then the video call stutters. An ordinary speed test can miss it, because it measures ping before the line is busy. This guide explains what is happening, how to measure it, and what you can do about it.

What is bufferbloat?

The bufferbloat project, run by the engineers who studied the problem, defines it as “the undesirable latency that comes from a router or other network equipment buffering too much data”.

Every router and modem has buffers: memory that holds data for a moment when it arrives faster than it can be sent on. A short buffer absorbs brief bursts, and that is useful. Trouble starts when a buffer is large and stays full. Jim Gettys and Kathleen Nichols, who named the problem, describe it as “the existence of excessively large and frequently full buffers inside the network”.

A queue at the checkout

Think of a supermarket with one till. If one shopper arrives with three full trolleys, everyone behind them waits, even the person buying a single bottle of water. On your connection, the trolleys are a game update or a photo backup, and the bottle of water is the small packet your video call or game needs to send right now.

Gettys found the problem on his own home line. It normally answered in less than 10 milliseconds, but while he uploaded a large file, he measured more than 1.2 seconds of latency. Van Jacobson and Kathleen Nichols put the difference this way: a “good queue is occupancy that goes away in about one RTT; bad queue persists for several RTTs”. An RTT is one round trip, the time a packet takes to reach the other end and come back.

Why lag matters more than speed for calls and games

Speed, in Mbps, says how much data your line carries each second. Latency, which a speed test shows as ping, says how long one piece of data takes to arrive and be answered. A film needs speed and copes well with delay, because the player loads ahead. A call or a game needs every small packet on time.

Bufferbloat adds delay on top of your normal ping, and only while the line is busy. That is why a connection can test fast in the morning and still make every evening call painful.

What fills the queue

A queue builds at the slowest point between you and the internet. Gettys and Nichols name the usual suspects: “the operating system, wireless link, and broadband service”.

  • Uploads. Most home lines upload much more slowly than they download, so the upload side fills first. Gettys warned the IETF that “uploads may often be worse than downloads”, and listed file copies, backups and video uploads among the triggers. Cloud photo backup is a common one on phones.
  • Big downloads. Game and system updates, and several screens streaming at once.
  • Wi-Fi. When the signal is weak, the Wi-Fi link itself can become the slowest point, and a queue builds there too.

The size of the buffer and the speed of the link decide how long the wait gets. Gettys worked out that “a 3-Mbps uplink would take 340 ms to empty a 128-KB buffer”.

How to test for bufferbloat

Measure ping twice: once while the line is quiet, and once while it is busy. The difference is the bufferbloat. Netflix’s test, FAST, calls the second number loaded latency, which “measures the round-trip time when data-heavy applications are being used on the network”, and says that ideally the two values should be close to each other.

The lag grade in Jango Speed Test

Jango Speed Test measures ping before the test, then keeps sending a ping about four times a second while the download runs, and again while the upload runs. It skips the first second of each phase, while the line ramps up, and takes the middle value (the median). The grade comes from the larger of the two rises:

GradePing rises byWhat to expect while the line is busy
A+less than 5 msNo noticeable lag.
A5 ms to under 30 msCalls and games should stay smooth.
B30 ms to under 60 msCalls are fine. Fast games may feel slightly behind.
C60 ms to under 200 msCalls may lag and games stutter.
D200 ms to under 400 msCalls break up and games lag badly.
F400 ms or moreAnything live is hard to use.

The steps follow the bufferbloat scale of the DSLReports and Waveform tests, so grades from those tests are comparable. The right-hand column is a rough guide, not a promise. The bufferbloat project’s own rule of thumb is that a rise “above 50 msec, or a grade lower than ‘B’” points to a problem worth fixing.

Other tools

Make the test count

  • Test once close to the router, and if you can, once on a computer connected by cable. A good grade on cable and a bad one on Wi-Fi means the Wi-Fi is the bottleneck, not your line.
  • Test at different times of day, and once while someone else uses the connection as usual.
  • A test can use a lot of data on a fast line. On mobile data, the app’s “Use less data on mobile” setting keeps each test shorter.

How to fix bufferbloat

1. Turn on Smart Queue Management (SQM)

The real fix is a router that manages its queue. Active queue management keeps the queue short by dropping or marking a few packets early, which tells the sending computer to slow down before the queue grows. Fair queuing gives each connection its turn, so one big upload cannot hold up your call. Gettys and Nichols concluded that “AQM is essential for broadband service, home routers, and even operating systems”. Routers sell it under different names:

SQM works best when it knows your line speed. The bufferbloat project’s method: measure your speed with SQM off, enter those download and upload speeds, then lower them in small steps “until the latency remains low”. Run the lag test after each change. Keeping the line just below full speed costs a little top speed: GL.iNet notes that SQM “may reduce peak throughput”. In exchange, the lag stays low when the line is busy.

2. Quick fixes while you play or call

  • Pause cloud photo and video backup, and large downloads, during calls and games.
  • Set game consoles and computers to download updates at night.
  • Connect a console or computer to the router with a cable when you can.
  • If the Wi-Fi signal is weak, move closer to the router, or add a mesh point or access point.

3. Prioritising a device is not the same thing

Many routers can prioritise a device or an app. Google Nest Wifi, for example, gives a prioritised device “70% of available bandwidth”. That decides who gets the speed. It does not keep the queue in the modem short, so other traffic can still fill it. If your router offers both, SQM is the one that targets bufferbloat.

4. Check your modem and ask your provider

For the curious: the queue managers behind SQM

  • CoDel (RFC 8289) watches how long packets wait. Its target “SHOULD be set to 5 ms”, and it “requires no configuration in normal Internet deployments”.
  • FQ-CoDel (RFC 8290) adds fair queuing to CoDel. It is the default queue in a number of Linux distributions, among them OpenWrt, the router software.
  • PIE (RFC 8033) aims for 15 ms of queuing delay. DOCSIS-PIE is its version for cable modems.
  • CAKE was designed for home routers and has been part of Linux since version 4.19, released in October 2018.
  • L4S (RFC 9330) aims for queuing delay of “less than 1 millisecond (ms) on average”.

Questions and answers

Is bufferbloat the same as high ping?

No. High ping all the time usually comes from distance, the route to the server or a weak Wi-Fi signal. Bufferbloat is extra ping that appears only while your connection is busy and goes away when it is quiet. A lag test measures both, so you can tell them apart.

Will a faster internet plan fix bufferbloat?

Not always. The queue builds whenever something fills the line. On a faster plan that happens less often, but a big upload or download can still fill it, and upload is often the slower direction. Smart Queue Management fixes the queue itself.

Does a VPN fix bufferbloat?

No. The queue is in your router or modem, and VPN traffic waits in it like any other traffic. A VPN can also add a little delay of its own, because your traffic travels through the VPN server.

Can Wi-Fi cause bufferbloat?

Yes. When the signal is weak, the Wi-Fi link can be the slowest part of the path, and a queue builds there too. Compare a test next to the router with a test on a computer connected by cable to see where the lag comes from.

What lag grade do I need for online gaming?

A+ or A. With those, ping hardly rises while others use the connection. The bufferbloat project treats a rise of more than 50 ms, or a grade below B, as a problem worth fixing.

Does SQM slow down my internet?

A little, on purpose. SQM keeps the line just below its full speed, so the queue stays in the router, where it can be kept short. You give up some top speed for much lower lag when the line is busy, and you can tune the setting to find your balance.

Keep reading

Check your own connection

Jango Speed Test measures your speed and how much your connection lags when busy, checks your Wi-Fi, and keeps a dated report of your tests. For Android, free with ads.

Coming soon to Google PlayAbout the app