SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
SPANNING TREE
PROTOCOL (STP)
Overview
 Spanning Tree Protocol (STP) allows Ethernet LANs to have to have redundant link without
loops.
 STP is a part of 802.1D standard, overtime the STP (Spanning Tree Protocol) became legacy and
RSTP (Rapid Spanning Tree Protocol) took its place.
• Section 1 : How STP and RSTP discovers a tree with links with no loop.
• Section 2 : Different between STP and RSTP
• Section 3 : How RSTP works better than STP while reacting to a change.
LOOP AVOIDANCE
• If multiple connection between two switches are created for redundancy
puroses,network loop can occur.
• Spanning Tree Protocol ( STP ) is used to prevent from network loops while
still permitting redundancy.
SPANNING TREE PROTOCOL CONCEPT
• Spanning tree is a protocol that run on switch that help to solve the loop.
• Stp work in switch to avoid loop in switch or spanning tree protocol is a
network protocol that builds a loop- free logical topology for ethernet
network.
• Stp is open standard .
• Stp works when multi switch or used with redunnand links.
• By default stp is ennabled in all the cisco switches.
NEEDS
Without stp we have the following issues.
• Layer 2 loop
• Dublicate unicaste frames.
• Broadcaste storm
Please note that the original frame also
went via Gi0/1 towards Gi0/2
The STP Bridge ID and Hello BPDU
 We need to understand the message flowing between two switches.
 The STP/RSTP Bridge ID (BID) is an 8-byte value unique to each switch.= 2-byte is Priority field &
6 byte System ID Extension or MAC.
 STP/RSTP defines messages called Bridge Protocol Data Units (BPDU), also called Configuration
BPDU.
 Most common BPDU is Hello BPDU which carries many details including BID so switch can
understand which BPDU sent by which switch.
HOW IT WILL WORK
• Selecting the root bridge. 32768
• Selecting the root port.
• Selecting the designated port
• Blocking the unnessery port
How Spanning Tree Works
• The process used by switch is called Spanning tree algorithm.
STP/RSTP uses three criteria to choose whether to put an interface in forwarding state:
1. Elect a Root Switch : The switch having best BID (Bridge ID) becomes the root switch.
2. Elect Root Port : to a segment of switches that interface is called Designated Port. Root
port is the port with lowest cost to reach the Root switch on a Non Root switch.
3. The switch interface which is attached
All the other interfaces are placed in blocking state.
SELECTING THE ROOT BRIDGE
• The bridge with the lowest bridge id.
• Bridge id = priority + mac address of the switches
• And priority of all switches is 32768+1 = 32769.
• All switches have same priority then they will compare mac address .
• All switches exchange information that is called as bridge protocol data unit (BPDU) . Switches sends
BPDU every 2 sec .
• To check we will type command : sh spanning-tree
• From the all switches to the network 1 is elected as a root bridge.
• Every network will have only 1 root bridge and all the remaining switches will be considered as non root
bridge.
• Cost calculation in opposite side.
• Forwarding port
• It also have two type designated poet and root port.
non forwarding ports
It is also called blocking port
Different type of spanning tree
• STP --- it is IEEE 802.1D - it is legacy standard of spanning tree .it is very old when we
have use bridges . Is is a basis of other version of stp.
• CST--- it is comman spanning tree ---- assume that there is one spanning tree instance for
the entire bridged network ---- we do not use this now.
• PVST ( per VLAN Spanning tree v) it is cisco proprietary ever vlan have separate spanning
tree --- only support ISL ( it calculate a topology for each vlan ).
• PVST+ ----- is open standard --- support ISL and 802.1Q . Today we offand refer PVST+ as
PVST .
• PVST is a saying every vlan have separate stp.
• RSTP
IEEE 802.1D STP
• The original version of STP comes from the IEEE 802.1D standards.
802.1D Port States :
1.Disabled: The port is in shutdown state
2.Blocking : Port is enabled, can only receive BPDU’s but neither sending any traffic or learning
MAC address.
3.Listening: It can send and receive BPDU’s, cannot forward any traffic or learn any mac address.
4.Learning: The switch still does not forward any other network traffic, however it learns MAC address.
5.Forwarding: The switch port can forward all network traffic and can update the MAC address.
6.Broken: The switch has detected a configuration or an operational problem, and it discards the packet until issue
gets fixed.
The entire process takes around 30 seconds.
Stp port states
• Blocking 20 sec.
• Listioning 15 sec.
• Learning 15 sec.
• Forwarding no limits .
• Disable no limit.
Port States Receive BPDU Send BPDU Learn MAC Forward Frames
Blocking Yes No No No
Listening Yes Yes No No
Learning Yes Yes Yes No
Forwarding Yes Yes Yes Yes
Broken - - - -
LAB
• Connect 5 switches and find who became
Root switch and Why
• Etherchannel
• Connect a switch port to a PC and
configure the switch port with BPDU
Guard and check the result
• Connect a switch port to a switch and
configure the switch port with BPDU
Guard and check the result
INTERVIEW QUESTIONS
1. What is STP and RSTP
2. STP States ?
3. RSTP States ?
4. STP vs RSTP ?
5. Root switch election process
6. Port roles in STP and RSTP
7. Define the port roles

