Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
* [LARTC] cbq-fw classifier
@ 2001-11-01  3:34 vanitha
  2001-11-01  5:02 ` john peng
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vanitha @ 2001-11-01  3:34 UTC (permalink / raw)
  To: lartc

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

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: 2055 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] cbq-fw classifier
  2001-11-01  3:34 [LARTC] cbq-fw classifier vanitha
@ 2001-11-01  5:02 ` john peng
  2001-11-01  7:13 ` vanitha
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: john peng @ 2001-11-01  5:02 UTC (permalink / raw)
  To: lartc

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

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: 3897 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] cbq-fw classifier
  2001-11-01  3:34 [LARTC] cbq-fw classifier vanitha
  2001-11-01  5:02 ` john peng
@ 2001-11-01  7:13 ` vanitha
  2001-11-01  7:29 ` john peng
  2001-11-02 11:11 ` vanitha
  3 siblings, 0 replies; 5+ messages in thread
From: vanitha @ 2001-11-01  7:13 UTC (permalink / raw)
  To: lartc

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] cbq-fw classifier
  2001-11-01  3:34 [LARTC] cbq-fw classifier vanitha
  2001-11-01  5:02 ` john peng
  2001-11-01  7:13 ` vanitha
@ 2001-11-01  7:29 ` john peng
  2001-11-02 11:11 ` vanitha
  3 siblings, 0 replies; 5+ messages in thread
From: john peng @ 2001-11-01  7:29 UTC (permalink / raw)
  To: lartc

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

According to the results ,
packets are not filtered into  classid 1:2
what is your testing scenario ?

(notice , PREROUTING don't tack care of local generating packets )

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


  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: 9293 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] cbq-fw classifier
  2001-11-01  3:34 [LARTC] cbq-fw classifier vanitha
                   ` (2 preceding siblings ...)
  2001-11-01  7:29 ` john peng
@ 2001-11-02 11:11 ` vanitha
  3 siblings, 0 replies; 5+ messages in thread
From: vanitha @ 2001-11-02 11:11 UTC (permalink / raw)
  To: lartc

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

hello john

When i changed my iptable script from PREROUTING to OUTPUT it worked fine.
I have another query 
 can i mark the outgoing packets by using the mac address (in the below case i have used the ip address)

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


  According to the results ,
  packets are not filtered into  classid 1:2
  what is your testing scenario ?

  (notice , PREROUTING don't tack care of local generating packets )

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


    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: 11374 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-11-02 11:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-01  3:34 [LARTC] cbq-fw classifier vanitha
2001-11-01  5:02 ` john peng
2001-11-01  7:13 ` vanitha
2001-11-01  7:29 ` john peng
2001-11-02 11:11 ` vanitha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox