1 Packet Switching Outline Switching and Forwarding Bridges and Extended LANs.

Slides:



Advertisements
Similar presentations
Switching and Forwarding
Advertisements

Communication Networks Recitation 3 Bridges & Spanning trees.
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.
Fundamentals of Computer Networks ECE 478/578 Lecture #13: Packet Switching (2) Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
Computer Network 實踐資管 Wang-Jiunn Cheng 2004 PART V-1 Extending Networks (Repeaters, Bridges, Switches)
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.
Chapter 3 Ethernet Bridges & Switches, ATM Switching Professor Rick Han University of Colorado at Boulder
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)
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)
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.
Connecting LANs, Backbone Networks, and Virtual LANs
CSE Computer Networks Prof. Aaron Striegel Department of Computer Science & Engineering University of Notre Dame Lecture 7 – February 2, 2010.
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.
ECE 4450:427/527 - Computer Networks Spring 2015 Dr. Nghi Tran Department of Electrical & Computer Engineering Lecture 6.1: Internetworking Dr. Nghi Tran.
CSS432: Switching and Bridging 1 Switching and Bridging Textbook Ch3.1 and 3.4 Instructor: Joe McCarthy (based on Prof. Fukuda’s slides)
1 Chapter 11 Extending Networks (Repeaters, Bridges, Switches)
Fundamentals of Computer Networks ECE 478/578 Lecture #12: Packet Switching Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
CSS432: Switching and Bridging 1 Switching and Bridging Textbook Ch3.1 and 3.4 Professor: Munehiro Fukuda.
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.
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.
1 Chapter 3 Internetworking Computer Networks: A Systems Approach, 5e Larry L. Peterson and Bruce S. Davie Copyright © 2010, Elsevier Inc. All rights Reserved.
Bridges and Extended LANs
1 Ch 11 Extending LANs Fiber modems, Repeaters, Bridges, and Switches.
CS440 Computer Networks 1 Packet Switching Neil Tang 10/6/2008.
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.
Computer Networks-Packet Switching1 CHAPTER-3 PACKET SWITCHING.
3. INTERNETWORKING (PART 1) Rocky K. C. Chang Department of Computing The Hong Kong Polytechnic University 18 February
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.
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.
Chapter 3 Part 1 Switching and Bridging
Chapter 3 Part 3 Switching and Bridging
Chapter 3: Packet Switching (overview)
Youngstown State University Cisco Regional Academy
Advanced Computer Networks
3. Internetworking (part 1)
Packet Switching Outline Store-and-Forward Switches
Lab 2 – Hub/Switch Data Link Layer
3. Internetworking (part 2: switched LANs)
: An Introduction to Computer Networks
Switching and Forwarding Bridges and Extended LANs
Chapter 3 Part 1 Switching and Bridging
Lab 2 – Hub/Switch Data Link Layer
Chapter 3 Part 3 Switching and Bridging
LAN switching and Bridges
Measured Capacity of an Ethernet: Myths and Reality
Bridges and Extended LANs
LAN switching and Bridges
Switching and Forwarding
CS4470 Computer Networking Protocols
Dr. Rocky K. C. Chang 23 February 2004
Chapter 3 Part 3 Switching and Bridging
Chapter 15. Connecting Devices
LAN switching and Bridges
Packet Switching Outline Store-and-Forward Switches
ECE 4450:427/527 - Computer Networks Spring 2017
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Virtual LAN (VLAN).
HWP2 – Application level query routing
Presentation transcript:

1 Packet Switching Outline Switching and Forwarding Bridges and Extended LANs

2 Switching and Forwarding A switch is a multi-input, multi-output device, which transfers packets from an input to one or more outputs Adding a new host to the network by connecting it to a switch does not mean that the already connected hosts are affected A switch is connected to a set of links, and each of these links, run the appropriate data link protocol to communicate with the node at the other end of the link

3 Datagram Every packet contains enough information to enable any switch to decide how to get to its destination Each packet is forwarded independently of previous packet that might have been sent to the same destination DestinationPort ABCDEFGHABCDEFGH Forwarding table for switch 2

