SlideShare una empresa de Scribd logo
1 de 17
ERROR
DETECTION
&
CORRECTION
Mr. Rohan Bhatkar
Ayushi Jain
Mayur Sancheti
Rohan Bhatkar

Mohammed driver
Apeksha Mehta
Mohammed Ali Dhaga
Yash Rawani
Introduction To Error Detection And Correction
When a transmission of digital signal takes place between two systems such as computers
as shown in given figure. The get contaminated due to the addition of NOISE to it.
It is necessary to detect and correct errors because these errors can become a serious threat
To the accuracy of the digital system.
Binary signal

Binary signal
contaminated
by noise

Computer 1

Computer 2

TYPES OF ERRORSThere are two types of errors1.CONTENT ERRORS
2.FLOW INTEGRITY ERRORS
The content errors are nothing but errors in the content of a message For e.g. ”0” may
Receive as “1“or vice versa. Such errors are introduced due to noise added into the in data
signals during its transmission.
Types Of Bit Errors
1.SINGLE BIT ERROR
2.BURST ERROR

SINGLE BIT ERROR:• The term single bit error suggests that only one bit in the given data unit such as a
byte is in a error.
• That means only one bit can be change from 1 to 0 or 0 to 1, as shown in the figure.
0 1 1 1 0 0 1 1

Medium

Transmitted Byte

0 1 1 1 0 0 1 0
Received Byte

Error

BURST ERRORS:• If two or more bits from a data unit such as byte change from 1 to 0 or from 0 to 1
then burst errors are said to have occurred.
• The length of the burst is measured from the first corrupted bit to the last corrupted
bit. Some of the bits in between may not have been corrupted.
• Burst errors are illustrated in the given figure.
Errors

0 1 1 1 0 0 1 1
Transmitted Byte

Medium

0 1 0 1 1 0 0 1
Received Byte
Important Definitions Related To Codes
CodewordThe Codeword is the encoded block of bits. As already seen it contains message bits &
parity or redundant, as shown in given figure.
Code word

Code rate-

Data bits

Parity bits

The code rate is defined as the Ratio of the number of message bits(k) to the total number
of bits(n) in a codeword.

Code rate (r) = k
n
Code efficiencyThe Code efficiency is defined as the ratio as the ratio of message bits to the number of
transmitted bits per block.

Code efficiency = Code rate = k
n
Error Detection
When a code word is transmitted, one or more number of transmitted bits will be reserved
(0 & 1 or vice versa) due to transmission impairments. Thus the errors will be introduced.
It is possible for the receiver to detect these errors if the received codeword (corrupted) is
not one of the valid codeword's.
When the errors are introduced, the distance between the transmitted & received
codeword's will be equal to the number of errors as illustrated in given figure.
Transmitted
code word

10101100

11101011

00100101

Received code
word

11101100

01111011

10110001

error

error

error

Number of
errors

1

2

3

Distance

1

2

3

Hence to detect the errors at the receiver, the valid codeword's should be separated by a
distance of more than 1.
Otherwise the incorrect received codeword’s will also become some other valid codeword’s
& the error detection will be impossible.
Error Detection Methods
What is ERROR DECTECTION METHODS?
Before thinking of correcting the errors introduced in the data bits is necessary to first
detect them.
For error detection & correction it is necessary to add some check bit to a block of data
bits. These check bits are also known as “Redundant bits” because they do not carry any
useful information.
Some of the most important error detection methods are as follows1. Parity Checking.
2. Checksum Error Detection.
3. Cyclic Redundancy Check (CRC).

Error Detection Methods

Parity Checking

Checksum Error
Detection

Cyclic Redundancy
Check (CRC)
PARITY
The simplest technique foe detecting errors is add an extra bit known as PARITY
bit to each word being transmitted.
As shown in given figure generally the MSB of an 8-bit word is used as the parity
bit & the remaining 7 bits are used as data or message bits.
MSB
P
Parity bits

LSB
d6

d5 d4 d3 d2 d1 d0
7- data bits

