Hi ; MY script: tc-htb3 qdisc del dev eth2 root ipchains -F tc-htb3 qdisc add dev eth2 root handle 10: htb default 20 r2q 40 tc-htb3 class add dev eth2 parent 10: classid 10:1 htb rate 50Mbit burst 2000 tc-htb3 class add dev eth2 parent 10:1 classid 10:100 htb rate 12mbit ceil 50mbit prio 1 tc-htb3 class add dev eth2 parent 10:1 classid 10:20 htb rate 38mbit ceil 50Mbit prio 8 ipchains -A fw -s 10.1.1.1 -m 100 ipchains -A fw -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT tc-htb3 filter add dev eth2 protocol ip parent 10:0 prio 1 handle 100 fw classid 10:100 WHEN i send packets at 20mbit from 10.1.1.1 , #tc -s -d qdisc show dev eth2 qdisc htb 10: Sent 246602122 bytes 487287 pkts (dropped 323938, overlimits 1850710) #tc -s -d class show dev eth2 class htb 10:1 root prio 0 rate 50Mbit ceil 50Mbit burst 1985b/8 mpu 0b cburst 67121b/8 mpu 0b quantum 0 level 7 Sent 246602122 bytes 487287 pkts (dropped 0, overlimits 0) rate 8bps class htb 10:100 parent 10:1 prio 1 rate 12Mbit ceil 50Mbit burst 17325b/8 mpu 0b cburst 67121b/8 mpu 0b quantum 39321 level 0 Sent 246552164 bytes 486503 pkts (dropped 323938, overlimits 0) class htb 10:20 parent 10:1 prio 1 rate 38Mbit ceil 50Mbit burst 51396b/8 mpu 0b cburst 67121b/8 mpu 0b quantum 124518 level 0 Sent 49958 bytes 784 pkts (dropped 0, overlimits 0) rate 8bps a class 10:100 can not borrow from a parent 10:0 ,WHY? regards, haipe
On Monday 21 October 2002 05:44, lihpc@Legend.com wrote:> Hi ; > > MY script: > > tc-htb3 qdisc del dev eth2 root > ipchains -F > > tc-htb3 qdisc add dev eth2 root handle 10: htb default 20 r2q 40 > > tc-htb3 class add dev eth2 parent 10: classid 10:1 htb rate 50Mbit burst > 2000 > > tc-htb3 class add dev eth2 parent 10:1 classid 10:100 htb rate 12mbit ceil > 50mbit prio 1 > tc-htb3 class add dev eth2 parent 10:1 classid 10:20 htb rate 38mbit ceil > 50Mbit prio 8 > > ipchains -A fw -s 10.1.1.1 -m 100 > ipchains -A fw -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT > > tc-htb3 filter add dev eth2 protocol ip parent 10:0 prio 1 handle 100 fw > classid 10:100 > > WHEN i send packets at 20mbit from 10.1.1.1 , > #tc -s -d qdisc show dev eth2 > qdisc htb 10: > Sent 246602122 bytes 487287 pkts (dropped 323938, overlimits 1850710) > > #tc -s -d class show dev eth2 > class htb 10:1 root prio 0 rate 50Mbit ceil 50Mbit burst 1985b/8 mpu 0b > cburst 67121b/8 mpu 0b quantum 0 level 7 > Sent 246602122 bytes 487287 pkts (dropped 0, overlimits 0) > rate 8bps > > class htb 10:100 parent 10:1 prio 1 rate 12Mbit ceil 50Mbit burst 17325b/8 > mpu 0b cburst 67121b/8 mpu 0b quantum 39321 level 0 > Sent 246552164 bytes 486503 pkts (dropped 323938, overlimits 0) > > class htb 10:20 parent 10:1 prio 1 rate 38Mbit ceil 50Mbit burst 51396b/8 > mpu 0b cburst 67121b/8 mpu 0b quantum 124518 level 0 > Sent 49958 bytes 784 pkts (dropped 0, overlimits 0) > rate 8bps > > > a class 10:100 can not borrow from a parent 10:0 ,WHY?How do you come to that conclustion ????? Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
lihpc@Legend.com
2002-Oct-21 14:24 UTC
RE: Re: help, a children can not borrow from a parent?
WHEN i send packets from 10.1.1.1 at rate frome 12mbit to 50mbit BY using SMATRBIT 600, the rate of class 10:100 is always 12bits.>> Hi ; >> >> MY script: >> >> tc-htb3 qdisc del dev eth2 root >> ipchains -F >> >> tc-htb3 qdisc add dev eth2 root handle 10: htb default 20 r2q 40 >> >> tc-htb3 class add dev eth2 parent 10: classid 10:1 htb rate 50Mbitburst>> 2000 >> >> tc-htb3 class add dev eth2 parent 10:1 classid 10:100 htb rate 12mbitceil>> 50mbit prio 1 >> tc-htb3 class add dev eth2 parent 10:1 classid 10:20 htb rate 38mbitceil>> 50Mbit prio 8 >> >> ipchains -A fw -s 10.1.1.1 -m 100 >> ipchains -A fw -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT >> >> tc-htb3 filter add dev eth2 protocol ip parent 10:0 prio 1 handle 100fw>> classid 10:100 > >> WHEN i send packets at 20mbit from 10.1.1.1 , >>#tc -s -d qdisc show dev eth2 >> qdisc htb 10: >> Sent 246602122 bytes 487287 pkts (dropped 323938, overlimits 1850710) >> >> #tc -s -d class show dev eth2 >> class htb 10:1 root prio 0 rate 50Mbit ceil 50Mbit burst 1985b/8 mpu 0b >> cburst 67121b/8 mpu 0b quantum 0 level 7 >> Sent 246602122 bytes 487287 pkts (dropped 0, overlimits 0) >> rate 8bps >> >> class htb 10:100 parent 10:1 prio 1 rate 12Mbit ceil 50Mbit burst17325b/8>> mpu 0b cburst 67121b/8 mpu 0b quantum 39321 level 0 >> Sent 246552164 bytes 486503 pkts (dropped 323938, overlimits 0) > >> class htb 10:20 parent 10:1 prio 1 rate 38Mbit ceil 50Mbit burst51396b/8>> mpu 0b cburst 67121b/8 mpu 0b quantum 124518 level 0 >> Sent 49958 bytes 784 pkts (dropped 0, overlimits 0) >> rate 8bps > > >> a class 10:100 can not borrow from a parent 10:0 ,WHY? >How do you come to that conclustion ?????>Stef_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Monday 21 October 2002 16:24, lihpc@Legend.com wrote:> WHEN i send packets from 10.1.1.1 at rate frome 12mbit to 50mbit BY using > SMATRBIT 600, > the rate of class 10:100 is always 12bits.I suppose it''s the SMATRBIT 600 that says it sends 12bits. WHAT if you change 12mbit to 15mbit. WHAT if you send more then 20Mbit. WHAT if you change 12mbit to a lower value (1mbit). CAN you can do that and post the results? I don''t think there is an error in your setup. Stef> > >> Hi ; > >> > >> MY script: > >> > >> tc-htb3 qdisc del dev eth2 root > >> ipchains -F > >> > >> tc-htb3 qdisc add dev eth2 root handle 10: htb default 20 r2q 40 > >> > >> tc-htb3 class add dev eth2 parent 10: classid 10:1 htb rate 50Mbit > > burst > > >> 2000 > >> > >> tc-htb3 class add dev eth2 parent 10:1 classid 10:100 htb rate 12mbit > > ceil > > >> 50mbit prio 1 > >> tc-htb3 class add dev eth2 parent 10:1 classid 10:20 htb rate 38mbit > > ceil > > >> 50Mbit prio 8 > >> > >> ipchains -A fw -s 10.1.1.1 -m 100 > >> ipchains -A fw -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT > >> > >> tc-htb3 filter add dev eth2 protocol ip parent 10:0 prio 1 handle 100 > > fw > > >> classid 10:100 > >> > >> WHEN i send packets at 20mbit from 10.1.1.1 , > >>#tc -s -d qdisc show dev eth2 > >> qdisc htb 10: > >> Sent 246602122 bytes 487287 pkts (dropped 323938, overlimits 1850710) > >> > >> #tc -s -d class show dev eth2 > >> class htb 10:1 root prio 0 rate 50Mbit ceil 50Mbit burst 1985b/8 mpu 0b > >> cburst 67121b/8 mpu 0b quantum 0 level 7 > >> Sent 246602122 bytes 487287 pkts (dropped 0, overlimits 0) > >> rate 8bps > >> > >> class htb 10:100 parent 10:1 prio 1 rate 12Mbit ceil 50Mbit burst > > 17325b/8 > > >> mpu 0b cburst 67121b/8 mpu 0b quantum 39321 level 0 > >> Sent 246552164 bytes 486503 pkts (dropped 323938, overlimits 0) > >> > >> class htb 10:20 parent 10:1 prio 1 rate 38Mbit ceil 50Mbit burst > > 51396b/8 > > >> mpu 0b cburst 67121b/8 mpu 0b quantum 124518 level 0 > >> Sent 49958 bytes 784 pkts (dropped 0, overlimits 0) > >> rate 8bps > >> > >> > >> a class 10:100 can not borrow from a parent 10:0 ,WHY? > > > >How do you come to that conclustion ????? > > > >Stef > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/-- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
lihpc@Legend.com
2002-Oct-22 09:14 UTC
RE: Re: Re: help, a children can not borrow from a parent?
SORRY! not 12bits, should 12mbits WHEN i send packets from 10.1.1.1 at rate frome 12mbit to 50mbit BY using SMARTBIT 600, the rate of class 10:100 is always 12Mbits.>I suppose it''s the SMATRBIT 600 that says it sends 12bits. >WHAT if you change 12mbit to 15mbit. WHAT if you send more then 20Mbit.WHAT>if you change 12mbit to a lower value (1mbit). >CAN you can do that and post the results? >I don''t think there is an error in your setup.WHEN i change 12mbit to 15mbit and send packets at rate 15mbit,20mbit,30mbit,50mbit, the rate of class 10:100 is always 15mbits. WHEN i change 12mbit to 30mbit and send packets at rate 30mbit,40mbit,50mbit, the rate of class 10:100 is always 30mbits. WHEN i change 12mbit to a lower value (1mbit) and send packets at rate 1mbit,2mbit,10mbit,20mbit, the rate of class 10:100 is always 1mbits.>> WHEN i send packets from 10.1.1.1 at rate frome 12mbit to 50mbit BYusing>> SMATRBIT 600, >> the rate of class 10:100 is always 12bits. >I suppose it''s the SMATRBIT 600 that says it sends 12bits.>WHAT if you change 12mbit to 15mbit. WHAT if you send more then 20Mbit.WHAT>if you change 12mbit to a lower value (1mbit). >CAN you can do that and post the results? >I don''t think there is an error in your setup.>Stef> > >> Hi ; > >> > >> MY script: > >> > >> tc-htb3 qdisc del dev eth2 root > >> ipchains -F > >> > >> tc-htb3 qdisc add dev eth2 root handle 10: htb default 20 r2q 40 > >> > >> tc-htb3 class add dev eth2 parent 10: classid 10:1 htb rate 50Mbit > > burst > > >> 2000 > >> > >> tc-htb3 class add dev eth2 parent 10:1 classid 10:100 htb rate 12mbit > > ceil > > >> 50mbit prio 1 > >> tc-htb3 class add dev eth2 parent 10:1 classid 10:20 htb rate 38mbit > > ceil > > >> 50Mbit prio 8 > >> > >> ipchains -A fw -s 10.1.1.1 -m 100 > >> ipchains -A fw -s 0.0.0.0 -d 0.0.0.0 -j ACCEPT > >> > >> tc-htb3 filter add dev eth2 protocol ip parent 10:0 prio 1 handle 100 > > fw > > >> classid 10:100 > >> > >> WHEN i send packets at 20mbit from 10.1.1.1 , > >>#tc -s -d qdisc show dev eth2 > >> qdisc htb 10: > >> Sent 246602122 bytes 487287 pkts (dropped 323938, overlimits 1850710) > >> > >> #tc -s -d class show dev eth2 > >> class htb 10:1 root prio 0 rate 50Mbit ceil 50Mbit burst 1985b/8 mpu0b> >> cburst 67121b/8 mpu 0b quantum 0 level 7 > >> Sent 246602122 bytes 487287 pkts (dropped 0, overlimits 0) > >> rate 8bps > >> > >> class htb 10:100 parent 10:1 prio 1 rate 12Mbit ceil 50Mbit burst > > 17325b/8 > > >> mpu 0b cburst 67121b/8 mpu 0b quantum 39321 level 0 > >> Sent 246552164 bytes 486503 pkts (dropped 323938, overlimits 0) > >> > >> class htb 10:20 parent 10:1 prio 1 rate 38Mbit ceil 50Mbit burst > > 51396b/8 > > >> mpu 0b cburst 67121b/8 mpu 0b quantum 124518 level 0 > >> Sent 49958 bytes 784 pkts (dropped 0, overlimits 0) > >> rate 8bps > >> > >> > >> a class 10:100 can not borrow from a parent 10:0 ,WHY? > > > >How do you come to that conclustion ????? > > > >Stef >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Stef Coene
2002-Oct-22 19:28 UTC
Re: Re: Re: help, a children can not borrow from a parent?
On Tuesday 22 October 2002 11:14, lihpc@Legend.com wrote:> SORRY! not 12bits, should 12mbits > > > WHEN i send packets from 10.1.1.1 at rate frome 12mbit to 50mbit BY > using > SMARTBIT 600, the rate of class 10:100 is always 12Mbits. > > >I suppose it''s the SMATRBIT 600 that says it sends 12bits. > >WHAT if you change 12mbit to 15mbit. WHAT if you send more then 20Mbit. > > WHAT > > >if you change 12mbit to a lower value (1mbit). > >CAN you can do that and post the results? > >I don''t think there is an error in your setup. > > WHEN i change 12mbit to 15mbit and send packets at rate > 15mbit,20mbit,30mbit,50mbit, the rate of class 10:100 is always 15mbits. > WHEN i change 12mbit to 30mbit and send packets at rate > 30mbit,40mbit,50mbit, the rate of class 10:100 is always 30mbits. > WHEN i change 12mbit to a lower value (1mbit) and send packets at rate > 1mbit,2mbit,10mbit,20mbit, the rate of class 10:100 is always 1mbits.The ceil parameter always worked for me. What version of tc/htb/kernel are you using? Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
lihpc@Legend.com
2002-Oct-23 01:29 UTC
RE: Re: Re: Re: help, a children can not borrow from a parent?
>> >> WHEN i send packets from 10.1.1.1 at rate frome 12mbit to 50mbit BY >> using >> SMARTBIT 600, the rate of class 10:100 is always 12Mbits. >> >> >I suppose it''s the SMATRBIT 600 that says it sends 12bits. >> >WHAT if you change 12mbit to 15mbit. WHAT if you send more then20Mbit.>> >> WHAT >> >> >if you change 12mbit to a lower value (1mbit). >> >CAN you can do that and post the results? >> >I don''t think there is an error in your setup. >> >> WHEN i change 12mbit to 15mbit and send packets at rate >> 15mbit,20mbit,30mbit,50mbit, the rate of class 10:100 is always 15mbits. >> WHEN i change 12mbit to 30mbit and send packets at rate >> 30mbit,40mbit,50mbit, the rate of class 10:100 is always 30mbits. >> WHEN i change 12mbit to a lower value (1mbit) and send packets at rate >> 1mbit,2mbit,10mbit,20mbit, the rate of class 10:100 is always 1mbits. >The ceil parameter always worked for me. What version of tc/htb/kernelare>you using?TC from htb3.6-020525.zip kernel 2.2.21 and patch ds9-2.2.21-2.diff rbtree-2.2.21-1.diff ds9-htb3-2.2.21-1.diff from http://www.ssi.bg/~ja/ds9/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Stef Coene
2002-Oct-23 12:55 UTC
Re: Re: Re: Re: help, a children can not borrow from a parent?
> TC from htb3.6-020525.zip > kernel 2.2.21 and patch ds9-2.2.21-2.diff rbtree-2.2.21-1.diff > ds9-htb3-2.2.21-1.diff > from http://www.ssi.bg/~ja/ds9/HTB 3.6 + kernel 2.4.19 are working for me. You are using a backport of htb from 2.4 to 2.2. Maybe they made an error when they backported htb. Check it out with the maintainer (not Devik, but the one who created the files you us). Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Julian Anastasov
2002-Oct-24 01:24 UTC
RE: Re: Re: Re: help, a children can not borrow from a parent?
Hello, On Wed, 23 Oct 2002 lihpc@Legend.com wrote:> >The ceil parameter always worked for me. What version of tc/htb/kernel > are > >you using? > > TC from htb3.6-020525.zip > kernel 2.2.21 and patch ds9-2.2.21-2.diff rbtree-2.2.21-1.diff > ds9-htb3-2.2.21-1.diff > from http://www.ssi.bg/~ja/ds9/I just upgraded to HTB 3.7 from 2.4.20pre11: ds9-htb3-2.2.21-2.diff I can''t comment the HTB behavior, my tests with HTB were very simple. In production I''m using this backport only for CBQ, U32, SFQ, Ingress, policers. I have never observed deviations from the 2.4 behavior. It would be good if you can compare the same settings on 2.4.20pre. Regards -- Julian Anastasov <ja@ssi.bg> _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Julian Anastasov
2002-Oct-24 01:37 UTC
RE: Re: Re: Re: help, a children can not borrow from a parent?
Hello, On Wed, 23 Oct 2002 lihpc@Legend.com wrote: Ops, is that correct?:> ipchains -A fw -s 0.0.0.0 -d 0.0.0.0 -j ACCEPTit should be ipchains -A fw -s 0.0.0.0/0 -d 0.0.0.0/0 -j ACCEPT Regards -- Julian Anastasov <ja@ssi.bg> _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/