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

Similar documents
More on LANS. LAN Wiring, Interface

Computer Science Department 2 nd semester- Lecture13

Chapter 6 Connecting Device

LAN Overview (part 2) Interconnecting LANs - Hubs

Lecture 8: Switched Ethernet and Collision Domains

Chapter 4 NETWORK HARDWARE

Revision of Previous Lectures

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

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

Interface The exit interface a packet will take when destined for a specific network.

CHAPTER 2 - NETWORK DEVICES

Network Media and Layer 1 Functionality

CN [Network Devices]

Layer 2 functionality bridging and switching

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

Introduction to LAN Protocols

Fundamentals of Networking Introduction to Networking Devices

Objectives. Hexadecimal Numbering and Addressing. Ethernet / IEEE LAN Technology. Ethernet

CS610- Computer Network Solved Subjective From Midterm Papers

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

Introduction to Networking Devices

Network Infrastructure

Principles behind data link layer services

Local Area Network(LAN)

Lecture 4b. Local Area Networks and Bridges

Medium Access Protocols

Summary of MAC protocols

Data Communications. Connecting Devices

Chapter 6: DataLink Layer - Ethernet Olivier Bonaventure (2010)

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

Networking Devices. Punch_down panels

Distributed Queue Dual Bus

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

Computer Networks. Week 04 Media and Devices. College of Information Science and Engineering Ritsumeikan University

3.5 CONNECTING DEVICES

Introduction to Computer Science (I1100) Networks. Chapter 6

Media Access Control (MAC) Sub-layer and Ethernet

Chapter 16 Networking

Ethernet Basics. based on Chapter 4 of CompTIA Network+ Exam Guide, 4 th ed., Mike Meyers

Network.... communication system for connecting end- systems. End-systems a.k.a. hosts PCs, workstations dedicated computers network components

2. LAN Topologies Gilbert Ndjatou Page 1

Chapter 9. Ethernet. Part II

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

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

7010INT Data Communications Lecture 7 The Network Layer

THE OSI MODEL. Application Presentation Session Transport Network Data-Link Physical. OSI Model. Chapter 1 Review.

Integrating Information Systems: Technology, Strategy, and Organizational Factors

ET4254 Communications and Networking 1

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

RAJIV GANDHI COLLEGE OF ENGINEERING AND TECHNOLOGY

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

Full file at

ECE 333: Introduction to Communication Networks Fall Lecture 19: Medium Access Control VII

Local Area Networks (LANs): Packets, Frames and Technologies Gail Hopkins. Part 3: Packet Switching and. Network Technologies.

AppleTalk. Chapter Goals. Introduction CHAPTER

Principles behind data link layer services:

Principles behind data link layer services:

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

Computer Networks. Wenzhong Li. Nanjing University

Networking Background

CH : 15 LOCAL AREA NETWORK OVERVIEW

Link layer: introduction

CS 416: Operating Systems Design April 11, 2011

The Link Layer and LANs: Ethernet and Swiches

Unit A - Connecting to the Network

Introduction to LAN Protocols

ECE 435 Network Engineering Lecture 11

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Full file at

Image courtesy Cisco Systems, Inc. Illustration of a Cisco Catalyst switch

Wired internetworking devices. Unit objectives Differentiate between basic internetworking devices Identify specialized internetworking devices

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

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

Underlying Technologies -Continued-

Direct Link Communication II: Wired Media. Multi-Access Communication

Physical and Link Layers. CS144 Review Session 6 November 6 th, 2008 Roger Liao Based on slides by Ben Nham

Types of Computer Networks and their Topologies Three important groups of computer networks: LAN, MAN, WAN

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

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

Internetwork Basic. Possible causes of LAN traffic congestion are

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Introduction to Communication Networks Spring Unit 13 Network extensions Bridges.

Direct Link Communication II: Wired Media. Multi-Access Communication

STEVEN R. BAGLEY PACKETS

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

CS519: Computer Networks. Lecture 1 (part 2): Jan 28, 2004 Intro to Computer Networking

Local Area Network Overview

Local Area Networks. Aloha Slotted Aloha CSMA (non-persistent, 1-persistent, p-persistent) CSMA/CD Ethernet Token Ring

Chapter 10: Planning and Cabling Networks

Chapter 12. Network Organization and Architecture

Lecture (02) Network Protocols and Standards

1: Review Of Semester Provide an overview of encapsulation.

CMSC 611: Advanced. Interconnection Networks

ECE 158A: Lecture 13. Fall 2015

Chapter 7. Local Area Network Communications Protocols

LOCAL AREA NETWORKS Q&A Topic 4: VLAN

