CS 3700 Networks and Distributed Systems

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.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 19 Introduction to Computer Networks.
CSCI 465 D ata Communications and Networks Lecture 20 Martin van Bommel CSCI 465 Data Communications & Networks 1.
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.
CSEE W4140 Networking Laboratory Lecture 8: LAN Switching Jong Yul Kim
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.
COMS W COMS W Lecture 7. LAN Switching: Bridges & Spanning Tree Protocol.
Rbridges: Transparent Routing Radia Perlman
LAN switching and Bridges
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)
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
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
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.
CSC 336 Data Communications and Networking Lecture 7d: Interconnecting LAN Dr. Cheer-Sun Yang Spring 2001.
CS3502: Data and Computer Networks Local Area Networks - 4 Bridges / LAN internetworks.
Ethernet (LAN switching)
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.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Local Area Networks.
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.
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.
Computer Networks Lecture 5a: Interconnecting LANs Based on slides from D. Choffnes Northeastern U. and P. Gill from StonyBrook University Revised Autumn.
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.
M. Veeraraghavan (originals by J. Liebeherr) 1 Internetworking Bridges Routing with Bridges * * Reading material is EL 536 textbook (sections 14.1 and.
Chapter 16 Connecting LANs, Backbone Networks, and Virtual LANs
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
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.
CS 3700 Networks and Distributed Systems Bridging (From Hub to Switch by Way of Tree) Revised 8/19/15.
Chapter 3 Part 1 Switching and Bridging
Ethernet switches and IP routers
Chapter 16– Connecting LANs
Youngstown State University Cisco Regional Academy
CS 3700 Networks and Distributed Systems
Advanced Computer Networks
Lab 2 – Hub/Switch Data Link Layer
MAC Addresses and ARP 32-bit IP address:
Bridging.
3. Internetworking (part 2: switched LANs)
Chapter 4 Data Link Layer Switching
Spanning Tree Algorithm
ARP: Address Resolution Protocol
Chapter 3 Part 1 Switching and Bridging
Lab 2 – Hub/Switch Data Link Layer
Computer Networks Lecture 6a: Interconnecting LANs
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
LAN switching and Bridges
NT2640 Unit 9 Activity 1 Handout
Chapter 6 The Link Layer and LANs
Bridges and Extended LANs
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
Connections Johan Lukkien
Chapter 15. Connecting Devices
LAN switching and Bridges
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Presentation transcript:

CS 3700 Networks and Distributed Systems Christo Wilson 8/22/2012 CS 3700 Networks and Distributed Systems Bridging (From Hub to Switch by Way of Tree) Revised 8/19/15 Defense

Just Above the Data Link Layer Bridging How do we connect LANs? Function: Route packets between LANs Key challenges: Plug-and-play, self configuration How to resolve loops Application Presentation Session Transport Network Data Link Physical

Recap Hub Originally, Ethernet was a broadcast technology Terminator Repeater Tee Connector Pros: Simplicity Hardware is stupid and cheap Cons: No scalability More hosts = more collisions = pandemonium Hub

The Case for Bridging Hub Need a device that can bridge different LANs Only forward packets to intended recipients Much less broadcasting! Send Packet B  C A Send Packet B  C A Bridge B Hub B C C

Bridging the LANs Bridging limits the size of collision domains Hub Hub Bridging limits the size of collision domains Vastly improves scalability Question: could the whole Internet be one bridging domain? Tradeoff: bridges are more complex than hubs Physical layer device vs. data link layer device Need memory buffers, packet processing hardware, routing tables

Makes routing decisions Bridge Internals Bridge Hub Inputs Outputs Switch Fabric Memory buffer Makes routing decisions Bridges have memory buffers to queue packets Bridge is intelligent, only forwards packets to the correct output Bridges are high performance, full N * line rate is possible

Bridges Forwarding of frames Learning of (MAC) Addresses Spanning Tree Algorithm (to handle loops) Original form of Ethernet switch Connect multiple IEEE 802 LANs at layer 2 Goals Reduce the collision domain Complete transparency “Plug-and-play,” self-configuring No hardware of software changes on hosts/hubs Should not impact existing LAN operations Hub

Frame Forwarding Tables Each bridge maintains a forwarding table MAC Address Port Age 00:00:00:00:00:AA 1 1 minute 00:00:00:00:00:BB 2 7 minutes 00:00:00:00:00:CC 3 2 seconds 00:00:00:00:00:DD 1 3 minutes

Frame Forwarding in Action Port 1 Port 4 Port 2 Port 3 Assume a frame arrives on port 1 If the destination MAC address is in the forwarding table, send the frame on the correct output port If the destination MAC isn’t in the forwarding table, broadcast the frame on all ports except 1

Delete old entries after a timeout Learning Addresses Manual configuration is possible, but… Time consuming Error Prone Not adaptable (hosts may get added or removed) Instead, learn addresses using a simple heuristic Look at the source of frames that arrive on each port Delete old entries after a timeout MAC Address Port Age 00:00:00:00:00:AA 1 0 minutes 00:00:00:00:00:AA 00:00:00:00:00:BB 2 0 minutes Port 1 Port 2 Hub 00:00:00:00:00:BB

Complicated Learning Example <Src=AA, Dest=FF> <Src=CC, Dest=AA> <Src=EE, Dest=CC> Bridge 1 Bridge 2 AA 1 AA 1 CC 2 CC 1 EE 2 EE 2 Port 1 Port 2 Port 1 Port 2 Hub Hub Hub AA BB CC DD EE FF

The Danger of Loops <Src=AA, Dest=DD> This continues to infinity CC DD <Src=AA, Dest=DD> This continues to infinity How do we stop this? Remove loops from the topology Without physically unplugging cables 802.1 uses an algorithm to build and maintain a spanning tree for routing Hub Port 2 Port 2 AA 1 AA 1 AA 2 AA 2 AA 1 AA 1 Port 1 Port 1 Hub AA BB

Spanning Tree Definition A subset of edges in a graph that: Span all nodes Do not create any cycles This structure is a tree 5 1 1 2 2 3 3 4 6 2 5 5 3 1 4 4 7 6 6 7 7

Spanning Tree Poem Algorhyme 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 packet 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

802.1 Spanning Tree Approach Elect a bridge to be the root of the tree Every bridge finds shortest path to the root Union of these paths becomes the spanning tree Bridges exchange Configuration Bridge Protocol Data Units (BPDUs) to build the tree Used to elect the root bridge Locate the next hop closest to the root, and its port Select ports to be included in the spanning trees

Definitions Bridge ID (BID) = <Random Number> Root Bridge: bridge with the lowest BID in the tree Path Cost: cost (in hops) from a transmitting bridge to the root Each port on a bridge has a unique Port ID Root Port: port that forwards to the root on each bridge Designated Bridge: the bridge on a LAN that provides the minimal cost path to the root The designated bridge on each LAN is unique

Determining the Root Initially, all hosts assume they are the root Bridges broadcast BPDUs: Based on received BPDUs, each switch chooses: A new root (smallest known Root ID) A new root port (what interface goes towards the root) A new designated bridge (who is the next hop to root) Root ID Path Cost to Root Bridge ID

Comparing BPDUs BPDU1 BPDU2 R1 Cost1 B1 R2 Cost2 B2 if R1 < R2: use BPDU1 else if R1 == R2 and Cost1 < Cost2: use BPDU1 else if R1 == R2 and Cost1 == Cost 2 and B1 < B2: use BPDU1 else: use BPDU2

Spanning Tree Construction 0: 0/0 3: 0/2 3: 3/0 12: 12/0 12: 0/1 27: 27/0 27: 0/1 41: 41/0 41: 3/1 41: 0/2 9: 3/2 9: 0/3 9: 9/0 68: 68/0 68: 0/3 68: 3/2 68: 9/1

Designated Bridges Ultimately, each bridge must decide to enable or disable each port Reasons to keep a port enabled: You receive no BPDUs on that port Indicates there are no other bridges The port is a root port You need to be able to forward packets to the root of the spanning tree You are the designated bridge for that LAN All other bridges on that LAN have a longer path to the root, or their bridge ID is higher than yours On, 1 ? ? On, 3 On, 3 ? 9 27 ? On, 2 On, 2 ? ? On, 3 ? Off

More Designated Bridges Ultimately, each bridge must decide to enable or disable each port Reasons to keep a port enabled: You receive no BPDUs on that port Indicates there are no other bridges It is the root port You need to be able to forward packets to the root of the spanning tree You are the designated bridge for that LAN All other bridges on that LAN have a longer path to the root, or their bridge ID is higher than yours ? On, 3 ? On, 3 9 27 On, 2 ? ? On, 2 ? On, 3 ? On, 3 On, 2 ? Off ? 3

Bridges vs. Switches Bridges make it possible to increase LAN capacity Reduces the amount of broadcast packets No loops Switch is a special case of a bridge Each port is connected to a single host Either a client machine Or another switch Thus, there are no collision domains No need for CSMA/CD! Simplifies hardware. Can have different speeds on each port 2 hosts on 1 port Not a legal network with switches

Switching the Internet Capabilities of switches: Network-wide routing based on MAC addresses Learn routes to new hosts automatically Resolve loops Could the whole Internet be one switching domain? NO

Limitations of MAC Routing Inefficient Flooding packets to locate unknown hosts Poor Performance Spanning tree does not balance load Hot spots Extremely Poor Scalability Every switch needs every MAC address on the Internet in its routing table! IP addresses these problems (next lecture…)