Kamran Mushtaq
Back to Networking
Networking

Bridge ID (Spanning Tree Protocol - STP)

Added: July 16, 2026

Definition

Bridge ID (BID) is the unique identity that STP assigns to every switch. Its main role is to help STP compare all switches and elect one Root Bridge, which becomes the central reference point for the entire Layer 2 network.

A Bridge ID consists of:

  • Bridge Priority (configurable value)
  • Extended System ID (VLAN ID)
  • MAC Address (unique for every switch)

STP compares Bridge IDs, and the switch with the lowest Bridge ID becomes the Root Bridge.

The Problem That Led to It

Imagine five switches are connected with multiple redundant links. STP must choose one switch as the network's center so every other switch knows which paths to use.

Before Bridge ID, there was no standard way to compare switches. If multiple switches believed they should control the network, different path decisions could occur, leading to loops and unstable networks.

A unique identifier was needed so every switch could reach the same decision automatically.

What Problem It Solves

Bridge ID gives every switch a unique identity, allowing all switches to agree on one Root Bridge. This creates a single, loop-free path calculation for the entire network.

What Happens If Not Used

Without Bridge IDs:

  • Root Bridge cannot be elected.
  • Different switches may make different decisions.
  • Network loops and broadcast storms can occur.

Easy Wording

Bridge ID is like a switch's ID card that STP uses to decide which switch should lead the network.

Layman Example

Imagine several team leaders apply to manage a project. Each has a unique employee ID. The company simply chooses the person with the smallest ID as the leader. Similarly, STP compares Bridge IDs and selects the switch with the lowest one as the Root Bridge.

Technical Example

Before Bridge ID

  • Switch A, B, and C are connected with redundant links.
  • No common method exists to choose the main switch.
  • Each switch could make different forwarding decisions.

After Bridge ID

  • Each switch advertises its Bridge ID.
  • All switches compare Bridge IDs.
  • The switch with the lowest Bridge ID becomes the Root Bridge.
  • All other switches calculate their best paths toward that Root Bridge.

Limitation

A Bridge ID only identifies which switch becomes the Root Bridge. It does not determine which physical ports should forward or block traffic.

Solution The next concept is Root Bridge Election. It explains how STP compares Bridge IDs, elects the Root Bridge, and begins building a loop-free topology.