Error Detection Neil Tang 9/26/2008

Slides:



Advertisements
Similar presentations
Computer Interfacing and Protocols
Advertisements

10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Lecture 12 Layer 2 – Data Link Layer Protocols
Introduction to Information Technologies
CSE 461: Error Detection and Correction. Next Topic  Error detection and correction  Focus: How do we detect and correct messages that are garbled during.
Fundamentals of Computer Networks ECE 478/578 Lecture #4: Error Detection and Correction Instructor: Loukas Lazos Dept of Electrical and Computer Engineering.
EE 122: Error detection and reliable transmission Ion Stoica September 16, 2002.
Data Communications Chapter 7 Error Detection. Despite the best prevention techniques, errors may still happen. To detect an error, something extra has.
Chapter 2 : Direct Link Networks (Continued). So far... Modulation and Encoding Link layer protocols Error Detection -- Parity Check.
7/2/2015Errors1 Transmission errors are a way of life. In the digital world an error means that a bit value is flipped. An error can be isolated to a single.
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
Chapter 10 Error Detection and Correction
Data link layer: services
CSE331: Introduction to Networks and Security Lecture 3 Fall 2002.
1 Data Link Layer Lecture 20 Imran Ahmed University of Management & Technology.
CIT 307 Online Data Communications Error Detection Module 11 Kevin Siminski, Instructor.
Error Coding Transmission process may introduce errors into a message.  Single bit errors versus burst errors Detection:  Requires a convention that.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 14.
Data Link Layer: Error Detection and Correction
Lecture 6: Framing and Error Detection-Data Link Layer Functions
27-Oct-15Computer Networks1 Outline Chapter 2: Direct Link Networks Encoding Framing Error Detection Sliding Window Algorithm Point-to-Point Links.
EEC4113 Data Communication & Multimedia System Chapter 5: Error Control by Muhazam Mustapha, October 2011.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
Computer Science Division
Overview All data can be corrupted, for reliable communications we must be able to detect and correct errors implemented at the data link and transport.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
Error Detection.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Review.
Error Detection and Correction
Transmission Errors Error Detection and Correction.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Network Layer4-1 Chapter 5: The Data Link Layer Our goals: r understand principles behind data link layer services: m error detection, correction m sharing.
Part III: Data Link Layer Error Detection and Correction
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Error Correction/Detection.
CS4470 Computer Networking Protocols
Dr. Clincy Professor of CS
Error Detection and Correction
Simple Parity Check The simplest form of error detection is the parity check used with ASCII codes, originally on asynchronous modem links Each 7 bit ASCII.
Computer Architecture and Assembly Language
Introduction to Information Technologies
ERROR DETECTION AND CORRECTION
Data Link Layer.
Part III. Data Link Layer
Error Detection and Correction
Subject Name: COMPUTER NETWORKS-1
: An Introduction to Computer Networks
Dr. Clincy Professor of CS
Advanced Computer Networks
CIS 321 Data Communications & Networking
Part III Datalink Layer 10.
ECE 4450:427/527 - Computer Networks Spring 2017
Error Detection Bit Error Rate(BER): It is the ratio of number Ne of errors appearing over a certain time interval t to the number Nt of 1 and 0 pulses.
EEC4113 Data Communication & Multimedia System Chapter 5: Error Control by Muhazam Mustapha, August 2010.
COMP/ELEC 429/556 Introduction to Computer Networks
Basic concepts Networks must be able to transfer data from one device to another with complete accuracy. Data can be corrupted during transmission. For.
Chapter 7 Error Detection and Correction
Introduction to Information Technologies
Transmission Errors Error Detection and Correction
Protocols and the TCP/IP Suite
COMPUTER NETWORKS CS610 Lecture-5 Hammad Khalid Khan.
Error Detection and Correction
Computer Architecture and Assembly Language
Error Detection and Correction
Transmission Errors Error Detection and Correction
Error detection: Outline
EECS 122: EE122: Error Detection and Reliable Transmission
Data Link Layer. Position of the data-link layer.
Chapter 10 Error Detection and Correction
Presentation transcript:

