SlideShare a Scribd company logo
1 of 7
How STP works?
www.netprotocolxpert.in
• STP uses the Spanning-Tree Algorithm (SPA) to create a topology
database of the network.
• To prevent loops, SPA places some interfaces in forwarding state
and some interfaces in blocking state
How does STP decides this?
A couple of criteria exist:
1. All switches in a network elect a root bridge. All working
interfaces on the root bridge are placed in forwarding
state. The switch with the lowest switch ID will become
the root bridge.
2. All other switches, called "nonroot bridges", determine
the best path to get to the root bridge. The port used to
reach the root bridge (root port) is placed in forwarding
state.
3. On the shared Ethernet segments, the switch with the
lowest cost to reach the root bridge is placed in
forwarding state.
4. All other interfaces are placed in blocking state and will
not forward frames.
An example will help you understand the concept.
• Let's say that SW1 advertised the lowest switch ID and is elected as
the root bridge.
• All ports on SW1 are placed in forwarding state.
• SW2 and SW3 choose ports with the lowest cost to reach the root
bridge to be the root ports.
• These ports are also placed in forwarding state. On the shared
Ethernet segment between SW2 and SW3, port Fa0/1 on SW2 has
the lowest cost to reach the root bridge.
• This port is placed in forwarding state. To prevent loops, port Fa0/1
on SW3 is placed in blocking state.
• NOTE - A switch with the lowest switch ID will become the root
bridge. A switch ID consists of two components: switch’s
priority (by default 32,768 on Cisco switches) and switch’s MAC
address.
BPDU
• BPDUs (Bridge Protocol Data Units) are used by switches to share
information with each other and learn the topology of the network.
• With BPDUs, the loops in the network are detected.
• BPDUs are compared and used to elect a root switch.
• Hello BPDUs are the most common messages.
• They list the switch ID of the sender and the root bridge ID.

More Related Content

What's hot

Network switch and switching Jenil patel semcom college
Network switch and switching Jenil patel semcom collegeNetwork switch and switching Jenil patel semcom college
Network switch and switching Jenil patel semcom collegejackmakani
 
Router vs switch
Router vs switchRouter vs switch
Router vs switchIT Tech
 
Basic Networking
Basic NetworkingBasic Networking
Basic NetworkingCEC Landran
 
The difference between a hub, switch and router webopedia
The difference between a hub, switch and router   webopediaThe difference between a hub, switch and router   webopedia
The difference between a hub, switch and router webopediaHarikiran Raju
 
Difference between a layer 3 switch and a router
Difference between a layer 3 switch and a routerDifference between a layer 3 switch and a router
Difference between a layer 3 switch and a routerIT Tech
 
networking device router,switches & bridges
networking device router,switches & bridgesnetworking device router,switches & bridges
networking device router,switches & bridgeskeyur Nandaniya
 
Computer network and networking peripherals (ITM)
Computer network and networking peripherals (ITM)Computer network and networking peripherals (ITM)
Computer network and networking peripherals (ITM)Kapil Rode
 
Basics of Gateway By Naveen Karn
 Basics of Gateway By Naveen Karn Basics of Gateway By Naveen Karn
Basics of Gateway By Naveen KarnNaveen Karn
 
Router Network Stimulation Technologies (advanced)
Router Network Stimulation Technologies (advanced)Router Network Stimulation Technologies (advanced)
Router Network Stimulation Technologies (advanced)MuhammadUsman1853
 
A Report on Routers
A Report on RoutersA Report on Routers
A Report on RoutersNilesh Patel
 

What's hot (20)

Switch & hub
Switch & hubSwitch & hub
Switch & hub
 
Network switch and switching Jenil patel semcom college
Network switch and switching Jenil patel semcom collegeNetwork switch and switching Jenil patel semcom college
Network switch and switching Jenil patel semcom college
 
Router vs switch
Router vs switchRouter vs switch
Router vs switch
 
Basic Networking
Basic NetworkingBasic Networking
Basic Networking
 
The difference between a hub, switch and router webopedia
The difference between a hub, switch and router   webopediaThe difference between a hub, switch and router   webopedia
The difference between a hub, switch and router webopedia
 
