Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Using TBF to throttle a PC to 5kbps
Date: Wed, 16 Nov 2005 16:49:48 +0000	[thread overview]
Message-ID: <437B632C.8050803@dsl.pipex.com> (raw)
In-Reply-To: <200511141753.48133.lartc-337@ccp.com.au>

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

      reply	other threads:[~2005-11-16 16:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-14  9:53 [LARTC] Using TBF to throttle a PC to 5kbps Lee Sanders
2005-11-16 16:49 ` Andy Furniss [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=437B632C.8050803@dsl.pipex.com \
    --to=andy.furniss@dsl.pipex.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox