OcNOS-RON : Quality of Service Guide : Quality of Service Configuration Guide : Queue-color-to-dscp Map Profile Configuration
Queue-color-to-dscp Map Profile Configuration
This chapter contains a complete sample of configuring queue-color-to-dscp map profile.
Topology
Queue color-to-dscp map profile configuration
Configuration queue-color-to-dscp
The following steps describe how to configure queue-color-to-dscp map profile.
 
#configure terminal
Enter configure mode.
(config)#qos enable
Enable QoS globally.
(config)#qos statistics
Enable QoS statistics.
(config)#qos remark dscp
Configure QOS remark DSCP in global configuration mode
(config)#qos profile queue-color-to-dscp Profile6
Enter queue-color-to-dscp profile configuration mode
(config-egress-dscp-map)#queue 3 color green dscp 48
Map queue 3 to dscp 48 for green color traffic under queue-color-to-dscp profile configuration mode
(config-egress-dscp-map)#exit
Exit queue-color-to-dscp map configuration mode
(config)#qos profile queue-color-to-dscp default
Enter queue-color-to-dscp default map profile configuration mode
(config-egress-dscp-map)#queue 5 dscp 32
Map queue 5 frames to dscp 32
(config-egress-cos-map)#exit
Exit queue-color-to-dscp configuration mode
(config)#commit
Committing the configured line
(config)#exit
Exit configure mode.
Validation
Enter the commands below to confirm the configurations.
qos enable
qos statistics
qos remark dscp
!
qos profile queue-color-to-dscp default
queue 5 color all dscp 32
!
qos profile queue-color-to-dscp Profile6
queue 3 color green dscp 48
! ?
 
Configuration of Queue-color-to-dscp Map Profile on Interface mode
The following steps describe how to configure Queue-color-to-dscp map profile on interface mode.
 
#configure terminal
Enter configure mode.
(config)#qos enable
Enable QoS globally.
(config)#qos statistics
Enable QoS statistics.
(config)#interface xe2
Enter interface mode.
(config-if)#switchport
Configure the port as switchport
(config-if)#qos map-profile queue-color-to-dscp Profile6
map queue-color-to-dscp profile on the interface
(config-if)#qos remark dscp disable
Disable QoS remark for DSCP on interface level
(config-if)#exit
Exit interface mode.
(config)#commit
Committing the configured line
(config)#exit
Exit configure mode.
Note: When QoS remark for DSCP is disabled on interface level, it will only change queue, CoS value won't be changed. If qos remark dscp enable is configured on interface level, DSCP value is altered accordingly. By default, qos remark dscp is enabled on interface level.
Validation
Enter the commands below to confirm the configurations.
# show running-config qos
qos enable
qos statistics
qos remark dscp
!
qos profile queue-color-to-dscp default
queue 5 color all dscp 32
!
qos profile queue-color-to-dscp Profile6
queue 3 color green dscp 48
!
!
!
interface xe2
qos remark dscp disable
qos map-profile queue-color-to-dscp Profile6
!
 
#show qos-profile type queue-color-to-dscp Profile6
profile name: Profile6
profile type: queue-color-to-dscp
profile attached to 1 instances
configured mapping:
queue 3 color green dscp 48
Detailed mapping:
----------------+-------- | ----------------+-------- | ----------------+--------
INPUT | OUTPUT | INPUT | OUTPUT | INPUT | OUTPUT
----------------+-------- | ----------------+-------- | ----------------+--------
Queue | Color | DSCP | Queue | Color | DSCP | Queue | Color | DSCP
-------+--------+-------- | -------+--------+-------- | -------+--------+--------
0 green 0 | 0 yellow 0 | 0 red 0
1 green 10 | 1 yellow 12 | 1 red 14
2 green 18 | 2 yellow 20 | 2 red 22
3 green 48 | 3 yellow 28 | 3 red 30
4 green 34 | 4 yellow 36 | 4 red 38
5 green 40 | 5 yellow 40 | 5 red 40
6 green 48 | 6 yellow 48 | 6 red 48
7 green 56 | 7 yellow 56 | 7 red 56