Error Detection in Data Link Layer (ET: 2.5 hours)
Topic Wise Question Bank
Error Detection
Hamming Code Error Detection and Correction
1. Finding the Number of Redundant Bits (r)

Given Data (m): 1011 → Length of data, $m = 4$

Formula: 2r ≥ m + r + 1

For r = 1: 21 ≥ 4 + 1 + 1 ⇒ 2 ≥ 6 (False)
For r = 2: 22 ≥ 4 + 2 + 1 ⇒ 4 ≥ 7 (False)
For r = 3: 23 ≥ 4 + 3 + 1 ⇒ 8 ≥ 8 (True)

Selected r = 3. Total bits = $m + r = 4 + 3 = 7$ bits.

2. Bit Positions and Parity Bit Calculation (Even Parity)

Place parity bits at positions that are powers of 2 (1, 2, 4):

7654321
101R31R2R1

Binary Position Table

PositionR3 (4)R2 (2)R1 (1)
0000
1 (R1)001
2 (R2)010
3011
4 (R3)100
5101
6110
7111

Parity Bit Values

Bit Coverages:

  • R1 covers positions (1, 3, 5, 7)
  • R2 covers positions (2, 3, 6, 7)
  • R3 covers positions (4, 5, 6, 7)

Even Parity Calculation:

R1 → (R1, Bit3, Bit5, Bit7) → (R1, 1, 1, 1) ⇒ R1 = 1 (to make count of 1s even)

R2 → (R2, Bit3, Bit6, Bit7) → (R2, 1, 0, 1) ⇒ R2 = 0 (already even)

R3 → (R3, Bit5, Bit6, Bit7) → (R3, 1, 0, 1) ⇒ R3 = 0 (already even)

Final Transmitted Hamming Code:

7654321
1010101

Transmitted Data: 1010101

3. Error Detection on Received Data

Received Data: 1110101

7654321
1110101

Even Parity Check:

P1 (Positions 1, 3, 5, 7) → bits (1, 1, 1, 1) → Total 1s = 4 (Even) ⇒ 0

P2 (Positions 2, 3, 6, 7) → bits (0, 1, 1, 1) → Total 1s = 3 (Odd) ⇒ 1

P3 (Positions 4, 5, 6, 7) → bits (0, 1, 1, 1) → Total 1s = 3 (Odd) ⇒ 1

Error Location Calculation:

Syndrome Bits: (P3, P2, P1) = (1, 1, 0)2

Binary (110)2 = 1 × 22 + 1 × 21 + 0 × 20 = 4 + 2 + 0 = 6

Conclusion: Yes, there is an error! The error is located at Bit Position 6.

Correcting bit position 6 from 1 to 0 restores the original data: 1010101.

Topic Wise Question Bank
All Topics
  • Briefly explain Error Detection Technique in Data Link Layer . (Key Point)
  • Find the CRC for 1110010101 with the divisor x3+x2+1?
  • Suppose we want to transmit the message 11001001 and protect it from errors using the CRC polynomial x3+1. Use polynomial long division to determine the message that should be transmitted. Corrupt the left-most third bit of the transmitted message and show that the error is detected by the receiver using CRC technique.
  • Suppose the sender wants to transmit 4 frames of 8 bits each: 11001100, 10101010, 11110000, and 11000011. Find the Checksum,

    and also Verify if Receiver1 Received Data as :1100110010101010111100001100001111010011

    Is received data is error free or not? Explain your Answer.

📘 Error Control
1. Which layer of the OSI model is mainly responsible for error control at the frame level?
2. Which of the following is a type of transmission error?
3. Which error occurs when only one bit of a data unit is changed?
4. What is a burst error?
5. If the first corrupted bit is at position 3 and the last corrupted bit is at position 10, what is the burst length?
6. What is the main purpose of error detection?
7. What are the extra bits added to data for error detection called?
8. Which of the following is NOT an error-detection technique?
9. What does VRC stand for?
10. VRC is commonly known as what?
11. What does a parity bit do?
12. In even parity, the total number of 1s including the parity bit should be:
13. In odd parity, the total number of 1s including the parity bit should be:
14. Data = 10101. Using even parity, what is the parity bit?
15. Data = 10101. Using odd parity, what is the parity bit?
16. If even parity is used and the received code contains an odd number of 1s, what does the receiver conclude?
17. Parity checking can reliably detect:
18. Simple parity checking cannot detect:
19. Can a simple parity bit identify the exact position of an error?
20. Can a simple parity bit correct an error?
21. What does LRC stand for?
22. LRC organizes data mainly into:
23. What is the main idea behind a checksum?
24. In the checksum method, data is divided into:
25. Which operation is commonly used to generate the checksum from the final sum?
26. What is an end-around carry in checksum calculation?
27. During receiver verification of a checksum, what result indicates error-free data?
28. If the checksum verification result is not all 1s, the receiver should conclude that:
29. Which error-detection technique uses binary polynomial division?
30. What does CRC stand for?
31. In CRC, what is the binary divisor called?
32. If the generator has n bits, how many zeros are appended to the original data before CRC division?
33. What operation is primarily used in CRC binary division?
34. What is the remainder obtained from CRC division called?
35. After calculating the CRC remainder, what is appended to the original data?
36. At the receiver, the received codeword is divided by:
37. In CRC, a remainder of zero at the receiver generally means:
38. In CRC, a non-zero remainder at the receiver means:
39. Find the CRC for data 100100 using divisor 1101. How many zeros should be appended before division?
40. For data 100100 and divisor 1101, the data before CRC division becomes:
41. Data 11100 is to be transmitted using CRC with divisor 1001. How many zeros are appended?
42. For data 11100 and divisor 1001, the dividend used for CRC division is:
43. For data 11100 with divisor 1001, if the CRC remainder is 111, what is the transmitted codeword?
44. Which error-detection technique is particularly effective for detecting burst errors?
45. What is the main difference between error detection and error correction?
46. Which of the following is a method of error correction through retransmission?
47. Which statement about redundancy is correct?
48. Which sequence correctly represents the basic error-detection process?

Leave a Comment

WhatsApp Telegram Messenger