Spanning-Tree Protocol

Similar documents
Implementing Spanning Tree Protocol

Table of Contents. (Rapid) Spanning Tree Protocol. A simple bridge loop. An even worse bridge loop. Bridge loops Two bridges Three bridges (R)STP

Configuring STP and RSTP

Maintaining Specific VLAN Identification. Comparing ISL and 802.1Q. VLAN Trunking

Configuring Rapid PVST+

Spanning Tree Protocol

Question No : 1 Which three of these statements regarding 802.1Q trunking are correct? (Choose three.)

Configuring STP. Understanding Spanning-Tree Features CHAPTER

Configuring Rapid PVST+ Using NX-OS

Understanding and Configuring STP

Table of Contents. (Rapid) Spanning Tree Protocol. An even worse bridge loop. A simple bridge loop. Bridge loops Two bridges Three bridges (R)STP

The multiple spanning-tree (MST) implementation is based on the IEEE 802.1s standard.

Table of Contents. (Rapid) Spanning Tree Protocol. A simple bridge loop. An even worse bridge loop. Bridge loops Two bridges Three bridges (R)STP

Configuring Spanning Tree Protocol

Configuring Rapid PVST+

CCNA 3 (v v6.0) Chapter 3 Exam Answers % Full

Configuring Spanning Tree

material. For more information on how to get additional questions, please see

Implement Spanning Tree Protocols-PART-I. LAN Switching and Wireless Chapter 5 Modified by Tony Chen 05/01/2008

Configuring STP and Prestandard IEEE 802.1s MST

Spanning Tree Protocol(STP)

Spanning-Tree Protocol

Describing the STP. Enhancements to STP. Configuring PortFast. Describing PortFast. Configuring. Verifying

STP (Spanning Tree Protocol) - Step by Step Configuration Tutorial

Configuring Spanning Tree Protocol

Chapter 5: STP. * What is STP? How does STP work?

Exam Questions

DECUS IT-Symposium Spanning Tree Protocol Interoperability Cisco/HP ProCurve

The following graphic shows a single switch VLAN configuration.

Chapter 5. Spanning Tree Protocol (STP) Part I

Describing the STP. 2003, Cisco Systems, Inc. All rights reserved. 2-1

Improving network convergence with Multiple Spanning Tree Protocol

Spanning-Tree Protocol

Download: PT-Topology-STP2.pkt

3. INTERCONNECTING NETWORKS WITH SWITCHES. THE SPANNING TREE PROTOCOL (STP)

Configuring MST Using Cisco NX-OS

Agenda. Spanning-Tree Protocol. Spanning Tree Protocol (STP) Introduction Details Convergence Some more details

Buy full file at

Spanning Tree Protocol, from a feature CCNA s Perspective.

RSTP Configuration. Page 1 of 26

Configuring Spanning Tree Protocol

Chapter 5. Spanning Tree Protocol (STP) Part II

Copyright 2014 CertificationKits LLC. All Rights Reserved. 2

Campus Networking Workshop. Layer 2 engineering Spanning Tree and VLANs

Describing the STP. IEEE Documents. Download this file. Enhancements to STP. Download: PT-Topology-STP2.pkt STP

Table of Contents 1 MSTP Configuration 1-1

CIS 83 Lab Assignment

Implement Spanning Tree Protocols. LAN Switching and Wireless Chapter 5

Transparent Bridging and VLAN

EIGRP Features and Operation

itexamdump 최고이자최신인 IT 인증시험덤프 일년무료업데이트서비스제공

62HConfiguring port role restriction 131H37. 63HConfiguring TC-BPDU transmission restriction 132H38. 64HEnabling TC-BPDU guard 133H38

Question No: 1 On the MSTP network as shown in the figure, what is the role of the switch in MSTI 1 according to the configuration?

Layer 2 Engineering Spanning Tree

Packet Switching on L2 (LAN Level)

DD2490 p Layer 2 networking. Olof Hagsand KTH CSC

CS IT. Lecture (06) STP (I) Problem statement. By: Dr. Ahmed ElShafee

Chapter 3 Lab 3-1, Spanning Tree Protocol (STP) Default Behavior

