Skip to content

Traffic shaping on 2TB plans—my QoS survival

VPS Hosting by adam20 4 replies 190 views
10 #1

Video streaming box on Contabo 2TB plan. Burned 1.8TB by day 20. The ticket said "sustained 95th percentile egress detected, please explain." I explained I was "testing backup software." They did not care. I did not care. We both knew.

Built tc/htb shaper. Posting base config. Provider does not police egress, only burst. Found this by accident when I saturated uplink for 6 hours and nothing happened. Silence on specifics.

[code]# Basic HTB on eth0
Tc qdisc add dev eth0 root handle 1: htb default 12
Tc class add dev eth0 parent 1: classid 1:1 htb rate 800mbit
Tc class add dev eth0 parent 1:1 classid 1:10 htb rate 600mbit ceil 800mbit
Tc class add dev eth0 parent 1:1 classid 1:12 htb rate 100mbit ceil 200mbit

Anyone improved this with CAKE?

reported. resolved. repeat.
2 #2

I don't understand the bandwidth parameter. Mdr my english is bad sorry. I think tc is old, no? But it works. I have 3 streams in my family, du coup I need shape.

Vive la résistance... électrique
#3

It actually works.

[code]tc qdisc replace dev eth0 root cake bandwidth 80mbit diffserv4</code]

Key is `diffserv4` for your video traffic. Mark with iptables, cake handles the rest. My provider also silent on egress policing. Accident or policy? Who knows. Do not ask, do not tell.

works on my bench ¯\_(ツ)_/¯
#4

I tried this on my Hetzner box and here is what happened I was eating cereal at 7am when the stream started buffering and my cat jumped off the desk because the thunderstorm outside was loud and I thought the server was down but actually I had forgotten to add the default class and the traffic was unclassified and the htb tree was dropping packets and I spent 3 hours reading man pages and the weather got worse and my cat came back and sat on the keyboard and typed random characters into my ssh session and I had to reconnect and start over and people keep telling me to use paragraphs but I do not see the point when everything is connected and important and you need to know about the cereal because it was frosted flakes and that is why I was distracted and did not notice the missing default class until later and now it works but I am still angry that nobody reads my full posts

#5

Docker? Nothing but just cgroups and namespaces and you do not need it for traffic shaping systemd-networkd supports cake directly now þis is þe way containers at home are a trap for people who cannot read man pages þe old tools work fine

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft