Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.

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
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
Fundamentals of Computer Networks ECE 478/578 Lecture #13: Packet Switching (2) Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
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.
1 Switching and Forwarding Bridges and Extended LANs.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
Dec 6, 2007CS573: Network Protocols and Standards1 Transparent Bridging Network Protocols and Standards Winter
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
1 Switching and Forwarding Bridges and Extended LANs.
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)
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.
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)
Layer 2 Switch  Layer 2 Switching is hardware based.  Uses the host's Media Access Control (MAC) address.  Uses Application Specific Integrated Circuits.
Connecting LANs, Backbone Networks, and Virtual LANs
17-LAN extensions: Fiber Modems, Repeaters, Bridges and Switches Dr. John P. Abraham Professor UTPA.
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Switching CE
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 CS 4396 Computer Networks Lab LAN Switching and Bridges.
CSC 336 Data Communications and Networking Lecture 7d: Interconnecting LAN Dr. Cheer-Sun Yang Spring 2001.
1 Spanning Tree Algorithm Advanced Computer Networks.
 Network Segments  NICs  Repeaters  Hubs  Bridges  Switches  Routers and Brouters  Gateways 2.
CS 640: Introduction to Computer Networks
Review: –Ethernet What is the MAC protocol in Ethernet? –CSMA/CD –Binary exponential backoff Is there any relationship between the minimum frame size and.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
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.
Configuring Cisco Switches Chapter 13 powered by DJ 1.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
CSE 461 University of Washington1 Topic How do we connect nodes with a switch instead of multiple access – Uses multiple links/wires – Basis of modern.
1 Data Link Layer Lecture 23 Imran Ahmed University of Management & Technology.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
Chapter 11 Extending LANs 1. Distance limitations of LANs 2. Connecting multiple LANs together 3. Repeaters 4. Bridges 5. Filtering frame 6. Bridged network.
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.
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
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.
1 Packet Switching Outline Switching and Forwarding Bridges and Extended LANs.
Chapter 3 Part 1 Switching and Bridging
CS 3700 Networks and Distributed Systems
Advanced Computer Networks
Connecting Devices LANs or WANs do not normally operate in isolation. They are connected to one another or to the Internet. To connect LANs or WANs, we.
Lab 2 – Hub/Switch Data Link Layer
Chapter 4 Data Link Layer Switching
Spanning Tree Algorithm
: An Introduction to Computer Networks
Chapter 3 Part 1 Switching and Bridging
Lab 2 – Hub/Switch Data Link Layer
CS 3700 Networks and Distributed Systems
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
LAN switching and Bridges
NT2640 Unit 9 Activity 1 Handout
Connecting LANs, Backbone Networks,
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
CS4470 Computer Networking Protocols
Dr. Rocky K. C. Chang 23 February 2004
Chapter 15. Connecting Devices
LAN switching and Bridges
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Virtual LAN (VLAN).
Presentation transcript:

Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi

Outline Client-Server code Project overview Review from last session Spanning Tree Algorithm

Review Shared medium vs. Point to point links Ethernet as a shared medium link LAN is a Local Area Network, Usually based on the Ethernet technology Ethernet limitation: Cable length, Host number

Extending LANs Repeaters: A device that forwards signals, just like an amplifier Hub: A multi-way repeater; Usually used when you cannot attach a host directly to a thin cable. No notion of frames Broadcast: Everybody can get the message that someone sends.

Bridges = LAN switches Switch: multi-input, multi-output device which transfers packets from an input to one or more outputs Using repeaters to extend a LAN has its own limits: –Total number of repeaters –Total length Alternative: Have a node between 2 Ethernet segments to forward frames –Isolates collision domains if used carefully –Increases total bandwidth of the network

Learning Bridges It is inefficient to always broadcast message to all Ethernet segments How do we know on which port a host is? –Manual table –Learning mechanism Learning: –Inspect the source address of each frame –Each table entry has a timeout –Not sure what to do? Broadcast

CS 6407 Spanning Tree How to handle forwarding in complex Layer 2 topologies?

Each LAN segment can have many bridges More complex topologies can provide redundancy. –But can also create loops. E.g. What happens when there is no table entry? –Multiple copies of data  Could crash the network  has happened often! host Bridge

What is a Spanning Tree? Reduce our topology graph to a tree: –Make sure there are no loops in the topology –All LAN segments are still connected to the LAN and can receive messages Main idea: Bridges choose the ports over which they have to forward frames.

Spanning Tree Protocol Overview Embed a tree that provides a single unique default path to each destination: Bridges designate ports over which they will or will not forward frames By removing ports, extended LAN is reduced to a tree Addresses the crashing problem; but tree is not resilient When switch/link fails, rerun protocol to converge to new tree

Spanning Tree Algorithm Root of the spanning tree is elected first  the bridge with the lowest identifier. –All ports are part of tree Each bridge finds shortest path to the root. –Remembers port that is on the shortest path –Used to forward packets Select for each LAN a designated bridge that will forward frames to root –Has the shortest path to the root. –Identifier as tie-breaker B3 B7 B5 B2 B1 B4B

Spanning Tree Algorithm Each node sends configuration message to all neighbors. –Identifier of the sender –Id of the presumed root –Distance to the presumed root Initially each bridge thinks it is the root. –B5 sends (B5, B5, 0) When B receive a message, it decide whether the solution is better than their local solution. –A root with a lower identifier? –Same root but lower distance? –Same root, distance but sender has lower identifier? Message from bridge with smaller root ID –Not root; stop generating config messages, but can forward Message from bridge closer to root –Not designated bridge; stop sending any config messages on the port B3 B7 B5 B2 B1 B4B

Spanning Tree Algorithm Each bridge B can now select which of its ports make up the spanning tree: –B’s root port –All ports for which B is the designated bridge on the LAN States for ports on bridges –Forward state or blocked state, depending on whether the port is part of the spanning tree Root periodically sends configuration messages and bridges forward them over LANs they are responsible for Any bridge failure => Start over B3 B7 B5 B2 B1 B4B

Spanning Tree Algorithm Example –B3 receives (B2,B2,0) –Since 2<3 B3 accepts B2 as a root –B3 adds one to the distance advertised by B2(0) and thus sends (B3,B2,1) toward B5 –Meanwhile B2 accepts B1 as the root and sends (B2,B1,1) –B5 accepts B1 as the root and sends (B5,B1,1) –B3 accepts B1as the root and figures that B1 and B2 are closer to the root. So stops forwarding on both interfaces. B3 B7 B5 B2 B1 B4B