< Home

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 1 lists the default mappings from the DSCP priorities to PHBs and colors of incoming IP packets in a DiffServ domain.

Table 1 Mappings from DSCP priorities to PHBs and colors of incoming IP packets in the 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

Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, S5735S-S, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.

Format

S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-S, S5731S-H, S5732-H, S6720-EI, S6720S-EI, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S:

ip-dscp-inbound dscp-value phb service-class [ green | yellow | red ]

undo ip-dscp-inbound [ dscp-value ]

S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S:

ip-dscp-inbound dscp-value phb service-class

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.

-

Views

DiffServ domain view

Default Level

2: Configuration level

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 CoS values of packets are mapped to the corresponding internal priorities and the packets are colored accordingly. If no mapping from DSCP priorities to CoS 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 CoS values is restored.

  • The DiffServ domain default exists by default. On the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S, only the DiffServ domain default is supported.

Example

# For devices excluding the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S: In DiffServ domain ds1, map DSCP priority 8 of the incoming IP packets to PHB AF1 and mark the packets yellow.

<HUAWEI> system-view
[HUAWEI] diffserv domain ds1
[HUAWEI-dsdomain-ds1] ip-dscp-inbound 8 phb af1 yellow

# For the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S: In the DiffServ domain, map DSCP priority 8 of the incoming IP packets to PHB AF1.

<HUAWEI> system-view
[HUAWEI] diffserv domain default
[HUAWEI-dsdomain-default] ip-dscp-inbound 8 phb af1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >