Call 1 (201) 549-9007 (US) | +91 - 931-062-4042 (WhatsApp) Email: [email protected]

Spanning Tree Protocol – STP

Hello Guys,

Today we are going to see some interesting topics, You can say an Important Protocol to remember

SPANNING TREE PROTOCOL:

Spanning tree protocol is a layer 2 Protocol being used in Switches and bridges to avoid Loops in the topology.

For better understanding, First, we will get to know what is Loops and why we need to avoid them.

Spanning Tree Protocol SCENARIO:

Look at the diagram given Below

Here we have a scenario, we have a network with 4 Switches and 1 PC connected to each switch.

For Example, We are going to share a Frame from PC1 to PC4

First Step: The Packet Frame will go the Switch 1. It can’t find the destination Address in its SAT table. So it will broadcast it to other Switches.

Second Step: When the Packet Frame reaches Switch 2 and Switch 3. The Packet Cannot go further Since the PC4 is not Connected with those Switches.

Second Step: Switch 2 and 3 will start Broadcasting the Packets again in all available directions, which means to switch 1 from both 3 and 2. These happen in loops all again and again.

This causes severe resource exhaustion and messy loops in the Network.

The main advantage of this Network is to have redundancy in the network to avoid any breakdown in between the network nodes

So here we need something to maintain Redundancy and also to avoid this looping. That’s where our STP comes in.

Normally in a Meshed topology in a network, all the Nodes might be having a maximum number of connections.

While in STP protocol it should have a minimum number of connections.

In STP, we won’t be disconnecting the Physical Connection, instead, the Spanning tree protocol will be in play to avoid looping.

STP selects one Device as the Root bridge. The lowest bridge ID device will be elected as the Root bridge and acts as a central point for connection.

From the above picture, if PC B wants to reach A, it can take two paths BCA or BA. The lowest path BA is chosen.

The port from Switch B will be considered as the Root port. Which is the least cost path to the Root Bridge. The port in the Root Bridge will be having Designated Port.

The same concept applies to Switch C as well. If we see after everything, a non root bridge can have many Designated Ports, but it can have only one Root Port.

On the Other hand, the Root bridge will be having all the ports as Designated Ports.

The Link between B and C Switches will be blocked by Changing the port Condition to Blocking State in one Device (B ) and a port into a Designated port in Switch (C).

So it will be receiving the packets, but it will not forward them. HENCE LOOPING GETS STOPPED.

When there is any Disconnection happens between the Nodes. It will automatically get unblocked and started forwarding the Packets.

We will be Discussing the Spanning Tree protocol also in the Next Blog, Stay Tuned to Learn more about it.

Thanks, Stay Safe and Secure

SHARE

8 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

X