NETWORKING COMPONENTS

Link Layer and Ethernet

Question Score 1 / 19 2 / 19 3 / 16 4 / 29 5 / 17 Total / 100

ก ก Information Technology II

Transcription:

Extending the LAN Info 341 Networking and Distributed Applications Context Building up the network Media NIC Application How to hook things together Transport Internetwork Network Access Physical Internet Reference Model 1

Packet Collisions What is a packet collision? What happens when packets collide? How does a machine respond? Overriding Concept The Segment A segment is a contiguous unit of a medium in which a packet collision might occur. <book> A single piece of cable that forms a bus 2

Segments How many segments? Segments How many segments? 3

Segments How many segments? Internet Maximum Segment Length For a given medium segment has a max length Why? Media Type Name Length Thicknet (coax) 10 base 5 500m Thinnet (coax) 10 base 2 200m UTP 100 base T 100m Fiber 1000 base FX 1.5km 4

Maximum Segment Length For a given medium segment has a max length Why? Signal attenuation Distance a packet can travel in a given time Media Type Name Length Thicknet (coax) 10 base 5 500m Thinnet (coax) 10 base 2 200m UTP 100 base T 100m Fiber 1000 base FX 1.5km LANs have limited Size The size of a LAN is limited by the type of the medium. What s the largest LAN we could build? 5

LANs have limited Size The size of a LAN is limited by the type of the medium. What s the largest LAN we could build? What s the largest segment length? LANs have limited Size The size of a LAN is limited by the type of the medium. What s the largest LAN we could build? What s the largest segment length? What if we could hook two or more segments together? 6

Connecting Segments Repeaters s Hubs Switches Repeaters Do exactly what their name implies Regenerate the signal so that it can travel a longer distance For example you could extend the maximum length of a 10Base5 thicknet network from 500 meters to 1000 meters by installing a repeater at the end of one segment Thick Ethernet can have a maximum of 5 segments, 2500 meters total cable length 7

Repeater example Regenerate the signal so that it can travel a longer distance A bridge keeps track of which devices are on different segments A bridge only retransmits signals when the sender and receiver are on different segments 8

s maintain a bridge table that keeps track of what addresses are on each side of the bridge s help control congestion and can improve performance on a network How s Learn s learn by watching the traffic that is on the network s start by acting like a repeater, sending out all traffic Consider an example 9

Building A Table Left Right Building A Table Dest Src Payload data Left Right 10

Building A Table Dest Src Payload data Left Right Building A Table Dest Src Payload data Left Right 11

Building A Table Dest Src Payload data Left Right Building A Table Left Right 12

Building A Table Dest Src Payload data Left Right Building A Table Dest Src Payload data Left Right 13

Building A Table Dest Src Payload data Left Right Building A Table Dest Src Payload data Left Right 14

Building A Table Left Right Building A Table Dest Src Payload 02:1A data Left Right 15

Building A Table Dest Src Payload 02:1A data Left Right Building A Table Dest Src Payload 02:1A data Left Right 02:1A 16

Building A Table Left Right 02:1A Building A Table Dest Src Payload data Left Right 02:1A 17

Building A Table Dest Src Payload data Left Right 02:1A Building A Table Dest Src Payload data Left Right 02:1A 18

Building A Table Dest Src Payload data Left Right 02:1A Building A Table Left Right 02:1A 19

Congestion When a segment has lots of traffic (and lots of collisions) we say it is congested Now that you ve seen an example, how does a bridge help control congestion? Hubs Essentially a multi-port repeater Propagates all the data on one cable to all the others connected there Comes in a variety of shapes and sizes with a varying number of ports. One port is often an uplink or cross-over port for connecting a series of hubs 20

Switches Switches physically resemble hubs Switches do NOT act like hubs Switches act like bridges Layer 2 Switch Learn MAC Addresses for each port (socket) Congestion is reduced Network performance improved WANs and Routing 21

Context Connecting large numbers of machines WANs span large distance Bridging, repeating Traffic control, congestion control Basic problem, how to make sure packets are delivered? How do we hook up a bunch of machines? Maybe we could just use switches? switch switch switch switch switch switch switch 22

What if it got really big? What are the limits of this design? Problems with huge switched networks Physically this looks to be hierarchical, but it is not Logically, the fully switched design is a flat addressing space Every switch needs to know exactly what addresses exist on each port. Limitation is memory - the tables get too big 23

Potential Problems with Cycles As you add bridges (switches) you might accidentally create a cycle Why is this a problem? Potential Problems with Cycles Switches must pass all broadcast packets Switches can t tell which broadcast packets they have seen and which are new May cause a broadcast storm that completely saturates the network Some switches support the spanning tree algorithm to detect a cycle and cut it 24

