What Can I Do About Bufferbloat?

Bufferbloat is high latency (or lag) that occurs when there’s other traffic on your network. This means that your network isn’t always responsive - it’s wasting your time.

How does bufferbloat apply to me?

Watch the Home Internet Connections Are Unfair! (Bufferbloat) video which gives an intuitive description of Bufferbloat. Or read the more detailed Best Bufferbloat Analogy - Ever blog post.

OK - How do I get rid of Bufferbloat?

1. Measure the Bufferbloat: Use any of the tests below that measure latency both when the line is idle and during upload or download traffic.

If the latency increases when there’s traffic, you have bufferbloat. If the increase is small (less than 20-30 msec), bufferbloat is well under control. For more details about testing, read the Tests for Bufferbloat page.

2. Possible Solutions: There are lots of ways to throw time or money at this problem. Most won’t work.

  • Your ISP would love to sell you a faster connection, but link speed isn’t the problem - it’s your router buffering more data than necessary. This adds delay that can never be cured by faster transmission rates.
  • Buying an expensive router (even one for “gaming”) won’t necessarily help, since many commercial, off-the-shelf router manufacturers are clueless about excess buffering in their routers.
  • Twiddling the router’s QoS might make a difference, but it’s a hassle, and only helps a bit.

Instead…

3. Take Control of Your Network: No one else (not your router manufacturer, not your ISP) has a strong incentive to fix Bufferbloat. But once you take control, the network will stay fixed for all time, and you can adapt to changing practices at your ISP or other vendors.

You need to find a router vendor that understands the relationship between latency/responsiveness and bufferbloat, and has firmware that uses one of the Smart Queue Management algorithms such as cake, fq_codel, PIE, or others to eliminate it. Here are some options, from easy to harder:

  • Enable SQM settings if your router already has them.

    First, measure the link speed without SQM using one of the speed tests above. Then turn on SQM, setting the up and down speed to the measured values above. Keep running your speed test and adjusting the SQM speed settings until the latency remains low while achieving good speeds. See, for example, this description of a tuning session.

  • Install an off-the-shelf router with SQM Several commercial router vendors have a clue. Here is a list of those we have found:

  • Upgrade your current router with custom firmware. All the projects below support some kind of queue management based on FQ-CoDel and/or Cake.

  • Call your router vendor’s support line if none of the above are possible. You have the information from the latency tests. Mention that the ping times get really high when someone is up/downloading files, and that it really hurts your network performance. Ask if they’re working on the problem. Ask when they’re going to release a firmware update that solves it.

  • Consider cake-autorate for variable-rate ISP links. LTE, cable modems, and Starlink can all change rate from morning to evening, or even from minute to minute. The cake-autorate algorithm adapts to the current conditions to minimize latency.

Your network’s responsiveness is in your hands…

Read More…

To edit this page, submit a pull request to the Github repository.
RSS feed

Recent Updates

Jul 21, 2024 Wiki page
cake-autorate
Jul 21, 2024 Wiki page
What Can I Do About Bufferbloat?
Jul 21, 2024 Wiki page
Tests for Bufferbloat
Jul 1, 2024 Wiki page
RRUL Chart Explanation
Dec 3, 2022 Wiki page
Codel Wiki

Find us elsewhere

Bufferbloat Mailing Lists
#bufferbloat on Twitter
Google+ group
Archived Bufferbloat pages from the Wayback Machine

Sponsors

Comcast Research Innovation Fund
Nlnet Foundation
Shuttleworth Foundation
GoFundMe

Bufferbloat Related Projects

OpenWrt Project
Congestion Control Blog
Flent Network Test Suite
Sqm-Scripts
The Cake shaper
AQMs in BSD
IETF AQM WG
CeroWrt (where it all started)

Network Performance Related Resources


Jim Gettys' Blog - The chairman of the Fjord
Toke's Blog - Karlstad University's work on bloat
Voip Users Conference - Weekly Videoconference mostly about voip
Candelatech - A wifi testing company that "gets it".