Transmission Errors1 Error Detection and Correction.

Slides:



Advertisements
Similar presentations
Networks: Transmission Errors1 Transmission Errors Error Detection and Correction.
Advertisements

Applied Algorithmics - week7
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data and Computer Communications
Reliability & Channel Coding
Error Detection and Correction
Transmission Errors Error Detection and Correction
Chapter 10 Error Detection and Correction
ELEN 602 Lecture 4 Review of last lecture –Communication basics More on transmission media Errors in Transmission.
Error Detection and Correction
Fundamentals of Computer Networks ECE 478/578 Lecture #4: Error Detection and Correction Instructor: Loukas Lazos Dept of Electrical and Computer Engineering.
EEC-484/584 Computer Networks Lecture 6 Wenbing Zhao
Error Detection and Correction
PART III DATA LINK LAYER. Position of the Data-Link Layer.
Error detection and correction
EEC-484/584 Computer Networks Lecture 7 Wenbing Zhao (Part of the slides are based on materials supplied by Dr. Louise Moser at UCSB and.
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.
Error Detection and Correction
Error Detection and Correction Rizwan Rehman Centre for Computer Studies Dibrugarh University.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
Transmission Errors Error Detection and Correction
Data link layer: services
Channel Coding and Error Control
PART III DATA LINK LAYER. Position of the Data-Link Layer.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
Cyclic Codes for Error Detection W. W. Peterson and D. T. Brown by Maheshwar R Geereddy.
Error Coding Transmission process may introduce errors into a message.  Single bit errors versus burst errors Detection:  Requires a convention that.
CSC 535 Communication Networks I Section 3.8 Error Detection and Correction Dr. Cheer-Sun Yang.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer: Error Detection and Correction
Chapter 3 Digital Transmission Fundamentals Line Coding Error Detection and Correction.
Data and Computer Communications by William Stallings Eighth Edition Digital Data Communications Techniques Digital Data Communications Techniques Click.
Cyclic Redundancy Check CRC Chapter CYCLIC CODES Cyclic codes are special linear block codes with one extra property. In a cyclic code, if a codeword.
ECE453 – Introduction to Computer Networks Lecture 4 – Data Link Layer (I)
COSC 3213: Computer Networks I Instructor: Dr. Amir Asif Department of Computer Science York University Section M Topics: 1. Error Detection Techniques:
PREPARED BY: ENGR. JO-ANN C. VIÑAS
Computer Networks Lecture 2: Data Link Based on slides from D. Choffnes Northeastern U. and P. Gill from StonyBrook University Revised Autumn 2015 by S.
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
CSCI 465 D ata Communications and Networks Lecture 9 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Error Detection.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Review.
10.1 Chapter 10 Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and.
Error Detection. Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can.
Error Detection and Correction
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 PART III: DATA LINK LAYER ERROR DETECTION AND CORRECTION 7.1 Chapter 10.
Digital Transmission Fundamentals
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.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Error Correction/Detection.
Coding and Error Control
Lecture 4 Error Detecting and Correcting Techniques Dr. Ghalib A. Shah
Applied Algorithmics - week8
Subject Name: COMPUTER NETWORKS-1
DATA COMMUNICATION AND NETWORKINGS
The Three Main Sources of Transmission Errors
Advanced Computer Networks
Chapter 10 Error Detection And Correction
Chapter 3 Digital Transmission Fundamentals
EEC-484/584 Computer Networks
Lecture 3 Digital Transmission Fundamentals
Transmission Errors Error Detection and Correction
Coding and Error Control
Protocols and the TCP/IP Suite
EEC-484/584 Computer Networks
Transmission Errors Error Detection and Correction
Chapter 10 Error Detection and Correction
Presentation transcript:

Transmission Errors1 Error Detection and Correction

Transmission Errors2 Transmission errors are caused by: – thermal noise {Shannon} – impulse noise (e..g, arcing relays) – signal distortion during transmission (attenuation) – crosstalk – voice amplitude signal compression (companding) – quantization noise (PCM) – jitter (variations in signal timings) – receiver and transmitter out of synch

Transmission Errors3 Error Detection and Correction error detection :: adding enough “extra” bits to deduce that there is an error but not enough bits to correct the error. If only error detection is employed in a network transmission  retransmission is necessary to recover the frame (data link layer) or the packet (network layer). –At the data link layer, this is referred to as ARQ (Automatic Repeat reQuest).

Transmission Errors4 Error Detection and Correction error correction :: requires enough additional bits (redundant bits) to deduce what the correct bits must have been. Examples Hamming Codes FEC = Forward Error Correction found in MPEG-4.

Transmission Errors5 Hamming Codes codeword :: a legal dataword consisting of m data bits and r redundant bits. Error detection involves determining if the received message matches one of the legal codewords Hamming distance :: the number of bit positions in which two bit patterns differ. Starting with a complete list of legal codewords, we need to find the two codewords whose Hamming distance is the smallest. This determines the Hamming distance of the code.

Transmission Errors6 x = codewordso = non-codewords x x x x x x x o o o o o o o o o o o o x x x x x x x o o o o o o o o o o o o A code with poor distance properties A code with good distance properties (a) (b) Figure 3.51

Transmission Errors7 Hamming Codes To detect d single bit errors, you need a d+1 code distance. To correct d single bit errors, you need a 2d+1 code distance.  In general, the price for redundant bits is too expensive to do error correction for network messages.  error detection and ARQ.

Transmission Errors8 Error Detection Remember – errors on networks are bursty  The percentage of damage due to errors is lower.  it is harder to detect and correct network errors. Linear codes –Single parity check code :: take k information bits and appends a single check bit to form a codeword. –Two-dimensional parity checks IP Checksum Polynomial Codes Example CRC (Cyclic Redundancy Checking)

Transmission Errors9 Channel Encoder User information Pattern Checking All inputs to channel satisfy pattern/condition Channel output Deliver user information or set error alarm Figure 3.49 General Error-Detection System

Transmission Errors10 Calculate check bits Channel Recalculate check bits Compare Information bits Received information bits Check bits Information accepted if check bits match Received check bits Figure 3.50 Error-Detection System using Check Bits

Transmission Errors Bottom row consists of check bit for each column Last column consists of check bits for each row Figure 3.52 Two-dimensional parity check code

Transmission Errors Two errors One error Three errors Four errors Arrows indicate failed check bits Figure 3.53

Transmission Errors13 Figure 3.54

Transmission Errors14 Polynomial Codes [LG&W pp ] Used extensively Implemented using shift-register circuits for speed advantages. Also called CRC (cyclic redundancy checking) because these codes generate check bits. Ploynomial codes :: bit strings are treated as representations of polynomials with ONLY binary coefficients (0’s and 1’s).

Transmission Errors15 Polynomial Codes The k bits of a message are regarded as the coefficient list for an information polynomial of degree k-1. I :: i(x) = i x k-1 + i x k-2 + … + i x + i k-1 k Example i(x) = x 6 + x 4 + x 3

Transmission Errors16 Notation Encoding process takes i(x) produces a codeword polynomial b(x) that contains information bits and additional check bits that satisfy a pattern. Let the codeword have n bits with k information bits and n-k check bits. We need a generator polynomial of degree n-k of the form G = g(x) = x n-k + g x n-k-1 + … + g x + 1 n-k-1 1 Note – first and last coefficient are 1

Transmission Errors17 Addition: Multiplication: Division: x 3 + x + 1 ) x 6 + x 5 x 3 + x 2 + x x 6 + x 4 + x 3 x 5 + x 4 + x 3 x 5 + x 3 + x 2 x 4 + x 2 x 4 + x 2 + x x = q(x) quotient = r(x) remainder divisor dividend 35 ) Figure 3.55

