10-19-2019 10:49 PM
Hello,
I have a cisco 2960 and I'm trying to set up QoS on it for my Voip Traffic. We are using a Voip softphone software as our voip device. I have enabled the command "mls qos trust dscp" on the access ports going to the softphones, however when I do "show mls qos interface <interface#> statistics" on the access ports I don't see any hot counts on EF or on DSCP 46 for the voice traffic.
#show mls qos interface gigabitEthernet 1/0/15 statistics
GigabitEthernet1/0/15 (All statistics are in packets)
dscp: incoming
-------------------------------
0 - 4 : 2534093 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 7439 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 : 4065089 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 25654 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 : 2743230 0 14 0 6
5 - 7 : 5 7439 179338
Is this normal or should i be seeing hit counts on the interface for EF or dscp 46 traffic? Is there any command missing on my access ports that I need to add ?
Thanks
Solved! Go to Solution.
10-20-2019 06:22 AM
10-20-2019 01:11 AM
Hi,
Can you check for a command:
service-policy input AutoQoS-Police-SoftPhone
10-20-2019 04:26 AM
I did not Use any autoQoS command under my access ports that are connected to the softphones - The soft phones are from another vendor and they are not Cisco -
The only commands under my access ports are :
interface GigabitEthernet1/0/15
switchport access vlan 110
switchport mode access
switchport voice vlan dot1p
mls qos trust dscp
spanning-tree portfast edge
end
And on my uplinks I have the Command :
mls qos trust cos
auto qos trust
10-20-2019 06:41 AM
Hello,
what brand/model are your IP phones ? I seem to remember that Polycom does recognize CDP, so the interface command 'auto qos voip cisco-phone' should work...
Otherwise, what if you configure 'auto qos voip trust' on the interfaces ?
10-20-2019 10:40 PM
The Brand of softphone that I'm using is "MicroSIP" , and I have tried using the "auto qos voip trust" command under the interface and it didn't help either.
10-20-2019 01:34 AM
Hello,
make sure your switch is running the LAN Base and not the Lite image. The command 'sh ver' should show something like the below:
2960#sh ver | i LAN
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 12.2(55)SE1, RELEASE SOFTWARE (fc1)
Also, make sure the switchport configuration looks similar to this:
interface FastEthernet0/2
switchport access vlan 10
switchport mode access
mls qos trust dscp
auto qos trust dscp
spanning-tree portfast
10-20-2019 04:28 AM
10-20-2019 06:22 AM
10-20-2019 10:44 PM
Yes, there are other traffic other than the VoIP on that port and as you mentioned I did try to tag the traffic on the switch port, but I'm still getting the same results!!!
class-map match-all VOIP
match access-group name VOIP
!
policy-map VOIP
class VOIP
set ip dscp ef
!
ip access-list extended VOIP
permit udp any any eq 5060
permit udp any any range 4000 4090
10-21-2019 04:02 AM
10-21-2019 09:58 PM
Yes , I did apply it as an ingress policy to the switch port. The problem is that I am not seeing any matches on the access port either.
I did a capture with WireShark and the phone was using the ports I used on the access list, but still there is no match.
Just to make sure , I even added these commands on the access list as well:
# #show ip access-lists VOIP
Extended IP access list VOIP
50 permit tcp any any eq www
60 permit tcp any any eq 443
But still when I open up some web pages the matches are not showing. Is this a IOS bug or something?
Thanks
Soroush
10-22-2019 09:29 AM
10-23-2019 01:29 AM
That's right, seems like ACL's will only show hit counts if the traffic is processed in the software, but if the traffic is processed in the hardware there will be not matches showing on the ACLS:
https://community.cisco.com/t5/switching/access-list-hit-counts/td-p/2464226
I did a capture after adding the ingress service policy and now the traffic is being marked as EF.
Thanks for your help Joseph, really appreciate it.
10-22-2019 02:56 AM
Hello,
out of curiosity I looked at the manual for the MicroSip softphones, it doesn't look like they do any sort of CoS or DSCP marking. They use UDP port 5060 by default...what if you change the access list to:
ip access-list extended VOIP
permit udp any eq 5060 any
permit udp any any range 4000 4090
10-22-2019 03:52 AM
There is still no match count after I made the changes - Even http and https traffic is not showing any match count, while i'm using that exact port to go through the internet - :
Extended IP access list VOIP
30 permit udp any any range 4000 4090
70 permit udp any eq 5060 any
80 permit tcp any eq www any
90 permit tcp any eq 443 any
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