SlideShare a Scribd company logo
1 of 18
DT211-2
Spanning Tree Protocol
Networking 3
Eoin Irwin, Dylan Kingston, William Leacy
- STP – Brief Overview
○ Spanning Tree Protocol in a nutshell
○ Algorithm / Protocol
○ Add Links for redundancy
○ Prevent packet loops in
multi-interconnected switch networks
(Broadcast storm)
STP – What Does It Do?
○ What are redundant networks?
○ Switch interconnection - multiple routes for data flow
○ Has an optimal path - lowest metric
○ Redundant = Backup, incase optimal path is down
STP – What Does It Do?
○ What are switching loops?
○ Switch broadcasts can cause loops
in redundant networks
○ Packets sent in circles endlessly,
duplicated at each broadcast
○ Packet duplication + circulation
= broadcast storm
STP – Broadcast Storm
STP – Root Bridge and Main Connections
STP – Closed Ports and Sent Data
STP - Root bridge
○ What is the root bridge?
○ Place where traffic flows
○How is the root bridge selected?
○ Lowest Mac Address
○What happens if STP is left alone?
○ One switch acts as the root for every VLAN!
STP – Root Bridge cont.
○How to fix this from happening?
○ SW1(config) #spanning-tree vlan 1
○What happens to the ports?
○ STP will block unused ports at layer 2
○ Set off an election
○What happens when there’s a topology change?
○ Spanning tree algorithm
○ SW2 (config) #spanning-tree vlan 20 root primary
○ SW2 (config) #spanning-tree vlan 30 root primary
STP - BPDU
○What is BPDU?
○ Bridge Protocol Data Units
○ Final process, root bridge
○BPDU and its configurations
○ Contains various information
BPDU - Results
○How are results exchanged?
○ One switch in the network being elected
○ Forwarding state root ports
○ Interfaces in the spanning-tree instance are selected. Root parts
and designated ports are put into the forwarding state.
STP - Layer 2 network
○Spanning tree retrieval
○ Done via BPDU messages
○ Message exchanging between switches
○ Designated switch for each LAN
○These Message result in
○ Removal of redundant loops
○ Unique root switch
○ Unique designated switch
.
STP - Problems
15 seconds of listening for BPDUs.
switch / sends receives BPDUs.
15 seconds of learning mac address.
populates the cam table
(bonus) switch will wait up to 20 seconds max before moving
a blocked port into listening phase.
Port is forwarding traffic
STP – Problems continued
Problems with PCs - Modern PCs can boot faster than 30 seconds
Problems with uplink ports: 30 seconds of downtime causes big problems
Solution = Rapid Spanning Tree !
Solution = Portfast !
STP – PVST+
Runs an instance of STP per Vlan
Allows different root bridges per Vlan
Root for vlan 10
Root for vlan 20
STP – Rapid STP
○ Rapid STP
○ 802. 1w
○ Proactive system
○ Redefined port roles
○ Many STP similarities
STP – How RSTP improves Performance
More logical port types
Root port - used to reach the root bridge
Designated port - forwarding port, one
per line
Alternative port - discarding port, backup
path to root
A
B C
Conclusion
○ Spanning-Tree Protocol (STP) prevents loops from forming when
switches or bridges are interconnected via multiple paths.
○ Spanning-Tree Protocol implements the 802.1D IEEE algorithm by
exchanging BPDU messages with other switches to detect loops, and
then removes the loop by shutting down selected bridge interfaces.
○ Spanning-Tree Protocol guarantees that there is one and only one active
path between two network devices.
Any questions?

More Related Content

What's hot

Spannig tree
Spannig treeSpannig tree
Spannig tree
1 2d
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
Muuluu
 

What's hot (20)

Spannig tree
Spannig treeSpannig tree
Spannig tree
 
Configuration of mail server on cisco packet tracer
Configuration of mail server on cisco packet tracer Configuration of mail server on cisco packet tracer
Configuration of mail server on cisco packet tracer
 
Fools your enemy with MikroTik
Fools your enemy with MikroTikFools your enemy with MikroTik
Fools your enemy with MikroTik
 
Ether channel fundamentals
Ether channel fundamentalsEther channel fundamentals
Ether channel fundamentals
 
