[LARTC] cbq with cbq as subclasses does not work for me. Help!

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--------------080803030804030107050802
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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/
>


--------------080803030804030107050802
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html>
<head>
</head>
<body>
Hi Vanitha,<br>
<br>
Thanks for the help! &nbsp;It is still not working.<br>
<br>
I have changed the following line and added the
<pre wrap="">tc class add  dev eth0 parent 1:1 classid 1:2 cbq bandwidth 100Mbit rate <br>20Mbit allot 1514 cell 8 avpkt 1000  weight 2Mbit prio 5 maxburst 20 bounded<br><br>Here is the the results of "tc -s -s class sh dev eth0":<br><br>---------------------------------------------------------------------<br>class cbq 2: root rate 20Mbit (bounded,isolated) prio no-transmit<br> Sent 0 bytes 0 pkts (dropped 0, overlimits 0) <br>  borrowed 0 overactions 0 avgidle 312 undertime 0<br>class cbq 2:1 parent 2: rate 20Mbit prio 5<br> Sent 0 bytes 0 pkts (dropped 0, overlimits 0) <br>  borrowed 0 overactions 0 avgidle 312 undertime 0<br>class cbq 2:2 parent 2:1 rate 10Mbit (bounded) prio 5<br> Sent 0 bytes 0 pkts (dropped 0, overlimits 0) <br>  borrowed 0 overactions 0 avgidle 8869 undertime 0<br>class cbq 2:3 parent 2:1 rate 5Mbit (bounded) prio 2<br> Sent 0 bytes 0 pkts (dropped 0, overlimits 0) <br>  borrowed 0 overactions 0 avgidle 26608 undertime 0<br>class cbq 1: root rate 100Mb
it (bounded,isolated) prio no-transmit<br> Sent 444486549 bytes 298006 pkts (dropped 0, overlimits 0) <br>  borrowed 0 overactions 0 avgidle 62 undertime 0<br>class cbq 1:1 parent 1: rate 100Mbit prio 5<br> Sent 0 bytes 0 pkts (dropped 0, overlimits 0) <br>  borrowed 0 overactions 0 avgidle 62 undertime 0<br>class cbq 1:2 parent 1:1 leaf 2: rate 20Mbit (bounded) prio 5<br> Sent 0 bytes 0 pkts (dropped 0, overlimits 0) <br>  borrowed 0 overactions 0 avgidle 7095 undertime 0<br>----------------------------------------------------------------------<br><br><br>Instead of flowid 2:2, all traffics went to root 1:0. <br>Maybe, my filters are not correct. ??<br><br>Thanks,<br><br>--Jinyou Z</pre>
Vanitha wrote:<br>
<blockquote type="cite" cite="002c01c1f1b2$b0552f90$260110ac@KOVAITEAM"">mid:002c01c1f1b2$b0552f90$260110ac@KOVAITEAM";>
  <pre wrap="">Hello<br><br>Check with bounded option<br><br>Regards<br>Vanitha<br>----- Original Message ----- <br>From: "Jinyou Zhang" <a class="moz-txt-link-rfc2396E" href="mailto:jzhang@ucentric.com";>&lt;jzhang@ucentric.com&gt;</a><br>To: <a class="moz-txt-link-rfc2396E" href="mailto:lartc@mailman.ds9a.nl";>&lt;lartc@mailman.ds9a.nl&gt;</a><br>Sent: Wednesday, May 01, 2002 10:21 PM<br>Subject: [LARTC] cbq with cbq as subclasses does not work for me. Help!<br><br><br></pre>
  <blockquote type="cite">
    <pre wrap="">HI there,<br><br>I am running the following script for my test bed. It can<br>run without any errors. The problem is when I run netperf<br>with TCP to 192.168.11.58, there is no bandwidth limitation.<br><br>Is there any thing wrong with the script? Please take a look<br>for me!<br><br>Thanks,<br><br>--Jinyou Z.<br><br>==================================================================<br>tc qdisc add  dev eth0 root handle 1: cbq  bandwidth 100Mbit allot 1514 <br>cell 8 avpkt 1000 mpu 64<br><br>tc class add  dev eth0 parent 1: classid 1:1 cbq bandwidth 100Mbit rate <br>100Mbit allot 1514 cell 8 avpkt 1000  weight 10Mbit prio 5 maxburst 20<br><br>tc class add  dev eth0 parent 1:1 classid 1:2 cbq bandwidth 100Mbit rate <br>20Mbit allot 1514 cell 8 avpkt 1000  weight 2Mbit prio 5 maxburst 20<br><br>tc qdisc add  dev eth0 parent 1:2 handle 2: cbq bandwidth 20Mbit allot <br>1514 cell 8 avpkt 1000 mpu 64<br><br>tc class add  dev eth0 parent 2: classid 2:1 cbq bandwid
th 20Mbit rate <br>20Mbit allot 1514 cell 8 avpkt 1000 weight 2000Kbit  prio 5  maxburst 20<br><br>tc class add  dev eth0 parent 2:1 classid 2:2 cbq bandwidth 20Mbit rate <br>10Mbit  weight 1000Kbit  allot 1514 cell 8 avpkt 1000 prio 5 maxburst 20<br><br>tc class add  dev eth0 parent 2:1 classid 2:3 cbq bandwidth 20Mbit rate <br>5Mbit  weight 500Kbit  allot 1514 cell 8 avpkt 1000 prio 2 maxburst 20<br><br>tc filter add dev eth0 parent 2:0  protocol ip prio 10 u32  match ip dst <br>192.168.11.58 match ip protocol 6 0xff flowid 2:2<br><br>tc filter add dev eth0 parent 2:0  protocol ip prio 10 u32  match ip dst <br>192.168.11.58 match ip protocol 17 0xff flowid 2:3<br>===================================================================<br><br><br>_______________________________________________<br>LARTC mailing list / <a class="moz-txt-link-abbreviated" href="mailto:LARTC@mailman.ds9a.nl";>LARTC@mailman.ds9a.nl</a><br><a class="moz-txt-link-freetext" href="http://mailman.ds9a.nl/ma
ilman/listinfo/lartc">http://mailman.ds9a.nl/mailman/listinfo/lartc</a> HOWTO: <a class="moz-txt-link-freetext" href="http://lartc.org/";>http://lartc.org/</a><br></pre>
    </blockquote>
    <pre wrap=""><!----><br>_______________________________________________<br>LARTC mailing list / <a class="moz-txt-link-abbreviated" href="mailto:LARTC@mailman.ds9a.nl";>LARTC@mailman.ds9a.nl</a><br><a class="moz-txt-link-freetext" href="http://mailman.ds9a.nl/mailman/listinfo/lartc";>http://mailman.ds9a.nl/mailman/listinfo/lartc</a> HOWTO: <a class="moz-txt-link-freetext" href="http://lartc.org/";>http://lartc.org/</a><br><br></pre>
    </blockquote>
    <br>
    </body>
    </html>

--------------080803030804030107050802--



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux