SlideShare a Scribd company logo
1 of 63
Download to read offline
Logo
Redundancia LAN con STP
Conceptos y Tecnología
Fredy Campos A.
f.campos@ieee.org
Escuela Profesional de Ingeniería Electrónica y Telecomunicaciones
Universidad Nacional Tecnológica de Lima Sur (UNTELS)
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 2
Objetivos
● Explain common problems in a redundant, L2 switched
network.
● Explain how STP operates in a simple switched network.
● Explain how Rapid PVST+ operates.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 3
Contenido
● Introduction
● Spanning Tree Concepts
● Varieties of Spanning Tree Protocols (STP)
● Spanning Tree Configuration
● Summary
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 4
Purpose of Spanning Tree
Redundancy at OSI Layers 1 and 2
Multiple cabled paths between switches:
§ Provide physical redundancy in a switched network.
§ Improves the reliability and availability of the network.
§ Enables users to access network resources, despite path disruption.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 5
Purpose of Spanning Tree
Issues with Layer 1 Redundancy:
MAC Database Instability
§ Ethernet frames do not have a time to live (TTL) attribute.
• Frames continue to propagate between switches endlessly, or until a link is
disrupted and breaks the loop.
• Results in MAC database instability.
• Can occur due to broadcast frames forwarding.
§ If there is more than one path for the frame to be forwarded out, an endless loop
can result.
• When a loop occurs, it is possible for the MAC address table on a switch to
constantly change with the updates from the broadcast frames, resulting
in MAC database instability.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 6
Purpose of Spanning Tree
Issues with Layer 1 Redundancy: Broadcast
Storms
§ A broadcast storm occurs when there are so many broadcast frames caught in a
Layer 2 loop that all available bandwidth is consumed. It is also known as denial
of service
§ A broadcast storm is inevitable on a looped network.
• As more devices send broadcasts over the network, more traffic is caught
within the loop; thus consuming more resources.
• This eventually creates a broadcast storm that causes the network to fail.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 7
Purpose of Spanning Tree
Issues with Layer 1 Redundancy: Broadcast
Storms
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 8
Purpose of Spanning Tree
Issues with Layer 1 Redundancy: Duplicate
Unicast Frames
§ Unicast frames sent onto a looped network can result in duplicate frames arriving at
the destination device.
§ Most upper layer protocols are not designed to recognize, or cope with, duplicate
transmissions.
§ Layer 2 LAN protocols, such as Ethernet, lack a mechanism to recognize and
eliminate endlessly looping frames.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 9
Purpose of Spanning Tree
Issues with Layer 1 Redundancy: Duplicate
Unicast Frames
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 10
Purpose of STP
Spanning Tree Algorithm: Introduction
§ STP ensures that there is only one logical path between all destinations on the
network by intentionally blocking redundant paths that could cause a loop.
§ A port is considered blocked when user data is prevented from entering or leaving
that port. This does not include bridge protocol data unit (BPDU) frames that are
used by STP to prevent loops.
§ The physical paths still exist to provide redundancy, but these paths are disabled to
prevent the loops from occurring.
§ If the path is ever needed to compensate for a network cable or switch failure, STP
recalculates the paths and unblocks the necessary ports to allow the redundant
path to become active.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 11
Purpose of STP
Spanning Tree Algorithm: Introduction
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 12
Purpose of STP
Spanning Tree Algorithm: Introduction
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 13
Purpose of STP
Spanning Tree Algorithm: Introduction
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 14
Purpose of STP
Spanning Tree Algorithm Recalculation
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 15
STP Operation
Spanning Tree Algorithm
● STP is based on an algorithm invented by Radia Perlman
while working for Digital Equipment Corporation.
▸ Was published in the 1985 paper "An Algorithm for Distributed Computation
of a Spanning Tree in an Extended LAN.”
▸ Her spanning tree algorithm (STA) creates a loop-free topology by selecting
a single root bridge where all other switches determine a single least-cost
path.
● STP prevents loops from occurring by configuring a loop-
free path through the network using strategically placed
"blocking-state" ports.
▸ The switches running STP are able to compensate for failures by
dynamically unblocking the previously blocked ports and permitting traffic to
traverse the alternate paths.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 16
STP Operation
Spanning Tree Algorithm
● How the STA create a loop-free topology
◼ Selecting a Root Bridge
▸ This bridge (switch) is the reference point for the entire network to build a spanning tree around.
◼ Block Redundant Paths
▸ STP ensures that there is only one logical path between all destinations on the network by
intentionally blocking redundant paths that could cause a loop. When a port is blocked, user
data is prevented from entering or leaving that port.
◼ Create a Loop-Free Topology
▸ A blocked port has the effect of making that link a non-forwarding link between the two switches.
This creates a topology where each switch has only a single path to the root bridge, similar to
branches on a tree that connect to the root of the tree.
◼ Recalculate in case of Link Failure
▸ The physical paths still exist to provide redundancy, but these paths are disabled to prevent the
loops from occurring. If the path is ever needed to compensate for a network cable or switch
failure, STP recalculates the paths and unblocks the necessary ports to allow the redundant
path to become active. STP recalculations can also occur any time a new switch or new inter-
switch link is added to the network.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 17
STP Operations
Steps to a Loop-Free Topology
● Using the STA, STP builds a loop-free topology in a four-step process:
▸ Elect the root bridge.
▸ Elect the root ports.
▸ Elect designated ports.
▸ Elect alternate (blocked) ports.
● During STA and STP functions, switches use Bridge Protocol Data Units
(BPDUs) to share information about themselves and their connections.
● Each BPDU contains a bridge ID (BID) that identifies which switch sent
the BPDU.
▸ The BID is involved in making many of the STA decisions including root bridge and port roles.
● The BID contains a priority value, the MAC address of the switch, and an
extended system ID.
▸ The lowest BID value is determined by the combination of these three fields.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 18
STP Operation
802.1D BPDU Frame Format
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 19
STP Operation
BPDU Propagation and Process
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 20
STP Operation
BPDU Propagation and Process
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 21
STP Operation
1. Elect the Root Bridge
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 22
STP Operation
Spanning Tree Algorithm: Path Cost
Link Speed
STP Cost: IEEE
802.1D-1998
RSTP Cost: IEEE
802.1w-2004
10 Gbps 2 2,000
1 Gbps 4 20,000
100 Mbps 19 200,000
10 Mbps 100 2,000,000
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 23
STP Operation
2. Elect the Root Ports
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 24
STP Operation
3. Elect Designated Ports
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 25
STP Operation
4. Elect Alternate (Blocked) Ports
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 26
STP Operation
Extended System ID
STP was enhanced to include support for VLANs, requiring the VLAN ID to be
included in the BPDU frame through the use of the extended system ID
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 27
STP Operation
Extended System ID
In the example, the priority of all the switches is 32769. The value is based on
the 32768 default priority and the VLAN 1 assignment associated with each
switch (32768+1).
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 28
STP Operations
STP Timers and Port States
● STP convergence requires three timers, as follows:
◼ Hello Timer
▸ The hello time is the interval between BPDUs. The default is 2 seconds but
can be modified to between 1 and 10 seconds.
◼ Forward Delay Timer
▸ The forward delay is the time that is spent in the listening and learning
state. The default is 15 seconds but can be modified to between 4 and 30
seconds.
◼ Max Age Timer
▸ The max age is the maximum length of time that a switch waits before
attempting to change the STP topology. The default is 20 seconds but can
be modified to between 6 and 40 seconds.
◼ Note: The default times can be changed on the root bridge,
which dictates the value of these timers for the STP domain.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 29
STP Operations
STP Timers and Port States (cont.)
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 30
STP Operations
Operational Details of Each Port State
Port State BPDU MAC Address Table Forwarding Data Frames
Blocking Receive only No update No
Listening Receive and send No update No
Learning Receive and send Updating table No
Forwarding Receive and send Updating table Yes
Disabled None sent or received No update No
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 31
Evolution of STP
Different Versions of STP
§ STP or IEEE 802.1D-1998
§ PVST+
§ IEEE 802.1D-2004
§ Rapid Spanning Tree Protocol (RSTP) or IEEE 802.1w
§ Rapid PVST+
§ Multiple Spanning Tree Protocol (MSTP) or IEEE 802.1s
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 32
Evolution of STP
Different Versions of STP (Cont.)
STP
Variety
Description
STP
This is the original IEEE 802.1D version (802.1D-1998 and earlier) that provides a loop-free topology in a network with
redundant links. Also called Common Spanning Tree (CST), it assumes one spanning tree instance for the entire bridged
network, regardless of the number of VLANs.
PVST+
Per-VLAN Spanning Tree (PVST+) is a Cisco enhancement of STP that provides a separate 802.1D spanning tree instance
for each VLAN configured in the network. PVST+ supports PortFast, UplinkFast, BackboneFast, BPDU guard, BPDU filter,
root guard, and loop guard.
802.1D-
2004
This is an updated version of the STP standard, incorporating IEEE 802.1w.
RSTP Rapid Spanning Tree Protocol (RSTP) or IEEE 802.1w is an evolution of STP that provides faster convergence than STP.
Rapid
PVST+
This is a Cisco enhancement of RSTP that uses PVST+ and provides a separate instance of 802.1w per VLAN. Each
separate instance supports PortFast, BPDU guard, BPDU filter, root guard, and loop guard.
MSTP
Multiple Spanning Tree Protocol (MSTP) is an IEEE standard inspired by the earlier Cisco proprietary Multiple Instance STP
(MISTP) implementation. MSTP maps multiple VLANs into the same spanning tree instance.
MST
Multiple Spanning Tree (MST) is the Cisco implementation of MSTP, which provides up to 16 instances of RSTP and
combines many VLANs with the same physical and logical topology into a common RSTP instance. Each instance supports
PortFast, BPDU guard, BPDU filter, root guard, and loop guard.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 33
STP Overview
Characteristics of the Spanning Tree Protocols
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 34
PVST+
Overview of PVST+
Networks running PVST+ have these characteristics:
§ A network can run an independent IEEE 802.1D STP instance for each VLAN in
the network.
§ Optimum load balancing can result.
§ One spanning-tree instance for each VLAN maintained can mean a considerable
waste of CPU cycles for all the switches in the network. In addition to the
bandwidth that is used for each instance to send its own BPDU.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 35
PVST+
Overview of PVST+
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 36
PVST+
Port States and PVST+ Operation
STP introduces the five port states:
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 37
PVST+
Extended System ID and PVST+ Operation
§ In a PVST+ environment, the extended switch ID ensures each switch has a
unique BID for each VLAN.
§ For example, the VLAN 2 default BID would be 32770; priority 32768, plus the
extended system ID of 2.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 38
Rapid PVST+
Overview of Rapid PVST+
§ RSTP is the preferred protocol for preventing Layer 2 loops in a switched network
environment.
§ With Rapid PVST+, an independent instance of RSTP runs for each VLAN.
§ RSTP supports a new port type: an alternate port in discarding state.
§ There are no blocking ports. RSTP defines port states as discarding, learning, or
forwarding.
§ RSTP (802.1w) supersedes STP (802.1D) while retaining backward compatibility
§ RSTP keeps the same BPDU format as IEEE 802.1D, except that the version field
is set to 2 to indicate RSTP, and the flags field uses all 8 bits.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 39
Rapid PVST+
Overview of Rapid PVST+
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 40
Rapid PVST+
RSTP BPDU
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 41
Rapid PVST+
Edge Ports
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 42
Rapid PVST+
Link Types
The link type can determine whether the port can immediately transition to
forwarding state. Edge port connections and point-to-point connections are
candidates for rapid transition to forwarding state.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 43
PVST+ Configuration
Configuring and Verifying the Bridge ID
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 44
PVST+ Configuration
Configuring and Verifying the Bridge ID
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 45
PVST+ Configuration
PortFast and BPDU Guard
§ When a switch port is
configured with PortFast that
port transitions from blocking
to forwarding state
immediately.
§ BPDU guard puts the port in
an error-disabled state on
receipt of a BPDU.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 46
PVST+ Configuration
PVST+ Load Balancing
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 47
PVST+ Configuration
PVST+ Load Balancing
§ Another method to specify the root bridge is to set the spanning tree priority on
each switch to the lowest value so that the switch is selected as the primary
bridge for its associated VLAN.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 48
PVST+ Configuration
PVST+ Load Balancing
§ Display and verify spanning tree configuration details.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 49
PVST+ Configuration
PVST+ Load Balancing
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 50
Rapid PVST+ Configuration
Spanning Tree Mode
Rapid PVST+ is the Cisco
implementation of RSTP. It
supports RSTP on a per-VLAN
basis.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 51
STP Configuration Issues
Analyzing the STP Topology
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 52
STP Configuration Issues
Expected Topology versus Actual Topology
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 53
STP Configuration Issues
Overview of Spanning Tree Status
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 54
STP Configuration Issues
Spanning-Tree Failure Consequences
§ STP erroneously moves one or
more ports into the
forwarding state.
§ Any frame that is flooded by a
switch enters the loop.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 55
Evolution of STP
RSTP Concepts
• RSTP (IEEE 802.1w) supersedes the original 802.1D while retaining backward compatibility. The 802.1w STP
terminology remains primarily the same as the original IEEE 802.1D STP terminology. Most parameters have been
left unchanged. Users that are familiar with the original STP standard can easily configure RSTP. The same
spanning tree algorithm is used for both STP and RSTP to determine port roles and topology.
• RSTP increases the speed of the recalculation of the spanning tree when the Layer 2 network topology changes.
RSTP can achieve much faster convergence in a properly configured network, sometimes in as little as a few
hundred milliseconds. If a port is configured to be an alternate port it can immediately change to a forwarding state
without waiting for the network to converge.
Note: Rapid PVST+ is the Cisco implementation of RSTP on a per-VLAN basis. With Rapid PVST+ an independent
instance of RSTP runs for each VLAN.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 56
Evolution of STP
RSTP Port States and Port Roles
There are only three port states in
RSTP that correspond to the three
possible operational states in STP. The
802.1D disabled, blocking, and
listening states are merged into a
unique 802.1w discarding state.
Root ports and designated ports are the same for
both STP and RSTP. However, there are two RSTP
port roles that correspond to the blocking state of
STP. In STP, a blocked port is defined as not being
the designated or root port. RSTP has two port
roles for this purpose.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 57
Evolution of STP
RSTP Port States and Port Roles (Cont.)
The alternate port has an alternate path to the root bridge. The backup port is a backup to a shared medium, such as a
hub. A backup port is less common because hubs are now considered legacy devices.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 58
Evolution of STP
PortFast and BPDU Guard
• When a device is connected to a switch port or when a switch powers up, the switch port goes through both the
listening and learning states, each time waiting for the Forward Delay timer to expire. This delay is 15 seconds for
each state for a total of 30 seconds. This can present a problem for DHCP clients trying to discover a DHCP server
because the DHCP process may timeout. The result is that an IPv4 client will not receive a valid IPv4 address.
• When a switch port is configured with PortFast, that port transitions from blocking to forwarding state immediately,
avoiding the 30 second delay. You can use PortFast on access ports to allow devices connected to these ports to
access the network immediately. PortFast should only be used on access ports. If you enable PortFast on a port
connecting to another switch, you risk creating a spanning tree loop.
• A PortFast-enabled switch port should never receive BPDUs because that would indicate that switch is connected
to the port, potentially causing a spanning tree loop. Cisco switches support a feature called BPDU guard. When
enabled, it immediately puts the switch port in an errdisabled (error-disabled) state upon receipt of any BPDU. This
protects against potential loops by effectively shutting down the port. The administrator must manually put the
interface back into service.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 59
Evolution of STP
Alternatives to STP
• Over the years, organizations required greater resiliency and availability in the LAN. Ethernet LANs went from a few
interconnected switches connected to a single router, to a sophisticated hierarchical network design including
access, distribution and core layer switches.
• Depending on the implementation, Layer 2 may include not only the access layer, but also the distribution or even
the core layers. These designs may include hundreds of switches, with hundreds or even thousands of VLANs. STP
has adapted to the added redundancy and complexity with enhancements, as part of RSTP and MSTP.
• An important aspect to network design is fast and predictable convergence when there is a failure or change in the
topology. Spanning tree does not offer the same efficiencies and predictabilities provided by routing protocols at
Layer 3.
• Layer 3 routing allows for redundant paths and loops in the topology, without blocking ports. For this reason, some
environments are transitioning to Layer 3 everywhere except where devices connect to the access layer switch. In
other words, the connections between access layer switches and distribution switches would be Layer 3 instead of
Layer 2.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 60
Summary
● IEEE 802.1D is implemented on Cisco switches on a per-
VLAN basis in the form of PVST+. This is the default
configuration on Cisco switches.
● RSTP, can be implemented on Cisco switches on a per-
VLAN basis in the form of Rapid PVST+.
● With PVST+ and Rapid PVST+, root bridges can be
configured proactively to enable spanning tree load
balancing.
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 61
Conclusiones
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 62
Bibliografía
◼ Cisco Networking Academy Program
◼ Stallings, William. Data and Computer Communications, 8th
Edition, Prentice Hall, 2009
◼ Natalia Olifer, Victor Olifer. Redes de computadoras: principios,
tecnología y protocolos para el diseño de redes, 1ra Edición,
McGraw Hill, 2009
◼ Tanenbaum, Andrew. Computer Networks, 5th Edition, Prentice
Hall, 2001.
◼ On-line
▸ http://docwiki.cisco.com/wiki/Internet_Protocols
2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 63
Fredy Campos A.
f.campos@ieee.org
Carrera Profesional de Ingeniería Electrónica y Telecomunicaciones
Universidad Nacional Tecnológica Lima Sur (UNTELS)

More Related Content

Similar to ARP_L2-3a_Redundancia-LAN-STP_v2_20201127.pdf

008 stp principle issue1.3bx1
008 stp principle issue1.3bx1008 stp principle issue1.3bx1
008 stp principle issue1.3bx1jcbp_peru
 
CCNP Switching Chapter 4
CCNP Switching Chapter 4CCNP Switching Chapter 4
CCNP Switching Chapter 4Chaing Ravuth
 
Stp premdeep gill-lu045310-14aug12
Stp premdeep gill-lu045310-14aug12Stp premdeep gill-lu045310-14aug12
Stp premdeep gill-lu045310-14aug12CYBERINTELLIGENTS
 
Ccna 4 final exam answer v5
Ccna 4 final exam answer v5Ccna 4 final exam answer v5
Ccna 4 final exam answer v5friv4schoolgames
 
Brk 135 t-ccna_switching
Brk 135 t-ccna_switchingBrk 135 t-ccna_switching
Brk 135 t-ccna_switchingparthasn83
 
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aqPLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aqPROIDEA
 
CCNP Switching Chapter 1
CCNP Switching Chapter 1CCNP Switching Chapter 1
CCNP Switching Chapter 1Chaing Ravuth
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPTAIRTEL
 
Network Level Redundancy for Campus LAN
Network Level Redundancy for Campus LANNetwork Level Redundancy for Campus LAN
Network Level Redundancy for Campus LANijtsrd
 
Ijcn 114DRSTP: A Simple Technique for Preventing Count-to-Infinity in RSTP Co...
Ijcn 114DRSTP: A Simple Technique for Preventing Count-to-Infinity in RSTP Co...Ijcn 114DRSTP: A Simple Technique for Preventing Count-to-Infinity in RSTP Co...
Ijcn 114DRSTP: A Simple Technique for Preventing Count-to-Infinity in RSTP Co...CSCJournals
 
IRJET - Improving TCP Performance in Wireless Networks
IRJET -  	  Improving TCP Performance in Wireless NetworksIRJET -  	  Improving TCP Performance in Wireless Networks
IRJET - Improving TCP Performance in Wireless NetworksIRJET Journal
 

Similar to ARP_L2-3a_Redundancia-LAN-STP_v2_20201127.pdf (20)

PACE-IT: Configuring Switches (part 1)
PACE-IT: Configuring Switches (part 1)PACE-IT: Configuring Switches (part 1)
PACE-IT: Configuring Switches (part 1)
 
008 stp principle issue1.3bx1
008 stp principle issue1.3bx1008 stp principle issue1.3bx1
008 stp principle issue1.3bx1
 
Ccna day1
Ccna day1Ccna day1
Ccna day1
 
CCNP Switching Chapter 4
CCNP Switching Chapter 4CCNP Switching Chapter 4
CCNP Switching Chapter 4
 