The parity of the 8-bit transmitted word can be either even parity or odd parity.
Even Parity means the number of 1’s in the given word including the parity bit
should be even (2,4,6,8,…..).
Odd Parity means the number of 1’s in the given word including the parity bit
should be odd (1,3,5,7,…..).
Two Dimensional Check
When a large number of binary words are being transmitted or
received in succession, the resulting collection of bits is considered
as a block of data, with rows & columns as shown in given figure.
The parity bits are produced for each row & column of such block of
data.
The two sets of parity bits so generated are known as:
• Longitudinal Redundancy Check (LRC) bits.
• Vertical Redundancy Check (VRC) bits.
Cyclic Redundancy Check (CRC)
This is a type of polynomial code in which a bit string is represented in the form of
polynomials with coefficient of 0 and 1 only
Polynomial arithmetic uses a modulo-2 arithmetic i.e. addition and subtraction
are identical to EXOR.
For CRC code the sender and receiver should agree upon a generator polynomial
G(x). A codeword can be generated for a given data word (message)
polynomial M(x) with the help of long division.
This technique is more powerful than the parity check and checksum error
detection.
CRC is based on binary division. A sequence of redundant bits called CRC or CRC
remainder is appended at the end of a data unit such as byte.
The resulting data unit after adding CRC remainder becomes exactly divisible by
another predetermined binary number.
At the receiver, this data unit is divided by the same binary number.
There is no error if this division does not yield any remainder. But a non-zero
remainder indicates presence of errors in the received data unit.
Such an erroneous data unit is then rejected.
Error Correction Technique
Codes are generated by adding a group of parity bits or check bits.
The source generates the binary data which is accepted by encoder to add the
check bits to them to produce the code words.
The check bits are used by decoder to detect and correct the errors.

Data source

Data bits

Encoder

Decoder

Code words
Data bits

Destination

Data bits

Check bits

The encoder adds check bits to the data bits according to the prescribed rule.
Decoder uses parity bits to detect and correct errors after separating data and
check bits.
The data bits are then applied to the destination.
FEC (Forward Error Correction)
In FEC the receiver searches for the most likely correct code word.
When a Error is detected, the distance between the received invalid code word &
all the possible valid code words in measured.
The nearest valid code word (the one having minimum distance) is the most likely
correct version of the received code word as shown in given figure.
Concept of FEC

Valid Code Word 1
Distance

1
Received Code Word

11001100

Distance

2
Distance

3

11011100
Valid Code Word 2

11101101
Valid Code Word 3

11110100

In given figure, The valid code word 1 has the minimum distance (1), hence it is
the most likely correct code word.
CRC Checker
The codeword at the receiver of data & CRC.
The receiver treats it as one unit & divides it by the same (n+1) bit divider which
was used at the transmitter.
The reminder of this division is then checked.
If the reminder is Zero, then the received codeword is error free & hence should
be accepted.
Nut non-zero reminder presence of errors hence the corresponding codeword
should be rejected.
Received Codeword

Data

CRC
Data

(n+1) bits

If reminder is 0 then no errors.

CRC

Divisor
Reminder
ARQ Technique (Retransmission)
There are two basic systems of error detection & correction they are
•Automatic repeat request (ARQ).
•Forward error correction (FEC).
In ARQ system when error is detected, a request is made for the retransmission of
that signal.
The points differs ARQ & FEC are:•In ARQ system less number of check bits (parity bits) are required to be sent. This
will increase the (k/n) ratio for an (n,k) block code if transmitted using the ARQ
system.
•A return transmission path & additional hardware in order to implement repeat
transmission of codeword's will be needed.
•The bit rate of forward transmission must make allowance for the backward
repeat transmission.
Block Diagram of the basic ARQ System
Feedback channel
Message
Input

Encoder

Input buffer &
controller

Forward
Transmission
channel
Detector

Output
buffer &
Controller
Return
Transmission
channel
Feedback path

ACK / NAK
Operations of ARQ System
The encoder produces codeword's for each message signal and its input. Each
codeword at the encoder output is stored temporarily and transmitted over the
forward transmission channel.
At the destination a decoder will decode the code words and look for errors.
If decoder doesn’t get a error than it is positive (ACK), and if he gets negative than
its negative (NAK).
If its NAK than its will return back to “controller” and it will correct the word and
pass it back to input buffer.
A word can be retransmitted twice or more no of times.
The output will be displayed as the errors are being cleared.
DCN Error Detection & Correction

Más contenido relacionado

La actualidad más candente

Convolution codes and turbo codes
Convolution codes and turbo codesConvolution codes and turbo codes
Convolution codes and turbo codes
Manish Srivastava
 
Error Detection and Correction
Error Detection and CorrectionError Detection and Correction
Error Detection and Correction
TechiNerd
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link Layer
Abdullaziz Tagawy
 

La actualidad más candente (20)

BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codes
 
BCH Codes
BCH CodesBCH Codes
BCH Codes
 
Error detection correction (CRC)
Error detection correction  (CRC)Error detection correction  (CRC)
Error detection correction (CRC)
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
BIT Error Rate
BIT Error RateBIT Error Rate
BIT Error Rate
 
Convolution codes and turbo codes
Convolution codes and turbo codesConvolution codes and turbo codes
Convolution codes and turbo codes
 
Error Detection and Correction
Error Detection and CorrectionError Detection and Correction
Error Detection and Correction
 
Data Communications and Computer Networks
Data Communications and Computer Networks Data Communications and Computer Networks
Data Communications and Computer Networks
 
Binary codes
Binary codesBinary codes
Binary codes
 
Manchester & Differential Manchester encoding scheme
Manchester & Differential Manchester encoding schemeManchester & Differential Manchester encoding scheme
Manchester & Differential Manchester encoding scheme
 
Ch 19 Network-layer protocols Section 1
Ch 19  Network-layer protocols Section 1Ch 19  Network-layer protocols Section 1
Ch 19 Network-layer protocols Section 1
 
Linear block coding
Linear block codingLinear block coding
Linear block coding
 
Error control
Error controlError control
Error control
 
Routing algorithm
Routing algorithmRouting algorithm
Routing algorithm
 
PPP (Point to Point Protocol)
PPP (Point to Point Protocol)PPP (Point to Point Protocol)
PPP (Point to Point Protocol)
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing AlgorithmDistance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
 
Network layer - design Issues
Network layer - design IssuesNetwork layer - design Issues
Network layer - design Issues
 
Error Detection and Correction - Data link Layer
Error Detection and Correction - Data link LayerError Detection and Correction - Data link Layer
Error Detection and Correction - Data link Layer
 
Data link layer
Data link layer Data link layer
Data link layer
 

Destacado

Error Detection and Correction in Data Communication DC18
Error Detection and Correction in Data Communication DC18Error Detection and Correction in Data Communication DC18
Error Detection and Correction in Data Communication DC18
koolkampus
 
Errror Detection and Correction
Errror Detection and CorrectionErrror Detection and Correction
Errror Detection and Correction
Mahesh Kumar Attri
 
Error Detection N Correction
Error Detection N CorrectionError Detection N Correction
Error Detection N Correction
Ankan Adhikari
 
Error detection and correction, flow and error control and trasmission media
Error detection and correction, flow and error control and  trasmission mediaError detection and correction, flow and error control and  trasmission media
Error detection and correction, flow and error control and trasmission media
PANKAJ333
 
Error Correction Teacher Training
Error Correction Teacher TrainingError Correction Teacher Training
Error Correction Teacher Training
zorianapylypivska
 
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
 

Destacado (20)

Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Computer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error CorrectionComputer Networks - Error Detection & Error Correction
Computer Networks - Error Detection & Error Correction
 
Error Detection and Correction in Data Communication DC18
Error Detection and Correction in Data Communication DC18Error Detection and Correction in Data Communication DC18
Error Detection and Correction in Data Communication DC18
 
Errror Detection and Correction
Errror Detection and CorrectionErrror Detection and Correction
Errror Detection and Correction
 
Full error detection and correction
Full error detection and correctionFull error detection and correction
Full error detection and correction
 
Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
Error Detection N Correction
Error Detection N CorrectionError Detection N Correction
Error Detection N Correction
 