isco Understanding Spanning Tree Protocol Topology Chan

3. What could you use if you wanted to reduce unnecessary broadcast, multicast, and flooded unicast packets?

Implement Spanning Tree Protocols PART-II. LAN Switching and Wireless Chapter 5 Modified by Tony Chen 07/01/2009

CCNA Cisco Certified Network Associate CCNA (v3.0)

CCNA Semester 3 labs. Labs for chapters 2 10

CIS 83 Midterm Spring 2004 Answer Sheet Name Score Grade Question Answer Question Answer

Configuring Virtual Port Channels

Cisco Exam Interconnecting Cisco Networking Devices Part 2 Version: 10.0 [ Total Questions: 149 ]

RealCiscoLAB.com. Observe what happens when the default spanning tree behavior is modified.

Document ID: Contents. Introduction. Prerequisites. Requirements. Components Used. Conventions. Background Information.

RSTP Configuration. RSTP Configuration

VLANs Level 3 Unit 9 Computer Networks

Configuring Virtual Port Channels

Table of Contents Chapter 1 MSTP Configuration

802.1w Rapid Spanning Tree Protocol (RSTP) 802.1d Spanning Tree Protocol (STP)

Cisco 4-Port and 8-Port Layer 2 Gigabit EtherSwitch Network Interface Module Configuration Guide for Cisco 4000 Series ISR

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PrepKing. PrepKing

Bridging Transmitting Non-IP Traffic or Merging Two Networks

Packet Switching on L2 (LAN Level)

Objectives. 1. Introduction:

Understanding Issues Related to Inter VLAN Bridging

2.2 Cisco IOS Commands for the Catalyst 4500 Series Switches snmp ifindex clear. This command has no arguments or keywords.

Configuring Resilient Ethernet Protocol

Configuring Virtual Port Channels

Spanning Tree Configuration

CCNA Layer 2 switching. Revision no.: PPT/2K605/03

PracticeDump. Free Practice Dumps - Unlimited Free Access of practice exam

Managing Network Spanning Trees

CCNP SWITCH (22 Hours)

The Spanning Tree 802.1D (2004) RSTP MSTP

Lab Configuring and Testing the Rapid Spanning Tree Prototype

Index. Numerics. Index p priority (QoS) definition Q VLAN standard w as a region 5-54

Advanced Catalyst Switch Operations and Configuration

Configuring MSTP CHAPTER

2D1490 p Bridging, spanning tree and related issues. Olof Hagsand KTHNOC/NADA

CCNP Bootcamp. Introduction

LAN Troubleshooting. Ethernet Troubleshooting

Cisco Implementing Cisco IP Switched Networks (SWITCH v2.0)

Implementing VLANS. Prepared by: DIS APSCN LAN Support Presented at HSTI June, P age

MSTP Configuration. Page 1 of 24

Extending Switched Networks with Virtual LANs. 2000, Cisco Systems, Inc. 7-1

Transcription:

Spanning-Tree Protocol

Agenda» What Problem is Solved by STP?» Understanding STP Root Bridge Election» BPDU Details and Pathcost» Understanding STP Root and Designated Port Election» Understanding and Configuring STP Timers» STP Port States» Topology Change Process» PVST and PVST+» Load-Balancing Techniques with PVST+

What Problem is Solved by the Spanning-Tree Protocol?

The Problem Resolved by 802.1d STP is a link management protocol that provides path redundancy while preventing undesirable loops in the network 1985: Originally developed by Radia Perlman while working at DEC (Digital Equipment Corporation). 1990: Original publication of IEEE 802.1d Standard DEC and IEEE versions of STP are not compatible.

Spanning Tree Protocol Basics A B 1. Without the spanning-tree protocol in a redundant topology, a broadcast/multicast frame sourced from A would loop endlessly in the network.

Spanning Tree Protocol Basics A X Blocked port B 1. Without the spanning-tree protocol in a redundant topology, a broadcast/multicast frame sourced from A would loop endlessly in the network. 2. The spanning-tree protocol blocks redundant links to prevent frames from looping.

