Interconnection: Switching and Bridging

Slides:



Advertisements
Similar presentations
1 UNIT I (Contd..) High-Speed LANs. 2 Introduction Fast Ethernet and Gigabit Ethernet Fast Ethernet and Gigabit Ethernet Fibre Channel Fibre Channel High-speed.
Advertisements

Interconnection: Switching and Bridging CS 4251: Computer Networking II Nick Feamster Fall 2008.
Local Area Networks - Internetworking
Connecting LANs, Backbone Networks, and Virtual LANs
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.
Packet Switching COM1337/3501 Textbook: Computer Networks: A Systems Approach, L. Peterson, B. Davie, Morgan Kaufmann Chapter 3.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 19 Introduction to Computer Networks.
Review r Error Detection: CRC r Multiple access protocols m Slotted ALOHA m CSMA/CD r Homework 3 out r Project 3 out, link state only. Some slides are.
Fundamentals of Computer Networks ECE 478/578 Lecture #13: Packet Switching (2) Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
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:
5/31/05CS118/Spring051 twisted pair hub 10BaseT, 100BaseT, hub r T= Twisted pair (copper wire) r Nodes connected to a hub, 100m max distance r Hub: physical.
1 Computer Networks Internetworking Devices. 2 Repeaters Hubs Bridges –Learning algorithms –Problem of closed loops Switches Routers.
COS 461: Computer Networks
1 Interconnection ECS 152A. 2 Interconnecting with hubs r Backbone hub interconnects LAN segments r Extends max distance between nodes r But individual.
1 Interconnecting LAN segments Repeaters Hubs Bridges Switches.
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)
DataLink Layer1 Ethernet Technologies: 10Base2 10: 10Mbps; 2: 200 meters (actual is 185m) max distance between any two nodes without repeaters thin coaxial.
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
Introduction to IT and Communications Technology Justin Champion C208 – 3292 Ethernet Switching CE
1 Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
Chapter 4: Managing LAN Traffic
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.
 Network Segments  NICs  Repeaters  Hubs  Bridges  Switches  Routers and Brouters  Gateways 2.
NUS.SOC.CS2105 Ooi Wei Tsang Application Transport Network Link Physical you are here.
Token Passing: IEEE802.5 standard  4 Mbps  maximum token holding time: 10 ms, limiting packet length  packet (token, data) format:  SD, ED mark start,
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.
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.
Sem1 - Module 8 Ethernet Switching. Shared media environments Shared media environment: –Occurs when multiple hosts have access to the same medium. –For.
STORE AND FORWARD & CUT THROUGH FORWARD Switches can use different forwarding techniques— two of these are store-and-forward switching and cut-through.
1 Data Link Layer Lecture 23 Imran Ahmed University of Management & Technology.
Cisco Network Devices Chapter 6 powered by DJ 1. Chapter Objectives At the end of this Chapter you will be able to:  Identify and explain various Cisco.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Connecting Devices CORPORATE INSTITUTE OF SCIENCE & TECHNOLOGY, BHOPAL Department of Electronics and.
Lecture 11: Switches Reading: Section 3.2 ? CMSC 23300/33300 Computer Networks
ICS 156: Networking Lab Magda El Zarki Professor, ICS UC, Irvine.
Bridges and LAN Switches
5: DataLink Layer 5a-1 Bridges and spanning tree protocol Reference: Mainly Peterson-Davie.
Ch. 15 Connecting LANs.
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.
Computer Communication and Networking Lecture # 4 by Zainab Malik 1.
5: DataLink Layer5-1 Hubs Hubs are essentially physical-layer repeaters: m bits coming from one link go out all other links m at the same rate m no frame.
5: DataLink Layer5-1 Link-layer switches. 5: DataLink Layer5-2 Hubs … physical-layer (“dumb”) repeaters: m bits coming in one link go out all other links.
1 LAN switching and Bridges Relates to Lab Outline Interconnection devices Bridges/LAN switches vs. Routers Bridges Learning Bridges Transparent.
1 LAN switching and Bridges Relates to Lab 6. Covers interconnection devices (at different layers) and the difference between LAN switching (bridging)
Chapter 3 Part 1 Switching and Bridging
Chapter 16– Connecting LANs
Link Layer 5.1 Introduction and services
Advanced Computer Networks
MAC Addresses and ARP 32-bit IP address:
3. Internetworking (part 2: switched LANs)
Chapter 4 Data Link Layer Switching
Hubs Hubs are essentially physical-layer repeaters:
ARP: Address Resolution Protocol
Chapter 3 Part 1 Switching and Bridging
CS 457 – Lecture 8 Switching and Forwarding
Hubs Hubs are essentially physical-layer repeaters:
LAN switching and Bridges
LAN switching and Bridges
LAN switching and Bridges
Dr. Rocky K. C. Chang 23 February 2004
Connections Johan Lukkien
Chapter 15. Connecting Devices
Bridges Neil Tang 10/10/2008 CS440 Computer Networks.
Chapter 5 Data Link Layer – Hub, Switch
Presentation transcript:

