No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Statistics Configuration Commands

Statistics Configuration Commands

qos statistics ifg enable

Function

The qos statistics ifg enable command configures the device to count the inter-frame gap and preamble of Ethernet frames when the device collects traffic statistics.

The undo qos statistics ifg disable command restores the default configuration.

By default, the device does not count the inter-frame gap and preamble of Ethernet frames when the device collects traffic statistics.

Format

qos statistics ifg enable

undo qos statistics ifg enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The gap between Ethernet frames is called the inter-frame gap, which is of 12 bytes.

The Ethernet frame length is from the destination MAC address to the FCS. The 8-byte preamble is appended to an outgoing Ethernet frame and used for synchronization. When the receiver receives the preamble, it determines that the received one is an Ethernet frame.

After the statistics enable (traffic behavior view) command is used to configure traffic statistics, the device does not count the inter-frame gap and preamble of Ethernet frames by default during traffic statistics collection. After the qos statistics ifg enable command is used, the device calculates the inter-frame gap and preamble of Ethernet frames during traffic statistics collection.

Example

# Configure the device to count the inter-frame gap and preamble of packets when the device calculates traffic statistics.

<HUAWEI> system-view
[~HUAWEI] qos statistics ifg enable

statistics enable (traffic behavior view)

Function

Using the statistics enable command, you can enable the statistics function in a traffic behavior.

Using the undo statistics enable command, you can disable the statistics function in a traffic behavior.

By default, the statistics function in a traffic behavior is disabled.

Format

statistics enable

undo statistics enable

Parameters

None

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To view the statistics on a traffic policy, you can use the statistics enable command to enable the statistics function. After the statistics function is enabled, you can use the display traffic-policy statisticscommand to view the statistics.

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 the traffic statistics collection function.

Example

# Enable the statistics function in a traffic behavior test.

<HUAWEI> system-view
[~HUAWEI] traffic behavior test
[*HUAWEI-behavior-test] statistics enable

traffic-policy outbound-legacy-mode

Function

The traffic-policy outbound-legacy-mode command enables MQC-based traffic statistics on a loopback interface in the outbound direction.

The undo traffic-policy outbound-legacy-mode command cancels the configuration.

By default, the MQC-based traffic statistics function is disabled on a loopback interface in the outbound direction.

NOTE:

Only the CE6870EI supports this command.

Format

traffic-policy outbound-legacy-mode

undo traffic-policy outbound-legacy-mode

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the MQC-based traffic statistics function is enabled on an interface in the outbound direction and traffic classification rules are based on the source IPv4 address, destination IPv4 address, protocol type, source port number, and destination port number, Layer 2 traffic statistics cannot be collected on the CE6870EI. To ensure that the switch can collect statistics on Layer 2 traffic that matches traffic classification rules, enable this function.

Example

# Enable MQC-based traffic statistics on a loopback interface in the outbound direction.

<HUAWEI> system-view
[~HUAWEI] traffic-policy outbound-legacy-mode
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 42642

Downloads: 326

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next