Chapter 19
| Class of Service Commands
Priority Commands (Layer 3 and 4)
– 516 –
qos map dscp-cos This command maps internal per-hop behavior and drop precedence value pairs to
CoS/CFI values used in tagged egress packets on a Layer 2 interface. Use the no
form to restore the default settings.
Syntax
qos map dscp-cos cos-value cfi-value from phb0 drop-precedence0 ...
phb7 drop-precedence7
no map ip dscp phb0 drop-precedence0 ... phb7 drop-precedence7
cos-value - CoS value in ingress packets. (Range: 0-7)
cfi-value - 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)
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)
DEFAULT SETTING
Command Mode
Interface Configuration (Port, Static Aggregation)
Command Usage
◆ Enter a CoS/CFI value pair, followed by the keyword “from” and then four
internal per-hop behavior and drop precedence value pairs separated by
spaces.
◆ If the packet is forwarded with an 8021.Q tag, the priority value in the egress
packet is modified based on the table shown above, or on similar values as
modified by this command.
Table 104: Mapping Internal PHB/Drop Precedence to CoS/CFI Values
Drop Precedence
Per-hop Behavior
0 (green) 1 (red) 3 (yellow)
0 (0,0) (0,1) (0,1)
1 (1,0) (1,1) (1,1)
2 (2,0) (2,1) (2,1)
3 (3,0) (3,1) (3,1)
4 (4,0) (4,1) (4,1)
5 (5,0) (5,1) (5,1)
6 (6,0) (6,1) (6,1)
7 (7,0) (7,1) (7,1)