Stp premdeep gill-lu045310-14aug12
Stp premdeep gill-lu045310-14aug12Stp premdeep gill-lu045310-14aug12
Stp premdeep gill-lu045310-14aug12
 
Ccna 4 final exam answer v5
Ccna 4 final exam answer v5Ccna 4 final exam answer v5
Ccna 4 final exam answer v5
 
Brk 135 t-ccna_switching
Brk 135 t-ccna_switchingBrk 135 t-ccna_switching
Brk 135 t-ccna_switching
 
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aqPLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
PLNOG 8: Peter Ashwood-Smith - Shortest Path Bridging IEEE 802.1aq
 
Ccna day1
Ccna day1Ccna day1
Ccna day1
 
Ccna day 1
Ccna day 1Ccna day 1
Ccna day 1
 
Ccna day1
Ccna day1Ccna day1
Ccna day1
 
Ccna day1
Ccna day1Ccna day1
Ccna day1
 
Ccna day1-130802165909-phpapp01
Ccna day1-130802165909-phpapp01Ccna day1-130802165909-phpapp01
Ccna day1-130802165909-phpapp01
 
CCNP Switching Chapter 1
CCNP Switching Chapter 1CCNP Switching Chapter 1
CCNP Switching Chapter 1
 
networking1.ppt
networking1.pptnetworking1.ppt
networking1.ppt
 
Ccna PPT
Ccna PPTCcna PPT
Ccna PPT
 
Network Level Redundancy for Campus LAN
Network Level Redundancy for Campus LANNetwork Level Redundancy for Campus LAN
Network Level Redundancy for Campus LAN
 
Ijcn 114DRSTP: A Simple Technique for Preventing Count-to-Infinity in RSTP Co...
Ijcn 114DRSTP: A Simple Technique for Preventing Count-to-Infinity in RSTP Co...Ijcn 114DRSTP: A Simple Technique for Preventing Count-to-Infinity in RSTP Co...
Ijcn 114DRSTP: A Simple Technique for Preventing Count-to-Infinity in RSTP Co...
 
IRJET - Improving TCP Performance in Wireless Networks
IRJET -  	  Improving TCP Performance in Wireless NetworksIRJET -  	  Improving TCP Performance in Wireless Networks
IRJET - Improving TCP Performance in Wireless Networks
 
SS7 over IP Brown Bag
SS7 over IP Brown BagSS7 over IP Brown Bag
SS7 over IP Brown Bag
 

Recently uploaded

Full Masii Russian Call Girls In Dwarka (Delhi) 9711199012 💋✔💕😘We are availab...
Full Masii Russian Call Girls In Dwarka (Delhi) 9711199012 💋✔💕😘We are availab...Full Masii Russian Call Girls In Dwarka (Delhi) 9711199012 💋✔💕😘We are availab...
Full Masii Russian Call Girls In Dwarka (Delhi) 9711199012 💋✔💕😘We are availab...shivangimorya083
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfSoham Mondal
 
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位obuhobo
 
