Telematics I. Chapter 6 Internetworking. (Acknowledement: These slides have been compiled from H. Karl s set of slides)

Similar documents
Hubs. twisted pair. hub. 5: DataLink Layer 5-1

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

ECE 4450:427/527 - Computer Networks Spring 2017

Principles behind data link layer services:

Principles behind data link layer services:

Principles behind data link layer services

Communication Networks ( ) / Spring 2011 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

Lecture 9: Switched Ethernet Features: STP and VLANs

Link layer: introduction

ECE 158A: Lecture 13. Fall 2015

CMPE 150 Winter 2009

Data Link Layer. Our goals: understand principles behind data link layer services: instantiation and implementation of various link layer technologies

Review. Error Detection: CRC Multiple access protocols. LAN addresses and ARP Ethernet. Slotted ALOHA CSMA/CD

Switching and Forwarding Reading: Chapter 3 1/30/14 1

Medium Access Protocols

Chapter 6 Medium Access Control Protocols and Local Area Networks

CSC 401 Data and Computer Communications Networks

Growth. Individual departments in a university buy LANs for their own machines and eventually want to interconnect with other campus LANs.

Chapter 4 NETWORK HARDWARE

Some portions courtesy Srini Seshan or David Wetherall

Summary of MAC protocols

Connecting LANs, Backbone Networks, and Virtual LANs

CS 3516: Advanced Computer Networks

Connecting LANs. Required reading: Forouzan 17.1 to 17.1 Garcia 6.11 (intro ) CSE 3213, Fall Instructor: N. Vlajic

LAN Interconnection and Other Link Layer Protocols

LAN Overview (part 2) Interconnecting LANs - Hubs

More on LANS. LAN Wiring, Interface

CCM 4300 Lecture 5 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

Chapter 6 Connecting Device

3.5 CONNECTING DEVICES

Good day. Today we will be talking about Local Internetworking What is Internetworking? Internetworking is the connection of different networks.

Hubs, Bridges, and Switches (oh my) Hubs

Underlying Technologies -Continued-

LAN Interconnection. different interconnecting devices, many approaches Vasile Dadarlat- Local Area Computer Networks

Lecture 9: Bridging & Switching"

Switching & ARP Week 3

Lecture 7. Reminder: Homework 2, Programming Project 1 due today. Homework 3, Programming Project 2 out, due Thursday next week. Questions?

LANs do not normally operate in isolation. They are connected to one another or to the Internet. To connect LANs, connecting devices are needed.

More on Link Layer. Recap of Last Class. Interconnecting Nodes in LAN (Local-Area Network) Interconnecting with Hubs. Computer Networks 9/21/2009

2. LAN Topologies Gilbert Ndjatou Page 1

Data Communication. Introduction of Communication. Data Communication. Elements of Data Communication (Communication Model)

CSE 123: Computer Networks Alex C. Snoeren. HW 2 due Thursday 10/21!

A. ARPANET was an early packet switched network initially connecting 4 sites (Stanford, UC Santa Barbara, UCLA, and U of Utah).

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

Computer Science Department 2 nd semester- Lecture13

Distributed Queue Dual Bus

Connecting LANs. Required reading: Garcia 6.11 (intro ) CSE 3213, Fall 2010 Instructor: N. Vlajic

L2 Addressing and data plane. Benjamin Baron

The Link Layer and LANs: Ethernet and Swiches

CSE 123A Computer Networks

King Fahd University of Petroleum & Minerals Electrical Engineering Department EE 400, Experiment # 2

Switched Ethernet Virtual LANs

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18

CH : 15 LOCAL AREA NETWORK OVERVIEW

6.1.2 Repeaters. Figure Repeater connecting two LAN segments. Figure Operation of a repeater as a level-1 relay

Introduction to LAN Protocols

Internetworking is connecting two or more computer networks with some sort of routing device to exchange traffic back and forth, and guide traffic on

Computer Networks. Routing

Applied Networks & Security

Applied Networks & Security

Computer Networks Principles LAN - Ethernet

EPL606. Internetworking. Part 2a. 1Network Layer

Chapter Seven. Local Area Networks: Part 1. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

Extending the LAN. Context. Info 341 Networking and Distributed Applications. Building up the network. How to hook things together. Media NIC 10/18/10

Introduction to OSPF

CHAPTER 2 - NETWORK DEVICES

CSCI 466 Midterm Networks Fall 2011

A B C D E Total / 24 / 23 / 12 / 18 / 3 / 80

CSCI 466 Midterm Networks Fall 2011

CSE 461: Bridging LANs. Last Topic

Configuring your VLAN. Presented by Gregory Laffoon

