SlideShare a Scribd company logo
1 of 14
Download to read offline
Error Control
(An Overview)
Kameswari Chebrolu
Recap
● Frame-by-Frame next-hop delivery
● Focus on Error Control
– Error Detection and recovery
PHY PHY
Node-1 Node-2
Bits
Data Link Data Link
Frames
Packets Packets
Error Detection
● What cause errors?
– Distortion of signals due to frequency dependant
attenuation, noise (PHY layer)
– Random single-bit vs Bursty errors
● Why detect errors?
– Data fidelity, prevent wastage of resources
What next?
● After Detection:
– Drop Frame
● Higher layers (e.g TCP) will recover or few losses dont
hurt applications (e.g. audio)
– Recover Frame
● Error Correction: Frame carries enough information to
correct errors
● Retransmission: Receiver signals sender on error, sender
retransmits the frame
Error correction vs Retransmission
● Error correction requires more redundant bits per
frame than error detection
– Redundancy bits are sent all the time (every frame)
● Retransmission requires another copy to be
transmitted
– Copy sent only on error
Usage
● Error correction useful when
– Error rate if high (e.g. wireless)
– Cost (e.g. latency) of retransmission is too high
(e.g. satellite link)
Framework
● Add redundant information to a frame to detect or correct
errors
● At Sender: Add k bits of redundant data to a m bit message
– k derived from original message through some algorithm
● At Receiver: Reapply same algorithm as sender to detect
errors; take corrective action if necessary
● Examples:
– Detection: k << m; k = 32; m ~12,000 for Ethernet
– Correction: Code Rate: m/(m+k)
● WiFi code rates range from 1/2 to 5/6
Hamming Distance
● Code word: n=m+k bits
● Hamming distance between two codewords:
Number of bits they differ in
– XOR the two codewords
● Example:
– Codewords: 01110110, 00011101
– Distance is 5
Hamming Distance of a Code
● Number of possible code words is 2n
● Legal code words = 2m (determined by the
algorithm)
● Among the list of legal code words, find the
smallest hamming distance between two code
words
– This is the hamming distance of a code (=d)
Rules
● The error detection/correction capabilities are a
function of the code’s hamming distance
● Error Detection: Can detect up to d-1 errors
– To change one codeword to another require atleast d
bit changes
● Error Correction: Can correct up to (d-1)/2 errors
– The received codeword (in error) is still closer to the
original codeword than any other codeword
Example
● Repetition code
– 0  000; 1  111
– m=1, k=2; n=3
– Hamming distance is 3, code rate is 1/3
● Can detect up to 2 errors and correct up to 1 error
Design Considerations of a Code
● Reduce k to achieve high code rate
● For given values of n and k, maximize d
● Easy encoding and decoding
– Minimal memory and processing time
Focus
● Error Detection
● Reliable Transfer (retransmissions)
● Error Correction
– E.g. Reed-Solomon codes, Convolution codes,
Turbo codes
Summary
● Important to detect errors in frames
● Error Recovery: FEC or Retransmission
– Inherent tradeoffs
● Framework (Overview)
– Hamming distance and error detection/correction
capabilities
– Design considerations
● Going forward: Error detection (in detail)

More Related Content

Similar to Error control

Phase Modulation , Error, Hamming Distance , GSM -Data Communication
Phase Modulation , Error,  Hamming Distance , GSM -Data CommunicationPhase Modulation , Error,  Hamming Distance , GSM -Data Communication
Phase Modulation , Error, Hamming Distance , GSM -Data CommunicationMd Sadequl Islam
 
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 schemeskysunilyadav
 
Final presentation
Final presentationFinal presentation
Final presentationRohan Lad
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correctionAbdul Razaq
 
mod-3-cn-ppt (1).pdf bca bsc btech notes
mod-3-cn-ppt (1).pdf bca bsc btech notesmod-3-cn-ppt (1).pdf bca bsc btech notes
mod-3-cn-ppt (1).pdf bca bsc btech notesanandhakrishnankv
 
Data Communication & Computer Networks:Digital Signal Encoding
Data Communication & Computer Networks:Digital Signal EncodingData Communication & Computer Networks:Digital Signal Encoding
Data Communication & Computer Networks:Digital Signal EncodingDr Rajiv Srivastava
 
Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layermekind
 
New error-detection
New error-detectionNew error-detection
New error-detectionNitesh Singh
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)Nitesh Singh
 
3G overview final
3G overview final 3G overview final
3G overview final Ahmed Emara
 
VTU 5TH SEM CSE COMPUTER NETWORKS-1 (DATA COMMUNICATION) SOLVED PAPERS
VTU 5TH SEM CSE COMPUTER NETWORKS-1 (DATA COMMUNICATION)  SOLVED PAPERSVTU 5TH SEM CSE COMPUTER NETWORKS-1 (DATA COMMUNICATION)  SOLVED PAPERS
VTU 5TH SEM CSE COMPUTER NETWORKS-1 (DATA COMMUNICATION) SOLVED PAPERSvtunotesbysree
 
chp2 - data link layer.pptx
chp2 - data link layer.pptxchp2 - data link layer.pptx
chp2 - data link layer.pptxChakra Pani
 
Bluetooth Low Energy - A Case Study
Bluetooth Low Energy - A Case StudyBluetooth Low Energy - A Case Study
Bluetooth Low Energy - A Case StudyFReeze FRancis
 
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit ModelSingle-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit ModelUniversitas Pembangunan Panca Budi
 
3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.pptAnnymus
 

Similar to Error control (20)

Phase Modulation , Error, Hamming Distance , GSM -Data Communication
Phase Modulation , Error,  Hamming Distance , GSM -Data CommunicationPhase Modulation , Error,  Hamming Distance , GSM -Data Communication
Phase Modulation , Error, Hamming Distance , GSM -Data Communication
 
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
 
datalink.ppt
datalink.pptdatalink.ppt
datalink.ppt
 
CODING.ppt
CODING.pptCODING.ppt
CODING.ppt
 
Final presentation
Final presentationFinal presentation
Final presentation
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
mod-3-cn-ppt (1).pdf bca bsc btech notes
mod-3-cn-ppt (1).pdf bca bsc btech notesmod-3-cn-ppt (1).pdf bca bsc btech notes
mod-3-cn-ppt (1).pdf bca bsc btech notes
 
Data Communication & Computer Networks:Digital Signal Encoding
Data Communication & Computer Networks:Digital Signal EncodingData Communication & Computer Networks:Digital Signal Encoding
Data Communication & Computer Networks:Digital Signal Encoding
 
Unit 4 data link layer
Unit 4 data link layerUnit 4 data link layer
Unit 4 data link layer
 
Cs8591 Computer Networks
Cs8591 Computer NetworksCs8591 Computer Networks
Cs8591 Computer Networks
 
Turbo Codes
Turbo CodesTurbo Codes
Turbo Codes
 
New error-detection
New error-detectionNew error-detection
New error-detection
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)
 
3G overview final
3G overview final 3G overview final
3G overview final
 
Channel Coding (Error Control Coding)
Channel Coding (Error Control Coding)Channel Coding (Error Control Coding)
Channel Coding (Error Control Coding)
 
VTU 5TH SEM CSE COMPUTER NETWORKS-1 (DATA COMMUNICATION) SOLVED PAPERS
VTU 5TH SEM CSE COMPUTER NETWORKS-1 (DATA COMMUNICATION)  SOLVED PAPERSVTU 5TH SEM CSE COMPUTER NETWORKS-1 (DATA COMMUNICATION)  SOLVED PAPERS
VTU 5TH SEM CSE COMPUTER NETWORKS-1 (DATA COMMUNICATION) SOLVED PAPERS
 
chp2 - data link layer.pptx
chp2 - data link layer.pptxchp2 - data link layer.pptx
chp2 - data link layer.pptx
 
Bluetooth Low Energy - A Case Study
Bluetooth Low Energy - A Case StudyBluetooth Low Energy - A Case Study
Bluetooth Low Energy - A Case Study
 
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit ModelSingle-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
Single-Bit Parity Detection and Correction using Hamming Code 7-Bit Model
 
3F4ecc.ppt
3F4ecc.ppt3F4ecc.ppt
3F4ecc.ppt
 

Recently uploaded

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 

Recently uploaded (20)

Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 

Error control

  • 2. Recap ● Frame-by-Frame next-hop delivery ● Focus on Error Control – Error Detection and recovery PHY PHY Node-1 Node-2 Bits Data Link Data Link Frames Packets Packets
  • 3. Error Detection ● What cause errors? – Distortion of signals due to frequency dependant attenuation, noise (PHY layer) – Random single-bit vs Bursty errors ● Why detect errors? – Data fidelity, prevent wastage of resources
  • 4. What next? ● After Detection: – Drop Frame ● Higher layers (e.g TCP) will recover or few losses dont hurt applications (e.g. audio) – Recover Frame ● Error Correction: Frame carries enough information to correct errors ● Retransmission: Receiver signals sender on error, sender retransmits the frame
  • 5. Error correction vs Retransmission ● Error correction requires more redundant bits per frame than error detection – Redundancy bits are sent all the time (every frame) ● Retransmission requires another copy to be transmitted – Copy sent only on error
  • 6. Usage ● Error correction useful when – Error rate if high (e.g. wireless) – Cost (e.g. latency) of retransmission is too high (e.g. satellite link)
  • 7. Framework ● Add redundant information to a frame to detect or correct errors ● At Sender: Add k bits of redundant data to a m bit message – k derived from original message through some algorithm ● At Receiver: Reapply same algorithm as sender to detect errors; take corrective action if necessary ● Examples: – Detection: k << m; k = 32; m ~12,000 for Ethernet – Correction: Code Rate: m/(m+k) ● WiFi code rates range from 1/2 to 5/6
  • 8. Hamming Distance ● Code word: n=m+k bits ● Hamming distance between two codewords: Number of bits they differ in – XOR the two codewords ● Example: – Codewords: 01110110, 00011101 – Distance is 5
  • 9. Hamming Distance of a Code ● Number of possible code words is 2n ● Legal code words = 2m (determined by the algorithm) ● Among the list of legal code words, find the smallest hamming distance between two code words – This is the hamming distance of a code (=d)
  • 10. Rules ● The error detection/correction capabilities are a function of the code’s hamming distance ● Error Detection: Can detect up to d-1 errors – To change one codeword to another require atleast d bit changes ● Error Correction: Can correct up to (d-1)/2 errors – The received codeword (in error) is still closer to the original codeword than any other codeword
  • 11. Example ● Repetition code – 0  000; 1  111 – m=1, k=2; n=3 – Hamming distance is 3, code rate is 1/3 ● Can detect up to 2 errors and correct up to 1 error
  • 12. Design Considerations of a Code ● Reduce k to achieve high code rate ● For given values of n and k, maximize d ● Easy encoding and decoding – Minimal memory and processing time
  • 13. Focus ● Error Detection ● Reliable Transfer (retransmissions) ● Error Correction – E.g. Reed-Solomon codes, Convolution codes, Turbo codes
  • 14. Summary ● Important to detect errors in frames ● Error Recovery: FEC or Retransmission – Inherent tradeoffs ● Framework (Overview) – Hamming distance and error detection/correction capabilities – Design considerations ● Going forward: Error detection (in detail)