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

Part 2: Preventing Loops in the Network
Spanning Tree Protocol
Switching & Operations. Address learning Forward/filter decision Loop avoidance Three Switch Functions.
STP Spanning tree protocol. Trunk port : A trunk port is a port that is assigned to carry traffic for all the VLANs that are accessible by a specific.
Spanning Tree protocol- Chapter 5
© 2009 Cisco Systems, Inc. All rights reserved. SWITCH v1.0—3-1 Implementing Spanning Tree Spanning Tree Protocol Enhancements.
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—1-1 Configuring Catalyst Switch Operations Introducing Spanning Tree Protocol.
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.
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 2: LAN Redundancy Scaling Networks.
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.
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.
Instructor & Todd Lammle
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 LAN Switching and Wireless Implement Spanning Tree Protocols (STP) Chapter.
Steffen/Stettler, , 4-SpanningTree.pptx 1 Computernetze 1 (CN1) 4 Spanning Tree Protokoll 802.1D-2004 Prof. Dr. Andreas Steffen Institute for.
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.
Configuring Cisco Switches Chapter 13 powered by DJ 1.
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.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Switching in an Enterprise Network Introducing Routing and Switching in the.
Spanning Tree protocol
Topic 5 Spanning tree protocol
CO5023 LAN Redundancy.
Layer-2 Switching and STP
© 2006 Cisco Systems, Inc. All rights reserved. ICND v2.3—1-1 Configuring Catalyst Switch Operations Identifying Problems That Occur in Redundant Switched.
Copyright 2003 CCNA 3 Chapter 8 Spanning Tree Protocol By Your Name.
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.
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
Implement Spanning Tree Protocols
© 2002, Cisco Systems, Inc. All rights reserved.
CIT 384: Network Administration
Implementing Spanning Tree Protocol
Implement Spanning Tree Protocols
Spanning Tree Protocols
Instructor & Todd Lammle
Lecture#10: LAN Redundancy
Configuring Catalyst Switch Operations
Spanning Tree Protocol
Implement Spanning Tree Protocols
© 2002, Cisco Systems, Inc. All rights reserved.
Spanning Tree Protocol
Hwajung Lee Modified from Slides Courtesy of Cisco Networking Academy
Medium-Sized Switched Network Construction
Spanning Tree.
NT2640 Unit 9 Activity 1 Handout
STP – Spanning Tree Protocol A closer look
CCNA Routing and Switching Scaling Networks v6.0
Spanning Tree Protocol (STP)
Cisco networking CNET-448
Implement Spanning Tree Protocols
© 2002, Cisco Systems, Inc. All rights reserved.
Presentation transcript:

Spanning Tree Protocol

Redundant Topology Emphasize: Layer 2 has no mechanism (like a TTL) to stop loops. Redundant topology eliminates single points of failure. Redundant topology causes broadcast storms, multiple frame copies, and MAC address table instability problems.

Broadcast Frames Station D sends a broadcast frame. Broadcast frames are flooded to all ports except the originating port.

Broadcast Storms Host X sends a broadcast. Layer 3 of 3 Emphasize: Layer 2 has no TTL mechanism to stop looping frames. Host X sends a broadcast. Switches continue to propagate broadcast traffic over and over.

Multiple Frame Copies Host X sends a unicast frame to router Y. Layer 2 of 2 Host X sends a unicast frame to router Y. The MAC address of router Y has not been learned by either switch. Router Y will receive two copies of the same frame.

MAC Database Instability Layer 2 of 2 Host X sends a unicast frame to router Y. The MAC address of router Y has not been learned by either switch. Switches A and B learn the MAC address of host X on port 1. The frame to router Y is flooded. Switches A and B incorrectly learn the MAC address of host X on port 2.

Loop Resolution with STP Emphasize: A looped topology is often desired to provide redundancy, but looped traffic is undesirable. The Spanning-Tree protocol was originally designed for bridges. Today, it is also applied to LAN switches and routers operating as a bridge. Spanning-Tree protocol ensures that all bridged segments are reachable but any points where loops occur will be blocked. Provides a loop-free redundant network topology by placing certain ports in the blocking state Published in the IEEE 802.1D specification Enhanced with the Cisco PVST+ implementation

Spanning-Tree Operation One root bridge per broadcast domain. One root port per nonroot bridge. One designated port per segment. Nondesignated ports are unused. Emphasize: The three general rules when dealing with STP are as follows: 1. One root bridge per network. The root is the bridge with the lowest bridge ID. All the ports on the root bridge are designated ports (forwarding). 2. For every non-root bridge, there is a root port (forwarding). The root port is the port with the lowest accumulated path cost to the root bridge. 3. For every segment, there is only one designated port. The designated port forwards traffic for the segment. The designated port has the lowest accumulated path cost to the root bridge.