4 Virtual Circuit Switching This approach is a connection-oriented model, which requires to first setup a virtual connection from the source to destination In the first stage a connection is setup and in the second stage data transfer takes place In connection setup phase a connection state is established in each of the switches between the source and destination hosts The connection state for a single connection consists of an entry in the VC table. One entry in the VC table on a single switch contains: –virtual circuit identifier (VCI) – A unique identifier for the switch –an incoming interface on which packets for this VC arrive at the switch –an outgoing interface in which packets for this VC leave the switch –a potentially different VCI that will be used for outgoing packets

5 Virtual Circuit Switching (contd..) Incoming InterfaceIncoming VCIOutgoing InterfaceOutgoing VCI (a) Incoming InterfaceIncoming VCIOutgoing InterfaceOutgoing VCI (b) Incoming InterfaceIncoming VCIOutgoing InterfaceOutgoing VCI 0714 (c) A packet is sent into a virtual circuit network A packet makes its way through a virtual circuit network

6 Source Routing All the information about network topology that is required to switch a packet across a network is provided by the source host

7 Bridge A hardware device, has a CPU, memory, and two network interfaces  Connects two LAN segments  Forward frames between segments  Does not forward noise or collisions from one segment to another  Learns addresses of hosts and filters from transmitted frames  Allows independent transmission on each segment

8 Learning Bridges Do not forward when unnecessary Maintain forwarding table HostPort A1 B1 C1 X2 Y2 Z2 Learn table entries based on source address Table is an optimization; need not be complete Always forward broadcast frames A Bridge BC XY Z Port 1 Port 2

9 Bridge Learning Algorithm A bridge  Listens in promiscuous mode  Checks source address in incoming frames  Makes list of computers on each segment  Only forwards a frame to a segment if necessary  Always forwards broadcast/multicast frames

10 Illustration of Bridge Learning Algorithm B UVWXYZ Segment 1Segment 2

11 Example Bridged Network B3B4B5 B2 B1 B6 LAN Segments B1 - B6: Bridges

12 Cycle of Bridges B3B4B5 B2 B1 B6 LAN Segments B1 - B7: Bridges B7

13 Cycle of Bridges (contd..) Problem occurs if all bridges forward broadcast frames Copies of broadcast frames continue to flow around the cycle forever if not prevented Effect: Each computer on a segment receives an infinite number of copies of a broadcast frame Conclusion: Not all bridges can be allowed to forward broadcast frames

14 Spanning Tree Algorithm Problem: loops Bridges run a distributed spanning tree algorithm –bridges select the ports over which they will forward frames –developed by Radia Perlman –now IEEE specification B3 A C E D B2 B5 B B7 K F H B4 J B1 B6 G I

15 Spanning Tree Algorithm in General terms Allows cycles Used by all bridges to –Discover one another while booting –Determine whether forwarding will introduce a cycle for a broadcast frame –Decide which bridge will or will not forward a broadcast frame –Break cycle(s) –Known as Distributed Spanning Tree (DST)

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

17 Algorithm Details Bridges exchange configuration messages (Y, d, X) –id for the bridge that is sending the message (X) –id for what the sending bridge believes to be the root bridge (Y) –distance (hops) from the sending bridge to the root bridge (d) Each bridge records current best configuration message for each port Initially, each bridge believes it is the root; so it sends message out on all ports identifying itself as root and giving a distance to the root of 0. The new configuration message is “better” than the currently recorded information if –It identifies a root with a smaller id or –It identifies a root with an equal id but with a shorter distance or –The root id and distance are equal, but the sending bridge has a smaller id

18 Algorithm Detail (contd..) When learn not root, stop generating config messages –in steady state, only root generates configuration messages When learn not 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

19 Limitations of Bridges Good to connect a handful of similar LANs Do not scale –spanning tree algorithm does not scale –broadcast does not scale Do not accommodate heterogeneity Caution: beware of transparency –can cause problems with applications designed to operate on a single segment LAN (congestion, out of order frames can occur in rare situations)