SlideShare a Scribd company logo
Error Detection Codes
Parity Check
1
By
W.I.D.Perera(Esha)
Vavuniya Campus, University Of Jaffna, SL
Content
Why we need Error Detection?
What are the Errors?
What are the Error Detection Mechanisms?
 Parity Check
 Single Parity Check
 Two Dimensional Parity Check
 Drawbacks of Parity
2
Error Detection
• Data can be corrupted during transmission. Even with best prevention
methods.
• For a reliable communication, errors must be detected and corrected.
• Error detection and correction are implemented either at data link layer or
the transport layer of the OSI model.
3
Types of Errors
• Single bit error :-
- Only one bit in the data unit has changed.
4
0 changed to 1
Received Sent
Types of Errors
• Burst error :-
- It means that two or more bits in the data unit has changed.
5
Sent
Received
Bits corrupted by Burst Error
Error Detection Codes
• Error detecting code is to include only enough redundancy to allow the receiver to
deduce that an error occurred, but not which error, and have it request a re-
transmission.
• Used in Low Noisy Channels – Fiber Optics
• Error detection uses the concept of redundancy, which means adding extra bits
for detecting error at the destination
• To detect an error, something extra has to be added to the data/signal
• This extra is an error detection code
• 3 Techniques are there: Parity Check, Check Sum, CRC
6
Parity Check
• The Simplest method Available - it’s a linear, systematic block code
• 2 Parity Check Methods are there:
• Simple Parity - For Single bit Errors
• Two Dimensional - For Burst Errors
• How to use Parity Methods?
• Parity Generate – Sender’s Side
• Parity Detect – Receiver’s Side
7
Single Parity Check(VRC)
Vertical Redundancy Check
• In Single parity check, a parity bit is added to every data unit so that the total
number of 1s is even or odd.
11010011 1
• Therefore, the total number of bits transmitted would be 9 bits.
( 8 bits of information + 1 bit parity = n data bits into n+1 bits)
8
Information(1 byte – 8 bits)
Additional Bit added(PARITY BIT)
Single Parity check(Cont.)
Parity Generation
• There are two ways to generate a Single parity bit.
• One is called Even parity and the other is Odd parity.
• What is even parity?
• the total number of 1’s transmitted must be even.
• What is odd parity?
• the total number of 1’s transmitted must be odd
9
Parity Generation-VRC
• Parity bit is chosen so that the number of 1 bits in the code-word
is even (or odd)
• computing the (even) parity bit as the modulo 2 sum or XOR of
the data bits.
• use XOR and XNOR logic gates in circuits to generate parity bits
in practically (in devices).
10
How is the even parity bit generated?
Total number of ‘1’s should be even.
If the byte that we want to transmit is:
• Step 1: count the number of 1’s in the byte.
• Answer: 5
• Step 2: compute the parity value.
• Since the total number of 1’s is 5, the even parity bit will have a value of 1.
• If the number of bits are already even, the parity bit will be ‘0’.
11
1 0 1 0 1 1 0 1
1 0 1 0 1 1 0 1 1
How is the odd parity bit generated?
Total number of ‘1’s should be odd.
If the byte that we want to transmit is:
• Step 1: count the number of 1’s in the byte.
• Answer: 4
• Step 2: compute the parity value.
• Since the total number of 1’s is 4, the odd parity bit will have a value of 1.
• If the number of bits are already odd, the parity bit will be ‘0’.
12
1 0 1 0 1 1 0 0
1 0 1 0 1 1 0 0 1
Single Parity check(Cont.)
Parity Detection
13
Drop Redundant Bit
and
Accept Data
Reject DataEven
Count Number of ‘1’ s in Received Data
Yes
No
Request Re -Transmission
Odd
• In Even parity Concept• In Odd parity Concept
1 1 0 0 1 0 0 0 11 0 1 0 1 1 0 1 1
Drawbacks of Single Parity Check
• Only can detect single bit errors ; Single bit errors are rare.
• Can not detect errors, if 2 bits are interchanged.
14
1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 0 1 1
5+1=6 5+1=6
5+1=6 3+1=4
Two Dimensional Parity Check(LRC)
Longitudinal Redundancy Check
• In two-dimensional parity check, a block of bits is divided into rows and a
redundant row of bits is added to the whole block.
• Even Parity Concept
15
Two Dimensional Parity check(Cont.)
Parity Generation
• A block of bits is organized in a table (rows & columns) a parity bit is
calculated for each row and column.
• Compute (m + n + 1) parity bits and send (mn + m + n + 1) bits
1) Adds a parity bit to each character then adds a row of parity bits after a block of
characters
2) The row of parity bits is actually a parity bit for each “column” of characters
3) The row of parity bits plus the column parity bits add a great amount of
redundancy to a block of characters
• Lets see this with an example:
16
Two Dimensional Parity Generation
Even Parity Concept
17
1100111 1011101 0111001 0101001
1 1 0 0 1 1 1
1 0 1 1 1 0 1
0 1 1 1 0 0 1
0 1 0 1 0 0 1
Original Data
1100111 1011101 0111001 0101001
Row Parity
No ‘1’s : 5
No ‘1’s : 5
No ‘1’s : 4
No ‘1’s : 3
No ‘1’s : 3
1
1
1
0
1
1 0 1
0 1 0 1 0 1 0 1
10101010
Column Parity
This will Send
Drawbacks of 2D Parity Check
• 4- and more bit errors can be detected in some cases
• 1 affect 2 , 2 affect 3, 3 affect 4, 4 affect 4 – so Can not detect in this case
• Disadvantage: too many check bits !!!
• Can not detect errors, if 2 bits in one data unit are changed and 2 bits in exactly
the same position in another data unit is changed.
18
Drawbacks
• Both simple parity and 2D parity do not catch all the errors.
• Simple parity only catches odd numbers of bit errors, and can not
catch if 2 bits interchanged.
• 2D parity is better at catching errors, but requires too many check
bits added to a block of data.
• Can not use in 4 bit errors and more bit errors in some cases.
19
Summary
• Parity checking is a means of checking if the communication of a sequence of bits
has been correctly received.
• Parity bit is an extra bit that is attached to the data bits/Signal that is being
transferred from one location to another.
• The two types of most commonly used parity checking are:
Single Parity Check 2D Parity Check
• odd parity
• even parity
• Single Parity bit checking can detect single error only, double errors will not be
detected. Even the 2D parity is not efficient and can not use in some cases.
20
Thank You!
21
The end.

More Related Content

What's hot

Encoding Techniques
Encoding TechniquesEncoding Techniques
Error Detection and Correction
Error Detection and CorrectionError Detection and Correction
Error Detection and CorrectionTechiNerd
 
Parity bits
Parity bitsParity bits
Parity bitsmrhaken
 
Check sum
Check sumCheck sum
Check sum
Pooja Jaiswal
 
Data Encoding
Data EncodingData Encoding
Data EncodingLuka M G
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
tes31
 
Error control
Error controlError control
Error control
selvakumar_b1985
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
Maria Akther
 
Data link layer
Data link layer Data link layer
Data link layer
Mukesh Chinta
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
Kruti Niranjan
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
Atharaw Deshmukh
 
Framing in data link layer
Framing in data link layerFraming in data link layer
Framing in data link layer
Ahtesham Ullah khan
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
selvakumar_b1985
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake
Alok Tripathi
 
2. data and signals
2. data and signals2. data and signals
2. data and signals
Humayoun Kabir
 
TOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.pptTOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.ppt
shanthishyam
 
Congestion control
Congestion controlCongestion control
Congestion control
Aman Jaiswal
 
Media Access Control (MAC Layer)
Media Access Control (MAC Layer)Media Access Control (MAC Layer)
Media Access Control (MAC Layer)
Meenakshi Paul
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
Shehara Abeythunga
 

What's hot (20)

Encoding Techniques
Encoding TechniquesEncoding Techniques
Encoding Techniques
 
Error Detection and Correction
Error Detection and CorrectionError Detection and Correction
Error Detection and Correction
 
Parity bits
Parity bitsParity bits
Parity bits
 
Check sum
Check sumCheck sum
Check sum
 
