STP - Spanning Tree Protocol Explained
STP - Spanning Tree Protocol Explained
What is STP?
STP is a link management protocol designed to support redundant links that stops switching
loops in the STP network. It is a Layer 2 protocol that runs on bridges and switches, which
should be enabled on the switch interfaces. IEEE standardized STP protocols as IEE 802.1D.
The full form of STP is Spanning Tree Protocol.
In this networking tutorial, you will learn:
What is STP?
Why do we need STP?
How STP works?
Types of STP:
Criteria for Spanning Tree:
Stage of STP Protocol
Important terms used in Spanning Tree Protocol
Bridge Protocol Data Units (BPDU)
Differences between STP and RSTP
The reliability (fault tolerance) of the network is increase exponentially by the introduction
of redundancy.
Switches flood traffic out all ports, when the traffic needs to be sent to a destination that is
not yet known.
Broadcast and multicast traffic is forwarded out to every port, apart from the port on which
the traffic arrived.
The Spanning-Tree Protocol is used to create a loop-free logical topology from a physical
topology that has loops.
After this process, all the links without a redundant link is likely to be in the forwarding state.
The redundant links that were not as good as the selected links would be blocking. Spanning
Tree never uses multiple links to the same destination. There is no load-sharing feature with
Spanning Tree.
Types of STP:
Here, are different types of Spanning Tree Protocols:
Standard Description
Loop Prevention
IEEE 802. 1D. Auto-reconfig of tree in case of any changes STP
Slow convergence (up to 50 bps)
Virtual LAN
IEEE 802. 1Q CST
Defining 1 common spanning tree for all VLANs
Cisco
Per VLAN Rapid Spanning Tree PVRST+
Proprietary
Blocking State
Block state is a non-designated port, and it is never participating in frame forwarding. Its time
limit is 20 sec or unlimited. An interface always enters the blocking state when you enable
STP.
Listening State
The listening state is the first state. It is an interface that is entered after the blocking state.
The interface helps you to determine that the interface that should participate in frame
forwarding.
Learning State
Learning state helps to prepare for participating in frame forwarding. The interface allows us
to enter the learning state from the listening slate.
Forwarding State:
An interface in the forwarding state form the forward frames. This interface enters the
forwarding state from the learning state which performs the following functions:
Disabled State
This state does not participate in the Spanning Tree loop because the port is administratively
disabled, and its timing is also unlimited.
Bridge:
Bridge is an important component of VTP, which connects two or more LAN segments.
Every LAN segment has 1 Designated Port. Every bridge also receives the frames from DP
and forwards them through its RP towards the Root Bridge.
Port ID:
The port ID helps you to decide the root port. It consists of a configurable 1-byte priority
value and a unique port number of each bridge.
Path Cost, which is also known called PC, helps to decide the best topology with regard to
forwarding speed. STP uses the concept of Path Cost.
Designated Ports
A designated port is a disabled port, and it is blocked by a network admin. This port can’t
send a packet to another switch. It is also not a populated MAC address on the MAC table.
Non-Designated Ports
A non-Designated port is a switch port that is blocked. It is also known as a blocked port, or
sometimes an alternate port. It cannot forward packets to the next switch. It also does not
populate the MAC address in the MAC table.
RSTP:
Rapid Spanning Tree Protocol (RSTP) is a network protocol that ensures a loop-free topology
for Ethernet networks.
Select a single switch which will act as the root of the spanning tree
BPDUS also helps to calculate the shortest path from itself to the root switch, which is
designated one of the switches as the closest to one to the Root for each LAN segment.
Select one of its ports as a root port (if it is a no switch)
Pickup the port that are part of the spanning tree algorithm called designated ports.
Blocks the non-designated ports.
Configuration BPDU
It is a unique bridge ID of the root device in the network topology. It acts as a bridge ID of
the transmitting bridge, an identifier of the transmitting port.
In STP, the bridge only sends out a BPDU when reviewed on their RP (root protocol) RSTP enable the switch to send o
from RB (the root bridge). time.
Summary:
STP Protocol is defined as a link management protocol designed to support redundant links
that stops switching loops in the STP network.
Computation of loop-free topology is carried out in this STP state. The port Yes (Send and received
Listening N
is assigned its role. BPDUS)
Forwardin
Normal operation of forwarding Ethernet frames. Yes Y
g
Post navigation
Report a Bug
Prev
Next
Top Tutorials
About
About Us
Advertise with Us
Write For Us
Contact Us
Python
Testing
Hacking
Career Suggestion
SAP Career Suggestion Tool
Software Testing as a Career
Interesting
eBook
Blog
Quiz
SAP eBook
SAP
Java
SQL
Execute online
Execute Java Online
Execute Javascript
Execute HTML
Execute Python
Selenium
Informatica
JIRA