How Spanning Tree Protocol Works

The Spanning Tree Protocol (STP) works by preventing loops in redundant Layer 2 topologies through the election of a root bridge and selective port blocking. In this lesson, you will learn how BPDUs control this process to keep the network stable and resilient.

  • In this lesson, we will walk through how the Spanning Tree Protocol works. You will learn how it detects loops, elects the root bridge and activates only the necessary links to ensure a stable network.

    How Spanning Tree Protocol Works in a triangle topology by blocking one redundant link to prevent loops

    Figure 1 - Spanning Tree Protocol Topology

    In this network topology with three switches, STP blocks one redundant link to prevent loops. If the active link fails, the previously blocked link becomes active, ensuring uninterrupted communication.

    Now, you might wonder : "How does STP determine which paths to block and which to keep active?"

    Good question ! It starts by identifying and organizing switches using a unique identifier known as the Bridge ID (BID).

    Let’s see how this works.

    Answer the question below