Data Encoding
Data EncodingData Encoding
Data Encoding
 
Flow control main
Flow control mainFlow control main
Flow control main
 
Multiple Access Protocal
Multiple Access ProtocalMultiple Access Protocal
Multiple Access Protocal
 
Error control
Error controlError control
Error control
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Data link layer
Data link layer Data link layer
Data link layer
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
 
Protocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol SuiteProtocols and the TCP/IP Protocol Suite
Protocols and the TCP/IP Protocol Suite
 
Framing in data link layer
Framing in data link layerFraming in data link layer
Framing in data link layer
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
 
TCP/IP 3-way Handshake
TCP/IP 3-way Handshake TCP/IP 3-way Handshake
TCP/IP 3-way Handshake
 
2. data and signals
2. data and signals2. data and signals
2. data and signals
 
TOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.pptTOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.ppt
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Media Access Control (MAC Layer)
Media Access Control (MAC Layer)Media Access Control (MAC Layer)
Media Access Control (MAC Layer)
 
Sliding window protocol
Sliding window protocolSliding window protocol
Sliding window protocol
 

Similar to Parity check(Error Detecting Codes)

Communication & Internet Technologies PPT 2.pptx
Communication & Internet Technologies PPT 2.pptxCommunication & Internet Technologies PPT 2.pptx
Communication & Internet Technologies PPT 2.pptx
fabiankamera1
 
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
pezhappy99
 
1.5.1 Lect_parity.pptx
1.5.1 Lect_parity.pptx1.5.1 Lect_parity.pptx
1.5.1 Lect_parity.pptx
AppannaPavansai
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
GargiKhanna1
 
11. Parity Generator_Checker.pptx
11. Parity Generator_Checker.pptx11. Parity Generator_Checker.pptx
11. Parity Generator_Checker.pptx
NaveenPunia5
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
arunachalamr16
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
Jignesh Navdiya
 
22BA013 IM.pptx
22BA013 IM.pptx22BA013 IM.pptx
22BA013 IM.pptx
JananiHepta
 
5.Error correction-Hamming Code.pptx
5.Error correction-Hamming Code.pptx5.Error correction-Hamming Code.pptx
5.Error correction-Hamming Code.pptx
AswathiThotz
 
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
SushantRaj25
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection th
ShardaSalunkhe1
 
PARITY_GENERATOR_AND_CHECKER_PPT.pptx
PARITY_GENERATOR_AND_CHECKER_PPT.pptxPARITY_GENERATOR_AND_CHECKER_PPT.pptx
PARITY_GENERATOR_AND_CHECKER_PPT.pptx
RockFellerSinghRusse
 
Error.pdf
Error.pdfError.pdf
Error.pdf
IvyRamosCaones
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correction
fg657
 
Sak
SakSak
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentation
AhmedMuhumed2
 
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
gadisaAdamu
 
ERROR_DETECTION.pptx
ERROR_DETECTION.pptxERROR_DETECTION.pptx
ERROR_DETECTION.pptx
BeniamTekeste
 
Error detection and Correction
Error detection and CorrectionError detection and Correction
Error detection and Correction
TarjMehta1
 
computer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfcomputer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdf
Balasubramanian699229
 

Similar to Parity check(Error Detecting Codes) (20)

Communication & Internet Technologies PPT 2.pptx
Communication & Internet Technologies PPT 2.pptxCommunication & Internet Technologies PPT 2.pptx
Communication & Internet Technologies PPT 2.pptx
 
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
 
1.5.1 Lect_parity.pptx
1.5.1 Lect_parity.pptx1.5.1 Lect_parity.pptx
1.5.1 Lect_parity.pptx
 
Error detection and correction codes
Error detection and correction codesError detection and correction codes
Error detection and correction codes
 
11. Parity Generator_Checker.pptx
11. Parity Generator_Checker.pptx11. Parity Generator_Checker.pptx
11. Parity Generator_Checker.pptx
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
 
Parity Generator and Parity Checker
Parity Generator and Parity CheckerParity Generator and Parity Checker
Parity Generator and Parity Checker
 
