Data Link Layer - Error Detection Techniques
Data Link Layer - Error Detection Techniques
CS-327
00000010 00001010
Sent Single Bit Error Received
Sent 0100010001000011
Corrupted Bits
Received 0101110101100011
Burst Error
Fall Semester 2023 3
Types of Errors
• Single bit errors are the least likely type of error in serial data
transmission.
• A burst error does not necessarily mean that the errors occur in
consecutive bits.
• The length of the burst is measured from the first corrupted bit to the last
corrupted bit. Some bits in between may not have been corrupted.
• A burst error is more likely to occur than a single bit error. The duration of
noise is normally longer than the duration of 1 bit, which means that
when noise affects data, it affects a set of bits.
• The number of bits affected depends on the data rate and duration of
noise.
• Example: when a wireless transmitter transmits at 11 Mbps and an
interference burst of 200 μs occurs, 2200 bits are affected by the burst.
0111000110101011 1
‘d +1’ bits
Transmitted Frame
11001111 1011101 1 0111001 0 01010011 0101010 1
1100111 1
1111101 1 Parity Error
0111001 0 *Bit in position (2,2) is switched to 1
0101001 1 *A single error in the parity bits is also
0101010 1 detectable and correctable.
Parity Error
1100111 1
*Bit in position (2,2) is switched to 1 and bit
1111001 1 in position (2,5)is switched to 0
0111001 0
*Two-dimensional parity can also detect
0101001 1 (but not correct!) any combination of two
1 errors in a packet.
0101010
Parity Error Parity Error
Sender Side:
10101001
Receiver Side:
10101001
00111001 Result is zero so the data is
00011101 intact and no error
1’s complement
11111111 00000000
Receiver Side:
00101001
00111001 Result is non zero so the data
00011101 has error and it is discarded
1’s complement
01111111 10000000
‘d+r’ bits
‘15’ bits
‘15’ bits
1010001101 01110
‘15’ bits
𝑇𝑇
𝐺𝐺
Because there is no
remainder, it is
assumed that there
have been no errors.