📝 Error Detection versus Correction in Data Link Layer (11 MCQs)
Two Different Goals of Link-Layer Error Control
Error detection and error correction both use redundancy, but they solve different problems at the data-link layer. Detection determines whether received bits violate an expected check rule; correction attempts to reconstruct the intended bits. The choice depends on the code, channel error pattern, retransmission cost, and whether the application can tolerate waiting for another copy. This distinction helps the receiver choose an appropriate integrity check for each frame.
Detection Flags Invalid Frames While Correction Repairs Them
A detection code separates valid and invalid received patterns but may not identify the original data. A correcting code places valid codewords far enough apart that the receiver can select the nearest permitted word within a defined error limit. Stronger correction generally requires more redundancy and processing. Both endpoints must use matching parameters for the check to be interpreted correctly.
Receiver Decisions After Checking a Received Frame
The receiver first checks the frame's parity, checksum, or CRC. If the check indicates corruption, a link protocol may discard the frame and request another transmission using acknowledgements and timers. With FEC, the decoder instead calculates an error pattern or syndrome and corrects bits when the received pattern lies within its correction capability. This check takes place before the receiver accepts the protected information.
Comparing Detection and Correction with a Code
A code with minimum Hamming distance three can detect up to two bit errors, or correct one bit error. If a received word differs from a valid codeword in one position, a suitable decoder can restore it. A detection-only receiver would simply mark the word as corrupted. The example makes the coding rule visible through a reproducible bit sequence.
Choosing Recovery for Interactive and Real-Time Traffic
Retransmission-based detection is effective on links where feedback is available and delay is acceptable. FEC is valuable in broadcast, satellite, and real-time media paths where a return request is costly or too slow. Some systems combine both approaches for stronger reliability. Its suitability depends on traffic type, delay limits, and acceptable redundancy overhead.
Avoiding Confusion Between Detecting and Correcting
'Detection repairs the corrupted bit' confuses the two functions; detection only signals a problem. 'Correction never needs redundancy' is false because the receiver needs coded structure. 'Retransmission is FEC' is also false; retransmission requests a new copy, while FEC repairs from received redundancy. These distinctions prevent confusion between detection, recovery, and general data integrity.
Solving Detection and Correction Comparisons
For a comparison question, state what the receiver knows after each method, whether retransmission is needed, and how redundancy is used. Apply the minimum-distance formulas correctly: detection up to s errors requires d-min at least s plus one, while correction of t errors requires at least 2t plus one. Show intermediate steps and state assumptions behind any calculated result.
Error Detection and Correction Vocabulary
- Detection - Identifies corrupted received data.
- Correction - Repairs corrupted received bits.
- FEC - Corrects errors without retransmission.
- ARQ - Requests retransmission after errors.
- Syndrome - Indicates failed code constraints.
- Minimum distance - Separates valid codewords clearly.
📝 All Error Detection versus Correction in Data Link Layer MCQs
Q1. What is the main distinction between error detection and error correction in digital communication?
📖 Explanation: Detection answers a simple yes/no question, while correction must pinpoint which bits are wrong. This requires additional information about the error pattern, so correction mechanisms need more redundancy and processing than pure detection schemes.
Q2. An 8‑bit data unit can have a single‑bit error. How many distinct error conditions must a detector distinguish to both detect and correct any single‑bit error?
📖 Explanation: The detector must differentiate the case of no error plus each of the eight possible single‑bit error positions, giving a total of nine distinct conditions. This requirement drives the size of the syndrome space needed for correction.
Q3. A burst error of length 4 flips consecutive bits in an 8‑bit word. Why is detecting this burst generally easier than correcting it?
📖 Explanation: Detection can use a short checksum that flags any deviation, but correction must identify the exact positions of all flipped bits. Consequently, the syndrome for detection can be compact, whereas correction demands a larger syndrome to resolve each individual error location.
Q4. Which statement correctly compares the redundancy needed for error detection versus error correction for the same message length?
📖 Explanation: Detecting errors only requires enough redundancy to signal an error, often a single parity bit. Correcting errors must also convey the error’s position, which generally demands additional bits, making correction schemes more redundant than pure detection schemes.
Q5. Why can a Hamming (7,4) code correct any single‑bit error but fail to correct a burst error of length 2?
📖 Explanation: A Hamming code’s syndrome uniquely identifies a single erroneous bit. When two adjacent bits flip, the resulting syndrome may correspond to a valid single‑bit error pattern or become ambiguous, preventing the decoder from reliably locating both errors.
Q6. How does the size of the error‑syndrome vector differ when a code is designed to detect up to errors versus to correct up to errors?
📖 Explanation: To merely detect up to errors, the syndrome must distinguish possibilities (including no error), requiring bits. For correction, the syndrome must uniquely identify each combination of error positions among bits, leading to bits, which is larger.
Q7. To guarantee correction of any two‑bit error in a 16‑bit block, what is the minimum number of parity bits required?
📖 Explanation: Using the Hamming bound for double‑error correction, we need where . Solving yields parity bits as the smallest integer satisfying the inequality, ensuring enough syndrome space to locate any two erroneous bits.
Q8. Which simple scheme can detect burst errors up to length 3 in a 12‑bit message while not providing correction capability?
📖 Explanation: A 3‑bit CRC with a suitable generator polynomial can flag any burst error of length ≤3 because such bursts alter the polynomial remainder. The scheme does not give enough information to reconstruct the original data, so it serves only as a detector, not a corrector.
Q9. If a detection system can identify any single‑bit error in a message of length using redundancy bits, how does increasing while keeping constant affect the probability of an undetected error?
📖 Explanation: With a fixed number of redundancy bits, the syndrome space is limited. As the message length grows, the number of possible single‑bit error patterns grows linearly, increasing the chance that distinct error patterns produce identical syndromes, thereby raising the undetected‑error probability.
Q10. In layered network protocols, how can an error‑detection mechanism serve as a foundation for an error‑correction strategy?
📖 Explanation: When a lower layer detects an error, it can request a retransmission of the corrupted packet. This simple acknowledgment‑based approach turns detection into effective correction at higher layers, because the repeated transmission eventually delivers an error‑free copy.
Q11. A binary symmetric channel flips each bit with probability . Using a Hamming (7,4) code, what is the expected proportion of transmitted 7‑bit codewords that will contain a correctable single‑bit error?
📖 Explanation: The probability that exactly one of the seven bits is flipped is . This is the fraction of codewords that experience a single‑bit error, which the Hamming code can reliably correct. All other patterns are either error‑free or uncorrectable.