Network Kings

What Is STP?

What is STP?

What is STP: Spanning Tree Protocol

STP stands for spanning tree protocol. STP is used to reduce layer 2 loops. By default, STP is running in all manageable switches.

For a good network design and to ensure network availability, some extra links are added to the network (redundancy). If any active link fails then traffic shifts to these redundant links. It means these links are used for backup purpose. The process of adding extra links is known as network redundancy.

As we know everything has its pros and cons, same here, redundant links are good for backup purpose, but they also create layer 2 loops. To avoid these loops STP is used. STP allows the network design to use redundancy without causing other problems (loops).

STP prevents layer 2 loops by placing redundant ports in a blocking state. These extra links acts as a backup that can enter in a forwarding state if an active interface fails.

Interface in a forwarding state behave normally. They send and receive all normal traffic. While interface in blocking mode only send/receive BPDU messages (Bridge Protocol data units).

By selecting which ports are in forward mode and which are in blocking mode, STP creates a single path between each point. This way, STP prevents from layer 2 loops.

Why we need STP?

  1. To reduce broadcast storm.
  2. MAC table instability- As MAC table keep changing because frames with same source MAC arrives on different ports.
  3. Due to loops, multiple copies of the frame arrive at the destination.

How does a root bridge elect?

Switches use bridge-ID to select the root bridge. Bridge-ID consist two parameters one is bridge priority and another is MAC address. The switch which has lowest bridge-ID is selected as a root bridge. First priority field is compared, if there is a tie, then MAC address is compared.

How process starts?

  1. ALL STP-enabled switches sends Hello BPDU message to each other.
  2. Before sending BPDU message next time, switch compares it’s BID with received BID (inside BPDU message), when received BPDU has lower BID, it stops advertising itself.
  3. The same process repeats, and the switch which has lowest BID become root bridge.

People also search for:

What is STP protocol?

STP protocol is a protocol that is designed to make IP traffic management more efficient.

STP protocol was created by Cisco and it was first introduced in 1998. It is used for IP traffic management and it provides a way for network devices to communicate with each other about which paths are available, which ones are congested, and how to avoid congested paths. 

What is Spanning Tree Protocol and how does it work?

Spanning Tree Protocol is a networking protocol that provides a loop-free topology for any bridged LAN.

It is a protocol that guarantees a loop-free network topology for any bridged LAN by blocking redundant or unnecessary paths through the network. It does so by creating a spanning tree within the physical network.

What is difference between STP and RSTP?

STP stands for “Spanning Tree Protocol” and RSTP stands for “Rapid Spanning Tree Protocol”. STP is a standard that is used to prevent loops and stop broadcast storms on a network. It prevents the network from becoming congested by blocking redundant paths and selecting a single path to forward data.

RSTP is an enhancement of STP that allows it to recover more quickly after a link failure or when new devices are added to the network. This protocol has been designed with the intention of making it faster than STP.

What is difference between STP and RSTP?

The STP protocol is a new technology that aims to solve some of the problems with TCP.

It will fix some of the problems with TCP such as latency and packet loss.

This article will cover why we need STP, how it works, and what its advantages are.