Routers vs-switch
Routers vs-switchRouters vs-switch
Routers vs-switch
 
Network devices
Network devicesNetwork devices
Network devices
 
Difference between a layer 3 switch and a router
Difference between a layer 3 switch and a routerDifference between a layer 3 switch and a router
Difference between a layer 3 switch and a router
 
Bridge
BridgeBridge
Bridge
 
networking device router,switches & bridges
networking device router,switches & bridgesnetworking device router,switches & bridges
networking device router,switches & bridges
 
Computer network and networking peripherals (ITM)
Computer network and networking peripherals (ITM)Computer network and networking peripherals (ITM)
Computer network and networking peripherals (ITM)
 
Networking devices
Networking devicesNetworking devices
Networking devices
 
Network Devices
Network  DevicesNetwork  Devices
Network Devices
 
Network Devices
Network DevicesNetwork Devices
Network Devices
 
Basics of Gateway By Naveen Karn
 Basics of Gateway By Naveen Karn Basics of Gateway By Naveen Karn
Basics of Gateway By Naveen Karn
 
Router Network Stimulation Technologies (advanced)
Router Network Stimulation Technologies (advanced)Router Network Stimulation Technologies (advanced)
Router Network Stimulation Technologies (advanced)
 
Network devices
Network devicesNetwork devices
Network devices
 
Network switch
Network switchNetwork switch
Network switch
 
Router switch and hub
Router switch and hubRouter switch and hub
Router switch and hub
 
A Report on Routers
A Report on RoutersA Report on Routers
A Report on Routers
 

Viewers also liked

OSPF summary & Differences between OSPF and EIGRP
OSPF summary&Differences between OSPF and EIGRPOSPF summary&Differences between OSPF and EIGRP
OSPF summary & Differences between OSPF and EIGRP NetProtocol Xpert
 
Commercial Passive House Case Studies
Commercial Passive House Case StudiesCommercial Passive House Case Studies
Commercial Passive House Case StudiesTE Studio
 
Performing A Life Cycle Cost Analysis
Performing A Life Cycle Cost AnalysisPerforming A Life Cycle Cost Analysis
Performing A Life Cycle Cost Analysischrishvaceng
 
Life cycle cost analysis
Life cycle cost analysisLife cycle cost analysis
Life cycle cost analysisAnkur Bansal
 
Life cycle costing (sqm)
Life cycle costing (sqm)Life cycle costing (sqm)
Life cycle costing (sqm)Adil Shaikh
 
Life cycle cost example
Life cycle cost exampleLife cycle cost example
Life cycle cost exampleHuzaifa Sajid
 
High Rise Building Research Document
High Rise Building Research DocumentHigh Rise Building Research Document
High Rise Building Research DocumentNicholas Socrates
 
Mumbai High Rise Buildings Case studies of Kohinoor Square, Aquaria Grande, K...
Mumbai High Rise Buildings Case studies of Kohinoor Square, Aquaria Grande, K...Mumbai High Rise Buildings Case studies of Kohinoor Square, Aquaria Grande, K...
Mumbai High Rise Buildings Case studies of Kohinoor Square, Aquaria Grande, K...Prateek Srivastava
 
life cycle costing
life cycle costing life cycle costing
life cycle costing Mohd Hisyam
 

Viewers also liked (11)

OSPF summary & Differences between OSPF and EIGRP
OSPF summary&Differences between OSPF and EIGRPOSPF summary&Differences between OSPF and EIGRP
OSPF summary & Differences between OSPF and EIGRP
 
Commercial Passive House Case Studies
Commercial Passive House Case StudiesCommercial Passive House Case Studies
Commercial Passive House Case Studies
 
Performing A Life Cycle Cost Analysis
Performing A Life Cycle Cost AnalysisPerforming A Life Cycle Cost Analysis
Performing A Life Cycle Cost Analysis
 
Life Cycle Costings
Life Cycle CostingsLife Cycle Costings
Life Cycle Costings
 
Life cycle cost analysis
Life cycle cost analysisLife cycle cost analysis
Life cycle cost analysis
 
