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


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


Configuration Guide - Ethernet Switching

CloudEngine 8800, 7800, 6800, and 5800 V200R003C00

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, MUX VLAN, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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).


A BPDU is encapsulated in an Ethernet frame. Its destination MAC address is a multicast MAC address 01-80-C2-00-00-00. The Length field specifies the MAC data length, and is followed by the LLC header. Figure 9-6 shows the Ethernet frame format.

Figure 9-6 Format of an Ethernet frame

There are two types of STP BPDUs:

  • Configuration BPDUs are heartbeat packets. STP-enabled designated ports send configuration BPDUs at Hello intervals.
  • Topology Change Notification (TCN) BPDUs are sent only after a device detects a network topology change.

Configuration BPDU

Configuration BPDUs are used most commonly and are used for exchanging topology information among STP devices.

Each bridge actively sends configuration BPDUs during initialization. After the network topology becomes stable, only the root bridge actively sends configuration BPDUs. Other bridges send configuration BPDUs only after receiving configuration BPDUs from upstream devices. A configuration BPDU is at least 35 bytes long, and includes the parameters such as the BID, root path cost, and PID. A bridge processes a received configuration BPDU only when it finds that at least one of the sender BID and PID is different from that on the local receive port. If both fields are the same as those on the receive port, the bridge drops the configuration BPDU. This reduces the number of BPDUs that a bridge needs to process.

A configuration BPDU is sent in the following scenarios:
  • After STP is enabled on ports of a device, the designated port on the device sends configuration BPDUs at Hello intervals.
  • When the root port on a device receives a configuration BPDU, the device sends a copy of the configuration BPDU to each of its designated ports.
  • When a designated port receives a low-priority configuration BPDU, the designated port immediately sends its own configuration BPDU to the downstream device.

Table 9-7 describes fields in a BPDU.

Table 9-7 Fields in a BPDU




Protocol Identifier


The value is fixed at 0.

Protocol Version Identifier


The value is fixed at 0.



Indicates the type of a BPDU:
  • 0x00: configuration BPDU
  • 0x80: TCN BPDU



Indicates whether the network topology has changed.

  • The rightmost bit is the Topology Change (TC) flag.
  • The leftmost bit is the Topology Change Acknowledgment (TCA) flag.

Root Identifier


Indicates the BID of the current root bridge.

Root Path Cost


Indicates the accumulated path cost from a port to the root bridge.

Bridge Identifier


Indicates the BID of the bridge that sends the BPDU.

Port Identifier


Indicates the ID of the port that sends the BPDU.

Message Age


Records the time that has elapsed since the original BPDU was generated on the root bridge.

If the configuration BPDU is sent from the root bridge, the value of Message Age is 0. Otherwise, the value of Message Age is the total time spent to transmit the BPDU from the root bridge to the local bridge, including the transmission delay. In real-world situations, the Message Age value of a configuration BPDU increases by 1 each time the configuration BPDU passes through a bridge.

Max Age


Indicates the aging time of a BPDU.

Hello Time


Indicates the interval at which BPDUs are sent.

Forward Delay


Indicates the period during which a port stays in the Listening and Learning states.

Figure 9-7 shows the Flags field. Only the leftmost and rightmost bits are used in STP.

Figure 9-7 Format of the Flags field


A TCN BPDU contains only three fields: Protocol Identifier, Version, and Type, as described in Table 9-7. The Type field is four bytes long and is fixed at 0x80.

When the network topology changes, TCN BPDUs are transmitted upstream until they reach the root bridge. A TCN BPDU is sent in the following scenarios:
  • A port transitions to the Forwarding state.
  • A designated port receives a TCN BPDU and sends a copy to the root bridge.
Updated: 2019-05-08

Document ID: EDOC1100004351

Views: 125705

Downloads: 295

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