Chap 3 STP CONCEPTS
Chap 3 STP CONCEPTS
Chap 3 STP CONCEPTS
Objectives:
You will be able to:
-define STP
-know how STP works
-know the different types of STP
-configure steps by steps a STP and RSTP
Introduction
A Layer 2 network protocol known as Spanning tree protocol is used to prevent
looping within a network topology. STP helps to avoid the issues when end devices
exchange data on a local area network that contains redundant paths. In the
following lines we will learn how this protocol works, know the varieties of this
network protocol and configure step by step a STP and RSTP.
1. all switches in a network elect a root switch. All working interfaces on the root switch are
placed in forwarding state.
2. all other switches, called nonroot switches, determine the best path to get to the root
switch. The port used to reach the root switch (root port) is placed in forwarding state.
3. On the shared Ethernet segments, the switch with the best path to reach the root is placed
in forwarding state. That switch is called the designated switch and its port is known as the
designated port.
4. all other interfaces are placed in blocking state and will not forward frames.
STP enable devices to exchange BPDUs in order to establish a spanning tree. BPDUs
contain sufficient information for the devices to complete spanning tree calculation.
Configuration of BPDUs
Devices exchange configuration BPDUs to elect the root bridge and determine the port
roles. The Figure below shows the BPDUs format:
Advantages:
Less CPU and memory required.
Disadvantages:
Lesser optimisation as the path is calculated following the best cost to root. The
bridge might not be the best path to reach a network.
Advantages:
PVST+ provides more optimization on the performance of a network than CST as it
selects root bridges per VLAN.
The STP is activated by default on VLANs and also on all newly created VLANs.
Steps of stp re-enabling:
Step 1 – enabling STP
Type the following commands in the concerned switch:
step 2:
Step 3:
Let’s start to configure RSTP (Rapid Spanning Tree Protocol) on Cisco Packet Tracer.
Switch0(config)# spanning-tree mode ?
pvst Per-Vlan spanning tree mode
rapid-pvst Per-Vlan rapid spanning tree mode
Conclusion
Spanning tree defines a tree topology by electing one of the switches as a root
switch and a loop is removed from the root to all switches in the Layer 2 network.
STP forces redundant data paths into a standby (blocked) state. There exist
variants types of STP .In order to configure a STP set of steps are required.