Data Link Layer Overview

Similar documents
Data Link Layer Overview

Data Link Layer Overview

Data Link Layer Overview

Introduction to Computer Networks. 03 Data Link Layer Introduction

CSC 401 Data and Computer Communications Networks

Links. CS125 - mylinks 1 1/22/14

Point-to-Point Links. Outline Encoding Framing Error Detection Sliding Window Algorithm. Fall 2004 CS 691 1

Data Link Networks. Hardware Building Blocks. Nodes & Links. CS565 Data Link Networks 1

Chapter 5 Link Layer and LANs

CS 455/555 Intro to Networks and Communications. Link Layer

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 4. September 09 CMSC417 Set 4 1

The Link Layer and LANs. Chapter 6: Link layer and LANs

Computer Networks LECTURE 10 ICMP, SNMP, Inside a Router, Link Layer Protocols. Assignments INTERNET CONTROL MESSAGE PROTOCOL

CSC 4900 Computer Networks: The Link Layer

Chapter 6 The Link Layer and LANs

Data Link Technology. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science

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

L3: Building Direct Link Networks I. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Transport Layer Overview

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

Computer Network. Direct Link Networks Reliable Transmission. rev /2/2004 1

Direct Link Networks. Nodes. Links. Outline Building Blocks Encoding

Housekeeping. Fall /5 CptS/EE 555 1

Overview. Performance metrics - Section 1.5 Direct link networks Hardware building blocks - Section 2.1 Encoding - Section 2.2 Framing - Section 2.

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

CSE 123A Computer Networks

Problem Statement. Physical and Data Link Layer Overview. Five Tasks Encoding. Make two computers talk to each other

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Some portions courtesy Robin Kravets and Steve Lumetta

ECE 4450:427/527 - Computer Networks Spring 2017

Lecture 8 Link Layer: functionality, error detection, media access algorithm

CSE 461: Framing, Error Detection and Correction

Direct Link Networks. Framing. Lecture - Encoding & Framing 1. Problems. Areas for Discussion

Chapter 8 OSI Physical Layer

Review. Some slides are in courtesy of J. Kurose and K. Ross

Direct Link Networks. Lecture - Encoding & Framing 1. Areas for Discussion. Problems

Computer and Network Security

COMPUTER NETWORKS UNIT I. 1. What are the three criteria necessary for an effective and efficient networks?

Department of Computer and IT Engineering University of Kurdistan. Data Communication Netwotks (Graduate level) Data Link Layer

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

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

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

Data Link Layer (1) Networked Systems 3 Lecture 6

Chapter V: Link Layer

CSCI-1680 Physical Layer Link Layer I Rodrigo Fonseca

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

PART III. Data Link Layer MGH T MGH C I 204

Chapter 5: Link layer

Module 10 Data Link Layer CS655! 10-1!

CS 43: Computer Networks The Link Layer. Kevin Webb Swarthmore College November 28, 2017

Data Link Layer. Srinidhi Varadarajan

CompSci 356: Computer Network Architectures. Lecture 4: Link layer: Encoding, Framing, and Error Detection Ref. Chap 2.2, 2.3,2.4

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Nov 1,

CS 640 Introduction to Computer Networks. Role of data link layer. Today s lecture. Lecture16

Data Link Layer: Multi Access Protocols

LAN Interconnection and Other Link Layer Protocols

Goals of Today s Lecture. Adaptors Communicating

Advanced Computer Networks. Rab Nawaz Jadoon DCS. Assistant Professor COMSATS University, Lahore Pakistan. Department of Computer Science

Lecture 20: Link Layer

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

The data link layer has a number of specific functions it can carry out. These functions include. Figure 2-1. Relationship between packets and frames.

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

CS 4453 Computer Networks Winter

Chapter 5 Link Layer and LANs

Link layer, LANs: outline. Chapter 5-1 Link Layer. Link layer: introduction. Link layer services

Direct Link Networks: Building Blocks (2.1), Encoding (2.2), Framing (2.3)

CSCI-1680 Link Layer I Rodrigo Fonseca

CS254 Network Technologies. Lecture 2: Network Models & Error Detection and Correction. Dr Nikos Antonopoulos

From Signals to Packets Computer Networking. Link Layer: Implementation. Datalink Functions. Lecture 5 - Coding and Error Control

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

Computer Networks. General Course Information. Addressing and Routing. Computer Networks 9/8/2009. Basic Building Blocks for Computer Networks

Chapter 4 Network Layer

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4021: Networks Discussion. Chapter 2.

Addressing: when mobile is moving around. Mobile Registration. Principles of Mobile Routing. Mobility via Indirect Routing

I. INTRODUCTION. each station (i.e., computer, telephone, etc.) directly connected to all other stations

Reliable Data Transfer

Networking Link Layer

Chapter V: Link Layer

From Signals to Packets Computer Networking. Link Layer: Implementation. Network Delay. 06-datalink.ppt, , Fall

CS321: Computer Networks Error Detection and Correction

Internet Architecture. Network Layer Overview. Fundamental Network Layer Function. Protocol Layering and Data. Computer Networks 9/23/2009

Lecture 19. Principles behind data link layer services Framing Multiple access protocols

Lecture 5: Data Link Layer Basics

CSE123A discussion session

CS 640 Lecture 4: 09/11/2014

Lecture 6: Reliable Transmission. CSE 123: Computer Networks Alex Snoeren (guest lecture) Alex Sn

CS/ECE 438: Communication Networks for Computers Spring 2018 Midterm Examination Online

Lecture 4: CRC & Reliable Transmission. Lecture 4 Overview. Checksum review. CRC toward a better EDC. Reliable Transmission

Overview. Data Link Technology. Role of the data-link layer. Role of the data-link layer. Function of the physical layer

Chapter 6 Digital Data Communications Techniques

Where we are in the Course

Chapter 3. The Data Link Layer

Chapter 10 Error Detection and Correction. Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Principles behind data link layer services:

Computer Networking. Lecture 4 - Coding and Error Control

Transmission SIGNALs

Module 4 Data Link Layer CS655! 4-1!

Ch. 7 Error Detection and Correction

of-service Support on the Internet

CSE 123: Computer Networks Alex C. Snoeren. HW 1 due Thursday!

Transcription:

Data Link Layer Overview First of four classes on the data link layer Internet Architecture Bottom up: Physical: electromagnetic signals on the wire Link: data transfer between neighboring network elements Network: host host multi hop connectivity routing, addressing Transport: host host data transport reliable data transport, congestion control, flow control Application: anything you want to do on computer networks application transport network link physical 9/8/2014 CSC 257/457 - Fall 2014 1 9/8/2014 CSC 257/457 - Fall 2014 2 Link Layer: Introduction link Link Layer Functions Some terminology: nodes in the network edge are hosts; nodes in the network core are routers communication channels that connect adjacent nodes along communication path are links LANs, modem links, satellite links, wireless radio links data-link layer has responsibility of transferring data from one node to adjacent node over a link. 9/8/2014 CSC 257/457 - Fall 2014 3 encode binary data to/from electromagnetic signals encapsulate data into frame, adding header, trailer physical addresses used in frame headers to identify source, dest (different from IP address!) Link access control coordinate access for shared link Flow control pacing between sending and receiving nodes such that the sender does not overwhelm the receiver 9/8/2014 CSC 257/457 - Fall 2014 4 1

More Link Layer Functions Error detection errors caused by signal attenuation, electromagnetic noise. receiver detects presence of errors: drops frame or signals sender for retransmission Error correction receiver identifies and corrects error(s) without resorting to retransmission Reliable delivery over the link typically mean no data loss and/or in order delivery Variety of Link Types Data transfer over different links: e.g., first link (local area cable) intermediate links (long haul fiber) last link (wireless) Different links may demand different functions encoding link access control reliable delivery link 9/8/2014 CSC 257/457 - Fall 2014 5 9/8/2014 CSC 257/457 - Fall 2014 6 Outline Encoding Introduction and functions of the data link layer Error detection and correction Signals propagate over a physical medium modulate electromagnetic waves e.g., vary power Encode binary data onto signals e.g., positive voltage as 1 and negative voltage as 0 Also known as Non Return to Zero (NRZ) 9/8/2014 CSC 257/457 - Fall 2014 7 9/8/2014 CSC 257/457 - Fall 2014 8 2