STP Root Bridge Selection Emphasize: By default, the switch with the lowest MAC address will be the root bridge. Note: The Catalyst switches support an instance of spanning tree per VLAN. Each VLAN will use a unique MAC address for spanning tree purposes. On the Catalyst 1900, the address it uses for spanning tree is the MAC address on the various ports. VLAN is discussed in the next chapter. The IEEE 802.1d specification specifies for a 16-bit priority field. The Catalyst 1900 switch only supports the 802.1d Spanning-Tree protocol. The default priority on the Catalyst 1900 is 32768 in decimal or 8000 in hex, the midrange value. BPDU contain the following fields: Protocol ID version Message type Flags Root ID Cost of path Bridge ID Port ID Message age Max age Hello time Forward delay BPDU (default = sent every 2 seconds) Root bridge = bridge with the lowest bridge ID Bridge ID = Bridge Priority MAC Address

Spanning-Tree Port States Spanning tree transits each port through several different states: Emphasize: Using the default Spanning-Tree protocol timers setting, the times it takes to go from the blocking state to the forwarding state is 50 sec (20 + 15 + 15).

Describing PortFast PortFast is configured on access ports, not trunk ports.

Configuring and Verifying PortFast SwitchX(config-if)# spanning-tree portfast Configures PortFast on an interface OR SwitchX(config)# spanning-tree portfast default Enables PortFast on all non-trunking interfaces SwitchX# show running-config interface interface Verifies that PortFast has been configured on an interface

Spanning-Tree Operation Example Layer 2 of 2 Emphasize: Switch X and Y have the same path cost to the root bridge. The DP for the bottom segment is on switch X because switch X has a lower bridge ID than switch Y.

Spanning-Tree Path Cost Link Speed Cost (Revised IEEE Specification) Cost (Previous IEEE Specification) 10 Gb/s 2 1 1 Gb/s 4 100 Mb/s 19 10 10 Mb/s 100 Emphasize: There are two cost calculation methods. The Catalyst 1900 uses the older method. The new method is designed to accommodate the higher gigabit Ethernet speed. Note: Port priority is used to determine which path has preference when path costs are equal (for example, when you have two parallel links connecting two switches together). The default port priority is 128. The port aggregation protocol and EtherChannels® are not taught in this class. Fast EtherChannel is supported by the Catalyst 1900 switch.

Spanning-Tree Recalculation Emphasize: RPs and DPs are normally in the forwarding state. There is only one DP per segment.

Per VLAN Spanning Tree Plus

PVST+ Extended Bridge ID Bridge ID without the extended system ID Extended bridge ID with system ID System ID = VLAN

Rapid Spanning Tree Protocol

Default Spanning-Tree Configuration Cisco Catalyst switches support three types of STPs: PVST+ PVRST+ MSTP The default STP for Cisco Catalyst switches is PVST+ : A separate STP instance for each VLAN One root bridge for all VLANs No load sharing

PVRST+ Configuration Guidelines Enable PVRST+. Designate and configure a switch to be the root bridge. Designate and configure a switch to be the secondary root bridge. Verify the configuration.

PVRST+ Implementation Commands SwitchX(config)# spanning-tree mode rapid-pvst Configures PVRST+ SwitchX# show spanning-tree vlan vlan# [detail] Verifies the spanning-tree configuration SwitchX# debug spanning-tree pvst+ Displays PVST+ event debug messages

Verifying PVRST+ The spanning-tree mode is set to PVRST. SwitchX# show spanning-tree vlan 30 VLAN0030 Spanning tree enabled protocol rstp Root ID Priority 24606 Address 00d0.047b.2800 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 24606 (priority 24576 sys-id-ext 30) Aging Time 300 Interface Role Sts Cost Prio.Nbr Type -------- ----- --- --- -------- ---- Gi1/1 Desg FWD 4 128.1 P2p Gi1/2 Desg FWD 4 128.2 P2p Gi5/1 Desg FWD 4 128.257 P2p The spanning-tree mode is set to PVRST.

Configuring the Root and Secondary Bridges

Configuring the Root and Secondary Bridges: SwitchA SwitchA(config)# spanning-tree vlan 1 root primary This command forces this switch to be the root for VLAN 1. SwitchA(config)# spanning-tree vlan 2 root secondary This command configures this switch to be the secondary root for VLAN 2. OR SwitchA(config)# spanning-tree vlan # priority priority This command statically configures the priority (increments of 4096).

Configuring the Root and Secondary Bridges: SwitchB SwitchB(config)# spanning-tree vlan 2 root primary This command forces the switch to be the root for VLAN 2. SwitchB(config)# spanning-tree vlan 1 root secondary This command configures the switch to be the secondary root VLAN 1. OR SwitchB(config)# spanning-tree vlan # priority priority This command statically configures the priority (increments of 4096).

Summary A redundant switched topology includes multihomed switches and EtherChannel. A redundant switched topology causes looping issues such as broadcast storms. The 802.1D STP establishes a loop-free network. The original STP has been enhanced by PVST+ and RSTP.