Call Girl in Low Price Delhi Punjabi Bagh 9711199012
Call Girl in Low Price Delhi Punjabi Bagh  9711199012Call Girl in Low Price Delhi Punjabi Bagh  9711199012
Call Girl in Low Price Delhi Punjabi Bagh 9711199012sapnasaifi408
 
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...Suhani Kapoor
 
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big BoodyDubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boodykojalkojal131
 
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...Suhani Kapoor
 
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...Suhani Kapoor
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...shivangimorya083
 
CFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceCFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceSanjay Bokadia
 
Neha +91-9537192988-Friendly Ahmedabad Call Girls has Complete Authority for ...
Neha +91-9537192988-Friendly Ahmedabad Call Girls has Complete Authority for ...Neha +91-9537192988-Friendly Ahmedabad Call Girls has Complete Authority for ...
Neha +91-9537192988-Friendly Ahmedabad Call Girls has Complete Authority for ...Niya Khan
 
Call Girls Mukherjee Nagar Delhi reach out to us at ☎ 9711199012
Call Girls Mukherjee Nagar Delhi reach out to us at ☎ 9711199012Call Girls Mukherjee Nagar Delhi reach out to us at ☎ 9711199012
Call Girls Mukherjee Nagar Delhi reach out to us at ☎ 9711199012rehmti665
 
Production Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjProduction Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjLewisJB
 
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳anilsa9823
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Business Development and Product Strategy for a SME named SARL based in Leban...
Business Development and Product Strategy for a SME named SARL based in Leban...Business Development and Product Strategy for a SME named SARL based in Leban...
Business Development and Product Strategy for a SME named SARL based in Leban...Soham Mondal
 
Employee of the Month - Samsung Semiconductor India Research
Employee of the Month - Samsung Semiconductor India ResearchEmployee of the Month - Samsung Semiconductor India Research
Employee of the Month - Samsung Semiconductor India ResearchSoham Mondal
 
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士obuhobo
 
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...Suhani Kapoor
 

Recently uploaded (20)

Full Masii Russian Call Girls In Dwarka (Delhi) 9711199012 💋✔💕😘We are availab...
Full Masii Russian Call Girls In Dwarka (Delhi) 9711199012 💋✔💕😘We are availab...Full Masii Russian Call Girls In Dwarka (Delhi) 9711199012 💋✔💕😘We are availab...
Full Masii Russian Call Girls In Dwarka (Delhi) 9711199012 💋✔💕😘We are availab...
 
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdfExperience Certificate - Marketing Analyst-Soham Mondal.pdf
Experience Certificate - Marketing Analyst-Soham Mondal.pdf
 
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCeCall Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
Call Girls In Prashant Vihar꧁❤ 🔝 9953056974🔝❤꧂ Escort ServiCe
 
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
加利福尼亚艺术学院毕业证文凭证书( 咨询 )证书双学位
 
Call Girl in Low Price Delhi Punjabi Bagh 9711199012
Call Girl in Low Price Delhi Punjabi Bagh  9711199012Call Girl in Low Price Delhi Punjabi Bagh  9711199012
Call Girl in Low Price Delhi Punjabi Bagh 9711199012
 
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
VIP High Profile Call Girls Jamshedpur Aarushi 8250192130 Independent Escort ...
 
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big BoodyDubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
 
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
VIP Call Girls in Jamshedpur Aarohi 8250192130 Independent Escort Service Jam...
 
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
VIP Russian Call Girls Amravati Chhaya 8250192130 Independent Escort Service ...
 
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
Delhi Call Girls Preet Vihar 9711199171 ☎✔👌✔ Whatsapp Body to body massage wi...
 
CFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector ExperienceCFO_SB_Career History_Multi Sector Experience
CFO_SB_Career History_Multi Sector Experience
 
Neha +91-9537192988-Friendly Ahmedabad Call Girls has Complete Authority for ...
Neha +91-9537192988-Friendly Ahmedabad Call Girls has Complete Authority for ...Neha +91-9537192988-Friendly Ahmedabad Call Girls has Complete Authority for ...
Neha +91-9537192988-Friendly Ahmedabad Call Girls has Complete Authority for ...
 
Call Girls Mukherjee Nagar Delhi reach out to us at ☎ 9711199012
Call Girls Mukherjee Nagar Delhi reach out to us at ☎ 9711199012Call Girls Mukherjee Nagar Delhi reach out to us at ☎ 9711199012
Call Girls Mukherjee Nagar Delhi reach out to us at ☎ 9711199012
 
Production Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjProduction Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbj
 
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service  🧳
CALL ON ➥8923113531 🔝Call Girls Husainganj Lucknow best Female service 🧳
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Business Development and Product Strategy for a SME named SARL based in Leban...
Business Development and Product Strategy for a SME named SARL based in Leban...Business Development and Product Strategy for a SME named SARL based in Leban...
Business Development and Product Strategy for a SME named SARL based in Leban...
 
Employee of the Month - Samsung Semiconductor India Research
Employee of the Month - Samsung Semiconductor India ResearchEmployee of the Month - Samsung Semiconductor India Research
Employee of the Month - Samsung Semiconductor India Research
 
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
内布拉斯加大学林肯分校毕业证录取书( 退学 )学位证书硕士
 
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
VIP Call Girls Service Saharanpur Aishwarya 8250192130 Independent Escort Ser...
 

