Error Detection. Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can.

Slides:



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

10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CSE 461: Error Detection and Correction. Next Topic  Error detection and correction  Focus: How do we detect and correct messages that are garbled during.
NETWORKING CONCEPTS. ERROR DETECTION Error occures when a bit is altered between transmission& reception ie. Binary 1 is transmitted but received is binary.
Chapter 10 Error Detection and Correction
PART III DATA LINK LAYER. Position of the Data-Link Layer.
ECOM 4314 Data Communications Fall September, 2010.
Transmission Errors1 Error Detection and Correction.
Error detection and correction
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.
Lecture 10: Error Control Coding I Chapter 8 – Coding and Error Control From: Wireless Communications and Networks by William Stallings, Prentice Hall,
Copyright © NDSL, Chang Gung University. Permission required for reproduction or display. Chapter 10 Error Detection and Correction 長庚大學資訊工程學系 陳仁暉 副教授.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
British Computer Society
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. 1 Communication Reliability Asst. Prof. Chaiporn Jaikaeo, Ph.D.
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.
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 10. Error Detection and Correction
Data Communications, Kwangwoon University10-1 Part 3 Data Link Layer Chapter 10 Error Detection and Correction Chapter 11 Data Link Control Chapter 12.
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)
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
Error Detection and Correction
Error Detection and Correction
Computer Communication & Networks Lecture 9 Datalink Layer: Error Detection Waleed Ejaz
Lecture Focus: Data Communications and Networking  Data Link Layer  Error Control Lecture 19 CSCS 311.
CHAPTER 3: DATA LINK CONTROL Flow control, Error detection – two dimensional parity checks, Internet checksum, CRC, Error control, Transmission efficiency.
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.
1 Block Coding Messages are made up of k bits. Transmitted packets have n bits, n > k: k-data bits and r-redundant bits. n = k + r.
10.1 Chapter 10 Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and.
1 Kyung Hee University Position of the data-link layer.
Chapter 10 Error Detection And Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Data Link Layer. Data Link Layer Topics to Cover Error Detection and Correction Data Link Control and Protocols Multiple Access Local Area Networks Wireless.
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.
Data Communications and Networking
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Data Link Layer PART III.
10.1 UNIT - IV Error Detection and Correction Data can be corrupted during transmission. Some applications require that errors be detected and corrected.
Hamming Distance & Hamming Code
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.
Part III: Data Link Layer Error Detection and Correction
Data Link Layer 1. 2 Single-bit error 3 Multiple-bit error 4.
Chi-Cheng Lin, Winona State University CS412 Introduction to Computer Networking & Telecommunication Error Correction/Detection.
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
ERROR DETECTION AND CORRECTION
Error Detection and Correction
Subject Name: COMPUTER NETWORKS-1
DATA COMMUNICATION AND NETWORKINGS
Part III Datalink Layer 10.
Chapter 10 Error Detection And Correction
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.
Chapter 10 Error Detection And Correction
Welcome to the presentation. Linear Block Codes Almost all block codes used today belong to a subset called linear block codes. The exclusive OR of two.
Chapter 9 Error Detection and Correction
Position of the data-link layer
Chapter 9 Error Detection and Correction
Error Detection and Correction
Error Detection and Correction
Error Detection and Correction
Types of Errors Data transmission suffers unpredictable changes because of interference The interference can change the shape of the signal Single-bit.
Chapter 10 Error Detection and Correction
Presentation transcript:

Error Detection

Data can be corrupted during transmission. Some applications require that errors be detected and corrected. An error-detecting code can detect only the types of errors for which it is designed; other types of errors may remain undetected. Types of Errors Redundancy Detection Versus Correction Forward Error Correction Versus Retransmission Coding Topics discussed in this section:

Single-bit error In a single-bit error, only 1 bit in the data unit has changed.

Burst error of length 8 A burst error means that 2 or more bits in the data unit have changed.

Error Detection Two main methods of Error Correction –Forward Error Correction (FEC) – adding redundancy bits –Retransmission – resending of data FEC is used when the potential error is small. Redundancy in FEC is achieved by means of Coding, means adding control bits to data. Block codes and Convolutional Codes. Only simple Block code will be discussed The ability to detect an error and the ability to correct an error is two different thing. Determined by the min Hamming Distance, d min

To detect or correct errors, we need to send extra (redundant) bits with data.

Using XOR logic of two single bits or two words

BLOCK CODING In block coding, we divide our message into blocks, each of k bits, called datawords. We add r redundant bits to each block to make the length n = k + r. The resulting n-bit blocks are called codewords. Error Detection Error Correction Hamming Distance Minimum Hamming Distance Topics discussed in this section:

Figure 10.5 Datawords and codewords in block coding

Process of error detection in block coding

A code for error detection; k =2, n=3 A code for error correction; k=2, n=5

The Hamming distance d between two words is the number of differences between corresponding bits. Find the Hamming distance between two pairs of words. 1. The Hamming distance d(000, 011) is 2 because 2. The Hamming distance d(10101, 11110) is 3 because

The minimum Hamming distance d min is the smallest Hamming distance between all possible pairs in a set of codewords. d min = 2 d min = 3

To guarantee the detection of up to s errors in all cases, the minimum Hamming distance in a block code must be d min = s + 1. s is the number of detectable error If d min = 2, then s = 1 If d min = 3, then s = 2 Detectable Error (s)

To guarantee correction of up to t errors in all cases, the minimum Hamming distance in a block code must be d min = 2t + 1. t is the number of correctable error Correctable Error (t) If d min = 2, then s = 1, but t = ½ ~ 0 means able to detect upto 1 error but cannot correct any If d min = 3, then s = 2, but t = 1 means able to detect upto 2 errors but can only correct 1

Another example of block code using Simple parity-check code C(5, 4) A simple parity-check code can detect an odd number of errors.

Encoder and decoder for simple parity-check code

An example of block code using Hamming code C(7, 4)

The structure of the encoder and decoder for a Hamming code

10-4 CYCLIC CODES Cyclic codes are special linear block codes with one extra property. In a cyclic code, if a codeword is cyclically shifted (rotated), the result is another codeword. Cyclic Redundancy Check Hardware Implementation Polynomials Cyclic Code Analysis Advantages of Cyclic Codes Other Cyclic Codes Topics discussed in this section:

Table 10.6 A CRC code with C(7, 4) Divisor determine the outcome of the codeword, which is pre-agreed between sender and receiver

CRC encoder and decoder

Division in CRC encoder

Figure Division in the CRC decoder for two cases

Figure The CRC encoder design using shift registers Divisor = 1011

Simulation and implementation CRC encoder using shift register

General design of encoder and decoder of a CRC code

Figure A polynomial to represent a binary word

Figure CRC division using polynomials Divisor = 1011 Augmented Dataword = CRC Codeword =