All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] use of tc and cbq for queing discipline
Date: Sun, 10 Mar 2002 19:48:23 +0000	[thread overview]
Message-ID: <marc-lartc-101578978710589@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101578196520626@msgid-missing>

On Sunday 10 March 2002 18:37, andre@do.co.za wrote:
> hi all,
>
> i'm new to the list and didn't have time to lurk
> so please be gentle...(have googled extensively though..)
>
> i have a linux router natting public IP(eth0)  to pvt IP(eth1) range.
> i need to limit the bandwidth(rate) on pub(eth0) so that
> eth0 uses only 32K and have tried as follows :
>
> tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit allot 1514
> cell 8 avpkt 1000 mpu 64
>
> and :
>
> tc class add dev eth0 parent 1:0 classid 1:0 cbq bandwidth 10Mbit  \
>       rate 32Kbit weight 3Kbit prio 5 allot 1514 cell 8 maxburst 20   \
>       avpkt 1000 mpu 64
>
>
> tc -s -d class show dev eth0 gives :
>
>
> class cbq 1: root rate 10Mbit cell 8b mpu 64b (bounded,isolated) prio
> no-transmit/8 weight 10Mbit allot 1514b
> level 1 ewma 5 avpkt 1000b maxidle 23us
>   Sent 839072 bytes 1898 pkts (dropped 0, overlimits 0)
>    borrowed 0 overactions 0 avgidle 624 undertime 0
> class cbq 1:1 parent 1: rate 32Kbit cell 8b mpu 64b prio 5/5 weight
> 3Kbit allot 1514b
> level 0 ewma 5 avpkt 1000b maxidle 215869us
>   Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>    borrowed 0 overactions 0 avgidle 5.65889e+06 undertime 0
>
>
> It still doesn't limit the bandwidth (rate)
>
> please tell me what i'm doing wrong ?
You created a class, but you didn't put any traffic in it.  You can see the 
counters on the qdisc, so the qdisc contains all trafffic.  But the counters 
of class are zero.
You can do this with filters.  They are described in the lartc HOWTO.
If you want to limit all traffic, you can use the TBF qdisc.  But this means 
all traffic is limited.

Stef

-- 

stef.coene@docum.org
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      reply	other threads:[~2002-03-10 19:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-10 17:37 [LARTC] use of tc and cbq for queing discipline andre@do
2002-03-10 19:48 ` Stef Coene [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=marc-lartc-101578978710589@msgid-missing \
    --to=stef.coene@docum.org \
    --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 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.