Guide
Quality of service: voice VLANs, classification, marking, queuing and policing (CCNA and CCNP)
Quality of service (QoS) classifies traffic and applies local forwarding treatment to manage contention and rate limits. This guide covers Cisco voice VLANs and the core QoS design concepts used in CCNA and CCNP questions.
2 parts · 24 practice questions
Voice VLANs and QoS foundations
An access switch port can carry a PC's untagged data traffic in its access VLAN and an IP phone's tagged voice traffic in a separately configured voice VLAN. This access-plus-voice arrangement does not make the port a general trunk carrying every VLAN. The voice VLAN separates the phone's addressing and broadcast domain and lets policy identify voice traffic for QoS.
- CoS values
- 0 through 7
- DSCP range
- 0 through 63
- EF DSCP
- 46
- EF binary
- 101110
The switch can use CDP to tell a Cisco IP phone about the voice VLAN and exchange device information. CDP must be enabled for this CDP-based discovery method. A phone can also use its own configuration where supported. To troubleshoot power delivery, show power inline reports PoE status, device type, IEEE class, and power information per port; it is not a QoS command.
On an 802.1Q trunk, frames in the configured native VLAN are sent untagged when native VLAN tagging is disabled. Other carried VLANs, such as a voice VLAN, are tagged. This is a result of the trunk's native VLAN configuration, not a rule that data VLANs must always be native. In Catalyst IOS XE Layer 3 subinterface routing, encapsulation dot1q <vlan-id> associates a VLAN ID with a routed subinterface. Cisco IOS XE DHCP configuration uses option 150 to provide a TFTP server address, while default-router provides the gateway address. This identifies the TFTP address but does not mean every phone requires option 150.
QoS classification identifies traffic groups from packet or frame fields such as DSCP, CoS, addresses, or ports. Classification selects a policy treatment; by itself it neither edits the packet nor guarantees bandwidth. Marking writes or changes a traffic-class indicator, commonly DSCP in the IP header or CoS in the 802.1Q tag. Downstream devices can use a mark in their own per-hop policy, but may trust, rewrite, or ignore it. A marking is not a reservation, a guarantee against drops, or an instruction that every device must accept the packet.
CoS is a 3-bit Layer 2 priority field in the 802.1Q tag, with values 0 through 7. DSCP is a 6-bit Layer 3 value in the IP Differentiated Services field, historically called the ToS byte; it ranges from 0 through 63. A switch may map between them, but they are in different headers and have different scopes. EF is DSCP 46, binary 101110; Cisco's Catalyst QoS guide uses EF in a voice traffic example. The marking identifies a class, while the configured per-hop policy determines its treatment. EF is not reserved exclusively for voice.
Queuing and scheduling determine which traffic transmits when output traffic contends for a link or buffer. Without contention, competing queues do not materially change which packet goes next. QoS allocates existing resources; it does not add link capacity. A low-latency priority queue can reduce delay for its admitted traffic, but it must be bounded or policed so sustained priority traffic cannot consume the link and starve other classes.
A QoS trust boundary is where received markings are accepted as credible. Catalyst IOS XE supports configuring the access port to trust Cisco IP phone traffic; apply the appropriate trust or marking policy at the edge and treat traffic from untrusted attached devices according to policy. Otherwise an endpoint could mark ordinary traffic as high priority and claim preferential queuing. Exact trust configuration depends on the Catalyst model and software.
When a phone does not join the expected voice VLAN, check the access and voice VLAN assignments, that the VLAN exists and is carried on the uplink, and that the phone can receive its VLAN discovery method. For a router-on-a-stick design, check the subinterface's dot1q VLAN ID against the switch trunk and subnet. For phone provisioning, check its voice-VLAN DHCP scope and configured TFTP details, including option 150 when that phone deployment uses it. For no power, inspect show power inline and the platform's PoE budget. For unexpected priority, inspect ingress trust or marking policy and the actual DSCP or CoS value; a VLAN assignment alone does not guarantee QoS treatment.
interface GigabitEthernet1/0/10
switchport mode access
switchport access vlan 100
switchport voice vlan 101
!
interface GigabitEthernet0/0.101
encapsulation dot1q 101
ip address 192.0.2.1 255.255.255.0
!
ip dhcp pool VOICE
option 150 ip 192.0.2.10References (5)
- Catalyst 9300 IOS XE 26.x VLAN Configuration Guide: Voice VLANs
- Catalyst 9300 IOS XE 26.x Interface and Hardware Configuration Guide: PoE
- Catalyst 9300 IOS XE 17.11 VLAN Configuration Guide: Native VLANs
- Catalyst 9300 IOS XE 17.12 VLAN Configuration Guide: Layer 3 Subinterfaces
- Catalyst 9200 IOS XE 26.x System Management Configuration Guide: DHCP Option 150
QoS design: marking, queues, policing and shaping
Cisco's QoS model classifies traffic, assigns or preserves a QoS label, applies policing and marking where configured, then queues and schedules packets when resources contend. Platform features and defaults differ, so never infer that a class is trusted, prioritized, or policed without checking the device configuration and its platform guide.
Policing or shaping: follow the same burst
Packets 1–2 fit the allowance. Packets 3–4 are excess. Numbers identify packets; timing is illustrative.
Step 1 of 4
One burst enters a policer and a shaper
The top path tests a policer; the bottom path tests a shaper. These are separate examples receiving an identical burst of four equal-size packets. Each policy has enough tokens for two packets now, and both use the same configured rate.
More detail for this step
Compare the policer and shaper
- QoS means quality of service. It controls how existing link capacity is shared or limited; it does not make the link faster.
- A token bucket tracks how much data a policy will allow now. Each packet needs enough tokens for its size.
- The policer (top path) and shaper (bottom path) receive identical packets. Green packets 1 and 2 fit the allowance; yellow packets 3 and 4 exceed it.
Read the caption, follow the highlighted action, then see its result. Pause or step through at your own pace.
- EF DSCP
- 46
- EF bits
- 101110
- Committed rate
- CIR
- Committed burst
- Bc
EF is DSCP 46, whose six bits are 101110. DSCP uses the six most significant bits of the IP Differentiated Services field. Cisco's Catalyst QoS guide shows EF in an Auto-QoS priority queue example, but EF is not reserved exclusively for voice. A DSCP marking communicates a class; the configured per-hop policy determines treatment, and the mark alone does not guarantee delay or loss.
Policing measures a traffic rate with token buckets and enforces a configured profile. If a packet lacks the required tokens, configured actions can drop it or remark it to a lower class; a policer does not buffer the packet to wait for tokens. Cisco IOS XE class-based policing can be applied inbound or outbound where the platform supports it. Shaping instead queues packets that exceed the immediate token allowance and releases them later to smooth the output rate. It adds delay and uses finite buffers, so packets can still be dropped if buffers fill. Cisco IOS XE class-based traffic shaping is an egress treatment; verify direction and support for the specific platform and feature.
In a token bucket, CIR is the committed information rate and Bc is the committed burst size. In the Catalyst 4500 two-rate policing command reference, Tc is the token bucket updated at CIR and its capacity is Bc; Tp is updated at PIR and its capacity is Be, the peak burst. For Cisco's RFC 2697 two-token bucket policing model, Bc is the normal burst allowance and Be is the excess burst allowance. Catalyst 9300 IOS XE supports dual-rate three-color policing with CIR and PIR buckets, classifying packets as conforming, exceeding, or violating, but does not support single-rate three-color policing. These classifications do not force a packet outcome: the policy configures whether out-of-profile traffic is transmitted, remarked, or dropped. Check the specific platform guide before assuming support.
TCAM, or ternary content-addressable memory, stores and queries entries that can match 0, 1, or X (don't-care). Catalyst QoS uses TCAM to store classification rules. Cisco documents Catalyst 6500/6000 TCAM ACL evaluation as a hardware lookup, and says multiple TCAMs can evaluate QoS ACLs simultaneously or in parallel with forwarding. On Catalyst 9000 platforms, Cisco describes TCAM as high-speed memory that searches its contents in a single clock cycle. TCAM is a lookup resource, not a traffic queue or QoS marking. Capacity and implementation vary by Catalyst family.
For troubleshooting a rate policy, confirm the class match, policy attachment and direction, CIR/PIR and burst values, and the configured conform/exceed/violate actions. Check counters and packet markings on both sides of the policy. If excess traffic disappears at once, inspect policing and its drop action; if it is delayed and later released, inspect shaping and its queue. For a priority class that harms other traffic, check its configured rate bound and offered load. For a DSCP value that does not produce expected treatment, check whether each hop trusts or rewrites that value and how it maps to queues.
class-map match-any VOICE
match ip dscp ef
!
policy-map WAN-OUT
class VOICE
priority percent 10
!
interface GigabitEthernet0/0
service-policy output WAN-OUTReferences (5)
Check your understanding
Quality of service: voice VLANs, classification, marking, queuing and policing (CCNA and CCNP)
All 2 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.