* [LARTC] HTB problems
@ 2002-12-09 14:52 Thomas Jalsovsky
2002-12-09 15:11 ` Vladimir Smelhaus
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Thomas Jalsovsky @ 2002-12-09 14:52 UTC (permalink / raw)
To: lartc
Hello,
I have HTB on IMQ device. My rate does not work as I configured. I
configured 1920kbit/s and I can download only about 290kbit/s (while it
should be the whole bandwidth).
My script:
/sbin/modprobe imq numdevs=1
/usr/local/sbin/tc qdisc del dev imq0 root 2> /dev/null > /dev/null
/usr/local/sbin/tc qdisc del dev imq0 ingress 2> /dev/null > /dev/null
/sbin/ifconfig imq0 down
/usr/local/sbin/iptables -t mangle -D PREROUTING -i eth2 -j IMQ --todev 0
2> /dev/null
/usr/local/sbin/iptables -t mangle -D POSTROUTING -o eth2 -j IMQ --todev 0
2> /dev/null
/usr/local/sbin/tc qdisc add dev imq0 root handle 1: htb default 10
/usr/local/sbin/tc class add dev imq0 parent 1: classid 1:1 htb rate
1920kbit
/usr/local/sbin/tc class add dev imq0 parent 1:1 classid 1:60 htb rate
1024kbit ceil 1024kbit
/usr/local/sbin/tc qdisc add dev imq0 parent 1:60 handle 60: pfifo limit 2
/usr/local/sbin/tc class add dev imq0 parent 1:1 classid 1:40 htb rate
128kbit ceil 128kbit
/usr/local/sbin/tc qdisc add dev imq0 parent 1:40 handle 40: pfifo limit 2
/usr/local/sbin/tc class add dev imq0 parent 1:1 classid 1:10 htb rate
704kbit ceil 1920kbit
/usr/local/sbin/tc qdisc add dev imq0 parent 1:10 handle 10: pfifo limit 2
/usr/local/sbin/tc class add dev imq0 parent 1:1 classid 1:30 htb rate
128kbit ceil 128kbit
/usr/local/sbin/tc qdisc add dev imq0 parent 1:30 handle 30: pfifo limit 2
/usr/local/sbin/tc class add dev imq0 parent 1:1 classid 1:20 htb rate
64kbit ceil 64kbit
/usr/local/sbin/tc qdisc add dev imq0 parent 1:20 handle 20: pfifo limit 2
/usr/local/sbin/tc class add dev imq0 parent 1:1 classid 1:50 htb rate
128kbit ceil 128kbit
/usr/local/sbin/tc qdisc add dev imq0 parent 1:50 handle 50: pfifo limit 2
/usr/local/sbin/tc filter add dev imq0 parent 1:0 protocol ip prio 1 u32
match ip dst 192.168.102.0/24 flowid 1:60
/usr/local/sbin/tc filter add dev imq0 parent 1:0 protocol ip prio 1 u32
match ip dst 192.168.101.42 flowid 1:40
/usr/local/sbin/tc filter add dev imq0 parent 1:0 protocol ip prio 1 u32
match ip dst 192.168.100.0/27 flowid 1:10
/usr/local/sbin/tc filter add dev imq0 parent 1:0 protocol ip prio 1 u32
match ip dst 192.168.1.170 flowid 1:10
/usr/local/sbin/tc filter add dev imq0 parent 1:0 protocol ip prio 1 u32
match ip dst 192.168.101.38 flowid 1:30
/usr/local/sbin/tc filter add dev imq0 parent 1:0 protocol ip prio 1 u32
match ip dst 192.168.101.34 flowid 1:20
/usr/local/sbin/tc filter add dev imq0 parent 1:0 protocol ip prio 1 u32
match ip dst 192.168.103.0/24 flowid 1:50
/usr/local/sbin/iptables -t mangle -A PREROUTING -i eth2 -j IMQ --todev 0
/sbin/ip link set imq0 up
Everything (tested what I did) went to class 1:10
Some stats:
Class statistics:
-------------------
class htb 1:1 root rate 1920Kbit ceil 1920Kbit burst 4056b/8 mpu 0b cburst
4056b/8 mpu 0b level 7
Sent 8642235 bytes 8393 pkts (dropped 0, overlimits 0)
rate 36918bps 36pps
lended: 4775 borrowed: 0 giants: 0
tokens: 13363 ctokens: 13363
class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 9011 rate 704Kbit ceil
1920Kbit burst 2500b/8 mpu 0b cburst 4056b/8 mpu 0b level 0
Sent 8642235 bytes 8393 pkts (dropped 2153, overlimits 0)
rate 36918bps 36pps
lended: 3618 borrowed: 4775 giants: 0
tokens: 22301 ctokens: 13363
the rate 36918bps was a constant rate for 10 minutes (I copyed with scp a
big file).
Thanks in advance,
Thomas
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] HTB problems
2002-12-09 14:52 [LARTC] HTB problems Thomas Jalsovsky
@ 2002-12-09 15:11 ` Vladimir Smelhaus
2002-12-09 15:35 ` Thomas Jalsovsky
2002-12-09 15:50 ` Thomas Jalsovsky
2 siblings, 0 replies; 4+ messages in thread
From: Vladimir Smelhaus @ 2002-12-09 15:11 UTC (permalink / raw)
To: lartc
On 9 Dec 2002, 15:52, Thomas Jalsovsky wrote:
> I have HTB on IMQ device. My rate does not work as I configured. I
> configured 1920kbit/s and I can download only about 290kbit/s (while
Set your pfifo limit higher. You have too much dropped packets.
> class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 9011 rate 704Kbit
> ceil 1920Kbit burst 2500b/8 mpu 0b cburst 4056b/8 mpu 0b level 0
> Sent 8642235 bytes 8393 pkts (dropped 2153, overlimits 0)
> rate 36918bps 36pps
> lended: 3618 borrowed: 4775 giants: 0
> tokens: 22301 ctokens: 13363
Zdravim/Regards
Vladimir Smelhaus
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] HTB problems
2002-12-09 14:52 [LARTC] HTB problems Thomas Jalsovsky
2002-12-09 15:11 ` Vladimir Smelhaus
@ 2002-12-09 15:35 ` Thomas Jalsovsky
2002-12-09 15:50 ` Thomas Jalsovsky
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Jalsovsky @ 2002-12-09 15:35 UTC (permalink / raw)
To: lartc
On Mon, 9 Dec 2002, Vladimir Smelhaus wrote:
> On 9 Dec 2002, 15:52, Thomas Jalsovsky wrote:
>
> > I have HTB on IMQ device. My rate does not work as I configured. I
> > configured 1920kbit/s and I can download only about 290kbit/s (while
>
> Set your pfifo limit higher. You have too much dropped packets.
>
> > class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 9011 rate 704Kbit
> > ceil 1920Kbit burst 2500b/8 mpu 0b cburst 4056b/8 mpu 0b level 0
> > Sent 8642235 bytes 8393 pkts (dropped 2153, overlimits 0)
> > rate 36918bps 36pps
> > lended: 3618 borrowed: 4775 giants: 0
I have:
ifconfig imq0
imq0 Link encap:UNSPEC HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:1500 Metric:1
RX packets:821349 errors:0 dropped:0 overruns:0 frame:0
TX packets:723509 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
RX bytes:456249915 (435.1 Mb) TX bytes:391405155 (373.2 Mb)
Which value if txqueuelen should be good for me? Or you though for
anything else (in lartc pfifo limit is txqueuelen..)
Thanks,
Thomas
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] HTB problems
2002-12-09 14:52 [LARTC] HTB problems Thomas Jalsovsky
2002-12-09 15:11 ` Vladimir Smelhaus
2002-12-09 15:35 ` Thomas Jalsovsky
@ 2002-12-09 15:50 ` Thomas Jalsovsky
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Jalsovsky @ 2002-12-09 15:50 UTC (permalink / raw)
To: lartc
On Mon, 9 Dec 2002, Thomas Jalsovsky wrote:
> On Mon, 9 Dec 2002, Vladimir Smelhaus wrote:
>
> > On 9 Dec 2002, 15:52, Thomas Jalsovsky wrote:
> >
> > > I have HTB on IMQ device. My rate does not work as I configured. I
> > > configured 1920kbit/s and I can download only about 290kbit/s (while
> >
> > Set your pfifo limit higher. You have too much dropped packets.
> >
> > > class htb 1:10 parent 1:1 leaf 10: prio 0 quantum 9011 rate 704Kbit
> > > ceil 1920Kbit burst 2500b/8 mpu 0b cburst 4056b/8 mpu 0b level 0
> > > Sent 8642235 bytes 8393 pkts (dropped 2153, overlimits 0)
> > > rate 36918bps 36pps
> > > lended: 3618 borrowed: 4775 giants: 0
> I have:
> ifconfig imq0
> imq0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> UP RUNNING NOARP MTU:1500 Metric:1
> RX packets:821349 errors:0 dropped:0 overruns:0 frame:0
> TX packets:723509 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:30
> RX bytes:456249915 (435.1 Mb) TX bytes:391405155 (373.2 Mb)
>
> Which value if txqueuelen should be good for me? Or you though for
> anything else (in lartc pfifo limit is txqueuelen..)
Sorry, it was my mistake, I had limit 2 in my configuration. Now I have
the default - 30p - and it works fine for me.
Thank you for your help.
Regards,
Thomas
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-09 15:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-09 14:52 [LARTC] HTB problems Thomas Jalsovsky
2002-12-09 15:11 ` Vladimir Smelhaus
2002-12-09 15:35 ` Thomas Jalsovsky
2002-12-09 15:50 ` Thomas Jalsovsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.