Data Link Layer · Computer Networks
69 questions · asked in 19 of 27 years (2000–2026)
MCQ 53 · NAT 161-mark 38 · 2-mark 31
2000Questions per year2026
Questions 41–45 of 69
An error correcting code has the following code words: 00000000, 00001111, 01010101, 10101010, 11110000. What is the maximum number of bit errors that can be corrected?
Answer: (C)
Find the minimum Hamming distance between any two code words (the number of positions in which they differ).
00000000 and 00001111 differ in 4 bits; 00000000 and 01010101 in 4; 00000000 and 10101010 in 4; 00000000 and 11110000 in 4.
00001111 and 01010101 in 4; 00001111 and 10101010 in 4; 00001111 and 11110000 in 8.
01010101 and 10101010 in 8; 01010101 and 11110000 in 4; 10101010 and 11110000 in 4.
So .
Errors that can be corrected: . (Up to errors can be detected, but not corrected. Option (B) mixes these up.)
Answer: (C)
00000000 and 00001111 differ in 4 bits; 00000000 and 01010101 in 4; 00000000 and 10101010 in 4; 00000000 and 11110000 in 4.
00001111 and 01010101 in 4; 00001111 and 10101010 in 4; 00001111 and 11110000 in 8.
01010101 and 10101010 in 8; 01010101 and 11110000 in 4; 10101010 and 11110000 in 4.
So .
Errors that can be corrected: . (Up to errors can be detected, but not corrected. Option (B) mixes these up.)
Answer: (C)
The distance between two stations M and N is L kilometers. All frames are K bits long. The propagation delay per kilometer is t seconds. Let R bits/second be the channel capacity. Assuming that processing delay is negligible, the minimum number of bits for the sequence number field in a frame for maximum utilization, when the sliding window protocol is used, is:
Answer: (C)
Let be the frame transmission time and the one-way propagation time. For maximum utilization the sender must keep sending for a whole round trip, so the window size is
.
Here the minimum is taken as just enough sequence numbers to number one full window, so and . The strict protocol rules ask for more numbers: Go-Back-N needs and Selective Repeat needs . This question does not use them.
Why the others do not match: (A) is , the strict Go-Back-N count; (D) is ; (B) is , which is too small to number the whole window.
Answer: (C)
.
Here the minimum is taken as just enough sequence numbers to number one full window, so and . The strict protocol rules ask for more numbers: Go-Back-N needs and Selective Repeat needs . This question does not use them.
Why the others do not match: (A) is , the strict Go-Back-N count; (D) is ; (B) is , which is too small to number the whole window.
Answer: (C)
The message 11001001 is to be transmitted using the CRC polynomial +1 to protect it from errors. The message that should be transmitted is:
Answer: (B)
The generator is . It has degree 3, so append 3 zeros to the message: . Divide by using XOR (no borrow). At each step, if the leading bit is 1, XOR with the 4 bits starting there:
11001001000
1001 at bit 1: 01011001000
1001 at bit 2: 00010001000
1001 at bit 4: 00000011000
1001 at bit 7: 00000001010
1001 at bit 8: 00000000011
The remainder is the last 3 bits, . Put it in place of the appended zeros: 11001001 followed by 011 gives 11001001011.
Answer: (B)
11001001000
1001 at bit 1: 01011001000
1001 at bit 2: 00010001000
1001 at bit 4: 00000011000
1001 at bit 7: 00000001010
1001 at bit 8: 00000000011
The remainder is the last 3 bits, . Put it in place of the appended zeros: 11001001 followed by 011 gives 11001001011.
Answer: (B)
There are n stations in a slotted LAN. Each station attempts to transmit with a probability p in each time slot. What is the probability that ONLY one station transmits in a given time slot?
Answer: (A)
The chance that exactly one station sends in a slot is
So the answer is option A.
Here, is for the 1 station that sends. is for each of the stations that do not send. There are ways to pick station out of .
On a wireless link, the probability of packet error is 0.2. A stop-and-wait protocol is used to transfer data across the link. The channel condition is assumed to be independent of transmission to transmission. What is the average number of transmission attempts required to transfer 100 packets?
Answer: (B)
Say we have to send packets, and is the error probability. If we send packets, then of them are lost, so we have to send those packets again. The error is still there, so when we resend them, are lost again, and so on. The total number of transmissions is the series:
(sum of an infinite GP, as )
With and : transmissions on average. (This is attempts per packet.)
Answer: (B)
(sum of an infinite GP, as )
With and : transmissions on average. (This is attempts per packet.)
Answer: (B)
Keep practising