Spanning Tree Protocol Basics A X Remove blocked Blocked port X Bridge fails! B 1. Without the spanning-tree protocol in a redundant topology, a broadcast/multicast frame sourced from A would loop endlessly in the network. 2. The spanning-tree protocol blocks redundant links to prevent frames from looping. 3. The spanning-tree protocol can adjust to changes in the topology by adjusting which ports are blocking and which are forwarding.

Creating a Loop-Free Path

How STP Works» Elect one Root Bridge» Elect one Root Port per bridge» Elect Designated Ports

Root Bridge Election» Switch with lowest Bridge ID in the network becomes Root Bridge» Bridge ID contains Bridge Priority 0-61440 in increments of 4096 System ID Extension 0-4095 MAC Address

Changing the Root Bridge Election» Manually change BID priority spanning-tree vlan [vlan] priority Lower is better» Use root bridge macro spanning-tree vlan [vlan] root [primary secondary] Sets local priority based on current Root Bridge» Verification show spanning-tree vlan [vlan] show spanning-tree root

Root Bridge Are you still out there?» Root Bridge must periodically send Hello frames to maintain its role.» Hello frames sent as BPDUs (Bridge Protocol Data Units)» Sent every 2-seconds by default.» Hold Time/ Dead-Interval = 10x Hello Interval (called M ax-age).

Quiz-1» Given the following command output, if the current Root Bridge for VLAN-1 is removed from this topology, which Switch will become the new Root Bridge? Switch-1 Switch-3 Switch-2

Quiz-2» Based on the output below, which IOS command(s) could be configured on Switch-1 to force it to become the new Root Bridge? Switch-1 A B C D E F Switch-1(config)#spanning-tree vlan 1 priority 32768 Switch-1(config)#spanning-tree vlan 1 priority 30000 Switch-1(config)#spanning-tree vlan 1 priority 36864 Switch-1(config)#spanning-tree vlan 1 priority 28672 Switch-1(config)#spanning-tree vlan 1 root primary Switch-1(config)#spanning-tree vlan 1 root

STP Port Costs» Every switch that transmits/ forwards a BPDU includes its own, local cost to reach STP Root.» 802.1d specified some default port costs but does NOT specify any formula for ports outside of these values.

Root Port Election» RP is upstream facing towards Root Bridge» Elected based on lowest Root Path Cost Cumulative cost of all links to get to the root» Cost based on inverse bandwidth i.e. higher bandwidth, lower cost Not linear» If tie in cost Choose lowest upstream BID Choose lowest upstream Port ID

Quiz-3 =10Mb Ethernet =100Mb FastEthernet =Gigabit Ethernet Bridge-E 1/1 Bridge-B 3/5 1/2 3/6 6/1 5/1 3/1 Bridge-H 5/2 1/1 1/2 3/5 6/2 3/2 Bridge-A 3/5 3/6 Bridge-C 5/1 5/2 Bridge-F 3/6 3/8 3/8 1/1 3/1 3/2 3/1 4/1 4/2 3/9 Bridge-J 3/2 Root Bridge 3/5 1/2 Which port will Bridge-H select as its Root Port? 3/9 Bridge-G 5/1 5/2 3/6

Quiz-4 Which port will Bridge-F select as its Root Port? =10Mb Ethernet =100Mb FastEthernet =Gigabit Ethernet 5/2 Root Bridge 3/1 5/1 32768-000c.8581.a500 3/1 6/1 6/2 32768-000c.8781.a700 3/4 3/3 4/1 4/2 3/2 32768-000c.85c1.a501 3/5 3/3 3/4 3/2 Bridge-F 3/1

Quiz-5 Which port will Bridge-F select as its Root Port? =10Mb Ethernet =100Mb FastEthernet =Gigabit Ethernet 5/2 Root Bridge 3/1 5/1 32768-000c.8581.a500 6/1 6/2 32768-000c.8781.a700 3/4 3/3 4/1 4/2 3/2 32768-000c.85c1.a501 3/5 3/3 3/4 Bridge-F

