# Spanning Tree Port States

**URL:** <https://forum.networklessons.com/t/spanning-tree-port-states/1113>\
**Category:** Lessons Discussion\
**Created:** [December 26, 2016, 11:01pm UTC](https://forum.networklessons.com/t/spanning-tree-port-states/1113 "2016-12-26T23:01:39Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [February 16, 2017, 8:14am UTC](https://forum.networklessons.com/t/spanning-tree-port-states/1113/17 "2017-02-16T08:14:56Z")

</div>

Hello Jose

There are two situations which require a switch to begin STP convergence procedures. The direct and indirect link failures. Let’s take a look at both:

1. A **direct link failure** is when a switch detects a loss of carrier on its _own_ port and immediately declares the port as disconnected. Take a look at the following figure:

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/d/d13bde068cf955d2ed27a38d523d248b53cd5268.png)

The STP is converged and Port B is in blocking state. Imagine Port A goes down. The bridge no longer detects a carrier on that port and immediately causes Port B to go through the STP procedure going into the Listening and Learning states for a total of 15+15=30 seconds. Convergence time in this case is at 30 seconds.

1. An indirect link failure is when a link goes down on _another_ switch. This is not immediately detected. Take a look at the following figure:

 ![image](https://cdn-forum.networklessons.com/uploads/default/original/2X/0/095d9a4bfc14f085e8ac64eaa680261c00f53492.png)

In this figure, SW1 is the Root Bridge and Port B on SW3 is the blocked port. Also, assume SW2 has a better Bridge ID than SW3. Imagine that Port C on SW2 goes down. How will Port B on SW3 react? Let’s go through the steps.

- SW2 will no longer be receiving BPDUs from SW1 and will declare itself root bridge.
- SW2 will start advertising new BPDUs to SW3 telling SW3 that it is root bridge. SW3 will ignore them because SW1 BPDUs it’s still receiving are superior.
- SW3 will keep the information from the previously received BPDUs on Port B for 20 seconds which is the blocking timer
- Once this timer is expired, Port B will begin considering the BPDUs in the Listening state and will begin relaying SW1’s BPDUs to SW2 since they are superior
- Then SW2 will detect the better information it is receiving on Port D and will cycle the port through Listening and Learning.
- Both switches (2 and 3) will eventually place their ports in the forwarding states and connectivity will be recovered.

In this case, the total time is 20+15+15=50.

The 50 second convergence time is more often quoted for STP because it is the absolute _longest_ time that you may have to wait for STP to fully converge.

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/spanning-tree-port-states/1113)._
