< Home

display l2protocol-tunnel statistics

Function

The display l2protocol-tunnel statistics command displays statistics about Layer 2 protocol packets that are transparently transmitted on a specified interface.

Format

display l2protocol-tunnel statistics interface-type interface-number [ { protocol-type } &<1-16> | user-defined-protocol protocol-name ]

Parameters

Parameter

Description

Value

interface-type interface-number

Displays statistics about Layer 2 protocol packets that are transparently transmitted on a specified interface.
  • interface-type specifies the type of an interface.

  • interface-number specifies the number of an interface.

When specifying an interface in the command, ensure that Layer 2 protocol tunneling is enabled on the interface.

-

protocol-type

Displays statistics about a specified protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Shared Spanning Tree Protocol (SSTP)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)
  • Ethernet Synchronization Message Channel (ESMC)
You can select one or more Layer 2 protocols.

user-defined-protocol protocol-name

Displays statistics about transparently transmitted packets of a user-defined protocol. protocol-name specifies the name of a user-defined protocol.

The value is a string of 1 to 31 characters without spaces.

When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring Layer 2 protocol tunneling, you can run this command to view statistics about transparently transmitted packets of a specified Layer 2 protocol. The command output includes:

  • Number of Layer 2 protocol packets received by the inbound interface

  • Number of Layer 2 protocol packets sent from the outbound interface

  • Number of Layer 2 protocol packets discarded when the threshold is exceeded

According to the output information, you can collect traffic statistics and locate faults on the interface.

When an interface transparently transmits packets of multiple Layer 2 protocols, it is recommended that you specify the optional parameters or a regular expression in the command to filter the output information. Otherwise, too much information will be displayed, causing the following problems:

  • The displayed information is repeatedly refreshed, causing desired information unable to be located.

  • The system does not respond because of prolonged information traversing and searching.

When using this command, pay attention to the following points:

  • If no optional parameter is specified, statistics about all Layer 2 protocol packets transparently transmitted on the specified interface are displayed.

  • If protocol-type is specified, statistics about packets of the specified Layer 2 protocol that are transparently transmitted on the specified interface are displayed.

  • If user-defined-protocol is specified, statistics about packets of the specified user-defined Layer 2 protocol that are transparently transmitted on the specified interface are displayed.

Example

# Display statistics about transparently transmitted STP and HGMP protocol packets.

<HUAWEI> display l2protocol-tunnel statistics GigabitEthernet 0/0/1 stp hgmp
--------------------------------------------------------------------------------
Port                Protocol         Drop       Input      Output     Drop
                                     Threshold  Packets    Packets    Packets
--------------------------------------------------------------------------------
GE0/0/1             stp              100        12345      67890      1235      
Table 1 Description of the display l2protocol-tunnel statistics command output

Item

Description

Port

Name of an interface on which Layer 2 protocol tunneling is enabled.

Protocol

Name of a Layer 2 protocol whose packets are transparently transmitted.

Drop Threshold

Drop threshold of transparently transmitted Layer 2 protocol packets.

The drop threshold is set by using the l2protocol-tunnel drop-threshold command. The unit is packet per second (pps).

When the rate of incoming Layer 2 protocol packets on an interface exceeds the threshold, the interface discards excess packets.

Input Packets

Number of incoming Layer 2 protocol packets on the interface enabled with Layer 2 protocol tunneling.

Output Packets

Number of outgoing Layer 2 protocol packets on the interface enabled with Layer 2 protocol tunneling.

Drop Packets

Number of Layer 2 protocol packets discarded on the interface after the traffic rate exceeds the drop threshold.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >