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

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

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

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

Configuring MSTP CHAPTER

Configuring STP and RSTP

Configuring Rapid PVST+

Configuring Rapid PVST+ Using NX-OS

Configuring Rapid PVST+

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?

Spanning-Tree Protocol

Configuring STP. Understanding Spanning-Tree Features CHAPTER

Table of Contents 1 MSTP Configuration 1-1

Improving network convergence with Multiple Spanning Tree Protocol

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

Configuring Spanning Tree Protocol

MSTP Configuration. Page 1 of 24

Configuring STP and Prestandard IEEE 802.1s MST

DD2490 p Layer 2 networking. Olof Hagsand KTH CSC

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

Implementing Spanning Tree Protocol

MSTP Configuration. Configuration

Spanning Tree Protocol(STP)

RSTP Configuration. Page 1 of 26

Implement Spanning Tree Protocols. LAN Switching and Wireless Chapter 5

Configuring MST Using Cisco NX-OS

Configuring Spanning Tree Protocol

Spanning-Tree Protocol

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

MSTP Technology White Paper

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

Transparent Bridging and VLAN

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

RSTP Configuration. RSTP Configuration

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

Table of Contents Chapter 1 MSTP Configuration

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

Understanding Rapid Spanning Tree Protocol (802.1w)

Table of Contents. Cisco Understanding Rapid Spanning Tree Protocol (802.1w)

DD2490 p Bridging, spanning tree and related issues. Olof Hagsand KTH/CSC

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

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

Rapid spanning tree protocol

Copyright 2014 CertificationKits LLC. All Rights Reserved. 2

Spanning Tree Protocol, from a feature CCNA s Perspective.

Spanning-Tree Protocol

Layer 2 Engineering Spanning Tree

ÉCOLE POLYTECHNIQUE FÉDÉRALE DE LAUSANNE. Jean-Yves Le Boudec Fall Contents

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

Campus Networking Workshop. Layer 2 engineering Spanning Tree and VLANs

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

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

CompSci 356: Computer Network Architectures. Lecture 7: Switching technologies Chapter 3.1. Xiaowei Yang

isco Understanding Spanning Tree Protocol Topology Chan

Configuring Spanning Tree

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

Download: PT-Topology-STP2.pkt

Chapter 5. Spanning Tree Protocol (STP) Part II

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

Packet Switching on L2 (LAN Level)

Packet Switching on L2 (LAN Level)

Spanning Tree Protocol

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

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

The Spanning Tree Protocol

MSTP Compatibility. Introduction. Topology. Autunm 2014

Understanding and Configuring STP

Chapter 4 Configuring Switching

Configuring Spanning Tree Protocol

Communication Redundancy User s Manual

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

EIGRP Features and Operation

Primer Ethernet Technology

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

Managing Network Spanning Trees

Chapter 5. Spanning Tree Protocol (STP) Part I

PrepKing. PrepKing

CSCI Computer Networks

Index. Numerics. Index 1

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

The Spanning Tree 802.1D (2004) RSTP MSTP

BACHELOR THESIS. STP/RSTP implementation in LiSA. University Politehnica of Bucharest

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

Understanding Issues Related to Inter VLAN Bridging

13. Spanning Tree Protocols

Nexus 7000 Peer Switch Configuration (Hybrid Setup)

Layer 2/3 Configuration Guide, Cisco IOS XE Release 3.6E (Catalyst 3850 Switches)

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

CS Networks and Distributed Systems. Lecture 5: Bridging. Revised 1/14/13

Exam Questions

RBRIDGES LAYER 2 FORWARDING BASED ON LINK STATE ROUTING

Introduction to OSPF

Ethernet Primer (v6.1)

Understanding Multiple Spanning Tree Protocol (802.1s)

BLADE 802.1s Spanning Tree and Interoperability with Cisco

Cisco Understanding Multiple Spanning Tree Protocol (802.1

Table of Contents 1 MSTP Configuration Commands 1-1

802.1AS Fast Master Clock Selection

STP Optional Characteristic Configuration

Implementing Multiple Spanning Tree Protocol

Buy full file at

Transcription:

Table of Contents (Rapid) Spanning Tree Protocol (R)STP Karst Koymans Informatics Institute University of Amsterdam (version 18.4, 2018/11/16 13:23:04) Friday, November 16, 2018 Bridge loops Two bridges Three bridges Network representation Incomplete representations Bridges as nodes LAN segments as nodes Complete representations Spanning Tree The basic protocol Example Parameters and timing Frame formats Enhancements A simple bridge loop An even worse bridge loop Host A Host C Host A Bridge B 3 Host C

Naive graph representation Bridges as nodes (1) Focus on the bridges Nodes represent bridges Edges represent network LAN segments Focus on the LAN segments Nodes represent network LAN segments Edges represent bridges Net A Net C Bridges as nodes (2) LAN segments as nodes (1) Net A 2 Net C 2 Net A 3 Bridge B 3 Net C 3 Net A Net C Net A 1 Net C 1

LAN segments as nodes (2) Another incomplete representation Net A Bridge B 3 Net C Source: Computer Networks, 4th edition, Tanenbaum (repaired in 5th edition) Complete graph representation Two bridges, two LAN segments Bridges and network LAN segments are both represented as nodes Interfaces of devices to network LAN segments are represented as edges Net A Net C

Three bridges, two LAN segments Spanning Tree Protocol Algorhyme Net A Bridge B 3 Net C I think that I shall never see A graph more lovely than a tree. A tree whose crucial property Is loop-free connectivity. A tree that must be sure to span So packets can reach every LAN. First, the root must be selected. By ID, it is elected. Least-cost paths from root are traced. In the tree, these paths are placed. A mesh is made by folks like me, Then bridges find a spanning tree. Radia Perlman Spanning Tree Protocol Example spanning tree Eliminate edges until the result is loop free Actually add edges without creating loops This transforms the graph into a tree Changes in the topology cause the tree to change A root bridge is elected as the root of the tree Where are the networks? Bold lines and circle Where are the bridges? The thin oval shapes Where is the root? Centre or bottom right Source: Interconnections, second edition, by Radia Perlman

Configuration messages Designated bridge and port for a LAN segment Every bridge has an ID based on A configurable priority (2 bytes) One of its MAC addresses (6 bytes) A bridge transmits on all attached LAN segments The ID of the currently perceived root (initially own ID) Cost of the best path to the root (initially 0) Its own ID (as first tie breaker) The port ID of the transmission (as a second tie breaker) Every LAN segment chooses the best route (path) towards the root using the following criteria in order 1. Lower advertised root ID 2. Lower advertised cost to root 3. Lower transmitting bridge ID 4. Lower port ID It would be reasonable to call this best port the LAN segment s root port but LAN segments are not able to choose anything The bridge advertising the best route (path) becomes that LAN segment s designated bridge and the corresponding bridge port is called the bridge s designated port for the LAN segment Root port for a bridge Every bridge except the root itself chooses the best route (path) towards the root advertised by attached networks (through their designated bridges) using the same criteria as before 1. Lower advertised root ID 2. Lower advertised cost to root 3. Lower transmitting bridge ID 4. Lower port ID The port corresponding to the best route (path) is called the bridge s root port A. An example network. The numbered boxes represent bridges (the number represents the bridge ID). The lettered clouds represent network segments.

B. The smallest bridge ID is 3. Therefore, bridge 3 is the root bridge. C. Assuming that the cost of traversing any network segment is 1, the least cost path from bridge 4 to the root bridge goes through network segment c. Therefore, the root port for bridge 4 is the one on network segment c. D. The least cost path to the root from network segment e goes through bridge 92. Therefore the designated port for network segment e is the port that connects bridge 92 to network segment e. E. This diagram illustrates all port states as computed by the spanning tree algorithm. Any active port that is not a root port or a designated port is a blocked port.

F. After link failure the spanning tree algorithm computes and spans new least-cost tree. G. What happens when a new link comes up between bridge 92 and LAN segment f? G. What happens when a new link comes up between bridge 92 and LAN segment f? DP between 92 and f DP changes into BP between 4 and f BP possibly exchanges with RP for 5, depending on port ids on 92 H. What happens when a new link comes up between bridge 24 and LAN segment f?

Timing parameters H. What happens when a new link comes up between bridge 24 and LAN segment f? RP exchanges with BP for 5 DP becomes BP for 4 and possibly exchanges with RP, depending on port ids on 24 Message Age Increased on each timer tick (1/256 second) Max Age Discard configuration messages that are too old Hello Time Time between two configuration messages Forward Delay Half of the delay before transitioning from blocking to forwarding Listening, learning and forwarding Station learning and caching Every bridge waits for some period (twice the forward delay) to let the configuration messages spread and the topology converge, and in the mean time it does not forward frames it listens to neighbouring bridges in the first half it learns the location of MAC addresses in the second half After this period it starts forwarding data frames The root port and the designated ports are put into a forwarding state All other ports are kept or put in a blocking state Bridges keep track of and cache where individual stations are located with respect to the current spanning tree Usually (when the topology is stable) there is a long caching time A short caching time is used when the topology of the spanning tree has changed anywhere in the graph But how do bridges know this? The change could have happened somewhere far away

Topology change mechanism BPDU Suppose any bridge notices a topology change (port up or down) This bridge (and, recursively, upstream bridges) send Topology Change Notification messages on their root ports Upstream bridges set the TCA flag in their next configuration message downstream Finally such a TCN message reaches the root bridge The root bridge sets the TC flag in its configuration messages for a period of forward delay + max age If a bridge sees the TC flag it uses the short station cache timer which is equal to the forward delay until the topology has stabilized again Bridge Protocol Data Unit, using 802.3 frame format Configuration messages (hello) DSAP = SSAP = 01000010 (= 0x42 :-)) Destination 01:80:C2:00:00:00 This is a group (multicast) address, but it is not forwarded to other LAN segments Topology changed messages To support re-learning after tree change Configuration (Hello) BPDU packet format Topology Change Notification BPDU packet format 0 7 8 15 16 31 T C A RSTP flags Protocol Identifier Version Message Type T C These bits are absent Root ID (8 bytes) Cost of path to root 0 7 8 15 16 31 Protocol Identifier Version Message Type Bridge ID (8 bytes) Port ID Message Age Hello Time These bits are absent Max Age Forward Delay

