Error Detection - Group 5
Error Detection - Group 5
Error Detection - Group 5
FINAL PROJECT
| BSCPE 3A GROUP 5
introduced into data while it is transmitted from source to destination. Error detection ensures reliable delivery
Error detection minimizes the probability of passing incorrect frames to the destination, known as
undetected error probability. Error Detection means it’s the job of the receiver to detect the error, if it is there,
it will discard it otherwise it will accept it. Error detection is very simple, just accept or reject.
ERROR DETECTION
Errors in the received frames are detected by means of Parity Check and Cyclic Redundancy
Check (CRC). In both cases, a few extra bits are sent along with actual data to confirm that bits
received at the other end are the same as they were sent. If the counter-check at receiver’ end
Bit Error
In a bit error, only one bit is going to be changed so it is also known as single bit error. In a
single bit error, only 1 bit in the data unit has been changed.
Types of Error
Burst Error
- Redundancy check or the redundancy bits are added with the message. Added means just appended.
And the whole information is now sent to the receiver.
- The message going into the receiver has two parts in the message, one is the original message and the
other one is redundant bits. Message sent to the receiver will go through a checking function if it is
matched to the original data bits it will accept the message if it is not it will reject.
- Checking function is also an algorithm that calculates redundant bits, it compares the redundant bits
with the redundant bits that was sent by the receiver again if both are matching and the receiver
understands that there are no errors in data transmission. So, it accepts it otherwise the receiver will
reject it.
Error Correction (Briefly)
Error correction is a tedious job. The receiver has to correct the errors.
It can be handled in two ways:
1. Receiver can have the sender retransmit the entire data unit.
2. The receiver can use an error-correcting code, which automatically corrects certain errors.
LRC
02 Longitudinal Redundancy
Check
03 CHECKSUM
CRC
04 Cyclic Redundancy Check
Vertical Redundancy Check (VRC)
- Also called as parity check
Suppose, if this is the data that we would like to send to the receiver. In other words, let this
be the data sender generates.
Vertical Redundancy Check (VRC)
And this is obviously the data that is generated by the sender. Now this data is given to the
even parity generator. An even parity generator accepts this data and generates a parity bit.
This even parity generator checks for the number of ones that are in the data.
Even Parity
The receiver simply counts the number of 1’s in a frame. If the count of 1’s is even and even parity is used,
the frame is considered to be not corrupted and is accepted. If the count of 1’s is odd and odd parity is
used, the frame is still not corrupted.
If a single bit flips in transit, the receiver can detect it by counting the number of 1’s. But when more than
one bit is erroneous, then it is very hard for the receiver to detect an error.
Vertical Redundancy Check (VRC)
Parity Check
One extra bit is sent along with the original bits to make a number of 1’s either even in case of even parity,
or odd in case of odd parity.
The sender while creating a frame counts the number of 1’s in it, For example, if parity is used and number
of 1’s is even then one bit with value 0 is added. This way the number of 1’s remains even. If the number of 1
is odd, to make it even a bit with value of 1 is added.
Performance of VRC
It can detect single bit error and it can detect burst only if the number of error is odd.
Longitudinal Redundancy Check (LRC)
In the longitudinal redundancy method, a BLOCK of bits is arranged in a table format (rows and columns) and
we will calculate the parity bit for each column separately. The set of these parity bits are also sent along
with our original data bits. Longitudinal redundancy check is a bit by bit parity computation, as we calculate
the parity of each column individually. This method can easily detect burst errors and single bit errors and it
fails to detect the 2 bit errors occurring in the same vertical slice.
Check Sum
Checksums are similar to parity except, the number of bits in the sums is larger than parity and
the result is always constrained to be zero. That means if the checksum is zero, an error is
detected. A checksum of a message is an arithmetic sum of code words of a certain length.
The sum is stated by means of 1’s complement and stored or transferred as a code extension of
the actual code word. At the receiver a new checksum is calculated by receiving the bit
sequence from the transmitter.
The checksum method includes parity bits, check digits and longitudinal redundancy check
(LRC). For example, if we have to transfer and detect errors for a long data sequence (also
called as data string) then we divide that into shorter words and we can store the data with a
word of same width. For each incoming bit we will add them to already stored data. At every
instance, the newly added word is called “Checksum”.
At the receiver side, the received bits checksum is the same as that of the transmitter’s there
is no error found.
Check Sum
We can also find the checksum by adding all data bits. For example, if we have 4 bytes of data
as 25h, 62h, 3fh, 52h.
At the receiver side, to check whether the data is received without error of not, just add the
checksum to the actual data bits (we will get 200H). By dropping the carry nibble we get 00H.
This means the checksum is constrained to zero. So, there is no error in the data.
Check Sum
In general, there are 5 types of checksum methods like
CRC is a different approach to detect if the received data frame contains valid data. This
technique involves binary division of the data bits being sent. The divisor is generated using
polynomials. The sender performs a division operation on the bits being sent and calculates
the remainder. Before sending the actual bits, the sender adds the remainder at the end of the
actual bits. Actual data bits plus the remainder is called codeword. The sender transmits data
bits as codewords.
Cyclic Redundancy Check (CRC)
At the other end, the receiver performs division operation on codewords using the same CRC
divisor. If the remainder contains all zeros the data bits are accepted, otherwise it is
considered as there some data corruption occured in transit.
References
Neso Academy
https://www.youtube.com/watch?v=1A_NcXxdoCc
Electronics Hub
https://www.electronicshub.org/error-correction-and-detection-
codes/?fbclid=IwAR1Qn1UHnO8wk-kkA8lkl2qh5UkpxnAc_uxPvMVk
W7X3dtuz7LqBfkDNBUk
Tutorialspoint
https://www.tutorialspoint.com/data_communication_computer_
network/error_detection_and_correction.htm
Thankyou!
CREDITS: This presentation template was created by Slidesgo, including
icons by Flaticon, infographics & images by Freepik and illustrations by
Stories