[LARTC] HTB and Ethloop interesting result??

Linux Advanced Routing and Traffic Control

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

 



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

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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