host-packet dscp

Function

The host-packet dscp command configures mappings between DSCP values of protocol packets and internal priorities and between DSCP values and colors.

The undo host-packet dscp command deletes mappings between DSCP values of protocol packets and internal priorities and between DSCP values and colors.

By default, protocol packets enter the CS6 queue without the color during internal queue scheduling.

Format

host-packet dscp dscp-value map local-service cos-value [ color color ]

undo host-packet dscp dscp-value [ map local-service cos-value color color ]

Parameters

Parameter Description Value
dscp-value

Sets the DSCP value of protocol packets.

The value is an integer that ranges from 0 to 63.

map

Transform interior precedence to exterior precedence.

-

local-service cos-value

Sets the internal priority.

The value can be BF, AF1, AF2, AF3, AF4, EF, CS6, or CS7.

color color

Sets the color of the internal priority.

The value can be green, yellow, or red. The default value is green.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

By default, protocol packets enter the CS6 queue without the color during internal queue scheduling. To facilitate internal scheduling of protocol packets, use the host-packet dscp map command to configure mappings between DSCP values of protocol packets and internal priorities and between DSCP values and colors.

Prerequisites

The DSCP values of protocol packets that the host delivers have been configured using the host-packet type control-protocol dscp command or host-packet type management-protocol dscp command.

In VS mode, this command is supported only by the admin VS.

Example

# Configure protocol packets with DSCP value 24 to enter the EF queue with the color green.
<HUAWEI> system-view
[~HUAWEI] host-packet dscp 24 map local-service ef color green
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >