I recently found this on Reddit while looking into why jellyfin is effected so much by latency. I found that this worked and thought I would share it because it is generally applicable, takes five minutes to setup, and helps a lot with bandwidth on higher latency connections. I admit I am not sure of the technical stuff behind this, so if anyone would like to chime in that would be much appreciated.
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.
Rules:
Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.
No spam posting.
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.
Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
No trolling.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Cool writeup. I remember implementing BBR many years ago when I was trying to bypass the Great Firewall for an extended stay. Helped deal greatly with the huge congestion on Chinanet backbone at the time, but it’s less of an issue these days now that foreigners can use CN2.
Sorry, what is CN2?
If it’s any solution CCP provides, I wouldn’t trust it anyway
The great firewall situation was always interesting, because if you would use a roaming Sim, then you will be able to access anything
Roaming SIMs work because the APN sets a network routing path outside of China.
Are there any downsides to this? Why isn’t it default if it is so drastically better?
https://en.wikipedia.org/wiki/TCP_congestion_control#TCP_BBR
List some issues, but only earlier version, not BBR3
BBR1:
I believe it will result in like 10% additional overhead, which may be bad on metered connections, but I am not aware of any situation that results in decreased performance. I don’t really know much about this so if anyone would like to correct me, please do.
Interesting. I’d be interested in hearing other people’s experience with this. Is this BBR stuff enabled by default on any distros?
I don’t know if it is, but it is really as simple as adding to lines to a config file and restarting a service.
According to multiple debian based and ubuntu based and Arch I use. No. Not default. Cubic still is.
My experience was that some days ago I was trying to make my UDP faster, but turned out found out about BBR - for TCP. Well, lucky me - currently some country away from home for family reason. Plex generally takes 40-80s to start a movie/episode for me. And measly about 10s max buffer available - and this is on a 3-5Mbps show.
After BBR (note I have to apply on Proxmox host, my container are unprivileged and can’t set this themselves), I got 8-30s max to start a show/movie. And now comfortably sit between some good minutes on buffer. 15-20Mbps quality now playable.
To me personally it was black magic, and I was tossing it in just 2 days ago too
Ask more if question
If this is black magic, will I be subject to some sort of witch trial in the near future?
This is the Internet. No witch trial just witch burning.
For example unraid (does that count as a distro?) has it enabled by default
I skimmed through it and have no idea what BBR stands for.
Bottleneck Bandwidth and Round-trip propagation time (BBR)
Thank you! I hate unexplained acronyms
It is explained in the article though…
Ahh yes, the first time it is defined is in the conclusion after being used 25 times previously in the article.
It’s an algorithm for determining how fast to upload packets. This article just talks about how to enable it.
Here’s the Wikipedia section about it: https://en.wikipedia.org/wiki/TCP_congestion_control#TCP_BBR
The gist is that instead of only throttling upload rate based on packet loss, BBR constantly measures roundtrip delay (ping) to determine how much bandwidth is available.
Cool! This seems like an good write up on it
https://atoonk.medium.com/tcp-bbr-exploring-tcp-congestion-control-84c9c11dc3a9
Thx mate
Can’t I just download more gigabits?
Download more bandwidth
Download more bandwidth
removed by mod
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:
[Thread #681 for this sub, first seen 15th Apr 2024, 22:15] [FAQ] [Full list] [Contact] [Source code]
You didn’t catch BBR bot :-)