Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


VOIP phone QoS on Cisco infrastructure

Posted on 2011-02-14
Medium Priority
Last Modified: 2012-05-11
We are a 100% Cisco shop. Curently, we have no qos running on our infrastructure.

We will be deploying phones in the near future, what is the easiest / best way to implement QoS for the phones that we will be deploying?

How is QoS configured / deployed on a Cisco infrastructure?

What considerations should be made?
Question by:c-h-r-i-s-t-o-p-h
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
  • +1

Author Comment

ID: 34889813
Also, I plan on splitting the phone traffic into seperate VLANs for QoS.
LVL 12

Expert Comment

ID: 34892369
autoqos is your best bet. its simple and almost requires no work.

on your trunk links use the command "auto qos voip trust" and for access ports use "auto qos voip trust cisco-phone"

Here are some videos:

Auto Qos on routers:

Auto QoS on switches:

Author Comment

ID: 34892494
My mistake. Our router / switch infrastructure is 100% Cisco.

However, we are going with the Avaya VOIP solution.

Will this affect the config?
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

LVL 12

Expert Comment

ID: 34892882
Yes, im not familiar with the way avaya works with qos.

The trunk link commands are still the same but the access ports won't be dynamic. You would have to extend trust to those ports that have phones. With Cisco phones, trust is handed to the phone when it is detected through CDP.

Accepted Solution

AnthonyHamon earned 2000 total points
ID: 34895977
There is a school of thought that in a fully switched 100Mbit/s network, you do not need QoS, however, I strongly disagree with this.  Whilst under normal circumstances, it is probably true, that QoS would not be required, if the network is heavily utilised (large file transfers etc.), your voice traffic would be impacted.

VLANs to separate voice and data traffic is highly recommended.  You need to consider your VLAN design - I normally have one voice VLAN per building or per floor if your buildings are very large.  I keep these to /24 networks for manageability.  Voice VLANs are defined in the normal manner, however, for access ports connecting to a telephone you use the following commands:
switchport access vlan <data vlan number>
switchport vlan voice <voice vlan number>
switchport mode access

I am not sure about Avaya, however, Cisco telephones detect the voice VLAN that they should use via CDP, other vendors use LLDP (an open standards variant of CDP), or, some (such as Mitel) obtain this information via DHCP options.  You will need to check the Avaya documentation to establish which applies.

If you are not using Cisco phones, on each port connecting to a telephone, you need trust the QoS markings that the phone uses to mark the packets for priority treatment, using:
mls qos trust cos
This assumes the handset uses CoS marking.  If it uses DSCP marking, you need to use:
mls qos trust dscp

As for the other QoS commands, there is a global section that defines your queues, CoS to DSCP mapping tables etc.  and some commands for each interface connecting to an IP handset.  If you explain more about your network, I can give you some specific information about this.

You need to consider low bandwidth links carefully, and, if necessary implement CAC (call access control) so that it is not possible to place more calls on that link that it can manage (otherwise all calls on this link would degrade).  If all of your links are 100Mbit/s or above you are unlikely to need to consider this.

Any Cisco routers in your infrastrucrture will need to use policy maps to prioritise the voice traffic, if, you are only using layer3 switches, you do not need to worry about this.

I hope this is of some help.
LVL 12

Expert Comment

ID: 34901848
Here is an example of policy maps on your routers, just to augment Anthony's comment

policy-map MPLS_QOS
    priority percent 40
  set ip precedence 7
    priority percent 30
  set ip precedence 6
 class class-default
LVL 12

Expert Comment

ID: 34902034
I have to disagree with atrevido.

It's not a good idea to mark any traffic higher than 5. 6 and 7 are used for network and internetwork control.

Author Comment

ID: 34907609
This is good information. I have been involved in Cisco VOIP deployments in the past, but this will be my first run with Avaya.

I am familiar with the access vlan & vlan voice config.

Avaya uses DHCP to tell the phones which vlan is for voip traffic.

We have Cisco routers at the heart / along the backbone of our network.

We also plan to use several voice vlans. Lately, I have been wondering what sort of configuration would be required at the core of the network in order to provide qos to multiple voice vlans.


I am assuming that the config that you're describing can be applied in a blanket config on all access ports. And then the switch will apply this config only to the voice vlans in question. Is this accurate?

Expert Comment

ID: 34918125
Yes, the configuration can be applied to all access ports (using the interface range command).  If, however, you have servers connected to some of the access ports, I recommend that you do not apply a voice VLAN to those: this is a security best practice.
I am not sure what you mean by 'And then the switch will apply this config only to the voice vlans in question' - please could you clarify?

At the core of your network (routers rather than multilayer switches in your case, if I understand correctly?), you need to configure class maps (to classify traffic) and policy maps to specify what proportion of the bandwidth each type of classified traffic will receive.  If you do not implement QoS at the core, QoS markings can be lost for traffic passing through the core, and, therefore, voice traffic will be delivered 'best effort' for the final leg of its journey.

Author Comment

ID: 34955332
Meaning that I can apply this config at a global level. And after that, the switch will ignore the config for standard data traffic (vlans). However, the switch will activate the config for standard voice traffic (vlans).

Expert Comment

ID: 34972327
Yes, the global QoS configuration allocates frames to queues based on their CoS (class of service) marking.  So, a data frame will gererally have a CoS value of 0 (best effort), but your voice media frames will have a CoS value of 5 (and signalling frames will have a CoS value of 3).  These will be given preferential service in accordance with the global QoS configuration.

Author Comment

ID: 34973556
I understand how the qos is set at the edge, and what the function is.

I guess that i'm not understanding how the qos travels across the network or is passed from edge to core?

what would an example qos config be for edge, trunk, and core?

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
Why do some people recommend buying business VoIP from an ISP? What are the benefits to my company? What are the costs?
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question