Designated Port Election» DPs are downstream facing away from Root Bridge» Like Root Port, elected based on Lowest Root Path Cost Lowest BID Lowest Port ID» All other ports go into blocking mode Receive BPDUs Discard all other traffic Cannot send traffic

Changing the Port s Role» Modify the port s cost spanning-tree [vlan] cost bandwidth [bps]» Modify the Bridge ID spanning-tree vlan [vlan] priority» Modify the Port ID spanning-tree vlan [vlan] port-priority» Verification show spanning-tree interface [int] detail show spanning-tree vlan [vlan] detail

Quiz-6 Which of the following ports will be used to transmit data to/from PC-A and PC-B A B C D E 6/2 2/3 1/1 3/3 5/1 5/4 5/3 24576-00ff.8581.a500 B 3/4 3/3 5/2 5/1 32768-000d.8581.a570 2/4 2/3 6/1 6/2 32768-000c.8381.a700 7/4 7/3 4/1 4/2 3/2 24576-00fc.85c1.a501 1/3 1/2 3/1 A 2/1 7/1 7/2 2/2 32768-000c.8581.a500 1/4 1/1 =10Mb Ethernet =100Mb FastEthernet =Gigabit Ethernet

Spanning-Tree Timers and Port States

STP Timers» Timers affect the transition between port states Set only on the Root Bridge» Hello How often configuration BPDUs are sent Defaults to 2 seconds» MaxAge Dead-interval for receiving BPDUs Defaults to 20 seconds» Forward Delay How long to wait in each of the listening and learning phases Defaults to 15 seconds

Changing STP Timers (PVST)» Configuration spanning-tree vlan [vlan] hello-time spanning-tree vlan [vlan] forward-time spanning-tree vlan [vlan] max-age» Verification show spanning-tree vlan [vlan]

Spanning-Tree Diameter» Allows you to safely tune max age, forward delay and hello time» By specifying the network diameter, the switch will determine the most aggressive possible values of the STP parameters to achieve the fastest convergence time» Network diameter is defined as the maximum number of switches between any two end-stations» The default STP timers assume a network diameter of 7 (the maximum recommended by IEEE).

STP Diameter - Examples Switch(config)#spanning-tree vlan 1 root primary diameter 5 Sw it ch((config)#end Sw it ch(#sho spanning-tree vlan 1 VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 1 Address 0013.c3d7.a000 This bridge is the root Hello Time 2 sec Max Age 16 sec Forward Delay 12 sec Switch(config)#spanning-tree vlan 1 root primary diameter 3 Switch(config)#end Switch#sho spanning-tree vlan 1 VLAN0001 Spanning tree enabled protocol ieee Root ID Priority 1 Address 0013.c3d7.a000 This bridge is the root Hello Time 2 sec M ax Age 12 sec Forward Delay 9 sec

STP Port States» Disabled Administratively down, does not participate in frame forwarding or STP» Listening No user traffic through port, and listening to BPDUs» Learning No user traffic through port, and building bridge tables» Forwarding User traffic across port, and transmitting or receiving BPDUs» Blocking No user traffic through port. Receives BPDUs from Designated Port Transmits only management traffic (CDP, VTP, DTP, etc)

Quiz-7 If Link-1 (to the Hub) goes down, how long will PC-A and PC-B be unable to communicate? A B C D E 0-seconds 15-seconds 30-seconds 50-seconds 60-seconds 5/4 5/3 24576-00ff.8581.a400 B 3/4 3/3 3/2 3/1 Hub 32768-000c.8381.a600 4/1 4/2 24576-00fc.85c1.a501 A 7/4 7/3 2/2 7/1 7/2 2/1 32768-000c.8581.a700 =10Mb Ethernet =100Mb FastEthernet =Gigabit Ethernet

The 802.1d Topology Change Process

STP Topology Change Process» Used to notify other switches of a change in the spanning tree topology» Topology Change Notifications (TCNs) are sent: Any time a port transitions to the forwarding state and the bridge has at least one designated port Any time a port transitions from the forwarding or learning state to the blocking or disabled state.» Sent from the bridge that experienced the topology change towards the root bridge» A TCN received on a designated port of a non-root switch is forwarded towards the root

