Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "vanitha" <vaniarun7@yahoo.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] cbq-fw classifier
Date: Thu, 01 Nov 2001 07:13:08 +0000	[thread overview]
Message-ID: <marc-lartc-100459878809153@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100458564909131@msgid-missing>

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

Hello John ,

Thanks for ur reply . But still it have not worked out.
i have attached the results is that iam making some mistakes in script please guide me 

Advance Thanks
vanitha


 /sbin/tc -s qdisc show dev eth0

qdisc cbq 1: rate 10Mbit (bounded,isolated) prio no-transmit
Sent 450 bytes 6 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 avgidle 624 undertime 0 

/sbin/tc -s filter show dev eth0
filter parent 1: protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle 0x1 classid 1:2 


/sbin/tc -s class  show dev eth0

class cbq 1: root rate 10Mbit (bounded,isolated) prio no-transmit
 Sent 3725 bytes 47 pkts (dropped 0, overlimits 0)
  borrowed 0 overactions 0 avgidle 624 undertime 0
class cbq 1:1 parent 1: rate 10Mbit prio 1
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
  borrowed 0 overactions 0 avgidle 624 undertime 0
class cbq 1:2 parent 1:1 rate 100Kbit (bounded) prio 1
 Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
  borrowed 0 overactions 0 avgidle 1.79878e+06 undertime 0 

/sbin/iptables -t mangle -L

Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
MARK       tcp  --  anywhere             172.16.1.81        MARK set 0x1

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 

  ----- Original Message ----- 
  From: john peng 
  To: vanitha ; lartc@mailman.ds9a.nl 
  Sent: Sunday, December 02, 2001 5:01 AM
  Subject: Re: [LARTC] cbq-fw classifier


  please use
  tc -s qdisc show dev eth1
  tc -s class show dev eth1
  tc -s filter show dev eth1

  to see where the packet goes ,
  or how much it borrows .....
  It seems your script can't regular the classid 1:2



  cheers

  john
    ----- Original Message ----- 
    From: vanitha 
    To: lartc@mailman.ds9a.nl 
    Sent: Thursday, November 01, 2001 5:04 PM
    Subject: [LARTC] cbq-fw classifier


    Hi All,

    I was using CBQ to control the bandwidth rate , while i use the qdisc cbq with u32 filter and route filter it is 
    working fine ,but when i use fw classifier it seems that the bandwidth rate 100kbit is not picked.

    i have used the following commands 

    /sbin/iptables -I PREROUTING -t mangle -p tcp -d 172.16.1.81 -j MARK --set-mark 1

    /sbin/tc qdisc add dev eth0 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt 1000 mpu 64
    /sbin/tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 10Mbit allot 1514 cell 8 weight 1Mbit prio 8 maxburst 20 avpkt 1000
    /sbin/tc class add dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 100Kbit allot 1514 cell 8 weight 10Kbit prio 3 maxburst 20 avpkt 1000

    /sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 handle 1 fw classid 1:2


    is that anything i have missed out ?
    i have tested these commands using Linux-2.4.10.

    Advance Thanks
    Vanitha

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

  parent reply	other threads:[~2001-11-01  7:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-01  3:34 [LARTC] cbq-fw classifier vanitha
2001-11-01  5:02 ` john peng
2001-11-01  7:13 ` vanitha [this message]
2001-11-01  7:29 ` john peng
2001-11-02 11:11 ` vanitha

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-100459878809153@msgid-missing \
    --to=vaniarun7@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox