STP Root Bridge, Root Port and Designated Port Election Principles

Election principles for root bridges, root ports and designated ports

The Root Identifier, Root Path Cost, Bridge Identifier and Port Identifier fields carried in the BPDU packet constitute a message priority vector {Root Bridge ID, Root Path Cost, Sending Device BID, Sending Port PID}. Devices interact and compare the values of fields in the message priority vector to determine the root bridge, root port, and designated port.
  • BID consists of bridge priority and bridge MAC address, with the upper 16 bits being bridge priority and the remaining lower 48 bits being MAC address.
  • Root Path Cost RPC (Root Path Cost) is the cumulative value of the path cost of each port on each bridge that a port passes through to the root bridge. Path Cost is a port variable, which is the reference value used by Spanning Tree Protocol to select links. Spanning tree protocol prunes the network into a loop-free tree structure by calculating path cost, selecting stronger links and blocking redundant links.
  • PID consists of two parts, the upper 4 bits are port priority, and the lower 12 bits are port number.

 root bridge election

The principle of minimum BID: The smallest BID device is elected as the root bridge.

 root port election

  • The principle of least RPC: On non-root bridge devices, the port with the least RPC root path cost is elected root port.
  • Principle of minimum sending device BID: If two or more ports on a non-root bridge device have the same root path cost, the port with the minimum sending device BID in the received BPDU message is elected as the root port.
The root path cost from each port on the root bridge to the root bridge is 0, and there is no root port on the root bridge.

Designated port election

Minimum PID principle: When the root path cost is the same, the port with higher PID value is blocked, and the port with lower PID value is elected as the designated port.

As shown in Figure 5-8, PID only works when the PID of port PA1 on DeviceA is smaller than that of port PA2. Since the root path overhead and sending device BID are the same in the BPDUs received on the two ports, PID is the only basis for eliminating loops.

Figure 5.8 Topology for comparison using PID

Updated on November 27, 2024

Frequently Asked Questions

Ebooks FAQ

  • May I share my eBooks with others?

    You can share Ebooks with anyone

  • What is an eBook?
    1. eBooks are digital, downloadable versions of books. In most cases, they look exactly like the print versions with the same graphs, charts, and illustrations.
    2. You can download and read eBooks on your desktop, laptop, and mobile devices with the free Reader application.
  • Do I need special software or hardware to read eBooks?

    All you need is your PC, laptop or hand held device and the free Reader software. We offer eBooks in three different formats: PDF download, EPUB download and Online Reader.  Our Online Reader requires no software other than an internet browser. For downloading, we will provide you with a link to download the appropriate Reader software free of charge when you make a our member. 

  • I have a questions

    If you have any questions including file download or Ebooks name errors, copyright etc, please contact us

  • How to downloan ebooks?

    Immediately. Once you complete you register a member account first and download it free 

  • what’s Ebooks files format ?

    our eBooks as EPUB, CHM and PDF files. 

    To read EPUB files, you can download the latest version of the free Adobe Digital Editions here.

    To read PDF files, you can download the latest version of the free Adobe Acrobat Reader here. 

    Notes:some files need unzip,you can read it

  • I can’t find the some ebooks?

    If you need any Ebooks, please contact us.