[LARTC] HTB and iptables statistics

Stef Coene stef.coene@docum.org
Thu, 1 Jul 2004 22:52:14 +0200


On Wednesday 30 June 2004 19:13, Alexander Kotelnikov wrote:
> Hello.
>
> The problems are:
> 1. Using HTB I get negative values for tokens and ctokens in tc -s
> output, for example:
This is perfectly possible.  It depends on your configuration and the=20
parent-child relation ship between the classes.
If a class has a token, it can send a packet.  But if a child class is send=
ing=20
a packet, a token of the parent class is also used.  And a class can use it=
=20
tokens even if the parent class has no tokens left.  So it's possible to dr=
ag=20
the tokens negative if the child class is more sending packets then the=20
parent allows.  But the parent can not forbid this.

Stef


=2D-=20
stef.coene@docum.org
=A0"Using Linux as bandwidth manager"
=A0 =A0 =A0http://www.docum.org/