SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
Spanning Tree Protocol
Overview
PRESENTED BY
ARASH FOROUGHI
Iran, November 2015
Slide 2
1. Introduction and Purpose of STP
2. STP Standards Overview
3. IEEE 802.1D STP Protocol
4. IEEE 802.1w RSTP Rapid STP
5. IEEE 802.1Q CST Common Spanning Tree
6. Cisco PVST+ and PVRST+
7. IEEE 802.1s MST Multiple Spanning Tree Protocol
Contents
Slide 3
• Spanning Tree Protocol (STP) is a Layer 2 protocol (802.1D)
• It runs on bridges and switches
• Main Purpose:
• Ensuring to not creating loops when you have redundant paths.
• Loops are deadly to a network.
• Ethernet bridges or switches must forward many known or unknown frames
(like ARP or DHCP) to all physical ports, so it needs a loop-Free Topology.
1. Introduction and Purpose of STP
An Ethernet network with loops
Slide 4
2. STP Standards Overview
Standard Description Abbreviation
IEEE 802.1D
• Loop Prevention
• Auto-reconfig of tree in case of any changes
• Slow convergence (up to 50 Mbps)
STP
IEEE 802.1w
• Rapid Spanning Tree Protocol
• Improved STP with faster convergence
• Backward compatible with STP
RSTP
IEEE 802.1Q
• Virtual LAN
• Defining 1 common spanning tree (CST) for all VLANs CST
Cisco
Proprietary
• Per VLAN Spanning Tree
• 1STP instance per VLAN
• PVST+ is an improved variant of PVST
PVST
PVST+
Cisco
Proprietary
• Per VLAN Rapid Spanning Tree
• 1RSTP instance per VLAN
PVRST+ or
R-PVST+
IEEE 802.1s
• Multiple (Instance) Spanning Tree protocol
• Multiple instance of VLAN mapped to 1 STP (both CST and PVST)
MSTP or
MISTP
Slide 5
STP Overview
• Providing path redundancy while preventing undesirable loops in network.
• In a layer 2 network, only one active path can exist between any 2 stations.
• STP calculates and selects the best loop-free path.
• Layer 2 LAN ports send and receive STP frames and network devices use the
frames to construct a loop-free path.
• If a loop exists in network, end stations receive duplicate messages and
network devices learn end station MAC addresses.
• STP defines a tree with a Root Bridge and a loop-free path from the root to
all devices.
• STP forces redundant data paths into a blocked state.
3. STP Protocol – IEEE 802.1D
Slide 6
• Bridge:
• A bridge connects two or more LAN segments.
• Today’s networks are predominantly Switch based. For STP switch = bridge.
• Root Bridge (RB):
• It’s the bridge (or switch) that provides an interconnection point for all segments.
• Every bridge in a LAN has a path to the root.
• STP can select the root bridge automatically but if administrator wants, he can
change the RB according to the network.
• Non-Root Bridge (NRB):
• Any bridge that is not the RB is called Non-root Bridge.
3. STP Protocol – IEEE 802.1D
Slide 7
• Root Port (RP):
• The port that leads towards the RB. (or the port has the lowest path cost to RB).
• Every NRB has exactly 1 RP.
• The Root Bridge (RB) doesn’t have any Root Port (RP).
• Designated Port (DP):
• Every LAN segment has 1 DP. Every bridge receives the frames from DP and
forward them through its RP towards the Root Bridge.
• DP guarantees that every segment is connected to the STP tree topology.
• In Root Bridge (RB) = All ports are Designated Port (DP)
• Port ID:
• It’s used to determine the RP. It consists of a 1 byte priority value and a port
number that is unique per bridge.
3. STP Protocol – IEEE 802.1D
Slide 8
Bridge Protocol Data Units (BPDU)
• Each network device send BPDUs to exchange topology information.
• There is 2 types of BPDU:
1. Configuration BPDU
• The unique bridge ID of the root device in the network
• The STP path cost to the root
• The bridge ID of the transmitting bridge
• The identifier of the transmitting port
• Values for the hello, forward delay, and max-age protocol timers
2. Topology Change Notification (TCN) BPDU
• One network device is elected as the root bridge.
• The shortest distance to the root bridge is calculated for each network device based on
the path cost.
• A designated bridge for each LAN segment is selected. This is the network device closest
to the root bridge through which frames are forwarded to the root.
• A root port is selected. This is the port providing the best path from the bridge to the root
bridge.
• Ports included in the spanning tree are selected.
3. STP Protocol – IEEE 802.1D
Slide 9
Election of the Root Bridge
• STP uses a 64-bit bridge ID consisting of a bridge priority value and MAC address for
selection of the Root Bridge.
• STP also uses one MAC address per VLAN to make the bridge ID unique for each
VLAN.
• The bridge with the lowest BID in the network is elected as root bridge.
• If 2 BIDs have the same priority value, the bridge with the lower MAC address wins.
1. First, all bridges send configuration BPDUs with their own BID.
2. All bridges compare the received BPDUs with their own BID. If it’s lower, they stop
sending own BPDUs but they start forwarding received BPDUs to all interfaces.
3. STP Protocol – IEEE 802.1D
Slide 10
3. STP Protocol – IEEE 802.1D
• The Root Bridge should be a powerful device and be positioned at the center of the
network.
• In the below example, Br0 is elected as RB because it has the lowest BID, but the
administrator changed the root bridge to BR2, because it has the fast link with
1Gbps.
Slide 11
3. STP Protocol – IEEE 802.1D
STP Port State Overview
State Description Process BPDUs Learn MAC
Init
Initialization of an port (bootstrap).
Actually not an STP port state.
No No
Disabled
Administrative state.
The port doesn’t participate in STP operations.
No Mo
Blocking
The port doesn’t forward Ethernet frames and
doesn’t learn MAC addresses. (Backup State)
Yes (receive and
process BPDUs
only)
No
Listening
Computation of loop-free topology is carried
out in this state and the port is assigned its role.
(RP, DP, NDP)
Yes (Send and
receive BPDUs)
No
Learning
Additional state to delay forwarding of Ethernet
frames to avoid flooding the network.
Yes
Yes (Populate
MAC address
table)
Forwarding
Normal operation of forwarding Ethernet
frames (user traffic)
Yes Yes
Slide 12
3. STP Protocol – IEEE 802.1D
• Port states and transitions for STP are defined by the following diagram:
Slide 13
3. STP Protocol – IEEE 802.1D
• In reality, the ports are in different states (Blocking, Listening, Learning) until
reaching a stable state (Forwarding or Blocking).
Slide 14
4. RSTP Rapid STP - IEEE 802.1w
Differences between STP & RSTP
1. The main difference is that RSTP places 3 ports states Listening, Blocking and
Disabled all into a new state called Discarding state. Learning and forwarding ports
remain more or less the same.
2. In STP, bridges only send out a BPDU when they received one on their RP from RB.
In RSTP, enabled switches send out BPDUs in every hello time.
3. STP includes two port types: Root Port and Designated Port.
RSTP includes two additional port types: Alternate Ports and Backup Ports.
• Alternate Port is a port that has an alternative path or paths to the RB, but is
currently in a Discarding State.
• Backup Port is a port that could be used to reach RB, but there is already an active
STP Designated Port for that segment. (can be considered as an additional unused
designated port).
Slide 15
5. CST Common Spanning Tree - IEEE 802.1Q
• IEEE 802.1Q defines a common STP for all VLANs in a physical network.
• In the below, an access switch has 1000 VLANs and is connected to 2 distribution
switches. With only 1 instance of STP or RSTP for VLANs as defined in 702.1Q CST,
only 1 of the links is used for forwarding traffic towards the distribution switches.
Slide 16
6. Cisco PVST+ & PVRST+
• Cisco’s PVST+ and PVRST+ define a separate spanning tree instance for each VLAN.
• By defining SW0 to be RB for VLANs 1-500 and SW1 to be RB for VLANs 501-1000,
respectively, Load Balancing can be achieved.
• However, defining a separate spanning tree instance for each VLAN requires a lot of
resources (CPU Processing Power and Memory) and is therefor inefficient.
Slide 17
7. MST Multiple STP - IEEE 802.1s
• MSTP, originally defined in 802.1s and then merged to 802.1Q-2005, allows
mapping multiple VLANs to a single spanning tree instance.
• This reduces the resource requirements while preserving the advantages of having
multiple spanning trees for load balancing purposes.
• In the example below, the VLANs are mapped to 2 separate spanning tree instances
as follows:
• VLANs 1-500 : Spanning tree instance 1
• VLANs 501-1000 : Spanning tree instance 2
Slide 18
1. http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst6500/i
os/15-
0SY/configuration/guide/15_0_sy_swcg/spanning_tree.html#wp103
8835
2. http://www.cisco.com/c/en/us/support/docs/lan-
switching/spanning-tree-protocol/5234-5.html
3. http://www.netwaxlab.com
4. http://www.indigoo.com
References
Thank you
Arash Foroughi
Iran, November 2015

