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

VOIP phone QoS on Cisco infrastructure

Posted on 2011-02-14
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
  • 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?
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

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 500 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WiFi Routers with Guest Network capability 14 73
Cisco 5508 WLC software upgrade 2 71
nested esxi, NIC issues 1 31
rajdeep0081@hotmail.com 3 71
#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

809 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