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.
Policing · QoS
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.
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.
traffic → token bucket → conform/exceed/violate actions
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 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
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| Throughput lower than CIR | show policy-map interface Gi1/0/1 input | Exceeded packets while the average rate is under CIR | Bc too small for bursty TCP; increase the burst |
| Traffic not limited | same | Conform counters only | Class match and policy direction |
| Re-marked traffic treated wrongly | Capture downstream | DSCP of exceeding packets | Downstream class-map matches the re-marked value |
Step 3 Observation → implication → next check Narrow the fault
Step 4 Common mistakes Narrow the fault
- Policing TCP traffic hard, causing retransmissions.
- Policer rate in bits mixed up with bytes.
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.
- 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.
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 asset-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
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)
| Type | Support |
|---|---|
| 1R2C (one rate, two colours) | Supported: conform and exceed |
| 2R3C (two rates, three colours) | Supported, colour-blind mode only |
| 1R3C | Not supported |
| Policers on priority queues | 1R2C 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 small | Burst too large |
|---|---|
| TCP flows lose packets on normal bursts and never reach the rate | Long 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 | Shaping | |
|---|---|---|
| Excess traffic | Dropped or re-marked at once | Buffered and sent later |
| Direction | Input and output | Output only |
| Effect on TCP | Drops cause retransmission | Smoother, 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.
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.
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
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 → Policing. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%