IEEE 802.1d TCN Frame Format 2 1 1 802.3 / 802.2 Headers Protocol Identifier Ver Msg Type Padding FCS 0x80 = TCN BPDU

STP Topology Change Process» TCN is sent every two seconds, until the upstream bridge acknowledges receipt with a TCN ACK flag set in the configuration BPDU» When the root bridge receives the TCN, it sets the TC flag in the next configuration BPDU (it also sets the TCN ACK flag on the port the TCN was received)» When bridges receive a BPDU with the TC flag set, they reduce their MAC aging time to FwdDelay (15 seconds)» The root switch continues to send Config BPDUs with TC flag set for a total of FwdDelay+Max Age seconds (default=35)

Topology Change Process TCN toward root C TCN ACK B Root TCN ACK TCN toward root A A Port moves into forwarding mode 1. PC-A comes online. 2. Bridge B s port moves into forwarding mode. 3. Bridge B generates a TCN and sends it on the root port. 4. Bridge C ACKs the TCN in the next BPDU it sends to Bridge B. 5. Bridge C generates a TCN and sends it on the root port. 6. Root ACKs the TCN in the next BPDU it sends to Bridge C.

Topology Change Process TC flag set=35s Root TC Flag CAM Aging=15s TC Flag CAM Aging=15s TC Flag TC Flag TC Flag CAM Aging=15s CAM Aging=15s CAM Aging=15s 7. Root also sets the topology change (TC) flag in all Config BPDUs 8. Downstream bridges reduce CAM aging time to FwdDelay seconds for duration of the topology change. 9. Root sets TC flag in all BPDUs for MaxAge + FwdDelay seconds, then clears the TC flag. A A

Detecting Topology Changes How do you know if a Topology Change is in progress? Stable Topology TC In-Progress

What Problem is Solved by PVST?

The problem with a CST 802.1d was designed to operate within a single broadcast domain. 802.1d assumes that all bridges, and all ports, are within a single domain. This is called a CST (Common Spanning-Tree) With this design, the operation of STP is independent of any VLAN configuration. Remote subnets Router-A VLAN-2: Default-Gateway F dp Bridge-1 Root Br. F dp Router-B VLAN-3: Default-Gateway VLAN-2 Bridge-2 F rp GigE F dp GigE FastE F rp B Bridge-3 VLAN-3

Cisco s Solution - PVST PVST = Per VLAN Spanning-Tree. Each VLAN runs an independent instance of 802.1d. By default, a CST topology will still be formed. Allows modification of STP topology per-vlan. Remote subnets Router-A VLAN-2: Default-Gateway VLAN-2 Bridge-2 F rp GigE F dp F dp Bridge-1 Root Br. (VLAN-2 & VLAN-3) GigE F dp FastE F rp B Bridge-3 Router-B VLAN-3: Default-Gateway STP interface cost (for VLAN-3 ONLY) lowered to 7. VLAN-3

VLAN Load-Balancing Methods with PVST

PVST Load Balancing Operation (10,10) BID 16384.0000.0000.0002 BID 16384.0000.0000.0022 S2 L1 L3 L2 S1 Root (Red, Blue) BID 8192.0000.0000.0001 BID 8192.0000.0000.0011 Blocked Port (Red, Blue) (10,10) (10,10) BID 32768.0000.0000.0003 S3 BID 32768.0000.0000.0033 Link L1, L2, and L3 are VLAN trunks The port cost is 10 on all ports for all VLANs S1 is the root switch for all VLANs The L1 port on S3 is blocking for all VLANs & therefore cannot carry data traffic.

Load Balancing Operation - Cost BID 16384.0000.0000.0002 BID 16384.0000.0000.0022 S2 (10,10) L3 S1 Root (Red, Blue) BID 8192.0000.0000.0001 BID 8192.0000.0000.0011 L1 L2 Blocked Port (Blue) (10,10) (30,10) S3 BID 32768.0000.0000.0003 BID 32768.0000.0000.0033 Blocked Port (Red) If we change the port cost for the Red VLAN to 30 on S3 s L2 port, then L2 becomes the blocking link for VLAN Red and L1 becomes the forwarding link for VLAN Red

