SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Error detecting and correcting codes, hamming codes.
1 Error detecting and correcting codes, hamming codes.
Error Detection and Correction Codes
Main Approaches are:
Echoplex
Automatic detection & retransmission
Forward Error Correction
Echoplex
Used in Telnet--When a character is entered in a Telnet session, the character is sent to the computer
and the computer will echo the character--a crude way of check error
Automatic detection & retransmission
Use an error detection code to detect error
Error Detection Codes
(a) Parity Code(VRC--Vertical Redundancy Check)
-A Parity bit is used
-Odd or Even parity
-Detects all odd number of error(1 bit error, 3 bit error, …)
-Even number of errors can not be detected
(b) LRC(Longitudinal Redundancy Check)
-Sometimes called “Block Check Code” or “Checksum”
-A block of characters are parity checked
-Often used along with VRC, -It is 2-demensional code
(c) CRC(Cyclic Redundancy Check)
-Divide a block(block size is determined by LAN requirements--Ethernetà 1500Bytes, Token
Ringà 8000Bytes, ….) by a predetermined Divisor and calculate the Remainder and attach the
Remainder at the end of data bits -Receiver will also divide the data bits with the same Divisor and
calculatesRemainder and compares the received Remainder with the calculated one -If they matchà No
error detected, If no match à Error detected and the frame is deleted.
The above calculations can easily be done using hardware Shift Registers
--Binary division = a series of Shift followed by adds
Example shift register:
-A carefully designed(chosen) divisor is used
-A divisor is usually represented using a polynomial notation
There are several standard Divisors that are adopted International standards
-CRC-32 is used in LAN protocols---Ethernet, Token Ring, ….
Forward Error Correction:
Hamming code
It is a Single bit Error Correction and Double bit Error Detection Code.
Hamming designed to have several parity bits in the following position:
2**0, 2**1, 2**2, 2**3 positions will have parity bits
Other bit positions are for data bits
The parity bit at 2**0 position checks positions 1, 3, 5, 7, 9, 11
The parity bit at 2**1 position checks positions 2, 3, 6, 7, 10, 11
The parity bit at 2**0 position checks positions 4, 5, 6, 7
The parity bit at 2**0 position checks positions 8, 9, 10, 11
Let’s use Even Parity for this example:
Let’s say a single-bit error occurs in bit position 7:
The receiver checks parity bits to find the error:
Thus it is very easy to detect and correct code using Hamming Code.

Weitere ähnliche Inhalte

Was ist angesagt?

Error control, parity check, check sum, vrc
Error control, parity check, check sum, vrcError control, parity check, check sum, vrc
Error control, parity check, check sum, vrc
Huawei Technologies
 
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPTGROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
Krishbathija
 
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Philip Koopman
 
Parity bits
Parity bitsParity bits
Parity bits
mrhaken
 

Was ist angesagt? (20)

Error control, parity check, check sum, vrc
Error control, parity check, check sum, vrcError control, parity check, check sum, vrc
Error control, parity check, check sum, vrc
 
Error detection correction (CRC)
Error detection correction  (CRC)Error detection correction  (CRC)
Error detection correction (CRC)
 
Error detection & correction codes
Error detection & correction codesError detection & correction codes
Error detection & correction codes
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Error Correction of Burst error
Error Correction of Burst errorError Correction of Burst error
Error Correction of Burst error
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPTGROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
GROUP03_AMAK:ERROR DETECTION AND CORRECTION PPT
 
Calculating the hamming code
Calculating the hamming codeCalculating the hamming code
Calculating the hamming code
 
Error Checking and Correction (Parity Bit, Majority Voting, Check Digit)
Error Checking and Correction (Parity Bit, Majority Voting, Check Digit)Error Checking and Correction (Parity Bit, Majority Voting, Check Digit)
Error Checking and Correction (Parity Bit, Majority Voting, Check Digit)
 
Digital logic designing presentation
Digital logic designing presentationDigital logic designing presentation
Digital logic designing presentation
 
Cyclic redundancy check
Cyclic redundancy checkCyclic redundancy check
Cyclic redundancy check
 
Code Converters & Parity Checker
Code Converters & Parity CheckerCode Converters & Parity Checker
Code Converters & Parity Checker
 
Error control
Error controlError control
Error control
 
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
Data Integrity Techniques: Aviation Best Practices for CRC & Checksum Error D...
 
Parity check, redundancy, and errors
Parity check, redundancy, and errorsParity check, redundancy, and errors
Parity check, redundancy, and errors
 
Error control coding
Error control codingError control coding
Error control coding
 
Parity bits
Parity bitsParity bits
Parity bits
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correction
 

Andere mochten auch (7)

Error Detection and Correction
Error Detection and CorrectionError Detection and Correction
Error Detection and Correction
 
Mobile communication fundamental
Mobile communication fundamentalMobile communication fundamental
Mobile communication fundamental
 
Mobile communication
Mobile communicationMobile communication
Mobile communication
 
Mobile communication
Mobile communication Mobile communication
Mobile communication
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Mobile Communication
Mobile CommunicationMobile Communication
Mobile Communication
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 

Ähnlich wie Error detecting and correcting codes

Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)
Ammar Shafiq
 
Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layer
mekind
 
