< Home

remark dscp

Function

The remark dscp command configures an action of re-marking the DSCP priority in IP packets in a traffic behavior.

The undo remark dscp command deletes the configuration.

By default, an action of re-marking the DSCP priority in IP packets is not configured in a traffic behavior.

Format

remark dscp { dscp-name | dscp-value }

undo remark dscp

Parameters

Parameter

Description

Value

dscp-name

Specifies the DSCP priority name in IP packets.

The value can be ef, af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7, or default.

dscp-value

Specifies the DSCP priority in IP packets.

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

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To provide differentiated services based on the DSCP priority, run the remark dscp command to configure the device to re-mark the DSCP priority in IP packets in a traffic behavior.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing DSCP priority re-marking.

Precautions

If a traffic policy containing remark dscp is applied to the outbound direction on an interface, the device still processes outgoing packets based on the original priority but the downstream Layer 3 device or above processes the packets based on the re-marked priority.

If the traffic policy containing remark dscp and the trust dscp command are used in the outbound direction on the interface of packets, the remark dscp command changes DSCP priorities in packets because the remark dscp command takes precedence over the trust dscp command.

The remark dscp and remark ip-precedence commands cannot be used in the same traffic behavior.

If you run the remark dscp command in the same traffic behavior view multiple times, only the latest configuration takes effect.

After the remark dscp { dscp-name | dscp-value } command is configured in the traffic behavior view, the system maps the packet priority to a local priority based on the DSCP priority and sends the packet to a queue based on the mapped priority. If the remark local-precedence { local-precedence-name | local-precedence-value } command is also configured, the system sends packets to queues based on the priority configured using this command.

Applying a traffic policy containing remark dscp does not change the local priority of packets on the device where remark dscp is configured. To change the local priority of packets on the device, configure remark local-precedence in the traffic policy.

Example

# Re-mark the DSCP priority in IP packets with 56 in the traffic behavior b1.

<HUAWEI> system-view
[HUAWEI] traffic behavior b1
[HUAWEI-behavior-b1] remark dscp 56
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >