SlideShare a Scribd company logo
1 of 18
Gandhinagar Institute of Technology
MCWC ALA
Topic: Error Correction and Error Detection
Prepared By:
Tarj Mehta (170120107074)
Guided By: Prof. Parita Shah
Introduction
• For reliable communication, errors must be detected and corrected.
• The data may get corrupted during transmission.
• The data link layer uses some error control mechanism to ensure that
frames (stream of data bits) are transmitted with accuracy.
• In OSI model, error detection and correction are implemented either
at data link layer or transport layer.
TypesofError
Single bit
Multiple bit
Burst
Error Detection
• It uses concept of redundancy, means adding extra bits for detecting
errors at receiving-end.
• There are 3 methods:
1. Parity Check
2. Cyclic redundancy check
3. Checksum
Parity Check
• An extra bit is added at the end of data and number of 1’s remain
even.
• If block has even number of 1’s, 0 is added at the end.
• If block has odd number of 1’s, 1 is added at the end.
• On the receiver side parity bit is computed and check with received
data.
• Sender:
Data: 1 1 0 1 0 0
As it has odd number of 1’s, 1 will be added
With parity: 1 1 0 1 0 0 1
• This will be transmitted via transmitting media.
• Receiver:
Parity bit will be computed.
If parity bit are correct (1 1 0 1 0 0 1) then only data will be accepted
otherwise it will be rejected.
• Disadvantage: Error in more than one bit cannot be detected.
Cyclic Redundancy check
• In this method parity bits are calculated for each row and column and
are sent along with data to the receiver.
• At receiving end these are compared with the parity bits calculated
on the received data.
• Suppose, the given data: 1101101 and divisor: 10101
• Append 4 zeros at the end of data (divisor – 1)
• Division is done by X – OR.
_1110111______
10101 | 11011010000
| 10101
011100
10101
010011
10101
001100
00000
011000
10101
011010 The remainder is not 0, so there is some
10101 error. Now, Append the remainder to data
011110
10101
01011
1110111______
10101| 11011011011
| 10101
011100
10101
010011
10101
001101
00000
011010
10101
011111 As the remainder is 0, the received data is error free
10101
010101
10101
00000
Checksum
• The given data is divided into data segments of k size.
• Each segment is added using 1’s complement method and at the end
they are complemented and the check sum is sent along with data
segments.
• At the receiving end all the segments are added with checksum.
• If the answer is 0, the data is accepted.
• If there is any tampering with the bits, the answer will not be 0 and
error can be detected.
Example
• Question: 10110011 10101011 01011010 11010101
10110011
10101011
1| 01011110
1
01011111
01011010
10111001
11010101
1| 10001111
1
10001111 Now 1’s complement is: 0111000 (checksum)
• Performing the addition again with check sum block…
10110011
10101011
1| 01011110
1
01011111
01011010
10111001
11010101
1| 10001110
1
10001111
01110000
11111111
Complementing this we get 00000000, hence data will be accepted.
Error correction
• It has 1 technique:
1. Hamming code
Hamming Code
• It is a set of error correction codes that can be used to detect and
correct the errors encountered during transmission.
• It has various steps to detect and correct the error.
• Example: A 7bit hamming code is received as 1011011. Assume even
parity and state whether the received code is correct or wrong, if
wrong locate the bit in error.
• Solution: Received Hamming code is
• Step1: Detecting error
Analyzing bits P1 D3 D5 D7 (skip one take one)
1 0 1 1 = odd parity = error exists
Now, keeping P1=1
Step2: Analyzing bits P2 D3 D6 D7
1 0 0 1 = even 1’s = no error
D7 D6 D5 P4 D3 P2 P1
1 0 1 1 0 1 1
• Step3: Analyzing bits P4 D5 D6 D7
1 1 0 1 = odd 1’s = error exists
Keeping P4=1
Here, P4 and P1 are not equal to zero.
Correcting Error: E =
Decimal value for 101 is 5, which shows that 5th bit is error bit.
So, we write correct word by simply inverting 5th bit.
Final answer: 1001011
P4 P2 P1
1 0 1
References
• https://www.youtube.com/watch?v=nUwGf5ZgqsA
• https://www.youtube.com/watch?v=nix346H-RN8
Thank YOU.

More Related Content

What's hot

Cyclic redundancy check
Cyclic redundancy checkCyclic redundancy check
Cyclic redundancy checkSaleh Alrkiyan
 
Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Imesha Perera
 
Computer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error CorrectionComputer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error CorrectionSaikrishna Tanguturu
 
Cyclic Redundancy Check
Cyclic Redundancy CheckCyclic Redundancy Check
Cyclic Redundancy CheckRajan Shah
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networksguesta81d4b
 
ALOHA Protocol (in detail)
ALOHA Protocol (in detail)ALOHA Protocol (in detail)
ALOHA Protocol (in detail)Hinal Lunagariya
 