Problem with Consecutive 1s or 0s An Alternative Encoding Clock synchronization both the sender and the receiver maintains a clock clock synchronized at signal change Transition encoding make a transition from current signal to encode a one; stay at current signal to encode a zero only solves the problem of consecutive ones Clock Transition 9/8/2014 CSC 257/457 - Fall 2014 9 9/8/2014 CSC 257/457 - Fall 2014 10 Manchester Encoding Manchester Transition Manchester encode 0 into low to high transition; encode 1 into high to low transition. only 50% efficient. 4B/5B Encoding every 4 bits of data encoded in a 5 bit code since there are more 5 bit codes than 4 bit data; some codes are not used; we can design a mapping/encoding such that no data is encoded into 5 bit code with more than one leading 0 or more than two trailing 0s thus, never get more than three consecutive 0s resulting 5 bit codes are transmitted using the transition encoding efficiency? 80% 9/8/2014 CSC 257/457 - Fall 2014 11 9/8/2014 CSC 257/457 - Fall 2014 12 3

Outline Introduction and functions of the data link layer break sequence of bits into frames, add protocol headers/trailers Error detection and correction Where each frame begins and ends? Sentinel based framing delineate frame with special begin/end patterns e.g., problem: end pattern appears in the payload solution: bit stuffing 8 16 16 8 Header Body EDC Beginning sequence for pattern 01111110: Sender insert 0 after five consecutive 1s Ending sequence Receiver delete 0 that follows five consecutive 1s similar to escape characters in program languages 9/8/2014 CSC 257/457 - Fall 2014 13 9/8/2014 CSC 257/457 - Fall 2014 14 Where each frame begins and ends? Outline Counter based framing include payload length in header Introduction and functions of the data link layer Error detection and correction 9/8/2014 CSC 257/457 - Fall 2014 15 9/8/2014 CSC 257/457 - Fall 2014 16 4

Error Detection and Correction Parity Checking D Data protected by error checking, may include header fields EDC Error Detection and Correction bits (redundancy) Single Bit Parity: Detect single bit errors Two Dimensional Bit Parity: Detect and correct single bit errors 1 0 0 9/8/2014 CSC 257/457 - Fall 2014 17 9/8/2014 CSC 257/457 - Fall 2014 18 Cyclic Redundancy Check view data bits, D, as a binary number constant r+1 bit pattern (generator), G Sender: for each D: choose r CRC bits, R, such that <D,R> exactly divisible by G CRC Example There is no carries and borrows in modulo 2 arithmetic. Addition, subtraction, and bitwise XOR are all identical. Receiver: + divides <D,R > by G. Non zero remainder: error detected! can detect all burst errors fewer than r+1 bits 9/8/2014 CSC 257/457 - Fall 2014 19 Want: D. 2 r + R = ng equivalent to (modulo-2): D. 2 r = ng + R equivalent to: D R. 2 r = remainder[ ] G 9/8/2014 CSC 257/457 - Fall 2014 20 5

Internet Checksum Error Detection Reliability Note: used at network/transport layers (IP, TCP/UDP). Sender: treat data as sequence of 16 bit integers add using 16 bit 1 s complement arithmetic; take 1 s complement of the result as the checksum sender puts checksum value into TCP/UDP checksum field Receiver: compute checksum of received segment check if computed checksum equals checksum field value: NO error detected YES no error detected 1 s complement addition carryout from the most significant bit adds to the least significant bit: 1010 + 1100 = 0111 9/8/2014 CSC 257/457 - Fall 2014 21 Error detection is not 100% reliable! It is possible for corrupted D to match EDC What is the chance that a random error escapes detection? Assume that the EDC field has r bits and that the EDC value for an arbitrary data block is uniformly distributed in the space of possible EDC values. Larger EDC field yields better detection and correction. 9/8/2014 CSC 257/457 - Fall 2014 22 Disclaimer Parts of the lecture slides contain original work of James Kurose, Larry Peterson, and Keith Ross. The slides are intended for the sole purpose of instruction of computer networks at the University of Rochester. All copyrighted materials belong to their original owner(s). 9/8/2014 CSC 257/457 - Fall 2014 23 6