Mais conteúdo relacionado

Mais procurados

Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
Kashif Latif
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
arpit
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
Kashif Latif
 

Mais procurados (20)

Spanning tree protocol
Spanning tree protocolSpanning tree protocol
Spanning tree protocol
 
Routing
RoutingRouting
Routing
 
Routing Information Protocol
Routing Information ProtocolRouting Information Protocol
Routing Information Protocol
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 
Ospf
 Ospf Ospf
Ospf
 
Dynamic Routing
Dynamic RoutingDynamic Routing
Dynamic Routing
 
Access Control List & its Types
Access Control List & its TypesAccess Control List & its Types
Access Control List & its Types
 
Routing and OSPF
Routing and OSPFRouting and OSPF
Routing and OSPF
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP)Border Gateway Protocol (BGP)
Border Gateway Protocol (BGP)
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
 
Igmp presentation
Igmp presentationIgmp presentation
Igmp presentation
 
RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)
 
Routing Protocols
Routing Protocols Routing Protocols
Routing Protocols
 
Open Shortest Path First
Open Shortest Path FirstOpen Shortest Path First
Open Shortest Path First
 
Eigrp.ppt
Eigrp.pptEigrp.ppt
Eigrp.ppt
 
Link state routing protocol
Link state routing protocolLink state routing protocol
Link state routing protocol
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree Protocol
 
Rip presentation
Rip presentationRip presentation
Rip presentation
 
Quality of Service
Quality of ServiceQuality of Service
Quality of Service
 

Semelhante a Overview of Spanning Tree Protocol

Spantree
SpantreeSpantree
Spantree
1 2d
 
Spantree
SpantreeSpantree
Spantree
1 2d
 
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
 
Configuracion
ConfiguracionConfiguracion
Configuracion
1 2d
 
Configuracion
ConfiguracionConfiguracion
Configuracion
1 2d
 
chapter 5.1.pptx
chapter 5.1.pptxchapter 5.1.pptx
chapter 5.1.pptx
MelkamtseganewTigabi1
 

Semelhante a Overview of Spanning Tree Protocol (20)

ENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptxENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptx
 
C C N A Day4
C C N A  Day4C C N A  Day4
C C N A Day4
 
Ccna day4
Ccna day4Ccna day4
Ccna 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
 
Spantree
SpantreeSpantree
Spantree
 
Spantree
SpantreeSpantree
Spantree
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshh
 
SRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptxSRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptx
 
Stp defined
Stp definedStp defined
Stp defined
 
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
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
 
Configuracion
ConfiguracionConfiguracion
Configuracion
 
Configuracion
ConfiguracionConfiguracion
Configuracion
 
02_Layer2_Network_Design.ppt
02_Layer2_Network_Design.ppt02_Layer2_Network_Design.ppt
02_Layer2_Network_Design.ppt
 
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
 
chapter 5.1.pptx
chapter 5.1.pptxchapter 5.1.pptx
chapter 5.1.pptx
 

Último

Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
SofiyaSharma5
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 

Último (20)

How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
Russian Call Girls in %(+971524965298  )#  Call Girls in DubaiRussian Call Girls in %(+971524965298  )#  Call Girls in Dubai
Russian Call Girls in %(+971524965298 )# Call Girls in Dubai
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl ServiceRussian Call girl in Ajman +971563133746 Ajman Call girl Service
Russian Call girl in Ajman +971563133746 Ajman Call girl Service
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
INDIVIDUAL ASSIGNMENT #3 CBG, PRESENTATION.
 
Networking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOGNetworking in the Penumbra presented by Geoff Huston at NZNOG
Networking in the Penumbra presented by Geoff Huston at NZNOG
 
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...(+971568250507  ))#  Young Call Girls  in Ajman  By Pakistani Call Girls  in ...
(+971568250507 ))# Young Call Girls in Ajman By Pakistani Call Girls in ...
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night StandHot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
Hot Call Girls |Delhi |Hauz Khas ☎ 9711199171 Book Your One night Stand
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
Low Rate Young Call Girls in Sector 63 Mamura Noida ✔️☆9289244007✔️☆ Female E...
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 

Overview of Spanning Tree Protocol

  • 1. Spanning Tree Protocol Overview PRESENTED BY ARASH FOROUGHI Iran, November 2015
  • 2. Slide 2 1. Introduction and Purpose of STP 2. STP Standards Overview 3. IEEE 802.1D STP Protocol 4. IEEE 802.1w RSTP Rapid STP 5. IEEE 802.1Q CST Common Spanning Tree 6. Cisco PVST+ and PVRST+ 7. IEEE 802.1s MST Multiple Spanning Tree Protocol Contents
  • 3. Slide 3 • Spanning Tree Protocol (STP) is a Layer 2 protocol (802.1D) • It runs on bridges and switches • Main Purpose: • Ensuring to not creating loops when you have redundant paths. • Loops are deadly to a network. • Ethernet bridges or switches must forward many known or unknown frames (like ARP or DHCP) to all physical ports, so it needs a loop-Free Topology. 1. Introduction and Purpose of STP An Ethernet network with loops
  • 4. Slide 4 2. STP Standards Overview Standard Description Abbreviation IEEE 802.1D • Loop Prevention • Auto-reconfig of tree in case of any changes • Slow convergence (up to 50 Mbps) STP IEEE 802.1w • Rapid Spanning Tree Protocol • Improved STP with faster convergence • Backward compatible with STP RSTP IEEE 802.1Q • Virtual LAN • Defining 1 common spanning tree (CST) for all VLANs CST Cisco Proprietary • Per VLAN Spanning Tree • 1STP instance per VLAN • PVST+ is an improved variant of PVST PVST PVST+ Cisco Proprietary • Per VLAN Rapid Spanning Tree • 1RSTP instance per VLAN PVRST+ or R-PVST+ IEEE 802.1s • Multiple (Instance) Spanning Tree protocol • Multiple instance of VLAN mapped to 1 STP (both CST and PVST) MSTP or MISTP
  • 5. Slide 5 STP Overview • Providing path redundancy while preventing undesirable loops in network. • In a layer 2 network, only one active path can exist between any 2 stations. • STP calculates and selects the best loop-free path. • Layer 2 LAN ports send and receive STP frames and network devices use the frames to construct a loop-free path. • If a loop exists in network, end stations receive duplicate messages and network devices learn end station MAC addresses. • STP defines a tree with a Root Bridge and a loop-free path from the root to all devices. • STP forces redundant data paths into a blocked state. 3. STP Protocol – IEEE 802.1D
  • 6. Slide 6 • Bridge: • A bridge connects two or more LAN segments. • Today’s networks are predominantly Switch based. For STP switch = bridge. • Root Bridge (RB): • It’s the bridge (or switch) that provides an interconnection point for all segments. • Every bridge in a LAN has a path to the root. • STP can select the root bridge automatically but if administrator wants, he can change the RB according to the network. • Non-Root Bridge (NRB): • Any bridge that is not the RB is called Non-root Bridge. 3. STP Protocol – IEEE 802.1D
  • 7. Slide 7 • Root Port (RP): • The port that leads towards the RB. (or the port has the lowest path cost to RB). • Every NRB has exactly 1 RP. • The Root Bridge (RB) doesn’t have any Root Port (RP). • Designated Port (DP): • Every LAN segment has 1 DP. Every bridge receives the frames from DP and forward them through its RP towards the Root Bridge. • DP guarantees that every segment is connected to the STP tree topology. • In Root Bridge (RB) = All ports are Designated Port (DP) • Port ID: • It’s used to determine the RP. It consists of a 1 byte priority value and a port number that is unique per bridge. 3. STP Protocol – IEEE 802.1D
  • 8. Slide 8 Bridge Protocol Data Units (BPDU) • Each network device send BPDUs to exchange topology information. • There is 2 types of BPDU: 1. Configuration BPDU • The unique bridge ID of the root device in the network • The STP path cost to the root • The bridge ID of the transmitting bridge • The identifier of the transmitting port • Values for the hello, forward delay, and max-age protocol timers 2. Topology Change Notification (TCN) BPDU • One network device is elected as the root bridge. • The shortest distance to the root bridge is calculated for each network device based on the path cost. • A designated bridge for each LAN segment is selected. This is the network device closest to the root bridge through which frames are forwarded to the root. • A root port is selected. This is the port providing the best path from the bridge to the root bridge. • Ports included in the spanning tree are selected. 3. STP Protocol – IEEE 802.1D
  • 9. Slide 9 Election of the Root Bridge • STP uses a 64-bit bridge ID consisting of a bridge priority value and MAC address for selection of the Root Bridge. • STP also uses one MAC address per VLAN to make the bridge ID unique for each VLAN. • The bridge with the lowest BID in the network is elected as root bridge. • If 2 BIDs have the same priority value, the bridge with the lower MAC address wins. 1. First, all bridges send configuration BPDUs with their own BID. 2. All bridges compare the received BPDUs with their own BID. If it’s lower, they stop sending own BPDUs but they start forwarding received BPDUs to all interfaces. 3. STP Protocol – IEEE 802.1D
  • 10. Slide 10 3. STP Protocol – IEEE 802.1D • The Root Bridge should be a powerful device and be positioned at the center of the network. • In the below example, Br0 is elected as RB because it has the lowest BID, but the administrator changed the root bridge to BR2, because it has the fast link with 1Gbps.
  • 11. Slide 11 3. STP Protocol – IEEE 802.1D STP Port State Overview State Description Process BPDUs Learn MAC Init Initialization of an port (bootstrap). Actually not an STP port state. No No Disabled Administrative state. The port doesn’t participate in STP operations. No Mo Blocking The port doesn’t forward Ethernet frames and doesn’t learn MAC addresses. (Backup State) Yes (receive and process BPDUs only) No Listening Computation of loop-free topology is carried out in this state and the port is assigned its role. (RP, DP, NDP) Yes (Send and receive BPDUs) No Learning Additional state to delay forwarding of Ethernet frames to avoid flooding the network. Yes Yes (Populate MAC address table) Forwarding Normal operation of forwarding Ethernet frames (user traffic) Yes Yes
  • 12. Slide 12 3. STP Protocol – IEEE 802.1D • Port states and transitions for STP are defined by the following diagram:
  • 13. Slide 13 3. STP Protocol – IEEE 802.1D • In reality, the ports are in different states (Blocking, Listening, Learning) until reaching a stable state (Forwarding or Blocking).
  • 14. Slide 14 4. RSTP Rapid STP - IEEE 802.1w Differences between STP & RSTP 1. The main difference is that RSTP places 3 ports states Listening, Blocking and Disabled all into a new state called Discarding state. Learning and forwarding ports remain more or less the same. 2. In STP, bridges only send out a BPDU when they received one on their RP from RB. In RSTP, enabled switches send out BPDUs in every hello time. 3. STP includes two port types: Root Port and Designated Port. RSTP includes two additional port types: Alternate Ports and Backup Ports. • Alternate Port is a port that has an alternative path or paths to the RB, but is currently in a Discarding State. • Backup Port is a port that could be used to reach RB, but there is already an active STP Designated Port for that segment. (can be considered as an additional unused designated port).
  • 15. Slide 15 5. CST Common Spanning Tree - IEEE 802.1Q • IEEE 802.1Q defines a common STP for all VLANs in a physical network. • In the below, an access switch has 1000 VLANs and is connected to 2 distribution switches. With only 1 instance of STP or RSTP for VLANs as defined in 702.1Q CST, only 1 of the links is used for forwarding traffic towards the distribution switches.
  • 16. Slide 16 6. Cisco PVST+ & PVRST+ • Cisco’s PVST+ and PVRST+ define a separate spanning tree instance for each VLAN. • By defining SW0 to be RB for VLANs 1-500 and SW1 to be RB for VLANs 501-1000, respectively, Load Balancing can be achieved. • However, defining a separate spanning tree instance for each VLAN requires a lot of resources (CPU Processing Power and Memory) and is therefor inefficient.
  • 17. Slide 17 7. MST Multiple STP - IEEE 802.1s • MSTP, originally defined in 802.1s and then merged to 802.1Q-2005, allows mapping multiple VLANs to a single spanning tree instance. • This reduces the resource requirements while preserving the advantages of having multiple spanning trees for load balancing purposes. • In the example below, the VLANs are mapped to 2 separate spanning tree instances as follows: • VLANs 1-500 : Spanning tree instance 1 • VLANs 501-1000 : Spanning tree instance 2
  • 18. Slide 18 1. http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst6500/i os/15- 0SY/configuration/guide/15_0_sy_swcg/spanning_tree.html#wp103 8835 2. http://www.cisco.com/c/en/us/support/docs/lan- switching/spanning-tree-protocol/5234-5.html 3. http://www.netwaxlab.com 4. http://www.indigoo.com References