Skip to contentSkip to conversation

problem with prio qdisc and tcng

LARTC Simo 1 participant 1 message Apr 25, 2007

lore
Share & tools
lore

Simo

author
#0 lore raw

Hello Mailing list,

I have a problem with the prio qdisc and I don´t know what is wrong in my configuration

This ist a sample configuration and looks like this:

#include "fields.tc"

#include "ports.tc"

#define X16(i) i i i i i i i i i i i i i i i i

dev ppp0 {

   dsmark {
        prio(bands 6, priomap X16($be)) {

        class if ip_proto == IPPROTO_UDP;  
        class if tcp_dport == PORT_TELNET;

        class if tcp_dport == PORT_HTTP;

        class if tcp_dport == PORT_SMTP;

        class if ip_dst == 10.0.10.10;

        $be = class(6);

    }

}

}

The tc-Code looks like this:

# ================================ Device ppp0
================================

tc qdisc add dev ppp0 handle 1:0 root dsmark indices 64 set_tc_index

tc qdisc add dev ppp0 handle 2:0 parent 1:0 prio bands 6 priomap 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x11 0xff at 9 classid 2:1

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 1:0:0 u32 divisor 1

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 1:0:0

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 1:0:1 u32 ht 1:0:0 match u16 0x17 0xffff at 2 classid 2:2

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 2:0:0 u32 divisor 1

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 2:0:0

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 2:0:1 u32 ht 2:0:0 match u16 0x50 0xffff at 2 classid 2:3

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 3:0:0 u32 divisor 1

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u8 0x6 0xff at 9 offset at 0 mask 0f00 shift 6 eat link 3:0:0

tc filter add dev ppp0 parent 2:0 protocol all prio 1 handle 3:0:1 u32 ht 3:0:0 match u16 0x19 0xffff at 2 classid 2:4

tc filter add dev ppp0 parent 2:0 protocol all prio 1 u32 match u32 0xa000a0a 0xffffffff at 16 classid 2:5

tc filter add dev ppp0 parent 1:0 protocol all prio 1 tcindex mask 0xfc shift 2

but when i execute the script and invoke: “tc –s class show dev ppp0” I don´t see any Pakets, that have been enqueued or sent.

pc1:/etc/tcng# tc -s class show dev ppp0

class prio 2:1 parent 2:

Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:2 parent 2:

Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:3 parent 2:

Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:4 parent 2:

Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:5 parent 2:

Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

class prio 2:6 parent 2:

Sent 0 bytes 0 pkts (dropped 0, overlimits 0)

----------------------------------------------------------------------------
-----------------------------------------------------------------
In a world without walls who needs gates and windows?

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc