Re: [LARTC] Ethloop
On Sunday 07 September 2003 05:25, Yves Bergeron wrote: > Hi, > > This is my scenario > > I have a 100mbit for 400 routes and the rest of Internet is at 2mbit > > # > #1:1 > # / \ > #1:2 1:12 > # / \ > # 1:10 1:11 > > > tc qdisc del dev lo root handle 1: htb default 10 > tc qdisc add dev lo root handle 1: htb default 10 > > tc class add dev lo parent 1: classid 1:1 htb rate 100mbit quantum > 1500 > > tc class add dev lo parent 1:1 classid 1:2 htb rate 1950kbit > > tc class add dev lo parent 1:2 classid 1:10 htb rate 1500kbit ceil > 1900kbit tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbit ceil > 1000kbit > > tc class add dev lo parent 1:1 classid 1:12 htb rate 98mbit quantum > 1500 > > tc qdisc add dev lo parent 1:10 handle 10: sfq perturb 10 > tc qdisc add dev lo parent 1:11 handle 11: sfq perturb 10 > tc qdisc add dev lo parent 1:12 handle 12: sfq perturb 10 > > > > Is my class Ok ? > > > I want to make simulation with Ethloop, How can I known which flow > correspond to which classid ? I use ethloop also and 0x10010 is class 1:10, 0x10011 is class 1:11. (ethloop is a tool that can be used to test htb, see htb home page). Example : tc qdisc del dev lo root ifconfig lo mtu 1500 tc qdisc add dev lo root handle 1: htb default 10 TC="tc class add dev lo parent" $TC 1: classid 1:1 htb rate 100kbps $TC 1:1 classid 1:10 htb rate 40kbps ceil 100kbps $TC 1:1 classid 1:11 htb rate 60kbps ceil 100kbps tc qdisc add dev lo parent 1:10 pfifo tc qdisc add dev lo parent 1:11 pfifo 0 i 0 lo 0 i 1 lo 0 P 0 0x10010 0 P 1 0x10011 0 S 0 1500 0 S 1 1500 # start all flows 0 R 0 120k 0 R 1 120k 12000 X 0 0 Stef -- [EMAIL PROTECTED] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Ethloop
Hi, This is my scenario I have a 100mbit for 400 routes and the rest of Internet is at 2mbit # #1:1 # / \ #1:2 1:12 # / \ # 1:10 1:11 tc qdisc del dev lo root handle 1: htb default 10 tc qdisc add dev lo root handle 1: htb default 10 tc class add dev lo parent 1: classid 1:1 htb rate 100mbit quantum 1500 tc class add dev lo parent 1:1 classid 1:2 htb rate 1950kbit tc class add dev lo parent 1:2 classid 1:10 htb rate 1500kbit ceil 1900kbit tc class add dev lo parent 1:2 classid 1:11 htb rate 100kbit ceil 1000kbit tc class add dev lo parent 1:1 classid 1:12 htb rate 98mbit quantum 1500 tc qdisc add dev lo parent 1:10 handle 10: sfq perturb 10 tc qdisc add dev lo parent 1:11 handle 11: sfq perturb 10 tc qdisc add dev lo parent 1:12 handle 12: sfq perturb 10 Is my class Ok ? I want to make simulation with Ethloop, How can I known which flow correspond to which classid ? # lo will be used to TX and RX 0 i 0 lo 0 i 1 lo 0 i 2 lo Thank you Yves Bergeron [EMAIL PROTECTED] == ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop again and 4 level tree ???
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:121: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 > > 1R 0 900k > > 1R 1 900k > > > > # AE and BE back to normal excess <-- Go back to original case and try again > > 15000R 0 300k > > 15000R 1 100k > > > > # BE flow higher than normal excess <---no prio flow, allow lower prio to get BW > > 2R 1 900k > > > > # AF flow higher than normal <---flow for low prio, both will get BW > > 25000R 0 900k > > > > # EF flow higher than normal > > 3 R 3 900k > > > > 35000X 00 > > > > > > 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
Re: [LARTC] Ethloop again and 4 level tree ???
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:121: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 > 1R 0 900k > 1R 1 900k > > # AE and BE back to normal excess <-- Go back to original case and try again > 15000R 0 300k > 15000R 1 100k > > # BE flow higher than normal excess <---no prio flow, allow lower prio to get BW > 2R 1 900k > > # AF flow higher than normal <---flow for low prio, both will get BW > 25000R 0 900k > > # EF flow higher than normal > 3 R 3 900k > > 35000X 00 > > > 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 3077
Re: [LARTC] Ethloop again and 4 level tree ???
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:121: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 1R 0 900k 1R 1 900k # AE and BE back to normal excess <-- Go back to original case and try again 15000R 0 300k 15000R 1 100k # BE flow higher than normal excess <---no prio flow, allow lower prio to get BW 2R 1 900k # AF flow higher than normal <---flow for low prio, both will get BW 25000R 0 900k # EF flow higher than normal 3 R 3 900k 35000X 00 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 1
Re: [LARTC] Ethloop again and 4 level tree ???
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:121: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 > > -- > > [EMAIL PROTECTED] > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.openprojects.net > > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop again and 4 level tree ???
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:121: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 > > -- > > [EMAIL PROTECTED] > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.openprojects.net > ___ > LARTC mailing list / [EMAIL PROTECTED] > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop again and 4 level tree ???
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:121: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 -- [EMAIL PROTECTED] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop again and 4 level tree ???
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:121: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 1R 0 900k 1R 1 900k # AE and BE back to normal excess 15000R 0 300k 15000R 1 100k # BE flow higher than normal excess <---no prio flow, allow lower prio to get BW 2R 1 900k # AF flow higher than normal <---Both will get BW 25000R 0 900k # EF flow higher than normal 3 R 3 900k 35000X 00 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.
Re: [LARTC] Ethloop?
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 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
Re: [LARTC] Ethloop?
> 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 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 >incre
Re: [LARTC] Ethloop?
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 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. > > > > > dev
Re: [LARTC] Ethloop?
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 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 > > > > > > > > > > > > __
Re: [LARTC] Ethloop?
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 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 / [EMAIL PROTECTED] > > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > > > > > > > > > ___ > LARTC mailing list / [EMAIL PROTECTED] > http://mailman.ds9a.nl/mailman/listinfo/lartc
Re: [LARTC] Ethloop?
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 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 / [EMAIL PROTECTED] > > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > > > > > > > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop?
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 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 / [EMAIL PROTECTED] > > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > > > > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop?
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 / [EMAIL PROTECTED] > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop?
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 / [EMAIL PROTECTED] > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop?
> 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 / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop?
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 3 > > 0 R 1 1 > > 0 R 2 6 > > # Create extra at 1:12 and borrow this to 1:2 <--? > > 5000R 0 3 > > 5000R 1 1 > > 5000R 2 0 > > # 1:10 and 1:11 and 1:10 should get higher value <--? > > 15000R 0 4 > > 15000R 1 2 > > # finish at 8sec > > 25000X 00 > > > > Result is to long, I use gnuplot and found that 1:10 at most get 3. > > > > Thank you for you help. > > > > Pat > > > > > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > > > What is the problem ? use cat ethloop_script|./ethloop > > > for example .. > > > devik > > > > > > On Thu, 6 Jun 2002, King Yung Tong wrote: > > > > > > > > > > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop?
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 3 > 0 R 1 1 > 0 R 2 6 > # Create extra at 1:12 and borrow this to 1:2 <--? > 5000R 0 3 > 5000R 1 1 > 5000R 2 0 > # 1:10 and 1:11 and 1:10 should get higher value <--? > 15000R 0 4 > 15000R 1 2 > # finish at 8sec > 25000X 00 > > Result is to long, I use gnuplot and found that 1:10 at most get 3. > > Thank you for you help. > > Pat > > > > On Fri, 7 Jun 2002, Martin Devera wrote: > > > What is the problem ? use cat ethloop_script|./ethloop > > for example .. > > devik > > > > On Thu, 6 Jun 2002, King Yung Tong wrote: > > > > > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop?
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 3 0 R 1 1 0 R 2 6 # Create extra at 1:12 and borrow this to 1:2 <--? 5000R 0 3 5000R 1 1 5000R 2 0 # 1:10 and 1:11 and 1:10 should get higher value <--? 15000R 0 4 15000R 1 2 # finish at 8sec 25000X 00 Result is to long, I use gnuplot and found that 1:10 at most get 3. Thank you for you help. Pat On Fri, 7 Jun 2002, Martin Devera wrote: > What is the problem ? use cat ethloop_script|./ethloop > for example .. > devik > > On Thu, 6 Jun 2002, King Yung Tong wrote: > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Re: [LARTC] Ethloop?
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 450 > #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 0x100101k > 0 S P 0x10020 1k > > # start both flows > 0 R P 0x10010100k > 0 R P 0x10020100k > > # flow 1 to 50k and 10k later > 2000R P 0x1001050k > 4000R P 0x1002010k > > # finish at 6sec > 6000X 00 > > > 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 / [EMAIL PROTECTED] > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Ethloop problem
Dear all, I try to use ethloop to test the script, my problem is the output rate is much less than the input rate 0 i 0 lo 0 S 0 1k 0 P 0 0x10010 0 R 0 50 8000X 00 0.5 376145 74791 3 0 1.0 472944 75533 3 0 1.5 495668 71218 2 0 2.0 513885 64053 7 0 2.5 499769 50640 42 0 3.0 499423 55504 2 0 3.5 500493 57173 3 0 4.0 499608 55859 3 0 4.5 501749 63423 3 0 5.0 502665 63120 3 0 5.5 503079 67902 2 0 6.0 503440 79092 2 0 6.5 503290 75602 2 0 7.0 502496 69684 3 0 7.5 501822 62261 10 0 8.0 501606 49721 3 0 echo Clean all the tc setup ./tc qdisc del dev lo root echo Core router echo Create qdisc and set default to 1:30 ./tc qdisc add dev lo root handle 1: htb default 30 ./tc class add dev lo parent 1: classid 1:1 htb rate 1000kbit cburst 10k echo Create class for EF ./tc class add dev lo parent 1:1 classid 1:10 htb rate 500kbit ceil 500kbit cburst 10k prio 1 Best regards, Pat ___ LARTC mailing list / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
[LARTC] Ethloop?
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 450 #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 0x100101k 0 S P 0x10020 1k # start both flows 0 R P 0x10010100k 0 R P 0x10020100k # flow 1 to 50k and 10k later 2000R P 0x1001050k 4000R P 0x1002010k # finish at 6sec 6000X 00 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 / [EMAIL PROTECTED] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/