error detection in data communication network
error detection in data communication network
Single-Bit Error
Multiple-Bit Error
A multiple-bit error is an error type that arises when more than
one bit in a data transmission is affected. Although multiple-bit
errors are relatively rare when compared to single-bit errors, they
can still occur, particularly in high-noise or high-interference
digital environments.
Multiple-Bit Error
Burst Error
When several consecutive bits are flipped mistakenly in digital
transmission, it creates a burst error. This error causes a
sequence of consecutive incorrect values.
Burst Error
Single Parity check is not able to detect even no. of bit error.
For example, the Data to be transmitted is 101010.
Codeword transmitted to the receiver is 1010101 (we have
used even parity).
Let’s assume that during transmission, two of the bits of code
word flipped to 1111101.
On receiving the code word, the receiver finds the no. of ones
to be even and hence no error, which is a wrong assumption.
Checksum
Solution:
Solution:
Introduction: In data communication, errors can occur during the transmission of data from
the sender to the receiver. These errors can arise due to various factors like noise,
interference, and signal distortion. To ensure data integrity, mechanisms for error detection
and error correction are essential.
Single-bit errors: Occur when only one bit in the transmitted data is altered.
Burst errors: Occur when two or more consecutive bits in the transmitted data are altered.
2. Error Detection
Error detection techniques are used to determine if data has been corrupted during
transmission. Here are some commonly used error detection methods:
a. Parity Check
Single Parity Bit: Adds an extra bit to the data to make the number of 1s either even (even
parity) or odd (odd parity).
o If the number of 1s changes due to an error, the parity bit will help detect it.
Example:
o Original data: 1010001
o Even parity bit: 1 (because there are three 1s, so a 1 is added to make it even)
o Transmitted data: 10100011
b. Checksum
A checksum is calculated by dividing data into equal blocks, adding the blocks together, and
appending the result (the checksum) to the data.
The receiver recalculates the checksum from the received data and compares it with the
transmitted checksum.
If there is a mismatch, an error is detected.
Example:
o Blocks of data: 1101 0110 1001
o Checksum: 1100 (sum of the blocks)
CRC uses polynomial division to detect errors. The data bits are treated as a polynomial and
divided by a predefined polynomial. The remainder (CRC code) is appended to the data.
The receiver divides the received data (including CRC code) by the same polynomial. If the
remainder is zero, the data is error-free.
Example:
o Data: 10111010
o Divisor: 1011 (polynomial)
o Remainder (CRC code): 010
Hamming code introduces redundant bits to data, allowing not only error detection but also
error correction. The number of redundant bits depends on the length of the data.
Example:
o Data: 1010
o Hamming code: Adds redundant bits to the data to allow for error detection and
correction.
3. Error Correction
Error correction techniques go beyond detecting errors—they correct them without needing
retransmission.
ARQ uses acknowledgments and timeouts to detect errors. When an error is detected, the
receiver requests the sender to resend the corrupted data.
o Types of ARQ:
Stop-and-Wait ARQ: The sender stops and waits for an acknowledgment
(ACK) after transmitting each frame.
Go-Back-N ARQ: The sender can send several frames before receiving an
acknowledgment but must retransmit from the erroneous frame if an error
is detected.
Selective Repeat ARQ: Only the erroneous frames are retransmitted.
FEC adds redundant data to the transmitted information, allowing the receiver to detect and
correct errors without the need for retransmission.
Examples of FEC:
o Reed-Solomon Codes: Commonly used in CDs, DVDs, and QR codes.
o Convolutional Codes: Used in wireless communication systems, where the data is
encoded in a continuous stream.
4. Hybrid Techniques
Some systems use a combination of both error detection and correction methods:
Hybrid ARQ (HARQ): Combines ARQ and FEC, where the receiver tries to correct the errors
using FEC before requesting retransmission.
5. Practical Applications
Wireless Communication: Error detection and correction are crucial due to the noisy nature
of wireless channels.
Data Storage Devices: Parity bits and ECC (Error Correction Code) are used to ensure data
integrity in hard drives, SSDs, and memory.
Satellite and Space Communication: Since retransmission is costly, FEC is heavily used.
Internet Protocols: TCP uses ARQ for reliable data transmission, while UDP sacrifices error
correction for speed, relying on application-layer checks.
6. Summary
Error detection ensures that errors are identified during transmission, while error correction
not only identifies errors but also corrects them.
Techniques like parity check, CRC, and checksums are commonly used for detection, while
ARQ and FEC are widely used for correction.
Conclusion: Error detection and correction are vital in ensuring reliable communication in
networks. As data transmission evolves with increasing bandwidth demands, more
sophisticated methods will continue to emerge, ensuring minimal data loss and maintaining
communication integrity.