Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Policing · QoS

Direct answer

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.

When to use this

Use Policing when traffic must not exceed a rate and excess may be dropped or re-marked immediately: contracts at ingress, guest limits, LLQ caps.

First 30 seconds

1. Policing drops or re-marks traffic over a rate; no buffering.

2. Applied input or output.

3. Used at edges and for CoPP.

4. Bursts must be sized right.

5. Causes TCP retransmissions if too strict.

Operational verification

traffic → token bucket → conform/exceed/violate actions

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
Scope / prerequisiteUse Policing when traffic must not exceed a rate and excess may be dropped or re-marked immediately: contracts at ingre…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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 Layered verification and original-test closure Verify boundary

Policing — Generate a known-rate flow above and below the configured rate, compare action counters and packet loss/marking, and verify the original application after the policy behavior is understood.

Step 2 Verification & troubleshooting Narrow the fault
SymptomCommandLook forNext check
Throughput lower than CIRshow policy-map interface Gi1/0/1 inputExceeded packets while the average rate is under CIRBc too small for bursty TCP; increase the burst
Traffic not limitedsameConform counters onlyClass match and policy direction
Re-marked traffic treated wronglyCapture downstreamDSCP of exceeding packetsDownstream class-map matches the re-marked value
Step 3 Observation → implication → next check Narrow the fault

Policing — If loss correlates with policing, confirm the flow matches the class and inspect conform/exceed/violate counters. If exceed rises without drops, check the configured action; if policer counters stay flat, move to egress queues.

Step 4 Common mistakes Narrow the fault
  • Policing TCP traffic hard, causing retransmissions.
  • Policer rate in bits mixed up with bytes.
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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Policing limits traffic to a rate by dropping or remarking excess packets.
  • It does not buffer, so it can cause TCP retransmissions.
  • Often used inbound or by service providers.
Key checks
  • show policy-map interface <interface> — conformed/exceeded/violated
  • police rate <bps> burst <bytes> — configuration
ReferenceWhat it is1 section · depth on demand

What it is

A policer measures traffic against a rate with token buckets and acts on each packet immediately:

  • CIR (committed rate) and Bc (committed burst); optionally PIR/Be for two-rate, three-colour policing.
  • conform-action — usually transmit.
  • exceed-action — drop, or re-mark such as set-dscp-transmit cs1.
  • violate-action — for the second rate.

A policer does not buffer. Excess traffic is dropped or re-marked at once, which TCP sees as loss. Policers can be applied inbound or outbound.

ReferenceWhy it matters1 section · depth on demand

When to use it

Use policing to enforce a contracted rate at an ingress, limit guest or scavenger traffic, cap the LLQ class, or re-mark out-of-contract traffic instead of dropping it. Use shaping instead when you want to delay excess traffic rather than drop it.

ReferenceHow it works1 section · depth on demand

Operational mechanics and ownership

Policing — A policer enforces a rate by classifying packets as conform/exceed/violate and applying configured actions such as transmit, remark or drop; it does not normally buffer excess traffic like a shaper. The policer owns token-bucket state and action counters. Downstream queue drops and policer drops are different boundaries and should not be inferred from one another.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Policing limits a traffic rate by dropping or re-marking excess

A policer measures traffic against a configured rate and acts immediately: conforming traffic passes, and excess traffic is dropped or re-marked. Policers work inbound and outbound.

Policer types on Catalyst 9300 (from the QoS guide)

TypeSupport
1R2C (one rate, two colours)Supported: conform and exceed
2R3C (two rates, three colours)Supported, colour-blind mode only
1R3CNot supported
Policers on priority queues1R2C only
C9300(config)# policy-map PM-GUEST-IN
C9300(config-pmap)# class class-default
C9300(config-pmap-c)# police cir 20000000 bc 625000
C9300(config-pmap-c-police)# conform-action transmit
C9300(config-pmap-c-police)# exceed-action drop
C9300(config)# policy-map PM-DATA-IN
C9300(config-pmap)# class CM-BULK
C9300(config-pmap-c)# police cir 100m pir 200m
C9300(config-pmap-c-police)# conform-action transmit
C9300(config-pmap-c-police)# exceed-action set-dscp-transmit af12
C9300(config-pmap-c-police)# violate-action drop
C9300# show policy-map interface GigabitEthernet1/0/20 input

The first policy caps guest traffic at 20 Mb/s. The second (2R3C) re-marks traffic between 100 and 200 Mb/s to AF12 and drops anything above 200 Mb/s.

Choosing the burst

Burst too smallBurst too large
TCP flows lose packets on normal bursts and never reach the rateLong bursts pass above the rate

A common starting point is about 250 ms of traffic at the CIR (20 Mb/s × 0.25 s = 5 Mb = 625,000 bytes, as in the example).

Policing versus shaping

PolicingShaping
Excess trafficDropped or re-marked at onceBuffered and sent later
DirectionInput and outputOutput only
Effect on TCPDrops cause retransmissionSmoother, adds delay

Use policing at trust boundaries and on priority queues. Use shaping where a downstream link is slower than the port.

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

Policing measures traffic against a rate (and burst) and immediately drops or remarks packets that exceed it, without buffering. It is used to enforce contracts and limit unwanted traffic.

policy-map LIMIT-GUEST
 class class-default
  police cir 20000000 bc 625000
   conform-action transmit
   exceed-action drop

Documented example, not captured output.

Because policing drops in bursts, TCP flows through a policer often get lower throughput than the policed rate; shaping is gentler for TCP.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
ReferenceConfiguration & state1 section · depth on demand

Configuration example (Cisco IOS XE)

policy-map GUEST-IN
 class class-default
  police cir 20000000 bc 625000
   conform-action transmit
   exceed-action drop
!
policy-map DATA-IN
 class BULK
  police cir 50000000
   conform-action transmit
   exceed-action set-dscp-transmit cs1
!
interface GigabitEthernet1/0/1
 service-policy input GUEST-IN

Bc 625,000 bytes is 250 ms at 20 Mbps. Documented example, not captured output.

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

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

Confirm action

Continue?