ip-dscp-outbound
Function
The ip-dscp-outbound command maps the PHB and color of outgoing IP packets in a DiffServ domain to the DSCP priority.
The undo ip-dscp-outbound command restores the default mapping.
Table 25-11 lists the default mappings from the PHBs and colors to DSCP priorities of outgoing IP packets in a DiffServ domain.
PHB |
Color |
DSCP |
---|---|---|
BE |
green |
0 |
BE |
yellow |
0 |
BE |
red |
0 |
AF1 |
green |
10 |
AF1 |
yellow |
12 |
AF1 |
red |
14 |
AF2 |
green |
18 |
AF2 |
yellow |
20 |
AF2 |
red |
22 |
AF3 |
green |
26 |
AF3 |
yellow |
28 |
AF3 |
red |
30 |
AF4 |
green |
34 |
AF4 |
yellow |
36 |
AF4 |
red |
38 |
EF |
green |
46 |
EF |
yellow |
46 |
EF |
red |
46 |
CS6 |
green |
48 |
CS6 |
yellow |
48 |
CS6 |
red |
48 |
CS7 |
green |
56 |
CS7 |
yellow |
56 |
CS7 |
red |
56 |
Format
ip-dscp-outbound service-class { green | yellow | red } map dscp-value
undo ip-dscp-outbound [ service-class { green | yellow | red } ]
Parameters
Parameter |
Description |
Value |
---|---|---|
service-class |
Specifies a PHB. |
The value can be BE, AF1 to AF4, EF, CS6, or CS7, each of which corresponds to queues 0 to 7 respectively. |
green |
Indicates that packets are colored green. |
- |
yellow |
Indicates that packets are colored yellow. |
- |
red |
Indicates that packets are colored red. |
- |
map dscp-value |
Specifies the DSCP priority of IP packets. |
The value is an integer that ranges from 0 to 63. |
Usage Guidelines
Scenario
After QoS scheduling is performed on the IP packets, you can use the ip-dscp-outbound command to map the PHB and color of IP packets in a DiffServ domain to the DSCP priority. After the DiffServ domain is bound to the outbound interface of the IP packets, the downstream device implements QoS scheduling according to the DSCP priority.
Precautions
If you do not specify the parameters service-class and colors when running the undo ip-dscp-outbound command, the default mappings from ToS values and colors to DSCP priorities are restored.