1 / 21

Why Error Detection & Correction

Why Error Detection & Correction. Because of attenuation, distortion, noise and interferences, errors during transmission are u navoidable, leading to corruption transmitted bits.

quiana
Download Presentation

Why Error Detection & Correction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Why Error Detection & Correction Because of attenuation, distortion, noise and interferences, errors during transmission are unavoidable, leading to corruption transmitted bits. The longer the frame size the higher the probability of single bit error and the lower is the probability receiving a frame without error. Types of error Single-bit error Multiple-bit error Burst error Redundancy – Additional bits are added to facilitate detection and correction of errors. Error Detection:- Popular techniques: Simple parity check Two-dimensional parity check (VRC-Vertical Redundancy Check& LRC-Longitudinal Redundancy) Cyclic redundancy check Checksum

  2. Error Correction Error Correction is more difficult than Error Detection. In Error Detection, the receiver needs to know only that the received codeword is invalid; In Error Correction, the receiver needs to find (or guess) the original codeword send. We need to know the exact number of bits that are corrupted and more importantly, their location in the message.

  3. Error Correction The number of errors and the size of the message are important factors. e.g. If we need to correct one single error in an 8-bit data unit, we need to consider eight possible error locations; If we need to correct two errors in a data unit of the same size, we need to consider 28 possibilities. You can imagine the receiver’s difficulty in finding 10 errors in a data unit of 1000 bits. We need more redundant bits for Error Correction than for Error Detection.

  4. Error Correction There are two main methods of error correction: Retransmission Forward Error Correction

  5. 1. Retransmission • Correction by retransmission is a technique in which the receiver detects the occurrence of an error and asks the sender to resend the message. • Resending is repeated until a message arrives that the receiver believes is error-free. (usually, not all errors can be detected)

  6. 2. Forward Error Correction • Forward Error Correction is the process in which receiver tries to guess the message by using redundant bits. This is possible, if the number of errors is small.

  7. Redundancy and Coding • Redundancy is achieved through various coding schemes. The sender adds redundant bits and the actual data bits. The receiver checks the relationship between the two sets of bits to detect or correct the errors. The ratio of redundant bits to the data bits and the robustness of the process are important factors in any coding scheme. • There are 2 broad categories of coding schemes: Block coding & Convolution coding • (But we only concentrate on block coding as convolution coding is more complex.) • Next slides shows the general idea of coding

  8. Structure of Encoder and Decoder K bits

  9. Data and redundancy bits

  10. Example Here we add 3 redundant bits to the 2-bit dataword to make 5-bit codewords. Assume the dataword is 01. The sender consult the table(or use an algorithms) to create the codeword 01011. The codeword is corrupted during transmission , and 01001 is received. First, the receiver finds that the received codeword is not in the table. This means an error has occurred (error detection). The receiver, assuming that there is only 1 bit correpted.

  11. Example Cont……….. Use the following strategy to guess the correct dataword: Comparing the received codeword with the first codeword (01001 versus 00000). The receiver decides that the first codeword is not the one that was sent because there are 2 different bits. By the same reasoning, the original codeword cannot be the third or forth one in the table. The original codeword must be the second one because this is the one that differs from the received codeword by 1 bit. The receiver replaces 01001 with 01011 and consults the table to fined the dataword 01.

  12. Hamming Distance • One of the central concepts in coding for error control is the idea of the Hamming distance. • The number of bits by which two codewords differ is called the Hamming Distance. • The Hamming distance can be easily be found if we apply the XOR operation ( + ) on the two words and count the number of 1s in the result. (Note that the Hamming distance is a value greater than zero)

  13. Hamming Distance • Example: • Let us find the Hamming distance between two pairs of words. • The Hamming distance d(000,011) is 2 because 000 + 011 is 011 (two 1s). • The Hamming distance d(10101,11110) is 3 because 10101 + 11110 is 01011 (three 1s)

  14. Minimum Hamming Distance Is the smallest Hamming distence between all possible pairs in a set of words. Example 1: • The dminin this case is 2. • Example 2: The dminin this case is 3.

  15. Positions of redundancy bits in Hamming code

  16. Redundancy bits calculation

  17. Example of redundancy bit calculation

  18. Error detection using Hamming code

  19. Burst error correction example

More Related