Interconnection: Switching and Bridging CS 4251: Computer Networking II Nick Feamster Spring 2008

In This Lecture How hosts find each other on a subnet Address Resolution Protocol (ARP) Broadcast Interconnecting subnets Switches: Forwarding and filtering Self-learning bridges Spanning tree protocols Switches vs. Hubs Swtiches vs. Routers Can Ethernet scale to a million nodes? VLANs Other alternatives

Bootstrapping: Networks of Interfaces LAN/Physical/MAC address Flat structure Unique to physical interface (no two alike)…how? datagram link layer protocol receiver sender frame frame adapter adapter Frames can be sent to a specific MAC address or to the broadcast MAC address What are the advantages to separating network layer from MAC layer?

ARP: IP Addresses to MAC addresses Query is IP address, response is MAC address Query is sent to LAN’s broadcast MAC address Each host or router has an ARP table Checks IP address of query against its IP address Replies with ARP address if there is a match Potential problems with this approach? Caching on hosts is really important Try arp –a to see an ARP table

Life of a Packet: On a Subnet Packet destined for outgoing IP address arrivesat network interface Packet must be encapsulated into a frame with the destination MAC address Frame is sent on LAN segment to all hosts Hosts check destination MAC address against MAC address that was destination IP address of the packet

Interconnecting LANs Receive & broadcast (“hub”) Learning switches Spanning tree (RSTP, MSTP, etc.) protocols

Interconnecting LANs with Hubs All packets seen everywhere Lots of flooding, chances for collision Can’t interconnect LANs with heterogeneous media (e.g., Ethernets of different speeds) hub hub hub hub

Problems with Hubs: No Isolation Scalability Latency Avoiding collisions requires backoff Possible for a single host to hog the medium Failures One misconfigured device can cause problems for every other device on the LAN

Improving on Hubs: Switches Link-layer Stores and forwards Ethernet frames Examines frame header and selectively forwards frame based on MAC dest address When frame is to be forwarded on segment, uses CSMA/CD to access segment Transparent Hosts are unaware of presence of switches Plug-and-play, self-learning Switches do not need to be configured

Switch: Traffic Isolation Switch breaks subnet into LAN segments Switch filters packets Same-LAN-segment frames not usually forwarded onto other LAN segments Segments become separate collision domains switch collision domain hub hub hub collision domain collision domain

Filtering and Forwarding Occurs through switch table Suppose a packet arrives destined for node with MAC address x from interface A If MAC address not in table, flood (act like a hub) If MAC address maps to A, do nothing (packet destined for same LAN segment) If MAC address maps to another interface, forward How does this table get configured? LAN A LAN B LAN C A B C

Advantages vs. Hubs Better scaling Better privacy Heterogeneity Separate collision domains allow longer distances Better privacy Hosts can “snoop” the traffic traversing their segment … but not all the rest of the traffic Heterogeneity Joins segments using different technologies

