296 Chapter 8: QoS Support on the Catalyst 6500
DSCP-to-CoS Mapping
When the frame header is passed from the switching engine to the egress port or interface,
the internal DSCP value is mapped back to a CoS value. The internal DSCP is also written
to the ToS field of the Layer 3 IP header. The CoS value allows the frame to utilize the
egress queue scheduling as it exits the switch. Output scheduling is covered in a later
section. In addition to scheduling, if the outbound port is an ISL or 802.1q trunk, the CoS
value is written into the trunk header and transmitted to the network. The CoS value is
reflected in the user priority field. To modify and verify the configuration of the DSCP-to-
CoS mapping table, use the following commands:
(Hybrid)
set qos dscp-cos-map {
DSCP1
[
DSCP2…DSCP64
]}:{
CoS
}
ss
ss
hh
hh
oo
oo
ww
ww
qq
qq
oo
oo
ss
ss
mm
mm
aa
aa
pp
pp
ss
ss
cc
cc
oo
oo
nn
nn
ff
ff
ii
ii
gg
gg
dd
dd
ss
ss
cc
cc
pp
pp
--
--
cc
cc
oo
oo
ss
ss
--
--
mm
mm
aa
aa
pp
pp
(Native)
mls qos map dscp-cos {
DSCP1
[
DSCP2 DSCP3 DSCP4 DSCP5 DSCP6 DSCP7 DSCP8
]} to {
CoS
}
show mls qos map [ | begin Dscp-cos]
In Hybrid, a range of DSCP values can be mapped to a single CoS. If the intent is to map
DSCP 24 through 35 to CoS 3, for example, the command can be configured as follows: set
qos dscp-cos-map 24-35:3. Native mode does not permit the administrator to enter a range
of values. A maximum of eight independent DSCP values can be specified per command.
In addition, when entering individual DSCP values in Hybrid, you can enter multiple
values; however, you must separate the values with commas. Native mode requires the
DSCP values to be separated with spaces. The following two examples demonstrate how to
configure the DSCP-to-CoS mapping table. They also demonstrate the differences in
command syntax. Note that to demonstrate dependency, the following examples were
configured to reflect the changes made to the CoS-to-DSCP mapping table in previous
examples.
Example 8-27 Modifying the DSCP-to-CoS Mapping Table in Hybrid Mode
hybrid (enable) set qos dscp-cos-map 56-63:0
QoS dscp-cos-map set successfully.
hybrid (enable) set qos dscp-cos-map 48-55:1
QoS dscp-cos-map set successfully.
hybrid (enable) set qos dscp-cos-map 40-47:2
QoS dscp-cos-map set successfully.
hybrid (enable) set qos dscp-cos-map 32-39:3
QoS dscp-cos-map set successfully.
hybrid (enable) set qos dscp-cos-map 24-31:4
QoS dscp-cos-map set successfully.
hybrid (enable) set qos dscp-cos-map 16-23:5
QoS dscp-cos-map set successfully.
hybrid (enable) set qos dscp-cos-map 8-15:6
QoS dscp-cos-map set successfully.
hybrid (enable) set qos dscp-cos-map 0,2,4,6:7
QoS dscp-cos-map set successfully.
hybrid (enable) set qos dscp-cos-map 1,3,5,7:7
QoS dscp-cos-map set successfully.
hybrid (enable) show qos maps config dscp-cos-map
DSCP - CoS map:
DSCP CoS