VLAN Load Balancing Configuration» To enable VLAN-based load balancing (by adjusting Port Costs): Switch(config-if)# spanning-tree vlan <x> cost <cost>» Cost is between 1-200,000,000

Load Balancing Operation A Better Method Root (Red, Blue) BID 8192.0000.0000.0001 BID 8192.0000.0000.0011 Blocked Port (Blue) L3 (FastEth) BID 32768.0000.0000.0002 BID 32768.0000.0000.0022 S1 0/1 0/2 L4 (FastEth) (19,19) (19,19) L1 (FastEth) S2 0/1 0/2 Port Priority (Red) = 128 L2 (FastEth) Port Priority (Blue) = 112 Blocked Port (Red) Blocked Port (Red, Blue) (38,38) (38,38) BID 32768.0000.0000.0003 BID 32768.0000.0000.0033 S3

VLAN Load Balancing Configuration (2) To enable VLAN-based load balancing (by adjusting Port Priorities):

VLAN Load Balancing The Best Method (10,10) Root (Red) BID 8192.0000.0000.0002 BID 16384.0000.0000.0022 S2 L1 L3 L2 S1 Root (Blue) BID 16384.0000.0000.0001 BID 8192.0000.0000.0011 Blocked Port (Blue) (10,10) (10,10) S3 BID 32768.0000.0000.0003 BID 32768.0000.0000.0033 Blocked Port (Red) Simpler configuration: Move the root switch for the Red VLAN to S2

PVST and PVST+ PVST Cisco s original implementation of Per VLAN Spanning-Tree Developed for use with ISL Trunking All BPDUs transmitted using 802.1d Destination MAC (0180:C200:0000) PVST+ Cisco s revised implementation of Per VLAN Spanning-Tree Developed for use with 802.1q Trunking BPDUs transmitted on Native VLAN use 802.1d Destination MAC (0180:C200:0000) BPDUs transmitted with 802.1q tags use Cisco-proprietary Destination MAC (0100:0CCC:CCCD)

Quiz-8 In the following topology, all links between switches are operating as VLAN Trunks and carrying VLANs-1 and 2. Which path(s) will be taken by PC-A and PC-B to transmit frames to their default gateway (router)? 5/2 32768-000d.8581.a570 2/4 5/1 6/1 6/2 1.1.1.2 2.2.2.2 24576-000c.8381.a700 7/4 7/3 4/1 4/2 =10Mb Ethernet =100Mb FastEthernet =Gigabit Ethernet 32768-00fc.85c1.a501 1/2 1.1.1.1 A 2/1 VLAN-1 7/1 7/2 32768-000c.8581.a500 VLAN-2 1/1 2.2.2.1 B

Quiz-9 Which of the following commands (or combination of commands) would accomplish the VLAN load-balancing design shown below? A Switch-1(config)#spanning-tree vlan 1 root primary B Switch-3(config)#spanning-tree vlan 1 root primary Switch-1(config)#interface Ethernet6/1 C Switch-1(config-if)#spanning-tree vlan 1 cost 18 D Switch-2(config)#interface Ethernet6/2 Switch-2(config-if)#spanning-tree vlan 1 cost 26 Switch-1 Switch-2 Switch-3 Switch-4

Quiz-10 Which of the following commands (or combination of commands) would accomplish the VLAN load-balancing design shown below? A B C D Switch-1(config)#spanning-tree vlan 1 root primary Switch-2(config)#spanning-tree vlan 1 root primary Switch-2(config)#interface Ethernet7/2 Switch-2(config-if)#spanning-tree vlan 1 port-priority 112 Switch-1(config)#interface Ethernet7/3 Switch-1(config-if)#spanning-tree vlan 1 port-priority 112 E F Switch-1(config)#interface Ethernet7/4 Switch-1(config-if)#spanning-tree vlan 1 port-priority 112 Switch-2(config)#interface Ethernet7/1 Switch-2(config-if)#spanning-tree vlan 1 port-priority 112 Switch-1 Switch-2

Q&A All rights reserved.