Post AFXSXPuS0oWm3H2CDA by gemlog@tilde.zone
 (DIR) More posts by gemlog@tilde.zone
 (DIR) Post #AFXIyDPdaJ2HZPlH7I by gemlog@tilde.zone
       2022-01-17T00:59:40Z
       
       0 likes, 0 repeats
       
       QOS - using HTB to provide a maximum bandwidth instead of a minimum one.@adamd back in the day, I swapped a lot of emails with devik as I struggled to learn what I was doing and he struggled to write the kernel module - good guy btw. Anyhow...Just off the top of my head, but I can expand and give refs and stuff.There are things called Token Buckets. The idea is that tokens drip into  bucket at a steady rate until the bucket is full and someone using bandwidth can pull out a packet with a matching token whenever they want. This limits bandwidth to the drip rate of tokens, but allows for bursting to drain the bucket.This is used to limit the amount of bandwidth that may be used. But what if you wanted to maximize it as I did down in Chetumal years ago?Enter the Hierarchical Token Bucket filter instead of the above tbf https://lartc.org/howto/lartc.qdisc.classless.html#AEN690So instead you use HTB https://lartc.org/howto/lartc.qdisc.classful.html#AEN1071 You take the bw and squeeze it down a little as normal (or how can you control the flow??) and then you divide it among the users as the MINIMUM they can have. If no one else is around, then one user may have ALL the bw! This makes people happy vs sad and uses the maximum amount of bw available.E.g. if you have 12 of bw and 3 users, then 4 users get 3bw each. If there are 3 users each gets 4bw each. If there is one user they get 12bw.So, my position on your home network is, you should want to use ALL the available bw and not limit people, but they shouldn't be able to hog it all either.Now, you can also 'weight' it so one user gets preference, say they get bw+1 or bw*3.Oh, also I use a sfq to perturb things https://lartc.org/howto/lartc.qdisc.classless.html#LARTC.SFQ in case something ESTABLISHED/RELATED manages to take over somehow. That's icing, not sure it was needed really.
       
 (DIR) Post #AFXIyDxJZ5yTFrWAbo by gemlog@tilde.zone
       2022-01-17T01:22:34Z
       
       0 likes, 0 repeats
       
       @adamd That was kind of a shitty job, sorry. I should do better maybe and try again, or the concept was enough?
       
 (DIR) Post #AFXIyEUHaWLUu6wUzo by gemlog@tilde.zone
       2022-01-17T01:26:40Z
       
       0 likes, 0 repeats
       
       @adamd Or, more likely, you know all that already and I'm just old and wasted your time, sorry. Sometimes I fail to appreciate the distance in time between learning things and the present.
       
 (DIR) Post #AFXIyEvvviSoHrsa5w by adamd@mastodon.sdf.org
       2022-01-17T16:02:17Z
       
       0 likes, 0 repeats
       
       @gemlog Its good information to have. Its off my radar at the moment as nobody is complaining. All I really remember was following some online guide. In the end our settings look like this.
       
 (DIR) Post #AFXSXPuS0oWm3H2CDA by gemlog@tilde.zone
       2022-01-17T17:49:29Z
       
       0 likes, 0 repeats
       
       @adamd As long as you enter your up/down speeds as *less* than they actually are capable of. If you enter the max, then htb (or any bw contol scheme) won't be able to do anything.