remark tos

Function

The remark tos command enables a device to re-mark the ToS value of an IP packet.

The undo remark tos command cancels the configuration.

By default, re-marking the ToS value of an IP packet is not configured in traffic behavior view.

Format

remark tos tos

undo remark tos [ tos ]

Parameters

Parameter Description Value
tos

Specifies the ToS value of an IP packet.

The value is an integer in the range 0 to 15.

Views

Traffic behavior view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

The ToS values of IP packets need to be re-marked in some cases. For example, if the service traffic received by an ingress has the ToS flag (the upstream domain is a ToS domain or users add the ToS flag to the traffic), the ingress needs to re-mark the ToS flag of the service traffic based on the SLA.

If the priority of an IPv4 packet that matches a traffic classifier needs to re-marked, the remark tos command can be used to re-mark the ToS value of the IPv4 packet in order to adjust the priority of the packet.

Configuration Impact

If the remark tos command is run repeatedly in the same traffic behavior view, the latest configuration overrides the previous configuration.

If the remark dscp command has been run in the view of a traffic behavior, the remark dscp command configuration will be deleted after the remark tos command is run in the view of the traffic behavior.

Example

# Re-mark the ToS value of an IP packet to 12.
<HUAWEI> system-view
[~HUAWEI] traffic behavior behavior1
[*HUAWEI-behavior-behavior1] remark tos 12
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >