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

Chapter 5 Link Layer and LANs

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

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

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

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

Chapter 6 The Link Layer and LANs

Transport Layer Overview

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

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

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

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

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

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

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

Housekeeping. Fall /5 CptS/EE 555 1

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

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

CSE 123A Computer Networks

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

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

ECE 4450:427/527 - Computer Networks Spring 2017

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

Chapter V: Link Layer

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

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

Computer and Network Security

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

Module 10 Data Link Layer CS655! 10-1!

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

Some portions courtesy Robin Kravets and Steve Lumetta

CSE 461: Framing, Error Detection and Correction

Data Link Layer: Multi Access Protocols

Chapter 5: Link layer

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

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

Chapter 8 OSI Physical Layer

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

Chapter 5 Link Layer and LANs

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

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

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

Lecture 20: Link Layer

LAN Interconnection and Other Link Layer Protocols

Data Link Layer (1) Networked Systems 3 Lecture 6

Goals of Today s Lecture. Adaptors Communicating

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

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

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

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

Chapter 6 Digital Data Communications Techniques

Data Link Layer. Srinidhi Varadarajan

Chapter V: Link Layer

CS 4453 Computer Networks Winter

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

CSCI-1680 Physical Layer Link Layer I Rodrigo Fonseca

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

Chapter 4 Network Layer

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

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

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.

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

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

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

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

Chapter 3. The Data Link Layer

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

Networking Link Layer

CS321: Computer Networks Error Detection and Correction

Principles behind data link layer services:

Module 4 Data Link Layer CS655! 4-1!

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

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

CSCI-1680 Link Layer I Rodrigo Fonseca

Where we are in the Course

CS 640 Lecture 4: 09/11/2014

Wireless Network and Mobility

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

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

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

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

Ch. 7 Error Detection and Correction

Computer Networking. Lecture 4 - Coding and Error Control

CC451 Computer Networks

Data Link Layer Lecture 7

Reliable Data Transfer

of-service Support on the Internet

416 Distributed Systems. Errors and Failures, part 2 Feb 3, 2016

Transcription:

Data Link Layer Overview : 9/7/2007 CSC 257/457 - Fall 2007 1 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/7/2007 CSC 257/457 - Fall 2007 2 Link Layer: Introduction link 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/7/2007 CSC 257/457 - Fall 2007 3 9/7/2007 CSC 257/457 - Fall 2007 4

Link Layer Services More Link Layer Services encode binary data into 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 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 9/7/2007 CSC 257/457 - Fall 2007 5 9/7/2007 CSC 257/457 - Fall 2007 6 Variety of Link Types Data transfer over different links: e.g., first link (local-area cable) intermediate links (longhaul fiber) last link (wireless) Different links may demand different services encoding link access control reliable delivery link 9/7/2007 CSC 257/457 - Fall 2007 7 9/7/2007 CSC 257/457 - Fall 2007 8

Encoding Problem with Consecutive 1s or 0s Signals propagate over a physical medium modulate electromagnetic waves e.g., vary voltage Clock synchronization both the sender and the receiver maintains a clock clock synchronized at signal change Encode binary data onto signals e.g., low signal as 0 and high signal as 1 known as Non-Return to Zero () Clock 9/7/2007 CSC 257/457 - Fall 2007 9 9/7/2007 CSC 257/457 - Fall 2007 10 An Alternative Encoding Non-return to Zero Inverted (I) 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 Manchester Encoding Manchester encode 0 into low-to-high transition; encode 1 into high-to-low transition. only 50% efficient. I I Manchester 9/7/2007 CSC 257/457 - Fall 2007 11 9/7/2007 CSC 257/457 - Fall 2007 12

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 I break sequence of bits into frames, add protocol headers/trailers efficiency? 80% 9/7/2007 CSC 257/457 - Fall 2007 13 9/7/2007 CSC 257/457 - Fall 2007 14 Where each frame begins and ends? Sentinel-based delineate frame with special pattern: 01111110 e.g., problem: special pattern appears in the payload solution: bit stuffing sender: insert 0 after five consecutive 1s receiver: delete 0 that follows five consecutive 1s similar to escape characters in program languages Counter-based 8 16 16 8 Header Body EDC Beginning sequence include payload length in header Ending sequence 9/7/2007 CSC 257/457 - Fall 2007 15 9/7/2007 CSC 257/457 - Fall 2007 16

Error Detection and Correction D Data protected by error checking, may include header fields EDC Error Detection and Correction bits (redundancy) Parity Checking Single Bit Parity: Detect single bit errors Two Dimensional Bit Parity: Detect and correct single bit errors 1 0 0 9/7/2007 CSC 257/457 - Fall 2007 17 9/7/2007 CSC 257/457 - Fall 2007 18 Cyclic Redundancy Check view data bits, D, as a binary number choose r+1 bit pattern (generator), G for each D: choose r CRC bits, R, such that <D,R> exactly divisible by G (modulo 2) CRC Example There is no carries and borrows in modulo-2 arithmetic. Addition, subtraction, and bit-wise XOR are all identical. + receiver knows G, divides <D,R > by G. If non-zero remainder: error detected! can detect all burst errors less than r+1 bits 9/7/2007 CSC 257/457 - Fall 2007 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/7/2007 CSC 257/457 - Fall 2007 20

Internet Checksum Error Detection Reliability Sender: Note: used at transport layer (TCP/UDP). treat data as sequence of 16-bit integers add using 16-bit 1 s complement arithmetic; take 1 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/7/2007 CSC 257/457 - Fall 2007 21 Error detection is not 100% reliable! it is possible for D and D to share the same EDC what is the chance? larger EDC field yields better detection and correction it is also possible for EDC has errors in a way that hides the data error 9/7/2007 CSC 257/457 - Fall 2007 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/7/2007 CSC 257/457 - Fall 2007 23