From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frank v Waveren Date: Mon, 21 Apr 2003 14:04:42 +0000 Subject: Re: [LARTC] filters not doing anything? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Mon, Apr 21, 2003 at 11:20:12AM +0200, Stef Coene wrote: > You can specify a default class if you add the htb qdisc. So all packets= not=20 > matched by a filter ends up in that default class. Yeah, but the filters I pasted are just a test case, my actual setup (pasted at the bottom of this email) really does require having filters that properly delegate the traffic. > And try this if you want to have a catch all rule : > tc filter add dev eth0 parent 1: protocol ip u32 match ip src 0/0 flowid = 2:1=20 Tried that too, the packets still aren't going through the SFQ. The setup: BW=80 DEV=3Deth1 HBW=3D$(($BW/2)) tc qdisc del dev $DEV root tc qdisc add dev $DEV root handle 1: htb r2q 1 tc class add dev $DEV parent 1: classid 1:1 htb rate ${BW}kbit ceil ${BW}kb= it tc qdisc add dev $DEV parent 1:1 handle 2: prio bands 4 tc qdisc add dev $DEV parent 2:1 handle 10: sfq perturb 10 # Lowlatency tc qdisc add dev $DEV parent 2:2 handle 20: sfq perturb 10 # Medium Latency tc qdisc add dev $DEV parent 2:3 handle 30: sfq perturb 10 # Regular tc qdisc add dev $DEV parent 2:4 handle 40: htb r2q 1 # Bulk tc class add dev $DEV parent 40: classid 40:1 htb rate ${HBW}kbit ceil ${BW= }kbit tc class add dev $DEV parent 40: classid 40:2 htb rate ${HBW}kbit ceil ${BW= }kbit tc qdisc add dev $DEV parent 40:1 handle 41: sfq perturb 10 tc qdisc add dev $DEV parent 40:2 handle 42: sfq perturb 10 tc filter add dev $DEV parent 1: protocol ip prio 1 u32 match ip protocol 1= 0xff flowid 2:1 tc filter add dev $DEV parent 1: protocol ip prio 1 u32 match ip tos 0x10 0= xff flowid 2:1 tc filter add dev $DEV parent 1: protocol ip prio 1 u32 match ip protocol 6= 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0x= ff at 33 flowid 2:1 # Small ACKs tc filter add dev $DEV parent 1: protocol ip prio 2 handle 1022 fw flowid 4= 0:1 # Bulk1 tc filter add dev $DEV parent 1: protocol ip prio 2 handle 1027 fw flowid 4= 0:2 # Bulk2 tc filter add dev $DEV parent 1: protocol ip prio 3 u32 match ip protocol 6= 0xff match u8 0x10 0xff at nexthdr+13 flowid 2:1 # All ACKs tc filter add dev $DEV protocol ip parent 1: prio 999 u32 match ip src 0/0 = flowid 2:3 # Anything else goes into the Regular category --=20 Frank v Waveren Fingerprint: 21A7 C7F3 fvw@[var.cx|stack.nl|chello.nl] ICQ#10074100 1FF3 47FF 545C CB53 Public key: hkp://wwwkeys.pgp.net/fvw@var.cx 7BD9 09C0 3AC1 6DF2 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/