Error Detection Neil Tang 9/26/2008 CS440 Computer Networks

Outline Basic Idea Objectives Two-Dimensional Parity Checksum Algorithm Cyclic Redundancy Check (CRC) CS440 Computer Networks

Basic Idea Add redundant information to a frame that can be used to determine if errors have been introduced. Sender: It applies the algorithm to the message to generate the redundant bits and then transmits the original message along with the extra bits. Receiver: It applies the same algorithm on the received message to come up with a result then compares it with the expected results. CS440 Computer Networks

Basic Idea Trivial Solution: always transmitting two complete copies. Real Solutions: k redundant bits for n-bit messages, k<<n, e.g., CRC, k = 32bit, n = 12,000bits. CS440 Computer Networks

Objectives Maximize the probability of detecting errors. Minimize the number of redundant bits. CS440 Computer Networks

Two-Dimensional Parity It can catch 1-, 2-, 3- and most 4-bits errors. Why? 14 redundant bits for 42-bit message. Good enough? CS440 Computer Networks

Checksum Algorithm Basic Ideas: The checksum is obtained by adding all words in the original message. Internet Checksum Algorithms: Add 16-bit subsequences together using the ones complement arithmetic and then take the ones complement of the result as the checksum. E.g., 1010 +) 1110 ---------------------- 1000 +) 1 ----------------------- 1001 →0110 CS440 Computer Networks

Checksum Algorithm Cost Effective: 16 bits for a message of any length Inefficiency for Error Detection: a pair of single-bit errors may cause trouble. Easy Implementation: Several lines of codes CS440 Computer Networks

CRC (n+1) bit message can be represented as a polynomial of degree n. E.g., 10011010 → M(x) = 1x7+ 1x4+1x3+1x1 The sender and the receiver agree on a divisor polynomial C(x) with a degree of k, e.g., C(x)=x3+x2+1. C(x) is usually specified by the standards, e.g., in Ethernet, k=32, CRC-32. CS440 Computer Networks

Polynomial Arithmetic B(x) can be divided by C(x) if same degree The remainder can be obtained by performing XOR on each pair of matching coefficients. E.g., (x3+1) can be divided by (x3+x2+1) and the remainder is x2. How? 1001 XOR 1101 = 0100 CS440 Computer Networks

Algorithm to Obtain CRC Multiply M(x) by xk , i.e., attach k 0s at the end of the message. Call this extended message T(x). Divide T(x) by C(x) and find the remainder (CRC). Attach CRC to M(x) and send the new message. Generator C(x) 1101 11111001 10011010000 Message T(x) 1001 1000 1011 1100 101 Remainder CS440 Computer Networks

CRC Algorithm Sender: It applies the algorithm to obtain CRC (remainder). Attach CRC to the end of the original message (e.g., 10011010101) and send it. Receiver: divides the received polynomial by C(x). If 0, no error; otherwise, corrupted. CS440 Computer Networks

Obtain C(x) Basic Idea: Select C(x) so that it is very unlikely to divide evenly into a message with errors. Frequently used C(X) in Table 2.5 Provable Results: - Single bit error detectable – the coefficients of the first and last term of C(x) are not 0. - Double bit error detectable – C(x) contain at least three 1 coefficients - Odd number of errors detectable - C(x) contains the factor (x+1) - Any “burst” (consecutive) error detectable – its length less than k CS440 Computer Networks

CRC Algorithm Cost Effective Efficient for Error Detection Easy Implementation CS440 Computer Networks

Error Detection Vs. Error Correction Error Correction is used only if Errors happen frequently: wireless environment The cost of retransmission is too high: satellite link, acoustic link. CS440 Computer Networks