All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jinyou Zhang <jzhang@ucentric.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] cbq with cbq as subclasses does not work for me. Help!
Date: Thu, 02 May 2002 15:48:51 +0000	[thread overview]
Message-ID: <marc-lartc-102035457913310@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102028815729101@msgid-missing>

[-- Attachment #1: Type: text/plain, Size: 3992 bytes --]

Hi Vanitha,

Thanks for the help!  It is still not working.

I have changed the following line and added the

tc class add  dev eth0 parent 1:1 classid 1:2 cbq bandwidth 100Mbit rate 
20Mbit allot 1514 cell 8 avpkt 1000  weight 2Mbit prio 5 maxburst 20 bounded

Here is the the results of "tc -s -s class sh dev eth0":

---------------------------------------------------------------------
class cbq 2: root rate 20Mbit (bounded,isolated) prio no-transmit
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 312 undertime 0
class cbq 2:1 parent 2: rate 20Mbit prio 5
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 312 undertime 0
class cbq 2:2 parent 2:1 rate 10Mbit (bounded) prio 5
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 8869 undertime 0
class cbq 2:3 parent 2:1 rate 5Mbit (bounded) prio 2
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 26608 undertime 0
class cbq 1: root rate 100Mbit (bounded,isolated) prio no-transmit
 Sent 444486549 bytes 298006 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 62 undertime 0
class cbq 1:1 parent 1: rate 100Mbit prio 5
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 62 undertime 0
class cbq 1:2 parent 1:1 leaf 2: rate 20Mbit (bounded) prio 5
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) 
  borrowed 0 overactions 0 avgidle 7095 undertime 0
----------------------------------------------------------------------


Instead of flowid 2:2, all traffics went to root 1:0. 
Maybe, my filters are not correct. ??

Thanks,

--Jinyou Z

Vanitha wrote:

>Hello
>
>Check with bounded option
>
>Regards
>Vanitha
>----- Original Message ----- 
>From: "Jinyou Zhang" <jzhang@ucentric.com>
>To: <lartc@mailman.ds9a.nl>
>Sent: Wednesday, May 01, 2002 10:21 PM
>Subject: [LARTC] cbq with cbq as subclasses does not work for me. Help!
>
>
>>HI there,
>>
>>I am running the following script for my test bed. It can
>>run without any errors. The problem is when I run netperf
>>with TCP to 192.168.11.58, there is no bandwidth limitation.
>>
>>Is there any thing wrong with the script? Please take a look
>>for me!
>>
>>Thanks,
>>
>>--Jinyou Z.
>>
>>==================================================================
>>tc qdisc add  dev eth0 root handle 1: cbq  bandwidth 100Mbit allot 1514 
>>cell 8 avpkt 1000 mpu 64
>>
>>tc class add  dev eth0 parent 1: classid 1:1 cbq bandwidth 100Mbit rate 
>>100Mbit allot 1514 cell 8 avpkt 1000  weight 10Mbit prio 5 maxburst 20
>>
>>tc class add  dev eth0 parent 1:1 classid 1:2 cbq bandwidth 100Mbit rate 
>>20Mbit allot 1514 cell 8 avpkt 1000  weight 2Mbit prio 5 maxburst 20
>>
>>tc qdisc add  dev eth0 parent 1:2 handle 2: cbq bandwidth 20Mbit allot 
>>1514 cell 8 avpkt 1000 mpu 64
>>
>>tc class add  dev eth0 parent 2: classid 2:1 cbq bandwidth 20Mbit rate 
>>20Mbit allot 1514 cell 8 avpkt 1000 weight 2000Kbit  prio 5  maxburst 20
>>
>>tc class add  dev eth0 parent 2:1 classid 2:2 cbq bandwidth 20Mbit rate 
>>10Mbit  weight 1000Kbit  allot 1514 cell 8 avpkt 1000 prio 5 maxburst 20
>>
>>tc class add  dev eth0 parent 2:1 classid 2:3 cbq bandwidth 20Mbit rate 
>>5Mbit  weight 500Kbit  allot 1514 cell 8 avpkt 1000 prio 2 maxburst 20
>>
>>tc filter add dev eth0 parent 2:0  protocol ip prio 10 u32  match ip dst 
>>192.168.11.58 match ip protocol 6 0xff flowid 2:2
>>
>>tc filter add dev eth0 parent 2:0  protocol ip prio 10 u32  match ip dst 
>>192.168.11.58 match ip protocol 17 0xff flowid 2:3
>>===================================================================
>>
>>
>>_______________________________________________
>>LARTC mailing list / LARTC@mailman.ds9a.nl
>>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>>
>
>_______________________________________________
>LARTC mailing list / LARTC@mailman.ds9a.nl
>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>


[-- Attachment #2: Type: text/html, Size: 5110 bytes --]

  parent reply	other threads:[~2002-05-02 15:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-01 21:21 [LARTC] cbq with cbq as subclasses does not work for me. Help! Jinyou Zhang
2002-05-02  3:49 ` Vanitha
2002-05-02 15:48 ` Jinyou Zhang [this message]
2002-05-03  3:57 ` Arindam Haldar

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-102035457913310@msgid-missing \
    --to=jzhang@ucentric.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 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.