Error detection and correction, flow and error control and trasmission media
Error detection and correction, flow and error control and  trasmission mediaError detection and correction, flow and error control and  trasmission media
Error detection and correction, flow and error control and trasmission media
 
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code IbrarError Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibrar
 
Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)
 
FEC-Forward Error Correction for Optics Professionals..www.mapyourtech.com
FEC-Forward Error Correction for Optics Professionals..www.mapyourtech.comFEC-Forward Error Correction for Optics Professionals..www.mapyourtech.com
FEC-Forward Error Correction for Optics Professionals..www.mapyourtech.com
 
The Spark
The SparkThe Spark
The Spark
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
10 Error Detection_and_Correction
10 Error Detection_and_Correction10 Error Detection_and_Correction
10 Error Detection_and_Correction
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Error Correction Teacher Training
Error Correction Teacher TrainingError Correction Teacher Training
Error Correction Teacher Training
 
Error detection in Data Communication System
Error detection in Data Communication SystemError detection in Data Communication System
Error detection in Data Communication System
 
CRC Error coding technique
CRC Error coding techniqueCRC Error coding technique
CRC Error coding technique
 
The Data Link Layer
The Data Link LayerThe Data Link Layer
The Data Link Layer
 
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
 

Similar a DCN Error Detection & Correction

Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
Sisir Ghosh
 
computer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.pptcomputer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.ppt
Jayaprasanna4
 

Similar a DCN Error Detection & Correction (20)

Satellite error detection and correction presentation
Satellite error detection and correction presentationSatellite error detection and correction presentation
Satellite error detection and correction presentation
 
