Bridges and Extended LANs

Slides:



Advertisements
Similar presentations
CSCI-1680 Switching Based partly on lecture notes by David Mazières, Phil Levis, John Jannotti Rodrigo Fonseca.
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.
Spring 2003CS 4611 Switching and Forwarding Outline Store-and-Forward Switches Bridges and Extended LANs Cell Switching Segmentation and Reassembly.
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
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 ELEN 602 Lecture 18 Packet switches Traffic Management.
Spring 2002CS 4611 Router Construction Outline Switched Fabrics IP Routers Tag Switching.
1 Switching and Forwarding Bridges and Extended LANs.
1 Chapter 3 Switching and Forwarding Outline 3.1 Switching and Forwarding 3.2 Bridges and LAN Switches 3.3 Cell Switching (ATM) 3.4 Implementation and.
CSE331: Introduction to Networks and Security Lecture 7 Fall 2002.
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.
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?
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.
CSS432: Switching and Bridging 1 Switching and Bridging Textbook Ch3.1 and 3.4 Instructor: Joe McCarthy (based on Prof. Fukuda’s slides)
CSS432: Switching and Bridging 1 Switching and Bridging Textbook Ch3.1 and 3.4 Professor: Munehiro Fukuda.
Outline Packet switching paradigms Bridges and extended LANs Cell switching Switching hardware.
15.1 Chapter 15 Connecting LANs, Backbone Networks, and Virtual LANs Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Scaling Broadcast Ethernet Some slides used with.
21-Dec-154/598N: Computer Networks Cell Switching (ATM) Connection-oriented packet-switched network Used in both WAN and LAN settings Signaling (connection.
Bridges and Extended 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.
Spring 2000CS 4611 Router Construction Outline Switched Fabrics IP Routers Extensible (Active) Routers.
1 Introduction to Computer Networks University of Ilam By: Dr. Mozafar Bag Mohammadi Packet Switching.
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.
CS380 Int. to Comp. Networks Switching – Part II1 Bridges and LAN Switches Q. What can be used to share data between two shared-media LAN’s? A.LAN switch.
Graciela Perera Department of Computer Science and Information Systems Slide 1 of 18 INTRODUCTION NETWORKING CONCEPTS AND ADMINISTRATION CSIS 3723 Graciela.
Chapter 3 Part 3 Switching and Bridging
Chapter 3: Packet Switching (overview)
Youngstown State University Cisco Regional Academy
CS 3700 Networks and Distributed Systems
Advanced Computer Networks
3. Internetworking (part 2: switched LANs)
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
Chapter 4: Network Layer
Chapter 3 Part 3 Switching and Bridging
LAN switching and Bridges
CS 4700 / CS 5700 Network Fundamentals
Switching and Bridging Textbook Ch3.1 and 3.4
Switching and Bridging Textbook Ch3.1 and 3.4
What’s “Inside” a Router?
Measured Capacity of an Ethernet: Myths and Reality
LAN switching and Bridges
Switching and Forwarding
CS 4700 / CS 5700 Network Fundamentals
Dr. Rocky K. C. Chang 23 February 2004
Router Construction Outline Switched Fabrics IP Routers
Chapter 4 Network Layer Computer Networking: A Top Down Approach 5th edition. Jim Kurose, Keith Ross Addison-Wesley, April Network Layer.
Chapter 3 Part 3 Switching and Bridging
LAN switching and Bridges
Packet Switching Outline Store-and-Forward Switches
Computer Networks: Switching and Queuing
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Virtual LAN (VLAN).
Chapter 4: Network Layer
HWP2 – Application level query routing
Presentation transcript:

Bridges and Extended LANs LANs have physical limitations (e.g., 2500m) Connect two or more LANs with a bridge Bridges use “accept and forward” strategy level 2 connection (does not add packet header) A Bridge B C X Y Z Port 1 Port 2

Learning Bridges Do not forward when unnecessary Maintain forwarding table Learn table entries based on source address Table is an optimization; need not be complete Always forward broadcast frames Host Port A 1 B C X 2 Y Z

Spanning Tree Algorithm Problem: loops in cabling can make packets forwarded forever - no mechanism to remove looping frames We can remove loops by maintaining state in the packet, but for layer-2 switching - we are not allowed to change the packet Extra cabling can be good for redundancy if we can remove loops dynamically Bridges run a distributed spanning tree algorithm select which bridges actively forward developed by Radia Perlman now IEEE 802.1 specification

Algorithm Overview Each bridge has unique id (e.g., B1, B2, B3) Select bridge with smallest id as root How to choose root: next slides Select bridge on each LAN closest to root as designated bridge (use id to break ties) Each bridge forwards frames over each LAN for which it is the designated bridge Root forwards over all its ports A B B3 C B5 D B7 B2 K E F B1 G H B6 B4 I J

Algorithm Details Bridges exchange configuration messages id for bridge sending the message id for what the sending bridge believes to be root bridge distance (hops) from sending bridge to root bridge Each bridge records current best configuration message for each port Initially, each bridge believes it is the root

Algorithm Detail (cont) When a bridge learns that it is not root, stop generating config messages in steady state, only root generates configuration messages When a bridge learns that it is not the designated bridge, stop forwarding config messages in steady state, only designated bridges forward config messages Root continues to periodically send config messages If any bridge does not receive config message after a period of time, it starts generating config messages claiming to be the root

Spanning tree

Spanning tree properties Spanning trees avoid loops, they are not designed to find shortest path or “route” against congested paths. All traffic goes towards the root We will develop routers later on in the course which will address these issues

Broadcast and Multicast Forward all broadcast/multicast frames current practice Learn when no group members downstream Accomplished by having each member of group G send a frame to bridge multicast address with G in source field

Tcpdump trace tcpdump -p 02:21:52.651816 802.1d config 0000.00:02:2d:71:03:ef.0001 root 0000.00:02:2d:71:03:ef pathcost 0 age 0 max 20 hello 2 fdelay 15 02:21:53.263956 engr-fe21.gw.nd.edu > ALL-SYSTEMS.MCAST.NET: igmp query v2 [tos 0xc0] [ttl 1] 02:25:22.656898 CDP v2, ttl=180s DevID '013183892(hub24-1b.hub.nd.edu)' Addr (1): IPv4 129.74.24.67 PortID '5/10' CAP 0x0e[|cdp]

Limitations of Bridges Do not scale spanning tree algorithm does not scale - traffic gets bridged through the root bridge Spanning tree is designed to avoid loops, not traffic balancing: redundant routes are ignored broadcast does not scale Do not accommodate heterogeneity Caution: beware of transparency

VLAN (Notre Dame uses these to create departmental LANs) Create virtual lans (broadcast domains) without rewiring Add a 4 byte VLAN id to each frame Courtesy: Cisco

Implementation details How do we actually build a switch Need to send data from any input to any output port Its expensive to fully allow this, some paths are shared Packets that are in contention are stored and forwarded Control logic inspects every packet Processing power needed depends on packet size

Workstation-Based Aggregate bandwidth 1/2 of the I/O bus bandwidth capacity shared among all hosts connected to switch example: 1Gbps bus can support 5 x 100Mbps ports (in theory) Packets-per-second must be able to switch small packets 300,000 packets-per-second is achievable e.g., 64-byte packets implies 155Mbps

Switching Hardware Design Goals Ports Fabric throughput (depends on traffic model) scalability (a function of n) Ports circuit management (e.g., map VCIs, route datagrams) buffering (input and/or output) Fabric as simple as possible sometimes do buffering (internal) Switch fabric Control processor Output port Input

Buffering Wherever contention is possible Head-of-Line Blocking input port (contend for fabric) internal (contend for output port) output port (contend for link) Head-of-Line Blocking input buffering - 1 is blocked even though there is no contention for port1

Crossbar Switches Each port = total switch throughput

Knockout Switch Example crossbar Concentrator Complexity: n2 select l of n packets Complexity: n2 Inputs 1 2 3 4 Outputs

Self-Routing Fabrics Banyan Network constructed from simple 2 x 2 switching elements self-routing header attached to each packet elements arranged to route based on this header no collisions if input packets sorted into ascending order complexity: n log2 n

Self-Routing Fabrics (cont) Batcher Network switching elements sort two numbers some elements sort into ascending (clear) some elements sort into descending (shaded) elements arranged to implement merge sort complexity: n log22 n Common Design: Batcher-Banyan Switch

High-Speed IP Router Switch (possibly ATM) Line Cards + Forwarding Engines link interface router lookup (input) common IP path (input) packet queue (output) Network Processor routing protocol(s) exceptional cases

High-Speed Router Routing CPU Buffer memory Routing software Line card (forwarding buffering) Routing CPU Buffer memory Routing software w/ router OS

Alternative Design Crossbar Switch PC CPU MEM NI with uP .