From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Thu, 01 Jul 2004 20:52:14 +0000 Subject: Re: [LARTC] HTB and iptables statistics Message-Id: <200407012252.14932.stef.coene@docum.org> List-Id: References: <87isd93r60.fsf@vinci.loc> In-Reply-To: <87isd93r60.fsf@vinci.loc> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org 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 --=20 stef.coene@docum.org =A0"Using Linux as bandwidth manager" =A0 =A0 =A0http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/