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.

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.
CSE 561 – Bridging and Routing David Wetherall Spring 2000.
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.
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 Switching and Forwarding Bridges and Extended LANs.
Ethernet: Bridging Based on Radia Perlman’s Interconnections.
Making bigger LANs out of small ones What technology is available to us for connecting small LANs together into larger ones?
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
CSE 461: Distance Vector Routing. Next Topic  Focus  How do we calculate routes for packets?  Routing is a network layer function  Routing Algorithms.
1 Switching and Forwarding Bridges and Extended LANs.
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.
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
Rbridges: Transparent Routing Radia Perlman
1 25\10\2010 Unit-V Connecting LANs Unit – 5 Connecting DevicesConnecting Devices Backbone NetworksBackbone Networks Virtual LANsVirtual LANs.
Layer-3 Routing Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
Connecting LANs, Backbone Networks, and Virtual LANs
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 Interconnection of Lots of Links (TRILL) March 11 th 2010 David Bond University of New Hampshire: InterOperability.
1 CS 4396 Computer Networks Lab LAN Switching and Bridges.
Common Devices Used In 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.
Ethernet (LAN switching)
1 Kyung Hee University Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
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.
Network Technologies essentials Week 3: Retransmission, sharing links, switching Compilation made by Tim Moors, UNSW Australia Original slides by David.
Rbridges: Transparent Routing Radia Perlman
Transparent Interconnection of Lots of Links(TRILL) Speaker: Hui-Hsiung Chung Date:2011/12/28 1.
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.
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.
4: DataLink Layer1 Hubs r Physical Layer devices: essentially repeaters operating at bit levels: repeat received bits on one interface to all other interfaces.
The Medium Access Control Sublayer Chapter
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
4. Interconnecting Networks: Routers. © Tallal Elshabrawy 2 Bridges Vs Routers BRIDGES DO WELL IN SMALL (FEW HUNDRED HOSTS) WHILE ROUTERS USED IN LARGE.
Introduction to Communication Networks – Dr. Michael Schapira Rothberg A413.
CS 3700 Networks and Distributed Systems Bridging (From Hub to Switch by Way of Tree) Revised 8/19/15.
CS 3700 Networks and Distributed Systems
Advanced Computer Networks
Chapter 4 Data Link Layer Switching
: An Introduction to Computer Networks
Switching and Forwarding Bridges and Extended LANs
Chapter 3 Part 1 Switching and Bridging
CS 3700 Networks and Distributed Systems
Intra-Domain Routing Jacob Strauss September 14, 2006.
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Communication Networks NETW 501
Chapter 15. Connecting Devices
LAN switching and Bridges
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Virtual LAN (VLAN).
Presentation transcript:

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 (switched) Ethernet Switch

CSE 461 University of Washington2 Switched Ethernet Hosts are wired to Ethernet switches with twisted pair – Switch serves to connect the hosts – Wires usually run to a closet Switch Twisted pair Switch ports

CSE 461 University of Washington3 What’s in the box? Remember from protocol layers: Network Link Network Link Physical Hub, or repeater Switch Router All look like this:

Inside a Hub All ports are wired together; more convenient and reliable than a single shared wire CSE 461 University of Washington4 ↔

Inside a Switch Uses frame addresses to connect input port to the right output port; multiple frames may be switched in parallel CSE 461 University of Washington5... Fabric

Inside a Switch (2) Port may be used for both input and output (full-duplex) – Just send, no multiple access protocol CSE 461 University of Washington  4 and 2  3

Inside a Switch (3) Need buffers for multiple inputs to send to one output CSE 461 University of Washington7... Input Buffer Output Buffer Fabric Input Output

Inside a Switch (4) Sustained overload will fill buffer and lead to frame loss CSE 461 University of Washington8... Input Buffer Output Buffer Fabric InputOutput XXX Loss!

CSE 461 University of Washington9 Advantages of Switches Switches and hubs have replaced the shared cable of classic Ethernet – Convenient to run wires to one location – More reliable; wire cut is not a single point of failure that is hard to find Switches offer scalable performance – E.g., 100 Mbps per port instead of 100 Mbps for all nodes of shared cable / hub

Switch Forwarding Switch needs to find the right output port for the destination address in the Ethernet frame. How? – Want to let hosts be moved around readily; don’t look at IP CSE 461 University of Washington10... Source Destination Ethernet Frame

CSE 461 University of Washington11 Backward Learning Switch forwards frames with a port/address table as follows: 1.To fill the table, it looks at the source address of input frames 2.To forward, it sends to the port, or else broadcasts to all ports

CSE 461 University of Washington12 Backward Learning (2) 1: A sends to D Switch D AddressPort A B C D

CSE 461 University of Washington13 Backward Learning (3) 2: D sends to A Switch D AddressPort A1 B C D

CSE 461 University of Washington14 Backward Learning (4) 3: A sends to D Switch D AddressPort A1 B C D4

CSE 461 University of Washington15 Backward Learning (5) 3: A sends to D Switch D AddressPort A1 B C D4

Learning with Multiple Switches Just works with multiple switches and a mix of hubs assuming no loops, e.g., A sends to D then D sends to A CSE 461 University of Washington16 Switch

