DSCP Re-Marking Configuration Example
Example 1
1. Turn DSCP re‐marking on globally, and define the DSCP‐DSCP‐802.1p mapping.
2. Enable DSCP re‐marking on a port.
Example 2
1. Create an ACL to re‐mark DSCP value and COS queue for all VoIP packets.
2. Create an ACL to set a low priority to all other traffic.
3. Apply the ACLs to a port and enable DSCP marking.
192
CN4093 Application Guide for N/OS 8.2
Use the following command to turn on DSCP re‐marking globally:
CN4093(config)# qos dscp remarking
Then you must enable DSCP re‐marking on any port that you wish to perform this
function.
Note: If an ACL meter is configured for DSCP re-marking, the meter function takes
precedence over QoS re-marking.
The following example includes the basic steps for re‐marking DSCP value and
mapping DSCP value to 802.1p.
You can use the default mapping.
CN4093(config)# qos dscp remarking
CN4093(config)# qos dscp dscpmapping <DSCP value (0‐63)> <new value>
CN4093(config)# qos dscp dot1pmapping <DSCP value (0‐63)> <802.1p value>
CN4093(config)# interface port 1
CN4093(configif)# qos dscp remarking
CN4093(configif)# exit
The following example assigns strict priority to VoIP traffic and a lower priority to
all other traffic.
CN4093(config)# accesscontrol list 2 tcpudp sourceport 5060 0xffff
CN4093(config)# accesscontrol list 2 meter committedrate 10000000
CN4093(config)# accesscontrol list 2 meter enable
CN4093(config)# accesscontrol list 2 remark inprofile dscp 56
CN4093(config)# accesscontrol list 2 remark dot1p 7
CN4093(config)# accesscontrol list 2 action permit
CN4093(config)# accesscontrol list 3 action setpriority 1
CN4093(config)# accesscontrol list 3 action permit
CN4093(config)# interface port 5
CN4093(configif)# accesscontrol list 2
CN4093(configif)# accesscontrol list 3 ethernet sourcemacaddress
00:00:00:00:00:00 00:00:00:00:00:00
CN4093(configif)# dscpmarking
CN4093(configif)# exit