Network LACP/Bonding/Teaming with Mikrotik
Network LACP/Bonding/Teaming with MikrotikNetwork LACP/Bonding/Teaming with Mikrotik
Network LACP/Bonding/Teaming with Mikrotik
 
A comparison of segment routing data-plane encodings
A comparison of segment routing data-plane encodingsA comparison of segment routing data-plane encodings
A comparison of segment routing data-plane encodings
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
STP (spanning tree protocol)
STP (spanning tree protocol)STP (spanning tree protocol)
STP (spanning tree protocol)
 
VRRP (virtual router redundancy protocol)
VRRP (virtual router redundancy protocol)VRRP (virtual router redundancy protocol)
VRRP (virtual router redundancy protocol)
 
Deploy MPLS Traffic Engineering
Deploy MPLS Traffic EngineeringDeploy MPLS Traffic Engineering
Deploy MPLS Traffic Engineering
 
Cisco IPv6 Tutorial
Cisco IPv6 TutorialCisco IPv6 Tutorial
Cisco IPv6 Tutorial
 
IOS Cisco - Cheat sheets
IOS Cisco - Cheat sheetsIOS Cisco - Cheat sheets
IOS Cisco - Cheat sheets
 
Layer 2 switching
Layer 2 switchingLayer 2 switching
Layer 2 switching
 
MPLS L3 VPN Deployment
MPLS L3 VPN DeploymentMPLS L3 VPN Deployment
MPLS L3 VPN Deployment
 
LISP + GETVPN as alternative to DMVPN+OSPF+GETVPN
LISP + GETVPN as alternative to DMVPN+OSPF+GETVPNLISP + GETVPN as alternative to DMVPN+OSPF+GETVPN
LISP + GETVPN as alternative to DMVPN+OSPF+GETVPN
 
Static Routing
Static RoutingStatic Routing
Static Routing
 
HSRP ccna
HSRP ccna HSRP ccna
HSRP ccna
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
Cours3 ospf-eigrp
Cours3 ospf-eigrpCours3 ospf-eigrp
Cours3 ospf-eigrp
 
Routing fundamentals with mikrotik
Routing fundamentals with mikrotikRouting fundamentals with mikrotik
Routing fundamentals with mikrotik
 

Similar to Proper spanning tree.pptx

第15讲 Stp
第15讲 Stp第15讲 Stp
第15讲 Stp
F.l. Yu
 
Spantree
SpantreeSpantree
Spantree
1 2d
 
Spantree
SpantreeSpantree
Spantree
1 2d
 
Ccna 3 chapter 5 v4.0 answers 2011
Ccna 3 chapter 5 v4.0 answers 2011Ccna 3 chapter 5 v4.0 answers 2011
Ccna 3 chapter 5 v4.0 answers 2011
Dân Chơi
 
Understanding spanning tree protocol topology changes
Understanding spanning tree protocol topology changesUnderstanding spanning tree protocol topology changes
Understanding spanning tree protocol topology changes
mps125
 

Similar to Proper spanning tree.pptx (20)

第15讲 Stp
第15讲 Stp第15讲 Stp
第15讲 Stp
 
Chapter10 switching
Chapter10 switchingChapter10 switching
Chapter10 switching
 
Alp Stp
Alp StpAlp Stp
Alp Stp
 
Quick Guide Layer 2 Switching
Quick Guide   Layer 2 SwitchingQuick Guide   Layer 2 Switching
Quick Guide Layer 2 Switching
 
02_Layer2_Network_Design.ppt
02_Layer2_Network_Design.ppt02_Layer2_Network_Design.ppt
02_Layer2_Network_Design.ppt
 
Spantree
SpantreeSpantree
Spantree
 
Spantree
SpantreeSpantree
Spantree
 
Ccna 3 chapter 5 v4.0 answers 2011
Ccna 3 chapter 5 v4.0 answers 2011Ccna 3 chapter 5 v4.0 answers 2011
Ccna 3 chapter 5 v4.0 answers 2011
 
Lecture set 1
Lecture set 1Lecture set 1
Lecture set 1
 
Network Topologies, L1-L2 Basics, Networking Devices
Network Topologies, L1-L2 Basics, Networking DevicesNetwork Topologies, L1-L2 Basics, Networking Devices
Network Topologies, L1-L2 Basics, Networking Devices
 
