1 / 12

Error Detection And Correction Codes

Error Detection And Correction Codes . Error Detection Code (Parity bit) Error Correction Code ( Hamming Code). Errors. While transferring information from one storage media to another, error may occur due to uneven magnetic surface or due to noise or failure.

elvis
Télécharger la présentation

Error Detection And Correction Codes

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. Error Detection And Correction Codes Error Detection Code (Parity bit) Error Correction Code ( Hamming Code)

  2. Errors • While transferring information from one storage media to another, error may occur due to uneven magnetic surface or due to noise or failure. • For Example: if transmitter sends 8-bit data 11100101. • But receiver receives 8-bit as 11000101 due to some noise or some other failure. Error 11100101 11000101 Transmitter Receiver

  3. How to detect this types of errors ? • For detecting such type of errors, we use the method of Parity in which an extra bit known as parity bit or parity check bit is added with the information/word. • Now, we can send information or word either using ODD parity or EVEN parity. • For ODD parity, the parity bit is so choosen that the total number of 1’s in each information or word is always odd, including the parity bit. • And for EVEN parity, the parity bit is so choosen that the total number of 1’s in each information or word is always even, including the parity bit.

  4. Odd/Even Parity bits

  5. Use of Parity Bit • In previous example receiver do not know about the error. • Because there is no mechanism by which the receiver detect the error. • So what is the solution? • By using parity bit receiver can easily detect the error (one bit error).

  6. Previous Example with Parity Bit • Suppose we are using ODD Parity System. • In order to generate parity bit we have to count the number of 1’s present in the information at transmitting end. Error 11100101 11000101 Transmitter Receiver No of 1’s 11100101 We have 5 Ones (1’s)

  7. Previous Example with Parity Bit • As we are using ODD Parity Bit System, and we have 5 ones (1’s) in the information so the Parity bit is? • Answer: 0 • The information word with Parity Bit. 0 + 11100101 011100101 Information/word Information/Word with Parity Bit Parity Bit

  8. Send this word to the receiver • Suppose at receiving end the word is received as 011000101. • Now the complete situation is like..... Error 011100101 011000101 Transmitter Receiver

  9. Information at receiving end • How to detect the error at Receiving End? • Again count the number of ones (1’s) at Receiving End. • As we are using ODD Parity Bit system so according to that we have odd number of 1’s. • That means the data at receiving end is not correct. 011000101 Information at Receiving End No of 1’s 011000101 We Have 4 Ones (1’s) Information at Receiving End

  10. Error Detection • Now we know that there is some error in the information/word at receiving end. • But what is the error and on which bit? • How we can detect? • By using Hamming codes.

  11. Error Correction Code • By the use of Parity Bit we can just detect that, the information/word at receiving end is not correct. • Because it is Error Detection Code. • So the error detection code simple detect either the information/word at receiving end is correct or not. But it can’t correct the information/word. • For this we need Error Correction Code. • Hamming Code is one of the wall-known error correction Code.

  12. Hamming Code • Three Steps Before Transmission. • Determine the number of Parity Bits to be added to the given message bits. • Determine the position of parity bits. • Determine the position checked by the Parity bits.

More Related