r/HomeNetworking • • 3d ago

how to reduce bufferbloat

Not sure if this is the right subreddit to post this, but i know you might be able to help me guys. I have been suffering from bufferbloat for some time now, but i didn't know it existed util yesterday. I have been wondering, why my games rubberband and some guy in reddit recommended doing waveform bufferbloat test. Did it and got a D

Absolutely insane no wonder why i struggle with bad ping, rubberbanding etc. Yesterday during the peak hours, results was even worse, Upload active was somewhere close to +350ms

Did quite bit of research but wasnt able to come up with any conclusions about how tto reduce it other than just straight up buying new router that supports SQM. My router does not seem to support SQM or QoS. I ain't a network savvy, but i know quite a bit about tech, so open to make modifications if necessary.

9 Upvotes

23 comments sorted by

9

u/mantrain42 3d ago

It might help if you gave some info on which type of router you have, what internet connection you have, what your home LAN is like and who you share with.

2

u/NewtDisastrous2373 3d ago

yeah my bad, router is BROVI H158-381, i have 400mbps, at home basically pc connected via LAN to router, and all the other stuff is wireless. Tried to unenable all the other connections, but did hardly any difference

5

u/zekica 2d ago

This is a rebranded Huawei 5G home router.

With 5G (especially in NSA configuration), it's expected to have bufferbloat, and you'll never get A+ in their test.

There are only three things you can do:

  • switch to a Fiber or even coax cable provider as these (ISP provided) routers have much smaller buffers resulting in score "A"
  • disable all other devices and even windows updates when gaming
  • purchase a second router that will try mitigating the issue

If you go with the last option, you will have to remember:

  • the second router is going to be your main router - all devices need to be connected to it and not the Brovi one - it is best to disable Brovi's wifi completely
  • you connect the 5G router and your second router with ethernet
  • you connect your gaming PC with ethernet to the second router

Then you configure SQM on the second router and have a greatly reduced bufferbloat.

At a cousin's place, they use a similar (two device - 5G router and a second router) setup and their idle latency is 15ms and loaded (for both download and upload) goes up to 25ms which is acceptable for everything except competitive FPS.

1

u/NewtDisastrous2373 2d ago

Might be a dumb question, but what is the point of two router setup? Would it be more effective to buy new one and ditch the old one, or buy another router that supports SQM?

1

u/zekica 2d ago

The one you have has a really good 5G modem integrated.

The second router you buy can cost you $50-100 while the cheapest router with a 5G modem integrated is at least $150 or more.

Also, their router is provisioned with APN settings which you'll have to enter them manually.

1

u/NewtDisastrous2373 2d ago

Okay that makes sense, thanks for explaining. Do you have any suggestions about what router should i buy?

5

u/TheEthyr 2d ago

A bad bufferbloat score doesn't necessarily lead to high gaming latency. Regular gaming uses relatively little bandwidth(a few Mbps, but see exception, below), so you should be seeing closer to Unload latencies (i.e. 32 ms, as reported by the bufferbloat test).

High latencies occur when your Internet connection is maxed out. You will obviously want to avoid that when playing. Don't run any big downloads/uploads.

32 ms isn't great, either, but this is the latency to the bufferbloat server. Your latency to the game server will be different and may be higher. Try to run a ping or tracert to the game server's IP address while playing.

Cloud gaming (e.g. Nvidia Geforce Now) uses more bandwidth, around 20 Mbps to 50 Mbps, depending on the graphics settings. Even then, that's below your Internet plan, so it still shouldn't be a problem.

1

u/NewtDisastrous2373 2d ago

I never run any updates while gaming, anjd try to reduce all other activites during gaming also. Yet, i still wasnt able to get it below D. As a matter of fact, did the test again just now and score fell to F, +402ms active upload. I ain't exactly sure what the bufferbloat actually means, and if im paying too much attention to it, but nothing i tried so far has made a significant change. Idk if i should straight up buy new router. My connection is never even nearly being maxed out during gaming, but connection still lags.

1

u/TheEthyr 1d ago

Don't pay much attention to bufferbloat with respect to gaming. The only way it can affect your gaming is when your Internet connection is maxed out. Otherwise, bufferbloat is not the issue.

See if your router maintains statistics about bandwidth usage. This will help you confirm that there are no other activities during gaming. If you have smartphones that back up to the cloud (e.g. iCloud, Google Cloud, etc.), then be sure those don't run when you least expect. If someone is watching Netflix, YouTube or something similar, then they download data in bursts that can temporarily max out your Internet connection.

