User Manual

Table Of Contents
[Example]
Make the following settings for received frames of LAN port #1
Permit traffic from the 10.1.0.0 network
Categorize bandwidth classes as CIR:48kbps, CBS:12kbyte, and EBS:12kbyte
Green: forward, Yellow: rewrite DSCP value to 10, Red: discard
[Traffic class definition]
SWP2(config)#access-list 1 permit any 10.1.0.0 0.0.255.255 any
SWP2(config)#class-map class1
SWP2(config-cmap)#match access-list 1
SWP2(config-cmap)#exit
[Policy settings]
SWP2(config)#policy-map policy1
SWP2(config-pmap)#class class1
SWP2(config-pmap-c)#police 48 12 12 yellow-action remark red-action drop
SWP2(config-pmap-c)#remark-map yellow ip-dscp 10
SWP2(config-pmap-c)#exit
SWP2(config-pmap)#exit
SWP2(config)#interface port1.1
SWP2(config-if)#service-policy input policy1
9.2.27 Set individual policers (twin rate)
[Syntax]
police twin-rate CIR PIR CBS PBS yellow-action action red-action action
no police
[Keyword]
twin-rate : Use twin rate policers
[Parameter]
CIR : <1 - 102300000>
Traffic rate (kbps)
PIR : <1 - 102300000>
Peak traffic rate (kbps). A value less than CIR cannot be specified.
CBS : <11 - 2097120>
Burst size of conformant token bucket (kbyte)
PBS : <11 - 2097120>
Burst size of peak token bucket (kbyte)
action : Operation for packets categorized by bandwidth class
Setting value Operation
transmit Forward
drop Discard
remark Remarking (CoS/TOS/DSCP)
[Input mode]
policy map class mode
[Description]
Specifies individual policers (twin rate) for the categorized traffic classes.
If the setting was already made by the police command, its content is changed.
Metering on the SWP2 is implemented as a single-rate three-color marker (RFC2697), and the following processing can be
specified for the categorized bandwidth classes.
Green : Only forward (cannot be specified)
Yellow : Choose forward, discard, or remark
Red : Choose discard or remark
274 | Command Reference | Traffic control