Error Detection
Error Detection
Error Detection
Single-Bit Error:
The only one bit of a given data unit is changed from 1 to 0 or from 0 to 1.
Burst Error:
• The two or more bits are changed from 0 to 1 or from 1 to 0 is known as Burst
Error.
• The Burst Error is determined from the first corrupted bit to the last corrupted
bit.
• Single-Bit Error mainly occurs in Parallel Data Transmission. For example, if eight
wires are used to send the eight bits of a byte, if one of the wire is noisy, then
single-bit is corrupted per byte.
• The duration of noise in Burst Error is more than the duration of noise in Single-
Bit.
• The number of affected bits depends on the duration of the noise and data rate.
ERROR DETECTING TECHNIQUES:
• PARITY CHECKING is one method used to check whether data has been
changed or corrupted following transmission from one device or medium to
another device or medium.
• Systems that use EVEN PARITY have an even number of 1-bits; systems that
use ODD PARITY have an odd number of 1-bits.
Consider the following byte:
• If this byte is using even parity, then the parity bit needs to be 0 since there is
already an even number of 1-bits
• If odd parity is being used, then the parity bit needs to be 1 to make the number
of 1-bits odd.
Case-02: Result ≠ 0
Thus, for the given CRC generator, the corresponding binary pattern is 11011011.
• Step-01: Calculation Of CRC At Sender Side-
• A string of n 0’s is appended to the data unit to be transmitted.
• Here, n is one less than the number of bits in CRC generator.
• Binary division is performed of the resultant string with the CRC generator.
• After division, the remainder so obtained is called as CRC.
• It may be noted that CRC also consists of n bits.
• Step-03:Transmission To Receiver-
• The newly formed code word (Original data + CRC) is transmitted to the receiver.
• The following two cases are possible-
• Case-01: Remainder = 0
If the remainder is zero,
Receiver assumes that no error occurred in the data during the transmission.
Receiver accepts the data.
• Case-02: Remainder ≠ 0
If the remainder is non-zero,
Receiver assumes that some error occurred in the data during the transmission.
Receiver rejects the data and asks the sender for retransmission.
EXAMPLE:
A bit stream 10011101 is transmitted using the standard CRC method. The generator polynomial is x3+1.
• What is the actual bit string transmitted?
• Suppose the third bit from the left is inverted during transmission. How will receiver detect this error?
• Solution-
Part-01:
Now,
• Receiver receives the bit stream = 10111101100.
• Receiver performs the binary division with the same generator polynomial as-
• The remainder obtained on division is a non-zero
value.
• This indicates to the receiver that an error occurred
in the data during the transmission.
• Therefore, receiver rejects the data and asks the
sender for retransmission.