Goal and Outline. Computer Networking. What Do We Need? Today s Story Lecture 3: Packet Switched Networks Peter Steenkiste

Introduction to Communication Networks Spring Unit 13 Network extensions Bridges.

Lecture 7. Network Layer. Network Layer 1-1

Computer Networks. Wenzhong Li. Nanjing University

Lecture 5 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

CS4700/CS5700 Fundamentals of Computer Networks

Introduction to Networks and the Internet

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

Additional Slides (Basics) Intermediate Systems

Layer 2 functionality bridging and switching

Introduction to Ethernet. Guy Hutchison 8/30/2006

Internetworking Part 1

Full file at

We are going to see a basic definition of the devices you can find in a corporate wired network, so you can understand basic IT engineering jargon.

Lecture 6 The Data Link Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Local Area Network Overview

Chapter 5 Link Layer and LANs

Administrivia CSC458 Lecture 4 Bridging LANs and IP. Last Time. This Time -- Switching (a.k.a. Bridging)

Local Area Network(LAN)

7010INT Data Communications Lecture 7 The Network Layer

CSCI Computer Networks

Chapter 2 Communicating Over the Network

CN [Network Devices]

CompSci 356: Computer Network Architectures. Lecture 8: Spanning Tree Algorithm and Basic Internetworking Ch & 3.2. Xiaowei Yang

High Level View. EE 122: Ethernet and Random Access protocols. Medium Access Protocols

Internetwork Expert s CCNP Bootcamp. Hierarchical Campus Network Design Overview

CSCD 330 Network Programming Spring 2017

Cisco Exam Cisco Interconnecting Cisco Networking Devices Part 1 (ICND) Version: 12.0 [ Total Questions: 202 ]

Transcription:

Telematics I Chapter 6 Internetworking (Acknowledement: These slides have been compiled from H. Karl s set of slides) 1 Goals of This Chapter So far: we can communicate between nodes all connected directly to the same medium How to grow beyond a single medium? What options exist to interconnect local networks into larger configurations? Repeaters, hubs, bridges, switches, routers, gateways What are their limitations? How does it relate to the networking layer in the ISO/OSI stack? 2

Overview LAN interconnection Physical-layer interconnects Data-link-layer interconnects Higher-layer interconnects 3 The Problem Let s start from classic Ethernet Single wire, single collision domain Works fine for a limited number of stations Collapses when number of nodes becomes too large CSMA/CD will not keep up, limited bandwidth Multiple LANs are necessary Not an inherent Ethernet problem Will happen on any medium, with any protocol 4

Several Reasons for Multiple LANs Limited number of users/throughput in a single LAN Historical reasons Different groups started out individually setting up networks Usually heterogeneous Geographic distribution of different groups over different buildings, campus, Impractical/impossible to use a single LAN because of distance Long round-trip delay will negatively influence performance Reliability Don t put all your eggs into one basket Babbling idiot problem, e.g. Security Promiscuous operation contain possible damage 5 Several Options to Overcome Some of These Limitations Can be classified according to the layer in which they work 6

Overview LAN interconnection Physical-layer interconnects Data-link-layer interconnects Higher-layer interconnects 7 Repeaters Simplest option: Repeater Physical layer device Connected to two cables Amplifies signal arriving on either one, puts on the other cable Essentially an analog amplifier to extend physical reach of a cable Combats attenuation Neither understands nor cares about content (bits) of packets Signal in Repeater Amplify Signal out 8

Hub Similar to repeaters: Hubs Connects multiple cables electrically, not just two Usually, does not amplify the signal Also physical layer device Also does not understand or process content of packets All connected cables form a single collision domain 9 Physical Layer Solutions Not Satisfactory Physical layer devices repeater, hub do not solve the more interesting problems E.g., how to handle load Some knowledge of the data link layer structure is necessary To be able to inspect the content of the packets/frames and do something with that knowledge Link-layer solutions Bridge & switch Switch: Interconnect several terminals Bridge: Interconnect several networks But terms sometimes used interchangeably 10

Overview LAN interconnection Physical-layer interconnects Data-link-layer interconnects Higher-layer interconnects 11 Switch Use a switch to connect several terminals without forming a single collision domain A switch: Stores and forwards link layer frames (e.g. Ethernet) When frame is to be forwarded on segment, uses CSMA/CD to access segment Inspects an arriving packet s addresses and forwards its only on the right cable Does not bother the other terminals Needs: buffer, knowledge where which terminal is connected 12

Forwarding 1 2 3 switch hub hub hub How do determine onto which LAN segment to forward frame? Looks like a routing problem... 13 Determining Directions: Self Learning A switch has a switch table Entry in switch table: (MAC Address, Interface, Time Stamp) Stale entries in table dropped (TTL can be 60 min) Switch learns which hosts can be reached through which interfaces When frame received, switch learns location of sender: incoming LAN segment ( backward learning ) Records sender/location pair in switch table 14

