Data Link Control Layer, Error Detection, Error Correction, and Framing

Similar documents
Lecture / The Data Link Layer: Framing and Error Detection

16.682: Communication Systems Engineering. Lecture 17. ARQ Protocols

Layered Network Architecture. CSC358 - Introduction to Computer Networks

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

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

Data link layer functions. 2 Computer Networks Data Communications. Framing (1) Framing (2) Parity Checking (1) Error Detection

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

William Stallings Data and Computer Communications. Chapter 7 Data Link Control

S Capacity enhancement methods for radio interface ARQ Schemes

CS321: Computer Networks Error Detection and Correction

CSE 461: Framing, Error Detection and Correction

Data Link Control. Surasak Sanguanpong Last updated: 11 July 2000

CSE 123: Computer Networks

Data Link Layer. Goals of This Lecture. Engineering Questions. Outline of the Class

CMSC 2833 Lecture 18. Parity Add a bit to make the number of ones (1s) transmitted odd.

Telecom Systems Chae Y. Lee. Contents. Flow Control Error Detection/Correction Link Control (Error Control) Link Performance (Utility)

CSE123A discussion session

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

CSE123A discussion session

ECE 333: Introduction to Communication Networks Fall Lecture 6: Data Link Layer II

4. Error correction and link control. Contents

Outline. Basic ARQ schemes. S Capacity enhancement methods for radio interface ARQ Schemes. Classification of error control strategies

Data Link Layer. Srinidhi Varadarajan

Error Detection Codes. Error Detection. Two Dimensional Parity. Internet Checksum Algorithm. Cyclic Redundancy Check.

Ad hoc and Sensor Networks Chapter 6: Link layer protocols. Holger Karl

EITF25 Internet Techniques and Applications L3: Data Link layer. Stefan Höst

COMPUTER NETWORKS UNIT-3

DATA LINK LAYER UNIT 7.

Data Link Layer (1) Networked Systems 3 Lecture 6

Ch. 7 Error Detection and Correction

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

Link Layer: Error detection and correction

Chapter 3. The Data Link Layer

T325 Summary T305 T325 B BLOCK 4 T325. Session 3. Dr. Saatchi, Seyed Mohsen. Prepared by:

Inst: Chris Davison

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER

2.1 CHANNEL ALLOCATION 2.2 MULTIPLE ACCESS PROTOCOLS Collision Free Protocols 2.3 FDDI 2.4 DATA LINK LAYER DESIGN ISSUES 2.5 FRAMING & STUFFING

Chapter 5 Data-Link Layer: Wired Networks

The Data Link Layer Chapter 3

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

INF Data Communication Data Link Layer

Chapter Six. Errors, Error Detection, and Error Control. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

TYPES OF ERRORS. Data can be corrupted during transmission. Some applications require that errors be detected and corrected.

Computer Networks. Shyam Gollakota

Chapter 10 Error Detection and Correction 10.1

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

ELEN Network Fundamentals Lecture 15

Outline. EEC-484/584 Computer Networks. Data Link Layer Design Issues. Framing. Lecture 6. Wenbing Zhao Review.

The flow of data must not be allowed to overwhelm the receiver

EE 122: Error detection and reliable transmission. Ion Stoica September 16, 2002

CSEP 561 Error detection & correction. David Wetherall

CSCI-1680 Link Layer Reliability Rodrigo Fonseca

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

10.1 REVIEW QUESTIONS

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.

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

Solutions for Chapter similar to 1 and 3

CSCI-1680 Link Layer Reliability John Jannotti

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

COMPUTER NETWORKS - Window protocols

COMPUTER NETWORKS - Window protocols

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

Chapter 6 Digital Data Communications Techniques

CSE 123: Computer Networks

Peer-to-Peer Protocols and Data Link Layer. Chapter 5 from Communication Networks Leon-Gracia and Widjaja

Data Link Layer: Overview, operations

CPE 548 Exam #1 (50 pts) February 17, 2016

High Level View. EE 122: Error detection and reliable transmission. Overview. Error Detection

Packet/Frame, Error Detection How to send data efficiently & reliably?

CS422 Computer Networks

ERROR AND FLOW CONTROL. Lecture: 10 Instructor Mazhar Hussain

Introduction to Data Communications & Networking

Where we are in the Course

Communication Systems, 5e Chapter 13: Channel Coding

Data Link Layer. Overview. Links. Shivkumar Kalyanaraman

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

Lecture 5. Homework 2 posted, due September 15. Reminder: Homework 1 due today. Questions? Thursday, September 8 CS 475 Networks - Lecture 5 1


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

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

The Data Link Layer Chapter 3

CRC. Implementation. Error control. Software schemes. Packet errors. Types of packet errors

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

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

CPE 448/548 Exam #1 (100 pts) February 14, Name Class: 448

(Sicherungsschicht) Chapter 5 (part 2) [Wa0001] HDLC - 1.

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

