ip-dscp-inbound
Function
The ip-dscp-inbound command maps the DSCP priority of incoming IP packets in a DiffServ domain to the PHB and colors the packets.
The undo ip-dscp-inbound command restores the default mapping.
Table 25-10 lists the default mappings from the DSCP priorities to PHBs and colors of incoming IP packets in a DiffServ domain.
DSCP |
PHB |
Color |
DSCP |
PHB |
Color |
---|---|---|---|---|---|
0 |
BE |
green |
32 |
AF4 |
green |
1 |
BE |
green |
33 |
BE |
green |
2 |
BE |
green |
34 |
AF4 |
green |
3 |
BE |
green |
35 |
BE |
green |
4 |
BE |
green |
36 |
AF4 |
yellow |
5 |
BE |
green |
37 |
BE |
green |
6 |
BE |
green |
38 |
AF4 |
red |
7 |
BE |
green |
39 |
BE |
green |
8 |
AF1 |
green |
40 |
EF |
green |
9 |
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 |
Format
ip-dscp-inbound dscp-value phb service-class [ green | yellow | red ]
undo ip-dscp-inbound [ dscp-value ]
Parameters
Parameter |
Description |
Value |
---|---|---|
dscp-value |
Specifies the DSCP priority of IP packets. |
The value is an integer that ranges from 0 to 63. |
phb 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. |
- |
Usage Guidelines
Scenario
To implement QoS scheduling for incoming IP packets carrying DSCP priorities, use the ip-dscp-inbound command to configure mappings from DSCP priorities of packets to PHBs and color the packets. After a DiffServ domain is bound to the inbound interface of packets, the device forwards the packets to queues based on PHBs of the packets. Congestion management is implemented. Packets are scheduled according to their colors after a discard template is configured, avoiding congestion.
Precautions
The color is used to determine whether packets are discarded during flow control, and is independent of the mapping from internal priorities to queues.
The ToS values priorities of packets are mapped to the corresponding internal priorities and the packets are colored accordingly. If no mapping from DSCP priorities to ToS values is specified, the device uses the default mappings of the system.
If you do not specify the parameter dscp-value when running the undo ip-dscp-inbound command, all mappings from DSCP priorities to ToS values is restored.