< Home

color-flag loss-measure

Function

The color-flag loss-measure command configures the color bit used in network-level packet loss measurement.

The undo color-flag command restores the default color bit used in network-level packet loss measurement.

By default, bit 6 in the ToS field is used as the color bit for network-level packet loss measurement. The default configuration is recommended.

Format

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

undo color-flag

Parameters

Parameter Description Value
tos-bit tos-bit Specifies a bit in the range of bits 3 to 7 in the ToS field of IP packets as the color bit for network-level packet loss measurement. The value is an integer that ranges from 3 to 7.
flags-bit0 Specifies bit 0 in the Flags field of IP packets as the color bit for network-level packet loss measurement. -

Views

IPFPM-DCP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before deploying Packet Conservation Algorithm for Internet (iPCA) to implement network-level packet loss measurement, run this command to configure the color bit. You can select a color bit according to the actual situation and network planning.

Prerequisites

Global DCP has been enabled using the nqa ipfpm dcp command.

Precautions

All devices on a network must use the same color bit setting. When the DS field is used to provide differentiated service, it is not recommended that you configure bits 3-5 as color bits because the measurement result may be inaccurate.

When both network-level and device-level packet loss measurements are enabled on a device, the color bits must be differentiated.

Example

# Configure bit 3 in the ToS field as the color bit for network-level packet loss measurement.

<HUAWEI> system-view
[HUAWEI] nqa ipfpm dcp
[HUAWEI-nqa-ipfpm-dcp] color-flag loss-measure tos-bit 3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >