Spanning Tree protocol

Slides:



Advertisements
Similar presentations
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 2: LAN Redundancy Scaling Networks.
Advertisements

CCNA3 v3 Module 7 v3 CCNA 3 Module 7 JEOPARDY K. Martin.
Part 2: Preventing Loops in the Network
Spanning Tree Protocol
Switching & Operations. Address learning Forward/filter decision Loop avoidance Three Switch Functions.
IEEE 802.1D: Spanning Tree Algorithm and the Filtering Database Ben Schultz Bridge Functions Consortium UNH InterOperability Lab July, 2000.
SPANNING TREE PROTOCOL (STP) VARIANTS Rapid Spanning Tree Protocol (RSTP) -The reason behind the word «rapid» Multiple Spanning Tree Protocol (MSTP)
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement VTP LAN Switching and Wireless – Chapter 4.
1 CCNA 3 v3.1 Module 7. 2 CCNA 3 Module 7 Spanning Tree Protocol (STP)
Spanning Tree Protocol STP STP A broadcast storm occurs when there are so many broadcast frames caught in a Layer 2 loop that all available.
Part III Working with Redundant Links
1 13-Jun-15 S Ward Abingdon and Witney College LAN design CCNA Exploration Semester 3 Chapter 1.
Spanning Tree protocol- Chapter 5
1 27-Jun-15 S Ward Abingdon and Witney College VLAN Trunking protocol CCNA Exploration Semester 3 Chapter 4.
© 2009 Cisco Systems, Inc. All rights reserved. SWITCH v1.0—3-1 Implementing Spanning Tree Spanning Tree Protocol Enhancements.
Spanning Tree Protocol
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—1-1 Configuring Catalyst Switch Operations Introducing Spanning Tree Protocol.
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
Layer 2 Switching. Overview Introduction Spanning Tree Protocol Spanning Tree Terms Spanning Tree Operations LAN Switch Types Configuring Switches.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 2: LAN Redundancy Scaling Networks.
VLANs.ppt CCNA Exploration Semester 3 Chapter 3
STP Part II PVST (Per Vlan Spanning Tree): A Vlan field is added to the BPDU header along with Priority & Mac. Priority is 32768, Mac Address is MAC or.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 2: LAN Redundancy Scaling Networks.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.1 Module 7 Spanning Tree Protocol.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Lecture 12: LAN Redundancy Switched Networks Assistant Professor Pongpisit.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning-Tree Protocol Cisco Networking Academy.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement Spanning Tree Protocols LAN Switching and Wireless – Chapter 5.
Switching in an Enterprise Network
Saeed Darvish Pazoki – MCSE, CCNA Abstracted From: Cisco Press – ICND 2 – Chapter 2 Spanning tree Protocol 1.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Implement Spanning Tree Protocols LAN Switching and Wireless – Chapter 5.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement Spanning Tree Protocols LAN Switching and Wireless – Chapter 5 Part.
Cisco 3 - Switch Perrine. J Page 110/3/2015 Chapter 7 How does STP provide a loop-free network? 1.By placing all ports in the blocking state 2.By placing.
Instructor & Todd Lammle
Example STP runs on bridges and switches that are 802.1D-compliant. There are different flavors of STP, but 802.1D is the most popular and widely implemented.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 LAN Switching and Wireless Implement Spanning Tree Protocols (STP) Chapter.
Ch. 18/Mod. 7 Spanning Tree Protocol CCNA 3 version 3.0.
Cisco 3 – Switching STP Perrine. J Page 110/19/2015 Chapter 8 Spanning Tree Protocol (STP) Having redundancy in a network is important, and allows the.
Switching Basics and Intermediate Routing CCNA 3 Chapter 7.
LOGO Local Area Network (LAN) Layer 2 Switching and Virtual LANs (VLANs) Local Area Network (LAN) Layer 2 Switching and Virtual LANs (VLANs) Chapter 6.
S7C5 – Spanning Tree Protocol And other topics. Switch Port Aggregation Bundling –Combining 2 to 8 links of FE (Fast Ethernet) or GE (Gigabit) Full duplex.
Instructor & Todd Lammle
Spanning Tree V1.2 Slide 1 of 1 Purpose:
STP LAN Redundancy Introduction Network redundancy is a key to maintaining network reliability. Multiple physical links between devices provide redundant.
Switching Topic 6 Rapid spanning tree protocol. Agenda RSTP features – Port states – Port roles – BPDU format – Edge ports and link types – Proposals.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning Tree Protocol.
1 Version 3.0 Module 7 Spanning Tree Protocol. 2 Version 3.0 Redundancy Redundancy in a network is needed in case there is loss of connectivity in one.
CCNP 3: Chapter 3 Implementing Spanning Tree. Overview Basics of implementing STP Election of Root Bridge and Backup Enhancing STP RSTP MSTP EtherChannels.
Topic 5 Spanning tree protocol
CO5023 LAN Redundancy.
Copyright 2003 CCNA 3 Chapter 8 Spanning Tree Protocol By Your Name.
W&L Page 1 CCNA CCNA Training 2.8 Identify enhanced switching technologies Jose Luis Flores / Amel Walkinshaw Aug, 2015.
Lecture3 Secured Network Design W.Lilakiatsakun.  Spanning Tree Protocol (STP)  Attack on Spanning Tree Protocol Topics.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement Spanning Tree Protocols (STP) LAN Switching and Wireless – Chapter.
1 15-Mar-16 VLAN Trunking protocol CCNA Exploration Semester 3 Chapter 4.
Chapter-5 STP. Introduction Examine a redundant design In a hierarchical design, redundancy is achieved at the distribution and core layers through additional.
Exploration 3 Chapter 5. Redundancy in Switched Networks Switches learn the MAC addresses of devices on their ports so that data can be properly forwarded.
Instructor Materials Chapter 3: STP
Spanning Tree Protocol
CIT 384: Network Administration
Spanning Tree Protocols
Instructor & Todd Lammle
Lecture#10: LAN Redundancy
Configuring Catalyst Switch Operations
Spanning Tree Protocol
© 2002, Cisco Systems, Inc. All rights reserved.
Spanning Tree Protocol
NT2640 Unit 9 Activity 1 Handout
CCNA Routing and Switching Scaling Networks v6.0
Spanning Tree Protocol (STP)
Cisco networking CNET-448
Presentation transcript:

Spanning Tree protocol STP.ppt 26/04/2017 Spanning Tree protocol CCNA Exploration Semester 3 Chapter 5 26-Apr-17 S Ward Abingdon and Witney College S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Topics Redundancy in a converged network How Spanning Tree Protocol (STP) eliminates layer 2 loops The STP algorithm and its 3 steps Rapid spanning tree protocol 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Semester 3 LAN Design Basic Switch Concepts Wireless STP VLANs Inter-VLAN routing VTP 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College We want: Redundancy at the distribution and core layers Multiple switches and trunk links One link or device fails – another takes over. 26-Apr-17 S Ward Abingdon and Witney College

But redundancy gives loops Switching loops give problems if all the links are active: Broadcast storms Multiple frame transmission Inconsistent switch tables 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Broadcast storm And so on with nothing to stop it Flood broadcast through non-source ports There’s a switching loop Send ARP request 26-Apr-17 S Ward Abingdon and Witney College

Multiple Frame Transmissions A is on port 3 Don’t know B So flood Send frame to B Frame arrives A B And again 26-Apr-17 S Ward Abingdon and Witney College

Inconsistent switch tables ? A is on port 1 A is on port 2 ??? A is on port 3 Don’t know B So flood A is on port 3 A is on port 1 A is on port 2 Send frame to B A B 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Loops by mistake Even if there are no deliberate loops for redundancy, there can be loops set up by mistake. 26-Apr-17 S Ward Abingdon and Witney College

Etherchannel – the exception Multiple connections do not make a loop where Etherchannel is used. The links are aggregated to act as one link with the combined bandwidth. 26-Apr-17 S Ward Abingdon and Witney College

Redundancy without loops There needs to be just one path at a time. Redundant paths must be shut down, but ready to be opened when they are needed. This must be done quickly and automatically. Spanning Tree Protocol does this. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College What is a spanning tree? A tree (extended star) topology A tree has no loops Spanning all devices All devices are connected 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Not a spanning tree Not a tree - it has loops. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Not a spanning tree Not spanning. Device left out. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Spanning tree No loops. Includes all devices. 26-Apr-17 S Ward Abingdon and Witney College

Spanning tree protocol Used by switches to turn a redundant topology into a spanning tree Disables unwanted links by blocking ports STP defined by IEEE 802.1d Rapid STP defined by IEEE 802.1w Switches run STP by default – no configuration needed. 26-Apr-17 S Ward Abingdon and Witney College

Spanning tree algorithm The switches use this algorithm to decide which ports should be shut down. Choose one switch to be “root bridge” Choose a “root port” on each other switch Choose a “designated port” on each segment. Close down all other ports. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Outline of process Root bridge Designated port Designated port Root port Root port Not chosen Close down Designated port Root port Designated port 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College 1 Choose the root bridge Each switch has a bridge ID (BID) of priority value followed by MAC address Switches exchange Bridge Protocol Data Units (BPDUs) to compare bridge IDs The switch with the lowest bridge ID becomes the root bridge Administrator can set the priority to fix the selection 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Bridge ID The bridge ID consists of bridge priority, extended system ID, and MAC address By default the priority is 32768 Lowest priority wins Value 1 - 65536, multiples of 4096 Extended system ID identifies VLAN. MAC address used if priority is the same. Better not to rely on MAC address. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Configure priority Set priority directly SW1#spanning-tree vlan 1 priority 24576 Or indirectly SW1#spanning-tree vlan 1 root primary Sets value to 24576 or 4096 less than lowest priority detected. SW1#spanning-tree vlan 1 root secondary Sets value to 28672. This switch should becomes the root bridge if the primary root bridge fails. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College 1 Choose the root bridge A switch starts up. It sends out BPDU frames containing the switch BID and the root ID every 2 seconds. At first each switch identifies itself as the root bridge. If a switch receives a BPDU with a lower BID then it identifies the switch with that BID as root bridge. It passes on this information in its own BPDUs. Eventually all switches agree that the switch with the lowest BID is the root bridge. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Select root ports Every non-root bridge (Switch) selects a root port This is the port with the lowest cost path to the root bridge 26-Apr-17 S Ward Abingdon and Witney College

Finding the cost of a link Default port costs depend on the speed of the link. Set by IEEE. Costs may change as faster Ethernet is developed. Link speed Revised cost Previous cost 10 Gbps 2 1 1 Gbps 4 100 Mbps 19 10 10 Mbps 100 26-Apr-17 S Ward Abingdon and Witney College

Changing the cost of a link SW1(config)#int fa0/1 SW1(config-if)#spanning-tree cost 25 SW1(config-if)#end SW1(config-if)#no spanning-tree cost 26-Apr-17 S Ward Abingdon and Witney College

What if ports have the same cost? Use the port priority and port number. By default F0/1 has 128.1 F0/2 has 128.2 26-Apr-17 S Ward Abingdon and Witney College

Configure port priority SW2(config-if)#spanning-tree port-priority 112 Priority values range from 0 - 240, in increments of 16. The default port priority value is 128. Lower port priority value wins. Default port priority is 128. Losing port is shut down. 26-Apr-17 S Ward Abingdon and Witney College

Passing cost information Each BPDU includes the cost of the path back to the root bridge. The cost is the total cost of all the links. As a switch receives a BPDU, it updates the cost by adding on the cost of the port through which the BPDU was received. 26-Apr-17 S Ward Abingdon and Witney College

Select designated ports On every segment, the port with the lowest cost path to the root bridge becomes the designated port 26-Apr-17 S Ward Abingdon and Witney College

Designated port if same cost Choose the port on the switch with the lower bridge ID. Suppose this is switch B. 26-Apr-17 S Ward Abingdon and Witney College

Close down redundant links Any port that is not a root port or a designated port is put in blocking state 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College BPDU The BPDU message is encapsulated in an Ethernet frame. The destination MAC address is 01:80:C2:00:00:00, which is a multicast address for the spanning-tree group. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College BPDU fields 2 bytes Protocol ID Admin 1 byte Version Message type Flags 8 bytes Root ID BID and path information 4 bytes Cost of path Bridge ID Port ID Message age Timers Max age Hello time Forward delay 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Port roles STP makes ports: Root ports (forwarding) Designated ports (forwarding) Non-designated ports (shut down) 26-Apr-17 S Ward Abingdon and Witney College

Port states in traditional STP Blocking – receives and transmits BPDU frames. Listening - receives and transmits BPDU frames. Learning - receives and transmits BPDU frames. Learns MAC addresses. Forwarding – Fully active, forwards user data. Disabled – Administratively shut down. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College States and timers Blocking Loss of BPDU detected Max-age = 20 sec Blocking When link first comes up Listening Forward delay = 15 sec Hello timer 2 sec for sending BPDUs. Up to 50 sec from broken link to forwarding again. Learning Forward delay = 15 sec Forwarding 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College BPDU timers Timers are optimised for a 7-switch diameter network. The network has time to converge before switches forward user data. Timers should not be adjusted individually. The diameter can be adjusted and this will change all the timers. (Better not.) spanning-tree vlan 1 root primary diameter 5 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Cisco PortFast An access port leading to a workstation or server does not need to go through the STP modes because it will not be closed down. PortFast allows the port to go directly from blocking to forwarding. If a switch is connected later and the port receives a BPDU then can go to blocking and then through the modes. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Verify spanning tree Root bridge This switch 26-Apr-17 S Ward Abingdon and Witney College

Topology change notification (TCN) After the network converges, the root bridge sends out BPDUs, but the other switches do not normally send BPDUs back. If there is a topology change, a switch sends a special BPDU called the topology change notification (TCN) towards the root bridge. Each switch that receives the TCN sends an acknowledgement and sends a TCN towards the root bridge until the root bridge receives it. The root bridge then sends out BPDUs with the topology change (TC) bit set. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College STP developments Cisco Proprietary Per-VLAN spanning tree protocol (PVST). Per-VLAN spanning tree protocol plus (PVST+) - supports IEEE 802.1Q Rapid per-VLAN spanning tree protocol (rapid PVST+) IEEE Standards Rapid spanning tree protocol (RSTP) - Multiple STP (MSTP) - 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College PVST+ Separate STP for each VLAN 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College PVST+ PVST+ is the default spanning-tree configuration for a Catalyst 2960 switch. The VLAN needs to be identified, so each BID has 3 fields: priority, extended system ID field, containing VID, MAC address. Original BID just had priority, MAC address 26-Apr-17 S Ward Abingdon and Witney College

Rapid Spanning Tree Protocol Supersedes STP but compatible with it. Much faster to converge. Same BPDU structure, puts 2 in version field. Sends BPDUs every 2 seconds. Different port roles and states. Does not use timers in the same way. 3 missed BPDUs taken to mean loss of the link. (6 seconds) 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Edge port in RSTP A port that will never connect to a switch. Immediately goes to forwarding state. Same idea as Cisco’s PortFast. Configuring an edge port uses the PortFast keyword as before. spanning-tree portfast An edge port becomes a normal spanning-tree port if it receives a BPDU 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Link types A link operating in full duplex between two switches is regarded as a point-to-point link. A link operating in half duplex is regarded as a shared link. Ports on a point-to-point link are able to move to forwarding state quickly. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College Port states Operational STP RSTP Enabled Blocking Discarding Listening Learning Forwarding Disabled 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College RSTP port roles Root and designated ports as before. Alternate port takes over if Des port fails. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College RSTP port roles Backup port Takes over if root port fails. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College RSTP port roles Forwarding Root port Designated port Edge port – not to switch Discarding Backup port Alternate port Both are closed down but are ready to take over at once 26-Apr-17 S Ward Abingdon and Witney College

Design considerations Root bridge should be a powerful switch in the centre of the network. Minimise the number of ports that need to be shut down by STP. Use VTP pruning. Use layer 3 switches in the core. Keep STP running even if no ports need to be shut down. 26-Apr-17 S Ward Abingdon and Witney College

S Ward Abingdon and Witney College The End 26-Apr-17 S Ward Abingdon and Witney College