Más contenido relacionado

La actualidad más candente

Spannig tree
Spannig treeSpannig tree
Spannig tree
1 2d
 

La actualidad más candente (20)

IP Multicasting
IP MulticastingIP Multicasting
IP Multicasting
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
Multiprotocol label switching (mpls) - Networkshop44
Multiprotocol label switching (mpls)  - Networkshop44Multiprotocol label switching (mpls)  - Networkshop44
Multiprotocol label switching (mpls) - Networkshop44
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPT
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
Spannig tree
Spannig treeSpannig tree
Spannig tree
 
OSPF
OSPF OSPF
OSPF
 
Ppt of routing protocols
Ppt of routing protocolsPpt of routing protocols
Ppt of routing protocols
 
How BGP Works
How BGP WorksHow BGP Works
How BGP Works
 
Rarp
RarpRarp
Rarp
 
EtherChannel Configuration
EtherChannel ConfigurationEtherChannel Configuration
EtherChannel Configuration
 
CCNA Routing Fundamentals - EIGRP, OSPF and RIP
CCNA  Routing Fundamentals -  EIGRP, OSPF and RIPCCNA  Routing Fundamentals -  EIGRP, OSPF and RIP
CCNA Routing Fundamentals - EIGRP, OSPF and RIP
 
Ccna ppt1
Ccna ppt1Ccna ppt1
Ccna ppt1
 
RIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme NetworksRIP Routing Information Protocol Extreme Networks
RIP Routing Information Protocol Extreme Networks
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
C C N A Day2
C C N A  Day2C C N A  Day2
C C N A Day2
 
User datagram protocol (udp)
User datagram protocol (udp)User datagram protocol (udp)
User datagram protocol (udp)
 
IPV6 ADDRESS
IPV6 ADDRESSIPV6 ADDRESS
IPV6 ADDRESS
 
Border Gatway Protocol
Border Gatway ProtocolBorder Gatway Protocol
Border Gatway Protocol
 

Similar a Spanning tree protocol (stp)

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
 
Spaning Tree Protocol
Spaning Tree ProtocolSpaning Tree Protocol
Spaning Tree Protocol
Atakan ATAK
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
Ravi Kodoli
 
Ch5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wirelessCh5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wireless
kratos2424
 

Similar a Spanning tree protocol (stp) (20)

ENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptxENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptx
 
Stp defined
Stp definedStp defined
Stp defined
 
C C N A Day4
C C N A  Day4C C N A  Day4
C C N A 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
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
How STP works?
How STP works?How STP works?
How STP works?
 
SRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptxSRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptx
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHING
 
LAYER 2 SWITCHING
LAYER 2 SWITCHINGLAYER 2 SWITCHING
LAYER 2 SWITCHING
 
Spantree
SpantreeSpantree
Spantree
 
Spantree
SpantreeSpantree
Spantree
 
Quick Guide Layer 2 Switching
Quick Guide   Layer 2 SwitchingQuick Guide   Layer 2 Switching
Quick Guide Layer 2 Switching
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
 
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
 
Spaning Tree Protocol
Spaning Tree ProtocolSpaning Tree Protocol
Spaning Tree Protocol
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ans
 
Ch5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wirelessCh5 ccna exploration 3 lan swtching and wireless
Ch5 ccna exploration 3 lan swtching and wireless
 

Último

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 

Último (20)

Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 

