Link Layer Review. CS244A Winter 2008 March 7, 2008 Ben Nham

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

Link Layer and Wireless. CS144 Review Session 7 May 16, 2008 Ben Nham

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

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

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

Lecture 9 The Data Link Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Announcements. CS 5565 Network Architecture and Protocols. Ethernet. Ethernet. Ethernet Model. Ideal Multiple Access Protocol

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

Medium Access Protocols

Summary of MAC protocols

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

The Link Layer II: Ethernet

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

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

CSE 461: Multiple Access Networks. This Lecture

Principles behind data link layer services

Principles behind data link layer services:

Chapter 5: The Data Link Layer. Chapter 5 Link Layer and LANs. Ethernet. Link Layer. Star topology. Ethernet Frame Structure.

Principles behind data link layer services:

CS244a: An Introduction to Computer Networks

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

Links, clocks, optics and radios

Some portions courtesy Srini Seshan or David Wetherall

CSCI-1680 Link Layer Wrap-Up Rodrigo Fonseca

ECE 4450:427/527 - Computer Networks Spring 2017

Contention Protocols and Networks

CSC 4900 Computer Networks: Link Layer (2)

Topics Today. Lecture 8: Physical and Link Layers. Protocol Layering. Physical layer: chips versus bits. Physical Layer (Layer 1) Protocol Layering

CS244a: An Introduction to Computer Networks

Part3. Local Area Networks (LAN)

Media Access Control (MAC) Sub-layer and Ethernet

ECSE 414 Fall 2014 Final Exam Solutions

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

CS 455/555 Intro to Networks and Communications. Link Layer Addressing, Ethernet, and a Day in the Life of a Web Request

CSCI 466 Midterm Networks Fall 2011

CSE 123A Computer Networks

IEEE 802 LANs SECTION C

Computer Networks Medium Access Control. Mostafa Salehi Fall 2008

ECE 4450:427/527 - Computer Networks Spring 2017

Layer 2 functionality bridging and switching

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space provided.

Data and Computer Communications

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

Review For Exam 2. Internetworking. Summary Questions. School of Business Eastern Illinois University. School of Business Eastern Illinois University

CS 3516: Advanced Computer Networks

Computer and Network Security

Lecture 9: Bridging & Switching"

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

Reminder: Datalink Functions Computer Networking. Datalink Architectures

Digital Communication Networks

Medium Access Control. CSCI370 Lecture 5 Michael Hutt New York Institute of Technology

CS 123: Lecture 12, LANs, and Ethernet. George Varghese. October 24, 2006

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

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

CSCI 466 Midterm Networks Fall 2011

Faculty of Science Final Examination. Computer Science B Basics of Computer Networks

Problem Max. Points Act. Points Grader

LAN Interconnection and Other Link Layer Protocols

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

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

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

WEEK 9 TCP/IP, PHYSICAL AND DATA LINK LAYERS

Data Networks. Lecture 1: Introduction. September 4, 2008

Introduction to Ethernet. Guy Hutchison 8/30/2006

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

ECE 333: Introduction to Communication Networks Fall 2001

Lecture 05 Chapter 16 High Speed LANs

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

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

CS244a: An Introduction to Computer Networks

LAN PROTOCOLS. Beulah A AP/CSE

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

ECE 435 Network Engineering Lecture 21

ECE 158A: Lecture 13. Fall 2015

7010INT Data Communications Lecture 7 The Network Layer

EE 122: Ethernet and

1-1. Switching Networks (Fall 2010) EE 586 Communication and. November 8, Lecture 30

Data Link Layer: Multi Access Protocols

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 7

Computer Networks. 19 December This exam consists of 6 questions with subquestions. Every subquestion counts for 10 points.

First Semester Examinations 2015/16 (Model Solution) INTERNET PRINCIPLES

ISO/OSI Model and Collision Domain NETWORK INFRASTRUCTURES NETKIT - LECTURE 1 MANUEL CAMPO, MARCO SPAZIANI

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Chapter 4. The Medium Access Control Sublayer

Lecture 4b. Local Area Networks and Bridges

Lecture 6. Data Link Layer (cont d) Data Link Layer 1-1

CS 4453 Computer Networks Winter

Message, Segment, Packet, and Frame Link-layer services Encoding, framing, error detection, transmission control Error correction and flow control

CS4700/CS5700 Fundamentals of Computer Networks

EECS 122, Lecture 7. Kevin Fall Jean Walrand

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061/1110. Lecture 8. Medium Access Control Methods & LAN

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

