Chapter-4 Error Detection
Chapter-4 Error Detection
Error Detection
and Correction
• Types of Errors
• Detection
• Correction
Basic concepts
Networks must be able to transfer data from
one device to another with complete accuracy.
Data can be corrupted during transmission.
For reliable communication, errors must be
detected and corrected.
Error detection and correction
are implemented either at the data link
layer or the transport layer of the OSI
model.
Types of Errors
Single-bit error
• Single bit errors occur when one bit in the PDU* is
changed from 0 to 1 or from 1 to 0.
* PDU: Protocol Data Unit (e.g. a “frame” in layer 2, or a “packet” in layer 3, etc.)
• Single bit errors are least likely to occur in serial
data transmission because the noise must have a
very short duration which is very rare.
• They can happen in parallel transmission.
Example:
If data is sent at 1Mbps then each bit lasts only
1/1,000,000 sec. or 1 μs.
For a single-bit error to occur, the noise must have a
duration of only 1 μs, which is very rare.
Multiple-bit error
https://www.geeksforgeeks.org/hamming-code-in-computer-network/
Hamming Code
Hamming Code
Example of Hamming Code
Single-bit error
Error
Detection