QoSPolicy-map Class Config

police rate [bps] burst [bytes]

Configures traffic policing on a class map to enforce a maximum bit rate and burst size, dropping or remarking packets that exceed the rate.

Syntax·Policy-map Class Config
police rate [bps] burst [bytes]

When to Use This Command

  • Limit bandwidth for peer-to-peer traffic to 1 Mbps to prevent congestion on a WAN link.
  • Police voice traffic to 256 kbps to ensure consistent quality while dropping excess packets.
  • Enforce a 10 Mbps rate limit for a customer's internet access circuit.
  • Mark traffic exceeding 5 Mbps with a lower DSCP value for differentiated treatment.

Command Examples

Basic policing with drop action

police rate 1000000 burst 20000
 police rate 1000000 burst 20000
 conform-action transmit
 exceed-action drop

The command sets a police rate of 1 Mbps with a burst size of 20,000 bytes. Conforming traffic is transmitted; exceeding traffic is dropped.

Policing with set-dscp-transmit action

police rate 5000000 burst 50000 conform-action transmit exceed-action set-dscp-transmit 0
 police rate 5000000 burst 50000
 conform-action transmit
 exceed-action set-dscp-transmit 0

Sets a 5 Mbps rate with 50 KB burst. Conforming traffic passes; exceeding traffic is marked with DSCP 0 (best effort).

Understanding the Output

The output shows the configured police rate in bps and burst size in bytes. The 'conform-action' defines what happens to traffic within the rate (typically 'transmit'). The 'exceed-action' defines action for traffic exceeding the rate (e.g., 'drop' or 'set-dscp-transmit'). In 'show policy-map', you'll see counters for conformed and exceeded packets. High exceeded counts indicate the rate is too low or burst is too small. Good values show most packets conforming.

CCNA Exam Tips

1.

Remember the default actions: conform-action transmit, exceed-action drop.

2.

The burst parameter is crucial for token bucket operation; exam may test its effect on bursty traffic.

3.

Policing can mark down DSCP or drop; shaping queues excess traffic. Know the difference.

4.

Police is configured in policy-map class mode; apply via service-policy input/output.

Common Mistakes

Forgetting to specify burst size, causing default burst (often 1500 bytes) which may be too small.

Applying police in the wrong direction (input vs output) relative to traffic flow.

Confusing police with shape; police drops, shape buffers.

Related Commands

Practice for the CCNA 200-301

Test your knowledge with hundreds of CCNA practice questions covering all exam domains.

Practice CCNA Questions