Use it to express service intent and protect constrained resources under congestion.
QoS
QoS classifies traffic and applies per-hop behavior such as marking, queuing, policing, shaping or congestion avoidance.
1. show policy-map interface <if> — policy attached in the right direction (usually output on the congested link)?
2. Voice/video class matching packets? No → marking wrong upstream or class-map wrong.
3. Drops in the priority class → priority too small or policed.
4. Drops in default only → expected under congestion.
5. Marking trusted at the edge? Check DSCP in a capture.
traffic classified at the edge → marked with DSCP → trusted along the path → queued by class on congested interfaces → priority for voice, bandwidth for business data, drops in best effort
1. Define trust boundary and traffic classes.
2. Verify class-map matches.
3. Verify policy actions.
4. Confirm service-policy interface/direction.
5. Generate representative load and read offered/drop/queue counters.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show policy-map interface GigabitEthernet0/1Check the correct boundary
Class-map, attached service policy, traffic match and queue/policing statistics must be checked on the actual interface and direction.
IOS/IOS XE Modular QoS CLI; output and ASIC counters vary by hardware and software release. Record test interval and offered load.
| Read-only example / check | Interpretation | Does not prove |
|---|---|---|
show policy-map <policy-name>
|
Configured classes and policy actions | Does not prove the policy is attached or handling traffic |
show policy-map interface <interface>
|
Applied policy, class counters, queueing and drop/police statistics where supported | Counters can be stale or aggregated and do not prove application quality by themselves |
Official documentation
Documentation reviewed 12 October 2026. These are explanatory reference examples, not observed production state, captured Evidence, or a new stored verification event. Confirm exact software release and scope on the device.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 First 30 seconds Verify boundary
Immediate answer: Verify class-map match, policy action, service-policy attachment/direction and counter deltas under representative load.
Verification chain: Packet fields → classification → policy attachment → queue/police/shape → interface transmission → service result
Stop condition: A policy-map definition does not show attachment, matching traffic or congestion.
Step 2 Reading QoS counters Verify boundary
show policy-map interface GigabitEthernet0/1
show policy-map
show class-map
show interfaces GigabitEthernet0/1 | include rate|drops
show policy-map interface shows, per class, packets matched, the offered rate and drops; for the priority class, whether its limit has been exceeded. The other two show the definitions. The interface counters give the total rate and output drops.
Ask three questions in order: is the traffic being classified into the intended class (match counters rising), is this interface where congestion occurs (any drops at all), and which classes take the drops.
Known-good: delay-sensitive traffic is counted in its class without drops, and during congestion the drops fall on the classes meant to yield.
Step 3 Verification and output interpretation Verify boundary
Use show policy-map interface to confirm the policy is attached at the expected interface/direction and to inspect class packet/byte counters, rates, queue/drop behavior and police/shape statistics. Generate or observe traffic with a known classification and verify it increments the intended class rather than class-default. For marking, inspect the packet or downstream classification if you need evidence that DSCP/CoS survived beyond the policy point. Interpret counters as deltas over a known time/workload; large lifetime counters without a baseline are weak evidence of current behavior.
Step 4 Step-by-step troubleshooting Narrow the fault
Boundary rule: A policy-map definition does not show attachment, matching traffic or congestion.
Step 5 Branching troubleshooting Narrow the fault
Path: Networking → IP Services → QoS. Local intent: QoS: Classification, Marking, CoS, DSCP.
Step 6 Where it fails Narrow the fault
Do not infer root cause from one symptom. Packet loss can be physical, L2, routing, policy, NAT, QoS or application-facing; an absent route can originate from adjacency, origination, filtering, best-path or installation; a healthy route does not show adjacency resolution or return path.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
Classification identifies traffic types (by DSCP, ACL, application, interface) so later QoS actions — marking, policing, queuing — can treat each class differently.
Subtopic MarkingMarking writes a QoS value into the packet or frame (DSCP in the IP header, CoS in the 802.1Q tag) so downstream devices can classify it quickly; see CoS and DSCP.
Subtopic QueuingQueuing holds packets when an interface is congested and schedules which class is sent next; on IOS this is typically LLQ (strict priority) plus CBWFQ (guaranteed bandwidth per class).
Subtopic Congestion ManagementCongestion management is queuing and scheduling on a congested egress interface — for example LLQ priority for voice plus CBWFQ bandwidth guarantees for other classes.
Subtopic Congestion AvoidanceCongestion avoidance drops some packets early as a queue fills, for example with WRED, so TCP senders slow down before the queue overflows and drops everything (tail drop).
Subtopic PolicingPolicing enforces a rate limit by dropping or re-marking traffic that exceeds it, without buffering; it is used inbound or to enforce contracts and does not delay conforming packets.
Subtopic ShapingShaping buffers traffic that exceeds a configured rate and sends it later, smoothing bursts to match a slower provider rate (for example a 100 Mbps circuit on a 1 Gbps port).
Subtopic PHBA Per-Hop Behavior (PHB) is the forwarding treatment a DSCP value requests at each hop: EF for low-latency voice, AF classes with drop precedence, CS for class selectors, and default best effort.
Subtopic Class MapA class-map defines which traffic belongs to a class, using match criteria such as DSCP, ACL, protocol (NBAR) or CoS, with match-any or match-all logic.
Subtopic Policy MapA policy-map ties classes to actions — priority, bandwidth, shape, police, set dscp — and becomes active only when attached to an interface with service-policy.
Subtopic Apply PolicyApplying a QoS policy attaches a policy-map to an interface with service-policy input|output <name>; marking and policing are usually inbound, queuing and shaping outbound.
Subtopic VerificationVerify QoS with show policy-map interface <if>: check that the policy is attached in the right direction and that class counters, queue depth and drops move as expected under load.
show policy-map interface <if>— per-class matches, queue depth and drops.show class-map— how classes are matched (DSCP, ACL, NBAR).show policy-map <name>— actions per class (priority, bandwidth, police, shape).show interfaces <if> | include drops|rate— total output drops and load.show mls qos interface <if>/show platform hardware fed switch active qos queue stats interface <if>— switch queues (platform-specific).
ReferenceHow it works1 section · depth on demand
How QoS works
QoS has three stages.
Classify. Sort packets into classes — voice, video, business applications, everything else — by their existing markings, by addresses and ports, or by application.
Mark. Record the class in the packet so that devices further on do not have to classify again: the DSCP field in the IP header (EF for voice, for example) or, on trunks, the CoS bits in the VLAN tag. Marking happens as close to the source as possible, and markings from devices that are not trusted are overwritten.
Act. At an interface where traffic queues up:
| Mechanism | What it does |
|---|---|
| Priority queue | Always served first, up to a limit; for voice |
| Guaranteed bandwidth | A class gets at least its share during congestion |
| Shaping | Holds traffic back to a set rate, buffering the excess |
| Policing | Drops or re-marks traffic above a set rate immediately |
On Cisco routers the three parts of the configuration mirror this: class-map (which traffic), policy-map (what to do with each class), service-policy (on which interface and direction).
Two principles.
- QoS acts only where there is congestion. Queuing does nothing on an interface that is never full. The place to apply it is the outbound side of the slowest link on the path — typically the WAN edge.
- It has to hold end to end. One device that ignores or resets the markings undoes the treatment for everything beyond it.
Where a provider delivers less than the port speed, the router does not see congestion on its own interface; shaping to the contracted rate creates the queue in which the policy can work.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
QoS with the Modular QoS CLI (MQC)
Cisco IOS XE configures QoS with the Modular QoS CLI. The QoS guide describes three entities: a class map defines a traffic class, a policy map defines what to do with each class, and a service policy attaches the policy map to an interface, inbound or outbound.
The three steps
| Step | Command | Purpose |
|---|---|---|
| 1. Classify | class-map [match-any | match-all] NAME | Which traffic |
| 2. Define policy | policy-map NAME with class entries | What to do (queue, police, shape, mark) |
| 3. Apply | service-policy {input | output} NAME | Where |
R1(config)# class-map match-any VOICE
R1(config-cmap)# match dscp ef
R1(config)# class-map match-any VIDEO
R1(config-cmap)# match dscp af41
R1(config)# policy-map WAN-OUT
R1(config-pmap)# class VOICE
R1(config-pmap-c)# priority percent 20
R1(config-pmap)# class VIDEO
R1(config-pmap-c)# bandwidth percent 30
R1(config-pmap)# class class-default
R1(config-pmap-c)# fair-queue
R1(config)# interface GigabitEthernet0/0/0
R1(config-if)# service-policy output WAN-OUT
QoS tools by function
| Function | MQC actions |
|---|---|
| Classification and marking | match ..., set dscp, set cos, set qos-group |
| Queuing | priority, bandwidth, fair-queue, queue-limit |
| Congestion avoidance | random-detect |
| Rate control | police, shape |
| Drop | drop |
Rules from the guide
| Rule | Detail |
|---|---|
| One class per packet | The first matching class in the policy applies |
| class-default | Catches unclassified traffic; without configuration it's FIFO with tail drop |
| One policy per direction | One input and one output policy per interface |
| No queuing inbound | Policing and marking only on input |
| Hierarchical policies | A child policy nested under a parent class (shape the parent, prioritise inside) |
Where QoS matters
Queuing only helps where there's congestion: WAN links, Internet uplinks, oversubscribed access uplinks and Wi-Fi. Mark at the edge, trust inside, queue at bottlenecks.
Documented example, not captured output.
Concept and state model
QoS is a pipeline of decisions rather than one feature. Classification identifies traffic, marking records a class signal such as DSCP or CoS, queuing schedules packets during contention, congestion avoidance can drop/mark before hard queue exhaustion, policing enforces a rate by dropping or remarking excess traffic, and shaping buffers/delays traffic toward a configured rate. Trust boundaries decide whether incoming markings are accepted or rewritten. These behaviors only become materially visible at the policy point where they are applied; a DSCP marking can survive multiple hops while each device makes an independent local queuing decision.
Operational boundaries and common misconceptions
A class counter increment shows local classification at that policy point, not end-to-end application quality. Zero drops do not show adequate latency or jitter, and drops do not automatically mean the QoS policy is wrong—congestion can be the intended condition the policy is managing. DSCP values have no universal performance guarantee without consistent treatment across the path. Policing and shaping both enforce rates but have different packet behavior; treating them as interchangeable can produce very different application outcomes.
ReferenceConfiguration & state1 section · depth on demand
Configuration model and design choices
Use class maps to define traffic classes, policy maps to define actions and service-policy to attach the policy in the intended direction. Classification rules should be specific enough to be explainable, and marking should have an end-to-end design so downstream devices know what to do with the value. Reserve strict-priority treatment for traffic that truly requires it and bound it to prevent starvation. Choose policing when excess traffic should be dropped/remarked immediately and shaping when buffering to a target rate is appropriate. The platform’s queue architecture and available actions are finite; policy design must fit the actual interface/hardware model.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → QoS. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%Official Cisco vendor documentation reviewed for bounded reference claims: MQC class-map, policy-map, service-policy and counters. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.
Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios-xe/quality-of-service/quality-of-service/m_qos-apply.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
QoS evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show policy-map interface | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | packet fields → classification → marking → ingress/egress policy → queue/police/shape → interface transmission | application success |
QoS · reference boundaries
Compact technical reference for the most important state and interpretation boundaries.
| QoS function | Primary purpose |
|---|---|
| Classification | Identify traffic class |
| Marking | Carry class intent (for example DSCP/CoS) |
| Queuing | Decide service order under contention |
| Policing | Enforce rate by dropping/remarking excess |
| Shaping | Buffer/delay traffic toward a target rate |