Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

QoS

Direct answer

QoS classifies traffic and applies per-hop behavior such as marking, queuing, policing, shaping or congestion avoidance.

When to use this

Use it to express service intent and protect constrained resources under congestion.

First 30 seconds

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.

Operational verification

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

Evidence · next step

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.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · IOS/IOS XE
Key commandshow policy-map interface GigabitEthernet0/1
Scope / prerequisiteUse it to express service intent and protect constrained resources under congestion.
What next?3 suggested next steps
Child topics (this level)12
Evidence1
On this pageJump to a specific section
Technical verification guide · documented only

Check 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 / checkInterpretationDoes 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.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

6 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Subtopic Classification

Classification identifies traffic types (by DSCP, ACL, application, interface) so later QoS actions — marking, policing, queuing — can treat each class differently.

Subtopic Marking

Marking 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 Queuing

Queuing 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 Management

Congestion 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 Avoidance

Congestion 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 Policing

Policing 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 Shaping

Shaping 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 PHB

A 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 Map

A 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 Map

A 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 Policy

Applying 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 Verification

Verify 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.

Key points
  • QoS gives important traffic priority when links are congested.
  • It works by classifying, marking, queuing, policing and shaping.
  • QoS does not create bandwidth; it only manages it.
Key checks
  • 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:

MechanismWhat it does
Priority queueAlways served first, up to a limit; for voice
Guaranteed bandwidthA class gets at least its share during congestion
ShapingHolds traffic back to a set rate, buffering the excess
PolicingDrops 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

StepCommandPurpose
1. Classifyclass-map [match-any | match-all] NAMEWhich traffic
2. Define policypolicy-map NAME with class entriesWhat to do (queue, police, shape, mark)
3. Applyservice-policy {input | output} NAMEWhere
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

FunctionMQC actions
Classification and markingmatch ..., set dscp, set cos, set qos-group
Queuingpriority, bandwidth, fair-queue, queue-limit
Congestion avoidancerandom-detect
Rate controlpolice, shape
Dropdrop

Rules from the guide

RuleDetail
One class per packetThe first matching class in the policy applies
class-defaultCatches unclassified traffic; without configuration it's FIFO with tail drop
One policy per directionOne input and one output policy per interface
No queuing inboundPolicing and marking only on input
Hierarchical policiesA 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2475

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%
2026-09-13 · vendor docCisco IOS XE current

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%
Terminology layer

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.

Aliases that resolve here
quality of serviceMQCDSCP queuing policing shaping
Embedded reference data

Quick lookup tables

QoS evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show policy-map interfaceremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?packet fields → classification → marking → ingress/egress policy → queue/police/shape → interface transmissionapplication success

QoS · reference boundaries

Compact technical reference for the most important state and interpretation boundaries.

QoS functionPrimary purpose
ClassificationIdentify traffic class
MarkingCarry class intent (for example DSCP/CoS)
QueuingDecide service order under contention
PolicingEnforce rate by dropping/remarking excess
ShapingBuffer/delay traffic toward a target rate
Confirmation

Confirm action

Continue?