22BA013 IM.pptx
22BA013 IM.pptx22BA013 IM.pptx
22BA013 IM.pptx
 
5.Error correction-Hamming Code.pptx
5.Error correction-Hamming Code.pptx5.Error correction-Hamming Code.pptx
5.Error correction-Hamming Code.pptx
 
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
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection th
 
PARITY_GENERATOR_AND_CHECKER_PPT.pptx
PARITY_GENERATOR_AND_CHECKER_PPT.pptxPARITY_GENERATOR_AND_CHECKER_PPT.pptx
PARITY_GENERATOR_AND_CHECKER_PPT.pptx
 
Error.pdf
Error.pdfError.pdf
Error.pdf
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correction
 
Sak
SakSak
Sak
 
Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentation
 
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_DETECTION.pptx
ERROR_DETECTION.pptxERROR_DETECTION.pptx
ERROR_DETECTION.pptx
 
Error detection and Correction
Error detection and CorrectionError detection and Correction
Error detection and Correction
 
computer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdfcomputer networks Error Detection Methods.pdf
computer networks Error Detection Methods.pdf
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 

Parity check(Error Detecting Codes)

  • 1. Error Detection Codes Parity Check 1 By W.I.D.Perera(Esha) Vavuniya Campus, University Of Jaffna, SL
  • 2. Content Why we need Error Detection? What are the Errors? What are the Error Detection Mechanisms?  Parity Check  Single Parity Check  Two Dimensional Parity Check  Drawbacks of Parity 2
  • 3. Error Detection • Data can be corrupted during transmission. Even with best prevention methods. • For a reliable communication, errors must be detected and corrected. • Error detection and correction are implemented either at data link layer or the transport layer of the OSI model. 3
  • 4. Types of Errors • Single bit error :- - Only one bit in the data unit has changed. 4 0 changed to 1 Received Sent
  • 5. Types of Errors • Burst error :- - It means that two or more bits in the data unit has changed. 5 Sent Received Bits corrupted by Burst Error
  • 6. Error Detection Codes • Error detecting code is to include only enough redundancy to allow the receiver to deduce that an error occurred, but not which error, and have it request a re- transmission. • Used in Low Noisy Channels – Fiber Optics • Error detection uses the concept of redundancy, which means adding extra bits for detecting error at the destination • To detect an error, something extra has to be added to the data/signal • This extra is an error detection code • 3 Techniques are there: Parity Check, Check Sum, CRC 6
  • 7. Parity Check • The Simplest method Available - it’s a linear, systematic block code • 2 Parity Check Methods are there: • Simple Parity - For Single bit Errors • Two Dimensional - For Burst Errors • How to use Parity Methods? • Parity Generate – Sender’s Side • Parity Detect – Receiver’s Side 7
  • 8. Single Parity Check(VRC) Vertical Redundancy Check • In Single parity check, a parity bit is added to every data unit so that the total number of 1s is even or odd. 11010011 1 • Therefore, the total number of bits transmitted would be 9 bits. ( 8 bits of information + 1 bit parity = n data bits into n+1 bits) 8 Information(1 byte – 8 bits) Additional Bit added(PARITY BIT)
  • 9. Single Parity check(Cont.) Parity Generation • There are two ways to generate a Single parity bit. • One is called Even parity and the other is Odd parity. • What is even parity? • the total number of 1’s transmitted must be even. • What is odd parity? • the total number of 1’s transmitted must be odd 9
  • 10. Parity Generation-VRC • Parity bit is chosen so that the number of 1 bits in the code-word is even (or odd) • computing the (even) parity bit as the modulo 2 sum or XOR of the data bits. • use XOR and XNOR logic gates in circuits to generate parity bits in practically (in devices). 10
  • 11. How is the even parity bit generated? Total number of ‘1’s should be even. If the byte that we want to transmit is: • Step 1: count the number of 1’s in the byte. • Answer: 5 • Step 2: compute the parity value. • Since the total number of 1’s is 5, the even parity bit will have a value of 1. • If the number of bits are already even, the parity bit will be ‘0’. 11 1 0 1 0 1 1 0 1 1 0 1 0 1 1 0 1 1
  • 12. How is the odd parity bit generated? Total number of ‘1’s should be odd. If the byte that we want to transmit is: • Step 1: count the number of 1’s in the byte. • Answer: 4 • Step 2: compute the parity value. • Since the total number of 1’s is 4, the odd parity bit will have a value of 1. • If the number of bits are already odd, the parity bit will be ‘0’. 12 1 0 1 0 1 1 0 0 1 0 1 0 1 1 0 0 1
  • 13. Single Parity check(Cont.) Parity Detection 13 Drop Redundant Bit and Accept Data Reject DataEven Count Number of ‘1’ s in Received Data Yes No Request Re -Transmission Odd • In Even parity Concept• In Odd parity Concept
  • 14. 1 1 0 0 1 0 0 0 11 0 1 0 1 1 0 1 1 Drawbacks of Single Parity Check • Only can detect single bit errors ; Single bit errors are rare. • Can not detect errors, if 2 bits are interchanged. 14 1 0 1 0 1 1 0 1 1 1 1 1 0 1 0 0 1 1 5+1=6 5+1=6 5+1=6 3+1=4
  • 15. Two Dimensional Parity Check(LRC) Longitudinal Redundancy Check • In two-dimensional parity check, a block of bits is divided into rows and a redundant row of bits is added to the whole block. • Even Parity Concept 15
  • 16. Two Dimensional Parity check(Cont.) Parity Generation • A block of bits is organized in a table (rows & columns) a parity bit is calculated for each row and column. • Compute (m + n + 1) parity bits and send (mn + m + n + 1) bits 1) Adds a parity bit to each character then adds a row of parity bits after a block of characters 2) The row of parity bits is actually a parity bit for each “column” of characters 3) The row of parity bits plus the column parity bits add a great amount of redundancy to a block of characters • Lets see this with an example: 16
  • 17. Two Dimensional Parity Generation Even Parity Concept 17 1100111 1011101 0111001 0101001 1 1 0 0 1 1 1 1 0 1 1 1 0 1 0 1 1 1 0 0 1 0 1 0 1 0 0 1 Original Data 1100111 1011101 0111001 0101001 Row Parity No ‘1’s : 5 No ‘1’s : 5 No ‘1’s : 4 No ‘1’s : 3 No ‘1’s : 3 1 1 1 0 1 1 0 1 0 1 0 1 0 1 0 1 10101010 Column Parity This will Send
  • 18. Drawbacks of 2D Parity Check • 4- and more bit errors can be detected in some cases • 1 affect 2 , 2 affect 3, 3 affect 4, 4 affect 4 – so Can not detect in this case • Disadvantage: too many check bits !!! • Can not detect errors, if 2 bits in one data unit are changed and 2 bits in exactly the same position in another data unit is changed. 18
  • 19. Drawbacks • Both simple parity and 2D parity do not catch all the errors. • Simple parity only catches odd numbers of bit errors, and can not catch if 2 bits interchanged. • 2D parity is better at catching errors, but requires too many check bits added to a block of data. • Can not use in 4 bit errors and more bit errors in some cases. 19
  • 20. Summary • Parity checking is a means of checking if the communication of a sequence of bits has been correctly received. • Parity bit is an extra bit that is attached to the data bits/Signal that is being transferred from one location to another. • The two types of most commonly used parity checking are: Single Parity Check 2D Parity Check • odd parity • even parity • Single Parity bit checking can detect single error only, double errors will not be detected. Even the 2D parity is not efficient and can not use in some cases. 20

Editor's Notes

  1. When you receive a parcel from a friend, how would you know that the contents are what your friend has send to you? One way is to call your friend up and confirm with him what he has sent to you. Another way is for your friend to include a packing list detailing what is in the parcel, and you can tally the items in the parcel with the packing list. In the same way when your computer/ printer receives a message, how would your computer/printer know that the received message is correct? One way is for the computer to double check with the sending computer what he has received, just like you calling up your friend to check the contents of the parcel. Another way is for the sending computer to include some information in the message, so that by examining the information you are able to know whether the received message is correct. (Like the packing list).