SlideShare uma empresa Scribd logo
1 de 20
Baixar para ler offline
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

Mais conteúdo relacionado

Mais procurados

Mais procurados (20)

Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)Cisco Networking (Routing and Switching)
Cisco Networking (Routing and Switching)
 
Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
Ospf
 Ospf Ospf
Ospf
 
Ipv6
Ipv6Ipv6
Ipv6
 
OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)OPEN SHORTEST PATH FIRST (OSPF)
OPEN SHORTEST PATH FIRST (OSPF)
 
Spannig tree
Spannig treeSpannig tree
Spannig tree
 
VTP
VTPVTP
VTP
 
HSRP ccna
HSRP ccna HSRP ccna
HSRP ccna
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree Protocol
 
Open shortest path first (ospf)
Open shortest path first (ospf)Open shortest path first (ospf)
Open shortest path first (ospf)
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
CCNA Routing Protocols
CCNA Routing ProtocolsCCNA Routing Protocols
CCNA Routing Protocols
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
ccna project on topic company infrastructure
ccna project on topic company infrastructureccna project on topic company infrastructure
ccna project on topic company infrastructure
 
CCNA ppt Day 1
CCNA ppt Day 1CCNA ppt Day 1
CCNA ppt Day 1
 
Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)Dynamic routing protocols (CCNA)
Dynamic routing protocols (CCNA)
 
Bgp
BgpBgp
Bgp
 

Semelhante a Spanning tree protocol (stp)

Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Sachin Morya
 
SRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptxSRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptxSaqibAli696638
 
LAYER 2 SWITCHING
LAYER 2 SWITCHINGLAYER 2 SWITCHING
LAYER 2 SWITCHINGanilinvns
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGanilinvns
 
Spantree
SpantreeSpantree
Spantree1 2d
 
Spantree
SpantreeSpantree
Spantree1 2d
 
Quick Guide Layer 2 Switching
Quick Guide   Layer 2 SwitchingQuick Guide   Layer 2 Switching
Quick Guide Layer 2 SwitchingCCNAResources
 
RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)Netwax Lab
 
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 2011Dân Chơi
 
Spaning Tree Protocol
Spaning Tree ProtocolSpaning Tree Protocol
Spaning Tree ProtocolAtakan ATAK
 
All in one q & ans
All in one q & ansAll in one q & ans
All in one q & ansRavi 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 wirelesskratos2424
 

Semelhante 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 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 PPT
CCNA PPTCCNA PPT
CCNA PPT
 
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
 
LAYER 2 SWITCHING
LAYER 2 SWITCHINGLAYER 2 SWITCHING
LAYER 2 SWITCHING
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 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
 
RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)
 
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

11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdfHafizMudaserAhmad
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptxmohitesoham12
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfManish Kumar
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptJohnWilliam111370
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solidnamansinghjarodiya
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfDrew Moseley
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Erbil Polytechnic University
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdfAkritiPradhan2
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming languageSmritiSharma901052
 

Último (20)

11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf11. Properties of Liquid Fuels in Energy Engineering.pdf
11. Properties of Liquid Fuels in Energy Engineering.pdf
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
Python Programming for basic beginners.pptx
Python Programming for basic beginners.pptxPython Programming for basic beginners.pptx
Python Programming for basic beginners.pptx
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.pptROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
ROBOETHICS-CCS345 ETHICS AND ARTIFICIAL INTELLIGENCE.ppt
 
Engineering Drawing section of solid
Engineering Drawing     section of solidEngineering Drawing     section of solid
Engineering Drawing section of solid
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
Immutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdfImmutable Image-Based Operating Systems - EW2024.pdf
Immutable Image-Based Operating Systems - EW2024.pdf
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
Comparative study of High-rise Building Using ETABS,SAP200 and SAFE., SAFE an...
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
 
OOP concepts -in-Python programming language
OOP concepts -in-Python programming languageOOP concepts -in-Python programming language
OOP concepts -in-Python programming language
 

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