docum.org says this about rate:Originally Posted by Styno
tc class add dev $DEV parent 1:1 classid 1:20 htb rate $((9*$UPLINK/10))kbit burst 6k prio 2 sets the rate to 90% or 9/10 of the UPLINK value, tc class add dev $DEV parent 1:1 classid 1:30 htb rate $((8*$UPLINK)/10)kbit burst 6k prio 2 sets the rate to 80% or 8/10 and tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit burst 6k prio 1 gets the full/100% UPLINK value as rate. As far as i can understand it 1:10, 1:20 and 1:30 are child classes or 1:, and the sum of the childs are greater than parent 1: UPLINK. Since docum.org didnt have any examples that covered this i just wondered how it would be devided.The rate of a class is the guaranteed bandwidth the class will get.
If you add more then 1 subclass, make sure that the sum of the rates of the child class is equal or smaller then the rate of the parent. You don't have to follow this rule, but it's easier to understand what will happen if you do so.
But i guess it works, since most of the sites i found with google seem to use this basic script.
But i just started to read up on this a few days ago, so i could be all wrong![]()




But using the 'ceil' parameter you can let a class borrow bandwith (up to the 'ceil' value) from other classes who have unused bandwith.
Reply With Quote