Introduction to Computer Networks Spanning Tree 1.

Slides:



Advertisements
Similar presentations
Communication Networks Recitation 3 Bridges & Spanning trees.
Advertisements

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.
Part 2: Preventing Loops in the Network
SPANNING TREE PROTOCOL (STP) VARIANTS Rapid Spanning Tree Protocol (RSTP) -The reason behind the word «rapid» Multiple Spanning Tree Protocol (MSTP)
Bridging. Bridge Functions To extend size of LANs either geographically or in terms number of users. − Protocols that include collisions can be performed.
1 CCNA 3 v3.1 Module 7. 2 CCNA 3 Module 7 Spanning Tree Protocol (STP)
Mobile and Wireless Computing Institute for Computer Science, University of Freiburg Western Australian Interactive Virtual Environments Centre (IVEC)
Sept 21, 2004CS573: Network Protocols and Standards1 Reconfigurations Network Protocols and Standards Autumn
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.
Internet Networking Spring 2002
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.
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
1 25\10\2010 Unit-V Connecting LANs Unit – 5 Connecting DevicesConnecting Devices Backbone NetworksBackbone Networks Virtual LANsVirtual LANs.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
Spanning Tree Protocol
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.
17-LAN extensions: Fiber Modems, Repeaters, Bridges and Switches Dr. John P. Abraham Professor UTPA.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
1 Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
Spanning Tree Protocol for Bridges/Switches 8-1. Bridge = Switch Bridge/switches are layer-2 switching device (look at the Ethernet destination address.
Transparent Bridging. Chapter Goals Understand transparent bridge processes of learning, filtering, forwarding, and flooding. Explain the purpose of the.
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.
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.
1 Spanning Tree Algorithm Advanced Computer Networks.
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.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
Bridging. Bridge Functions To extend size of LANs either geographically or in terms number of users. − Protocols that include collisions can be performed.
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.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Scaling Broadcast Ethernet Some slides used with.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
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.
CCNP 3: Chapter 3 Implementing Spanning Tree. Overview Basics of implementing STP Election of Root Bridge and Backup Enhancing STP RSTP MSTP EtherChannels.
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Topic 5 Spanning tree protocol
M. Veeraraghavan 1 Bridge 55 Bridge 41 Bridge LAN A LAN B LAN C EXAMPLE.
Ch. 15 Connecting LANs.
Winter 2008CS244a Handout 111 CS244a: An Introduction to Computer Networks Handout 11: Interconnecting LANs Nick McKeown Professor of Electrical Engineering.
1 Chapter 3: Packet Switching (Switched LANs) Dr. Rocky K. C. Chang 23 February 2004.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
Ethernet switches and IP routers
Transparent Bridging.
Advanced Computer Networks
3. Internetworking (part 2: switched LANs)
Spanning Tree Algorithm
: An Introduction to Computer Networks
Chapter 3 Part 1 Switching and Bridging
Topic: Spanning Tree Protocol
Configuring Catalyst Switch Operations
CS 457 – Lecture 8 Switching and Forwarding
© 2002, Cisco Systems, Inc. All rights reserved.
LAN switching and Bridges
NT2640 Unit 9 Activity 1 Handout
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
STP – Spanning Tree Protocol A closer look
Communication Networks NETW 501
LAN switching and Bridges
Dr. Rocky K. C. Chang 23 February 2004
LAN switching and Bridges
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Virtual LAN (VLAN).
Presentation transcript:

Introduction to Computer Networks Spanning Tree 1

 Bridges transmit special messages (called configuration message) to each other.  A bridge will be elected as the root bridge.  Every bridge calculates the distance of the shortest path from itself to the root bridge.  For each LAN, select a designated bridge among the bridges residing on the LAN.  For each bridge, choose a port (root port) that lead to the root bridge.  Ports to be included in a spanning tree are the root ports and the ports on which self has been elected as designated bridge. Forming a Spanning Tree 2

 A configuration message is transmitted by a bridge onto a port.  Received by all the other bridges on the LAN attached to the port.  It is not forwarded outside the LAN.  Contents:  Root ID: ID of the bridge assumed to be the root.  Bridge ID: ID of the bridge transmitting this configuration message.  Cost: Cost of the shortest path from the transmitting bridge to the root bridge.  Port ID: ID of the port from which the configuration message is transmitted. Forming a Spanning Tree 3

 Comparing 2 configuration messages: C1 & C2  C1 is better than C2 if the root ID in C1 is lower than that in C2.  If the root IDs are equal  C1 is better than C2 if the cost in C1 is lower than that in C2.  If the root ID and cost are equal  C1 is better than C2 if its transmitting ID is lower than that in C2.  If the root ID, cost, and transmitting IDs are equal  C1 is better than C2 if its port ID is lower than that in C2. Forming a Spanning Tree - Rules 4

Forming a Spanning Tree - Example 5 B91 Port 1 Port 2 Port 3 Port 4 Port  Best known root – 41 (Root ID)  Cost – 12+1 = 13 (Lowest cost)  Root Port - 4 (Transmitting ID)  Designated Bridge on Ports 1 (root bridge) & 2 (cost)  Blocked Ports 3 & 5 (already connected to root)

Spanning Tree - Example 1B1, 11, B7, 2 2B1, 12, B2, 1 3B1, 12, B5, 5 4B1, 11, B17, 5 5B1, 12, B5, 3 6B1, 12, B4, 3 Root Bridge Cost Root Port Designated on Ports Blocked Ports B ,4,5,6 B5 Port 1 Port 2 Port 3 Port 4 Port 5 Port 6 6

Network Analysis 7 B11 B32 B76 B3 B15 B48 B12 B D D D R R D D D D R D R D R D R D D D

 Bridges learn and cache the location of hosts.  A host may move / disappear  Important for a bridge to “forget” host locations  Unless frequently reassured that information is correct.  Done by timing out entries not been recently verified.  Timeout  Too long - traffic may not be delivered to the host at the new place.  Too short - wastes a lot of network bandwidth  Solution  A long value (e.g., 15 seconds) - used in the usual case, to reduce wasted network bandwidth.  A shorter value (e.g., forward delay) - used following a reconfiguration of the spanning tree algorithm Cache & Topology Changes 8

 A bridge that detects a topology change will send a message to its parent.  This message will in turn be forwarded to the root bridge.  The root bridge set the topology change flag bit in its configuration messages  Sent (every hello time) downstream the spanning tree.  For a period that is forward delay + max age.  The bridges that receive this type of messages use the shorter timeout value for their caches  Until the flag is no longer set. Cache & Topology Changes 9

Network Analysis – Topology Change B11 B32 B76 B3 B15 B48 B12 B D D D R 2 R D D 3 D 1 D R D R D R D R D D D D R D 10