3_pstn2.ppt
3_pstn2.ppt3_pstn2.ppt
3_pstn2.ppt
 
Stp defined
Stp definedStp defined
Stp defined
 
Understanding spanning tree protocol topology changes
Understanding spanning tree protocol topology changesUnderstanding spanning tree protocol topology changes
Understanding spanning tree protocol topology changes
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshh
 
14 Communication Concepts
14 Communication Concepts14 Communication Concepts
14 Communication Concepts
 

Proper spanning tree.pptx

  • 1. DT211-2 Spanning Tree Protocol Networking 3 Eoin Irwin, Dylan Kingston, William Leacy
  • 2. - STP – Brief Overview ○ Spanning Tree Protocol in a nutshell ○ Algorithm / Protocol ○ Add Links for redundancy ○ Prevent packet loops in multi-interconnected switch networks (Broadcast storm)
  • 3. STP – What Does It Do? ○ What are redundant networks? ○ Switch interconnection - multiple routes for data flow ○ Has an optimal path - lowest metric ○ Redundant = Backup, incase optimal path is down
  • 4. STP – What Does It Do? ○ What are switching loops? ○ Switch broadcasts can cause loops in redundant networks ○ Packets sent in circles endlessly, duplicated at each broadcast ○ Packet duplication + circulation = broadcast storm
  • 6. STP – Root Bridge and Main Connections
  • 7. STP – Closed Ports and Sent Data
  • 8. STP - Root bridge ○ What is the root bridge? ○ Place where traffic flows ○How is the root bridge selected? ○ Lowest Mac Address ○What happens if STP is left alone? ○ One switch acts as the root for every VLAN!
  • 9. STP – Root Bridge cont. ○How to fix this from happening? ○ SW1(config) #spanning-tree vlan 1 ○What happens to the ports? ○ STP will block unused ports at layer 2 ○ Set off an election ○What happens when there’s a topology change? ○ Spanning tree algorithm ○ SW2 (config) #spanning-tree vlan 20 root primary ○ SW2 (config) #spanning-tree vlan 30 root primary
  • 10. STP - BPDU ○What is BPDU? ○ Bridge Protocol Data Units ○ Final process, root bridge ○BPDU and its configurations ○ Contains various information
  • 11. BPDU - Results ○How are results exchanged? ○ One switch in the network being elected ○ Forwarding state root ports ○ Interfaces in the spanning-tree instance are selected. Root parts and designated ports are put into the forwarding state.
  • 12. STP - Layer 2 network ○Spanning tree retrieval ○ Done via BPDU messages ○ Message exchanging between switches ○ Designated switch for each LAN ○These Message result in ○ Removal of redundant loops ○ Unique root switch ○ Unique designated switch
  • 13. . STP - Problems 15 seconds of listening for BPDUs. switch / sends receives BPDUs. 15 seconds of learning mac address. populates the cam table (bonus) switch will wait up to 20 seconds max before moving a blocked port into listening phase. Port is forwarding traffic
  • 14. STP – Problems continued Problems with PCs - Modern PCs can boot faster than 30 seconds Problems with uplink ports: 30 seconds of downtime causes big problems Solution = Rapid Spanning Tree ! Solution = Portfast !
  • 15. STP – PVST+ Runs an instance of STP per Vlan Allows different root bridges per Vlan Root for vlan 10 Root for vlan 20
  • 16. STP – Rapid STP ○ Rapid STP ○ 802. 1w ○ Proactive system ○ Redefined port roles ○ Many STP similarities
  • 17. STP – How RSTP improves Performance More logical port types Root port - used to reach the root bridge Designated port - forwarding port, one per line Alternative port - discarding port, backup path to root A B C
  • 18. Conclusion ○ Spanning-Tree Protocol (STP) prevents loops from forming when switches or bridges are interconnected via multiple paths. ○ Spanning-Tree Protocol implements the 802.1D IEEE algorithm by exchanging BPDU messages with other switches to detect loops, and then removes the loop by shutting down selected bridge interfaces. ○ Spanning-Tree Protocol guarantees that there is one and only one active path between two network devices. Any questions?