Transmission Errors18 Steps: 1) Multiply i(x) by x n-k (puts zeros in (n-k) low order positions) 2) Divide x n-k i(x) by g(x) 3) Add remainder r(x) to x n-k i(x) (puts check bits in the n-k low order positions): quotient remainder transmitted codeword b(x) = x n-k i(x) + r(x) x n-k i(x) = g(x) q(x) + r(x) Figure 3.56 CRC Algorithm

Transmission Errors19 Generator polynomial: g(x)= x 3 + x + 1 Information: (1,1,0,0) i(x) = x 3 + x 2 Encoding: x 3 i(x) = x 6 + x ) x 3 + x + 1 ) x 6 + x 5 x 3 + x 2 + x x 6 + x 4 + x 3 x 5 + x 4 + x 3 x 5 + x 3 + x 2 x 4 + x 2 x 4 + x 2 + x x Transmitted codeword: b(x) = x 6 + x 5 + x b = (1,1,0,0,0,1,0) Figure 3.57

Transmission Errors20 1. Single errors:e(x) = x i 0  i  n-1 If g(x) has more than one term, it cannot divide e(x) 2. Double errors: e(x) = x i + x j 0  i < j  n-1 = x i (1 + x j-i ) If g(x) is primitive, it will not divide (1 + x j-i ) for j-i  2 n- k  1 3. Odd number of errors:e(1) =1 If number of errors is odd. If g(x) has (x+1) as a factor, then g(1) = 0 and all codewords have an even number of 1s. Figure 3.60

Transmission Errors21 4. Error bursts of length b: e(x) = x i d(x) where deg(d(x)) = L-1 g(x) has degree n-k; g(x) cannot divide d(x) if deg(g(x))> deg(d(x)) L = (n-k) or less: all will be detected L = (n-k+1): deg(d(x)) = deg(g(x)) i.e. d(x) = g(x) is the only undetectable error pattern, fraction of bursts which are undetectable = 1/2 L-2 L > (n-k+1): fraction of bursts which are undetectable = 1/2 n-k L ith position error pattern d(x) Figure 3.61