Beruflich Dokumente
Kultur Dokumente
Objectives
Explain the role of redundancy in a converged network. network Summarize how STP works to eliminate Layer 2 p g loops in a converged network. Explain how the STP algorithm uses three steps to converge on a loop-free topology. Implement rapid PVST+ in a LAN to prevent loops between redundant switches.
Layer 2 redundancy
Layer 2 redundancy improves the availability of the network by implementing alternate network paths by adding equipment and cabling.
In a hierarchical design, redundancy is achieved at the distribution and core layers through additional hardware and alternate paths through the additional hardware hardware.
Types of Traffic
Unknown U i U k Unicast
Types of traffic ( y 2 p p yp (Layer perspective) ) Known Unicast: Destination addresses are in Switch Tables Unknown Unicast: Destination addresses are not in Switch Tables Multicast: Traffic sent to a group of addresses g p Broadcast: Traffic forwarded out all interfaces except incoming interface.
Hc vin mng Bch Khoa - Website: www.bkacad.com 10
11
12
Layer 2 Loops
When multiple paths exist between two devices on the network and STP has been disabled on those switches, a Layer 2 loop can occur.
13
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.
14
Unicast frames sent onto a looped network can result in duplicate frames arriving at the destination device.
15
16
17
18
19
20
21
Spanning-Tree Protocol
Layer 2 protocol STP executes an algorithm called Spanning Tree Algorithm (STA) (STA). STA chooses a reference point, called a root bridge, and then determines the available paths to that reference point. If more t a t o pat s exists, S o e than two paths e sts, STA p c s t e best pat a d b oc s picks the path and blocks the rest STP calculations make extensive use of two key concepts in creating a loop-free topology: Bridge ID Path Cost
Hc vin mng Bch Khoa - Website: www.bkacad.com 22
STP Algorithm
STP uses the Spanning Tree Algorithm (STA) to determine which switch ports on a network need to be configured for blocking to prevent loops from occurring.
Root Bridge The lowest BID Root Ports - Switch ports closest to the root bridge. Designated ports - All non-root ports that are still permitted to forward traffic on the network. Non-designated ports - All ports configured to be in a blocking state to prevent loops.
23
Every spanning-tree instance (switched LAN or broadcast domain) has a switch designated as the root bridge. The root bridge serves as a reference point for all spanning tree calculations to determine which spanning-tree redundant paths to block.
24
Bridge ID (BID)
For each Network, the switch with the highest switch priority (the lowest numerical priority value) is elected as the root switch. The details f Th d t il of each BID fi ld are di h field discussed l t b t it i useful t d later, but is f l to know now that the BID is made up of a priority value, an extended system ID, and the MAC address of the switch.
25
Bridge ID (BID)
Priority-based decision
26
Bridge ID (BID)
Priority-based decision
27
Bridge ID (BID)
Configure and Verify the BID
28
When the root bridge has been designated for the spanning-tree instance, the STA starts the process of determining the best paths to the root bridge from all destinations in the broadcast domain.
29
30
STP BPDU
31
STP BPDU
The BPDU Process
32
STP BPDU
The BPDU Process
33
STP BPDU
The BPDU Process
34
STP BPDU
The BPDU Process
35
STP BPDU
The BPDU Process
36
STP BPDU
The BPDU Process
37
STP BPDU
The BPDU Process
38
STP BPDU
The BPDU Process
39
STP BPDU
The BPDU Process
40
Port Roles
There are four distinct port roles that switch ports are automatically configured for during the spanning-tree process. Root Port The root port exists on non-root bridges and is the switch port with the best path to the root bridge. Designated Port The designated port exists on root and non-root bridges. For root bridges, all switch ports are designated ports. For non root bridges, a designated port is the switch port that receives and non-root forwards frames toward the root bridge as needed. Only one designated port is allowed per segment. g Non-designated Port The non-designated port is a switch port that is blocked, so it is not forwarding data frames and not populating the MAC address table with source addresses.
41
Port Roles
Disabled Port The disabled port is a switch port that is administratively shut down. A disabled di bl d port does not function in the spanning-tree process. td tf ti i th i t
42
Port Roles
Configure Port Priority The port priority values range from 0 - 240, in increments of 16. The default d f lt port priority value i 128 t i it l is 128.
43
Port Roles
Port Role Decisions
44
Port Roles
Port Role Decisions
45
Port Roles
Port Role Decisions
46
Port Roles
Port Role Decisions
47
Port Roles
Port Role Decisions
48
Port Roles
Port Role Decisions
49
Port Roles
Port Role Decisions
50
51
Blocking - The port is a non-designated port and does not participate in frame forwarding. forwarding The port receives BPDU frames to determine the location and root ID of the root bridge switch and what port roles each switch port should assume in the final active STP topology. Listening - STP has determined that the port can p g p participate in frame p forwarding according to the BPDU frames that the switch has received thus far. At this point, the switch port is not only receiving BPDU frames, it is also transmitting its own BPDU frames and informing adjacent switches that the switch port is preparing to participate in the active topology topology. Learning - The port prepares to participate in frame forwarding and begins to populate the MAC address table. Forwarding - The port is considered part of the active topology and forwards frames and also sends and receives BPDU frames. Disabled - The Layer 2 port does not participate in spanning tree and does not p forward frames. The disabled state is set when the switch port is administratively disabled.
Hc vin mng Bch Khoa - Website: www.bkacad.com 52
53
54
55
STP Convergence
The STP algorithm uses three simple steps to converge on a loop-free topology. Switches go through three steps for their initial convergence: STP Convergence Step 1 Elect one Root Bridge p Step 2 Elect Root Ports Step 3 Elect Designated Ports All STP decisions are based on a the following predetermined sequence: FourFour-Step decision Sequence Step 1 - Lowest BID Step 2 - Lowest Path Cost to Root Bridge Step 3 - Lowest Sender BID Step 4 - Lowest Port ID
56
STP Convergence STP Convergence Step 1 Elect one Root Bridge Step 2 Elect Root Ports Step 3 Elect Designated Ports
57
STP Convergence
Step 1 Elect one Root Bridge
58
59
60
STP Convergence STP Convergence Step 1 Elect one Root Bridge Step 2 Elect Root Ports Step 3 Elect Designated Ports
61
62
63
64
65
66
STP Convergence STP Convergence Step 1 Elect one Root Bridge Step 2 Elect Root Ports Step 3 Elect Designated Ports
67
68
69
70
71
72
73
74
75
76
77
78
PVST+
Cisco developed PVST+ so that a network can run an STP instance for each VLAN in the network. And Creating different STP root switches per VLAN creates a more redundant network. t d d t t k With PVST+, more than one trunk can block for a VLAN and load sharing can be implemented.
79
PVST+
PVST+ Bridge ID The following provides more details on the PVST+ fields: Bridge priority - A 4-bit field carries the bridge priority Extended system ID - A 12-bit field carrying the VID for PVST+. MAC address - A 6-byte field with the MAC address of a single y g switch.
80
PVST+
81
PVST+
Configure PVST+
82
PVST+
Configure PVST+
83
RSTP
What is RSTP? RSTP (IEEE 802.1w) is an evolution of the 802.1D standard. RSTP can achieve much f t convergence i a properly configured hi h faster in l fi d network, sometimes in as little as a few hundred milliseconds.
84
New Features
New Port States and Port Roles New BPDU Format New BPDU Handling Rapid Transition to Forwarding State Proposal/Agreement Handshake Sequence New Topology Change Mechanisms
85
86
The role is now a variable assigned to a given port. The root port and designated port roles remain. The blocking port role is now split into the backup and alternate port roles. The S Th Spanning T i Tree Al ith (STA) d t Algorithm determines th role of a port b i the l f t based on d Bridge Protocol Data Units (BPDUs). To keep things simple, the thing to remember about a BPDU is that there is always a way of comparing any two of them and deciding whether one is more useful than the other. This is based on the value stored in the BPDU and occasionally on the port on which they are received.
Hc vin mng Bch Khoa - Website: www.bkacad.com 87
88
89
90
91
Edge Ports
Edge Ports The edge port concept is already well known to Cisco spanning tree
users, users as it basically corresponds to the PortFast feature All ports feature. directly connected to end stations cannot create bridging loops in the network. Therefore, the edge port directly transitions to the forwarding state, and skips the listening and learning stages. , p g g g
92
Link Types
The link type is automatically derived from the duplex mode of a port. A port that operates in fullduplex is assumed to be pointtopoint, while a halfduplex port is considered as a shared port by default RSTP can default. only achieve rapid transition to the forwarding state on edge ports and on pointtopoint links.
93
RSTP
RTSP BPDU RSTP (802.1w) uses type 2, version 2 BPDUs, so an RSTP bridge can communicate 802.1D on any shared link or with any switch running i t 802 1D h d li k ith it h i 802.1D.
94
95
View Flash on Curriculum 5.4.6 RSTP Port States and Port Roles
96
97
98
99
100
The design ensures a convergence that is even faster than convergence with STP. STP no longer blocks any single port, so there is no potential for a bridging loop. Leaving the VLAN by Layer 3 switching is as fast as bridging inside the g y y g g g VLAN.
102
103
For some reason port F0/3 on switch S2 fails to receive BPDUs for the Default max_age max age time of 20 seconds seconds.
104
105
106
Troubleshoot a Failure
107
108
109
110
111
112
113
114
115
Summary
116
117