Error Detection & Error Correction Codes
Error Detection & Error Correction CodesError Detection & Error Correction Codes
Error Detection & Error Correction CodesShahDhruv21
 
Error detection in Data Communication System
Error detection in Data Communication SystemError detection in Data Communication System
Error detection in Data Communication SystemIshan Sharma
 
QOS (Quality of Services) - Computer Networks
 QOS (Quality of Services) - Computer Networks QOS (Quality of Services) - Computer Networks
QOS (Quality of Services) - Computer NetworksIIIT Manipur
 
Framming data link layer
Framming data link layerFramming data link layer
Framming data link layerPREMAL GAJJAR
 

What's hot (20)

Cyclic redundancy check
Cyclic redundancy checkCyclic redundancy check
Cyclic redundancy check
 
Transport layer protocol
Transport layer protocolTransport layer protocol
Transport layer protocol
 
Data link layer
Data link layerData link layer
Data link layer
 
Stop and-wait protocol
Stop and-wait protocolStop and-wait protocol
Stop and-wait protocol
 
4. block coding
4. block coding 4. block coding
4. block coding
 
Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)
 
Computer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error CorrectionComputer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error Correction
 
Cyclic Redundancy Check
Cyclic Redundancy CheckCyclic Redundancy Check
Cyclic Redundancy Check
 
Routing Protocols
Routing ProtocolsRouting Protocols
Routing Protocols
 
Data link layer
Data link layer Data link layer
Data link layer
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
ALOHA Protocol (in detail)
ALOHA Protocol (in detail)ALOHA Protocol (in detail)
ALOHA Protocol (in detail)
 
Data link layer
Data link layerData link layer
Data link layer
 
Error Detection & Error Correction Codes
Error Detection & Error Correction CodesError Detection & Error Correction Codes
Error Detection & Error Correction Codes
 
Http
HttpHttp
Http
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Error detection in Data Communication System
Error detection in Data Communication SystemError detection in Data Communication System
Error detection in Data Communication System
 
QOS (Quality of Services) - Computer Networks
 QOS (Quality of Services) - Computer Networks QOS (Quality of Services) - Computer Networks
QOS (Quality of Services) - Computer Networks
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Framming data link layer
Framming data link layerFramming data link layer
Framming data link layer
 

Similar to Error detection and Correction

Lecture 4 errors detection
Lecture 4 errors detection Lecture 4 errors detection
Lecture 4 errors detection Josh Street
 
Errror Detection and Correction
Errror Detection and CorrectionErrror Detection and Correction
Errror Detection and CorrectionMahesh Kumar Attri
 
III_UNIT_ErrorCorrecting.pptx
III_UNIT_ErrorCorrecting.pptxIII_UNIT_ErrorCorrecting.pptx
III_UNIT_ErrorCorrecting.pptxShantanuDharekar
 
ERROR_DETECTION.pptx
ERROR_DETECTION.pptxERROR_DETECTION.pptx
ERROR_DETECTION.pptxBeniamTekeste
 
ERROR DETECTION data communication and computer network.pptx
ERROR DETECTION data communication and computer network.pptxERROR DETECTION data communication and computer network.pptx
ERROR DETECTION data communication and computer network.pptxgadisaAdamu
 
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)Project Student
 
Error detection.
Error detection.Error detection.
Error detection.Wasim Akbar
 
Information Processes and Technology HSC Communications Unit
Information Processes and Technology HSC Communications UnitInformation Processes and Technology HSC Communications Unit
Information Processes and Technology HSC Communications Unitpezhappy99
 
Computer Organisation and Architecture :Module M-1.pdf
Computer Organisation and Architecture :Module M-1.pdfComputer Organisation and Architecture :Module M-1.pdf
Computer Organisation and Architecture :Module M-1.pdfSushantRaj25
 
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentationAhmedMuhumed2
 
Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Ammar Shafiq
 

Similar to Error detection and Correction (20)

Lecture 4 errors detection
Lecture 4 errors detection Lecture 4 errors detection
Lecture 4 errors detection
 
Errror Detection and Correction
Errror Detection and CorrectionErrror Detection and Correction
Errror Detection and Correction
 
Ntdd
NtddNtdd
Ntdd
 
Ntdd
NtddNtdd
Ntdd
 
Error.pdf
Error.pdfError.pdf
Error.pdf
 
III_UNIT_ErrorCorrecting.pptx
III_UNIT_ErrorCorrecting.pptxIII_UNIT_ErrorCorrecting.pptx
III_UNIT_ErrorCorrecting.pptx
 
ERROR_DETECTION.pptx
ERROR_DETECTION.pptxERROR_DETECTION.pptx
ERROR_DETECTION.pptx
 
ERROR DETECTION data communication and computer network.pptx
ERROR DETECTION data communication and computer network.pptxERROR DETECTION data communication and computer network.pptx
ERROR DETECTION data communication and computer network.pptx
 
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)
 
Error detection.
Error detection.Error detection.
Error detection.
 
