color-flag

Function

The color-flag command configures measurement flags.

The undo color-flag command restores the default measurement flags.

By default, the sixth bit in the type of service (ToS) field of the IPv4 packet header is used as the loss measurement flag; the seventh bit in the ToS field of the IPv4 packet header is used as the delay measurement flag. Using the default configurations is recommended.

Format

color-flag loss-measure { tos-bit tos-bit | flags-bit0 } delay-measure { tos-bit tos-bit | flags-bit0 }

color-flag loss-measure { tos-bit tos-bit | flags-bit0 } delay-measure none

undo color-flag

Parameters

Parameter Description Value
tos-bit tos-bit

Specifies a bit from the third to seventh bits in the ToS field of the IPv4 packet header as a measurement flag.

The value is an integer ranging from 3 to 7.

flags-bit0

Specifies Bit 0 in the Flags field of the IPv4 packet header as a measurement flag.

-

delay-measure

Indicates IP FPM delay measurement.

-

loss-measure

Indicates IP Flow Performance Measurement (IP FPM) packet loss measurement.

-

none

Indicates that no measurement flags are set.

-

Views

IPFPM-DCP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ipfpm write

Usage Guidelines

Usage Scenario

Before using IP FPM to measure network performance, run the color-flag command to specify a bit as a measurement flag based on network planning.

Prerequisites

The nqa ipfpm dcp command has been run to enable DCP globally.

Precautions

The loss and delay measurement flags cannot use the same bit, and the bits used for loss and delay measurement must not have been used in other measurement tasks.

This configuration cannot be deleted separately, if the device does not configure IPFPM license.

The IP FPM measurement flag can be configured only in Admin-VS. Other VSs use the measurement flag configurations in Admin-VS. If the measurement flag configuration conflicts with the QoS configuration, modify the measurement flag configuration in Admin-VS.

Example

# Configure IP FPM measurement flags.
<HUAWEI> system-view
[~HUAWEI] nqa ipfpm dcp
[*HUAWEI-nqa-ipfpm-dcp] color-flag loss-measure tos-bit 3 delay-measure tos-bit 4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >