Siller Gonzalez Pico, Mario A
2002-May-29 19:45 UTC
Edge device: is not marking packets...TOS
Hello all, I''m having problems with my edge device for marking the packets on the TOS field. What I want is TOS=0x2e (DSCP for EF), but what I get is TOS=0x0. I''m including information about the configuration at the core device and tcpdump information about the packets received at the core device. Does anyone have any idea of what could be wrong? Thanks, Mario Siller. This is the configuration I have in my edge device: *****************Configuration Script************************************************************** ./tc qdisc add dev eth1 handle 1:0 root dsmark indices 64 ./tc class change dev eth1 classid 1:1 dsmark mask 0x3 value 0xb8 ./tc filter add dev eth1 parent 1:0 protocol ip prio 4 u32 match ip src 10.0.0.0/24 match ip dst 20.0.0.1/32 match ip protocol 17 0xff match udp dst 5000 0xfff flowid 1:1 *****************Checking the configuration******************************************************* [root@localhost tc]# ./tc qdisc show dev eth1 qdisc dsmark 1: indices 0x0040 [root@localhost tc]# ./tc class show dev eth1 class dsmark 1:1 parent 1: mask 0x03 value 0xb8 class dsmark 1:1 parent 1: mask 0x03 value 0xb8 [root@localhost tc]# ./tc filter show dev eth1 filter parent 1: protocol ip pref 4 u32 filter parent 1: protocol ip pref 4 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 4 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:1 match 0a000000/ffffff00 at 12 match 14000001/ffffffff at 16 match 00110000/00ff0000 at 8 match 00000388/00000fff at nexthdr+0 [root@localhost tc]# **************************************************************************** **************************** This are the packets being captured at my core device using tcpdump (taplap=20.0.0.1): *****************TCPDUMP Packets captured******************************************************* [root@localhost root]# tcpdump -x -X -s0 -i eth0 "port 5000" tcpdump: listening on eth0 19:46:43.609887 172.16.50.1.1035 > taplab.5000: udp 64 (DF) 0x0000 4500 005c 0000 4000 4011 487f ac10 3201 E..\..@.@.H...2. 0x0010 1400 0001 040b 1388 0048 4ce3 0000 00c4 .........HL..... 0x0020 3cf5 2213 0009 4ac4 0000 0001 1400 0001 <."...J......... 0x0030 0437 6820 0437 6820 ffff fc19 0000 0000 .7h..7h......... 0x0040 04ed ffbf 1084 0040 0000 0000 0000 0000 .......@........ 0x0050 0000 0000 0000 0000 0000 0000 ............ 19:46:43.609887 172.16.50.1.1035 > taplab.5000: udp 64 (DF) 0x0000 4500 005c 0000 4000 4011 487f ac10 3201 E..\..@.@.H...2. 0x0010 1400 0001 040b 1388 0048 4cc9 0000 00c5 .........HL..... 0x0020 3cf5 2213 0009 4add 0000 0001 1400 0001 <."...J......... 0x0030 0437 6820 0437 6820 ffff fc19 0000 0000 .7h..7h......... 0x0040 04ed ffbf 1084 0040 0000 0000 0000 0000 .......@........ 0x0050 0000 0000 0000 0000 0000 0000 **************************************************************************** ******************************