Life cycle costing (sqm)
Life cycle costing (sqm)Life cycle costing (sqm)
Life cycle costing (sqm)
 
INDUSTRIALISED BUILDING SYSTEMS & MODULAR COORDINATION
INDUSTRIALISED BUILDING SYSTEMS & MODULAR COORDINATIONINDUSTRIALISED BUILDING SYSTEMS & MODULAR COORDINATION
INDUSTRIALISED BUILDING SYSTEMS & MODULAR COORDINATION
 
Life cycle cost example
Life cycle cost exampleLife cycle cost example
Life cycle cost example
 
High Rise Building Research Document
High Rise Building Research DocumentHigh Rise Building Research Document
High Rise Building Research Document
 
Mumbai High Rise Buildings Case studies of Kohinoor Square, Aquaria Grande, K...
Mumbai High Rise Buildings Case studies of Kohinoor Square, Aquaria Grande, K...Mumbai High Rise Buildings Case studies of Kohinoor Square, Aquaria Grande, K...
Mumbai High Rise Buildings Case studies of Kohinoor Square, Aquaria Grande, K...
 
life cycle costing
life cycle costing life cycle costing
life cycle costing
 

Similar to How STP works?

Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)RaghulR21
 
Spantree
SpantreeSpantree
Spantree1 2d
 
Spantree
SpantreeSpantree
Spantree1 2d
 
Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Sachin Morya
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGanilinvns
 
LAYER 2 SWITCHING
LAYER 2 SWITCHINGLAYER 2 SWITCHING
LAYER 2 SWITCHINGanilinvns
 
Overview of Spanning Tree Protocol
Overview of Spanning Tree ProtocolOverview of Spanning Tree Protocol
Overview of Spanning Tree ProtocolArash Foroughi
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfcisco49
 
SRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptxSRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptxSaqibAli696638
 
Spaning Tree Protocol
Spaning Tree ProtocolSpaning Tree Protocol
Spaning Tree ProtocolAtakan ATAK
 
Configuracion
ConfiguracionConfiguracion
Configuracion1 2d
 
Configuracion
ConfiguracionConfiguracion
Configuracion1 2d
 
CCNA ppt Day 8
CCNA ppt Day 8CCNA ppt Day 8
CCNA ppt Day 8VISHNU N
 

Similar to How STP works? (20)

Spanning tree protocol (stp)
Spanning tree protocol (stp)Spanning tree protocol (stp)
Spanning tree protocol (stp)
 
Stp defined
Stp definedStp defined
Stp defined
 
Spantree
SpantreeSpantree
Spantree
 
Spantree
SpantreeSpantree
Spantree
 
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
 
ENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptxENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.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
 
Overview of Spanning Tree Protocol
Overview of Spanning Tree ProtocolOverview of Spanning Tree Protocol
Overview of Spanning Tree Protocol
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
 
SRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptxSRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptx
 
Spaning Tree Protocol
Spaning Tree ProtocolSpaning Tree Protocol
Spaning Tree Protocol
 
Configuracion
ConfiguracionConfiguracion
Configuracion
 
Configuracion
ConfiguracionConfiguracion
Configuracion
 
CCNA ppt Day 8
CCNA ppt Day 8CCNA ppt Day 8
CCNA ppt Day 8
 

More from NetProtocol Xpert

Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)NetProtocol Xpert
 
Common Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationCommon Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationNetProtocol Xpert
 
Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)NetProtocol Xpert
 
Securing management, control & data plane
Securing management, control & data planeSecuring management, control & data plane
Securing management, control & data planeNetProtocol Xpert
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPNetProtocol Xpert
 
Avoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandAvoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandNetProtocol Xpert
 
TCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesTCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesNetProtocol Xpert
 
MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)NetProtocol Xpert
 
OTV(Overlay Transport Virtualization)
OTV(Overlay  Transport  Virtualization)OTV(Overlay  Transport  Virtualization)
OTV(Overlay Transport Virtualization)NetProtocol Xpert
 

More from NetProtocol Xpert (20)

Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)Basic Cisco ASA 5506-x Configuration (Firepower)
Basic Cisco ASA 5506-x Configuration (Firepower)
 
