From mboxrd@z Thu Jan 1 00:00:00 1970 From: "James Ma" Date: Thu, 12 Dec 2002 23:09:09 +0000 Subject: [LARTC] my qos-cbq didn't work MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0077_01C2A209.91D117C0" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0077_01C2A209.91D117C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, All, I implemented the following qos scripts in my Linux gateway (redhat7.3, = kernel 2.4.18), put ftp server (10.10.3.49) on one side (eth0 nic) and = ftp client (10.10.5.3) on the other side (eth1 nic). I tried to up load = a file (211kbytes) from client to ftp server. I wanted to see a 22kbps = transmission rate. Quite surprise, the ftp client showed transmission = rate as 6.8e+02 kbytes/s (211k transmitted in 0.3 seconds). It was the = same as it without qos implementation. So the conclusion is the QoS was = not working at all. Could anybody tell me what's wrong with the setting? Thanks, James #!/bin/sh OPTION=3D"allot 1514 maxburst 20 avpkt 500" tc qdisc del dev eth0 root=20 tc qdisc add dev eth0 root handle 10: cbq bandwidth 10mbit avpkt 500 tc class add dev eth0 parent 10:0 classid 10:2 cbq bandwidth 10mbit rate = 22kbps $OPTION prio 3 bounded tc qdisc add dev eth0 parent 10:2 handle 20: cbq bandwidth 10mbit allot = 1514 avpkt 500 tc class add dev eth0 parent 20: classid 20:10 cbq bandwidth 10mbit rate = 11kbps $OPTION prio 3 bounded=20 tc class add dev eth0 parent 20: classid 20:20 cbq bandwidth 10mbit rate = 11kbps $OPTION prio3 bounded tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip tos = 0xa0 0xff flowid 10:2 tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip src = 10.10.5.3/24 flowid 10:2 tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip tos = 0xa0 0xff flowid 20:10 tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip src = 10.10.5.3/24 flowid 20:20 ------=_NextPart_000_0077_01C2A209.91D117C0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi, All,

I implemented the following qos scripts in my Linux gateway = (redhat7.3,=20 kernel 2.4.18), put ftp server (10.10.3.49) on one side (eth0 nic) = and ftp=20 client (10.10.5.3) on the other side (eth1 nic). I tried to up load a = file=20 (211kbytes) from client to ftp server. I wanted to see a 22kbps = transmission=20 rate. Quite surprise, the ftp client showed transmission rate as 6.8e+02 = kbytes/s (211k transmitted in 0.3 seconds). It was the same as it = without qos=20 implementation. So the conclusion is the QoS was not working at all.

Could anybody tell me what's wrong with the setting?

Thanks,

 

James

 

#!/bin/sh

OPTION=3D"allot 1514 maxburst 20 avpkt 500"

tc qdisc del dev eth0 root

tc qdisc add dev eth0 root handle 10: cbq bandwidth 10mbit avpkt = 500

tc class add dev eth0 parent 10:0 classid 10:2 cbq bandwidth 10mbit=20 rate 22kbps $OPTION prio 3 bounded

tc qdisc add dev eth0 parent 10:2 handle 20: cbq bandwidth 10mbit = allot 1514=20 avpkt 500

tc class add dev eth0 parent 20: classid 20:10 cbq bandwidth 10mbit = rate=20 11kbps $OPTION prio 3 bounded 

tc class add dev eth0 parent 20: classid 20:20 cbq bandwidth 10mbit=20 rate 11kbps $OPTION prio3 bounded


tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip = tos=20 0xa0 0xff flowid 10:2

tc filter add dev eth0 parent 10: protocol ip prio 3 u32 match ip=20 src 10.10.5.3/24 flowid 10:2

tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip tos = 0xa0=20 0xff flowid 20:10

tc filter add dev eth0 parent 20: protocol ip prio 3 u32 match ip=20 src 10.10.5.3/24 flowid 20:20


------=_NextPart_000_0077_01C2A209.91D117C0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/