Policy-Map Commands
XSR CLI Reference Guide 12-89
police
Thiscommandconfigurestrafficpolicing.
Syntax
police bps [burst-normal][burst-max][conform-action action][exceed-action
action][violate-action action]
Syntax of the “no” Form
Trafficpolicingisremovedbyusingthenoformofthiscommand:
no police
Defaults
• burst‐normal:averageratemultipliedbyonesecond)
• conform‐action:transmit
• exceed‐action:drop
• violate‐action:drop
• Commandisdisabledbydefault
Mode
Policy‐MapClassconfiguration:XSR(config-pmap-c-<xx>)#
bps
Averageraterangingfrom1,000to100,000,000bps.
burst-normal
Normalburstsizerangingfrom1,000to51,200,000bps.Iflessthan10 00
bytesburst‐normalwillbesetto1000bytes.
burst-max
Excessburstsizerangingfrom1,000to51,2000,000bytes.Valuemustbe
greaterthanorequaltonormal‐burstsize.Itwillautomaticallybechangedto
thenormal‐burstsizeiflessthannormal‐burst.
conform-action
Actiontotakeonpacketsthatconformtotheratelimit.
exceed-action
Actiontotakeonpacketsthatexceedtheratelimit.
violate-action
Actiontotakeonpacketsthatviolatenormalandmaximumburstsizes.If
violate‐actionisset,thetokenbucketalgorithmwillusetwotokenbuckets.
action
Actiontotakeonpackets.Youmayspecifyonekeyword:
•
drop‐Dropsthepacket.
•
set-prec-transmit new-prec‐SetsIPprecedenceandsendsthe
packet.
•
set-dscp-transmit new-prec‐Setsthedifferentiatedservicescode
point(DSCP)valueandsendsthepacket.
•
transmit‐Sendsthepacket.