Routers Routers are special equipment helps traffic control Translate traffic between different types of network hardware (the whole world is not Ethernet) Routers often store and forward packets memory in the router allows the router to store the packet, inspect/analyze the packet and then forward it to the destination C C C C R Network Routers Minimally routers have two NICs (which are usually called interfaces ) installed Each interface connects to a different network or LAN Routers can connect different types of networks A router might have an Ethernet interface, a Token Ring interface, and a Fiber interface all in the same router Routers examine packets They determine what packets should stay local to a particular network segment, and which need to be sent outside Routers may have to re-package data into different frame types, Token Ring frames can be up to 4500 bytes, Ethernet frames 1500 bytes a router must put the correct envelopes around the data so it can be moved between different network types Broadcasts DO NOT pass through routers 25

Routers and large networks While it is possible to build large networks using just switches, traditionally routers are used instead due to their ability to better control traffic and their ability to interconnect different network types Routers however are much more expensive Routers have to understand the higher level protocols, they don t just use MAC addresses so they must have fast CPUs. Even the fastest router may not be as fast as a LAN switch since the switches job is much simpler, so a router based network could potentially be slower than a switched based network Distinction Switched LAN vs Packet Switched Network Previously, we talked about LAN switches and how they can help with congestion LAN switches, Level 2 devices Now, we re talking about packet switching - in general, routers perform packet switching Routers, Level 3 devices The term switched means different things in different contexts 26

The Role of Routers The role of routers in a network Traffic cop Connect different types of networks How is this done? First, a simple packet switching network A Small Abstract Network (SANet) SANet is not a real network, just a small example to facilitate some networking concepts SANet is composed of computers and routers SANet has packet structure and numerous possible interconnection topologies 27

SANet Router Router has Processor Route table Packet buffer Interfaces Connect to the external network (WAN) Ports Connect to the internal network (LAN) if1 if2 if3 if4 Processor Packet Buffer Route Table p01 p02 p03 p04 SANet Packets SANet has a frame structure composed of Destination address Source address Payload Checksum Address Structure Router (1 octet) 01 Machine (1 octet (port) + 1 octet (machine)) 00.02 Packet Structure Dest Source Payload (16 octets) Checksum 02.04.01 01.02.01 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 00:00 28

SANet Architecture 01.01 01 02 04.01 02.01 03.01 03 04 04.01 01.01 04.01 01.01 04.01 04.02 04.03 SANet Router/Packet Switch if1 if2 if3 if4 Processor Route Table 04.*.* if1 03.*.* if3 02.04.* p04 Packet Buffer Switch 02 Route table keeps track of other networks on the interfaces. Route table keeps track of what machines are on each port p01 p02 p03 p04 29

Finding a path 02.04.01 01.01.01 ff:05:00:0a:00:00:00:0c:00:f5:00:ec:f3:00:27:13 1b:11 04.04.03 01.03.01 ac:00:0f:13:00:10:01:ee:10:00:00:65:aa:67:00:00 77:de 01.01 01 02 04.01 02.01 03.01 03 04 04.01 01.01 04.01 01.01 04.01 04.02 04.03 Routing Packets (SANet) SANet addressing is an example of hierarchical addressing The address tells you something about the structure of the network Next-Hop Examine the first part of the address Table lookup determines where the packet is sent But how is a route determined/found? Graph Theory 30

Routing Packets Common Approaches Static routing fixes routes at start up sometimes set by hand Dynamic routing programmatically build the route table Often rely on graph theoretic approaches Link State Routing (LSR) Distance-Vector Routing (DVR) Networks as Graph Theory Networks are a concrete representation of mathematical graph theory In graph theory a graph is: nodes N= {n 1,n 2,n 3,n 4, n n } edges E = {e 1, e 2, e 3, e 4, e n } a function determining edge incidence 31

Graphs A graph of the SANet architecture nodes N = {1,2,3,4} edges E = {e 1, e 2, e 3, e 4 } e 1 = (1,3) e 2 = (2,3) e 3 = (3,4) e 4 = (2,4) 1 e 1 e 2 2 e 4 3 4 e 3 Weighted Graphs A weighted graph is one where the edges have some weight or value associated with them Networks have various edge weights Transmission speed (distance vector) Transmission latency (distance vector) Link live (link state/status) 32

Network Graph Algorithms Given a weighted graph Minimum Spanning Tree (MST) Eliminate cycles in a graph Used in intelligent switches and routers Related, Distributed Spanning Tree (DST) Shortest path Used in routers to determine the shortest route for delivering a packet 33