🎓 BookMCQ
← Back to 10. Error Detection and Correction

📝 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.
3
Easy
4
Medium
4
Hard

📝 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?

A.Detection only determines if an error occurred; correction also identifies the error’s location and value. ✅
B.Detection corrects errors; correction only signals presence.
C.Both perform the same function but with different hardware.
D.Detection works only for burst errors.
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.8
B.9 ✅
C.16
D.256
💡 Difficulty: medium | ✅ Correct: B

📖 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?

A.Detection requires only one parity check, while correction needs to locate each flipped bit.
B.There are fewer possible burst patterns than single‑bit errors.
C.The syndrome for detection can be shorter than the syndrome needed for locating the exact bits. ✅
D.Burst errors cannot be detected at all.
💡 Difficulty: hard | ✅ Correct: C

📖 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?

A.Detection typically needs fewer extra bits than correction.
B.Detection needs more bits because it must check multiple patterns.
C.Both require the same number of parity bits.
D.Correction needs no extra bits if the message is short. ✅
💡 Difficulty: easy | ✅ Correct: D

📖 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?

A.The code’s parity‑check matrix can only resolve one error position at a time.
B.Burst errors affect parity bits only.
C.Hamming codes are designed for even‑length messages.
D.The syndrome becomes zero for any burst error. ✅
💡 Difficulty: easy | ✅ Correct: D

📖 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 tt errors versus to correct up to tt errors?

A.Detection and correction need the same syndrome length.
B.Correction needs one extra bit more than detection.
C.Detection requires ⌈log⁡2(t+1)⌉\lceil \log_2 (t+1) \rceil bits, correction requires ⌈log⁡2(nt)⌉\lceil \log_2 \binom{n}{t} \rceil.
D.Detection needs more bits because it must cover all error patterns. ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: To merely detect up to tt errors, the syndrome must distinguish t+1t+1 possibilities (including no error), requiring ⌈log⁡2(t+1)⌉\lceil \log_2 (t+1) \rceil bits. For correction, the syndrome must uniquely identify each combination of tt error positions among nn bits, leading to ⌈log⁡2(nt)⌉\lceil \log_2 \binom{n}{t} \rceil 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?

A.7
B.8
C.9 ✅
D.6
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Using the Hamming bound for double‑error correction, we need 2r≥n+1+(n2)2^{r} \ge n + 1 + \binom{n}{2} where n=16+rn = 16 + r. Solving yields r=9r = 9 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?

A.A 3‑bit repetition code.
B.A single parity bit covering all 12 bits.
C.A Hamming (13,9) code.
D.A 3‑bit cyclic redundancy check (CRC) with generator polynomial x3+x+1x^3 + x + 1. ✅
💡 Difficulty: medium | ✅ Correct: D

📖 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 LL using rr redundancy bits, how does increasing LL while keeping rr constant affect the probability of an undetected error?

A.The probability stays the same because detection capability is unchanged.
B.The probability decreases because longer messages have more bits to check.
C.The probability increases because more error patterns can map to the same syndrome. ✅
D.The probability becomes zero for any length.
💡 Difficulty: hard | ✅ Correct: C

📖 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?

A.By providing syndrome information that higher layers can use to guess the original data.
B.By retransmitting the whole packet when detection signals an error, enabling correction at a higher layer. ✅
C.By guaranteeing that no errors ever occur, eliminating the need for correction.
D.By converting detected errors into erasures that can be corrected with erasure codes.
💡 Difficulty: hard | ✅ Correct: B

📖 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 p=0.01p = 0.01. Using a Hamming (7,4) code, what is the expected proportion of transmitted 7‑bit codewords that will contain a correctable single‑bit error?

A.Approximately 7p(1−p)67p(1-p)^6.
B.Approximately pp.
C.Approximately 7p7p.
D.Approximately 1−(1−p)71 - (1-p)^7. ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: The probability that exactly one of the seven bits is flipped is (71)p(1−p)6=7p(1−p)6\binom{7}{1}p(1-p)^6 = 7p(1-p)^6. 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.

🔗 Related Topics (MCQs)