Osi model
Osi model Osi model
Osi model
maha tce
 

Ähnlich wie Error detecting and correcting codes (20)

DCN Error Detection & Correction
DCN Error Detection & CorrectionDCN Error Detection & Correction
DCN Error Detection & Correction
 
Coding Scheme/ Information theory/ Error coding scheme
Coding Scheme/ Information theory/ Error coding schemeCoding Scheme/ Information theory/ Error coding scheme
Coding Scheme/ Information theory/ Error coding scheme
 
UNIT-2 PPT Data link layer.pptx
UNIT-2 PPT Data link layer.pptxUNIT-2 PPT Data link layer.pptx
UNIT-2 PPT Data link layer.pptx
 
Data link layer
Data link layerData link layer
Data link layer
 
Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)
 
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentation
 
Design and implementation of single bit error correction linear block code sy...
Design and implementation of single bit error correction linear block code sy...Design and implementation of single bit error correction linear block code sy...
Design and implementation of single bit error correction linear block code sy...
 
Jaimin chp-3 - data-link layer- 2011 batch
Jaimin   chp-3 - data-link layer- 2011 batchJaimin   chp-3 - data-link layer- 2011 batch
Jaimin chp-3 - data-link layer- 2011 batch
 
chp2 - data link layer.pptx
chp2 - data link layer.pptxchp2 - data link layer.pptx
chp2 - data link layer.pptx
 
CODING.ppt
CODING.pptCODING.ppt
CODING.ppt
 
Gsm Soft Viterbi Code
Gsm Soft Viterbi CodeGsm Soft Viterbi Code
Gsm Soft Viterbi Code
 
Chapter 4 data link layer
Chapter 4 data link layerChapter 4 data link layer
Chapter 4 data link layer
 
Embedded systems and robotics by scmandota
Embedded systems and robotics by scmandotaEmbedded systems and robotics by scmandota
Embedded systems and robotics by scmandota
 
Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layer
 
Osi model
Osi model Osi model
Osi model
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Error detection and correction unit-05
Error detection and correction unit-05Error detection and correction unit-05
Error detection and correction unit-05
 
Hard Decision Viterbi Decoder: Implementation on FPGA and Comparison of Resou...
Hard Decision Viterbi Decoder: Implementation on FPGA and Comparison of Resou...Hard Decision Viterbi Decoder: Implementation on FPGA and Comparison of Resou...
Hard Decision Viterbi Decoder: Implementation on FPGA and Comparison of Resou...
 
Pentium processor
Pentium processorPentium processor
Pentium processor
 
Information and data security pseudorandom number generation and stream cipher
Information and data security pseudorandom number generation and stream cipherInformation and data security pseudorandom number generation and stream cipher
Information and data security pseudorandom number generation and stream cipher
 

Kürzlich hochgeladen

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Kürzlich hochgeladen (20)

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 

Error detecting and correcting codes

  • 1. Error detecting and correcting codes, hamming codes. 1 Error detecting and correcting codes, hamming codes. Error Detection and Correction Codes Main Approaches are: Echoplex Automatic detection & retransmission Forward Error Correction Echoplex Used in Telnet--When a character is entered in a Telnet session, the character is sent to the computer and the computer will echo the character--a crude way of check error Automatic detection & retransmission Use an error detection code to detect error Error Detection Codes (a) Parity Code(VRC--Vertical Redundancy Check) -A Parity bit is used -Odd or Even parity -Detects all odd number of error(1 bit error, 3 bit error, …) -Even number of errors can not be detected (b) LRC(Longitudinal Redundancy Check)
  • 2. -Sometimes called “Block Check Code” or “Checksum” -A block of characters are parity checked -Often used along with VRC, -It is 2-demensional code (c) CRC(Cyclic Redundancy Check) -Divide a block(block size is determined by LAN requirements--Ethernetà 1500Bytes, Token Ringà 8000Bytes, ….) by a predetermined Divisor and calculate the Remainder and attach the Remainder at the end of data bits -Receiver will also divide the data bits with the same Divisor and calculatesRemainder and compares the received Remainder with the calculated one -If they matchà No error detected, If no match à Error detected and the frame is deleted.
  • 3. The above calculations can easily be done using hardware Shift Registers --Binary division = a series of Shift followed by adds Example shift register: -A carefully designed(chosen) divisor is used -A divisor is usually represented using a polynomial notation
  • 4. There are several standard Divisors that are adopted International standards -CRC-32 is used in LAN protocols---Ethernet, Token Ring, …. Forward Error Correction: Hamming code It is a Single bit Error Correction and Double bit Error Detection Code. Hamming designed to have several parity bits in the following position: 2**0, 2**1, 2**2, 2**3 positions will have parity bits Other bit positions are for data bits The parity bit at 2**0 position checks positions 1, 3, 5, 7, 9, 11 The parity bit at 2**1 position checks positions 2, 3, 6, 7, 10, 11 The parity bit at 2**0 position checks positions 4, 5, 6, 7 The parity bit at 2**0 position checks positions 8, 9, 10, 11 Let’s use Even Parity for this example:
  • 5. Let’s say a single-bit error occurs in bit position 7: The receiver checks parity bits to find the error: Thus it is very easy to detect and correct code using Hamming Code.