From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Bonin" Date: Mon, 30 Jun 2003 15:07:19 +0000 Subject: [LARTC] strange bandwidth limits MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0131_01C33F2A.10749D00" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0131_01C33F2A.10749D00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm a bit confused coz of the following script i wrote. i build up a server-router-client model to check the script. i configured no ingress but the script limits the bandwidth to about 250 = kbyte/s. all the time i'm getting wrong bandwidth limits. anyone an idea what the problem could be ? maybe something wrong with the script or maybe not enough power of the = hardware (P2 300MHz; 128 MB RAM) ? #################################### #!/bin/bash=20 DOWNLINK=3D2000 UPLINK=3D2000 DEV=3Deth0 if [ "$1" =3D "status" ] then tc -s qdisc ls dev $DEV tc -s class ls dev $DEV exit fi tc qdisc del dev $DEV root 2> /dev/null > /dev/null tc qdisc del dev $DEV ingress 2> /dev/null > /dev/null if [ "$1" =3D "stop" ]=20 then exit fi tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit = cell 8 tc class add dev $DEV parent 1: classid 1:1 cbq bandwidth 100mbit \ rate 2000kbit allot 1500 prio 3 bounded tc class add dev $DEV parent 1:1 classid 1:3 cbq rate 2000kbit \ allot 1600 prio 1 avpkt 1000 tc class add dev $DEV parent 1:1 classid 1:4 cbq rate 2000kbit \ allot 1600 prio 1 avpkt 1000=20 tc filter add dev $DEV parent 1: protocol ip prio 2 u32 \ match ip src 62.8.206.0/25 flowid 1:3 tc filter add dev $DEV parent 1: protocol ip prio 2 u32 \ match ip src 62.8.206.160/27 flowid 1:3 tc filter add dev $DEV parent 1: protocol ip prio 2 u32 \ match ip src 62.8.206.192/26 flowid 1:3 tc filter add dev $DEV parent 1: protocol ip prio 2 u32 \ match ip src 192.168.200.0/24 flowid 1:4 exit ################################# thx=20 Michael ------=_NextPart_000_0131_01C33F2A.10749D00 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

I'm a bit confused coz of the following script i wrote.
i = build up a=20 server-router-client model to check the script.
i configured no = ingress but=20 the script limits the bandwidth to about 250 kbyte/s.

all the time i'm getting wrong bandwidth limits.

anyone an idea what the problem could be ?
maybe something wrong = with the=20 script or maybe not enough power of the hardware (P2 300MHz; 128 MB RAM) = ?

####################################
#!/bin/bash=20
DOWNLINK=3D2000
UPLINK=3D2000
DEV=3Deth0
if [ "$1" =3D = "status"=20 ]
then
tc -s qdisc ls dev $DEV
tc -s class ls dev=20 $DEV
exit
fi
tc qdisc del dev $DEV root 2> /dev/null >=20 /dev/null
tc qdisc del dev $DEV ingress 2> /dev/null > = /dev/null
if=20 [ "$1" =3D "stop" ]
then
exit
fi
tc qdisc add dev $DEV root = handle 1:=20 cbq avpkt 1000 bandwidth 100mbit cell 8
tc class add dev $DEV parent = 1:=20 classid 1:1 cbq bandwidth 100mbit \
rate 2000kbit allot 1500 prio 3=20 bounded
tc class add dev $DEV parent 1:1 classid 1:3 cbq rate = 2000kbit=20 \
allot 1600 prio 1 avpkt 1000
tc class add dev $DEV parent 1:1 = classid=20 1:4 cbq rate 2000kbit \
allot 1600 prio 1 avpkt 1000
tc filter = add dev=20 $DEV parent 1: protocol ip prio 2 u32 \
match ip src 62.8.206.0/25 = flowid=20 1:3
tc filter add dev $DEV parent 1: protocol ip prio 2 u32 = \
match ip src=20 62.8.206.160/27 flowid 1:3
tc filter add dev $DEV parent 1: protocol = ip prio=20 2 u32 \
match ip src 62.8.206.192/26 flowid 1:3
tc filter add dev = $DEV=20 parent 1: protocol ip prio 2 u32 \
match ip src 192.168.200.0/24 = flowid=20 1:4
exit
#################################

thx

Michael

------=_NextPart_000_0131_01C33F2A.10749D00-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/