* [LARTC] negative tokens
@ 2005-01-27 7:42 Denis Kot
2005-01-27 8:24 ` Stef Coene
2005-01-27 20:19 ` Denis Kot
0 siblings, 2 replies; 3+ messages in thread
From: Denis Kot @ 2005-01-27 7:42 UTC (permalink / raw)
To: lartc
I have this:
class htb 1:29 parent 1:1 prio 0 rate 3000bit ceil 100000bit burst
1599b cburst 1611b
Sent 33233 bytes 772 pkts (dropped 0, overlimits 0)
lended: 415 borrowed: 357 giants: 0
tokens: -3756376 ctokens: 128779
or this:
class htb 1:21 parent 1:1 prio 0 rate 3000bit ceil 100000bit burst
1599b cburst 1611b
Sent 57554 bytes 618 pkts (dropped 0, overlimits 0)
lended: 193 borrowed: 425 giants: 0
tokens: -484950 ctokens: 128779
and there is more like this
what´s wrong?
this is class for imq0 device (for me this is ingres device) and I have this:
imq0 Link encap:UNSPEC HWaddr
00-00-00-FF-FF-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING NOARP MTU:1500 Metric:1
RX packets:131111 errors:0 dropped:0 overruns:0 frame:0
TX packets:123371 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:30
RX bytes:17694200 (16.8 Mb) TX bytes:15230834 (14.5 Mb)
as you can see RX bytes doesn´t equal to TX bytes. what´s wrong?
--
Denis Kot
denis?jabber.org.by
ICQ: 13680126
Mobil: +375 29 6-1234-78
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] negative tokens
2005-01-27 7:42 [LARTC] negative tokens Denis Kot
@ 2005-01-27 8:24 ` Stef Coene
2005-01-27 20:19 ` Denis Kot
1 sibling, 0 replies; 3+ messages in thread
From: Stef Coene @ 2005-01-27 8:24 UTC (permalink / raw)
To: lartc
On Thursday 27 January 2005 08:42, Denis Kot wrote:
> I have this:
> class htb 1:29 parent 1:1 prio 0 rate 3000bit ceil 100000bit burst
> 1599b cburst 1611b
> Sent 33233 bytes 772 pkts (dropped 0, overlimits 0)
> lended: 415 borrowed: 357 giants: 0
> tokens: -3756376 ctokens: 128779
>
> or this:
> class htb 1:21 parent 1:1 prio 0 rate 3000bit ceil 100000bit burst
> 1599b cburst 1611b
> Sent 57554 bytes 618 pkts (dropped 0, overlimits 0)
> lended: 193 borrowed: 425 giants: 0
> tokens: -484950 ctokens: 128779
>
> and there is more like this
> what´s wrong?
Nothing.
To understand what's going on, I need the tc commands you use to create the
htb classes.
> this is class for imq0 device (for me this is ingres device) and I have
> this: imq0 Link encap:UNSPEC HWaddr
> 00-00-00-FF-FF-00-00-00-00-00-00-00-00-00-00-00
> UP RUNNING NOARP MTU:1500 Metric:1
> RX packets:131111 errors:0 dropped:0 overruns:0 frame:0
> TX packets:123371 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:30
> RX bytes:17694200 (16.8 Mb) TX bytes:15230834 (14.5 Mb)
>
> as you can see RX bytes doesn´t equal to TX bytes. what´s wrong?
That means that some packets are dropped because you shape on that interface.
Stef
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] negative tokens
2005-01-27 7:42 [LARTC] negative tokens Denis Kot
2005-01-27 8:24 ` Stef Coene
@ 2005-01-27 20:19 ` Denis Kot
1 sibling, 0 replies; 3+ messages in thread
From: Denis Kot @ 2005-01-27 20:19 UTC (permalink / raw)
To: lartc
##########
DEV0=imq0
RATEUP\x100
VPNS0
/sbin/ip link set imq0 up
tc qdisc add dev $DEV0 root handle 1: htb default 30
tc class add dev $DEV0 parent 1: classid 1:1 htb rate ${RATEUP}kbit
ceil ${RATEUP}kbit
tc class add dev $DEV0 parent 1:1 classid 1:30 htb rate
$[$RATEUP/$VPNS]kbit ceil ${RATEUP}kbit
###########
this is from /etc/ppp/ip-up.local:
###########
# the followings parameters are available:
# $1 = interface-name
# $2 = tty-device
# $3 = speed
# $4 = local-IP-address
# $5 = remote-IP-address
# $6 = ipparam
/sbin/iptables -t mangle -A PREROUTING -i $1 -d ! 192.168.0.0/16 -j
IMQ --todev 0
/sbin/tc class add dev $DEV0 parent 1:1 classid 1:2${1/ppp/} htb rate
$[$RATEUP/$VPNS]kbit ceil ${RATEUP}kbit
/sbin/tc filter add dev $DEV0 protocol ip parent 1:0 prio 1 u32 match
ip src $5 flowid 1:2${1/ppp/}
###########
On Thu, 27 Jan 2005 19:03:47 +0100, Sujith Chennupati
<sujith.chennupati@gmail.com> wrote:
> it would be clear if you attach the code you are using with
> may be some packets are not matched with the filter you specified and
> going by deafult queue
>
>
> On Thu, 27 Jan 2005 09:42:29 +0200, Denis Kot <denis.kot@gmail.com> wrote:
> > I have this:
> > class htb 1:29 parent 1:1 prio 0 rate 3000bit ceil 100000bit burst
> > 1599b cburst 1611b
> > Sent 33233 bytes 772 pkts (dropped 0, overlimits 0)
> > lended: 415 borrowed: 357 giants: 0
> > tokens: -3756376 ctokens: 128779
> >
> > or this:
> > class htb 1:21 parent 1:1 prio 0 rate 3000bit ceil 100000bit burst
> > 1599b cburst 1611b
> > Sent 57554 bytes 618 pkts (dropped 0, overlimits 0)
> > lended: 193 borrowed: 425 giants: 0
> > tokens: -484950 ctokens: 128779
> >
> > and there is more like this
> > what´s wrong?
> >
> > this is class for imq0 device (for me this is ingres device) and I have this:
> > imq0 Link encap:UNSPEC HWaddr
> > 00-00-00-FF-FF-00-00-00-00-00-00-00-00-00-00-00
> > UP RUNNING NOARP MTU:1500 Metric:1
> > RX packets:131111 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:123371 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:30
> > RX bytes:17694200 (16.8 Mb) TX bytes:15230834 (14.5 Mb)
> >
> > as you can see RX bytes doesn´t equal to TX bytes. what´s wrong?
> >
> > --
> > Denis Kot
> > denis?jabber.org.by
> > ICQ: 13680126
> > Mobil: +375 29 6-1234-78
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> >
>
> --
> sujith chandra chowdhary CHENNUPATI
>
--
Denis Kot
denis?jabber.org.by
ICQ: 13680126
Mobil: +375 29 6-1234-78
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-27 20:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27 7:42 [LARTC] negative tokens Denis Kot
2005-01-27 8:24 ` Stef Coene
2005-01-27 20:19 ` Denis Kot
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.