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/