* [LARTC] How to set HTB correct ?
@ 2005-07-01 9:48 shun chain
0 siblings, 0 replies; only message in thread
From: shun chain @ 2005-07-01 9:48 UTC (permalink / raw)
To: lartc
Hi, everyone
I has a ADSL link about 4M bandwidth, and use HTB do bandwidth management.
When I config qdisc like below:
tc qdisc add dev br0 root handle 1: htb default 30
tc class add dev br0 parent 1: classid 1:1 htb rate 4000kbit
tc class add dev br0 parent 1:1 classid 1:10 htb rate 2000kbit ceil
4000kbit prio 0
tc class add dev br0 parent 1:1 classid 1:20 htb rate 1000kbit ceil
4000kbit prio 1
tc class add dev br0 parent 1:1 classid 1:30 htb rate 500kbit ceil
4000kbit prio 2
tc class add dev br0 parent 1:1 classid 1:40 htb rate 100kbit ceil
4000kbit prio 3
tc qdisc add dev br0 parent 1:10 handle 10: pfifo limit 10
tc qdisc add dev br0 parent 1:20 handle 20: pfifo limit 10
tc qdisc add dev br0 parent 1:30 handle 30: pfifo limit 10
tc qdisc add dev br0 parent 1:40 handle 40: pfifo limit 10
after seconds, all 4 class will reach about 1M bps, it seems like HTB not work.
But if I set qdisc like below:
tc qdisc add dev br0 root handle 1: htb default 30
tc class add dev br0 parent 1: classid 1:1 htb rate 2000kbit
tc class add dev br0 parent 1:1 classid 1:10 htb rate 2000kbit ceil
4000kbit prio 0
tc class add dev br0 parent 1:1 classid 1:20 htb rate 1000kbit ceil
4000kbit prio 1
tc class add dev br0 parent 1:1 classid 1:30 htb rate 500kbit ceil
4000kbit prio 2
tc class add dev br0 parent 1:1 classid 1:40 htb rate 100kbit ceil
4000kbit prio 3
tc qdisc add dev br0 parent 1:10 handle 10: pfifo limit 10
tc qdisc add dev br0 parent 1:20 handle 20: pfifo limit 10
tc qdisc add dev br0 parent 1:30 handle 30: pfifo limit 10
tc qdisc add dev br0 parent 1:40 handle 40: pfifo limit 10
then bandwidth will be split fit for 2:1: 0.5: 0.1, class 1:10 will
get about 2.5 M.
it seems like that HTB works well.
I do not understand how it works like this.
Thank you for your help in advance.
Shun Chain
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-01 9:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-01 9:48 [LARTC] How to set HTB correct ? shun chain
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.