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 1–5 of 69
Consider the implementation of sliding window protocol over a lossless link, with a window size of frames, where each frame is of size bits (including header). The bandwidth of the link is and the one-way propagation delay is milliseconds. Assume that processing times at the sender and receiver are zero and the transmission time of acknowledgements is also zero. Which one of the following options gives the minimum size of (in number of frames) required to achieve link utilization?
Answer: (B)
Transmission time is ms.
To reach link utilization with a sliding window, the sender has to keep sending without a break until the acknowledgement of the first frame comes back. That time is . It is the one-way propagation to the receiver, plus the one-way propagation for the ack to return, with zero processing time and zero ack transmission time.
So the condition is: .
Answer: 21
To reach link utilization with a sliding window, the sender has to keep sending without a break until the acknowledgement of the first frame comes back. That time is . It is the one-way propagation to the receiver, plus the one-way propagation for the ack to return, with zero processing time and zero ack transmission time.
So the condition is: .
Answer: 21
Consider the transmission of data bits over a link that uses Cyclic Redundancy Check (CRC) code for error detection. If the generator bit pattern is given to be , which one of the following options shows the remainder bit pattern appended to the data bits before transmission?
Answer: (D)
The generator has degree 3, so append 3 zeros to the data: . Divide by using modulo-2 division (subtraction is XOR). When the leading bit is 0, XOR with .
Take the first 4 bits : . Bring down the next bit 0: .
. Bring down 1: .
Leading bit 0, so the result is . Bring down 0: .
. Bring down 1: .
. Bring down 1: .
. Bring down 0: .
. Bring down 0: .
Leading bit 0, so the result is . Bring down the last 0: .
Leading bit 0, so the result stays . All bits are used, so the remainder is the last 3 bits, .
The transmitted word is .
Answer: (D)
Take the first 4 bits : . Bring down the next bit 0: .
. Bring down 1: .
Leading bit 0, so the result is . Bring down 0: .
. Bring down 1: .
. Bring down 1: .
. Bring down 0: .
. Bring down 0: .
Leading bit 0, so the result is . Bring down the last 0: .
Leading bit 0, so the result stays . All bits are used, so the remainder is the last 3 bits, .
The transmitted word is .
Answer: (D)
It is necessary to design a link-layer protocol between two hosts that are directly connected over a lossless link of length kilometers. Assume that the link bandwidth is bits per second and that the propagation delay in the link is nanoseconds per meter. Every transmitted data byte is assigned a unique sequence number.
Let be the minimum number of bits needed for the sequence number field in the protocol header such that:
(i) the sequence numbers do not wrap around before seconds, and
(ii) the maximum utilization of the link is achieved.
The value of is ______. (answer in integer)
Let be the minimum number of bits needed for the sequence number field in the protocol header such that:
(i) the sequence numbers do not wrap around before seconds, and
(ii) the maximum utilization of the link is achieved.
The value of is ______. (answer in integer)
Answer: 30
One-way propagation delay: ms. So the round-trip time is ms, which s.
Condition (ii), maximum utilization: the window in bits must be at least the bandwidth-delay product. That gives bits, which bytes. This needs at least sequence-number bits.
Condition (i), no wraparound within 60 s: the bytes sent in s at full bandwidth bytes. We need , so (because ).
Here has to meet both conditions together. The stricter one is condition (i), which needs bits, so it sets the answer.
Answer: 30
Condition (ii), maximum utilization: the window in bits must be at least the bandwidth-delay product. That gives bits, which bytes. This needs at least sequence-number bits.
Condition (i), no wraparound within 60 s: the bytes sent in s at full bandwidth bytes. We need , so (because ).
Here has to meet both conditions together. The stricter one is condition (i), which needs bits, so it sets the answer.
Answer: 30
Suppose we are transmitting frames between two nodes using the Stop-and-Wait protocol. The frame size is 3000 bits. The transmission rate of the channel is 2000 bps (bits/second) and the propagation delay between the two nodes is 100 milliseconds. Assume that the processing times at the source and destination are negligible. Also, assume that the size of the acknowledgment packet is negligible. Which ONE of the following most accurately gives the channel utilization for the above scenario in percentage?
Answer: (A)
The time to transmit one frame is s. The one-way propagation delay is s.
In Stop-and-Wait, after the sender sends a frame, it has to wait for a full round trip before it sends the next one. The time to send the ack and the processing time are negligible:
Utilization
Answer: 88.23
In Stop-and-Wait, after the sender sends a frame, it has to wait for a full round trip before it sends the next one. The time to send the ack and the processing time are negligible:
Utilization
Answer: 88.23
Consider an Ethernet segment with a transmission speed of bits/sec and a maximum segment length of 500 meters. If the speed of propagation of the signal in the medium is meters/sec, then the minimum frame size (in bits) required for collision detection is _________
Answer: 500
To detect a collision, the time to send the frame must be at least the time for the signal to go and come back:
Propagation time:
Minimum frame size: bits
Answer: 500
Propagation time:
Minimum frame size: bits
Answer: 500
Keep practising