cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
525
Views
5
Helpful
1
Replies

Quoality of service in the LAN for SIP traffic

sonacolombia
Level 1
Level 1

Hi

I have a customer who has some sip opensource pbx with softphones and the LAN is cisco. The customer asked me to mark the packets in the LAN so the ISP can make the quality of service in the wan

So i did the next:

First i did this (dont think that was necesary but i did anyway)

(config)#mls qos map cos-dscp 0 8 16 26 32 46 48 56

Then for all the ports who has a pc with a softphone connected to the lan i did this:

CAT2960(config)#ip access list extended SIP_VOICE
CAT2960(config-ext-nacl)# permit udp any any range 10000 20000
CAT2960(config-ext-nacl)#
CAT2960(config-ext-nacl)#ip access list extended SIP_SIGNALING
CAT2960(config-ext-nacl)# permit udp any any eq 4569
CAT2960(config-ext-nacl)# permit udp any any eq 5036
CAT2960(config-ext-nacl)# permit udp any any eq 5060
CAT2960(config-ext-nacl)# permit udp any any eq 5061
CAT2960(config-ext-nacl)# permit udp any any eq 5082

CAT2960(config)#class-map match-all SIP_VOICE
CAT2960(config-cmap)# match access-group name SIP_VOICE
CAT2960(config-cmap)#class-map match-all SIP_SIGNALING
CAT2960(config-cmap)# match access-group name SIP_SIGNALING
CAT2960(config-cmap)#exit

CAT2960(config)#policy-map SIP_SOFTPHONES
CAT2960(config-pmap)#class SIP_VOICE
CAT2960(config-pmap-c)# set ip dscp 46! Softphone VoIP marcado a DSCP EF
CAT2960(config-pmap-c)#class SIP_SIGNALING
CAT2960(config-pmap-c)# set ip dscp 24! Senalizacion marcada a DSCP CS3
CAT2960(config-pmap-c)#class class-default
CAT2960(config-pmap-c)# set ip dscp 0

CAT2960(config)#interface GigabitEthernet0/1
CAT2960(config-if)# service-policy input SIP_SOFTPHONES

I apply the policy in all ports who has a PC with a softphone.

Finally I applies the commando auto qos voip trust to all the switches connectted to other cisco switches or routers and that's it

Now im going to ask to the service provider that watches the voice marked with dscp 46 and the signaling with dscp 24.

The question would be if you think that domething is missing  or if it is ok.

Thank you

J.

1 Reply 1

Shashank Singh
Cisco Employee
Cisco Employee

Hi Jose,

This looks perfect.Just one suggestion. "auto qos voip trust" is supposed to be done on interfaces conencting the IP phones/hosts and not on the uplinks to other switches.

As you are already marking the traffic using the service policy on the interfaces connecting the phones, there is no need to apply "auto qos voip trust" again on these interfaces.

For the uplinks to other switches, just "mls qos trust dscp" should be good enough. Please ensure that you trust dscp on each and every uplink of each and every switch on your LAN to prevent it getting rewritten before it reaches your WAN..

Please rate if this helped answer your query.

Regards,

Shashank

Review Cisco Networking for a $25 gift card