Learning with Multiple Switches (2) Just works with multiple switches and a mix of hubs assuming no loops, e.g., A sends to D then D sends to A CSE 461 University of Washington17 Switch

Learning with Multiple Switches (3) Just works with multiple switches and a mix of hubs assuming no loops, e.g., A sends to D then D sends to A CSE 461 University of Washington18 Switch

CSE 461 University of Washington19 Topic How can we connect switches in any topology so they just work – This is part 2 of switched Ethernet Loops – yikes!

CSE 461 University of Washington20 Problem – Forwarding Loops May have a loop in the topology – Redundancy in case of failures – Or a simple mistake Want LAN switches to “just work” – Plug-and-play, no changes to hosts – But loops cause a problem … Redundant Links

CSE 461 University of Washington21 Forwarding Loops (2) Suppose the network is started and A sends to F. What happens? Left / Right A B C D E F

CSE 461 University of Washington22 Forwarding Loops (3) Suppose the network is started and A sends to F. What happens? – A  C  B, D-left, D-right – D-left  C-right, E, F – D-right  C-left, E, F – C-right  D-left, A, B – C-left  D-right, A, B – D-left  … – D-right  … Left / Right A B C D E F

CSE 461 University of Washington23 Spanning Tree Solution Switches collectively find a spanning tree for the topology – A subset of links that is a tree (no loops) and reaches all switches – They switches forward as normal on the spanning tree – Broadcasts will go up to the root of the tree and down all the branches

Spanning Tree (2) CSE 461 University of Washington24 TopologyOne STAnother ST

Spanning Tree (3) CSE 461 University of Washington25 TopologyOne STAnother ST Root

CSE 461 University of Washington26 Spanning Tree Algorithm Rules of the distributed game: – All switches run the same algorithm – They start with no information – Operate in parallel and send messages – Always search for the best solution Ensures a highly robust solution – Any topology, with no configuration – Adapts to link/switch failures, …

CSE 461 University of Washington27 Radia Perlman (1952–) Key early work on routing protocols – Routing in the ARPANET – Spanning Tree for switches (next) – Link-state routing (later) Now focused on network security

CSE 461 University of Washington28 Spanning Tree Algorithm (2) Outline: 1.Elect a root node of the tree (switch with the lowest address) 2.Grow tree as shortest distances from the root (using lowest address to break distance ties) 3.Turn off ports for forwarding if they aren’t on the spanning tree

Spanning Tree Algorithm (3) Details: – Each switch initially believes it is the root of the tree – Each switch sends periodic updates to neighbors with: Its address, address of the root, and distance (in hops) to root – Switches favors ports with shorter distances to lowest root Uses lowest address as a tie for distances CSE 461 University of Washington29 C Hi, I’m C, the root is A, it’s 2 hops away or (C, A, 2)

CSE 461 University of Washington30 Spanning Tree Example 1 st round, sending: – A sends (A, A, 0) to say it is root – B, C, D, E, and F do likewise 1 st round, receiving: – A still thinks is it (A, A, 0) – B still thinks (B, B, 0) – C updates to (C, A, 1) – D updates to (D, C, 1) – E updates to (E, A, 1) – F updates to (F, B, 1) A,A,0 B,B,0 C,C,0 D,D,0 E,E,0 F,F,0

CSE 461 University of Washington31 Spanning Tree Example (2) 2 nd round, sending – Nodes send their updated state 2 nd round receiving: – A remains (A, A, 0) – B updates to (B, A, 2) via C – C remains (C, A, 1) – D updates to (D, A, 2) via C – E remains (E, A, 1) – F remains (F, B, 1) A,A,0 B,B,0 C,A,1 D,C,1 E,A,1 F,B,1

CSE 461 University of Washington32 Spanning Tree Example (3) 3 rd round, sending – Nodes send their updated state 3 rd round receiving: – A remains (A, A, 0) – B remains (B, A, 2) via C – C remains (C, A, 1) – D remains (D, A, 2) via C-left – E remains (E, A, 1) – F updates to (F, A, 3) via B A,A,0 B,A,2 C,A,1 D,A,2 E,A,1 F,B,1

CSE 461 University of Washington33 Spanning Tree Example (4) 4 th round – Steady-state has been reached – Nodes turn off forwarding that is not on the spanning tree Algorithm continues to run – Adapts by timing out information – E.g., if A fails, other nodes forget it, and B will become the new root A,A,0 B,A,2 C,A,1 D,A,2 E,A,1 F,A,3

CSE 461 University of Washington34 Spanning Tree Example (5) Forwarding proceeds as usual on the ST Initially D sends to F: And F sends back to D: A,A,0 B,A,2 C,A,1 D,A,2 E,A,1 F,A,3

CSE 461 University of Washington35 Spanning Tree Example (6) Forwarding proceeds as usual on the ST Initially D sends to F: – D  C-left – C  A, B – A  E – B  F And F sends back to D: – F  B – B  C – C  D (hm, not such a great route) A,A,0 B,A,2 C,A,1 D,A,2 E,A,1 F,A,3

CSE 461 University of Washington36 Algorhyme (Radia Perlman, 1985) 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.