From: "Roy" Date: Fri, 09 Apr 2004 00:00:14 +0000 Subject: Re: [LARTC] traffic shaping on single ip... Message-Id: <003001c41dc5$a2749a50$030aa8c0@t> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_002D_01C41DDE.C7816DF0" List-Id: References: <008d01c41d8a$26d19be0$a902a8c0@stillnicks> In-Reply-To: <008d01c41d8a$26d19be0$a902a8c0@stillnicks> To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_002D_01C41DDE.C7816DF0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable You cant control input traffic that way at all. you need to use imq for inbound traffic control, or at least policers. also cbq is very old and should be replaced with htb ----- Original Message -----=20 From: Cristiano Soares=20 To: LARTC@mailman.ds9a.nl=20 Sent: Thursday, April 08, 2004 7:54 PM Subject: [LARTC] traffic shaping on single ip... Hi all. Im using the following CQB shaper to shape IP addresses: DEV=3Deth1 (internal eth) tc qdisc del dev $DEV root tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit tc class add dev $DEV parent 1: classid 1:1 cbq rate 256kbit allot = 1500 prio 5 bounded isolated tc class add dev $DEV parent 1: classid 1:2 cbq rate 512kbit allot = 1500 prio 5 bounded isolated tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst = 192.168.2.230 flowid 1:2 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip src = 192.168.2.230 flowid 1:2 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst = 192.168.2.188 flowid 1:1 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip src = 192.168.2.188 flowid 1:1 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst = 192.168.2.172 flowid 1:1 tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip src = 192.168.2.172 flowid 1:1 The thing is, i want to be able to shape inbound different from = outbound traffic. I use an ADSL line so, i need to shape up = significantly lower than down. Thanks a lot. And also, is there a better way to shape traffic like this? Thanks a = lot. Cristiano ------=_NextPart_000_002D_01C41DDE.C7816DF0 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
You cant control input traffic that way = at=20 all.
 
you need to use imq for inbound traffic = control, or=20 at least policers.
 
also cbq is very old and should be = replaced with=20 htb
 
----- Original Message -----
From:=20 Cristiano Soares
To: LARTC@mailman.ds9a.nl
Sent: Thursday, April 08, 2004 = 7:54=20 PM
Subject: [LARTC] traffic = shaping on=20 single ip...

Hi all. Im using the following CQB = shaper to=20 shape IP addresses:
 
DEV=3Deth1 (internal = eth)
 
tc qdisc del dev $DEV root
tc = qdisc add dev=20 $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev $DEV parent 1: = classid 1:1 cbq=20 rate 256kbit allot 1500 prio 5 bounded isolated
tc class add dev = $DEV=20 parent 1: classid 1:2 cbq rate 512kbit allot 1500 prio 5 bounded=20 isolated
 
tc filter add dev $DEV parent 1: = protocol ip prio=20 16 u32 match ip dst 192.168.2.230 flowid 1:2
tc filter add dev $DEV = parent=20 1: protocol ip prio 16 u32 match ip src 192.168.2.230 flowid = 1:2
 
tc filter add dev $DEV parent 1: = protocol ip prio=20 16 u32 match ip dst 192.168.2.188 flowid 1:1
tc filter add dev $DEV = parent=20 1: protocol ip prio 16 u32 match ip src 192.168.2.188 flowid = 1:1
 
tc filter add dev $DEV parent 1: = protocol ip prio=20 16 u32 match ip dst 192.168.2.172 flowid 1:1
tc filter add dev $DEV = parent=20 1: protocol ip prio 16 u32 match ip src 192.168.2.172 flowid=20 1:1
 
The thing is, i want to be able to = shape inbound=20 different from outbound traffic. I use an ADSL line so, i need to = shape up=20 significantly lower than down. Thanks a lot.
And also, is there a better way to = shape traffic=20 like this? Thanks a lot.
 
Cristiano
------=_NextPart_000_002D_01C41DDE.C7816DF0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/