All of lore.kernel.org
 help / color / mirror / Atom feed
To: lartc@vger.kernel.org
Subject: Re: [LARTC] CBQ seems not to be working...
Date: Mon, 16 Apr 2001 07:23:39 +0000	[thread overview]
Message-ID: <marc-lartc-98740586327524@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98703548931254@msgid-missing>

You're missing queue disciplines for leaf classes. You should add:

tc qdisc add dev eth0 parent 10:100 tbf rate 1100Kbit \
   buffer 10Kb/8 limit 15Kb

tc qdisc add dev eth0 parent 10:10 tbf rate 900Kbit \
   buffer 10Kb/8 limit 15Kb

And you should set weight values to rate/10 approx. on all classes.

Maybe you should try cbq.init script from Pavel Golubev (you'll find the
ftp site address in the HOWTO).


-- 
                José Carlos Ramírez Pérez
                Área de Internet y Telecomunicaciones

                mailto:JoseCarlos.Ramirez@isotrol.com
                ___________________________________________________
                ISOTROL S.A.
                Avda. de la innovación nº 1, 3ª plta, 41020 Sevilla
                Tel.: 955 036 800 - Fax: 955 036 849
                web: http://www.isotrol.com/


Antonio Paulo Salgado Forster wrote:
> 
> Hello,
> 
>      Could someone help me on this? I have the following configuration on
> on gateway:
> 
> 900Kbit/s for fw mark 2 (all traffic, except...) bounded
> 1100Kbit/s for fw mark 1 (mail and dns) bounded
> 
>      But I can see the I have almost no traffic on fw mark 2, even though
> the traffic on the output wan link is getting almost to 2Mbit/s.
> 
>      This is the configuration:
> 
> /usr/local/sbin/tc qdisc add dev eth0 root handle 10: cbq bandwidth 2Mbit
> avpkt 1000
> /usr/local/sbin/tc class add dev eth0 parent 10:0 classid 10:1 cbq
> bandwidth 2Mbit rate 2Mbit allot 1518 weight 50Kbit prio 8 maxburst 20
> avpkt 1000
> /usr/local/sbin/tc class add dev eth0 parent 10:1 classid 10:100 cbq
> bandwidth 2Mbit rate 1100Kbit allot 1518 weight 50Kbit prio 5 maxburst 20
> avpkt 1000 bounded
> /usr/local/sbin/tc class add dev eth0 parent 10:1 classid 10:10 cbq
> bandwidth 2Mbit rate 900Kbit allot 1518 weight 50Kbit prio 5 maxburst 20
> avpkt 1000  bounded
> /usr/local/sbin/tc filter add dev eth0 protocol ip parent 10:0 prio 100
> handle 1 fw flowid 10:100
> /usr/local/sbin/tc filter add dev eth0 protocol ip parent 10:0 prio 10
> handle 2 fw flowid 10:10
> 
> Am I missing something here?
> 
> I would appreciate any help. Thanks!
> 
> Forster
> 
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

      reply	other threads:[~2001-04-16  7:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-11 22:01 [LARTC] CBQ seems not to be working Antonio Paulo Salgado Forster
2001-04-16  7:23 `  [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-98740586327524@msgid-missing \
    --to=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.