BPDU packet fields (type) BPDU packet fields (metric data) BPDU packet fields (1) Protocol Identifier 0 Version 0(STP), 2(RSTP) Message Type 0(Hello), 128(TCN), 2(RSTP) TCA Topology Change Ack(STP), 0(RSTP) RSTP Flags Proposal, Agreement, (RSTP) TC Topology Change BPDU packet fields (2) Root ID Root bridge Cost Cost of path to root bridge Bridge ID Bridge transmitting BPDU Port ID Port on which BPDU is transmitted BPDU packet fields (parameters) Rapid spanning tree (802.1w, now part of 802.1D) BPDU packet fields (3) Message Age Age of BPDU information Max Age Typically 20 seconds (minimally 6 seconds) Hello Time Typically 2 seconds Forward Delay Typically 15 seconds (minimally 4 seconds) Backward compatible with STP Has special RSTP BPDUs Uses incoming BPDUs as keep-alive Does not use the TCA flag at all Introduces a proposal and agreement flag in order to enable forwarding mode as early as possible Starts forwarding on root ports immediately and on point to point designated ports

VLANs and STP Multiple Spanning Tree Protocol (802.1s, now integrated into 802.1Q) Global STP valid for all VLANs Running STP separately for every VLAN PVST(+) (Per-VLAN Spanning Tree (Plus); Cisco proprietary) VSTP (VLAN Spanning Tree Protocol; Juniper proprietary) MSTP (Multiple Spanning Tree Protocol) Side note: security measures Disable STP on host ports Disable tagged traffic on host ports Divides a LAN into multiple regions Creates a MSTI (multiple spanning tree instance) inside each region separately for each VLAN Defines a global spanning tree between regions each treated as a single pseudo or virtual bridge by creating a CIST (Common Internal Spanning Tree) consisting of a CST (Common Spanning Tree) between regions an IST (Internal Spanning Tree) inside a region