From mboxrd@z Thu Jan 1 00:00:00 1970 From: "vanitha" Date: Thu, 01 Nov 2001 07:13:08 +0000 Subject: Re: [LARTC] cbq-fw classifier MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00F0_01C162D2.C25E78F0" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_00F0_01C162D2.C25E78F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=20 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=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 /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=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 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 -----=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, 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 /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 ------=_NextPart_000_00F0_01C162D2.C25E78F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello John ,
 
Thanks for ur reply . But still it have = not worked=20 out.
i have attached the results is that iam = making some=20 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) prio=20 no-transmit
 Sent 3725 bytes 47 pkts (dropped 0, overlimits = 0)
 =20 borrowed 0 overactions 0 avgidle 624 undertime 0
class cbq 1:1 parent = 1: rate=20 10Mbit prio 1
 Sent 0 bytes 0 pkts (dropped 0, overlimits = 0)
 =20 borrowed 0 overactions 0 avgidle 624 undertime 0
class cbq 1:2 parent = 1:1=20 rate 100Kbit (bounded) prio 1
 Sent 0 bytes 0 pkts (dropped 0,=20 overlimits 0)
  borrowed 0 overactions 0 avgidle 1.79878e+06 = undertime 0=20
 
/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 = 0x1
 
Chain OUTPUT (policy=20 ACCEPT)
target     prot opt=20 source           &= nbsp;  =20 destination
 
----- Original Message -----
From:=20 john peng=20
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 dev=20 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
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=20
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: cbq=20 bandwidth 10Mbit cell 8 avpkt 1000 mpu 64
/sbin/tc class add dev = eth0=20 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate 10Mbit allot 1514 = cell 8=20 weight 1Mbit prio 8 maxburst 20 avpkt 1000
/sbin/tc class add dev = eth0=20 parent 1:1 classid 1:2 cbq bandwidth 10Mbit rate 100Kbit allot 1514 = cell 8=20 weight 10Kbit prio 3 maxburst 20 avpkt 1000
 
/sbin/tc filter add dev eth0 = protocol ip parent=20 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_00F0_01C162D2.C25E78F0-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/