User Manual

Table Of Contents
Setting value Description
cos CoS remarking
ip-precedence TOS precedence remarking
ip-dscp DSCP remarking
value : <0 - 7>
CoS or TOS precedence remarking value
: <0 - 63>
DSCP remarking value
[Input mode]
policy map class mode
[Description]
Specifies remarking operations for bandwidth classes Yellow and Red that were classified by individual policers. In addition,
reassign the egress queue according to the egress queue ID table that corresponds to the trust mode.
For remarking, you can select either CoS value, TOS precedence, or DSCP value.
If this is executed with the "no" syntax, the remarking setting is deleted.
In order to perform remarking, you must specify this command and additionally use the police command (policy map class
mode)) to specify "remark" as the action for the corresponding bandwidth class.
[Note]
In order to execute this command, QoS must be enabled.
Remarking can be used in conjunction with pre-marking and specifying the egress queue.
Up to four user-defined values may be used for pre-marking/remarking to a DSCP value not recommended in the RFC. The
following table shows the DSCP values that are recommended in the RFC.
PHB DSCP value RFC
default 0 2474
Class Selector 0, 8, 16, 24, 32, 40, 48, 56 2474
Assured Forwarding 10, 12, 14, 18, 20, 22, 26, 28, 30, 34, 36,
38
2597
Expedited Forwarding(EF) 46 2598
[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]
SWX3220(config)#access-list 1 permit any 10.1.0.0 0.0.255.255 any
SWX3220(config)#class-map class1
SWX3220(config-cmap)#match access-list 1
SWX3220(config-cmap)#exit
[Policy settings]
SWX3220(config)#policy-map policy1
SWX3220(config-pmap)#class class1
SWX3220(config-pmap-c)#police 48 12 12 yellow-action remark red-action drop
SWX3220(config-pmap-c)#remark-map yellow ip-dscp 10
SWX3220(config-pmap-c)#exit
SWX3220(config-pmap)#exit
SWX3220(config)#interface port1.1
SWX3220(config-if)#service-policy input policy1
Command Reference | Traffic control | 427