All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: Re[4]: [LARTC] CBQ Traffic control not working
Date: Thu, 13 Mar 2003 17:24:11 +0000	[thread overview]
Message-ID: <marc-lartc-104757635601811@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104750830931551@msgid-missing>

On Wednesday 12 March 2003 23:30, Mugur TOMITA wrote:
> Here is my output... no prio 7...
Mh.  I tested it with htb and there is only prio 0-7.

> #########
> # OUTPUT
> #########
> linux:~ # tc -s -d class show dev eth0
> class cbq 1: root rate 10Mbit cell 8b mpu 64b (bounded,isolated) prio
> no-transmit/8 weight 10Mbit allot 1514b level 2 ewma 5 avpkt 1000b maxidle
> 23us
>  Sent 59862492 bytes 453121 pkts (dropped 0, overlimits 0)
>   borrowed 0 overactions 0 avgidle 605 undertime 0
> class cbq 1:1 parent 1: rate 72Kbit cell 8b (bounded) prio no-transmit/8
> weight 921bps allot 1514b level 1 ewma 5 avpkt 1000b maxidle 95565us
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   borrowed 0 overactions 0 avgidle 2.5052e+06 undertime 0
> class cbq 1:2 parent 1:1 rate 14Kbit cell 8b (bounded) prio no-transmit/8
> weight 179bps allot 1514b level 0 ewma 5 avpkt 1000b maxidle 494285us
> split 1:
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   borrowed 0 overactions 0 avgidle 1.29574e+07 undertime 0
> class cbq 1:3 parent 1:1 rate 14Kbit cell 8b (bounded) prio no-transmit/8
> weight 179bps allot 1514b level 0 ewma 5 avpkt 1000b maxidle 494285us
> split 1:
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   borrowed 0 overactions 0 avgidle 1.29574e+07 undertime 0
> class cbq 1:4 parent 1:1 rate 44Kbit cell 8b (bounded) prio no-transmit/8
> weight 563bps allot 1514b level 0 ewma 5 avpkt 1000b maxidle 156810us
> split 1:
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   borrowed 0 overactions 0 avgidle 4.11072e+06 undertime 0
> class cbq 1:6 parent 1:1 rate 3686bps cell 8b (bounded) prio 3/3 weight
> 368bps allot 1514b level 0 ewma 5 avpkt 1000b maxidle 239956us
> split 1:
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   borrowed 0 overactions 0 avgidle 6.29031e+06 undertime 0
> class cbq 1:8 parent 1:1 rate 64Kbit cell 8b prio 1/1 weight 819bps allot
> 1514b level 0 ewma 5 avpkt 1000b maxidle 107595us
> split 1:
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>   borrowed 0 overactions 0 avgidle 2.82057e+06 undertime 0
> linux:~ #
>
> >Yes and no :)
> >htb is easier to understand/implement, there are no obscure options.  But
> > if your problem is setup related, reimplementing the rules in htb can
> > create the same problem.
> There isn't much of a setup... I just take my private network on eth1,
> masquerade it and shape it over eth0...
I mean the shaping setup (classes, filters, ...).

> Don't know what to say... take a look at the output, maybe you'll find
> something wrong.
All sent counters are 0 execpt for the root class.  So I'm quit sure that your 
filters are not working.

> One more question: I always use weight = rate / 10.
> Why does weight has these strange values in my output?
I don't know.  Like I said, I use htb.

>
> #############################################################
> # REAL FILE (this is the one that generated the above output)
> #############################################################
> tc qdisc del dev eth0 root
> tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt 1000
> mpu 64 tc class add dev eth0 parent 1: classid 1:1 cbq bandwidth 10Mbit
> rate 72Kbit weight 7.2Kbit prio 8  allot 1514 maxburst 20 avpkt 1000
> bounded
>
> tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate
> 14Kbit allot 1514 cell 8 weight 1.4Kbit prio 8 maxburst 20 avpkt 1000 split
> 1:0 bounded tc filter add dev eth0 parent 1:0 protocol ip prio 8 handle 7
> fw classid 1:2
>
> tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth 10Mbit rate
> 14Kbit allot 1514 cell 8 weight 1.4Kbit prio 8 maxburst 20 avpkt 1000 split
> 1:0 bounded tc filter add dev eth0 parent 1:0 protocol ip prio 8 handle 3
> fw classid 1:3
>
> tc class add dev eth0 parent 1:1 classid 1:4 cbq bandwidth 10Mbit rate
> 44Kbit allot 1514 cell 8 weight 4.4Kbit prio 8 maxburst 20 avpkt 1000 split
> 1:0 bounded tc filter add dev eth0 parent 1:0 protocol ip prio 8 handle 5
> fw classid 1:4
>
> tc class add dev eth0 parent 1:1 classid 1:6 cbq bandwidth 10Mbit rate
> 28.8Kbit allot 1514 cell 8 weight 2.88Kbit prio 3 maxburst 20 avpkt 1000
> split 1:0 boun ded
> tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 2 fw classid
> 1:6 tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 6 fw
> classid 1:6 tc filter add dev eth0 parent 1:0 protocol ip prio 3 handle 8
> fw classid 1:6
>
> tc class add dev eth0 parent 1:1 classid 1:8 cbq bandwidth 10Mbit rate
> 64Kbit allot 1514 cell 8 weight 6.4Kbit prio 1 maxburst 20 avpkt 1000 split
> 1:0 tc filter add dev eth0 parent 1:0 protocol ip prio 1 handle 4 fw
> classid 1:8
Euh.  You don't have any filters?  How do you redirect traffic to a class?  
You need some filters to do so.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

      reply	other threads:[~2003-03-13 17:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-12 22:30 Re[4]: [LARTC] CBQ Traffic control not working Mugur TOMITA
2003-03-13 17:24 ` 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-104757635601811@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.