Spanning tree protocol (stp)

  • 2. Overview  Spanning Tree Protocol (STP) allows Ethernet LANs to have to have redundant link without loops.  STP is a part of 802.1D standard, overtime the STP (Spanning Tree Protocol) became legacy and RSTP (Rapid Spanning Tree Protocol) took its place. • Section 1 : How STP and RSTP discovers a tree with links with no loop. • Section 2 : Different between STP and RSTP • Section 3 : How RSTP works better than STP while reacting to a change.
  • 3. LOOP AVOIDANCE • If multiple connection between two switches are created for redundancy puroses,network loop can occur. • Spanning Tree Protocol ( STP ) is used to prevent from network loops while still permitting redundancy.
  • 4. SPANNING TREE PROTOCOL CONCEPT • Spanning tree is a protocol that run on switch that help to solve the loop. • Stp work in switch to avoid loop in switch or spanning tree protocol is a network protocol that builds a loop- free logical topology for ethernet network. • Stp is open standard . • Stp works when multi switch or used with redunnand links. • By default stp is ennabled in all the cisco switches.
  • 5. NEEDS Without stp we have the following issues. • Layer 2 loop • Dublicate unicaste frames. • Broadcaste storm
  • 6. Please note that the original frame also went via Gi0/1 towards Gi0/2
  • 7. The STP Bridge ID and Hello BPDU  We need to understand the message flowing between two switches.  The STP/RSTP Bridge ID (BID) is an 8-byte value unique to each switch.= 2-byte is Priority field & 6 byte System ID Extension or MAC.  STP/RSTP defines messages called Bridge Protocol Data Units (BPDU), also called Configuration BPDU.  Most common BPDU is Hello BPDU which carries many details including BID so switch can understand which BPDU sent by which switch.
  • 8.
  • 9.
  • 10. HOW IT WILL WORK • Selecting the root bridge. 32768 • Selecting the root port. • Selecting the designated port • Blocking the unnessery port
  • 11. How Spanning Tree Works • The process used by switch is called Spanning tree algorithm. STP/RSTP uses three criteria to choose whether to put an interface in forwarding state: 1. Elect a Root Switch : The switch having best BID (Bridge ID) becomes the root switch. 2. Elect Root Port : to a segment of switches that interface is called Designated Port. Root port is the port with lowest cost to reach the Root switch on a Non Root switch. 3. The switch interface which is attached All the other interfaces are placed in blocking state.
  • 12. SELECTING THE ROOT BRIDGE • The bridge with the lowest bridge id. • Bridge id = priority + mac address of the switches • And priority of all switches is 32768+1 = 32769. • All switches have same priority then they will compare mac address . • All switches exchange information that is called as bridge protocol data unit (BPDU) . Switches sends BPDU every 2 sec . • To check we will type command : sh spanning-tree • From the all switches to the network 1 is elected as a root bridge. • Every network will have only 1 root bridge and all the remaining switches will be considered as non root bridge.
  • 13. • Cost calculation in opposite side.
  • 14. • Forwarding port • It also have two type designated poet and root port. non forwarding ports It is also called blocking port
  • 15. Different type of spanning tree • STP --- it is IEEE 802.1D - it is legacy standard of spanning tree .it is very old when we have use bridges . Is is a basis of other version of stp. • CST--- it is comman spanning tree ---- assume that there is one spanning tree instance for the entire bridged network ---- we do not use this now. • PVST ( per VLAN Spanning tree v) it is cisco proprietary ever vlan have separate spanning tree --- only support ISL ( it calculate a topology for each vlan ). • PVST+ ----- is open standard --- support ISL and 802.1Q . Today we offand refer PVST+ as PVST . • PVST is a saying every vlan have separate stp. • RSTP
  • 16.
  • 17. IEEE 802.1D STP • The original version of STP comes from the IEEE 802.1D standards. 802.1D Port States : 1.Disabled: The port is in shutdown state 2.Blocking : Port is enabled, can only receive BPDU’s but neither sending any traffic or learning MAC address. 3.Listening: It can send and receive BPDU’s, cannot forward any traffic or learn any mac address. 4.Learning: The switch still does not forward any other network traffic, however it learns MAC address. 5.Forwarding: The switch port can forward all network traffic and can update the MAC address. 6.Broken: The switch has detected a configuration or an operational problem, and it discards the packet until issue gets fixed. The entire process takes around 30 seconds.
  • 18. Stp port states • Blocking 20 sec. • Listioning 15 sec. • Learning 15 sec. • Forwarding no limits . • Disable no limit.
  • 19. Port States Receive BPDU Send BPDU Learn MAC Forward Frames Blocking Yes No No No Listening Yes Yes No No Learning Yes Yes Yes No Forwarding Yes Yes Yes Yes Broken - - - -
  • 20. LAB • Connect 5 switches and find who became Root switch and Why • Etherchannel • Connect a switch port to a PC and configure the switch port with BPDU Guard and check the result • Connect a switch port to a switch and configure the switch port with BPDU Guard and check the result INTERVIEW QUESTIONS 1. What is STP and RSTP 2. STP States ? 3. RSTP States ? 4. STP vs RSTP ? 5. Root switch election process 6. Port roles in STP and RSTP 7. Define the port roles