COS 140: Foundations of Computer Science

Jaringan Komputer. Broadcast Network. Outline. MAC (Medium Access Control) Channel Allocation Problem. Dynamic Channel Allocation

Chapter 5 part 2 LINK LAYER. Computer Networks Timothy Roscoe Summer Networks & Operating Systems Computer Networks

Introduction to Networking Devices

ECE 4450:427/527 - Computer Networks Spring 2017

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

Data Link Layer, Part 5. Medium Access Control

Transcription:

Link Layer Review CS244A Winter 2008 March 7, 2008 Ben Nham

Announcements PA3 due today PS3 due next Wednesday PA4 due next Friday Final Exam Review session next Friday 7-10 PM on Thursday, March 20

Multiple Access Protocols Protocol Efficiency Notes Slotted Aloha In best case, Np*(1-p*)^(N- 1) as N goes to infinity => 1/e = 0.37 CSMA/CD 1/(1+5a) a = PROP/TRANSP TRANSP > 2 * PROP; cable length and packet size limited Token Passing (RAR) Token Passing (RAT) 1/(1+a) 1/(1+a/N)

Routers, Switches, and Hubs Routers are network layer devices Modify IP datagram (decrement TTL) Hosts and other routers must be aware of them Switches and hubs are link layer devices Only care about frames, don t modify IP datagram Transparent to network

Hubs Operate as a repeater Broadcast an incoming frame to all ports, except for the ingress port Like having a longer Ethernet cable that all the hosts tap into All ports are on single collision domain! Advantages: simple, restores signal, potentially fast since we don t have to buffer or examine frame Disadvantages: poor bandwidth due to collisions

Hub Question 1 A 10-port hub is connected to 10 hosts using gigabit links. What is the maximum aggregate transfer rate of data flowing through this network? All ports are part of the same collision domain-- only one device can send at a time Therefore, peak bandwidth is one gigabit

Hub Question 2 Recall that 100Mbps Ethernet restricts cable lengths to 100m. Suppose we want to connect two hosts which are 1000m apart. Can we use 10 100m cables with 9 hubs in series to accomplish this? No. Since all ports are on same collision domain, max network diameter (1km) is too large to meet the TRANSP > 2 * PROP constraint of CSMA/CD In reality, the IEEE standard limits number of hubs in series and specifies maximum network diameter

Switches Must store and examine frame before forwarding Simple learning protocol no configuration Given incoming frame (MAC src, MAC dst ) on port x: Add (MAC src, x) to switch table Look up port for MAC dst for in switch table If entry is there, forward frame to that port Else, broadcast frame to all ports (except ingress port) Collision domain is a single port switch will make sure that the frame it sends out does not collide with another frame being sent on the same link

Spanning Tree Protocol Industrial switches run Spanning Tree Protocol to prevent switching loops Each bridge is given its own unique ID by the network admin. Then: Find the root (lowest ID) For each network segment, turn on the link through switch that is on the least-cost path back to the root Break ties by sending through switch with lower ID Disable all other ports in the topology Full distributed algorithm in lecture notes

STP Example Find the root (lowest ID) For each network segment, turn on the link through the switch that is on the leastcost path back to the root Break ties by sending through switch with lower ID B2 B3 B6 Root B1 B5 B4 B7 B8

STP Example Find the root (lowest ID) For each network segment, turn on the link through the switch that is on the leastcost path back to the root Break ties by sending through switch with lower ID B2 B3 B6 Root B1 B5 B4 B7 B8

Shannon Capacity Given: B: Bandwidth of channel in Hz S/N: signal to noise power ratio (or solve for it using db = 10 log 10 (S/N) Channel restricted by Gaussian noise Then, using any data encoding technique, the amount of information C in bits per second that can be transmitted over the link is: C = B log 2 (1+S/N)

Manchester Encoding Synchronous digital systems need a clock to trigger sampling of data Manchester encoding allows us to encode the clock with the data stream The preamble to the Ethernet frame is used to synchronize the sender clock with the receiver clock In Manchester encoding: Transmitter samples data on edge of clock (usually rising edge) If we sample a 1, it is encoded by a rising edge If we sample a 0, it is encoded by a falling edge

Manchester Encoding Question Suppose a 10Mbps NIC sends into a link an infinite stream of zeros using Manchester encoding. The signal emerging from the adapter will have how many transitions per second? - 2 transitions per bit time - Bit times occur at clock frequency of 10MHz - Transitions occur at 20 MHz clk data encoding