ARP_L2-3a_Redundancia-LAN-STP_v2_20201127.pdf

  • 1. Logo Redundancia LAN con STP Conceptos y Tecnología Fredy Campos A. f.campos@ieee.org Escuela Profesional de Ingeniería Electrónica y Telecomunicaciones Universidad Nacional Tecnológica de Lima Sur (UNTELS)
  • 2. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 2 Objetivos ● Explain common problems in a redundant, L2 switched network. ● Explain how STP operates in a simple switched network. ● Explain how Rapid PVST+ operates.
  • 3. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 3 Contenido ● Introduction ● Spanning Tree Concepts ● Varieties of Spanning Tree Protocols (STP) ● Spanning Tree Configuration ● Summary
  • 4. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 4 Purpose of Spanning Tree Redundancy at OSI Layers 1 and 2 Multiple cabled paths between switches: § Provide physical redundancy in a switched network. § Improves the reliability and availability of the network. § Enables users to access network resources, despite path disruption.
  • 5. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 5 Purpose of Spanning Tree Issues with Layer 1 Redundancy: MAC Database Instability § Ethernet frames do not have a time to live (TTL) attribute. • Frames continue to propagate between switches endlessly, or until a link is disrupted and breaks the loop. • Results in MAC database instability. • Can occur due to broadcast frames forwarding. § If there is more than one path for the frame to be forwarded out, an endless loop can result. • When a loop occurs, it is possible for the MAC address table on a switch to constantly change with the updates from the broadcast frames, resulting in MAC database instability.
  • 6. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 6 Purpose of Spanning Tree Issues with Layer 1 Redundancy: Broadcast Storms § A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available bandwidth is consumed. It is also known as denial of service § A broadcast storm is inevitable on a looped network. • As more devices send broadcasts over the network, more traffic is caught within the loop; thus consuming more resources. • This eventually creates a broadcast storm that causes the network to fail.
  • 7. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 7 Purpose of Spanning Tree Issues with Layer 1 Redundancy: Broadcast Storms
  • 8. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 8 Purpose of Spanning Tree Issues with Layer 1 Redundancy: Duplicate Unicast Frames § Unicast frames sent onto a looped network can result in duplicate frames arriving at the destination device. § Most upper layer protocols are not designed to recognize, or cope with, duplicate transmissions. § Layer 2 LAN protocols, such as Ethernet, lack a mechanism to recognize and eliminate endlessly looping frames.
  • 9. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 9 Purpose of Spanning Tree Issues with Layer 1 Redundancy: Duplicate Unicast Frames
  • 10. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 10 Purpose of STP Spanning Tree Algorithm: Introduction § STP ensures that there is only one logical path between all destinations on the network by intentionally blocking redundant paths that could cause a loop. § A port is considered blocked when user data is prevented from entering or leaving that port. This does not include bridge protocol data unit (BPDU) frames that are used by STP to prevent loops. § The physical paths still exist to provide redundancy, but these paths are disabled to prevent the loops from occurring. § If the path is ever needed to compensate for a network cable or switch failure, STP recalculates the paths and unblocks the necessary ports to allow the redundant path to become active.
  • 11. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 11 Purpose of STP Spanning Tree Algorithm: Introduction
  • 12. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 12 Purpose of STP Spanning Tree Algorithm: Introduction
  • 13. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 13 Purpose of STP Spanning Tree Algorithm: Introduction
  • 14. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 14 Purpose of STP Spanning Tree Algorithm Recalculation
  • 15. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 15 STP Operation Spanning Tree Algorithm ● STP is based on an algorithm invented by Radia Perlman while working for Digital Equipment Corporation. ▸ Was published in the 1985 paper "An Algorithm for Distributed Computation of a Spanning Tree in an Extended LAN.” ▸ Her spanning tree algorithm (STA) creates a loop-free topology by selecting a single root bridge where all other switches determine a single least-cost path. ● STP prevents loops from occurring by configuring a loop- free path through the network using strategically placed "blocking-state" ports. ▸ The switches running STP are able to compensate for failures by dynamically unblocking the previously blocked ports and permitting traffic to traverse the alternate paths.
  • 16. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 16 STP Operation Spanning Tree Algorithm ● How the STA create a loop-free topology ◼ Selecting a Root Bridge ▸ This bridge (switch) is the reference point for the entire network to build a spanning tree around. ◼ Block Redundant Paths ▸ STP ensures that there is only one logical path between all destinations on the network by intentionally blocking redundant paths that could cause a loop. When a port is blocked, user data is prevented from entering or leaving that port. ◼ Create a Loop-Free Topology ▸ A blocked port has the effect of making that link a non-forwarding link between the two switches. This creates a topology where each switch has only a single path to the root bridge, similar to branches on a tree that connect to the root of the tree. ◼ Recalculate in case of Link Failure ▸ The physical paths still exist to provide redundancy, but these paths are disabled to prevent the loops from occurring. If the path is ever needed to compensate for a network cable or switch failure, STP recalculates the paths and unblocks the necessary ports to allow the redundant path to become active. STP recalculations can also occur any time a new switch or new inter- switch link is added to the network.
  • 17. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 17 STP Operations Steps to a Loop-Free Topology ● Using the STA, STP builds a loop-free topology in a four-step process: ▸ Elect the root bridge. ▸ Elect the root ports. ▸ Elect designated ports. ▸ Elect alternate (blocked) ports. ● During STA and STP functions, switches use Bridge Protocol Data Units (BPDUs) to share information about themselves and their connections. ● Each BPDU contains a bridge ID (BID) that identifies which switch sent the BPDU. ▸ The BID is involved in making many of the STA decisions including root bridge and port roles. ● The BID contains a priority value, the MAC address of the switch, and an extended system ID. ▸ The lowest BID value is determined by the combination of these three fields.
  • 18. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 18 STP Operation 802.1D BPDU Frame Format
  • 19. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 19 STP Operation BPDU Propagation and Process
  • 20. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 20 STP Operation BPDU Propagation and Process
  • 21. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 21 STP Operation 1. Elect the Root Bridge
  • 22. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 22 STP Operation Spanning Tree Algorithm: Path Cost Link Speed STP Cost: IEEE 802.1D-1998 RSTP Cost: IEEE 802.1w-2004 10 Gbps 2 2,000 1 Gbps 4 20,000 100 Mbps 19 200,000 10 Mbps 100 2,000,000
  • 23. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 23 STP Operation 2. Elect the Root Ports
  • 24. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 24 STP Operation 3. Elect Designated Ports
  • 25. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 25 STP Operation 4. Elect Alternate (Blocked) Ports
  • 26. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 26 STP Operation Extended System ID STP was enhanced to include support for VLANs, requiring the VLAN ID to be included in the BPDU frame through the use of the extended system ID
  • 27. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 27 STP Operation Extended System ID In the example, the priority of all the switches is 32769. The value is based on the 32768 default priority and the VLAN 1 assignment associated with each switch (32768+1).
  • 28. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 28 STP Operations STP Timers and Port States ● STP convergence requires three timers, as follows: ◼ Hello Timer ▸ The hello time is the interval between BPDUs. The default is 2 seconds but can be modified to between 1 and 10 seconds. ◼ Forward Delay Timer ▸ The forward delay is the time that is spent in the listening and learning state. The default is 15 seconds but can be modified to between 4 and 30 seconds. ◼ Max Age Timer ▸ The max age is the maximum length of time that a switch waits before attempting to change the STP topology. The default is 20 seconds but can be modified to between 6 and 40 seconds. ◼ Note: The default times can be changed on the root bridge, which dictates the value of these timers for the STP domain.
  • 29. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 29 STP Operations STP Timers and Port States (cont.)
  • 30. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 30 STP Operations Operational Details of Each Port State Port State BPDU MAC Address Table Forwarding Data Frames Blocking Receive only No update No Listening Receive and send No update No Learning Receive and send Updating table No Forwarding Receive and send Updating table Yes Disabled None sent or received No update No
  • 31. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 31 Evolution of STP Different Versions of STP § STP or IEEE 802.1D-1998 § PVST+ § IEEE 802.1D-2004 § Rapid Spanning Tree Protocol (RSTP) or IEEE 802.1w § Rapid PVST+ § Multiple Spanning Tree Protocol (MSTP) or IEEE 802.1s
  • 32. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 32 Evolution of STP Different Versions of STP (Cont.) STP Variety Description STP This is the original IEEE 802.1D version (802.1D-1998 and earlier) that provides a loop-free topology in a network with redundant links. Also called Common Spanning Tree (CST), it assumes one spanning tree instance for the entire bridged network, regardless of the number of VLANs. PVST+ Per-VLAN Spanning Tree (PVST+) is a Cisco enhancement of STP that provides a separate 802.1D spanning tree instance for each VLAN configured in the network. PVST+ supports PortFast, UplinkFast, BackboneFast, BPDU guard, BPDU filter, root guard, and loop guard. 802.1D- 2004 This is an updated version of the STP standard, incorporating IEEE 802.1w. RSTP Rapid Spanning Tree Protocol (RSTP) or IEEE 802.1w is an evolution of STP that provides faster convergence than STP. Rapid PVST+ This is a Cisco enhancement of RSTP that uses PVST+ and provides a separate instance of 802.1w per VLAN. Each separate instance supports PortFast, BPDU guard, BPDU filter, root guard, and loop guard. MSTP Multiple Spanning Tree Protocol (MSTP) is an IEEE standard inspired by the earlier Cisco proprietary Multiple Instance STP (MISTP) implementation. MSTP maps multiple VLANs into the same spanning tree instance. MST Multiple Spanning Tree (MST) is the Cisco implementation of MSTP, which provides up to 16 instances of RSTP and combines many VLANs with the same physical and logical topology into a common RSTP instance. Each instance supports PortFast, BPDU guard, BPDU filter, root guard, and loop guard.
  • 33. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 33 STP Overview Characteristics of the Spanning Tree Protocols
  • 34. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 34 PVST+ Overview of PVST+ Networks running PVST+ have these characteristics: § A network can run an independent IEEE 802.1D STP instance for each VLAN in the network. § Optimum load balancing can result. § One spanning-tree instance for each VLAN maintained can mean a considerable waste of CPU cycles for all the switches in the network. In addition to the bandwidth that is used for each instance to send its own BPDU.
  • 35. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 35 PVST+ Overview of PVST+
  • 36. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 36 PVST+ Port States and PVST+ Operation STP introduces the five port states:
  • 37. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 37 PVST+ Extended System ID and PVST+ Operation § In a PVST+ environment, the extended switch ID ensures each switch has a unique BID for each VLAN. § For example, the VLAN 2 default BID would be 32770; priority 32768, plus the extended system ID of 2.
  • 38. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 38 Rapid PVST+ Overview of Rapid PVST+ § RSTP is the preferred protocol for preventing Layer 2 loops in a switched network environment. § With Rapid PVST+, an independent instance of RSTP runs for each VLAN. § RSTP supports a new port type: an alternate port in discarding state. § There are no blocking ports. RSTP defines port states as discarding, learning, or forwarding. § RSTP (802.1w) supersedes STP (802.1D) while retaining backward compatibility § RSTP keeps the same BPDU format as IEEE 802.1D, except that the version field is set to 2 to indicate RSTP, and the flags field uses all 8 bits.
  • 39. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 39 Rapid PVST+ Overview of Rapid PVST+
  • 40. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 40 Rapid PVST+ RSTP BPDU
  • 41. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 41 Rapid PVST+ Edge Ports
  • 42. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 42 Rapid PVST+ Link Types The link type can determine whether the port can immediately transition to forwarding state. Edge port connections and point-to-point connections are candidates for rapid transition to forwarding state.
  • 43. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 43 PVST+ Configuration Configuring and Verifying the Bridge ID
  • 44. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 44 PVST+ Configuration Configuring and Verifying the Bridge ID
  • 45. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 45 PVST+ Configuration PortFast and BPDU Guard § When a switch port is configured with PortFast that port transitions from blocking to forwarding state immediately. § BPDU guard puts the port in an error-disabled state on receipt of a BPDU.
  • 46. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 46 PVST+ Configuration PVST+ Load Balancing
  • 47. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 47 PVST+ Configuration PVST+ Load Balancing § Another method to specify the root bridge is to set the spanning tree priority on each switch to the lowest value so that the switch is selected as the primary bridge for its associated VLAN.
  • 48. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 48 PVST+ Configuration PVST+ Load Balancing § Display and verify spanning tree configuration details.
  • 49. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 49 PVST+ Configuration PVST+ Load Balancing
  • 50. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 50 Rapid PVST+ Configuration Spanning Tree Mode Rapid PVST+ is the Cisco implementation of RSTP. It supports RSTP on a per-VLAN basis.
  • 51. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 51 STP Configuration Issues Analyzing the STP Topology
  • 52. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 52 STP Configuration Issues Expected Topology versus Actual Topology
  • 53. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 53 STP Configuration Issues Overview of Spanning Tree Status
  • 54. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 54 STP Configuration Issues Spanning-Tree Failure Consequences § STP erroneously moves one or more ports into the forwarding state. § Any frame that is flooded by a switch enters the loop.
  • 55. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 55 Evolution of STP RSTP Concepts • RSTP (IEEE 802.1w) supersedes the original 802.1D while retaining backward compatibility. The 802.1w STP terminology remains primarily the same as the original IEEE 802.1D STP terminology. Most parameters have been left unchanged. Users that are familiar with the original STP standard can easily configure RSTP. The same spanning tree algorithm is used for both STP and RSTP to determine port roles and topology. • RSTP increases the speed of the recalculation of the spanning tree when the Layer 2 network topology changes. RSTP can achieve much faster convergence in a properly configured network, sometimes in as little as a few hundred milliseconds. If a port is configured to be an alternate port it can immediately change to a forwarding state without waiting for the network to converge. Note: Rapid PVST+ is the Cisco implementation of RSTP on a per-VLAN basis. With Rapid PVST+ an independent instance of RSTP runs for each VLAN.
  • 56. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 56 Evolution of STP RSTP Port States and Port Roles There are only three port states in RSTP that correspond to the three possible operational states in STP. The 802.1D disabled, blocking, and listening states are merged into a unique 802.1w discarding state. Root ports and designated ports are the same for both STP and RSTP. However, there are two RSTP port roles that correspond to the blocking state of STP. In STP, a blocked port is defined as not being the designated or root port. RSTP has two port roles for this purpose.
  • 57. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 57 Evolution of STP RSTP Port States and Port Roles (Cont.) The alternate port has an alternate path to the root bridge. The backup port is a backup to a shared medium, such as a hub. A backup port is less common because hubs are now considered legacy devices.
  • 58. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 58 Evolution of STP PortFast and BPDU Guard • When a device is connected to a switch port or when a switch powers up, the switch port goes through both the listening and learning states, each time waiting for the Forward Delay timer to expire. This delay is 15 seconds for each state for a total of 30 seconds. This can present a problem for DHCP clients trying to discover a DHCP server because the DHCP process may timeout. The result is that an IPv4 client will not receive a valid IPv4 address. • When a switch port is configured with PortFast, that port transitions from blocking to forwarding state immediately, avoiding the 30 second delay. You can use PortFast on access ports to allow devices connected to these ports to access the network immediately. PortFast should only be used on access ports. If you enable PortFast on a port connecting to another switch, you risk creating a spanning tree loop. • A PortFast-enabled switch port should never receive BPDUs because that would indicate that switch is connected to the port, potentially causing a spanning tree loop. Cisco switches support a feature called BPDU guard. When enabled, it immediately puts the switch port in an errdisabled (error-disabled) state upon receipt of any BPDU. This protects against potential loops by effectively shutting down the port. The administrator must manually put the interface back into service.
  • 59. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 59 Evolution of STP Alternatives to STP • Over the years, organizations required greater resiliency and availability in the LAN. Ethernet LANs went from a few interconnected switches connected to a single router, to a sophisticated hierarchical network design including access, distribution and core layer switches. • Depending on the implementation, Layer 2 may include not only the access layer, but also the distribution or even the core layers. These designs may include hundreds of switches, with hundreds or even thousands of VLANs. STP has adapted to the added redundancy and complexity with enhancements, as part of RSTP and MSTP. • An important aspect to network design is fast and predictable convergence when there is a failure or change in the topology. Spanning tree does not offer the same efficiencies and predictabilities provided by routing protocols at Layer 3. • Layer 3 routing allows for redundant paths and loops in the topology, without blocking ports. For this reason, some environments are transitioning to Layer 3 everywhere except where devices connect to the access layer switch. In other words, the connections between access layer switches and distribution switches would be Layer 3 instead of Layer 2.
  • 60. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 60 Summary ● IEEE 802.1D is implemented on Cisco switches on a per- VLAN basis in the form of PVST+. This is the default configuration on Cisco switches. ● RSTP, can be implemented on Cisco switches on a per- VLAN basis in the form of Rapid PVST+. ● With PVST+ and Rapid PVST+, root bridges can be configured proactively to enable spanning tree load balancing.
  • 61. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 61 Conclusiones
  • 62. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 62 Bibliografía ◼ Cisco Networking Academy Program ◼ Stallings, William. Data and Computer Communications, 8th Edition, Prentice Hall, 2009 ◼ Natalia Olifer, Victor Olifer. Redes de computadoras: principios, tecnología y protocolos para el diseño de redes, 1ra Edición, McGraw Hill, 2009 ◼ Tanenbaum, Andrew. Computer Networks, 5th Edition, Prentice Hall, 2001. ◼ On-line ▸ http://docwiki.cisco.com/wiki/Internet_Protocols
  • 63. 2020 | Fredy Campos | f.campos@ieee.org Redundancia LAN con STP - Conceptos y Tecnología 63 Fredy Campos A. f.campos@ieee.org Carrera Profesional de Ingeniería Electrónica y Telecomunicaciones Universidad Nacional Tecnológica Lima Sur (UNTELS)