Filtering/Forwarding When switch receives a frame: index switch table using MAC dest address if entry found for destination then{ if dest on segment from which frame arrived then drop the frame else forward the frame on interface indicated } else flood forward on all but the interface on which the frame arrived 15 Bridges Switches are limited in that they connect simple terminals Sometimes, entire networks have to be connected: Bridges Bridge also inspects incoming packet and forwards only towards destination How to learn here where destination is? Does simple backward learning suffice? Each network connected to a bridge is a separate collision domain Bridges can also interconnect different LAN types Not possible on physical layer only 16

Switches & Bridges Typical combination: Bridge as just another terminal for a switch Switch Bridge Switch 17 Backward Learning in Bridges Backward learning is trivial in a switch how about a bridge? Example: A sends packet to E Suppose bridges B1 and B2 know where E is B2 will see A s packet coming from LAN2 Since B2 does not know about LAN1, B2 will assume A to be on LAN2 Which is fine! B1 will forward any packet destined to A arriving at LAN2 to LAN1, so that works out nicely 18

Backward Learning in Bridges Bootstrapping In previous example: How does bridge B2 know initially where node E is? Answer: It does NOT know Option 1: Manual configuration not nice! Option 2: Do not care simply forward the data everywhere for an unknown address Except to the network where it came from Algorithm is thus: flood if not known, or discard if known to be not necessary, or forward specifically if destination is known 19 Flooding by Bridges Problems Previous backward learning by flooding is simple, but problematic Consider example topology: Second bridge for reliability LAN2 LAN1 F B 1 B 2 Send frame F to unknown destination When B2 hears packets flooded from B1 it will flood them as well...... and vice versa! How to avoid such packet loops? 20

Solution 1: Somehow Restrict Flooding Unrestricted, brute-force flooding evidently fails Avoid packet looping indefinitely by remembering which packets have already been forwarded If already seen and forwarded a packet, simply drop it Requires: State & uniqueness Bridges have to remember which packets have passed through Packets must be uniquely identifiable at least source, destination, and sequence number are necessary to distinguish packets Big overhead! Especially state is a problem, as is time to search this amount of state Usually not used Note: Restricted flooding is still important for control packets, in wireless networks, 21 Solution 2: Spanning Trees Packet loops are caused by cycles in the graph defined by the bridges Think of bridges as edges, LANs as nodes in this graph Redundant bridges form loops in this graph Idea: Turn this into a loop-free, acyclic graph Simplest approach: Compute a spanning tree on this LAN-bridge graph Simple, self-configured, no manual intervention But not optimal: actual capacity of installed bridges might not be fully exploited Definition spanning tree: Given a graph G=(V,E), a spanning tree T=(V, E T ) is a subgraph of V, E T E, which is a tree (in particular, connected and acyclic) 22

Convergence: Switch and Bridge Traditionally, distinction between switch and bridge made sense Today: most devices contain both types of functionality Often more a marketing distinction than a technical one 23 Overview LAN interconnection Physical-layer interconnects Data-link-layer interconnects Higher-layer interconnects 24

Routers All devices so far either ignored addresses (repeaters, hubs) or worked on MAC-layer addresses (switches, bridges) For interconnection outside a single LAN/connection of LAN, these simple addresses are insufficient Main issue: flat, unstructured addresses do not scale In spanning tree, there is an entry for every device s designated output port! Need more sophisticated addressing structure and devices that operate on it Routers and routing! Treated in the next chapter 25 Gateways If even routers will not do, higher-layer interconnection is necessary: Gateways Work at transport level and upwards E.g., application gateways transforming between HTML and WML/HTTP and WAP E.g., transcoding gateways for media content 26

Further Topic in LAN/LAN Interconnection: VLAN Problem: LANs/switches are geared towards physical proximity of devices But: LANs should respect logical proximity Connect devices of working groups together, irrespective where they happen to be located Idea: put a virtual LAN on top of an existing physical LAN Switches (or bridges) need configuration tables which port belongs to which VLAN Only forward packets to ports of correct VLAN Membership of incoming packets determined by port, MAC address VLAN mapping, or IP address VLAN mapping Buzzword: IEEE 802.1Q 27 Conclusions Single LANs are insufficient to provide communication for all but the simplest installations Interconnection of LANs necessary Interconnect on purely physical layer: Repeater, hub Interconnect on data link layer: Bridges, switches Interconnect on network layer: Router Interconnect on higher layer: Gateway Problems E.g., redundant bridges can cause traffic floods; need spanning tree algorithm Simple addresses do not scale; need routers 28