What are the proper values for rate/ceil in tc ?

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!
I am using shapping whith htb. My question is what are the propper values I can use in rate/ceil. I use htb.init for quick building of my classes/rules and have 2 groups of clients with 2 different bandwidth assignemet :
  A. 16--->48kbps
  B. 16---->128Kbps
It seems to work everything OK, but can I use lower values for rate like 8Kbps ? What about using 32-->96Kbps? I let htb to compute quantum, I just set R2Q.
 
I also get the following error:
itr kernel: HTB: quantum of class 10002 is big. Consider r2q change.<4>HTB: quantum of class 10010 is big. Consider r2q change
Bellow is an exerpt from my coniguration(as produced by htb.init script):
 
tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1 htb default 99 r2q 1
tc qdisc del dev eth2 root
tc qdisc add dev eth2 root handle 1 htb default 99 r2q 1
 
tc class add dev eth1 parent 1: classid 1:2 htb rate 10Mbit
tc class add dev eth1 parent 1:2 classid 1:20 htb rate 768kbit ceil 796kbit
tc class add dev eth1 parent 1:20 classid 1:30 htb rate 612kbit ceil 712kbit
.....
tc class add dev eth1 parent 1:20 classid 1:40 htb rate 156kbit ceil 224kbit
 
 
.....
tc class add dev eth2 parent 1:30 classid 1:1099 htb rate 16Kbit ceil 128Kbit
tc qdisc add dev eth2 parent 1:1099 handle 1099 sfq perturb 10
tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip src xx.xx.xx.xx classid 1:1099
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux