From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Davidson Date: Thu, 03 Nov 2005 17:52:43 +0000 Subject: [LARTC] Cannot get htb & prio working together. Message-Id: <436A4E6B.6090506@bbd.co.za> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi, I've failed miserably in my endeavours so far and I'm at the point where help would be much appreciated. I want to have 3 bandwidth limited classes on my Internet interface. In each of those classes I want 3 prioritization bands, and then use "tc filters" to place the traffic into the correct class and priority. The problem is that the traffic doesn't get classified at all, it just seems to go through the root queue untouched. This is the minimal config I've been testing with: tc qdisc add dev eth0 root handle 1: htb tc class add dev eth0 parent 1: classid 1:1 htb rate 120kbit tc class add dev eth0 parent 1:1 classid 1:20 htb rate 30kbit ceil 120kbit tc qdisc add dev eth0 parent 1:20 handle 20: prio #Note: With a "prio" qdisc the class ID's of nn:1 to 3 are automatically provided tc qdisc add dev eth0 parent 20:1 handle 201: sfq tc qdisc add dev eth0 parent 20:2 handle 202: sfq tc qdisc add dev eth0 parent 20:3 handle 203: sfq tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport 22 0xffff flowid 20:1 tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dport 23 0xffff flowid 20:3 A "tc filter show" displays the filters and so on and one can see the hits & successes when testing with, say, Telnet, but the counters on the respective queue/flowid don't increment. Only counters on the root queue show activity. :- filter parent 1: protocol ip pref 1 u32 fh 800::801 order 2049 key ht 800 bkt 0 flowid 20:3 (rule hit 82 success 31) match 00000017/0000ffff at 20 (success 31 ) qdisc sfq 201: parent 20:3 limit 128p quantum 1514b flows 128/1024 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 I've tried changing the filter parent for the "prio" qdisc i.e 20, but a "tc filter show" doesn't even display the filter and as you might expect only the root queue counter shows activity. The os is Fedora Core 4 with an "out the box" server installation. Linux version 2.6.11-1.1369_FC4 Thanks in advance Mike D. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc