What does tokens and ctokens mean ??
thanks.
Denis Kot <denis.kot@gmail.com> wrote:
##########
DEV0=imq0
RATEUP=100
VPNS=30
/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
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 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磗 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磘 equal to TX bytes. what磗 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/
---------------------------------
Do You Yahoo!?
注册世界一流品质的雅虎免费电邮
--0-655966520-1106873731=:71711
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: 8bit
<DIV>What does tokens and ctokens mean ??</DIV>
<DIV>thanks.<BR><BR><B><I>Denis Kot
<denis.kot@gmail.com></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px;
BORDER-LEFT: #1010ff 2px
solid">##########<BR>DEV0=imq0<BR>RATEUP=100<BR>VPNS=30<BR><BR>/sbin/ip
link set imq0 up<BR><BR>tc qdisc add dev $DEV0 root handle 1: htb
default 30<BR><BR>tc class add dev $DEV0 parent 1: classid 1:1 htb
rate ${RATEUP}kbit<BR>ceil ${RATEUP}kbit<BR><BR>tc class add
dev $DEV0 parent 1:1 classid 1:30 htb rate<BR>$[$RATEUP/$VPNS]kbit ceil
${RATEUP}kbit<BR>###########<BR><BR>this is from
/etc/ppp/ip-up.local:<BR><BR>###########<BR><BR># the
followings parameters are available:<BR># $1 = interface-name<BR>#
$2 = tty-device<BR># $3 = speed<BR># $4 =
local-IP-address<BR># $5 = remote-IP-address<BR># $6 =
ipparam<BR><BR>/sbin/iptables -t mangle -A PREROUTING -i $1 -d !
192.168.0.0/16 -j<BR>IMQ --todev 0<BR>/sbin/tc class add dev $DEV0
parent 1:1 classid 1:2${1/ppp/} htb rate<BR>$[$RATEUP/$VPNS]kbit ceil
${RATEUP}kbit<BR>/sbin/tc filter add dev $DEV0 protocol ip parent 1:0
prio 1 u32 match<BR
>ip src
$5 flowid 1:2${1/ppp/}<BR>###########<BR><BR>On Thu, 27 Jan
2005 19:03:47 +0100, Sujith
Chennupati<BR><SUJITH.CHENNUPATI@GMAIL.COM>wrote:<BR>>
it would be clear if you attach the code you are using with<BR>>
may be some packets are not matched with the filter you specified
and<BR>> going by deafult queue<BR>>
<BR>> <BR>> On Thu, 27 Jan 2005 09:42:29 +0200, Denis
Kot <DENIS.KOT@GMAIL.COM>wrote:<BR>> > I have
this:<BR>> > class htb 1:29 parent 1:1 prio 0 rate 3000bit
ceil 100000bit burst<BR>> > 1599b cburst
1611b<BR>> > Sent 33233 bytes 772 pkts (dropped 0,
overlimits 0)<BR>> > lended: 415 borrowed: 357 giants:
0<BR>> > tokens: -3756376 ctokens: 128779<BR>>
><BR>> > or this:<BR>> > class
htb 1:21 parent 1:1 prio 0 rate 3000bit ceil 100000bit burst<BR>>
> 1599b cburst 1611b<BR>> > Sent 57554 bytes 618 pkts
(dropped 0, overlimits 0)<BR>> > lended: 193 borrowed: 425
giants: 0<BR>> > to
kens:
-484950 ctokens: 128779<BR>> ><BR>> >
and there is more like this<BR>> > what磗
wrong?<BR>> ><BR>> > this is class for
imq0 device (for me this is ingres device) and I have this:<BR>>
> imq0 Link encap:UNSPEC HWaddr<BR>> >
00-00-00-FF-FF-00-00-00-00-00-00-00-00-00-00-00<BR>> > UP
RUNNING NOARP MTU:1500 Metric:1<BR>> > RX packets:131111
errors:0 dropped:0 overruns:0 frame:0<BR>> > TX
packets:123371 errors:0 dropped:0 overruns:0 carrier:0<BR>>
> collisions:0 txqueuelen:30<BR>> > RX bytes:17694200
(16.8 Mb) TX bytes:15230834 (14.5 Mb)<BR>>
><BR>> > as you can see RX bytes doesn磘 equal to TX
bytes. what磗 wrong?<BR>> ><BR>> >
--<BR>> > Denis Kot<BR>> >
denis?jabber.org.by<BR>> > ICQ: 13680126<BR>>
> Mobil: +375 29 6-1234-78<BR>> >
___________________________________
____________<BR>> > LARTC mailing list /
LARTC@mailman.ds9a.nl<BR>> >
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://lartc.org/<BR>> ><BR>>
<BR>> --<BR>> sujith chandra chowdhary
CHENNUPATI<BR>> <BR><BR><BR>-- <BR>Denis
Kot<BR>denis?jabber.org.by<BR>ICQ: 13680126<BR>Mobil: +375 29
6-1234-78<BR>_______________________________________________<BR>LARTC
mailing list /
LARTC@mailman.ds9a.nl<BR>http://mailman.ds9a.nl/mailman/listinfo/lartc
HOWTO: http://lartc.org/<BR></BLOCKQUOTE><p><br><hr
size=1>
<b>Do You Yahoo!?</b><br>
<a
href="http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/"
target=blank>注册世界一流品质的雅虎免费电邮</a>
--0-655966520-1106873731=:71711--
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/