[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linux Diffserv] Ingress qdisc in IPv6



Hi,

I'm trying to build a diffserv testbed and I want to mark the DSCP field 
in the IPv6 packet at the ingress router.

I'm using the folowing script

/sbin/tc qdisc add dev eth0 handle ffff:0 ingress
/sbin/tc filter add dev eth0 parent ffff:0 protocol ipv6 prio 0xffff u32 
ht 0x800:: order 0xfff match ip6 src ::/0  flowid 0x80
/sbin/tc qdisc add dev eth0 handle 1:0 root dsmark indices 256 
default_index 0x08
/sbin/tc filter add dev eth0 parent 1:0 protocol ipv6 prio 0xffff 
tcindex mask 0xff shift 0 fall_through
/sbin/tc class change dev eth0 classid 1:0x00 dsmark mask 0x3 value 0x68
/sbin/tc class change dev eth0 classid 1:0x04 dsmark mask 0x3 value 0xb8
/sbin/tc class change dev eth0 classid 1:0x08 dsmark mask 0x3 value 0x68
/sbin/tc class change dev eth0 classid 1:0x11 dsmark mask 0x3 value 0x28
/sbin/tc class change dev eth0 classid 1:0x12 dsmark mask 0x3 value 0x30
/sbin/tc class change dev eth0 classid 1:0x13 dsmark mask 0x3 value 0x38
/sbin/tc class change dev eth0 classid 1:0x21 dsmark mask 0x3 value 0x48
/sbin/tc class change dev eth0 classid 1:0x22 dsmark mask 0x3 value 0x50
/sbin/tc class change dev eth0 classid 1:0x23 dsmark mask 0x3 value 0x58
/sbin/tc class change dev eth0 classid 1:0x31 dsmark mask 0x3 value 0x68
/sbin/tc class change dev eth0 classid 1:0x32 dsmark mask 0x3 value 0x70
/sbin/tc class change dev eth0 classid 1:0x33 dsmark mask 0x3 value 0x78
/sbin/tc class change dev eth0 classid 1:0x41 dsmark mask 0x3 value 0x88
/sbin/tc class change dev eth0 classid 1:0x42 dsmark mask 0x3 value 0x90
/sbin/tc class change dev eth0 classid 1:0x43 dsmark mask 0x3 value 0x98


This script is not working for upstream traffic.
The strange is that this script works for downstream stream.

I think that the IPv6 code is not complete in the TC script, TC filters 
and other files.

If this is correct can anyone give me a hint how can a try to finish 
this code.

Best Regards
Ricardo Pedro


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Diffserv-general mailing list
Diffserv-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/diffserv-general