From mboxrd@z Thu Jan 1 00:00:00 1970 From: "john peng" Date: Thu, 01 Nov 2001 05:02:14 +0000 Subject: Re: [LARTC] cbq-fw classifier MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0052_01C17B31.694F4060" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0052_01C17B31.694F4060 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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, =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_0052_01C17B31.694F4060 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
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
To: lartc@mailman.ds9a.nl
Sent: = Thursday, November 01, 2001 5:04=20 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 -d=20 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 = ?
i have tested these commands using=20 Linux-2.4.10.
 
Advance Thanks
Vanitha
------=_NextPart_000_0052_01C17B31.694F4060-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/