< Home

input (DSCP mapping table view)

Function

The input command sets the mapping in a DSCP mapping table.

The undo input command restores the default mapping in a DSCP mapping table.

Table 1 lists the default mapping from DSCP priorities to 802.1p priorities and from DSCP priorities to drop priorities. The default mapping from DSCP priorities to DSCP priorities remains unchanged.

Table 1 Default mapping from DSCP priorities to 802.1p priorities and from DSCP priorities to drop priorities

Input DSCP

Output Dot1p

Output DP

0-7

0

0

8-15

1

0

16-23

2

0

24-31

3

0

32-39

4

0

40-47

5

0

48-55

6

0

56-63

7

0

Only the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI support this command.

Format

input { input-value1 [ to input-value2 ] } &<1-10> output output-value

undo input { all | { input-value1 [ to input-value2 ] } &<1-10> }

Parameters

Parameter

Description

Value

input-value1

Specifies the start DSCP priority that is entered.

The value is an integer that ranges from 0 to 63. A larger value indicates a higher priority.

to input-value2

Specifies the end DSCP priority that is entered.

The value is an integer that ranges from 0 to 63. A larger value indicates a higher priority. The value of input-value2 must be greater than the value of input-value1 and the two values determine the DSCP range.

output output-value

Specifies the output 802.1p priority, output drop precedence, or output DSCP value.

The current mapping table view determines the value of output-value. The value ranges are as follows:

The value ranges from 0 to 7 in the dscp-dot1p view.

The value ranges from 0 to 2 in the dscp-dp view.

  • The drop priority 0 corresponds to green packets.
  • The drop priority 1 corresponds to yellow packets.
  • The drop priority 2 corresponds to red packets.

The value ranges from 0 to 63 in the dscp-dscp view.

A larger value indicates a higher priority.

all

Indicates all mappings in the DSCP mapping table.

-

Views

DSCP mapping table view

Default Level

2: Configuration level

Usage Guidelines

You must run the qos map-table command to enter the corresponding DSCP mapping table view before running the input command.

The input command modifies the mapping from DSCP priorities to Dot1p priorities, from DSCP priorities to drop priorities, and from DSCP priorities to DSCP priorities in the DSCP table.

After running the input command, you can run the display qos map-table command to view the current DSCP mapping.

Example

# Set the mapping in the DSCP mapping table: Level 0 to level 7 in the DSCP mapping table are mapped to level 0 of 802.1p priority.

<HUAWEI> system-view
[HUAWEI] qos map-table dscp-dot1p
[HUAWEI-dscp-dot1p] input 0 to 7 output 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >