From mboxrd@z Thu Jan 1 00:00:00 1970 From: "john peng" Date: Thu, 01 Nov 2001 07:29:07 +0000 Subject: Re: [LARTC] cbq-fw classifier MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0068_01C17B46.26D05840" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0068_01C17B46.26D05840 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 -----=20 From: vanitha=20 To: john peng ; lartc@mailman.ds9a.nl=20 Sent: Thursday, November 01, 2001 8:43 PM Subject: Re: [LARTC] cbq-fw classifier Hello John , =20 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=20 =20 Advance Thanks vanitha =20 =20 /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=20 /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=20 /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=20 =20 /sbin/iptables -t mangle -L Chain PREROUTING (policy ACCEPT) target prot opt source destination MARK tcp -- anywhere 172.16.1.81 MARK set = 0x1 =20 Chain OUTPUT (policy ACCEPT) target prot opt source destination=20 =20 ----- Original Message -----=20 From: john peng=20 To: vanitha ; lartc@mailman.ds9a.nl=20 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 =20 to see where the packet goes , or how much it borrows ..... It seems your script can't regular the classid 1:2 =20 =20 cheers =20 john ----- Original Message -----=20 From: vanitha=20 To: lartc@mailman.ds9a.nl=20 Sent: Thursday, November 01, 2001 5:04 PM Subject: [LARTC] cbq-fw classifier Hi All, =20 I was using CBQ to control the bandwidth rate , while i use the = qdisc cbq with u32 filter and route filter it is=20 working fine ,but when i use fw classifier it seems that the = bandwidth rate 100kbit is not picked. i have used the following commands=20 =20 /sbin/iptables -I PREROUTING -t mangle -p tcp -d 172.16.1.81 -j = MARK --set-mark 1 =20 /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 =20 /sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 1 handle = 1 fw classid 1:2 =20 =20 is that anything i have missed out ? i have tested these commands using Linux-2.4.10. =20 Advance Thanks Vanitha ------=_NextPart_000_0068_01C17B46.26D05840 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
According to = the results ,
packets are = not filtered into  classid=20 1:2
what is your = testing scenario ?
 
(notice , PREROUTING don't tack care of local generating packets = )
 
john
----- Original = Message -----
From:=20 vanitha=20
To: john = peng ;=20 lartc@mailman.ds9a.nl
Sent: = Thursday, November 01, 2001 8:43=20 PM
Subject: Re: = [LARTC] cbq-fw=20 classifier

Hello John ,
 
Thanks for ur reply . But still it = have not=20 worked out.
i have attached the results is that = iam making=20 some mistakes in script please guide me
 
Advance Thanks
vanitha
 
 
 /sbin/tc -s qdisc show = dev=20 eth0

qdisc cbq 1: rate 10Mbit (bounded,isolated) prio = no-transmit
Sent=20 450 bytes 6 pkts (dropped 0, overlimits 0)
borrowed 0 overactions 0 = avgidle=20 624 undertime 0
 
/sbin/tc -s filter show dev eth0
filter = parent 1:=20 protocol ip pref 1 fw
filter parent 1: protocol ip pref 1 fw handle = 0x1=20 classid 1:2
 
 
/sbin/tc -s class  show dev eth0

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

Chain PREROUTING (policy=20 ACCEPT)
target     prot opt=20 = source           &= nbsp;  =20 destination
MARK       tcp  = -- =20 = anywhere           = ; =20 172.16.1.81        MARK set=20 0x1
 
Chain OUTPUT (policy=20 ACCEPT)
target     prot opt=20 = source           &= nbsp;  =20 destination
 
----- Original Message -----
From:=20 john=20 peng
To: vanitha ; lartc@mailman.ds9a.nl
Sent: Sunday, December 02, = 2001 5:01=20 AM
Subject: Re: [LARTC] cbq-fw=20 classifier

please = use
tc -s = qdisc show dev eth1
tc -s class show=20 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=20 1:2
 
 
cheers
 
john
----- Original = Message -----
From:=20 vanitha=20
To: lartc@mailman.ds9a.nl
Sent: = Thursday, November 01, 2001=20 5:04 PM
Subject: = [LARTC] cbq-fw=20 classifier

Hi All,
 
I was using CBQ to control the = bandwidth rate=20 , while i use the qdisc cbq with u32 filter and route filter it is =
working fine ,but when i use fw = classifier it=20 seems that the bandwidth rate 100kbit is not picked.
 
i have used the following=20 commands 
 
/sbin/iptables -I PREROUTING -t = mangle -p tcp=20 -d 172.16.1.81 -j MARK --set-mark 1
 
/sbin/tc qdisc add dev eth0 root = handle 1:=20 cbq bandwidth 10Mbit cell 8 avpkt 1000 mpu 64
/sbin/tc class = add dev=20 eth0 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 10Mbit allot = 1514=20 cell 8 weight 1Mbit prio 8 maxburst 20 avpkt 1000
/sbin/tc = class add=20 dev eth0 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 100Kbit = allot=20 1514 cell 8 weight 10Kbit prio 3 maxburst 20 avpkt = 1000
 
/sbin/tc filter add dev eth0 = protocol ip=20 parent 1:0 prio 1 handle 1 fw classid 1:2
 
 
is that anything i have missed = out=20 ?
i have tested these commands = using=20 Linux-2.4.10.
 
Advance Thanks
Vanitha
------=_NextPart_000_0068_01C17B46.26D05840-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/