MYcsvtu Notes DATA REPRESENTATION. Data Types. Complements. Fixed Point Representations. Floating Point Representations. Other Binary Codes

Computer Networking : Principles, Protocols and Practice

Data Communication Networks Final

Communication Networks. Part I

Data Link Layer (cont.) ( h h h ) (Sicherungsschicht) HDLC - 1.

Data Link Control Protocols

Multiple Access Communications. EEE 538, WEEK 11 Dr. Nail Akar Bilkent University Electrical and Electronics Engineering Department

EITF25 Internet- - Techniques and Applica8ons Stefan Höst. L4 Data link (part 1)

Data Link Layer (part 2)

(Refer Slide Time: 2:20)

Analyzation of Automatic Repeat Request (ARQ) Protocols

Wireless Sensornetworks Concepts, Protocols and Applications. Chapter 5b. Link Layer Control

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

Transcription:

Data Link Control Layer, Error Detection, Error Correction, and Framing EEE 538, WEEK 2 Dr. Nail Akar Bilkent University Electrical and Electronics Engineering Department 1

Error Detection Techniques Used by the receiver to determine if a packet contains errors If a packet is found to contain errors the receiver requests the transmitter to re-send the packet Error Detection Techniques Parity Check Single bit Horizontal and vertical redundancy check Cyclic Redundancy Check (CRC) Assume initially that the receiving DLC module knows where frames begin and end 2

Effectiveness of an Error Detection Technique minimum distance of code (d) (min # bit errors undetected) The minimum distance of a code is the smallest number of errors that can map one codeword onto another. If fewer than d errors occur they will always detected. Even more than d errors will often be detected (but not always!) burst detecting ability (B) (max burst length always detected) probability of random bit pattern mistaken as error free (good estimate if # errors in a frame >> d or B) 3

Parity Check Codes K data bits L parity check bits Each parity check is a modulo 2 sum of some of the data bits Example C1 = x1 + x2 + x3 C2 = x2 + x3 Internet checksum 4

Single Parity Check Code The check bit is 1 if frame contains odd number of 1's; otherwise it is 0 1011011 -> 1011011 1 1100110 -> 1100110 0 Thus, encoded frame contains even number of 1's Receiver counts number of ones in frame An even number of 1 s is interpreted as no errors An odd number of 1 s means that an error must have occurred. A single error (or an odd number of errors) can be detected. An even number of errors cannot be detected. Nothing can be corrected Probability of undetected error (independent errors) 5

Horizontal and Vertical Parity The data is viewed as a rectangular array (i.e., a sequence of words) Minimum distance=4, any 4 errors in a rectangular configuration is undetected 6

Cyclic Redundancy Check M C K data bits L parity check bits T = M 2^L + C T: transmitted data, codeword M: message, information bits C: parity bits 7

Physical Layer Error Characteristics Most Physical Layers ( communications channels) are not well described by a simple BER parameter Most physical error processes tend to create a mix of random & bursts of errors A channel with a BER of 10-7 and a average burst size of1000 bits is very different from one with independent random errors Example: For an average frame length of 10^4 bits random channel: E[Frame error rate] ~ 10^3 burst channel: E[Frame error rate] ~ 10^-6 Best to characterize a channel by its Frame Error Rate This is a difficult problem for real systems 8

Automatic Repeat Request ARQ When the receiver detects errors in a packet, how does it let the transmitter know to re-send the corresponding packet? Systems which automatically request the retransmission of missing packets or packets with errors are called ARQ systems. Three common schemes Stop & Wait Go Back N Selective Repeat 9

Pure Stop and Wait Problem: Lost packets Sender will wait forever for an acknowledgement Packet may be lost due to framing errors Solution: Use time-out (TO) Sender retransmits the packet after a timeout 10

Sequence Numbers Problem: Unless packets are numbered the receiver cannot tell which packet it received Solution: Use packet numbers (sequence numbers) 11

Request Numbers are Required on ACKs As opposed to sending an ACK or a NAK, the receiver sends the number of the packet currently awaited Sequence numbers and request numbers can be sent modulo 2, avoiding the need to use large sequence numbers 12

Algorithm at Sender Initial condition SN = 0 1) Accept packet from higher layer when available; assign number SN to it 2) Transmit packet SN in frame with sequence # SN 3) Wait for an error free frame from B i. if received and it contains RN>SN in the request # field, set SN to RN and go to 1 ii. if not received within given time, go to 2 13

Algorithm at Receiver Initial condition RN = 0 1) Whenever an error-free frame is received from A with a sequence # equal to RN, release received packet to higher layer and increment RN At arbitrary times, but within bounded delay after receiving any error free frame from A, transmit a frame to A containing RN in the request # RN 14

15 Efficiency of Stop and Wait

16 Stop and Wait

17 Stop and Wait

18 Go-back N

19 Features of Go-back N

20 Example Go-back 7

21 Errors

22 Example

23 Selective Repeat ARQ