The ip-dscp-inbound command converts the DSCP value of upstream IP packet into the corresponding CoS and color the packet.
The undo ip-dscp-inbound command restores the default settings.
By default, the mappings from DSCP values of upstream IP packets to internal CoSs and colors in a DS domain are shown in Table 1 in Usage Scenario.
Parameter | Description | Value |
---|---|---|
dscp-value |
Specifies the DSCP value of the upstream IP packet. |
The value is an integer ranging from 0 to 63. |
phb service-class |
Specifies the CoS value. The value is of the enumeration type. |
It is case-insensitive and can be EF, AF1, AF2, AF3, AF4, BE, CS6, or CS7. |
color |
Specifies the color used to mark the packet. |
The value is an enumerated type and can be green, yellow, or red. |
exclude-user-defined |
One-click DS domain modification that does not override user-defined configurations. |
- |
Usage Scenario
When a device functions as the gateway of different networks, the precedence, such as the 802.1p, DSCP, and EXP values, in the packets that access the device is mapped to the internal precedence of the device that is presented through the CoSs and colors. When the device sends out the packets, the internal precedence is mapped back to the external precedence.
Simple traffic classification is usually implemented on the core devices of the network. To perform QoS scheduling for upstream packets that carry DSCP values, you can run this command to convert the DSCP values of the upstream IP packets into the corresponding CoSs and color the packet.The service-color mappings for DSCP values take effect for both IPv4 and IPv6.
Mappings from DSCP values of upstream IP packets to internal CoSs and colors in a DS domain
DSCP | Service | Color | DSCP | Service | Color |
---|---|---|---|---|---|
00 | be | green | 32 | af4 | green |
01 | be | green | 33 | be | green |
02 | be | green | 34 | af4 | green |
03 | be | green | 35 | be | green |
04 | be | green | 36 | af4 | yellow |
05 | be | green | 37 | be | green |
06 | be | green | 38 | af4 | red |
07 | be | green | 39 | be | green |
08 | af1 | green | 40 | ef | green |
09 | be | green | 41 | be | green |
10 | af1 | green | 42 | be | green |
11 | be | green | 43 | be | green |
12 | af1 | yellow | 44 | be | green |
13 | be | green | 45 | be | green |
14 | af1 | red | 46 | ef | green |
15 | be | green | 47 | be | green |
16 | af2 | green | 48 | cs6 | green |
17 | be | green | 49 | be | green |
18 | af2 | green | 50 | be | green |
19 | be | green | 51 | be | green |
20 | af2 | yellow | 52 | be | green |
21 | be | green | 53 | be | green |
22 | af2 | red | 54 | be | green |
23 | be | green | 55 | be | green |
24 | af3 | green | 56 | cs7 | green |
25 | be | green | 57 | be | green |
26 | af3 | green | 58 | be | green |
27 | be | green | 59 | be | green |
28 | af3 | yellow | 60 | be | green |
29 | be | green | 61 | be | green |
30 | af3 | red | 62 | be | green |
31 | be | green | 63 | be | green |
Prerequisites
The DS domain is created in the system view.
Implementation Procedure
After the ip-dscp-inbound command is configured in the DS domain that is bound to the inbound interface of packets, packets are marked with different CoSs and colors according to the mappings configured by this command to perform congestion management and avoidance.
Configuration Impact
Packets are marked with different CoSs and colors according to the mappings defined in the DS domain.
Follow-up Procedure
The DS domain configured with mappings is applied to interfaces.
Precautions
If you do not specify dscp-value, the undo ip-dscp-inbound command restores all configured mappings from DSCP values of upstream IP packets to internal CoSs and colors.
For IP packets, the system predefines a default domain for users. The default mappings from the DSCP values to the CoSs and colors are specified in the default domain. You can change the mappings in the default domain.In VS mode, this command is supported only by the admin VS.