You need to run tracert tests to the game server. Pingplotter is a popular tool. It sends continuous tracert probes to measure latency along the whole path between you and the game server. It can help you pinpoint where latency spikes. If it's your Internet connection, well, then there may be a problem that your ISP can tackle. OTOH, if the latency spikes somewhere in the Internet, then there's nothing you can do directly to fix that. You can try using a VPN in the hopes of avoiding the congestion, but there's no guarantee that it will work.

But you first need to run Pingplotter tests to get some data to work with. You really don't want to be throwing money at a problem until you understand the root cause.

1

u/feel-the-avocado 3d ago

Log into the webgui of your router (one not supplied by an ISP) and see if it has a QoS or bandwidth setting. Most do. Set it to 80% of your ISP service plan download and upload limits.

1

u/NewtDisastrous2373 3d ago

I tried to search everywhere, but seems like my router supports neither of those

0

u/feel-the-avocado 2d ago

Okay so then you just need to limit your uploading and downloading during a game so as to not fill the pipe. Consider each pipe (wifi link to end devices) and (isp connection) and make sure neither reaches capacity from other programs transferring data at the same time or on other devices.

You could install a program on other computers to limit the throughput of their network interfaces.

1

u/NewtDisastrous2373 2d ago

idk what's wrong with my router, but i tried to block almost all other activity straight from wwebui, but it did basically nothing. Bufferfloat reduced a bit, but wasnt able to get it under D score

1

u/feel-the-avocado 2d ago

The test deliberately fills the pipe with large packets then tries to send a small packet to see how well it gets through.

Just dont fill the pipe with large packets (eg. background downloads, other devices transferring data, doing a bufferbloat test) and the small gaming packets should get through fine.

The test is to see how your connection handles a full pipe of maxed out bandwidth. Just dont fill it when your gaming if your router cant manage the traffic for you.

1

u/lintstah1337 2d ago

There are two types of SQM, FQ-Codel and Cake.

FQ-Codel is the less sophisticated and is available on Ubiquiti, OpnSense

CAKE is the better version and is available on OpenWRT, Eero 5 and Eero 7, Gli.Net

SQM is very cpu intensive and the faster your internet speed is the more need for a faster CPU on the router.

A good cheap router would be something like a Nanopi R3S LTS + switch + access point.

Another good option is Gli.net flint 2 or Flint 4. (Flint 3 has slower cpu).

1

u/NewtDisastrous2373 2d ago

Already asked from anoter redditor, but what is the point of two router setup? If i buy new router and connect all my devices to that, then what is the point keeping the old BROVI router?

1

u/lintstah1337 2d ago

You don't need a two router setup (assuming your old router is not also acting as a modem) and you can ditch your old one.

Also most router is actually an all in one device that combines a router, a switch and an access point.

1

u/S1N7H3T1C 3d ago

I think you already knew the answer before you posted this.

Quality router will have quality configurations to alleviate this.

1

u/llitz 2d ago

for my home needs, I am just using something that supports pie for both downloads and uploads, out of consistent 940mbps I only capped at 920 and it works perfectly.

I can start a download at almost the line speed and gaming sessions going in parallel on meeting calls do not lag.

1

u/sunbearnz 1d ago

Sorry, you’ll need Cake-autorate running on OpenWrt. its SQM for wireless connections. by default it’ll target +30ms of latency on UL/DL. it can be tuned lower, i found 25ms to be good. when Cell congestion is fine and other factors. you can get A+ just like how starlink does. and it’s not realistic to expect fiber like stability anyhow, as wireless is inconsistent and with cake-autorate working well most the time a B is the most typical score i had on 4G B3 1600mhz -99dBm on waveform test. but i will say not everyone would get a similar result. different MNOs may run their network differently. i ran a couple tests and getting A+/A isn’t really working as it used to be consistent. degraded performance after cell tower maintenance on a MVNO. keep things short some Gl iNet have the most polished OOBE with cake-autorate being built in on some and it skirts on enthusiast / power user simplified as other toggles such as unifi or eero don’t have cake-autorate the one that helps wireless networks. you will double NAT yourself trying a new router, might be a no brainer for your use case and getting into terminal installing scripts doesn’t make life simpler. hope that helps

0

u/wicked_one_at 2d ago

Easy… don’t fill the buffer while gaming.

1

u/NewtDisastrous2373 2d ago

Tried to do that by disabeling almoist all other internet connections via my routers webUI, but made hardly any difference.

0

u/wicked_one_at 1d ago

Looks like no issue then with the Internet on your Side

Your Bandwidth is more than enough and as long as you only game and nothing else consumes a lot of your bandwidth, bufferbloat does not happen.

You have a direct link to your router with a Ethernet cable? No switches, powerline or selfmade patches?

Then most likely, there is a bottleneck between you and the gameserver, on provider level