This blog was originally started to better help me understand the technologies in the CCIE R&S blueprint; after completing the R&S track I have decided to transition the blog into a technology blog.

CCIE #29033

This blog will continue to include questions, troubleshooting scenarios, and references to existing and new technologies but will grow to include a variety of different platforms and technologies. Currently I have created over 185 questions/answers in regards to the CCIE R&S track!! Note: answers are in the comment field or within "Read More" section.

You can also follow me on twitter @FE80CC1E


Saturday, October 30, 2010

Question 162

What is the difference between "police" and "police rate"?

3 comments:

networkdongle said...

police rate is used for Control Plane Policing

Packets Analyzed said...

Example:

class-map match-all POLICE
match any
class-map match-all POLICERATE
match protocol smtp
!
!
policy-map PMAP-POLICE
class POLICE
police 128000 conform-action transmit exceed-action transmit violate-action drop
policy-map PMAP-POLICERATE
class POLICERATE
police rate 100 pps
conform-action transmit
exceed-action drop

R15(config)#inter fas 0/0
R15(config-if)#serv
R15(config-if)#service-policy ou
R15(config-if)#service-policy output PMAP-POLICERATE
police parameters in packets per second only allowed for control-plane service-policy

interface FastEthernet0/0
ip address 10.0.0.15 255.255.255.0
duplex auto
speed auto
no keepalive
service-policy output PMAP-POLICE

control-plane
service-policy output PMAP-POLICE

Packets Analyzed said...

"police rate" using pps is for control plane policing but I was able to use "police rate percent" on the interface.

Example:

class-map match-all POLICERATE2
match protocol ftp
!
!
policy-map PMAP-POLICERATE2
class POLICERATE2
police rate percent 50
conform-action transmit
exceed-action drop
!
interface FastEthernet0/1
no ip address
duplex auto
speed auto
no keepalive
service-policy output PMAP-POLICERATE2


do sh policy-map inter fas 0/1
FastEthernet0/1

Service-policy output: PMAP-POLICERATE2

Class-map: POLICERATE2 (match-all)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol ftp
police:
rate 50 %
rate 50000000 bps, burst 1562500 bytes
conformed 0 packets, 0 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps

Class-map: class-default (match-any)
4 packets, 1103 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any

Post a Comment