Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Policy Map

Direct answer

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.

When to use this

Use it when defining or checking what each QoS class gets: priority, bandwidth, shaping, policing or marking.

First 30 seconds

1. A policy-map assigns actions to classes (priority, bandwidth, police, shape, set).

2. Order matters.

3. class-default for unmatched.

4. Hierarchical for shaping parents.

5. Test counters after applying.

Operational verification

class-maps → policy-map actions → service-policy

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 · Cisco IOS / IOS XE
Key commandpolicy-map <name>
Scope / prerequisiteUse it when defining or checking what each QoS class gets: priority, bandwidth, shaping, policing or marking.
Show · 1Reference · 9
What next?3 suggested next steps
Catalog command links10
Evidence0
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

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

4 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 Verification and what it shows Verify boundary

Read the applied service-policy, verify class and action counters with a controlled flow, and compare offered/drop/queue rates to the intended policy. Re-run the original workload after adjustment. Policy-map configuration does not show hardware programming or downstream QoS behavior; effective counters and end-to-end observation are separate evidence.

Step 2 Verification and output interpretation Verify boundary

Inspect the policy definition and then the applied policy on the actual interface/direction. Read offered rate, packet/byte counters, queue depth/drops, policing conformance/exceed counters or shaping state as appropriate. Interpret those numbers relative to interface load and time: queue drops under sustained congestion mean something different from zero drops on an idle link. Correlate marking changes with packet captures or downstream trust behavior when marking is the intended action.

Step 3 Verification & troubleshooting Narrow the fault

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.

Step 4 Observation → implication → next check Narrow the fault

Observation → implication → next check: no service-policy counters move first to attachment/direction and class matching. Class counters without action counters move to configured action/platform support. Drops or queueing under load require comparing offered rate, configured rate and scheduler state. Correct policy behavior with poor application performance moves upstream/downstream.

Command lookup Jump straight to Cisco syntax
Key points
  • A policy map lists actions for each class: priority, bandwidth, police, shape or set.
  • Classes are processed in order.
  • class-default handles remaining traffic.
Key checks
  • show policy-map <name> — policy contents
  • show policy-map interface <interface> — live counters
ReferenceWhy it matters1 section · depth on demand

How it works in operation

A policy map binds classes to actions such as marking, policing, shaping, priority or bandwidth treatment. Effective QoS depends on the policy being attached in the correct direction and on platform scheduler resources; a valid policy definition can exist without ever affecting packets.

ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

Policy maps

A policy map defines what QoS does to each traffic class. Cisco's IOS XE QoS guide lists the actions that can go under each class in a policy map: bandwidth, priority, police, shape, set, queue-limit, random-detect and drop, and states that a packet can match only one traffic class within a policy, the first one that matches.

Structure

policy-map WAN-EDGE-OUT
 class VOICE
  priority level 1
  police cir percent 20
 class VIDEO
  bandwidth remaining percent 40
  random-detect dscp-based
 class CRITICAL-DATA
  bandwidth remaining percent 30
 class SCAVENGER
  bandwidth remaining percent 1
 class class-default
  bandwidth remaining percent 29
  fair-queue

Actions

ActionEffect
priorityLow-latency queue (LLQ) for real-time traffic; usually policed
bandwidth / bandwidth remainingMinimum share during congestion
policeDrop or re-mark traffic above a rate
shapeBuffer traffic to a rate (smooths bursts)
setMark DSCP, CoS, QoS group
random-detectWRED: drop early to avoid tail drop
queue-limitQueue depth

Hierarchical policy maps (guide)

A child policy can be nested in a parent's class with service-policy, typically to shape to a contracted rate and queue inside that rate:

R1(config)# policy-map SHAPE-100M
R1(config-pmap)# class class-default
R1(config-pmap-c)# shape average 100000000
R1(config-pmap-c)# service-policy WAN-EDGE-OUT
R1(config)# interface GigabitEthernet0/0/0
R1(config-if)# service-policy output SHAPE-100M

Order and design

Class order matters because the first match wins: put specific classes before broad ones. Keep the class model consistent across the network (for example 4, 8 or 12 classes) so marking means the same everywhere.

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.

Quick reference

A policy map applies actions to classes: marking (set), priority, bandwidth guarantees, policing, shaping and congestion avoidance. Classes are evaluated in the order listed, and each packet matches the first class it fits.

policy-map WAN-QUEUING
 class VOICE
  priority percent 10
 class CRITICAL-DATA
  bandwidth percent 30
 class class-default
  fair-queue
  random-detect dscp-based

Documented example, not captured output.

Use a hierarchical policy (parent shaper with child queuing policy) when the physical interface is faster than the contracted WAN rate.

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

State model and technical mechanics

A policy map evaluates classified traffic and applies the configured action to each class. Actions can include DSCP/CoS marking, policing, shaping, guaranteed bandwidth, low-latency priority queuing and nested child policies depending on platform and direction. class-default provides behavior for traffic not matched by earlier explicit classes. Queueing behavior becomes meaningful only when an egress resource is congested; marking and policing can act even without queue contention. Priority treatment does not create infinite bandwidth: the scheduler still operates under interface capacity and platform-specific policing/safeguards. Read the mechanism as a chain of dependent state rather than a single boolean. The same configured object can be healthy locally while an adjacent interface, policy, route, neighbor or endpoint prevents the intended service, so the reference keeps those state boundaries explicit.

Limits and common misconceptions

A configured policy map is not evidence that the policy is attached, and an attached policy with zero counters is not automatically broken. Guaranteed bandwidth is a scheduler promise under defined conditions, not a permanent reservation visible as constant utilization. A priority queue can still experience drops when traffic exceeds designed limits or the physical link is saturated.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Define actions from the business/traffic objective rather than from a desire to make a particular counter look nonzero. Size priority and bandwidth guarantees against expected traffic and interface capacity, and keep policing versus shaping semantics clear: policing enforces a rate by dropping/remarking excess while shaping buffers/delays to pace traffic. Document hierarchical parent/child relationships where used because the effective bandwidth available to a child can be constrained by its parent. Keep classification, action and attachment separate in the design so Round-trip changes do not silently alter more than one layer.

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 → Policy Map. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%
Embedded reference data

Quick lookup tables

Policy Map · technical reference

Compact mechanics, configuration and evidence boundaries for fast lookup.

ActionCore behavior
MarkChange QoS field
PoliceEnforce rate; drop/remark excess
ShapeBuffer and pace traffic
Priority/bandwidthScheduler treatment during contention
Confirmation

Confirm action

Continue?