The Wayback Machine - https://web.archive.org/web/20240717024656/https://www.geeksforgeeks.org/spanning-tree-topology-stp-convergence/
Open In App

Spanning Tree Topology (STP) Convergence

Last Updated : 20 Jul, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Once the Spanning Tree Topology (STP) is established, STP continues to work until some changes occurs. Manual changes that Network Engineer can apply are configuration of Bridge ID and port costs. Also there are other changes like the addition of switch or failure of port of an existing switch. The reaction of STP when some changes occurs by reconfiguration of status (forwarding/blocking) of various port/interface is called STP Convergence. 
Port Costs according to IEEE :

Ethernet Speed IEEE Cost
10 Mbps 2, 000, 000
100 Mbps 200, 000
1 Gbps 20, 000
10 Gbps 2, 000
100 Gbps 200
1 Tbps 20

Steady State Operation of STP :

  • A Hello BPDU is created and send from all working interface of Root switch having root cost of 0.
  • All Non-root switch receive Hello BPDU by adding their BID as sender’s BID and root cost. Now they send Hello BPDU from their designated ports.
  • Above two processes repeats until some changes occurs.

Reaction of Switches to changes in STP topology : Before we proceed to how switches react, it is important to know some timers used by Spanning Tree Protocol. STP Timers :

Timer Default Value Description
Hello 2 seconds Time between two consecutive Hello BPDU created by root switch.
MaxAge 10*Hello time Max time a switch must wait if no Hello received before proceeding to do change.
Forward Delay 15 seconds Time taken by switch to change status of ports from forwarding to blocking and vice-versa.

The reaction of switches are :

  • When a switch does not get expected Hello within Hello time, it continues to work as normal and wait until MaxAge time.
  • Switch waits for MaxAge time if Hello BPDU is received within MaxAge time, switch consider it as some delay in network and continues as before. If not then switch and start changing their topology.
  • Now the status of different ports may change according to new topology adopted by STP. Ports may change their status from forwarding to blocking and vice-versa. But this port status process changing does not do immediately, it goes through two intermediate states i.e, Listening and Learning states.
  • The change of state from blocking to forwarding along with intermediate listening and learning state is bounded by the time of Forward Delay.

Spanning Tree States :

State Data frame forwarding Learning MAC-Address of received frame Nature of State
Blocking No No Stable
Listening No No Transitory
Learning No Yes Transitory
Forwarding Yes Yes Stable
Disabled No No Stable

 



Similar Reads

Difference between Spanning Tree Protocol (STP) and Rapid Spanning Tree Protocol (RSTP)
1. Spanning Tree Protocol (STP) : STP is also known as spanning tree protocol is a layer 2 (Data link layer) protocol, it runs on switches and bridges. The IEEE standard of STP is 802.1D. STP is a feature used to prevent loops when using redundant switches. For example, we have three switches they are all linked together and without STP a loop coul
4 min read
Topology Changes in Spanning Tree Protocol (STP)
Spanning Tree Protocol (STP) is used to prevent loops in the network due to redundant connections between switches in the network. It determines an efficient path from non-root switches to root switches with the help of Bridge Protocol Data Unit (BPDUs). BPDU carries information regarding topology changes within the network to notify all the switch
4 min read
Types of Spanning Tree Protocol (STP)
Prerequisite - Spanning Tree Protocol Spanning Tree Protocol (STP) is used to make a loop free network by monitoring the network to track all the links and shut down the least redundant ones. Root bridge is a switch in a single VLAN or whole topology (according to the type of STP standard used) which is responsible for distributing BPDUs and block
3 min read
Working of Spanning Tree Protocol (STP)
Spanning Tree Protocol (STP) prevents the looping of the frame by putting the interfaces of the switch in either forwarding or blocking state. How Switch is able to decide which interface should be in forwarding or blocking state. We’ll learn the answer to this question in this article. Before we further proceed, we must know some terms. BID – It s
3 min read
Introduction of Spanning Tree Protocol (STP)
In a LAN, redundant links are added to improve the network availability of LAN. But these redundant links may cause the frame to loop in the network for an infinite time until some action is taken, e.g, some links are taken down. To cope with the problem of frame looping, Spanning Tree Protocol (STP) comes into play. Need for Spanning Tree: Conside
3 min read
How Spanning Tree Protocol (STP) Select Designated Port?
Spanning tree protocol is a type of communication protocol that functions to build a loop-free topology, which means the arrangement of elements in a computer network. STP commonly works for layer-2 bridges and switches. It also provides a backup link for the network system if the active link fails. Layer-2 devices send the data in the form of fram
3 min read
Difference between Tree Topology and Bus Topology
1. Tree Topology: Tree topology is a type of network topology in which the nodes are arranged in the design of a tree. In tree topology, branching cable starts from the node at the head top known as the root node. The branching cable having no loops connect the root with all other nodes in hierarchical manner for communication. Tree topology is mor
2 min read
Difference between Star Topology and Tree Topology
1. Star Topology: Star topology is a type of network topology in which all the nodes are connected to the central hub or router. In star topology, connections are in the way that for n nodes, n number of links are needed. Star topology is less complex due to its simplicity. Star topology is less expensive than tree topology. 2. Tree Topology: Tree
3 min read
Difference between Ring Topology and Tree Topology
1. Ring Topology : Ring topology is a type of network topology in which each device is connected to specifically two branches connected to devices in a circle or ring manner. Ring topology is less reliable as failure of one device can disturb the full network. Ring topology is less expensive than tree topology. 2. Tree Topology : Tree topology is a
2 min read
Difference between Mesh Topology and Tree Topology
1. Mesh Topology: Mesh topology is a type of network topology in which each node is connected to every other node fully through a dedicated link in the network. In a mesh topology, connections are in the way that for n nodes, n(n-1)/2 number of links are needed. Mesh topology is very expensive because of the high cabling cost. Prerequisite - Types
2 min read
Article Tags :