05-04-2017 11:57 PM - edited 03-08-2019 10:27 AM
Hi
I have a 3750G switch with a port that I have setup qos on that is set for dscp but doesn't show any dscp stats
interface FastEthernet1/0/2
description Pegasus-NextDC Interface
switchport access vlan 1001
switchport mode dot1q-tunnel
srr-queue bandwidth share 1 30 60 5
srr-queue bandwidth shape 10 0 0 0
srr-queue bandwidth limit 20
queue-set 2
priority-queue out
mls qos trust dscp
l2protocol-tunnel cdp
l2protocol-tunnel vtp
no cdp enable
MSA-nextDC-Interface#show mls qos int fast 1/0/2
FastEthernet1/0/2
trust state: trust dscp
trust mode: trust dscp
trust enabled flag: ena
COS override: dis
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: none
qos mode: port-based
FastEthernet1/0/2 (All statistics are in packets)
dscp: incoming
-------------------------------
0 - 4 : 0 0 0 0 0
5 - 9 : 0 0 0 0 0
10 - 14 : 0 0 0 0 0
15 - 19 : 0 0 0 0 0
20 - 24 : 0 0 0 0 0
25 - 29 : 0 0 0 0 0
30 - 34 : 0 0 0 0 0
35 - 39 : 0 0 0 0 0
40 - 44 : 0 0 0 0 0
45 - 49 : 0 0 0 0 0
50 - 54 : 0 0 0 0 0
55 - 59 : 0 0 0 0 0
60 - 64 : 0 0 0 0
dscp: outgoing
-------------------------------
0 - 4 : 0 0 0 0 0
5 - 9 : 0 0 0 0 0
10 - 14 : 0 0 0 0 0
15 - 19 : 0 0 0 0 0
20 - 24 : 0 0 0 0 0
25 - 29 : 0 0 0 0 0
30 - 34 : 0 0 0 0 0
35 - 39 : 0 0 0 0 0
40 - 44 : 0 0 0 0 0
45 - 49 : 0 0 0 0 0
50 - 54 : 0 0 0 0 0
55 - 59 : 0 0 0 0 0
60 - 64 : 0 0 0 0
cos: incoming
-------------------------------
0 - 4 : 22358 0 0 0 0
5 - 7 : 0 0 0
cos: outgoing
-------------------------------
0 - 4 : 1274 0 0 116 0
5 - 7 : 20245 274 0
output queues enqueued:
queue: threshold1 threshold2 threshold3
-----------------------------------------------
queue 0: 0 0 20240
queue 1: 40 302 299
queue 2: 0 0 1577
queue 3: 0 0 0
output queues dropped:
queue: threshold1 threshold2 threshold3
-----------------------------------------------
queue 0: 0 0 0
queue 1: 0 0 0
queue 2: 0 0 0
queue 3: 0 0 0
Other ports on this switch are showing DSCP stats, just not this port.
You might ask if the packets that are passing through the port have DSCP tags, the answer is yes.
This port connects to another switch that has the following settings and results, ie dscp settings on the packets going through it
.
interface FastEthernet3/0/2
description Pegasus-20MB-Interface
switchport trunk encapsulation dot1q
switchport trunk native vlan 5
switchport trunk allowed vlan 27-30,33,97,99,132,996,997
switchport mode trunk
speed 100
srr-queue bandwidth share 1 30 60 5
srr-queue bandwidth shape 3 0 0 0
srr-queue bandwidth limit 20
queue-set 2
priority-queue out
mls qos trust dscp
macro description cisco-router | cisco-router
nextDC-3750-Internal# show mls qos int fast 3/0/2 statistics
FastEthernet3/0/2 (All statistics are in packets)
dscp: incoming
-------------------------------
0 - 4 : 1069264 0 0 0 0
5 - 9 : 0 0 0 0 0
10 - 14 : 0 0 0 0 0
15 - 19 : 0 0 0 0 0
20 - 24 : 0 0 0 0 0
25 - 29 : 0 112997 0 0 0
30 - 34 : 0 0 0 0 0
35 - 39 : 0 0 0 0 0
40 - 44 : 0 0 0 0 0
45 - 49 : 0 25225958 0 425389 0
50 - 54 : 673 0 0 0 29
55 - 59 : 0 0 0 0 0
60 - 64 : 0 0 0 0
dscp: outgoing
-------------------------------
0 - 4 : 310451 0 0 0 0
5 - 9 : 0 0 0 0 0
10 - 14 : 0 0 0 0 0
15 - 19 : 0 0 0 0 0
20 - 24 : 0 0 0 0 0
25 - 29 : 0 79530 0 0 0
30 - 34 : 0 0 0 0 0
35 - 39 : 0 0 0 0 0
40 - 44 : 0 0 0 0 0
45 - 49 : 0 25409743 0 138169 0
50 - 54 : 0 0 0 0 0
55 - 59 : 0 0 0 0 0
60 - 64 : 0 0 0 0
cos: incoming
-------------------------------
0 - 4 : 1122497 0 0 112997 0
5 - 7 : 25225958 426091 4392
cos: outgoing
-------------------------------
0 - 4 : 449196 0 0 79530 0
5 - 7 : 25409743 138169 178
output queues enqueued:
queue: threshold1 threshold2 threshold3
-----------------------------------------------
queue 0: 25410756 79530 0
queue 1: 121922 41277 1995718
queue 2: 0 0 300011
queue 3: 0 0 11537
output queues dropped:
queue: threshold1 threshold2 threshold3
-----------------------------------------------
queue 0: 0 0 0
queue 1: 0 0 0
queue 2: 0 0 1979
queue 3: 0 0 0
Policer: Inprofile: 0 OutofProfile: 0
Anyone got any ideas why this port is not using DSCP ?
Thanks in Advance
Mark
05-05-2017 12:54 AM
Hello Mark,
as I understand it (since you have the port configured as a dot1q tunnel), the frames on your port are tagged, and the switch resets the CoS value to 0, and subsequently the CoS to DSCP table sets the DSCP value to 0 as well.
You could try and change the default DSCP-to-Cos map, as in this example:
3750G(config)# mls qos map dscp-cos 16 18 24 26 to 1
3750G(config)# mls qos map dscp-cos 0 8 10 to 0
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide