
If the next packet arrives 0.40 seconds later, 400 bytes are added to the token buckets ((.40 * 8000)/8).
Therefore, the conform token bucket now has 1000 bytes (the maximum number of tokens available in the
conform bucket, and 200 bytes overflow the conform token bucket (because only 200 bytes were needed to
fill the conform token bucket to capacity). These overflow bytes are placed in the exceed token bucket, giving
the exceed token bucket 300 bytes.
If the arriving packet is 1000 bytes, the packet conforms because enough bytes are available in the conform
token bucket. The conform action (transmit) is taken by the packet, and 1000 bytes are removed from the
conform token bucket (leaving 0 bytes).
If the next packet arrives 0.20 seconds later, 200 bytes are added to the token bucket ((.20 * 8000)/8). Therefore,
the conform bucket now has 200 bytes. If the arriving packet is 400 bytes, the packet does not conform because
only 200 bytes are available in the conform bucket. Similarly, the packet does not exceed because only 300
bytes are available in the exceed bucket. Therefore, the packet violates and the violate action (drop) is taken.
Verifying Class-Based Traffic Policing
Use the show policy-map interface command to verify that the Class-Based Policing feature is configured
on your interface. If the feature is configured on your interface, the show policy-map interface command
output displays policing statistics:
Router# show policy-map interface
FastEthernet1/1/1
service-policy output: x
class-map: a (match-all)
0 packets, 0 bytes
5 minute rate 0 bps
match: ip precedence 0
police:
1000000 bps, 10000 limit, 10000 extended limit
conformed 0 packets, 0 bytes; action: transmit
exceeded 0 packets, 0 bytes; action: drop
conformed 0 bps, exceed 0 bps, violate 0 bps
Use the show policy-map interface type nummber command to view the traffic statistics for policies applied
to that specific interface:
Router# show policy-map interface gigabitethernet 0/0/1
GigabitEthernet0/0/1
Service-policy input: TUNNEL_MARKING
Class-map: MATCH_PREC (match-any)
72417 packets, 25418367 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: ip precedence 0
QoS Set
ip precedence tunnel 3
Marker statistics: Disabled
Class-map: MATCH_DSCP (match-any)
0 packets, 0 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: ip dscp default (0)
QoS Set
ip dscp tunnel 3
Marker statistics: Disabled
Class-map: class-default (match-any)
346462 packets, 28014400 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: any
QoS: Policing and Shaping Configuration Guide, Cisco IOS XE Release 3S (Cisco ASR 900 Series)
9
Class-Based Policing
Verifying Class-Based Traffic Policing