1 Spanning Tree Algorithm Advanced Computer Networks.

Slides:



Advertisements
Similar presentations
CCNA3 v3 Module 7 v3 CCNA 3 Module 7 JEOPARDY K. Martin.
Advertisements

Communication Networks Recitation 3 Bridges & Spanning trees.
University of Calgary – CPSC 441.  We need to break down big networks to sub-LANs  Limited amount of supportable traffic: on single LAN, all stations.
Introduction to Computer Networks Spanning Tree 1.
Topic 7 Local Area Networks (LAN)
Part 2: Preventing Loops in the Network
Joining LANs - Bridges. Connecting LANs 4 Repeater –Operates at the Physical layer no decision making, processing signal boosting only 4 Bridges –operates.
IEEE 802.1D: Spanning Tree Algorithm and the Filtering Database Ben Schultz Bridge Functions Consortium UNH InterOperability Lab July, 2000.
CSE 534 Fundamentals of Computer Networks Lecture 4: Bridging (From Hub to Switch by Way of Tree) Based on slides from D. Choffnes Northeastern U. Revised.
CS 4700 / CS 5700 Network Fundamentals Lecture 7: Bridging (From Hub to Switch by Way of Tree) Revised 1/14/13.
CPSC 441 TUTORIAL TA: FANG WANG HUBS, SWITCHES AND BRIDGES Parts of the slides contents are courtesy of the following people: Jim Kurose, Keith Ross:
1 CCNA 3 v3.1 Module 7. 2 CCNA 3 Module 7 Spanning Tree Protocol (STP)
“Internetworking” Bridges –Transparent bridges –Source Routing - Transparent Bridges Routers (Network Layer) Brouters
Dec 6, 2007CS573: Network Protocols and Standards1 Transparent Bridging Network Protocols and Standards Winter
1 Version 3 Module 8 Ethernet Switching. 2 Version 3 Ethernet Switching Ethernet is a shared media –One node can transmit data at a time More nodes increases.
Ethernet: Bridging Based on Radia Perlman’s Interconnections.
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
Sept 14, 2004CS573: Network Protocols and Standards1 Spanning Tree Algorithm Network Protocols and Standards Autumn
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
TDC365 Spring 2001John Kristoff - DePaul University1 Interconnection Technologies Bridging II.
CSE390 Advanced Computer Networks Lecture 7: Bridging (From Hub to Switch by Way of Tree) Based on slides from D. Choffnes Northeastern U. Revised Fall.
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
1 Computer Networks LAN Bridges and Switches. 2 Where are we?
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.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
Transparent Bridging. Chapter Goals Understand transparent bridge processes of learning, filtering, forwarding, and flooding. Explain the purpose of the.
1 © 2004, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.1 Module 7 Spanning Tree Protocol.
1 CS 4396 Computer Networks Lab LAN Switching and Bridges.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning-Tree Protocol Cisco Networking Academy.
Saeed Darvish Pazoki – MCSE, CCNA Abstracted From: Cisco Press – ICND 2 – Chapter 2 Spanning tree Protocol 1.
Spanning Tree Protocol Cisco Networking Academy Program © Cisco Systems, Inc Spanning Tree Protocol.
© 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.
1 Transparent Bridging Advanced Computer Networks.
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.
OSI Model. Switches point to point bridges two types store & forward = entire frame received the decision made, and can handle frames with errors cut-through.
Computer Networks 15-1 Chapter 15. Connecting LANs, Backbone Networks, and Virtual LANs 15.1 Connecting devices 15.2 Backbone networks 15.3 Virtual LANs.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Scaling Broadcast Ethernet Some slides used with.
1 Data Link Layer Lecture 23 Imran Ahmed University of Management & Technology.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 7 Spanning Tree Protocol.
M. Veeraraghavan (originals by J. Liebeherr) 1 Need for Routing in Ethernet switched networks What do bridges do if some LANs are reachable only in multiple.
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.
CO5023 LAN Redundancy.
M. Veeraraghavan (originals by J. Liebeherr) 1 Internetworking Bridges Routing with Bridges * * Reading material is EL 536 textbook (sections 14.1 and.
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
Ch. 15 Connecting LANs.
1 Chapter 3: Packet Switching (Switched LANs) Dr. Rocky K. C. Chang 23 February 2004.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco PublicITE I Chapter 6 1 Implement Spanning Tree Protocols (STP) LAN Switching and Wireless – Chapter.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
Chapter-5 STP. Introduction Examine a redundant design In a hierarchical design, redundancy is achieved at the distribution and core layers through additional.
1 Packet Switching Outline Switching and Forwarding Bridges and Extended LANs.
Transparent Bridging.
3. Internetworking (part 2: switched LANs)
Spanning Tree Algorithm
Topic: Spanning Tree Protocol
Configuring Catalyst Switch Operations
© 2002, Cisco Systems, Inc. All rights reserved.
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
LAN switching and Bridges
NT2640 Unit 9 Activity 1 Handout
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Dr. Rocky K. C. Chang 23 February 2004
Chapter 15. Connecting Devices
LAN switching and Bridges
Presentation transcript:

1 Spanning Tree Algorithm Advanced Computer Networks

2 Topologies with Loops Problems Frames proliferate Learning process unstable Multicast traffic loops forever B1B2B3 LAN 1 LAN 2 A

3 Topologies with Loops Solutions Require that the topologies be loop-free through careful deployment of segments and bridges Design Bridges to detect loops and complain and, perhaps, stop working Not a good idea because loops provide redundancy Design into the bridges an algorithm that prunes the topology into a loop-free subset (a spanning tree) Blocking of some ports may be required Automatically adapt to the changes in topology

4 Reconfiguration Algorithm Configures an arbitrary topology into a spanning tree Automatic reconfiguration in case of topology changes The algorithm should converge for any size LAN; the stability should be achieved within a short, bounded time Active topology should be reproducible and manageable Transparency to end-stations is required Must not use a lot of bandwidth

5 Spanning Tree Algorithm A distributed Algorithm Elects a single bridge to be the root bridge Calculates the distance of the shortest path from each bridge to the root bridge (cost) For each LAN segment, elects a “designated” bridge from among the bridges residing on that segment The designated bridge for a LAN segment is the one closest to the root bridge And…

6 Spanning Tree Algorithm For each bridge Selects ports to be included in spanning tree The ports selected are: The root port --- the port that gives the best path from this bridge to the root The designated ports --- ports connected to a segment on which this bridge is designated Ports included in the spanning tree are placed in the forwarding state All other ports are placed in the blocked state

7 Forwarding frames along the spanning tree Forward and Blocked States of Ports Data traffic (from various stations) is forwarded to and from the ports selected in the spanning tree Incoming data traffic is always discarded (this is different from filtering frames. Why?) and is never forwarded on the blocked ports

8 Root Selection: Bridge ID Each port on the Bridge has a unique LAN address just like any other LAN interface card. Bridge ID is a single bridge-wide identifier that could be: A unique 48-bit address Perhaps the LAN address of one of its ports Root Bridge is the one with lowest Bridge ID B Port Address

9 Path Length (Cost) Path length is the number of hops from a bridge to the root While forming a spanning tree, we are interested in the least cost path to the root Cost can also be specified based on the speed of the link Not fair to treat a 10Mb/s link the same as a 1Gb/s link A guideline for cost selection is in Table 8.5 of the latest IEEE 802.1D standard

10 Path cost guidelines Source: IEEE 802.1D standard

11 Example Topology

12 After algorithm execution DP RP BP RP DP RP DP RP DP RP BP RP DP RP DP RP: Root Port DP: Designated Port BP: Blocked Port

13 Configuration Message (BPDU) Configuration Bridge Protocol Data Unit Transmitted by Bridges to implement the spanning tree algorithm Just like any other data link layer frame Destination Adderss: Special Multicast Address 01-8-c Source Address: MAC address of the port DSAP = SSAP = destinationsourceConfiguration Message 6 octets 2 octets DSAP SSAPlength 2 octets Data Field

14 Configuration BPDU Contents The Data Field of Config BPDU contains: Root ID ID of the Bridge known to be root Cost to Root Cost of the known least cost path to the root Transmitting Bridge ID ID of the bridge transmitting this message Representation..

15 BPDU: Transmission and Processing When a bridge is first booted up: It assumes it is the root Transmits on each port:.. BPDUs are received on each port For each port, every bridge saves the best BPDU received Best among the ones received or transmitted on that port

16 Comparing two BPDUs Given two BPDUs containing configuration messages C1 and C2: C1 is better than C2 if rootID in C1 is lower than the rootID in C2 In case of a tie above, C1 is better than C2 if cost in C1 is lower than the cost in C2 In case of a tie above, C1 is better than C2 if transmitting bridge ID in C1 is lower than the transmitting bridge ID in C2 Can we still get a tie? Consider a bridge with two ports on same segment!!!

17 Port Identifier Each bridge has an internal numbering of its ports These numbers are unique only for a bridge Bridge

18 Port Identifier Port IDs are useful when rootID, cost, and transmittingBridgeID are the same in two configuration messages In such situations, Port IDs are used as tie-breakers and the BPDU with lower portID is better

19 Comparing BPDUs Message C1.. Message C2.. (a) (b) (c) In all cases above, C1 is “better” than C2

20 Designated Bridge If a bridge receives better BPDU on a port than the one it would transmit, it will no longer transmit BPDUs on that port As a result, only one bridge called the “designated bridge” transmits configuration BPDUs on each LAN

21 Root ID and Cost: determining Consider B with bridge ID 18 Best BPDUs on each of its ports are:.. Port 1.. Port 2.. Port 3.. Port 4.. Root bridge ID is determined as 12 Least cost is determined as 85+1 = 86 Port 2 is regarded as the Root port …cont…

22 Root ID and Cost: determining At next opportunity, B will transmit.. Better than the best BPDUs on all ports Ports 1, 3, and 4 are designated B considers itself designated for the segments connected to ports 1, 3, and 4 B continues transmitting BPDUs on those segments (through respective ports)

23 Spanning Tree Ports For each bridge, what ports are “included” in the spanning tree? Root Port On which best of the best BPDUs is received Designated Port Connected to segments on which B is designated Ports selected in the spanning tree are placed in the forwarding state B will forward data packets to and from those ports

24 Ports Blocked Bridge B will block a port if it receives a better BPDU on that port than the one it would transmit (except for the root port) Bridge B will no longer transmit BPDUs on either root port or blocked ports Data packets are not forwarded to and received from the blocked ports

25 Example Bridge ID 92 Port 1 Port 2Port 3 Port 4 Port Root Bridge is selected as 41 Least cost to root is 12+1 = 13  Port 4 is selected as root Now B92 will transmit a BPDU What does it do with the ports?

26 How the Ports are treated? Port 1: <  DP Port 2: <  DP Port 3: >  BP Port 4:  Root Port Port 5: >  BP Remember: B92 will transmit a BPDU