Information Processes and Technology HSC Communications Unit
Information Processes and Technology HSC Communications UnitInformation Processes and Technology HSC Communications Unit
Information Processes and Technology HSC Communications Unit
 
Computer Organisation and Architecture :Module M-1.pdf
Computer Organisation and Architecture :Module M-1.pdfComputer Organisation and Architecture :Module M-1.pdf
Computer Organisation and Architecture :Module M-1.pdf
 
Lecture set 3
Lecture set 3Lecture set 3
Lecture set 3
 
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentation
 
Sak
SakSak
Sak
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 
Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)Skr+3200+chapter+3+(kweh)
Skr+3200+chapter+3+(kweh)
 
22BA013 IM.pptx
22BA013 IM.pptx22BA013 IM.pptx
22BA013 IM.pptx
 
Lecture 20
Lecture 20Lecture 20
Lecture 20
 
Ch 10
Ch 10Ch 10
Ch 10
 

Recently uploaded

(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 

Recently uploaded (20)

(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 

Error detection and Correction

  • 1. Gandhinagar Institute of Technology MCWC ALA Topic: Error Correction and Error Detection Prepared By: Tarj Mehta (170120107074) Guided By: Prof. Parita Shah
  • 2. Introduction • For reliable communication, errors must be detected and corrected. • The data may get corrupted during transmission. • The data link layer uses some error control mechanism to ensure that frames (stream of data bits) are transmitted with accuracy. • In OSI model, error detection and correction are implemented either at data link layer or transport layer.
  • 4. Error Detection • It uses concept of redundancy, means adding extra bits for detecting errors at receiving-end. • There are 3 methods: 1. Parity Check 2. Cyclic redundancy check 3. Checksum
  • 5. Parity Check • An extra bit is added at the end of data and number of 1’s remain even. • If block has even number of 1’s, 0 is added at the end. • If block has odd number of 1’s, 1 is added at the end. • On the receiver side parity bit is computed and check with received data.
  • 6. • Sender: Data: 1 1 0 1 0 0 As it has odd number of 1’s, 1 will be added With parity: 1 1 0 1 0 0 1 • This will be transmitted via transmitting media. • Receiver: Parity bit will be computed. If parity bit are correct (1 1 0 1 0 0 1) then only data will be accepted otherwise it will be rejected. • Disadvantage: Error in more than one bit cannot be detected.
  • 7. Cyclic Redundancy check • In this method parity bits are calculated for each row and column and are sent along with data to the receiver. • At receiving end these are compared with the parity bits calculated on the received data. • Suppose, the given data: 1101101 and divisor: 10101 • Append 4 zeros at the end of data (divisor – 1) • Division is done by X – OR.
  • 8. _1110111______ 10101 | 11011010000 | 10101 011100 10101 010011 10101 001100 00000 011000 10101 011010 The remainder is not 0, so there is some 10101 error. Now, Append the remainder to data 011110 10101 01011
  • 9. 1110111______ 10101| 11011011011 | 10101 011100 10101 010011 10101 001101 00000 011010 10101 011111 As the remainder is 0, the received data is error free 10101 010101 10101 00000
  • 10. Checksum • The given data is divided into data segments of k size. • Each segment is added using 1’s complement method and at the end they are complemented and the check sum is sent along with data segments. • At the receiving end all the segments are added with checksum. • If the answer is 0, the data is accepted. • If there is any tampering with the bits, the answer will not be 0 and error can be detected.
  • 11. Example • Question: 10110011 10101011 01011010 11010101 10110011 10101011 1| 01011110 1 01011111 01011010 10111001 11010101 1| 10001111 1 10001111 Now 1’s complement is: 0111000 (checksum)
  • 12. • Performing the addition again with check sum block… 10110011 10101011 1| 01011110 1 01011111 01011010 10111001 11010101 1| 10001110 1 10001111 01110000 11111111 Complementing this we get 00000000, hence data will be accepted.
  • 13. Error correction • It has 1 technique: 1. Hamming code
  • 14. Hamming Code • It is a set of error correction codes that can be used to detect and correct the errors encountered during transmission. • It has various steps to detect and correct the error. • Example: A 7bit hamming code is received as 1011011. Assume even parity and state whether the received code is correct or wrong, if wrong locate the bit in error.
  • 15. • Solution: Received Hamming code is • Step1: Detecting error Analyzing bits P1 D3 D5 D7 (skip one take one) 1 0 1 1 = odd parity = error exists Now, keeping P1=1 Step2: Analyzing bits P2 D3 D6 D7 1 0 0 1 = even 1’s = no error D7 D6 D5 P4 D3 P2 P1 1 0 1 1 0 1 1
  • 16. • Step3: Analyzing bits P4 D5 D6 D7 1 1 0 1 = odd 1’s = error exists Keeping P4=1 Here, P4 and P1 are not equal to zero. Correcting Error: E = Decimal value for 101 is 5, which shows that 5th bit is error bit. So, we write correct word by simply inverting 5th bit. Final answer: 1001011 P4 P2 P1 1 0 1