From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?=D8ystein_L=F8k=E5s=3B_NTNU=3B_H01?= Date: Wed, 05 Dec 2001 16:54:47 +0000 Subject: [LARTC] HTB and diff.serv Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi all. As part of a project on the Norweigan University of Science and Technology, I am trying to implement diffserv on a linux router. I have started using HTB as part of this, since I have read the documentation on it and find it easier to use than CBQ. But I ran into problems when I tried to implement the AF classes. To do this, I map each AF class to one HTB class. Now I need to attach a GRED queue to each of the HTB classes to implement the drop preferences. But GRED needs the skb->tcindex field from the dsmark qdisc to select the correct virtual queue. So I configured dsmark as the root qdisc, and HTB in= side this. But now I can't use filters inside the HTB qdisc, because it is an internal qdisc. Is it anyway around this, or do I have to go back to using CBQ? I'd rather = not, because it has given me some weird results earlier, and HTB works like a charm! My setup is something like this (_very_ incomplete code): tc qdisc add dev eth0 root handle 1: dsmark tc qdisc add dev eth0 parent 1:0 handle 2:0 htb tc class add dev eth0 parent 2:0 classid 2:1 htb tc class add dev eth0 parent 2:1 classid 2:10 htb tc class add dev eth0 parent 2:1 classid 2:20 htb tc class add dev eth0 parent 2:1 classid 2:30 htb tc class add dev eth0 parent 2:1 classid 2:40 htb 2 of these classes are for EF and BE. That is not a problem. The other 2 are for AF1x and AF2x. Now I need the GRED queue: tc qdisc add dev eth0 parent 2:20 handle 3:0 tc qdisc add dev eth0 parent 2:30 handle 4:0 The problem with this setup is as mentioned, to be able to filter the packets into the right htb class. I'm hoping anyone can help me with this. =D8ystein L=F8k=E5s. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Rout= ing/