Error detection and correction

17
Error Detection and Correction

description

A simple presentation of error detection and correction in data communication.

Transcript of Error detection and correction

Page 1: Error detection and correction

Error Detection and Correction

Page 2: Error detection and correction

Presented By:

Maria AktherDept.: Computer ScienceDaffodil International University

Page 3: Error detection and correction

Data can be corrupted during transmission.some applications require that errors be detected and corrected.

Page 4: Error detection and correction

1.Single-Bit Error2.Burst Error

Page 5: Error detection and correction

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

Example:

The effect of a single-bit error on a data unit in shown fig.The impact of the change, imagine that each group of 8bit is an ASCII character with a 0 bit added to the left. In fig.00000010 was sent ,meaning start of text,but 00001010 was received, meaning line feed.

Page 6: Error detection and correction

A burst error means that 2 or more bits in the data unit have changed.Example:

The effect of a burst error on a data unit.In this case,0100010001000011 was sent,but 0101110101100011 was received.the length of the burst is measured from the first corrupted bit to the last corrupted bits

Page 7: Error detection and correction

The central concept in detecting or correcting errors is redundancy. To be able to detect or correct errors, we need to send some extra bits with our data. These redundant bits are added by the sender and removed by the receiver. Their presence allows the receiver to detect or correct corrupted bits.

Page 8: Error detection and correction

Detection

In error detection, we are looking only if any error has occurred. A single bit error is the same for us as a burst error.

Correction

In correction, we need to know the exact number of bits that are corrupted and their location in the message. The number of the errors and size of message are important.

Page 9: Error detection and correction

Forward error correction Retransmission

Page 10: Error detection and correction

Block coding Convolution coding

Page 11: Error detection and correction

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.

Page 12: Error detection and correction

Two conditions are met to detect an error by the receiver-1.The receiver has a list of valid codewords.2.The original codeword has changed to an invalid one.

Page 13: Error detection and correction

The sender encodes the dataword 01 as 011 and sends it to the receiver.

The receiver receives 011. The receiver receives 111.

Page 14: Error detection and correction

Assume the sender creates dataword 01 as 01011.The codeword is corrupted during transmission and 01001 is received.

Page 15: Error detection and correction

• The Hamming distance between two words is the number of differences between corresponding bits.

• Hamming distance between two words x and y can be shown as d(x, y)

Page 16: Error detection and correction

1. The Hamming distance d(000, 011) is 2

2. The Hamming distance d(10101, 11110) is 3

Page 17: Error detection and correction