802.1D Bridge Protocol Data Unit (BPDU) Frame Format


The spanning tree algorithm exchanges the Bridge Protocol Data Unit (BPDU) to elect the Root Bridge. It is a frame containing 12 different fields with different information. The information in the BPDU is used to determine the root bridge and the paths to the root bridge. The figure below illustrates the Bridge Protocol Data Unit (BPDU) frame fields.
The first four fields recognize the protocol, version, message type, and status flags. The following four fields identify the root bridge and the path’s cost to the root bridge. The last four fields decide the timer values for Bridge Protocol Data Unit (BPDU) messages. When sent across the network, the Bridge Protocol Data Unit (BPDU) frame is encapsulated in an 802.3 Ethernet frame.
The 802.3 Ethernet headers contain the source and destination addresses of the Bridge Protocol Data Unit (BPDU) frame. The figure below illustrates an STP packet encapsulated into 802.3 headers. This frame has a destination MAC address of 0180:C200:0000.
This is a multicast address for the spanning tree group. When a frame is addressed with this MAC address, each switch the domain configured for the spanning tree accepts and reads the information from the frame. All other devices on the network ignore the frame.

The figure below illustrates the Bridge Protocol Data Unit (BPDU) detail inside the 802.3 headers. The root ID and the BID is the same in the captured Bridge Protocol Data Unit (BPDU) frame. This indicates that the frame was captured from a root bridge. All the timers are set to the default values.
802.1D Bridge Protocol Data Unit (BPDU) Propagation and Process
When a switch booted, it sends a Bridge Protocol Data Unit (BPDU) to assume it is a root bridge for the spanning-tree protocol. The BPDU frames contain the BID of the local switch as the root ID, as you can see in the above image.
The default BPDU sending time is two seconds, so the switch sends a BPDU after every two seconds. The default value of the Hello timer in the BPDU frame is set to two seconds. Each switch maintains local information about its self-BID, root ID, and the path cost to the root.
When nearby switches receive a Bridge Protocol Data Unit (BPDU) frame containing the root ID, the root ID from the BPDU frame is compared with the local root ID. If the root ID in the BPDU frame is lower than the local root ID of that switch, it updates the local root ID and the ID in its Bridge Protocol Data Unit (BPDU) messages.
These messages show the new root bridge on the network. The distance to the root bridge is also updated by increasing the path cost of the incoming interface. For example, if the Bridge Protocol Data Unit (BPDU) frame is received on an Ethernet port, the path cost would increment by 1100. If the root ID of the local switch is lower than the root ID received in the Bridge Protocol Data Unit (BPDU) frame, the Bridge Protocol Data Unit (BPDU) frame is discarded.
When the root ID is updated to identify a new root bridge, all consequent Bridge Protocol Data Unit (BPDU) frames sent from that switch contain the new root ID, including the path cost. So, all other nearby switches can always see the lowest root ID identified.
As the BPDU frames receive and pass between other adjacent switches, the path cost is constantly increased to indicate the total path cost to the root bridge. Each switch chooses the best path in the spanning tree to use its path costs to reach its root bridge.
FAQs
1. What is a Bridge Protocol Data Unit (BPDU)?
A BPDU is a data message exchange across switches within an extended local area network. BPDUs contain information on ports, addresses, priorities, and costs and are essential for enabling the Spanning Tree Protocol (STP) to maintain a loop-free network topology.
2. What role do BPDUs play in network stability?
BPDUs help detect loops and ensure a loop-free network configuration. They allow switches to share information about network topology and make decisions about preventing loops and optimizing paths.
3. How often are BPDUs sent in a network?
BPDUs are typically sent at regular intervals by network switches. The standard interval is every 2 seconds. This frequency ensures continuous monitoring and maintenance of the network topology.
4. What are the different types of BPDUs?
There are two main types of BPDUs: Configuration BPDUs and Topology Change Notification (TCN) BPDUs. Configuration BPDUs are used to maintain the Spanning Tree Protocol (STP), while TCN BPDUs are used to notify changes in the network topology.
5. How do BPDUs prevent network loops?
BPDUs help identify redundant paths in a network. The Spanning Tree Protocol (STP) uses BPDU information to disable the redundant paths, ensuring only one active path between any network devices, thus preventing loops.
6. What is the BPDU Guard, and why is it important?
BPDU Guard is a feature that can be enabled on network ports to prevent BPDUs from being received on those ports. This feature is essential for protecting the network from loops caused by misconfigured devices or malicious attacks.
7. How can BPDUs impact VLAN configurations?
BPDUs are crucial for maintaining network topology within VLANs. They help ensure that each VLAN maintains a loop-free topology and traffic efficiently routed within the network.
8. What is the difference between BPDU filtering and BPDU guard?
BPDU filtering prevents BPDUs from being sent or received on specified ports, while the BPDU guard shuts down a port if it receives a BPDU, preventing the port from causing potential network loops.
9. How do you configure BPDUs on a network switch?
Configuring BPDUs on a network switch typically involves accessing the switch’s management interface and enabling or adjusting BPDU-related settings, such as allowing BPDU Guard or configuring BPDU intervals.
10. Why is understanding BPDU types and their functions important for network administrators?
Understanding BPDU types and their functions is crucial for network administrators to ensure a stable and efficient network. Proper BPDU management helps prevent network issues, optimize traffic flow, and maintain overall network health.
Let me know if you need more information or have other questions!
PVST+ » Networkustad
October 25, 2019 @ 2:45 pm
[…] The PVST+ requires larger CPU process in the switches. It also consumes more bandwidth for BPDU than a traditional CST implementation of STP because all VLAN runs a separate instance of […]
PortFast and BPDU Guard » Networkustad
October 28, 2019 @ 4:05 pm
[…] a Port Fast configuration, BPDUs should never be received, because receiving of BPDU indicate that another bridge or switch is connected to the port. The receiving of BPDU is causing a […]