Definition – BPDU Frames
BPDU stands for Bridge Protocol Data Unit. It is a type of frame used by spanning tree protocols (STP, RSTP, MSTP, etc.) to exchange information between switches in a network. BPDU frames contain essential information for constructing and maintaining the spanning tree topology, including information about bridge priority, port roles, and path costs.

Here’s a detailed explanation of the components and purpose of BPDU frames
- Source and Destination Addresses:
- The source address of the BPDU frame is the MAC address of the transmitting switch.
- The destination address is a well-known multicast address (01:80:C2:00:00:00) indicating that the frame is intended for spanning tree protocol operations.
- Bridge ID (BID):
- The Bridge ID uniquely identifies the sending switch within the spanning tree network.
- It consists of two parts: the Bridge Priority and the MAC Address of the switch.
- The Bridge Priority is a configurable value that determines the priority of the switch in the spanning tree topology. Lower values indicate higher priority.
- The MAC Address is the hardware address of the switch’s bridge or management interface.
- Root Bridge ID:
- BPDU frames contain the Bridge ID of the root bridge, indicating the identity of the root bridge within the spanning tree network.
- Port Information:
- Each BPDU frame includes information about the sending switch’s ports, such as the port role and port state.
- Port roles include root port, designated port, alternate port, and backup port.
- Port states indicate whether the port is forwarding, blocking, or in a transitional state (e.g., learning).
- Path Cost:
- BPDU frames also contain information about the path cost associated with each port.
- The path cost represents the cumulative cost of reaching the root bridge through that port. Lower path costs indicate better paths.
- Topology Change Notification:
- BPDU frames include flags to indicate changes in the spanning tree topology, such as topology changes, topology change acknowledgments, and configuration change notifications.
- Hello Timer:
- Some BPDU frames include a hello timer field, indicating the interval at which the switch sends BPDUs to its neighbours.
- The hello timer helps switches detect link and network failures more quickly, facilitating faster convergence of the spanning tree topology.
Summary
BPDU (Bridge Protocol Data Unit) frames are fundamental to the Spanning Tree Protocol (STP), which is employed in Ethernet networks to prevent network loops by establishing a loop-free topology. BPDUs are exchanged between network switches to share information about the network structure, thereby ensuring efficient and stable network operations.
Key Functions:
- Root Bridge Election: BPDUs play a crucial role in determining the root bridge, which is the central reference point for all STP calculations. The switch with the lowest bridge ID is elected as the root bridge, guiding the formation of the spanning tree.
- Path Selection and Loop Prevention: Through the exchange of BPDUs, switches can determine the best paths to the root bridge. Non-optimal paths are blocked to prevent loops, ensuring a loop-free network topology.
- Handling Topology Changes: BPDUs help the network adapt to changes. When a change in topology is detected, Topology Change Notification (TCN) BPDUs are sent to inform all switches, prompting them to update their spanning tree calculations and avoid disruptions.
Types of BPDUs:
Topology Change Notification (TCN) BPDU: Alerts switches about changes in the network, ensuring quick adaptation and stability.
Configuration BPDU: Contains detailed information about the network topology, including bridge IDs and path costs, which are essential for root bridge election and path determination.
BPDU frames are vital for the operation of the Spanning Tree Protocol, enabling switches to communicate network topology information, elect the root bridge, select optimal paths, and adapt to changes, thereby maintaining a stable, efficient, and loop-free network.
Useful Links:
https://datatracker.ietf.org/doc/html/rfc7727
https://sanchitgurukul.com/switch
