Dear all, I copy a Ethloop script for tc script, but no response??? Does anyone know how to use ethloop? Ethloop; #1st parameter -- time in milliseconds from program start #2nd parameter -- operation to do #3rd parameter -- flow id #4th parameter -- operation dependent # #e.g 5000 R 2 4500000 #means at time 5sec set rate of flow 2 to 4.5MBps #Time should be in increasing time order #Each line is executed at its time and will change the ongoing traffic generators #example1 #Two flow simulation # Two flow simulation # lo will be used to TX and RX 0 i P 0x10010 lo 0 i P 0x10020 lo # set simulation packet size to 1k 0 S P 0x10010 1k 0 S P 0x10020 1k # start both flows 0 R P 0x10010 100k 0 R P 0x10020 100k # flow 1 to 50k and 10k later 2000 R P 0x10010 50k 4000 R P 0x10020 10k # finish at 6sec 6000 X 0 0 tc script: echo Clean all the tc setup ./tc qdisc del dev eth0 root echo Core router echo Create qdisc and set default to 1:30 ./tc qdisc add dev eth1 root handle 1: htb default 30 ./tc class add dev eth1 parent 1: classid 1:1 htb rate 1.5Mbit burst 50k echo Create class for EF ./tc class add dev eth1 parent 1:1 classid 1:10 htb rate 0.5Mbit ceil 0.5Mbit burst 50k prio 1 echo Create class for AF ./tc class add dev eth1 parent 1:2 classid 1:20 htb rate 0.5Mbit ceil 1Mbit burst 30K prio 1 echo Create class for BE ./tc class add dev eth1 parent 1:2 classid 1:30 htb rate 0.3Mbit ceil 1Mbit burst 30k prio 2 ./tc qdisc add dev eth1 parent 1:30 red limit 1800KB min 150KB max 450KB burst 200 avpkt 1000 bandwidth 1Mbit probability 0.4 echo Filter ./tc filter add dev eth1 parent 1: protocol ip prio 1 u32 match ip tos 0xb8 0xff classid 1:10 ./tc filter add dev eth1 parent 1: protocol ip prio 2 u32 match ip tos 0x0 0xff classid 1:20 ./tc filter add dev eth1 parent 1: protocol ip prio 3 u32 match ip tos 0x98 0xff classid 1:30 Thank you Patrick
What is the problem ? use cat ethloop_script|./ethloop for example .. devik On Thu, 6 Jun 2002, King Yung Tong wrote:> Dear all, > > I copy a Ethloop script for tc script, but no response??? > Does anyone know how to use ethloop? > > > Ethloop; > #1st parameter -- time in milliseconds from program start > #2nd parameter -- operation to do > #3rd parameter -- flow id > #4th parameter -- operation dependent > # > #e.g 5000 R 2 4500000 > #means at time 5sec set rate of flow 2 to 4.5MBps > #Time should be in increasing time order > #Each line is executed at its time and will change the ongoing traffic > generators > > #example1 > #Two flow simulation > # Two flow simulation > > # lo will be used to TX and RX > 0 i P 0x10010 lo > 0 i P 0x10020 lo > > # set simulation packet size to 1k > 0 S P 0x10010 1k > 0 S P 0x10020 1k > > # start both flows > 0 R P 0x10010 100k > 0 R P 0x10020 100k > > # flow 1 to 50k and 10k later > 2000 R P 0x10010 50k > 4000 R P 0x10020 10k > > # finish at 6sec > 6000 X 0 0 > > > tc script: > > echo Clean all the tc setup > ./tc qdisc del dev eth0 root > > echo Core router > > echo Create qdisc and set default to 1:30 > ./tc qdisc add dev eth1 root handle 1: htb default 30 > ./tc class add dev eth1 parent 1: classid 1:1 htb rate 1.5Mbit burst 50k > > echo Create class for EF > ./tc class add dev eth1 parent 1:1 classid 1:10 htb rate 0.5Mbit ceil > 0.5Mbit burst 50k prio 1 > > echo Create class for AF > ./tc class add dev eth1 parent 1:2 classid 1:20 htb rate 0.5Mbit ceil > 1Mbit burst 30K prio 1 > > echo Create class for BE > ./tc class add dev eth1 parent 1:2 classid 1:30 htb rate 0.3Mbit ceil > 1Mbit burst 30k prio 2 > ./tc qdisc add dev eth1 parent 1:30 red limit 1800KB min 150KB max 450KB > burst 200 avpkt 1000 bandwidth 1Mbit probability 0.4 > > echo Filter > ./tc filter add dev eth1 parent 1: protocol ip prio 1 u32 match ip tos > 0xb8 0xff classid 1:10 > ./tc filter add dev eth1 parent 1: protocol ip prio 2 u32 match ip tos 0x0 > 0xff classid 1:20 > ./tc filter add dev eth1 parent 1: protocol ip prio 3 u32 match ip tos > 0x98 0xff classid 1:30 > > > Thank you > > Patrick > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >
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: >
You either missed "ceil" parameter or it is missing on my page :) Without ceil it is the same as rate thus all classes are bounded in fact. Add ceil 100kbps to each line. devik On Fri, 7 Jun 2002, King Yung Tong wrote:> 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: > > > > >
Thank you for you answer, 1:10 is incresed but 1:20 is also increased and increase to the specific rate if I add 100kbps to every line. In my case, I would like to put all the extra to 1:10 only, is that means I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need prio paramter? How prio parameter works? 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 ceil 100kbps ./tc class add dev lo parent 1:1 classid 1:2 htb rate 40kbps ceil 100kbps ./tc class add dev lo parent 1:2 classid 1:10 htb rate 30kbps ceil 100kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 10kbps ceil 100kbps <-- 10Kbps?? prio 1 ./tc class add dev lo parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps 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 On Fri, 7 Jun 2002, Martin Devera wrote:> You either missed "ceil" parameter or it is missing on my page :) > Without ceil it is the same as rate thus all classes are bounded > in fact. Add ceil 100kbps to each line. > devik > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > 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: > > > > > > > > > >
> Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > increase to the specific rate if I add 100kbps to every line.sounds weird. With higher prio 1:10 should get 90k and 1:11 10k.> In my case, I would like to put all the extra to 1:10 only, is that means > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > prio paramter? How prio parameter works?your understanding is ok, tge ceil 10k is correct - the prio is meant for lowering delay and change in excess distribution is only "secondary" product. Port the resulting graph somewhere so I can look at it. devik
What version of HTB do you use ? Send me tc -s -d class show dev xxx outoput after test pic5 generation. devik On Fri, 7 Jun 2002, King Yung Tong wrote:> Thank you again for you help! > Attach is the pic5 for the ceil equal to 100kbps for all line. > pic10limit for the ceil equal to 100kbps except 1:20. > > My objective is to show if not prio is set the excess should allocate > according to rate. If the prio is set, the high prio should get more. > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > increase to the specific rate if I add 100kbps to every line. > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > prio paramter? How prio parameter works? > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > meant for lowering delay and change in excess distribution is > > only "secondary" product. > > > > Port the resulting graph somewhere so I can look at it. > > > > devik > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > >
Thank you for you help. Here is the HTB 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 ceil 100kbps ./tc class add dev lo parent 1:1 classid 1:2 htb rate 40kbps ceil 100kbps ./tc class add dev lo parent 1:2 classid 1:10 htb rate 30kbps ceil 100kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 10kbps ceil 100kbps prio 1 ./tc class add dev lo parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps 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 _________________________1:11 / / _________/ ___________________ 1:12 (to should not be increse)??? / -----------/ Result 0.5 23233 23233 0 0 7744 7744 0 0 44545 44545 0 0 1.0 28987 28987 0 0 9662 9662 0 0 57518 57518 0 0 1.5 29609 29609 0 0 10139 10139 0 0 59920 59920 0 0 2.0 30583 30583 0 0 10258 10258 0 0 59877 59877 0 0 2.5 28941 28941 0 0 10308 10308 0 0 58869 58869 0 0 3.0 30374 30374 0 0 10282 10282 0 0 60982 60982 0 0 3.5 29747 29747 0 0 8874 8874 0 0 59755 59755 0 0 4.0 29736 29736 0 0 9818 9818 0 0 59993 59993 0 0 4.5 30679 30679 0 0 10204 10204 0 0 14237 14237 0 0 5.0 29897 29897 0 0 10365 10365 0 0 3378 3378 0 0 5.5 30670 30670 0 0 10318 10318 0 0 802 802 0 0 6.0 30576 30576 0 0 10214 10214 0 0 190 190 0 0 6.5 28799 28799 0 0 10245 10245 0 0 45 45 0 0 7.0 30321 30321 0 0 8340 8340 0 0 11 11 0 0 7.5 45445 45445 0 0 18142 18142 0 0 3 3 0 0 8.0 48046 48046 0 0 19985 19985 0 0 1 1 0 0 8.5 50644 50644 0 0 17879 17879 0 0 0 0 0 0 9.0 50885 50885 0 0 19094 19094 0 0 0 0 0 0 9.5 50467 50467 0 0 20211 20211 0 0 0 0 0 0 10.0 49349 49349 0 0 20513 20513 0 0 0 0 0 0 On Fri, 7 Jun 2002, Martin Devera wrote:> > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > increase to the specific rate if I add 100kbps to every line. > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > In my case, I would like to put all the extra to 1:10 only, is that means > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > prio paramter? How prio parameter works? > > your understanding is ok, tge ceil 10k is correct - the prio is > meant for lowering delay and change in excess distribution is > only "secondary" product. > > Port the resulting graph somewhere so I can look at it. > > devik > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >
Here is the version and info. Version htb3_2.4.17 [root@samwise htb]# ./tc -s -d class show dev lo class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) rate 254bps lended: 100 borrowed: 27 giants: 0 tokens: -60449 ctokens: 12800 class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits 0) rate 1426bps 1pps lended: 81 borrowed: 0 giants: 0 tokens: 12800 ctokens: 12800 class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) rate 704bps lended: 298 borrowed: 54 giants: 0 tokens: -36462 ctokens: 12800 class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b cburst 2623b/8 mpu 0b level 6 Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) rate 958bps lended: 0 borrowed: 81 giants: 0 tokens: -62221 ctokens: 12800 class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) rate 426bps lended: 234 borrowed: 0 giants: 0 tokens: 15867 ctokens: 12800 result for all line with 100kbps (pic5) 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 On Fri, 7 Jun 2002, Martin Devera wrote:> What version of HTB do you use ? Send me > tc -s -d class show dev xxx > outoput after test pic5 generation. > devik > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > Thank you again for you help! > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > My objective is to show if not prio is set the excess should allocate > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > prio paramter? How prio parameter works? > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > meant for lowering delay and change in excess distribution is > > > only "secondary" product. > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > devik > > > > > > _______________________________________________ > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > >
Ok. It seems you generate only 40kbps by ethloop script. Then you can''t expect your lines to go higher ! Generate 100kbps to 1:11 and 1:10 ... devik On Fri, 7 Jun 2002, King Yung Tong wrote:> Here is the version and info. > > Version htb3_2.4.17 > > [root@samwise htb]# ./tc -s -d class show dev lo > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > rate 254bps > lended: 100 borrowed: 27 giants: 0 > tokens: -60449 ctokens: 12800 > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > 0) > rate 1426bps 1pps > lended: 81 borrowed: 0 giants: 0 > tokens: 12800 ctokens: 12800 > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > rate 704bps > lended: 298 borrowed: 54 giants: 0 > tokens: -36462 ctokens: 12800 > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > cburst 2623b/8 mpu 0b level 6 > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > rate 958bps > lended: 0 borrowed: 81 giants: 0 > tokens: -62221 ctokens: 12800 > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > rate 426bps > lended: 234 borrowed: 0 giants: 0 > tokens: 15867 ctokens: 12800 > > > > result for all line with 100kbps (pic5) > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > What version of HTB do you use ? Send me > > tc -s -d class show dev xxx > > outoput after test pic5 generation. > > devik > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > Thank you again for you help! > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > My objective is to show if not prio is set the excess should allocate > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > prio paramter? How prio parameter works? > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > meant for lowering delay and change in excess distribution is > > > > only "secondary" product. > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > devik > > > > > > > > _______________________________________________ > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > >
Thank you, I put 100kbps to both 1:11 and 1:10. 1:10 (prio 0) get almost 50kbps form 60kbps excess and 1:20 (prio 1) get 10kbps form excess. Is it the expected result? I gussess the all 60kbps (excess) should go to prio 0 or by proportional to rate in each class. Pat On Fri, 7 Jun 2002, Martin Devera wrote:> Ok. It seems you generate only 40kbps by ethloop script. Then you > can''t expect your lines to go higher ! > Generate 100kbps to 1:11 and 1:10 ... > devik > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > Here is the version and info. > > > > Version htb3_2.4.17 > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > rate 254bps > > lended: 100 borrowed: 27 giants: 0 > > tokens: -60449 ctokens: 12800 > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > 0) > > rate 1426bps 1pps > > lended: 81 borrowed: 0 giants: 0 > > tokens: 12800 ctokens: 12800 > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > rate 704bps > > lended: 298 borrowed: 54 giants: 0 > > tokens: -36462 ctokens: 12800 > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > cburst 2623b/8 mpu 0b level 6 > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > rate 958bps > > lended: 0 borrowed: 81 giants: 0 > > tokens: -62221 ctokens: 12800 > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > rate 426bps > > lended: 234 borrowed: 0 giants: 0 > > tokens: 15867 ctokens: 12800 > > > > > > > > result for all line with 100kbps (pic5) > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > What version of HTB do you use ? Send me > > > tc -s -d class show dev xxx > > > outoput after test pic5 generation. > > > devik > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > Thank you again for you help! > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > meant for lowering delay and change in excess distribution is > > > > > only "secondary" product. > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > devik > > > > > > > > > > _______________________________________________ > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >
ethloop output (as text) On Fri, 7 Jun 2002, King Yung Tong wrote:> Thank you, I put 100kbps to both 1:11 and 1:10. 1:10 (prio 0) get almost > 50kbps form 60kbps excess and 1:20 (prio 1) get 10kbps form excess. > Is it the expected result? > I gussess the all 60kbps (excess) should go to prio 0 or by proportional > to rate in each class. > > > Pat > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > Ok. It seems you generate only 40kbps by ethloop script. Then you > > can''t expect your lines to go higher ! > > Generate 100kbps to 1:11 and 1:10 ... > > devik > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > Here is the version and info. > > > > > > Version htb3_2.4.17 > > > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > > rate 254bps > > > lended: 100 borrowed: 27 giants: 0 > > > tokens: -60449 ctokens: 12800 > > > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > > 0) > > > rate 1426bps 1pps > > > lended: 81 borrowed: 0 giants: 0 > > > tokens: 12800 ctokens: 12800 > > > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > > rate 704bps > > > lended: 298 borrowed: 54 giants: 0 > > > tokens: -36462 ctokens: 12800 > > > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > > cburst 2623b/8 mpu 0b level 6 > > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > > rate 958bps > > > lended: 0 borrowed: 81 giants: 0 > > > tokens: -62221 ctokens: 12800 > > > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > > rate 426bps > > > lended: 234 borrowed: 0 giants: 0 > > > tokens: 15867 ctokens: 12800 > > > > > > > > > > > > result for all line with 100kbps (pic5) > > > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > What version of HTB do you use ? Send me > > > > tc -s -d class show dev xxx > > > > outoput after test pic5 generation. > > > > devik > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > Thank you again for you help! > > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > > meant for lowering delay and change in excess distribution is > > > > > > only "secondary" product. > > > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > > > devik > > > > > > > > > > > > _______________________________________________ > > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > >
Thank you, I put 100kbps to both 1:11 and 1:10. 1:10 (prio 0) get almost 50kbps form 60kbps excess and 1:20 (prio 1) get 10kbps form excess. Is it the expected result? I gussess the all 60kbps (excess) should go to prio 0 or by proportional to rate in each class. The rate on the original class is 1:3. ./tc class add dev lo parent 1:2 classid 1:10 htb rate 30kbps ceil 100kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 10kbps ceil 100kbps prio 1 0.5 23490 23490 0 0 7830 7830 0 0 46202 46202 0 0 1.0 29308 29308 0 0 9471 9471 0 0 57537 57537 0 0 1.5 30066 30066 0 0 10311 10311 0 0 58370 58370 0 0 2.0 30364 30364 0 0 10190 10190 0 0 59133 59133 0 0 2.5 28144 28144 0 0 10251 10251 0 0 61029 61029 0 0 3.0 30859 30859 0 0 7907 7907 0 0 59899 59899 0 0 3.5 30563 30563 0 0 8694 8694 0 0 60245 60245 0 0 4.0 29243 29243 0 0 9873 9873 0 0 58596 58596 0 0 4.5 83553 74535 30 0 78956 16722 205 0 13905 13905 $5.0 97047 89562 20 0 95957 10635 438 0 3300 3300 0 05.5 100414 88939 38 0 100155 13212 553 0 783 783 0 06.0 101170 92980 20 0 101108 9802 570 0 186 186 0 0 6.5 98639 89751 38 0 98624 13015 577 0 44 44 0 0 7.0 99815 93172 20 0 99812 9755 578 0 10 10 0 0 7.5 63232 65056 0 0 39204 23397 41 0 3 3 0 0 8.0 54142 54575 0 0 22722 18971 3 0 1 1 0 0 8.5 51258 51361 0 0 21080 20189 0 0 0 0 0 0 9.0 50674 50698 0 0 20406 20195 0 0 0 0 0 0 9.5 49723 49729 0 0 20402 20351 0 0 0 0 0 0 10.0 51020 51021 0 0 20529 20517 0 0 0 0 0 0 On Fri, 7 Jun 2002, Martin Devera wrote:> ethloop output (as text) > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > Pat > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > Ok. It seems you generate only 40kbps by ethloop script. Then you > > > can''t expect your lines to go higher ! > > > Generate 100kbps to 1:11 and 1:10 ... > > > devik > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > Here is the version and info. > > > > > > > > Version htb3_2.4.17 > > > > > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > > > rate 254bps > > > > lended: 100 borrowed: 27 giants: 0 > > > > tokens: -60449 ctokens: 12800 > > > > > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > > > 0) > > > > rate 1426bps 1pps > > > > lended: 81 borrowed: 0 giants: 0 > > > > tokens: 12800 ctokens: 12800 > > > > > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > > > rate 704bps > > > > lended: 298 borrowed: 54 giants: 0 > > > > tokens: -36462 ctokens: 12800 > > > > > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > > > cburst 2623b/8 mpu 0b level 6 > > > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > > > rate 958bps > > > > lended: 0 borrowed: 81 giants: 0 > > > > tokens: -62221 ctokens: 12800 > > > > > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > > > rate 426bps > > > > lended: 234 borrowed: 0 giants: 0 > > > > tokens: 15867 ctokens: 12800 > > > > > > > > > > > > > > > > result for all line with 100kbps (pic5) > > > > > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > What version of HTB do you use ? Send me > > > > > tc -s -d class show dev xxx > > > > > outoput after test pic5 generation. > > > > > devik > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > Thank you again for you help! > > > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > > > meant for lowering delay and change in excess distribution is > > > > > > > only "secondary" product. > > > > > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > > > > > devik > > > > > > > > > > > > > > _______________________________________________ > > > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >
> 6.0 101170 92980 20 0 101108 9802 570 0 186 186 0 0 > 6.5 98639 89751 38 0 98624 13015 577 0 44 44 0 0 > 7.0 99815 93172 20 0 99812 9755 578 0 10 10 0 0here it is exacly what you want 7.5 63232 65056 0 0 39204 23397 41 0 3 3 0 0> 8.0 54142 54575 0 0 22722 18971 3 0 1 1 0 0 > 8.5 51258 51361 0 0 21080 20189 0 0 0 0 0 0 > 9.0 50674 50698 0 0 20406 20195 0 0 0 0 0 0 > 9.5 49723 49729 0 0 20402 20351 0 0 0 0 0 0 > 10.0 51020 51021 0 0 20529 20517 0 0 0 0 0 0end here generated rate seems to be 50k not 100 ! seems you need to repair other line in your ethloop script> > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > ethloop output (as text) > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > Pat > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > Ok. It seems you generate only 40kbps by ethloop script. Then you > > > > can''t expect your lines to go higher ! > > > > Generate 100kbps to 1:11 and 1:10 ... > > > > devik > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > Here is the version and info. > > > > > > > > > > Version htb3_2.4.17 > > > > > > > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > > > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > > > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > > > > rate 254bps > > > > > lended: 100 borrowed: 27 giants: 0 > > > > > tokens: -60449 ctokens: 12800 > > > > > > > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > > > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > > > > 0) > > > > > rate 1426bps 1pps > > > > > lended: 81 borrowed: 0 giants: 0 > > > > > tokens: 12800 ctokens: 12800 > > > > > > > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > > > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > > > > rate 704bps > > > > > lended: 298 borrowed: 54 giants: 0 > > > > > tokens: -36462 ctokens: 12800 > > > > > > > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > > > > cburst 2623b/8 mpu 0b level 6 > > > > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > > > > rate 958bps > > > > > lended: 0 borrowed: 81 giants: 0 > > > > > tokens: -62221 ctokens: 12800 > > > > > > > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > > > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > > > > rate 426bps > > > > > lended: 234 borrowed: 0 giants: 0 > > > > > tokens: 15867 ctokens: 12800 > > > > > > > > > > > > > > > > > > > > result for all line with 100kbps (pic5) > > > > > > > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > > > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > > > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > > > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > > > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > > > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > > > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > > > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > > > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > > > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > > > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > > > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > > > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > > > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > > > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > > > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > > > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > > > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > > > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > > > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > What version of HTB do you use ? Send me > > > > > > tc -s -d class show dev xxx > > > > > > outoput after test pic5 generation. > > > > > > devik > > > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > > > Thank you again for you help! > > > > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > > > > meant for lowering delay and change in excess distribution is > > > > > > > > only "secondary" product. > > > > > > > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > > > > > > > devik > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > >
It is working. Thank you. I really appreciate your help. :) Thank you!!!!!!!!!! Pat On Fri, 7 Jun 2002, Martin Devera wrote:> > 6.0 101170 92980 20 0 101108 9802 570 0 186 186 0 0 > > 6.5 98639 89751 38 0 98624 13015 577 0 44 44 0 0 > > 7.0 99815 93172 20 0 99812 9755 578 0 10 10 0 0 > > here it is exacly what you want > > 7.5 63232 65056 0 0 39204 23397 41 0 3 3 0 0 > > 8.0 54142 54575 0 0 22722 18971 3 0 1 1 0 0 > > 8.5 51258 51361 0 0 21080 20189 0 0 0 0 0 0 > > 9.0 50674 50698 0 0 20406 20195 0 0 0 0 0 0 > > 9.5 49723 49729 0 0 20402 20351 0 0 0 0 0 0 > > 10.0 51020 51021 0 0 20529 20517 0 0 0 0 0 0 > > end here generated rate seems to be 50k not 100 ! > seems you need to repair other line in your ethloop script > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > ethloop output (as text) > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > > > > > Pat > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > Ok. It seems you generate only 40kbps by ethloop script. Then you > > > > > can''t expect your lines to go higher ! > > > > > Generate 100kbps to 1:11 and 1:10 ... > > > > > devik > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > Here is the version and info. > > > > > > > > > > > > Version htb3_2.4.17 > > > > > > > > > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > > > > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > > > > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > > > > > rate 254bps > > > > > > lended: 100 borrowed: 27 giants: 0 > > > > > > tokens: -60449 ctokens: 12800 > > > > > > > > > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > > > > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > > > > > 0) > > > > > > rate 1426bps 1pps > > > > > > lended: 81 borrowed: 0 giants: 0 > > > > > > tokens: 12800 ctokens: 12800 > > > > > > > > > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > > > > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > > > > > rate 704bps > > > > > > lended: 298 borrowed: 54 giants: 0 > > > > > > tokens: -36462 ctokens: 12800 > > > > > > > > > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > > > > > cburst 2623b/8 mpu 0b level 6 > > > > > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > > > > > rate 958bps > > > > > > lended: 0 borrowed: 81 giants: 0 > > > > > > tokens: -62221 ctokens: 12800 > > > > > > > > > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > > > > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > > > > > rate 426bps > > > > > > lended: 234 borrowed: 0 giants: 0 > > > > > > tokens: 15867 ctokens: 12800 > > > > > > > > > > > > > > > > > > > > > > > > result for all line with 100kbps (pic5) > > > > > > > > > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > > > > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > > > > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > > > > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > > > > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > > > > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > > > > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > > > > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > > > > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > > > > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > > > > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > > > > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > > > > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > > > > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > > > > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > > > > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > > > > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > > > > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > > > > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > > > > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > > What version of HTB do you use ? Send me > > > > > > > tc -s -d class show dev xxx > > > > > > > outoput after test pic5 generation. > > > > > > > devik > > > > > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > > > > > Thank you again for you help! > > > > > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > > > > > meant for lowering delay and change in excess distribution is > > > > > > > > > only "secondary" product. > > > > > > > > > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > > > > > > > > > devik > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > >
Hello again, Thank you for you help last time. I try to create final check for htb, and found some problem. Can you give a quick fix for the problem? 1:1 (ceil 1500kbps) / \ (ceil 800kbps) 1:2 1:8 (ceil 700kbps) / \ \ 1:4 1:12 1:14 / \ (prio 0) 1:10 1:11 (prio 1) The tree under 1:2 is almost the same as you example and is working. And I try to build a larger tree (4 levels) and I would like to do following: class 1:14 is completed isolated even no traffic, the BW will not borow. class 1:12 is empty all the time. class 1:10 is prio 0 and class 1:11 is prio 1 1. My understanding is 1:8 and 1:2 are isolated because of ceil and will not borrow? 2. Since 1:12 is always emppty, it can borrow the excess to tree 1:4 and 1:10 will get all the BW. But in my case, the prio parameter seems to be not very ok. It will give BW to both 1:10 and 1:11. My HTB: echo "sim7 can do the priority BW" 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 1500kbps ceil 1500kbps echo "AF and BE" ./tc class add dev lo parent 1:1 classid 1:2 htb rate 100kbps ceil 800kbps ./tc class add dev lo parent 1:2 classid 1:4 htb rate 100nbps ceil 800kbps ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 800kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 800kbps prio 1 ./tc class add dev lo parent 1:1 classid 1:12 htb rate 100kbps ceil 800kbps echo "EF" ./tc class add dev lo parent 1:1 classid 1:8 htb rate 100kbps ceil 700kbps ./tc class add dev lo parent 1:8 classid 1:14 htb rate 100kbps ceil 700kbps echo qdisc for AF and BE ./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 echo qdisc EF ./tc qdisc add dev lo parent 1:14 handle 50: sfq perturb 10 My testcase: # set simulation packet size to 1k 0 S 0 1k 0 S 1 1k 0 S 2 1k 0 S 3 1k # flow 0 AF, flow 1 BE, flow 2 excess, flow 3 EF 0 P 0 0x10010 0 P 1 0x10011 0 P 2 0x10012 0 P 3 0x10014 # start all flow at defined rate 0 R 0 300k 0 R 1 100k 0 R 2 0 0 R 3 700k # AE/BE independent of EF # AE and BE flow higher than normal excess <---Both will get BW ???? 10000 R 0 900k 10000 R 1 900k # AE and BE back to normal excess 15000 R 0 300k 15000 R 1 100k # BE flow higher than normal excess <---no prio flow, allow lower prio to get BW 20000 R 1 900k # AF flow higher than normal <---Both will get BW ???? 25000 R 0 900k # EF flow higher than normal 30000 R 3 900k 35000 X 0 0 Result: 0.5 231444 231444 0 0 77383 77383 0 0 0 0 0 0 540271 478572 40 0 1.0 278479 278479 0 0 92882 92882 0 0 0 0 0 0 609124 583719 61 0 1.5 298901 298901 0 0 100509 100509 0 0 0 0 0 0 615354 611911 62 0 2.0 302205 302205 0 0 101279 101279 0 0 0 0 0 0 617530 617379 63 0 2.5 305878 305878 0 0 102361 102361 0 0 0 0 0 0 616506 616471 63 0 3.0 304599 304599 0 0 102921 102921 0 0 0 0 0 0 618702 618073 63 0 3.5 307264 307264 0 0 102751 102751 0 0 0 0 0 0 618239 617715 63 0 4.0 309582 309582 0 0 103272 103272 0 0 0 0 0 0 620044 619920 63 0 4.5 309559 309559 0 0 103205 103205 0 0 0 0 0 0 619327 619298 63 0 5.0 304899 304899 0 0 102930 102930 0 0 0 0 0 0 621407 619538 63 0 5.5 307757 307757 0 0 102893 102893 0 0 0 0 0 0 618269 617825 63 0 6.0 307659 307659 0 0 102626 102626 0 0 0 0 0 0 615972 615867 63 0 6.5 308994 308994 0 0 103015 103015 0 0 0 0 0 0 618143 618118 63 0 7.0 304329 304329 0 0 102740 102740 0 0 0 0 0 0 620014 617526 61 0 7.5 307540 307540 0 0 102821 102821 0 0 0 0 0 0 617775 617184 63 0 8.0 308544 308544 0 0 102921 102921 0 0 0 0 0 0 617728 617588 63 0 8.5 308877 308877 0 0 102976 102976 0 0 0 0 0 0 619844 619811 63 0 9.0 302607 302607 0 0 100873 100873 0 0 0 0 0 0 620449 617339 61 0 9.5 306437 306437 0 0 102147 102147 0 0 0 0 0 0 616490 615752 63 0 10.0 300719 300719 0 0 100240 100240 0 0 0 0 0 0 604882 617636 63 0 10.5 777898 471982 0 0 729513 264159 0 0 0 0 0 0 609705 618402 43 0 11.0 863025 505560 0 0 851542 297668 0 0 0 0 0 0 619129 616713 41 0 11.5 909551 512577 0 0 906826 306202 0 0 0 0 0 0 618050 617476 43 0 12.0 921768 513819 0 0 921121 307972 0 0 0 0 0 0 618739 618603 43 0 12.5 907931 513704 0 0 905857 308147 0 0 0 0 0 0 619284 616925 43 0 13.0 886514 523490 0 0 883462 304891 0 0 0 0 0 0 624941 617690 40 0 13.5 915565 515999 0 0 886622 307416 0 0 0 0 0 0 620989 619268 42 0 14.0 923631 514873 0 0 879157 308406 0 0 0 0 0 0 618273 617864 43 0 14.5 927437 515656 0 0 878626 309271 0 0 0 0 0 0 618889 618792 43 0 15.0 895009 532329 0 0 859566 299013 0 0 0 0 0 0 621768 617479 40 0 15.5 448147 362082 0 0 282565 149543 0 0 0 0 0 0 631565 619126 63 0 16.0 341084 320660 0 0 145299 113733 0 0 0 0 0 0 619346 616394 63 0 16.5 315486 310640 0 0 112662 105171 0 0 0 0 0 0 616065 615364 63 0 17.0 297585 296435 0 0 102699 100921 0 0 0 0 0 0 611654 619246 51 0 17.5 306021 305749 0 0 84149 83727 0 0 0 0 0 0 618384 617756 63 0 18.0 308460 308395 0 0 84714 84614 0 0 0 0 0 0 618424 618275 63 0 18.5 307777 307761 0 0 97575 97552 0 0 0 0 0 0 618070 618035 63 0 19.0 301490 301487 0 0 96855 96849 0 0 0 0 0 0 620032 618278 63 0 19.5 301154 301153 0 0 98066 98065 0 0 0 0 0 0 620900 616848 63 0 20.0 286469 286469 0 0 93726 93726 0 0 0 0 0 0 622997 616716 60 0 20.5 278343 278343 0 0 673385 450580 0 0 0 0 0 0 622126 619319 55 0 21.0 268888 268888 0 0 803848 524704 0 0 0 0 0 0 611372 617699 46 0 21.5 264163 264163 0 0 848137 550577 0 0 0 0 0 0 616748 618975 60 0 22.0 290767 290767 0 0 904416 530316 0 0 0 0 0 0 619749 620278 55 0 22.5 298363 298363 0 0 902981 524515 0 0 0 0 0 0 618094 618219 60 0 23.0 296164 296164 0 0 894027 520963 0 0 0 0 0 0 620139 619658 60 0 23.5 305930 305930 0 0 919102 516374 0 0 0 0 0 0 618459 618345 60 0 24.0 296653 296653 0 0 891907 527558 0 0 0 0 0 0 617325 619622 60 0 24.5 302214 302214 0 0 908726 507221 0 0 0 0 0 0 620659 587427 60 0 25.0 281425 281425 0 0 848616 514517 3 0 0 0 0 0 599578 619178 51 0 25.5 729582 470403 0 0 890676 359409 0 0 0 0 0 0 618846 618637 43 0 26.0 840603 504053 0 0 914453 320744 0 0 0 0 0 0 617764 617714 43 0 26.5 841996 517336 0 0 864975 310744 0 0 0 0 0 0 602270 618756 43 0 27.0 863804 492801 11 0 869257 296796 11 0 0 0 0 0 592927 618803 43 0 27.5 907681 517564 0 0 908975 309183 0 0 0 0 0 0 621719 618679 43 0 28.0 874073 516131 0 0 876445 310199 0 0 0 0 0 0 616986 620472 40 0 28.5 911304 513526 0 0 911866 308239 0 0 0 0 0 0 615668 616495 43 0 29.0 921202 513498 0 0 921336 308128 0 0 0 0 0 0 617519 617715 43 0 29.5 886795 518855 0 0 888691 309211 0 0 0 0 0 0 619105 622497 40 0 30.0 867967 521988 0 0 871155 306927 1 0 0 0 0 0 617935 619478 40 0 30.5 775693 516624 1 0 777624 304519 1 0 0 0 0 0 605359 625650 40 0 31.0 786527 529944 2 0 790509 300677 2 0 0 0 0 0 621088 622072 46 0 31.5 827695 533777 0 0 830094 298140 0 0 0 0 0 0 652808 612476 43 0 32.0 818300 532576 0 0 821039 295613 0 0 0 0 0 0 647647 607022 41 0 32.5 810709 520589 0 0 813866 289856 1 0 0 0 0 0 632117 599990 43 0 33.0 843462 524122 0 0 844211 299315 0 0 0 0 0 0 639384 609260 43 0 33.5 799789 525951 0 0 802866 303504 0 0 0 0 0 0 621335 618217 43 0 34.0 786034 523152 0 0 790214 302283 0 0 0 0 0 0 619806 621308 43 0 35.0 936074 514486 0 0 936923 301056 0 0 0 0 0 0 637879 603055 43 0 Thank you, I spend four hours on it and can not find the reasons. :( Pat On Fri, 7 Jun 2002, King Yung Tong wrote:> Thank you, I put 100kbps to both 1:11 and 1:10. 1:10 (prio 0) get almost > 50kbps form 60kbps excess and 1:20 (prio 1) get 10kbps form excess. > Is it the expected result? > I gussess the all 60kbps (excess) should go to prio 0 or by proportional > to rate in each class. > > > Pat > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > Ok. It seems you generate only 40kbps by ethloop script. Then you > > can''t expect your lines to go higher ! > > Generate 100kbps to 1:11 and 1:10 ... > > devik > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > Here is the version and info. > > > > > > Version htb3_2.4.17 > > > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > > rate 254bps > > > lended: 100 borrowed: 27 giants: 0 > > > tokens: -60449 ctokens: 12800 > > > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > > 0) > > > rate 1426bps 1pps > > > lended: 81 borrowed: 0 giants: 0 > > > tokens: 12800 ctokens: 12800 > > > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > > rate 704bps > > > lended: 298 borrowed: 54 giants: 0 > > > tokens: -36462 ctokens: 12800 > > > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > > cburst 2623b/8 mpu 0b level 6 > > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > > rate 958bps > > > lended: 0 borrowed: 81 giants: 0 > > > tokens: -62221 ctokens: 12800 > > > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > > rate 426bps > > > lended: 234 borrowed: 0 giants: 0 > > > tokens: 15867 ctokens: 12800 > > > > > > > > > > > > result for all line with 100kbps (pic5) > > > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > What version of HTB do you use ? Send me > > > > tc -s -d class show dev xxx > > > > outoput after test pic5 generation. > > > > devik > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > Thank you again for you help! > > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > > meant for lowering delay and change in excess distribution is > > > > > > only "secondary" product. > > > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > > > devik > > > > > > > > > > > > _______________________________________________ > > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >
On Saturday 08 June 2002 20:10, King Yung Tong wrote:> Hello again, Thank you for you help last time. I try to create final check > for htb, and found some problem. Can you give a quick fix for the problem? > > 1:1 (ceil 1500kbps) > / \ > (ceil 800kbps) 1:2 1:8 (ceil 700kbps) > / \ \ > 1:4 1:12 1:14 > / \ > (prio 0) 1:10 1:11 (prio 1) > > The tree under 1:2 is almost the same as you example and is working. > And I try to build a larger tree (4 levels) and I would like to do > following: > class 1:14 is completed isolated even no traffic, the BW will not borow. > class 1:12 is empty all the time. > class 1:10 is prio 0 and class 1:11 is prio 1 > > 1. My understanding is 1:8 and 1:2 are isolated because of ceil and will > not borrow? > 2. Since 1:12 is always emppty, it can borrow the excess to tree 1:4 and > 1:10 will get all the BW. > > But in my case, the prio parameter seems to be not very ok. It will give > BW to both 1:10 and 1:11.HTB will try to give each class it''s rate as a minimum : ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 800kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 800kbps prio 1 So class 1:10 gets 300kbps and class 1:11 gets 100kbps. The other 400kbps will go to class 1:10 beacause his prio is lower. So prio is for traffic that''s left after each class gets his rate. I hope I''m right, Devik ? :) Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net
Thank you, Stef But the result I got using Ethloop is not like that. I try to start 1:10 at 300k, 1:11 at 100k, since 1:4 parent ceil is 800bps remind will be 400k. At time 10s, I put 1:10 at 900k and 1:11 at 900k, and I think the 400kbs excess will all go to 1:10 and make the flow 1:10 be 700kbs (< 1:4 ceil). From the ethloop result, 1:10 from 30 go to 50. (equal sharing) 1:11 form 10 go to 30. (eqaul sharing) Do you think the problem is on HTB script or ethloop script or both???? On Sat, 8 Jun 2002, Stef Coene wrote:> On Saturday 08 June 2002 20:10, King Yung Tong wrote: > > Hello again, Thank you for you help last time. I try to create final check > > for htb, and found some problem. Can you give a quick fix for the problem? > > > > 1:1 (ceil 1500kbps) > > / \ > > (ceil 800kbps) 1:2 1:8 (ceil 700kbps) > > / \ \ > > 1:4 1:12 1:14 > > / \ > > (prio 0) 1:10 1:11 (prio 1) > > > > The tree under 1:2 is almost the same as you example and is working. > > And I try to build a larger tree (4 levels) and I would like to do > > following: > > class 1:14 is completed isolated even no traffic, the BW will not borow. > > class 1:12 is empty all the time. > > class 1:10 is prio 0 and class 1:11 is prio 1 > > > > 1. My understanding is 1:8 and 1:2 are isolated because of ceil and will > > not borrow? > > 2. Since 1:12 is always emppty, it can borrow the excess to tree 1:4 and > > 1:10 will get all the BW. > > > > But in my case, the prio parameter seems to be not very ok. It will give > > BW to both 1:10 and 1:11. > HTB will try to give each class it''s rate as a minimum : > ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 800kbps > prio 0 > ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 800kbps > prio 1 > > So class 1:10 gets 300kbps and class 1:11 gets 100kbps. The other 400kbps > will go to class 1:10 beacause his prio is lower. So prio is for traffic > that''s left after each class gets his rate. > > I hope I''m right, Devik ? :) > > Stef > > -- > > stef.coene@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.openprojects.net > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >
You are right stef :) On Sat, 8 Jun 2002, Stef Coene wrote:> On Saturday 08 June 2002 20:10, King Yung Tong wrote: > > Hello again, Thank you for you help last time. I try to create final check > > for htb, and found some problem. Can you give a quick fix for the problem? > > > > 1:1 (ceil 1500kbps) > > / \ > > (ceil 800kbps) 1:2 1:8 (ceil 700kbps) > > / \ \ > > 1:4 1:12 1:14 > > / \ > > (prio 0) 1:10 1:11 (prio 1) > > > > The tree under 1:2 is almost the same as you example and is working. > > And I try to build a larger tree (4 levels) and I would like to do > > following: > > class 1:14 is completed isolated even no traffic, the BW will not borow. > > class 1:12 is empty all the time. > > class 1:10 is prio 0 and class 1:11 is prio 1 > > > > 1. My understanding is 1:8 and 1:2 are isolated because of ceil and will > > not borrow? > > 2. Since 1:12 is always emppty, it can borrow the excess to tree 1:4 and > > 1:10 will get all the BW. > > > > But in my case, the prio parameter seems to be not very ok. It will give > > BW to both 1:10 and 1:11. > HTB will try to give each class it''s rate as a minimum : > ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 800kbps > prio 0 > ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 800kbps > prio 1 > > So class 1:10 gets 300kbps and class 1:11 gets 100kbps. The other 400kbps > will go to class 1:10 beacause his prio is lower. So prio is for traffic > that''s left after each class gets his rate. > > I hope I''m right, Devik ? :) > > Stef > > -- > > stef.coene@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.openprojects.net > >
Dear Martin, Hello again, Thank you for you help last time. I think I understand the solution form you and Stef, but when come to ethloop, the result is not like this. I repost the question, I am pleased if you can give me a quick fix of the problem? Sorry to bother you. I try to create final checkfor htb, and still found the same problem. 1:1 (ceil 1500kbps) / \ (ceil 800kbps) 1:2 1:8 (ceil 700kbps) / \ \ 1:4 1:12 1:14 / \ (prio 0) 1:10 1:11 (prio 1) The tree under 1:2 is almost the same as you example and is working. And I try to build a larger tree (4 levels) and I would like to do following: class 1:14 is completed isolated even no traffic, the BW will not borow. class 1:12 is empty all the time. class 1:10 is prio 0 and class 1:11 is prio 1 1. My understanding is 1:8 and 1:2 are isolated because of ceil and will not borrow? 2. Since 1:12 is always empty, it can borrow the excess to tree 1:4 and 1:10 will get all the BW wiht prio 0. But in my case, the prio parameter seems to be not working well. It will give BW to both 1:10 and 1:11.The result I got using Ethloop is not like that. I try to start 1:10 at 300k, 1:11 at 100k, since 1:4 parent ceil is 800bps remind will be 400k. At time 10s, I put 1:10 at 900k and 1:11 at 900k, and I think the 400kbs excess will all go to 1:10 and make the flow 1:10 be 700kbs ( < 1:4 ceil ). From the ethloop result, 1:10 from 30 go to 50. (equal sharing) 1:11 form 10 go to 30. (eqaul sharing) Do you think the problem is on HTB script or ethloop script or both???? My HTB: echo "sim7 can do the priority BW" 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 1500kbps ceil 1500kbps echo "AF and BE" ./tc class add dev lo parent 1:1 classid 1:2 htb rate 100kbps ceil 800kbps ./tc class add dev lo parent 1:2 classid 1:4 htb rate 100nbps ceil 800kbps ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 800kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 800kbps prio 1 ./tc class add dev lo parent 1:1 classid 1:12 htb rate 100kbps ceil 800kbps echo "EF" ./tc class add dev lo parent 1:1 classid 1:8 htb rate 100kbps ceil 700kbps ./tc class add dev lo parent 1:8 classid 1:14 htb rate 100kbps ceil 700kbps echo qdisc for AF and BE ./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 echo qdisc EF ./tc qdisc add dev lo parent 1:14 handle 50: sfq perturb 10 My testcase: # set simulation packet size to 1k 0 S 0 1k 0 S 1 1k 0 S 2 1k 0 S 3 1k # flow 0 AF, flow 1 BE, flow 2 excess, flow 3 EF 0 P 0 0x10010 0 P 1 0x10011 0 P 2 0x10012 0 P 3 0x10014 # start all flow at defined rate 0 R 0 300k 0 R 1 100k 0 R 2 0 0 R 3 700k # AE/BE independent of EF # AE and BE flow higher than normal excess <---Both will get BW ???? 10000 R 0 900k 10000 R 1 900k # AE and BE back to normal excess <-- Go back to original case and try again 15000 R 0 300k 15000 R 1 100k # BE flow higher than normal excess <---no prio flow, allow lower prio to get BW 20000 R 1 900k # AF flow higher than normal <---flow for low prio, both will get BW ???? 25000 R 0 900k # EF flow higher than normal 30000 R 3 900k 35000 X 0 0 Result: 0.5 231444 231444 0 0 77383 77383 0 0 0 0 0 0 540271 478572 40 0 1.0 278479 278479 0 0 92882 92882 0 0 0 0 0 0 609124 583719 61 0 1.5 298901 298901 0 0 100509 100509 0 0 0 0 0 0 615354 611911 62 0 2.0 302205 302205 0 0 101279 101279 0 0 0 0 0 0 617530 617379 63 0 2.5 305878 305878 0 0 102361 102361 0 0 0 0 0 0 616506 616471 63 0 3.0 304599 304599 0 0 102921 102921 0 0 0 0 0 0 618702 618073 63 0 3.5 307264 307264 0 0 102751 102751 0 0 0 0 0 0 618239 617715 63 0 4.0 309582 309582 0 0 103272 103272 0 0 0 0 0 0 620044 619920 63 0 4.5 309559 309559 0 0 103205 103205 0 0 0 0 0 0 619327 619298 63 0 5.0 304899 304899 0 0 102930 102930 0 0 0 0 0 0 621407 619538 63 0 5.5 307757 307757 0 0 102893 102893 0 0 0 0 0 0 618269 617825 63 0 6.0 307659 307659 0 0 102626 102626 0 0 0 0 0 0 615972 615867 63 0 6.5 308994 308994 0 0 103015 103015 0 0 0 0 0 0 618143 618118 63 0 7.0 304329 304329 0 0 102740 102740 0 0 0 0 0 0 620014 617526 61 0 7.5 307540 307540 0 0 102821 102821 0 0 0 0 0 0 617775 617184 63 0 8.0 308544 308544 0 0 102921 102921 0 0 0 0 0 0 617728 617588 63 0 8.5 308877 308877 0 0 102976 102976 0 0 0 0 0 0 619844 619811 63 0 9.0 302607 302607 0 0 100873 100873 0 0 0 0 0 0 620449 617339 61 0 9.5 306437 306437 0 0 102147 102147 0 0 0 0 0 0 616490 615752 63 0 10.0 300719 300719 0 0 100240 100240 0 0 0 0 0 0 604882 617636 63 0 10.5 777898 471982 0 0 729513 264159 0 0 0 0 0 0 609705 618402 43 0 11.0 863025 505560 0 0 851542 297668 0 0 0 0 0 0 619129 616713 41 0 11.5 909551 512577 0 0 906826 306202 0 0 0 0 0 0 618050 617476 43 0 12.0 921768 513819 0 0 921121 307972 0 0 0 0 0 0 618739 618603 43 0 12.5 907931 513704 0 0 905857 308147 0 0 0 0 0 0 619284 616925 43 0 13.0 886514 523490 0 0 883462 304891 0 0 0 0 0 0 624941 617690 40 0 13.5 915565 515999 0 0 886622 307416 0 0 0 0 0 0 620989 619268 42 0 14.0 923631 514873 0 0 879157 308406 0 0 0 0 0 0 618273 617864 43 0 14.5 927437 515656 0 0 878626 309271 0 0 0 0 0 0 618889 618792 43 0 15.0 895009 532329 0 0 859566 299013 0 0 0 0 0 0 621768 617479 40 0 15.5 448147 362082 0 0 282565 149543 0 0 0 0 0 0 631565 619126 63 0 16.0 341084 320660 0 0 145299 113733 0 0 0 0 0 0 619346 616394 63 0 16.5 315486 310640 0 0 112662 105171 0 0 0 0 0 0 616065 615364 63 0 17.0 297585 296435 0 0 102699 100921 0 0 0 0 0 0 611654 619246 51 0 17.5 306021 305749 0 0 84149 83727 0 0 0 0 0 0 618384 617756 63 0 18.0 308460 308395 0 0 84714 84614 0 0 0 0 0 0 618424 618275 63 0 18.5 307777 307761 0 0 97575 97552 0 0 0 0 0 0 618070 618035 63 0 19.0 301490 301487 0 0 96855 96849 0 0 0 0 0 0 620032 618278 63 0 19.5 301154 301153 0 0 98066 98065 0 0 0 0 0 0 620900 616848 63 0 20.0 286469 286469 0 0 93726 93726 0 0 0 0 0 0 622997 616716 60 0 20.5 278343 278343 0 0 673385 450580 0 0 0 0 0 0 622126 619319 55 0 21.0 268888 268888 0 0 803848 524704 0 0 0 0 0 0 611372 617699 46 0 21.5 264163 264163 0 0 848137 550577 0 0 0 0 0 0 616748 618975 60 0 22.0 290767 290767 0 0 904416 530316 0 0 0 0 0 0 619749 620278 55 0 22.5 298363 298363 0 0 902981 524515 0 0 0 0 0 0 618094 618219 60 0 23.0 296164 296164 0 0 894027 520963 0 0 0 0 0 0 620139 619658 60 0 23.5 305930 305930 0 0 919102 516374 0 0 0 0 0 0 618459 618345 60 0 24.0 296653 296653 0 0 891907 527558 0 0 0 0 0 0 617325 619622 60 0 24.5 302214 302214 0 0 908726 507221 0 0 0 0 0 0 620659 587427 60 0 25.0 281425 281425 0 0 848616 514517 3 0 0 0 0 0 599578 619178 51 0 25.5 729582 470403 0 0 890676 359409 0 0 0 0 0 0 618846 618637 43 0 26.0 840603 504053 0 0 914453 320744 0 0 0 0 0 0 617764 617714 43 0 26.5 841996 517336 0 0 864975 310744 0 0 0 0 0 0 602270 618756 43 0 27.0 863804 492801 11 0 869257 296796 11 0 0 0 0 0 592927 618803 43 0 27.5 907681 517564 0 0 908975 309183 0 0 0 0 0 0 621719 618679 43 0 28.0 874073 516131 0 0 876445 310199 0 0 0 0 0 0 616986 620472 40 0 28.5 911304 513526 0 0 911866 308239 0 0 0 0 0 0 615668 616495 43 0 29.0 921202 513498 0 0 921336 308128 0 0 0 0 0 0 617519 617715 43 0 29.5 886795 518855 0 0 888691 309211 0 0 0 0 0 0 619105 622497 40 0 30.0 867967 521988 0 0 871155 306927 1 0 0 0 0 0 617935 619478 40 0 30.5 775693 516624 1 0 777624 304519 1 0 0 0 0 0 605359 625650 40 0 31.0 786527 529944 2 0 790509 300677 2 0 0 0 0 0 621088 622072 46 0 31.5 827695 533777 0 0 830094 298140 0 0 0 0 0 0 652808 612476 43 0 32.0 818300 532576 0 0 821039 295613 0 0 0 0 0 0 647647 607022 41 0 32.5 810709 520589 0 0 813866 289856 1 0 0 0 0 0 632117 599990 43 0 33.0 843462 524122 0 0 844211 299315 0 0 0 0 0 0 639384 609260 43 0 33.5 799789 525951 0 0 802866 303504 0 0 0 0 0 0 621335 618217 43 0 34.0 786034 523152 0 0 790214 302283 0 0 0 0 0 0 619806 621308 43 0 35.0 936074 514486 0 0 936923 301056 0 0 0 0 0 0 637879 603055 43 0 Thank you, I spend four hours on it and can not find the reasons. :( Pat> > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > Thank you, I put 100kbps to both 1:11 and 1:10. 1:10 (prio 0) get almost > > 50kbps form 60kbps excess and 1:20 (prio 1) get 10kbps form excess. > > Is it the expected result? > > I gussess the all 60kbps (excess) should go to prio 0 or by proportional > > to rate in each class. > > > > > > Pat > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > Ok. It seems you generate only 40kbps by ethloop script. Then you > > > can''t expect your lines to go higher ! > > > Generate 100kbps to 1:11 and 1:10 ... > > > devik > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > Here is the version and info. > > > > > > > > Version htb3_2.4.17 > > > > > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > > > rate 254bps > > > > lended: 100 borrowed: 27 giants: 0 > > > > tokens: -60449 ctokens: 12800 > > > > > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > > > 0) > > > > rate 1426bps 1pps > > > > lended: 81 borrowed: 0 giants: 0 > > > > tokens: 12800 ctokens: 12800 > > > > > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > > > rate 704bps > > > > lended: 298 borrowed: 54 giants: 0 > > > > tokens: -36462 ctokens: 12800 > > > > > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > > > cburst 2623b/8 mpu 0b level 6 > > > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > > > rate 958bps > > > > lended: 0 borrowed: 81 giants: 0 > > > > tokens: -62221 ctokens: 12800 > > > > > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > > > rate 426bps > > > > lended: 234 borrowed: 0 giants: 0 > > > > tokens: 15867 ctokens: 12800 > > > > > > > > > > > > > > > > result for all line with 100kbps (pic5) > > > > > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > What version of HTB do you use ? Send me > > > > > tc -s -d class show dev xxx > > > > > outoput after test pic5 generation. > > > > > devik > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > Thank you again for you help! > > > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > > > meant for lowering delay and change in excess distribution is > > > > > > > only "secondary" product. > > > > > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > > > > > devik > > > > > > > > > > > > > > _______________________________________________ > > > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >
Hello Martin, Thank you for you help last time, I got the previous working (HTB1 & Ethloop1) but when I increase the rate and ceil (HTB2 & Ethloop2), the outcome is quite different. The different between cases is he rate and ceil are 10 times bigger than the other. Please take a look and I gusess this is the originl for the problem I post in the previous mail. HTB1: 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 ceil 100kbps ./tc class add dev lo parent 1:1 classid 1:2 htb rate 40kbps ceil 100kbps ./tc class add dev lo parent 1:2 classid 1:10 htb rate 30kbps ceil 100kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 10kbps ceil 100kbps prio 1 ./tc class add dev lo parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps 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 Ethloop1: # 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 excess 0 P 0 0x10010 0 P 1 0x10011 0 P 2 0x10012 # start all flow at defined rate 0 R 0 30k 0 R 1 10k 0 R 2 0 # Create extra at 1:12 and borrow this to 1:2 <------? 5000 R 0 100k 5000 R 1 100k 5000 R 2 0 # Back to normal 15000 R 0 30k 15000 R 1 10k # Flow 1 can more first 20000 R 1 1000k # Flow 2 can more 25000 R 0 1000k # finish at 8sec 30000 X 0 0 Result1: 0.5 23109 23109 0 0 7703 7703 0 0 0 0 0 0 1.0 29318 29318 0 0 9772 9772 0 0 0 0 0 0 1.5 29928 29928 0 0 9976 9976 0 0 0 0 0 0 2.0 30942 30942 0 0 10314 10314 0 0 0 0 0 0 2.5 31274 31274 0 0 10424 10424 0 0 0 0 0 0 3.0 31452 31452 0 0 10484 10484 0 0 0 0 0 0 3.5 30195 30195 0 0 10065 10065 0 0 0 0 0 0 4.0 30474 30474 0 0 10158 10158 0 0 0 0 0 0 4.5 31245 31245 0 0 10415 10415 0 0 0 0 0 0 5.0 31135 31135 0 0 10378 10378 0 0 0 0 0 0 5.5 84378 76533 45 0 82038 15606 216 0 0 0 0 0 6.0 98421 94852 12 0 97866 9825 459 0 0 0 0 0 6.5 101759 89512 39 0 101627 11952 560 0 0 0 0 0 7.0 102587 95447 24 0 102556 8875 572 0 0 0 0 0 7.5 102784 89635 39 0 102776 11755 576 0 0 0 0 0 8.0 102830 97338 14 0 102829 8828 582 0 0 0 0 0 8.5 102841 90084 39 0 102841 11744 578 0 0 0 0 0 9.0 102844 95583 24 0 102844 8826 581 0 0 0 0 0 9.5 102909 89635 39 0 102909 11795 579 0 0 0 0 0 10.0 102969 95553 25 0 102969 8859 578 0 0 0 0 0 10.5 102762 89504 39 0 102762 11768 578 0 0 0 0 0 11.0 102825 95445 24 0 102825 8831 578 0 0 0 0 0 11.5 102646 89422 39 0 100086 11745 581 0 0 0 0 0 12.0 103020 95627 30 0 102412 8847 580 0 0 0 0 0 12.5 102886 89678 39 0 102742 11748 576 0 0 0 0 0 13.0 103113 95771 24 0 103079 8827 574 0 0 0 0 0 13.5 102715 89499 39 0 102706 11744 577 0 0 0 0 0 14.0 103182 95805 29 0 103179 8847 578 0 0 0 0 0 14.5 102925 89720 39 0 102924 11748 578 0 0 0 0 0 15.0 102718 95337 24 0 102718 8827 578 0 0 0 0 0 15.5 47906 47791 0 0 32219 14847 120 0 0 0 0 0 16.0 34208 34180 0 0 15259 11136 28 0 0 0 0 0 16.5 31638 31632 0 0 11461 10483 6 0 0 0 0 0 17.0 31064 31063 0 0 10572 10339 1 0 0 0 0 0 17.5 30870 30869 0 0 10341 10286 0 0 0 0 0 0 18.0 30838 30838 0 0 10292 10279 0 0 0 0 0 0 18.5 30869 30869 0 0 10292 10289 0 0 0 0 0 0 19.0 30846 30846 0 0 10283 10282 0 0 0 0 0 0 19.5 30896 30896 0 0 10298 10298 0 0 0 0 0 0 20.0 30888 30888 0 0 10296 10296 0 0 0 0 0 0 20.5 30851 30851 0 0 786473 65094 62 0 0 0 0 0 21.0 30897 30897 0 0 971969 64881 57 0 0 0 0 0 21.5 30853 30853 0 0 1014683 75618 62 0 0 0 0 0 22.0 30897 30897 0 0 1026647 67378 64 0 0 0 0 0 22.5 30853 30853 0 0 1027658 76210 71 0 0 0 0 0 23.0 30897 30897 0 0 1029726 67519 59 0 0 0 0 0 23.5 30853 30853 0 0 1028389 76244 71 0 0 0 0 0 24.0 30897 30897 0 0 1029900 67527 68 0 0 0 0 0 24.5 30853 30853 0 0 1028430 76246 71 0 0 0 0 0 25.0 30897 30897 0 0 1029910 67527 59 0 0 0 0 0 25.5 810677 77647 58 0 1047748 25853 309 0 0 0 0 0 26.0 957323 93982 31 0 1013581 12135 496 0 0 0 0 0 26.5 1027877 89074 58 0 1041227 12529 565 0 0 0 0 0 27.0 1008953 95183 30 0 1012121 9012 575 0 0 0 0 0 27.5 1041875 89572 58 0 1042627 11787 579 0 0 0 0 0 28.0 1011451 95326 32 0 1011629 8797 581 0 0 0 0 0 28.5 1043566 89574 58 0 1043609 11788 580 0 0 0 0 0 29.0 1016203 95663 30 0 1016214 8858 582 0 0 0 0 0 29.5 1043614 89654 58 0 1044696 11803 580 0 0 0 0 0 30.0 1016324 95765 33 0 1016581 8839 580 0 0 0 0 0 HTB2: 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 1000kbps ceil 1000kbps ./tc class add dev lo parent 1:1 classid 1:2 htb rate 400kbps ceil 1000kbps ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 1000kbps prio 0 ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 1000kbps prio 1 ./tc class add dev lo parent 1:1 classid 1:12 htb rate 600kbps ceil 1000kbps 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 Ethloop2: # 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 excess 0 P 0 0x10010 0 P 1 0x10011 0 P 2 0x10012 # start all flow at defined rate 0 R 0 300k 0 R 1 100k 0 R 2 0 # Create extra at 1:12 and borrow this to 1:2 <------? 5000 R 0 1000k 5000 R 1 1000k 5000 R 2 0 # Back to normal 15000 R 0 300k 15000 R 1 100k # Flow 1 can more first 20000 R 1 1000k # Flow 2 can more 25000 R 0 1000k # finish at 8sec 35000 X 0 0 Result2: 0.5 230577 230577 0 0 77341 77341 0 0 0 0 0 0 1.0 289910 289910 0 0 96751 96751 0 0 0 0 0 0 1.5 304256 304256 0 0 101761 101761 0 0 0 0 0 0 2.0 307410 307410 0 0 102551 102551 0 0 0 0 0 0 2.5 307495 307495 0 0 102518 102518 0 0 0 0 0 0 3.0 307516 307516 0 0 102510 102510 0 0 0 0 0 0 3.5 307957 307957 0 0 102653 102653 0 0 0 0 0 0 4.0 307625 307625 0 0 102542 102542 0 0 0 0 0 0 4.5 308064 308064 0 0 102688 102688 0 0 0 0 0 0 5.0 308560 308560 0 0 102853 102853 0 0 0 0 0 0 5.5 855082 629380 0 0 806267 264149 0 0 0 0 0 0 6.0 986672 698803 0 0 975088 297811 0 0 0 0 0 0 6.5 1017051 715306 0 0 1014302 305545 0 0 0 0 0 0 7.0 1023169 719578 0 0 1022517 307053 0 0 0 0 0 0 7.5 1023060 720153 0 0 1023753 308319 0 0 0 0 0 0 8.0 1024595 719248 0 0 1024760 307711 0 0 0 0 0 0 8.5 1026050 720637 0 0 1026089 307894 0 0 0 0 0 0 9.0 1028335 720404 0 0 1028344 308519 0 0 0 0 0 0 9.5 1025426 720841 0 0 1025428 308531 0 0 0 0 0 0 10.0 1043349 719613 5 0 1040790 307843 5 0 0 0 0 0 10.5 1025137 720979 0 0 1026828 308034 0 0 0 0 0 0 11.0 1027027 719722 0 0 1026349 308225 0 0 0 0 0 0 11.5 1022871 719902 0 0 1022710 308125 0 0 0 0 0 0 12.0 1027580 722717 0 0 1027542 308574 0 0 0 0 0 0 12.5 1026337 724191 0 0 1026328 308984 0 0 0 0 0 0 13.0 1027950 719207 0 0 1027948 310646 0 0 0 0 0 0 13.5 1021610 720588 0 0 1021609 307529 0 0 0 0 0 0 14.0 1025706 720744 0 0 1025705 307960 0 0 0 0 0 0 14.5 1017816 721060 0 0 1017175 307708 0 0 0 0 0 0 15.0 1023623 718574 0 0 1023471 307648 0 0 0 0 0 0 15.5 477723 405333 0 0 320988 151119 0 0 0 0 0 0 16.0 347993 330815 0 0 154381 114070 0 0 0 0 0 0 16.5 318301 314225 0 0 114966 105400 0 0 0 0 0 0 17.0 311606 310639 0 0 105973 103703 0 0 0 0 0 0 17.5 309400 309171 0 0 103633 103094 0 0 0 0 0 0 18.0 308404 308349 0 0 102920 102792 0 0 0 0 0 0 18.5 308905 308892 0 0 103121 103091 0 0 0 0 0 0 19.0 313270 313267 0 0 104460 104452 0 0 0 0 0 0 19.5 306322 306321 0 0 102249 102247 0 0 0 0 0 0 20.0 313711 313710 0 0 105662 105661 0 0 0 0 0 0 20.5 305221 305221 0 0 801473 583725 0 0 0 0 0 0 21.0 307885 307885 0 0 975042 689354 0 0 0 0 0 0 21.5 310946 310946 0 0 1022884 715912 5 0 0 0 0 0 22.0 305947 305947 0 0 1018105 688992 0 0 0 0 0 0 22.5 305484 305484 0 0 1018805 719065 0 0 0 0 0 0 23.0 307947 307947 0 0 1026616 720849 0 0 0 0 0 0 23.5 312851 312851 0 0 1044278 719486 0 0 0 0 0 0 24.0 319256 319256 0 0 1063276 694189 0 0 0 0 0 0 24.5 310266 310266 0 0 1035648 716992 6 0 0 0 0 0 25.0 307071 307071 0 0 1024468 723180 0 0 0 0 0 0 25.5 857274 626785 0 0 1027777 410044 0 0 0 0 0 0 26.0 986708 692801 0 0 1027169 338087 0 0 0 0 0 0 26.5 1023843 717868 3 0 1031525 315938 3 0 0 0 0 0 27.0 1017658 721640 0 0 1021051 310622 0 0 0 0 0 0 27.5 1024404 722041 0 0 1025209 302948 0 0 0 0 0 0 28.0 1026853 721913 0 0 1027665 307018 0 0 0 0 0 0 28.5 1041128 716217 0 0 1040230 310044 6 0 0 0 0 0 29.0 1026519 719834 0 0 1025942 308884 0 0 0 0 0 0 29.5 1026537 720317 0 0 1025901 308181 0 0 0 0 0 0 30.0 1023602 721909 0 0 1023451 308442 0 0 0 0 0 0 30.5 1024724 718585 0 0 1024688 307740 0 0 0 0 0 0 31.0 1029030 721442 0 0 1029022 308786 0 0 0 0 0 0 31.5 1028598 721724 0 0 1028595 308598 0 0 0 0 0 0 32.0 1025909 721101 0 0 1025909 307777 0 0 0 0 0 0 32.5 1021482 719411 0 0 1021107 308019 0 0 0 0 0 0 33.0 1027614 721448 0 0 1027526 308658 0 0 0 0 0 0 33.5 1027403 721605 0 0 1027382 308310 0 0 0 0 0 0 34.0 1022211 720636 0 0 1022206 309600 0 0 0 0 0 0 34.5 1024666 718474 0 0 1024665 308097 0 0 0 0 0 0 35.0 1029017 706163 0 0 1029016 308870 0 0 0 0 0 0 Thanks in advance, Pat
Thank you for your attention, my web page is on www.cs.dal.ca/~tong 3 experiments were attached. Best Regards, Patrick Tong On Sun, 9 Jun 2002, King Yung Tong wrote:> Dear Martin, > > Hello again, Thank you for you help last time. > I think I understand the solution form you and Stef, but when come to > ethloop, the result is not like this. I repost the question, I am pleased > if you can give me a quick fix of the problem? Sorry to bother you. > > I try to create final checkfor htb, and still found the same problem. > > 1:1 (ceil 1500kbps) > / \ > (ceil 800kbps) 1:2 1:8 (ceil 700kbps) > / \ \ > 1:4 1:12 1:14 > / \ > (prio 0) 1:10 1:11 (prio 1) > > The tree under 1:2 is almost the same as you example and is working. > And I try to build a larger tree (4 levels) and I would like to do > following: > class 1:14 is completed isolated even no traffic, the BW will not borow. > class 1:12 is empty all the time. > class 1:10 is prio 0 and class 1:11 is prio 1 > > 1. My understanding is 1:8 and 1:2 are isolated because of ceil and will > not borrow? > 2. Since 1:12 is always empty, it can borrow the excess to tree 1:4 and > 1:10 will get all the BW wiht prio 0. > > But in my case, the prio parameter seems to be not working well. It will > give BW to both 1:10 and 1:11.The result I got using Ethloop is not like that. > > I try to start 1:10 at 300k, 1:11 at 100k, since 1:4 parent ceil is 800bps > remind will be 400k. > > At time 10s, I put 1:10 at 900k and 1:11 at 900k, and I think the 400kbs > excess will all go to 1:10 and make the flow 1:10 be 700kbs ( < 1:4 ceil ). > > >From the ethloop result, 1:10 from 30 go to 50. (equal sharing) > 1:11 form 10 go to 30. (eqaul sharing) > > Do you think the problem is on HTB script or ethloop script or both???? > > My HTB: > > echo "sim7 can do the priority BW" > > 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 1500kbps ceil > 1500kbps > > echo "AF and BE" > ./tc class add dev lo parent 1:1 classid 1:2 htb rate 100kbps ceil 800kbps > ./tc class add dev lo parent 1:2 classid 1:4 htb rate 100nbps ceil 800kbps > ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 800kbps prio 0 > ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 800kbps prio 1 > ./tc class add dev lo parent 1:1 classid 1:12 htb rate 100kbps ceil 800kbps > > echo "EF" > ./tc class add dev lo parent 1:1 classid 1:8 htb rate 100kbps ceil 700kbps > ./tc class add dev lo parent 1:8 classid 1:14 htb rate 100kbps ceil 700kbps > > echo qdisc for AF and BE > ./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 > echo qdisc EF > ./tc qdisc add dev lo parent 1:14 handle 50: sfq perturb 10 > > > My testcase: > > # set simulation packet size to 1k > 0 S 0 1k > 0 S 1 1k > 0 S 2 1k > 0 S 3 1k > # flow 0 AF, flow 1 BE, flow 2 excess, flow 3 EF > 0 P 0 0x10010 > 0 P 1 0x10011 > 0 P 2 0x10012 > 0 P 3 0x10014 > # start all flow at defined rate > 0 R 0 300k > 0 R 1 100k > 0 R 2 0 > 0 R 3 700k > # AE/BE independent of EF > > # AE and BE flow higher than normal excess <---Both will get BW ???? > 10000 R 0 900k > 10000 R 1 900k > > # AE and BE back to normal excess <-- Go back to original case and try again > 15000 R 0 300k > 15000 R 1 100k > > # BE flow higher than normal excess <---no prio flow, allow lower prio to get BW > 20000 R 1 900k > > # AF flow higher than normal <---flow for low prio, both will get BW ???? > 25000 R 0 900k > > # EF flow higher than normal > 30000 R 3 900k > > 35000 X 0 0 > > > Result: > > 0.5 231444 231444 0 0 77383 77383 0 0 0 0 0 0 540271 478572 40 0 > 1.0 278479 278479 0 0 92882 92882 0 0 0 0 0 0 609124 583719 61 0 > 1.5 298901 298901 0 0 100509 100509 0 0 0 0 0 0 615354 611911 62 0 > 2.0 302205 302205 0 0 101279 101279 0 0 0 0 0 0 617530 617379 63 0 > 2.5 305878 305878 0 0 102361 102361 0 0 0 0 0 0 616506 616471 63 0 > 3.0 304599 304599 0 0 102921 102921 0 0 0 0 0 0 618702 618073 63 0 > 3.5 307264 307264 0 0 102751 102751 0 0 0 0 0 0 618239 617715 63 0 > 4.0 309582 309582 0 0 103272 103272 0 0 0 0 0 0 620044 619920 63 0 > 4.5 309559 309559 0 0 103205 103205 0 0 0 0 0 0 619327 619298 63 0 > 5.0 304899 304899 0 0 102930 102930 0 0 0 0 0 0 621407 619538 63 0 > 5.5 307757 307757 0 0 102893 102893 0 0 0 0 0 0 618269 617825 63 0 > 6.0 307659 307659 0 0 102626 102626 0 0 0 0 0 0 615972 615867 63 0 > 6.5 308994 308994 0 0 103015 103015 0 0 0 0 0 0 618143 618118 63 0 > 7.0 304329 304329 0 0 102740 102740 0 0 0 0 0 0 620014 617526 61 0 > 7.5 307540 307540 0 0 102821 102821 0 0 0 0 0 0 617775 617184 63 0 > 8.0 308544 308544 0 0 102921 102921 0 0 0 0 0 0 617728 617588 63 0 > 8.5 308877 308877 0 0 102976 102976 0 0 0 0 0 0 619844 619811 63 0 > 9.0 302607 302607 0 0 100873 100873 0 0 0 0 0 0 620449 617339 61 0 > 9.5 306437 306437 0 0 102147 102147 0 0 0 0 0 0 616490 615752 63 0 > 10.0 300719 300719 0 0 100240 100240 0 0 0 0 0 0 604882 617636 63 0 > 10.5 777898 471982 0 0 729513 264159 0 0 0 0 0 0 609705 618402 43 0 > 11.0 863025 505560 0 0 851542 297668 0 0 0 0 0 0 619129 616713 41 0 > 11.5 909551 512577 0 0 906826 306202 0 0 0 0 0 0 618050 617476 43 0 > 12.0 921768 513819 0 0 921121 307972 0 0 0 0 0 0 618739 618603 43 0 > 12.5 907931 513704 0 0 905857 308147 0 0 0 0 0 0 619284 616925 43 0 > 13.0 886514 523490 0 0 883462 304891 0 0 0 0 0 0 624941 617690 40 0 > 13.5 915565 515999 0 0 886622 307416 0 0 0 0 0 0 620989 619268 42 0 > 14.0 923631 514873 0 0 879157 308406 0 0 0 0 0 0 618273 617864 43 0 > 14.5 927437 515656 0 0 878626 309271 0 0 0 0 0 0 618889 618792 43 0 > 15.0 895009 532329 0 0 859566 299013 0 0 0 0 0 0 621768 617479 40 0 > 15.5 448147 362082 0 0 282565 149543 0 0 0 0 0 0 631565 619126 63 0 > 16.0 341084 320660 0 0 145299 113733 0 0 0 0 0 0 619346 616394 63 0 > 16.5 315486 310640 0 0 112662 105171 0 0 0 0 0 0 616065 615364 63 0 > 17.0 297585 296435 0 0 102699 100921 0 0 0 0 0 0 611654 619246 51 0 > 17.5 306021 305749 0 0 84149 83727 0 0 0 0 0 0 618384 617756 63 0 > 18.0 308460 308395 0 0 84714 84614 0 0 0 0 0 0 618424 618275 63 0 > 18.5 307777 307761 0 0 97575 97552 0 0 0 0 0 0 618070 618035 63 0 > 19.0 301490 301487 0 0 96855 96849 0 0 0 0 0 0 620032 618278 63 0 > 19.5 301154 301153 0 0 98066 98065 0 0 0 0 0 0 620900 616848 63 0 > 20.0 286469 286469 0 0 93726 93726 0 0 0 0 0 0 622997 616716 60 0 > 20.5 278343 278343 0 0 673385 450580 0 0 0 0 0 0 622126 619319 55 0 > 21.0 268888 268888 0 0 803848 524704 0 0 0 0 0 0 611372 617699 46 0 > 21.5 264163 264163 0 0 848137 550577 0 0 0 0 0 0 616748 618975 60 0 > 22.0 290767 290767 0 0 904416 530316 0 0 0 0 0 0 619749 620278 55 0 > 22.5 298363 298363 0 0 902981 524515 0 0 0 0 0 0 618094 618219 60 0 > 23.0 296164 296164 0 0 894027 520963 0 0 0 0 0 0 620139 619658 60 0 > 23.5 305930 305930 0 0 919102 516374 0 0 0 0 0 0 618459 618345 60 0 > 24.0 296653 296653 0 0 891907 527558 0 0 0 0 0 0 617325 619622 60 0 > 24.5 302214 302214 0 0 908726 507221 0 0 0 0 0 0 620659 587427 60 0 > 25.0 281425 281425 0 0 848616 514517 3 0 0 0 0 0 599578 619178 51 0 > 25.5 729582 470403 0 0 890676 359409 0 0 0 0 0 0 618846 618637 43 0 > 26.0 840603 504053 0 0 914453 320744 0 0 0 0 0 0 617764 617714 43 0 > 26.5 841996 517336 0 0 864975 310744 0 0 0 0 0 0 602270 618756 43 0 > 27.0 863804 492801 11 0 869257 296796 11 0 0 0 0 0 592927 618803 43 0 > 27.5 907681 517564 0 0 908975 309183 0 0 0 0 0 0 621719 618679 43 0 > 28.0 874073 516131 0 0 876445 310199 0 0 0 0 0 0 616986 620472 40 0 > 28.5 911304 513526 0 0 911866 308239 0 0 0 0 0 0 615668 616495 43 0 > 29.0 921202 513498 0 0 921336 308128 0 0 0 0 0 0 617519 617715 43 0 > 29.5 886795 518855 0 0 888691 309211 0 0 0 0 0 0 619105 622497 40 0 > 30.0 867967 521988 0 0 871155 306927 1 0 0 0 0 0 617935 619478 40 0 > 30.5 775693 516624 1 0 777624 304519 1 0 0 0 0 0 605359 625650 40 0 > 31.0 786527 529944 2 0 790509 300677 2 0 0 0 0 0 621088 622072 46 0 > 31.5 827695 533777 0 0 830094 298140 0 0 0 0 0 0 652808 612476 43 0 > 32.0 818300 532576 0 0 821039 295613 0 0 0 0 0 0 647647 607022 41 0 > 32.5 810709 520589 0 0 813866 289856 1 0 0 0 0 0 632117 599990 43 0 > 33.0 843462 524122 0 0 844211 299315 0 0 0 0 0 0 639384 609260 43 0 > 33.5 799789 525951 0 0 802866 303504 0 0 0 0 0 0 621335 618217 43 0 > 34.0 786034 523152 0 0 790214 302283 0 0 0 0 0 0 619806 621308 43 0 > 35.0 936074 514486 0 0 936923 301056 0 0 0 0 0 0 637879 603055 43 0 > > Thank you, I spend four hours on it and can not find the reasons. :( > > Pat > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > Thank you, I put 100kbps to both 1:11 and 1:10. 1:10 (prio 0) get almost > > > 50kbps form 60kbps excess and 1:20 (prio 1) get 10kbps form excess. > > > Is it the expected result? > > > I gussess the all 60kbps (excess) should go to prio 0 or by proportional > > > to rate in each class. > > > > > > > > > Pat > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > Ok. It seems you generate only 40kbps by ethloop script. Then you > > > > can''t expect your lines to go higher ! > > > > Generate 100kbps to 1:11 and 1:10 ... > > > > devik > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > Here is the version and info. > > > > > > > > > > Version htb3_2.4.17 > > > > > > > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > > > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > > > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > > > > rate 254bps > > > > > lended: 100 borrowed: 27 giants: 0 > > > > > tokens: -60449 ctokens: 12800 > > > > > > > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > > > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > > > > 0) > > > > > rate 1426bps 1pps > > > > > lended: 81 borrowed: 0 giants: 0 > > > > > tokens: 12800 ctokens: 12800 > > > > > > > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > > > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > > > > rate 704bps > > > > > lended: 298 borrowed: 54 giants: 0 > > > > > tokens: -36462 ctokens: 12800 > > > > > > > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > > > > cburst 2623b/8 mpu 0b level 6 > > > > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > > > > rate 958bps > > > > > lended: 0 borrowed: 81 giants: 0 > > > > > tokens: -62221 ctokens: 12800 > > > > > > > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > > > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > > > > rate 426bps > > > > > lended: 234 borrowed: 0 giants: 0 > > > > > tokens: 15867 ctokens: 12800 > > > > > > > > > > > > > > > > > > > > result for all line with 100kbps (pic5) > > > > > > > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > > > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > > > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > > > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > > > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > > > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > > > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > > > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > > > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > > > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > > > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > > > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > > > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > > > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > > > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > > > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > > > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > > > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > > > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > > > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > What version of HTB do you use ? Send me > > > > > > tc -s -d class show dev xxx > > > > > > outoput after test pic5 generation. > > > > > > devik > > > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > > > Thank you again for you help! > > > > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > > > > meant for lowering delay and change in excess distribution is > > > > > > > > only "secondary" product. > > > > > > > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > > > > > > > devik > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > _______________________________________________ > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >
Hello Martin, Any comment for the graph in my web site? Pat On Mon, 10 Jun 2002, King Yung Tong wrote:> Thank you for your attention, my web page is on www.cs.dal.ca/~tong > 3 experiments were attached. > > Best Regards, > > Patrick Tong > > On Sun, 9 Jun 2002, King Yung Tong wrote: > > > Dear Martin, > > > > Hello again, Thank you for you help last time. > > I think I understand the solution form you and Stef, but when come to > > ethloop, the result is not like this. I repost the question, I am pleased > > if you can give me a quick fix of the problem? Sorry to bother you. > > > > I try to create final checkfor htb, and still found the same problem. > > > > 1:1 (ceil 1500kbps) > > / \ > > (ceil 800kbps) 1:2 1:8 (ceil 700kbps) > > / \ \ > > 1:4 1:12 1:14 > > / \ > > (prio 0) 1:10 1:11 (prio 1) > > > > The tree under 1:2 is almost the same as you example and is working. > > And I try to build a larger tree (4 levels) and I would like to do > > following: > > class 1:14 is completed isolated even no traffic, the BW will not borow. > > class 1:12 is empty all the time. > > class 1:10 is prio 0 and class 1:11 is prio 1 > > > > 1. My understanding is 1:8 and 1:2 are isolated because of ceil and will > > not borrow? > > 2. Since 1:12 is always empty, it can borrow the excess to tree 1:4 and > > 1:10 will get all the BW wiht prio 0. > > > > But in my case, the prio parameter seems to be not working well. It will > > give BW to both 1:10 and 1:11.The result I got using Ethloop is not like that. > > > > I try to start 1:10 at 300k, 1:11 at 100k, since 1:4 parent ceil is 800bps > > remind will be 400k. > > > > At time 10s, I put 1:10 at 900k and 1:11 at 900k, and I think the 400kbs > > excess will all go to 1:10 and make the flow 1:10 be 700kbs ( < 1:4 ceil ). > > > > >From the ethloop result, 1:10 from 30 go to 50. (equal sharing) > > 1:11 form 10 go to 30. (eqaul sharing) > > > > Do you think the problem is on HTB script or ethloop script or both???? > > > > My HTB: > > > > echo "sim7 can do the priority BW" > > > > 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 1500kbps ceil > > 1500kbps > > > > echo "AF and BE" > > ./tc class add dev lo parent 1:1 classid 1:2 htb rate 100kbps ceil 800kbps > > ./tc class add dev lo parent 1:2 classid 1:4 htb rate 100nbps ceil 800kbps > > ./tc class add dev lo parent 1:2 classid 1:10 htb rate 300kbps ceil 800kbps prio 0 > > ./tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbps ceil 800kbps prio 1 > > ./tc class add dev lo parent 1:1 classid 1:12 htb rate 100kbps ceil 800kbps > > > > echo "EF" > > ./tc class add dev lo parent 1:1 classid 1:8 htb rate 100kbps ceil 700kbps > > ./tc class add dev lo parent 1:8 classid 1:14 htb rate 100kbps ceil 700kbps > > > > echo qdisc for AF and BE > > ./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 > > echo qdisc EF > > ./tc qdisc add dev lo parent 1:14 handle 50: sfq perturb 10 > > > > > > My testcase: > > > > # set simulation packet size to 1k > > 0 S 0 1k > > 0 S 1 1k > > 0 S 2 1k > > 0 S 3 1k > > # flow 0 AF, flow 1 BE, flow 2 excess, flow 3 EF > > 0 P 0 0x10010 > > 0 P 1 0x10011 > > 0 P 2 0x10012 > > 0 P 3 0x10014 > > # start all flow at defined rate > > 0 R 0 300k > > 0 R 1 100k > > 0 R 2 0 > > 0 R 3 700k > > # AE/BE independent of EF > > > > # AE and BE flow higher than normal excess <---Both will get BW ???? > > 10000 R 0 900k > > 10000 R 1 900k > > > > # AE and BE back to normal excess <-- Go back to original case and try again > > 15000 R 0 300k > > 15000 R 1 100k > > > > # BE flow higher than normal excess <---no prio flow, allow lower prio to get BW > > 20000 R 1 900k > > > > # AF flow higher than normal <---flow for low prio, both will get BW ???? > > 25000 R 0 900k > > > > # EF flow higher than normal > > 30000 R 3 900k > > > > 35000 X 0 0 > > > > > > Result: > > > > 0.5 231444 231444 0 0 77383 77383 0 0 0 0 0 0 540271 478572 40 0 > > 1.0 278479 278479 0 0 92882 92882 0 0 0 0 0 0 609124 583719 61 0 > > 1.5 298901 298901 0 0 100509 100509 0 0 0 0 0 0 615354 611911 62 0 > > 2.0 302205 302205 0 0 101279 101279 0 0 0 0 0 0 617530 617379 63 0 > > 2.5 305878 305878 0 0 102361 102361 0 0 0 0 0 0 616506 616471 63 0 > > 3.0 304599 304599 0 0 102921 102921 0 0 0 0 0 0 618702 618073 63 0 > > 3.5 307264 307264 0 0 102751 102751 0 0 0 0 0 0 618239 617715 63 0 > > 4.0 309582 309582 0 0 103272 103272 0 0 0 0 0 0 620044 619920 63 0 > > 4.5 309559 309559 0 0 103205 103205 0 0 0 0 0 0 619327 619298 63 0 > > 5.0 304899 304899 0 0 102930 102930 0 0 0 0 0 0 621407 619538 63 0 > > 5.5 307757 307757 0 0 102893 102893 0 0 0 0 0 0 618269 617825 63 0 > > 6.0 307659 307659 0 0 102626 102626 0 0 0 0 0 0 615972 615867 63 0 > > 6.5 308994 308994 0 0 103015 103015 0 0 0 0 0 0 618143 618118 63 0 > > 7.0 304329 304329 0 0 102740 102740 0 0 0 0 0 0 620014 617526 61 0 > > 7.5 307540 307540 0 0 102821 102821 0 0 0 0 0 0 617775 617184 63 0 > > 8.0 308544 308544 0 0 102921 102921 0 0 0 0 0 0 617728 617588 63 0 > > 8.5 308877 308877 0 0 102976 102976 0 0 0 0 0 0 619844 619811 63 0 > > 9.0 302607 302607 0 0 100873 100873 0 0 0 0 0 0 620449 617339 61 0 > > 9.5 306437 306437 0 0 102147 102147 0 0 0 0 0 0 616490 615752 63 0 > > 10.0 300719 300719 0 0 100240 100240 0 0 0 0 0 0 604882 617636 63 0 > > 10.5 777898 471982 0 0 729513 264159 0 0 0 0 0 0 609705 618402 43 0 > > 11.0 863025 505560 0 0 851542 297668 0 0 0 0 0 0 619129 616713 41 0 > > 11.5 909551 512577 0 0 906826 306202 0 0 0 0 0 0 618050 617476 43 0 > > 12.0 921768 513819 0 0 921121 307972 0 0 0 0 0 0 618739 618603 43 0 > > 12.5 907931 513704 0 0 905857 308147 0 0 0 0 0 0 619284 616925 43 0 > > 13.0 886514 523490 0 0 883462 304891 0 0 0 0 0 0 624941 617690 40 0 > > 13.5 915565 515999 0 0 886622 307416 0 0 0 0 0 0 620989 619268 42 0 > > 14.0 923631 514873 0 0 879157 308406 0 0 0 0 0 0 618273 617864 43 0 > > 14.5 927437 515656 0 0 878626 309271 0 0 0 0 0 0 618889 618792 43 0 > > 15.0 895009 532329 0 0 859566 299013 0 0 0 0 0 0 621768 617479 40 0 > > 15.5 448147 362082 0 0 282565 149543 0 0 0 0 0 0 631565 619126 63 0 > > 16.0 341084 320660 0 0 145299 113733 0 0 0 0 0 0 619346 616394 63 0 > > 16.5 315486 310640 0 0 112662 105171 0 0 0 0 0 0 616065 615364 63 0 > > 17.0 297585 296435 0 0 102699 100921 0 0 0 0 0 0 611654 619246 51 0 > > 17.5 306021 305749 0 0 84149 83727 0 0 0 0 0 0 618384 617756 63 0 > > 18.0 308460 308395 0 0 84714 84614 0 0 0 0 0 0 618424 618275 63 0 > > 18.5 307777 307761 0 0 97575 97552 0 0 0 0 0 0 618070 618035 63 0 > > 19.0 301490 301487 0 0 96855 96849 0 0 0 0 0 0 620032 618278 63 0 > > 19.5 301154 301153 0 0 98066 98065 0 0 0 0 0 0 620900 616848 63 0 > > 20.0 286469 286469 0 0 93726 93726 0 0 0 0 0 0 622997 616716 60 0 > > 20.5 278343 278343 0 0 673385 450580 0 0 0 0 0 0 622126 619319 55 0 > > 21.0 268888 268888 0 0 803848 524704 0 0 0 0 0 0 611372 617699 46 0 > > 21.5 264163 264163 0 0 848137 550577 0 0 0 0 0 0 616748 618975 60 0 > > 22.0 290767 290767 0 0 904416 530316 0 0 0 0 0 0 619749 620278 55 0 > > 22.5 298363 298363 0 0 902981 524515 0 0 0 0 0 0 618094 618219 60 0 > > 23.0 296164 296164 0 0 894027 520963 0 0 0 0 0 0 620139 619658 60 0 > > 23.5 305930 305930 0 0 919102 516374 0 0 0 0 0 0 618459 618345 60 0 > > 24.0 296653 296653 0 0 891907 527558 0 0 0 0 0 0 617325 619622 60 0 > > 24.5 302214 302214 0 0 908726 507221 0 0 0 0 0 0 620659 587427 60 0 > > 25.0 281425 281425 0 0 848616 514517 3 0 0 0 0 0 599578 619178 51 0 > > 25.5 729582 470403 0 0 890676 359409 0 0 0 0 0 0 618846 618637 43 0 > > 26.0 840603 504053 0 0 914453 320744 0 0 0 0 0 0 617764 617714 43 0 > > 26.5 841996 517336 0 0 864975 310744 0 0 0 0 0 0 602270 618756 43 0 > > 27.0 863804 492801 11 0 869257 296796 11 0 0 0 0 0 592927 618803 43 0 > > 27.5 907681 517564 0 0 908975 309183 0 0 0 0 0 0 621719 618679 43 0 > > 28.0 874073 516131 0 0 876445 310199 0 0 0 0 0 0 616986 620472 40 0 > > 28.5 911304 513526 0 0 911866 308239 0 0 0 0 0 0 615668 616495 43 0 > > 29.0 921202 513498 0 0 921336 308128 0 0 0 0 0 0 617519 617715 43 0 > > 29.5 886795 518855 0 0 888691 309211 0 0 0 0 0 0 619105 622497 40 0 > > 30.0 867967 521988 0 0 871155 306927 1 0 0 0 0 0 617935 619478 40 0 > > 30.5 775693 516624 1 0 777624 304519 1 0 0 0 0 0 605359 625650 40 0 > > 31.0 786527 529944 2 0 790509 300677 2 0 0 0 0 0 621088 622072 46 0 > > 31.5 827695 533777 0 0 830094 298140 0 0 0 0 0 0 652808 612476 43 0 > > 32.0 818300 532576 0 0 821039 295613 0 0 0 0 0 0 647647 607022 41 0 > > 32.5 810709 520589 0 0 813866 289856 1 0 0 0 0 0 632117 599990 43 0 > > 33.0 843462 524122 0 0 844211 299315 0 0 0 0 0 0 639384 609260 43 0 > > 33.5 799789 525951 0 0 802866 303504 0 0 0 0 0 0 621335 618217 43 0 > > 34.0 786034 523152 0 0 790214 302283 0 0 0 0 0 0 619806 621308 43 0 > > 35.0 936074 514486 0 0 936923 301056 0 0 0 0 0 0 637879 603055 43 0 > > > > Thank you, I spend four hours on it and can not find the reasons. :( > > > > Pat > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > Thank you, I put 100kbps to both 1:11 and 1:10. 1:10 (prio 0) get almost > > > > 50kbps form 60kbps excess and 1:20 (prio 1) get 10kbps form excess. > > > > Is it the expected result? > > > > I gussess the all 60kbps (excess) should go to prio 0 or by proportional > > > > to rate in each class. > > > > > > > > > > > > Pat > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > Ok. It seems you generate only 40kbps by ethloop script. Then you > > > > > can''t expect your lines to go higher ! > > > > > Generate 100kbps to 1:11 and 1:10 ... > > > > > devik > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > Here is the version and info. > > > > > > > > > > > > Version htb3_2.4.17 > > > > > > > > > > > > [root@samwise htb]# ./tc -s -d class show dev lo > > > > > > class htb 1:11 parent 1:2 leaf 30: prio 1 quantum 1024 rate 80Kbit ceil > > > > > > 800Kbit burst 1701b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > > Sent 130048 bytes 127 pkts (dropped 0, overlimits 0) > > > > > > rate 254bps > > > > > > lended: 100 borrowed: 27 giants: 0 > > > > > > tokens: -60449 ctokens: 12800 > > > > > > > > > > > > class htb 1:1 root rate 800Kbit ceil 800Kbit burst 2623b/8 mpu 0b cburst > > > > > > 2623b/8 mpu 0b level 7 Sent 730112 bytes 713 pkts (dropped 0, overlimits > > > > > > 0) > > > > > > rate 1426bps 1pps > > > > > > lended: 81 borrowed: 0 giants: 0 > > > > > > tokens: 12800 ctokens: 12800 > > > > > > > > > > > > class htb 1:10 parent 1:2 leaf 20: prio 0 quantum 3072 rate 240Kbit ceil > > > > > > 800Kbit burst 1906b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > > Sent 360448 bytes 352 pkts (dropped 0, overlimits 0) > > > > > > rate 704bps > > > > > > lended: 298 borrowed: 54 giants: 0 > > > > > > tokens: -36462 ctokens: 12800 > > > > > > > > > > > > class htb 1:2 parent 1:1 rate 320Kbit ceil 800Kbit burst 2008b/8 mpu 0b > > > > > > cburst 2623b/8 mpu 0b level 6 > > > > > > Sent 490496 bytes 479 pkts (dropped 0, overlimits 0) > > > > > > rate 958bps > > > > > > lended: 0 borrowed: 81 giants: 0 > > > > > > tokens: -62221 ctokens: 12800 > > > > > > > > > > > > class htb 1:12 parent 1:1 leaf 40: prio 0 quantum 6144 rate 480Kbit ceil > > > > > > 800Kbit burst 2213b/8 mpu 0b cburst 2623b/8 mpu 0b level 0 > > > > > > Sent 239616 bytes 234 pkts (dropped 0, overlimits 0) > > > > > > rate 426bps > > > > > > lended: 234 borrowed: 0 giants: 0 > > > > > > tokens: 15867 ctokens: 12800 > > > > > > > > > > > > > > > > > > > > > > > > result for all line with 100kbps (pic5) > > > > > > > > > > > > 0.5 23947 23947 0 0 7982 7982 0 0 45228 45228 0 0 > > > > > > 1.0 29036 29036 0 0 9571 9571 0 0 57118 57118 0 0 > > > > > > 1.5 29318 29318 0 0 10107 10107 0 0 59489 59489 0 0 > > > > > > 2.0 30522 30522 0 0 10253 10253 0 0 59327 59327 0 0 > > > > > > 2.5 28197 28197 0 0 10280 10280 0 0 61159 61159 0 0 > > > > > > 3.0 30910 30910 0 0 7927 7927 0 0 59985 59985 0 0 > > > > > > 3.5 30991 30991 0 0 7935 7935 0 0 60665 60665 0 0 > > > > > > 4.0 28994 28994 0 0 9598 9598 0 0 59183 59183 0 0 > > > > > > 4.5 30150 30150 0 0 10034 10034 0 0 14044 14044 0 0 > > > > > > 5.0 28662 28662 0 0 10458 10458 0 0 3333 3333 0 0 > > > > > > 5.5 30876 30876 0 0 10506 10506 0 0 791 791 0 0 > > > > > > 6.0 28540 28540 0 0 10523 10523 0 0 188 188 0 0 > > > > > > 6.5 29107 29107 0 0 10154 10154 0 0 45 45 0 0 > > > > > > 7.0 30387 30387 0 0 8500 8500 0 0 11 11 0 0 > > > > > > 7.5 45085 45085 0 0 18230 18230 0 0 3 3 0 0 > > > > > > 8.0 49523 49523 0 0 19855 19855 0 0 1 1 0 0 > > > > > > 8.5 49546 49546 0 0 20405 20405 0 0 0 0 0 0 > > > > > > 9.0 50916 50916 0 0 18643 18643 0 0 0 0 0 0 > > > > > > 9.5 50410 50410 0 0 20082 20082 0 0 0 0 0 0 > > > > > > 10.0 48597 48597 0 0 20453 20453 0 0 0 0 0 0 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > > What version of HTB do you use ? Send me > > > > > > > tc -s -d class show dev xxx > > > > > > > outoput after test pic5 generation. > > > > > > > devik > > > > > > > > > > > > > > On Fri, 7 Jun 2002, King Yung Tong wrote: > > > > > > > > > > > > > > > Thank you again for you help! > > > > > > > > Attach is the pic5 for the ceil equal to 100kbps for all line. > > > > > > > > pic10limit for the ceil equal to 100kbps except 1:20. > > > > > > > > > > > > > > > > My objective is to show if not prio is set the excess should allocate > > > > > > > > according to rate. If the prio is set, the high prio should get more. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > > > > > > > > > > > > > > Thank you for you answer, 1:10 is incresed but 1:20 is also increased and > > > > > > > > > > increase to the specific rate if I add 100kbps to every line. > > > > > > > > > > > > > > > > > > sounds weird. With higher prio 1:10 should get 90k and 1:11 10k. > > > > > > > > > > > > > > > > > > > In my case, I would like to put all the extra to 1:10 only, is that means > > > > > > > > > > I have to give 1:11 ceil to 10kbps. If it is, is that means I don''t need > > > > > > > > > > prio paramter? How prio parameter works? > > > > > > > > > > > > > > > > > > your understanding is ok, tge ceil 10k is correct - the prio is > > > > > > > > > meant for lowering delay and change in excess distribution is > > > > > > > > > only "secondary" product. > > > > > > > > > > > > > > > > > > Port the resulting graph somewhere so I can look at it. > > > > > > > > > > > > > > > > > > devik > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > _______________________________________________ > > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > _______________________________________________ > > > LARTC mailing list / LARTC@mailman.ds9a.nl > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >