SlideShare a Scribd company logo
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

More Related Content

What's hot

Overview of Spanning Tree Protocol (STP & RSTP)
Overview of Spanning Tree Protocol (STP & RSTP)Overview of Spanning Tree Protocol (STP & RSTP)
Overview of Spanning Tree Protocol (STP & RSTP)
Peter R. Egli
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
Gorantla Mohanavamsi
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
Smriti Tikoo
 
Proper spanning tree.pptx
Proper spanning tree.pptxProper spanning tree.pptx
Proper spanning tree.pptxEoin Irwin
 
Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD) Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD)
KHNOG
 
Bgp
BgpBgp
OSPF Basics
OSPF BasicsOSPF Basics
OSPF Basics
Martin Bratina
 
IP Multicasting
IP MulticastingIP Multicasting
IP Multicasting
Tharindu Kumara
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
NetProtocol Xpert
 
Network Layer
Network LayerNetwork Layer
Network Layer
Dr Shashikant Athawale
 
EtherChannel Configuration
EtherChannel ConfigurationEtherChannel Configuration
EtherChannel Configuration
NetProtocol Xpert
 
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
sushmil123
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)
NetProtocol Xpert
 
Chapter 06 - Routing
Chapter 06 - RoutingChapter 06 - Routing
Chapter 06 - Routingphanleson
 
Rip presentation
Rip presentationRip presentation
Rip presentation
Ebrahim AlRahawe
 
Difference b/w STP RSTP PVST & MSTP
Difference b/w STP RSTP PVST & MSTPDifference b/w STP RSTP PVST & MSTP
Difference b/w STP RSTP PVST & MSTP
Netwax Lab
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
Sourabh Goyal
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
N.Jagadish Kumar
 

What's hot (20)

Overview of Spanning Tree Protocol (STP & RSTP)
Overview of Spanning Tree Protocol (STP & RSTP)Overview of Spanning Tree Protocol (STP & RSTP)
Overview of Spanning Tree Protocol (STP & RSTP)
 
BGP protocol presentation
BGP protocol  presentationBGP protocol  presentation
BGP protocol presentation
 
Bgp protocol
Bgp protocolBgp protocol
Bgp protocol
 
Proper spanning tree.pptx
Proper spanning tree.pptxProper spanning tree.pptx
Proper spanning tree.pptx
 
Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD) Bidirectional Forwarding Detection (BFD)
Bidirectional Forwarding Detection (BFD)
 
Bgp
BgpBgp
Bgp
 
OSPF Basics
OSPF BasicsOSPF Basics
OSPF Basics
 
Ospf
 Ospf Ospf
Ospf
 
Ether channel fundamentals
Ether channel fundamentalsEther channel fundamentals
Ether channel fundamentals
 
IP Multicasting
IP MulticastingIP Multicasting
IP Multicasting
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
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
 
EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)EIGRP (Enhanced Interior Gateway Routing Protocol)
EIGRP (Enhanced Interior Gateway Routing Protocol)
 
Chapter 06 - Routing
Chapter 06 - RoutingChapter 06 - Routing
Chapter 06 - Routing
 
Rip presentation
Rip presentationRip presentation
Rip presentation
 
Difference b/w STP RSTP PVST & MSTP
Difference b/w STP RSTP PVST & MSTPDifference b/w STP RSTP PVST & MSTP
Difference b/w STP RSTP PVST & MSTP
 
Routing protocols
Routing protocolsRouting protocols
Routing protocols
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 

Similar to Overview of Spanning Tree Protocol

ENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptxENCOR_Capitulo 2.pptx
ENCOR_Capitulo 2.pptx
ManuelRojas960410
 
C C N A Day4
C C N A  Day4C C N A  Day4
C C N A Day4
darulquthni
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
Reetesh Gupta
 
Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01
Sachin Morya
 
Spantree
SpantreeSpantree
Spantree1 2d
 
Spantree
SpantreeSpantree
Spantree1 2d
 
Networks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshhNetworks-part17-Bridges-RP1.pptjwhwhsjshh
Networks-part17-Bridges-RP1.pptjwhwhsjshh
VijayKaran7
 
SRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptxSRWE_Module_5-STP Concepts.pptx
SRWE_Module_5-STP Concepts.pptx
SaqibAli696638
 
Stp defined
Stp definedStp defined
Stp defined
Azeem Ayaz
 
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
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
cisco49
 
Configuracion
ConfiguracionConfiguracion
Configuracion1 2d
 
Configuracion
ConfiguracionConfiguracion
Configuracion1 2d
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree Protocol
Manoj Gharate
 
02_Layer2_Network_Design.ppt
02_Layer2_Network_Design.ppt02_Layer2_Network_Design.ppt
02_Layer2_Network_Design.ppt
EnumulaBhargava1
 
RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)
Netwax Lab
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHING
anilinvns
 

Similar to 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
Ccna day4Ccna day4
Ccna day4
 
Ccna day4
Ccna day4Ccna day4
Ccna day4
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01Ccna day4-140715152437-phpapp01
Ccna day4-140715152437-phpapp01
 
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
 
Spanning Tree Protocol
Spanning Tree ProtocolSpanning Tree Protocol
Spanning Tree Protocol
 
02_Layer2_Network_Design.ppt
02_Layer2_Network_Design.ppt02_Layer2_Network_Design.ppt
02_Layer2_Network_Design.ppt
 
RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)
 
Day 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHINGDay 4 LAYER 2 SWITCHING
Day 4 LAYER 2 SWITCHING
 

Recently uploaded

1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
3ipehhoa
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
TristanJasperRamos
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
ShahulHameed54211
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
Himani415946
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 

Recently uploaded (16)

1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
1比1复刻(bath毕业证书)英国巴斯大学毕业证学位证原版一模一样
 
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptxLiving-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
Living-in-IT-era-Module-7-Imaging-and-Design-for-Social-Impact.pptx
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 
Output determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CCOutput determination SAP S4 HANA SAP SD CC
Output determination SAP S4 HANA SAP SD CC
 
ER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAEER(Entity Relationship) Diagram for online shopping - TAE
ER(Entity Relationship) Diagram for online shopping - TAE
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 

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