Thank you for your reply :) I try to follow chapter 6 on your user guide. 1:1 / \ 1:2 1:12 / \ 1:10 1:11 (prio1) (prio2) If 1:12 don't have any traffic, all the BW on 1:12 can be assigned to 1:2, is that right? I try to put all these extra (from 1:12) to 1:10, my htb script is as follows, and I use ethloop to test and I found that 1:10 will not get the extra from 1:12. Could you tell me where I make a mistake? Thank you. echo Clean all the tc setup ./tc qdisc del dev lo root ./tc qdisc add dev lo root handle 1: htb default 12 ./tc class add dev lo parent 1: classid 1:1 htb rate 100kbps ./tc class add dev lo parent 1:1 classid 1:2 htb rate 40kbps ./tc class add dev lo parent 1:2 classid 1:10 htb rate 30kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 10kbps prio 1 ./tc class add dev lo parent 1:1 classid 1:12 htb rate 60kbps echo qdisc ./tc qdisc add dev lo parent 1:10 handle 20: pfifo limit 5 ./tc qdisc add dev lo parent 1:11 handle 30: pfifo limit 5 ./tc qdisc add dev lo parent 1:12 handle 40: sfq perturb 10 Input for ethloop: # lo will be used to TX and RX 0 i 0 lo 0 i 1 lo 0 i 2 lo # set simulation packet size to 1k 0 S 0 1k 0 S 1 1k 0 S 2 1k # flow 0 AE, flow 1 BE, flow 2 EF 0 P 0 0x10010 0 P 1 0x10011 0 P 2 0x10012 # start all flow at defined rate 0 R 0 30000 0 R 1 10000 0 R 2 60000 # Create extra at 1:12 and borrow this to 1:2 <------? 5000 R 0 30000 5000 R 1 10000 5000 R 2 0 # 1:10 and 1:11 and 1:10 should get higher value <------? 15000 R 0 40000 15000 R 1 20000 # finish at 8sec 25000 X 0 0 Result is to long, I use gnuplot and found that 1:10 at most get 30000. Thank you for you help. Pat On Fri, 7 Jun 2002, Martin Devera wrote: > What is the problem ? use cat ethloop_script|./ethloop > for example .. > devik > > On Thu, 6 Jun 2002, King Yung Tong wrote: > _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/