MPLS Layer 3 VPN
MPLS Layer 3 VPN MPLS Layer 3 VPN
MPLS Layer 3 VPN
 
Common Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & MitigationCommon Layer 2 Threats, Attacks & Mitigation
Common Layer 2 Threats, Attacks & Mitigation
 
Storm-Control
Storm-ControlStorm-Control
Storm-Control
 
Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)Dynamic ARP Inspection (DAI)
Dynamic ARP Inspection (DAI)
 
IP Source Guard
IP Source Guard IP Source Guard
IP Source Guard
 
DHCP Snooping
DHCP SnoopingDHCP Snooping
DHCP Snooping
 
Password Recovery
Password RecoveryPassword Recovery
Password Recovery
 
Application & Data Center
Application & Data CenterApplication & Data Center
Application & Data Center
 
Cisco ISR 4351 Router
Cisco ISR 4351 RouterCisco ISR 4351 Router
Cisco ISR 4351 Router
 
Cisco ASR 1001-X Router
Cisco ASR 1001-X RouterCisco ASR 1001-X Router
Cisco ASR 1001-X Router
 
Securing management, control & data plane
Securing management, control & data planeSecuring management, control & data plane
Securing management, control & data plane
 
Point to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAPPoint to-point protocol (ppp), PAP & CHAP
Point to-point protocol (ppp), PAP & CHAP
 
Avoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a commandAvoid DNS lookup when mistyping a command
Avoid DNS lookup when mistyping a command
 
TCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and SwitchesTCLSH and Macro Ping Test on Cisco Routers and Switches
TCLSH and Macro Ping Test on Cisco Routers and Switches
 
Private VLANs
Private VLANsPrivate VLANs
Private VLANs
 
MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)MTU (maximum transmission unit) & MRU (maximum receive unit)
MTU (maximum transmission unit) & MRU (maximum receive unit)
 
OTV Configuration
OTV ConfigurationOTV Configuration
OTV Configuration
 
Cisco OTV 
Cisco OTV Cisco OTV 
Cisco OTV 
 
OTV(Overlay Transport Virtualization)
OTV(Overlay  Transport  Virtualization)OTV(Overlay  Transport  Virtualization)
OTV(Overlay Transport Virtualization)
 

Recently uploaded

(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 

Recently uploaded (20)

(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 

How STP works?

  • 2. • STP uses the Spanning-Tree Algorithm (SPA) to create a topology database of the network. • To prevent loops, SPA places some interfaces in forwarding state and some interfaces in blocking state
  • 3. How does STP decides this? A couple of criteria exist: 1. All switches in a network elect a root bridge. All working interfaces on the root bridge are placed in forwarding state. The switch with the lowest switch ID will become the root bridge. 2. All other switches, called "nonroot bridges", determine the best path to get to the root bridge. The port used to reach the root bridge (root port) is placed in forwarding state. 3. On the shared Ethernet segments, the switch with the lowest cost to reach the root bridge is placed in forwarding state. 4. All other interfaces are placed in blocking state and will not forward frames.
  • 4. An example will help you understand the concept.
  • 5. • Let's say that SW1 advertised the lowest switch ID and is elected as the root bridge. • All ports on SW1 are placed in forwarding state. • SW2 and SW3 choose ports with the lowest cost to reach the root bridge to be the root ports. • These ports are also placed in forwarding state. On the shared Ethernet segment between SW2 and SW3, port Fa0/1 on SW2 has the lowest cost to reach the root bridge. • This port is placed in forwarding state. To prevent loops, port Fa0/1 on SW3 is placed in blocking state.
  • 6. • NOTE - A switch with the lowest switch ID will become the root bridge. A switch ID consists of two components: switch’s priority (by default 32,768 on Cisco switches) and switch’s MAC address.
  • 7. BPDU • BPDUs (Bridge Protocol Data Units) are used by switches to share information with each other and learn the topology of the network. • With BPDUs, the loops in the network are detected. • BPDUs are compared and used to elect a root switch. • Hello BPDUs are the most common messages. • They list the switch ID of the sender and the root bridge ID.