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 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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
What is the problem ? use cat ethloop_script|./ethloop for example ..
devik
Quoted 76 lines · King Yung Tong
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 0tc script:
echo Clean all the tc setup
./tc qdisc del dev eth0 rootecho 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 50kecho 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 1echo Create class for AF
./tc class add dev eth1 parent 1:2 classid 1:20 htb rate 0.5Mbit ceil 1Mbit burst 30K prio 1echo 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.4echo Filter
./tc filter add dev eth1 parent 1: protocol ip prio 1 u32 match ip tos0xb80xffclassid 1:10
./tc filter add dev eth1 parent 1: protocol ip prio 2 u32 match ip tos0x00xffclassid 1:20
./tc filter add dev eth1 parent 1: protocol ip prio 3 u32 match ip tos0x980xffclassid 1:30
Quoted 9 lines
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/
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
Quoted 6 lines · Martin Devera
What is the problem ? use cat ethloop_script|./ethloop for example ..
devikOn Thu, 6 Jun 2002, King Yung Tong wrote:
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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
Quoted 62 lines · King Yung Tong
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 10Input 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 0Result is to long, I use gnuplot and found that 1:10 at most get 30000.
Quoted 17 lines
Thank you for you help.
Pat
Quoted 6 lines · Martin Devera
What is the problem ? use cat ethloop_script|./ethloop for example ..
devikOn Thu, 6 Jun 2002, King Yung Tong wrote:
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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
Quoted 5 lines · Martin Devera
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
Quoted 82 lines
Quoted 79 lines · King Yung Tong
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 10Input 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 0Result is to long, I use gnuplot and found that 1:10 at most get 30000.
Thank you for you help.
Pat
Quoted 6 lines · Martin Devera
What is the problem ? use cat ethloop_script|./ethloop for example ..
devikOn Thu, 6 Jun 2002, King Yung Tong wrote:
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 2 lines
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.
Quoted 3 lines
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/
What version of HTB do you use ? Send me
tc -s -d class show dev xxx
outoput after test pic5 generation.
devik
Quoted 4 lines · King Yung Tong
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.
Quoted 31 lines
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.
Quoted 21 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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/
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
Quoted 13 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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.
Quoted 8 lines
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/
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
Quoted 5 lines · Martin Devera
What version of HTB do you use ? Send me
tc -s -d class show dev xxx
outoput after test pic5 generation.
devik
Quoted 38 lines
Quoted 35 lines · King Yung Tong
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.
Quoted 21 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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/
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
Quoted 70 lines · King Yung Tong
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: 12800class 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: 12800class 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: 12800class 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: 12800class 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: 12800result 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
Quoted 48 lines
Quoted 43 lines · Martin Devera
What version of HTB do you use ? Send me
tc -s -d class show dev xxx
outoput after test pic5 generation.
devikQuoted 35 lines · King Yung Tong
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.
Quoted 21 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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/
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
Quoted 126 lines · Martin Devera
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 ...
devikQuoted 70 lines · King Yung Tong
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: 12800class 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: 12800class 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: 12800class 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: 12800class 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: 12800result 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
Quoted 48 lines
Quoted 43 lines · Martin Devera
What version of HTB do you use ? Send me
tc -s -d class show dev xxx
outoput after test pic5 generation.
devikQuoted 35 lines · King Yung Tong
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.
Quoted 21 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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/
Quoted 4 lines
_______________________________________________
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/
ethloop output (as text)
Quoted 7 lines · King Yung Tong
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.
Quoted 137 lines
Pat
Quoted 130 lines · Martin Devera
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 ...
devikQuoted 70 lines · King Yung Tong
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: 12800class 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: 12800class 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: 12800class 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: 12800class 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: 12800result 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
Quoted 48 lines
Quoted 43 lines · Martin Devera
What version of HTB do you use ? Send me
tc -s -d class show dev xxx
outoput after test pic5 generation.
devikQuoted 35 lines · King Yung Tong
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.
Quoted 21 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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/
_______________________________________________
LARTC mailing list / [email protected]
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
Quoted 144 lines · Martin Devera
ethloop output (as text)
Quoted 139 lines · King Yung Tong
Pat
Quoted 130 lines · Martin Devera
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 ...
devikQuoted 70 lines · King Yung Tong
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: 12800class 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: 12800class 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: 12800class 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: 12800class 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: 12800result 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
Quoted 48 lines
Quoted 43 lines · Martin Devera
What version of HTB do you use ? Send me
tc -s -d class show dev xxx
outoput after test pic5 generation.
devikQuoted 35 lines · King Yung Tong
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.
Quoted 21 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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/
Quoted 4 lines
_______________________________________________
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/
Quoted 3 lines
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
Quoted 5 lines
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
Quoted 148 lines · Martin Devera
Quoted 145 lines
ethloop output (as text)
Quoted 139 lines · King Yung Tong
Pat
Quoted 130 lines · Martin Devera
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 ...
devikQuoted 70 lines · King Yung Tong
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: 12800class 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: 12800class 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: 12800class 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: 12800class 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: 12800result 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
Quoted 48 lines
Quoted 43 lines · Martin Devera
What version of HTB do you use ? Send me
tc -s -d class show dev xxx
outoput after test pic5 generation.
devikQuoted 35 lines · King Yung Tong
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.
Quoted 21 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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/
Quoted 10 lines
Quoted 4 lines
_______________________________________________
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 mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
It is working. Thank you. I really appreciate your help. :) Thank you!!!!!!!!!!
Pat
Quoted 7 lines · Martin Devera
Quoted 3 lines
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
Quoted 168 lines
Quoted 5 lines
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
Quoted 158 lines · Martin Devera
Quoted 145 lines
ethloop output (as text)
Quoted 139 lines · King Yung Tong
Pat
Quoted 130 lines · Martin Devera
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 ...
devikQuoted 70 lines · King Yung Tong
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: 12800class 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: 12800class 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: 12800class 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: 12800class 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: 12800result 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
Quoted 48 lines
Quoted 43 lines · Martin Devera
What version of HTB do you use ? Send me
tc -s -d class show dev xxx
outoput after test pic5 generation.
devikQuoted 35 lines · King Yung Tong
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.
Quoted 21 lines · Martin Devera
Quoted 2 lines
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.
Quoted 3 lines
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/Quoted 4 lines
_______________________________________________
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 mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/