10.07.2015 Views

Error Detection and Correction Single-bit error Multiple-bit error

Error Detection and Correction Single-bit error Multiple-bit error

Error Detection and Correction Single-bit error Multiple-bit error

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Error</strong> <strong>Detection</strong> <strong>and</strong> <strong>Correction</strong><strong>Error</strong>sดร. อนันต ผลเพิ่มAnan Phonphoem, Ph.D.anan@cpe.ku.ac.thhttp://www.cpe.ku.ac.th/~ananComputer Engineering DepartmentKasetsart University, Bangkok, Thail<strong>and</strong><strong>Single</strong>-Bit <strong>Multiple</strong>-Bit Burst1<strong>Single</strong>-<strong>bit</strong> <strong>error</strong><strong>Multiple</strong>-<strong>bit</strong> <strong>error</strong>34


Vertical Redundancy Check(VRC) - parityLongitudinal RedundancyCheck (LRC)n <strong>bit</strong>s•Can detect n <strong>bit</strong>s burst <strong>error</strong>•>n <strong>bit</strong>s can be detected high prob.910VRC <strong>and</strong> LRCCyclic Redundancy Check(CRC)1112


Binary Division in a CRC gen.Polynomial1314Polynomial <strong>and</strong> DivisorSt<strong>and</strong>ard Polynomials2 properties• Should not divisible by x• Should be divisible by (x+1)1516


CRC• Very effective detection method• Can detect all burst of length < degreeof polynomial• Detect other <strong>error</strong>s high prob.ChecksumNotes:•Segment•Add using one’s complement•Sum is complemented1718Data Unit <strong>and</strong> ChecksumWhen the <strong>error</strong> is detected:• How can we correct them?• Discarded <strong>and</strong> resent• Automatically correct without resent• In theory, any <strong>error</strong> binary code can becorrected• But adding complexity• Redundancy• Limited up to 3 <strong>error</strong>s because of overhead1920


<strong>Error</strong> <strong>Correction</strong>Number of redundancy <strong>bit</strong>• Total <strong>bit</strong> = m+r• r must be able to indicate all positionsincluding no <strong>error</strong> m+r+1• r <strong>bit</strong> can indicate 2 r states• So 2 r >= m+r+1• For ASCII (7<strong>bit</strong>s) m=7• 2 4 >= 7+4+12122Hamming CodeHamming Code• Example: 7-<strong>bit</strong> ASCII needed r = 42324


Hamming CodeExample of Hamming CodeEach <strong>bit</strong> iscoveredby at least2checkers2526<strong>Single</strong>-<strong>bit</strong> <strong>error</strong><strong>Error</strong> <strong>Detection</strong>2728

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!