Running the STP Algorithm

When STP is run, one of its first jobs is to designate a root switch. After this is chosen, each switch will calculate the shortest distance (best cost) to the root. For each LAN segment, a designated switch will be chosen based on the switch that has the best cost. Ports that provide redundant connections to the root are blocked, leaving a single path to the root, thus effectively eliminating any loops. The following sections explain this process in more detail.

Root Switch Election Process

One of the first tasks of STP is to elect the root switch. Switches sharing BPDUs will discover the current topology of the network, including all the switch identifiers. A switch's identifier consists of a 2-byte priority and a ...

Get BCMSN Exam Cram™ 2 (Exam Cram 642-811) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.