Unit Notes Based on PDF
Unit Notes Based on PDF
In any communication system, data can be corrupted due to various reasons such as noise,
interference, attenuation, or distortion. Errors are categorized into:
• Burst errors – Two or more bits in the data unit are corrupted.
To ensure data integrity, error detection and correction mechanisms are essential.
a. Parity Bit
• Adds a parity bit (extra bit) to ensure the number of 1s is even (even parity) or odd (odd
parity).
• Example: Data = 1010001 (4 ones, even), even parity bit = 0. Final = 10100010.
b. Checksum
• Divides data into equal segments (usually 16 bits), sums them, and sends the sum
(checksum).
• Receiver sums data segments and compares the result with the checksum.
• Example:
• Example:
o Data: 11010011101100
d. Hamming Code
• Adds multiple parity bits at positions that are powers of two (1, 2, 4, 8...)
o Transmitted data: P1 P2 D3 P4 D2 D1 D0
• Redundant data is added so that the receiver can detect and correct errors without
retransmission.
• Sender waits for acknowledgment (ACK). If not received in time (timeout), data is
retransmitted.
a. Stop-and-Wait ARQ
b. Go-Back-N ARQ
Hamming Code Yes Yes (1-bit) Medium RAM, wireless comm. systems
6. Real-Life Applications
1. Explain various error detection techniques in detail. Error detection techniques help in
identifying if the transmitted data has been altered during transmission.
• Parity Bit: Adds a parity bit to maintain even or odd parity. Can detect single-bit errors
but fails in detecting two or more simultaneous bit errors.
• CRC: Treats data as a polynomial and divides it using another polynomial (generator).
The remainder (CRC bits) is appended and used for checking integrity.
• Hamming Code: Adds redundant bits (parity) at positions that are powers of 2. These
help in identifying and correcting a single-bit error based on bit parity.
• It is simple but inefficient due to idle wait time after every frame.
• Go-Back-N ARQ: Retransmits all frames from the erroneous one. Simpler
implementation but less efficient.
• Selective Repeat ARQ: Retransmits only the erroneous frames. More complex but
improves bandwidth usage.
• Comparison Table:
4. Explain Hamming Code technique for error correction. Hamming Code adds parity bits at
specific positions. At the receiver, it recalculates parity bits and compares them to find the
position of the error (if any). Once the position is known, the bit is flipped to correct the error. It
is a single-bit error correction technique and is widely used in memory chips.
5. What is CRC and how is it used in error detection? Cyclic Redundancy Check (CRC) uses
polynomial division to generate a fixed-length checksum for a block of data. It detects burst
errors effectively. At the receiver, the same division is performed and if the remainder is zero,
data is accepted; otherwise, an error is flagged.
6. Define and explain Forward Error Correction (FEC). Forward Error Correction (FEC) is a
technique in which redundant bits are added to the data by the sender. The receiver uses these
bits to detect and correct errors without needing retransmission. It is used in real-time and one-
way communication systems like satellite links and streaming services.
7. Write a short note on checksum method for error detection. Checksum is a simple error
detection scheme where data is broken into equal segments and summed. The result is then
complemented and transmitted. The receiver performs the same operation and verifies the
checksum. If it doesn’t match, an error is detected.
8. What is the importance of error detection in networks? Error detection ensures the
integrity and reliability of data during transmission. It helps prevent data corruption, which can
cause miscommunication, software crashes, and data loss. It is essential in modern networking
protocols like TCP/IP, file transfers, and cloud storage.
• Selective Repeat: Most efficient but needs buffer and complex logic.
10. Write a detailed note on ARQ with all types. Automatic Repeat Request (ARQ) protocols
ensure reliable communication through acknowledgments and retransmissions.
• Go-Back-N: Sends multiple frames. If an error occurs, all frames from the erroneous
one are resent.
• Selective Repeat: Sends multiple frames and only retransmits frames with errors.
Requires receiver buffer and sequencing. These protocols play a vital role in maintaining
data reliability in noisy channels.