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 51–55 of 69
Station A needs to send a message consisting of 9 packets to Station B using a siding window (window size 3) and go-back-n error control strategy. All packets are ready and immediately available for transmission. If every 5th packet that A transmits gets lost (but no acks from B ever get lost), then what is the number of packets that A will transmit for sending the message to B ?
Answer: (C)
Window size 3, go-back-N: if a packet is lost, the receiver discards the later packets, and the sender goes back and resends the lost packet and everything after it in the window.
Count transmissions in order (every 5th one, the 5th, 10th and 15th, is lost; these are the grey packets in the figure).
Transmissions 1 to 4 are packets 1, 2, 3, 4. The 5th transmission, packet 5, is lost. Packets 6 and 7 are still sent but discarded. That is 7 transmissions.
Resend 5, 6, 7. The 10th transmission (packet 7) is lost. Packets 8 and 9 are sent but discarded. That is 5 more, total 12.
Resend 7, 8, 9. The 15th transmission (packet 9) is lost. That is 3 more, total 15.
Resend packet 9, which gets through. That is 1 more.
Total transmissions.
Answer: (C)
Count transmissions in order (every 5th one, the 5th, 10th and 15th, is lost; these are the grey packets in the figure).
Transmissions 1 to 4 are packets 1, 2, 3, 4. The 5th transmission, packet 5, is lost. Packets 6 and 7 are still sent but discarded. That is 7 transmissions.
Resend 5, 6, 7. The 10th transmission (packet 7) is lost. Packets 8 and 9 are sent but discarded. That is 5 more, total 12.
Resend 7, 8, 9. The 15th transmission (packet 9) is lost. That is 3 more, total 15.
Resend packet 9, which gets through. That is 1 more.
Total transmissions.
Answer: (C)
Station A uses 32 byte packets to transmit messages to Station B using a sliding window protocol. The round trip delay between A and B is 80 milliseconds and the bottleneck bankwidth on the path between A and B is 128 kbps. What is the optimal window size that A should use ?
Answer: (B)
The round trip delay is . The sender should keep sending during this time, until the first comes back, so the link is never idle.
Data the link can carry in .
Packet size .
Optimal window size .
Same result by time: one packet takes to send, so in the sender sends packets. Here the 80 ms is taken as the whole time before the first ACK returns, so the window is exactly 40.
Answer: (B)
Data the link can carry in .
Packet size .
Optimal window size .
Same result by time: one packet takes to send, so in the sender sends packets. Here the 80 ms is taken as the whole time before the first ACK returns, so the window is exactly 40.
Answer: (B)
Consider the following message M = 1010001101. The cyclic redundancy check (CRC) for this message using the divisor polynomial is :
Answer: (A)
The divisor has degree 5, so its bits are 110101 and 5 zeros are appended to the message: 101000110100000.
Divide 101000110100000 by 110101 using XOR (modulo-2 division), bringing down bits as needed:
1. 101000 XOR 110101 = 011101. Bring down 1: 111011.
2. 111011 XOR 110101 = 001110. Bring down 1, 0: 111010.
3. 111010 XOR 110101 = 001111. Bring down 1, 0: 111110.
4. 111110 XOR 110101 = 001011. Bring down 0, 0: 101100.
5. 101100 XOR 110101 = 011001. Bring down 0: 110010.
6. 110010 XOR 110101 = 000111. Bring down the last 0: remainder 01110.
The CRC is the 5-bit remainder 01110. The transmitted message is 1010001101 01110.
Answer: (A)
Divide 101000110100000 by 110101 using XOR (modulo-2 division), bringing down bits as needed:
1. 101000 XOR 110101 = 011101. Bring down 1: 111011.
2. 111011 XOR 110101 = 001110. Bring down 1, 0: 111010.
3. 111010 XOR 110101 = 001111. Bring down 1, 0: 111110.
4. 111110 XOR 110101 = 001011. Bring down 0, 0: 101100.
5. 101100 XOR 110101 = 011001. Bring down 0: 110010.
6. 110010 XOR 110101 = 000111. Bring down the last 0: remainder 01110.
The CRC is the 5-bit remainder 01110. The transmitted message is 1010001101 01110.
Answer: (A)
In a TDM medium access control bus LAN, each station is assigned one time slot per cycle for transmission. Assume that the length of each time slot is the time to transmit plus the end-to-end propagation delay. Assume a propagation speed of . The length of the LAN is 1 km with a bandwidth of . The maximum number of stations that can be allowed in the LAN so that the throughput of each station can be is
Answer: (C)
Transmission time of 100 bits:
End-to-end propagation delay:
Each slot is , and only of it carries data. Network efficiency
Total throughput the whole network can give
Take the number of stations as (each wants a throughput of ):
So at most 10 stations can be connected to the channel.
Answer: (C)
End-to-end propagation delay:
Each slot is , and only of it carries data. Network efficiency
Total throughput the whole network can give
Take the number of stations as (each wants a throughput of ):
So at most 10 stations can be connected to the channel.
Answer: (C)
A channel has a bit rate of 4 kbps and one-way propagation delay of 20 ms. The channel uses stop and wait protocol. The transmission time of the acknowledgment frame is negligible. To get a channel efficiency of at least 50%, the minimum frame size should be
Answer: (D)
To get utilization with Stop-and-wait, we need:
Here, is the transmission time and is the propagation delay. Also, where is the frame length in bits and is the bitrate of the channel.
So, the answer is D.
Keep practising