Error dectation and correction
Error dectation and correctionError dectation and correction
Error dectation and correction
 
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...Block coding, error detection (Parity checking, Cyclic redundancy checking (C...
Block coding, error detection (Parity checking, Cyclic redundancy checking (C...
 
Error detection and correction unit-05
Error detection and correction unit-05Error detection and correction unit-05
Error detection and correction unit-05
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Digital logic designing presentation
Digital logic designing presentationDigital logic designing presentation
Digital logic designing presentation
 
Error Control Coding -Introduction
Error Control Coding -IntroductionError Control Coding -Introduction
Error Control Coding -Introduction
 
crc_checksum.pdf
crc_checksum.pdfcrc_checksum.pdf
crc_checksum.pdf
 
Survey on Error Control Coding Techniques
Survey on Error Control Coding TechniquesSurvey on Error Control Coding Techniques
Survey on Error Control Coding Techniques
 
Unit-4.pptx
Unit-4.pptxUnit-4.pptx
Unit-4.pptx
 
Paper id 312201514
Paper id 312201514Paper id 312201514
Paper id 312201514
 
Data link layer
Data link layerData link layer
Data link layer
 
Unit 2 [autosaved]
Unit 2 [autosaved]Unit 2 [autosaved]
Unit 2 [autosaved]
 
computer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.pptcomputer Networks Error Detection and Correction.ppt
computer Networks Error Detection and Correction.ppt
 
Lecture 13
Lecture 13Lecture 13
Lecture 13
 
chp2 - data link layer.pptx
chp2 - data link layer.pptxchp2 - data link layer.pptx
chp2 - data link layer.pptx
 
Error correction and detection th
Error correction and detection thError correction and detection th
Error correction and detection th
 
Error control coding
Error control codingError control coding
Error control coding
 
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
 
Vlsi Implementation of Low Power Convolutional Coding With Viterbi Decoding U...
Vlsi Implementation of Low Power Convolutional Coding With Viterbi Decoding U...Vlsi Implementation of Low Power Convolutional Coding With Viterbi Decoding U...
Vlsi Implementation of Low Power Convolutional Coding With Viterbi Decoding U...
 

Más de Rohan Bhatkar (9)

Report writing
Report writingReport writing
Report writing
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Audio and video streaming
Audio and video streamingAudio and video streaming
Audio and video streaming
 
Considreation
ConsidreationConsidreation
Considreation
 
Car lambo
Car lamboCar lambo
Car lambo
 
Qt random variables notes
Qt random variables notesQt random variables notes
Qt random variables notes
 
Operating system windows XP
Operating system windows XPOperating system windows XP
Operating system windows XP
 
Dcn Networking Between Server And Client Machine
Dcn Networking Between Server And Client MachineDcn Networking Between Server And Client Machine
Dcn Networking Between Server And Client Machine
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
 

Último

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
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
heathfieldcps1
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Último (20)

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
 
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...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . 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
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
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.
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 

DCN Error Detection & Correction

  • 2. Ayushi Jain Mayur Sancheti Rohan Bhatkar Mohammed driver Apeksha Mehta Mohammed Ali Dhaga Yash Rawani
  • 3. Introduction To Error Detection And Correction When a transmission of digital signal takes place between two systems such as computers as shown in given figure. The get contaminated due to the addition of NOISE to it. It is necessary to detect and correct errors because these errors can become a serious threat To the accuracy of the digital system. Binary signal Binary signal contaminated by noise Computer 1 Computer 2 TYPES OF ERRORSThere are two types of errors1.CONTENT ERRORS 2.FLOW INTEGRITY ERRORS The content errors are nothing but errors in the content of a message For e.g. ”0” may Receive as “1“or vice versa. Such errors are introduced due to noise added into the in data signals during its transmission.
  • 4. Types Of Bit Errors 1.SINGLE BIT ERROR 2.BURST ERROR SINGLE BIT ERROR:• The term single bit error suggests that only one bit in the given data unit such as a byte is in a error. • That means only one bit can be change from 1 to 0 or 0 to 1, as shown in the figure. 0 1 1 1 0 0 1 1 Medium Transmitted Byte 0 1 1 1 0 0 1 0 Received Byte Error BURST ERRORS:• If two or more bits from a data unit such as byte change from 1 to 0 or from 0 to 1 then burst errors are said to have occurred. • The length of the burst is measured from the first corrupted bit to the last corrupted bit. Some of the bits in between may not have been corrupted. • Burst errors are illustrated in the given figure. Errors 0 1 1 1 0 0 1 1 Transmitted Byte Medium 0 1 0 1 1 0 0 1 Received Byte
  • 5. Important Definitions Related To Codes CodewordThe Codeword is the encoded block of bits. As already seen it contains message bits & parity or redundant, as shown in given figure. Code word Code rate- Data bits Parity bits The code rate is defined as the Ratio of the number of message bits(k) to the total number of bits(n) in a codeword. Code rate (r) = k n Code efficiencyThe Code efficiency is defined as the ratio as the ratio of message bits to the number of transmitted bits per block. Code efficiency = Code rate = k n
  • 6. Error Detection When a code word is transmitted, one or more number of transmitted bits will be reserved (0 & 1 or vice versa) due to transmission impairments. Thus the errors will be introduced. It is possible for the receiver to detect these errors if the received codeword (corrupted) is not one of the valid codeword's. When the errors are introduced, the distance between the transmitted & received codeword's will be equal to the number of errors as illustrated in given figure. Transmitted code word 10101100 11101011 00100101 Received code word 11101100 01111011 10110001 error error error Number of errors 1 2 3 Distance 1 2 3 Hence to detect the errors at the receiver, the valid codeword's should be separated by a distance of more than 1. Otherwise the incorrect received codeword’s will also become some other valid codeword’s & the error detection will be impossible.
  • 7. Error Detection Methods What is ERROR DECTECTION METHODS? Before thinking of correcting the errors introduced in the data bits is necessary to first detect them. For error detection & correction it is necessary to add some check bit to a block of data bits. These check bits are also known as “Redundant bits” because they do not carry any useful information. Some of the most important error detection methods are as follows1. Parity Checking. 2. Checksum Error Detection. 3. Cyclic Redundancy Check (CRC). Error Detection Methods Parity Checking Checksum Error Detection Cyclic Redundancy Check (CRC)
  • 8. PARITY The simplest technique foe detecting errors is add an extra bit known as PARITY bit to each word being transmitted. As shown in given figure generally the MSB of an 8-bit word is used as the parity bit & the remaining 7 bits are used as data or message bits. MSB P Parity bits LSB d6 d5 d4 d3 d2 d1 d0 7- data bits The parity of the 8-bit transmitted word can be either even parity or odd parity. Even Parity means the number of 1’s in the given word including the parity bit should be even (2,4,6,8,…..). Odd Parity means the number of 1’s in the given word including the parity bit should be odd (1,3,5,7,…..).
  • 9. Two Dimensional Check When a large number of binary words are being transmitted or received in succession, the resulting collection of bits is considered as a block of data, with rows & columns as shown in given figure. The parity bits are produced for each row & column of such block of data. The two sets of parity bits so generated are known as: • Longitudinal Redundancy Check (LRC) bits. • Vertical Redundancy Check (VRC) bits.
  • 10. Cyclic Redundancy Check (CRC) This is a type of polynomial code in which a bit string is represented in the form of polynomials with coefficient of 0 and 1 only Polynomial arithmetic uses a modulo-2 arithmetic i.e. addition and subtraction are identical to EXOR. For CRC code the sender and receiver should agree upon a generator polynomial G(x). A codeword can be generated for a given data word (message) polynomial M(x) with the help of long division. This technique is more powerful than the parity check and checksum error detection. CRC is based on binary division. A sequence of redundant bits called CRC or CRC remainder is appended at the end of a data unit such as byte. The resulting data unit after adding CRC remainder becomes exactly divisible by another predetermined binary number. At the receiver, this data unit is divided by the same binary number. There is no error if this division does not yield any remainder. But a non-zero remainder indicates presence of errors in the received data unit. Such an erroneous data unit is then rejected.
  • 11. Error Correction Technique Codes are generated by adding a group of parity bits or check bits. The source generates the binary data which is accepted by encoder to add the check bits to them to produce the code words. The check bits are used by decoder to detect and correct the errors. Data source Data bits Encoder Decoder Code words Data bits Destination Data bits Check bits The encoder adds check bits to the data bits according to the prescribed rule. Decoder uses parity bits to detect and correct errors after separating data and check bits. The data bits are then applied to the destination.
  • 12. FEC (Forward Error Correction) In FEC the receiver searches for the most likely correct code word. When a Error is detected, the distance between the received invalid code word & all the possible valid code words in measured. The nearest valid code word (the one having minimum distance) is the most likely correct version of the received code word as shown in given figure. Concept of FEC Valid Code Word 1 Distance 1 Received Code Word 11001100 Distance 2 Distance 3 11011100 Valid Code Word 2 11101101 Valid Code Word 3 11110100 In given figure, The valid code word 1 has the minimum distance (1), hence it is the most likely correct code word.
  • 13. CRC Checker The codeword at the receiver of data & CRC. The receiver treats it as one unit & divides it by the same (n+1) bit divider which was used at the transmitter. The reminder of this division is then checked. If the reminder is Zero, then the received codeword is error free & hence should be accepted. Nut non-zero reminder presence of errors hence the corresponding codeword should be rejected. Received Codeword Data CRC Data (n+1) bits If reminder is 0 then no errors. CRC Divisor Reminder
  • 14. ARQ Technique (Retransmission) There are two basic systems of error detection & correction they are •Automatic repeat request (ARQ). •Forward error correction (FEC). In ARQ system when error is detected, a request is made for the retransmission of that signal. The points differs ARQ & FEC are:•In ARQ system less number of check bits (parity bits) are required to be sent. This will increase the (k/n) ratio for an (n,k) block code if transmitted using the ARQ system. •A return transmission path & additional hardware in order to implement repeat transmission of codeword's will be needed. •The bit rate of forward transmission must make allowance for the backward repeat transmission.
  • 15. Block Diagram of the basic ARQ System Feedback channel Message Input Encoder Input buffer & controller Forward Transmission channel Detector Output buffer & Controller Return Transmission channel Feedback path ACK / NAK
  • 16. Operations of ARQ System The encoder produces codeword's for each message signal and its input. Each codeword at the encoder output is stored temporarily and transmitted over the forward transmission channel. At the destination a decoder will decode the code words and look for errors. If decoder doesn’t get a error than it is positive (ACK), and if he gets negative than its negative (NAK). If its NAK than its will return back to “controller” and it will correct the word and pass it back to input buffer. A word can be retransmitted twice or more no of times. The output will be displayed as the errors are being cleared.