* [LARTC] Using TBF to throttle a PC to 5kbps
@ 2005-11-14 9:53 Lee Sanders
2005-11-16 16:49 ` Andy Furniss
0 siblings, 1 reply; 2+ messages in thread
From: Lee Sanders @ 2005-11-14 9:53 UTC (permalink / raw)
To: lartc
Hi Everyone,
This is a simple question but I don't understand why the below tbf is not
working as expected by throttling traffic to 5kbps
If I throttle a PC's traffic using the below when traffic exceeds 5kbps
packets start getting dropped (as they should) but all traffic gets dropped.
not just the bit over 5kbps.
TC="tc add dev ppp0"
$TC parent 8001:2 handle 2: tbf rate 5kbps latency 50ms burst 1540
I can see the "dropped" counter increasing, the overlimits counter stays the
same and there is a "backlog" counter with 21p or similar each time which
also stays the same. To get traffic working again I have to delete the qdisc
and add it again.
What am I doing wrong ?
This is a Kubuntu machine running 2.6.14 kernel, the tbf is a leaf qdisc for a
WRR class.
Thanks in Advance
Lee
p.s. if anyone can explain what the backlog is, I can't find it in the docco.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Using TBF to throttle a PC to 5kbps
2005-11-14 9:53 [LARTC] Using TBF to throttle a PC to 5kbps Lee Sanders
@ 2005-11-16 16:49 ` Andy Furniss
0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2005-11-16 16:49 UTC (permalink / raw)
To: lartc
Lee Sanders wrote:
> Hi Everyone,
>
> This is a simple question but I don't understand why the below tbf is not
> working as expected by throttling traffic to 5kbps
>
> If I throttle a PC's traffic using the below when traffic exceeds 5kbps
> packets start getting dropped (as they should) but all traffic gets dropped.
> not just the bit over 5kbps.
>
> TC="tc add dev ppp0"
> $TC parent 8001:2 handle 2: tbf rate 5kbps latency 50ms burst 1540
>
> I can see the "dropped" counter increasing, the overlimits counter stays the
> same and there is a "backlog" counter with 21p
That's strange - this is a count of the packets queued, but why 21 - the
settings you use make for a very small buffer 5kbps and 50ms is < 1 bulk
packet.
do a tc -s -d qdisc ls dev ppp0 and you may see tbf has optimised it to
even less.
Try with 500ms latency.
Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-16 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-14 9:53 [LARTC] Using TBF to throttle a PC to 5kbps Lee Sanders
2005-11-16 16:49 ` Andy Furniss
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.