Chapter 22
| Class of Service Commands
Priority Commands (Layer 3 and 4)
– 608 –
qos map cos-dscp This command maps CoS/CFI values in incoming packets to per-hop behavior and
drop precedence values for priority processing. Use the no form to restore the
default settings.
Syntax
qos map cos-dscp phb drop-precedence from cos0 cfi0...cos7 cfi7
no qos map cos-dscp cos0 cfi0...cos7 cfi7
phb - Per-hop behavior, or the priority used for this router hop. (Range: 0-7)
drop-precedence - Drop precedence used for controlling traffic congestion.
(Range: 0 - Green, 3 - Yellow, 1 - Red)
cos - CoS value in ingress packets. (Range: 0-7)
cfi - Canonical Format Indicator. Set to this parameter to “0” to indicate that
the MAC address information carried in the frame is in canonical format.
(Range: 0-1)
DEFAULT SETTING.
Command Mode
Interface Configuration (Port, Static Aggregation)
Command Usage
◆ The default mapping of CoS to PHB values shown in Table 122 is based on the
recommended settings in IEEE 802.1p for mapping CoS values to output
queues.
◆ Enter a value pair for the internal per-hop behavior and drop precedence,
followed by the keyword “from” and then up to eight CoS/CFI paired values
separated by spaces.
◆ If a packet arrives with a 802.1Q header but it is not an IP packet, then the CoS/
CFI-to-PHB/Drop Precedence mapping table is used to generate priority and
Table 122: Default Mapping of CoS/CFI to Internal PHB/Drop Precedence
CFI
CoS
0 1
0(0,0)(0,0)
1(1,0)(1,0)
2(2,0)(2,0)
3(3,0)(3,0)
4(4,0)(4,0)
5(5,0)(5,0)
6(6,0)(6,0)
7(7,0)(7,0)