Disadvantages vs. Hubs Delay in forwarding frames Bridge/switch must receive and parse the frame … and perform a look-up to decide where to forward Storing and forwarding the packet introduces delay Solution: cut-through switching Need to learn where to forward frames Bridge/switch needs to construct a forwarding table Ideally, without intervention from network administrators Solution: self-learning

Motivation For Self-Learning Switches forward frames selectively Forward frames only on segments that need them Switch table Maps destination MAC address to outgoing interface Goal: construct the switch table automatically B A C switch D

(Self)-Learning Bridges Switch is initially empty For each incoming frame, store The incoming interface from which the frame arrived The time at which that frame arrived Delete the entry if no frames with a particular source address arrive within a certain time B Switch learns how to reach A. A C D

Cut-Through Switching Buffering a frame takes time Suppose L is the length of the frame And R is the transmission rate of the links Then, receiving the frame takes L/R time units Buffering delay can be a high fraction of total delay, especially over short distances A B switches

Cut-Through Switching Start transmitting as soon as possible Inspect the frame header and do the look-up If outgoing link is idle, start forwarding the frame Overlapping transmissions Transmit the head of the packet via the outgoing link … while still receiving the tail via the incoming link Analogy: different folks crossing different intersections A B switches

Limitations on Topology Switches sometimes need to broadcast frames Unfamiliar destination: Act like a hub Sending to broadcast Flooding can lead to forwarding loops and broadcast storms E.g., if the network contains a cycle of switches Either accidentally, or by design for higher reliability Worse yet, packets can be duplicated and proliferated!

Solution: Spanning Trees Ensure the topology has no loops Avoid using some of the links when flooding … to avoid forming a loop Spanning tree Sub-graph that covers all vertices but contains no cycles Links not in the spanning tree do not forward frames

Constructing a Spanning Tree Elect a root The switch with the smallest identifier Each switch identifies if its interface is on the shortest path from the root And it exclude from the tree if not Also exclude from tree if same distance, but higher identifier Message Format: (Y, d, X) From node X Claiming Y as root Distance is d root One hop Three hops

Steps in Spanning Tree Algorithm Initially, every switch announces itself as the root Example: switch X announces (X, 0, X) Switches update their view of the root Upon receiving a message, check the root id If the new id is smaller, start viewing that switch as root Switches compute their distance from the root Add 1 to the distance received from a neighbor Identify interfaces not on a shortest path to the root and exclude those ports from the spanning tree

Example From Switch #4’s Viewpoint Switch #4 thinks it is the root Sends (4, 0, 4) message to 2 and 7 Switch #4 hears from #2 Receives (2, 0, 2) message from 2 … and thinks that #2 is the root And realizes it is just one hop away Switch #4 hears from #7 Receives (2, 1, 7) from 7 And realizes this is a longer path So, prefers its own one-hop path And removes 4-7 link from the tree 1 3 5 2 4 6 7

Robust Spanning Tree Algorithm Algorithm must react to failures Failure of the root node Need to elect a new root, with the next lowest identifier Failure of other switches and links Need to recompute the spanning tree Root switch continues sending messages Periodically reannouncing itself as the root (1, 0, 1) Other switches continue forwarding messages Detecting failures through timeout Switch waits to hear from others Eventually times out and claims to be the root

Extension: Virtual LANs Partition a single switched LAN into several virtual ones Switched LANs do not scale well to large networks Spanning tree algorithm has linear scaling behavior Some frames are broadcast Group users/hosts based on organizational structure, rather than physical location Improve privacy and isolation Exploit locality Avoid physical rewiring More in Lec. 12 (Plus, Network Layers as Link Layers)

Switches vs. Routers Switches Switches are automatically configuring Forwarding tends to be quite fast, since packets only need to be processed through layer 2 Routers Router-level topologies are not restricted to a spanning tree Can even have multipath routing

Scaling Ethernet Main limitation: Broadcast Spanning tree protocol messages ARP queries High-level proposal: Distributed directory service Each switch implements a directory service Hosts register at each bridge Directory is replicated Queries answered locally …are there other ways to do this?