📝 Go Back N (GBN) sliding window protocol (32 MCQs)
Sender and Receiver Windows in Go-Back-N ARQ
Go-Back-N (GBN) is a sliding-window automatic repeat request protocol generally taught at the OSI data link layer. It allows the sender to transmit several numbered frames before acknowledgments arrive, while the receiver accepts only the next expected frame. Cumulative acknowledgments report in-order progress. If a frame is missing, the sender retransmits that frame and the later outstanding frames in its window.
Why Pipelining Improves on Stop-and-Wait
Stop-and-Wait leaves the link idle during acknowledgment delays because only one frame can be outstanding. GBN improves link use by pipelining multiple frames, which is valuable when propagation delay is large. The receiver deliberately avoids accepting out-of-order frames, keeping its buffering and reordering logic simple; the trade-off is that correctly received frames after a gap may need retransmission.
Cumulative Acknowledgments and Sequence-Number Space
With an m-bit sequence field, the sequence space contains 2^m values and the maximum GBN sender window is normally 2^m - 1. The sender tracks its oldest unacknowledged frame and uses a timer for the outstanding sequence. The receiver accepts only its expected number and sends a cumulative acknowledgment identifying the next frame it requires.
Frame Loss with Three-Bit Sequence Numbers
With a three-bit field, sequence numbers range from 0 to 7 and the maximum sender window is seven frames. Suppose frames 0 and 1 arrive, frame 2 is lost, and frames 3 and 4 reach the receiver. It discards 3 and 4 and continues indicating that 2 is expected. After timeout, the sender retransmits 2, 3, and 4.
Throughput Benefits and the Cost of Repeated Frames
GBN can keep a long-delay link busy because several frames may be in flight simultaneously. Cumulative acknowledgments and a receiver window of one simplify implementation, but one lost frame can force retransmission of later frames that were already received correctly. Its efficiency therefore falls when errors are frequent or when the retransmitted window contains many frames.
Correcting Misunderstandings About GBN Acknowledgments
'GBN accepts every error-free frame regardless of order' is false: it accepts only the next expected frame. 'An ACK always names the last frame received' is misleading: cumulative ACK conventions commonly identify the next expected frame. 'GBN retransmits only the damaged frame' is false: after a gap or timeout, it repeats that frame and subsequent outstanding frames.
Exam Focus: Window Limits and Lost-Frame Tracing
Calculate the maximum sender window from m bits, trace cumulative acknowledgments, and list frames retransmitted after a loss. For m = 3, the maximum window is seven, not eight. Compare GBN with Stop-and-Wait and Selective Repeat by considering pipeline use, receiver buffering, acknowledgment style, and the number of frames repeated after an error.
Key Terms for Go-Back-N Sliding Windows
- Sliding window - permits multiple outstanding frames.
- Cumulative ACK - confirms contiguous in-order progress.
- Sender window - range permitted for transmission.
- Receiver window - range currently acceptable to receiver.
- Sequence space - available frame-number values.
- Retransmission - sending an outstanding frame again.
📝 All Go Back N (GBN) sliding window protocol MCQs
Q1. In GBN, if the sender's timer expires for the packet with sequence number 5, what immediate action does the sender take?
📖 Explanation: When a timeout occurs, GBN assumes the packet and any following packets may have been lost or corrupted. Therefore, the sender must retransmit the timed‑out packet and all later packets that are still unacknowledged, effectively restarting the transmission from that sequence number.
Q2. Which of the following best compares GBN to Stop‑and‑Wait regarding channel utilization?
📖 Explanation: GBN pipelines up to a configurable window size, keeping the channel busy while awaiting acknowledgments. Stop‑and‑Wait sends a single packet and waits for its ACK before sending the next, leaving the channel idle during the round‑trip time. Hence, GBN typically yields higher utilization, especially on high‑delay links.
Q3. In a network where the round‑trip time (RTT) is 150 ms and the link bandwidth is 10 Mbps, what minimum window size is required for GBN to fully utilize the link?
📖 Explanation: Full utilization requires the sender to have enough unacknowledged data to fill the bandwidth‑delay product: . With a typical packet size of 12 kB, the window must be at least 15 packets, so .
Q4. What is the primary purpose of the sequence number field in GBN packets?
📖 Explanation: The sequence number uniquely identifies each data packet within the sender's current window, allowing the receiver to detect missing or out‑of‑order packets and enabling the sender to retransmit the correct range after a loss. This is essential for achieving reliable, ordered delivery.
Q5. If a GBN sender uses a window size of 4 and the receiver correctly receives packets 0, 1, 2 but loses packet 3, what will the receiver send after receiving packet 2?
📖 Explanation: GBN receivers acknowledge the highest in‑order sequence number received. Since packet 3 is missing, the highest contiguous packet is 2, so the receiver sends an ACK for packet 2, prompting the sender to retransmit packet 3 and any later packets.
Q6. How does the GBN protocol's behavior change when the sender’s window size is increased from 2 to 8, assuming the same network conditions?
📖 Explanation: A larger window allows more packets to be in flight, which can raise throughput by better exploiting bandwidth‑delay product. However, if a single packet is lost, the sender must still retransmit all subsequent packets, possibly sending many duplicate frames, thus increasing the chance of unnecessary retransmissions.
Q7. Which analytical statement correctly differentiates the acknowledgment strategy of GBN from Selective Repeat (SR)?
📖 Explanation: GBN employs cumulative acknowledgments, meaning a single ACK confirms receipt of all packets up to a certain sequence number. SR, in contrast, acknowledges each correctly received packet individually, allowing the sender to retransmit only missing packets, which reduces redundant traffic.
Q8. In a scenario where the forward path loss probability is 0.1 and the reverse ACK loss probability is 0.05, which effect is most directly observed in GBN performance?
📖 Explanation: GBN treats any timeout as an indication of loss, so when data packets are lost (10 % chance) or ACKs are lost (5 % chance), the sender will timeout and retransmit the entire window, leading to frequent costly retransmissions and thus lowering throughput.
Q9. Suppose a GBN sender with window size 5 experiences a burst loss of three consecutive packets. What is the minimum number of retransmitted packets the sender must send to recover?
📖 Explanation: Because GBN must resend the first lost packet and all subsequent ones in the window, the sender will retransmit packet 0 (the first lost) plus the next four packets that remain unacknowledged, totaling five retransmissions regardless of the three‑packet loss burst.
Q10. When analyzing GBN's throughput, which logical inference best explains why increasing the timeout interval beyond the round‑trip time can degrade performance?
📖 Explanation: If the timeout is set far beyond the actual round‑trip time, the sender will wait unnecessarily long after a loss before triggering retransmission, leaving the channel idle and reducing overall throughput despite the protocol’s ability to pipeline packets.
Q11. Which conceptual principle explains why GBN requires the sequence‑number space to be at least where is the window size?
📖 Explanation: If the sequence‑number space were only values, a new packet could have the same sequence number as an unacknowledged older packet still in the network, making it impossible for the receiver to distinguish them after wrap‑around. Hence, at least distinct numbers are needed.
Q12. In a GBN system, a sender notices that after a loss event, the receiver repeatedly acknowledges the same sequence number. What does this indicate about the receiver’s state?
📖 Explanation: Repeated ACKs of the same number (a “duplicate ACK”) signal that the receiver has successfully received all packets up to that point but is still missing the next expected packet, prompting the sender to infer where the loss occurred.
Q13. How does the concept of “pipeline depth” relate to GBN’s window size, and what inference can be drawn for high‑delay networks?
📖 Explanation: In GBN, the window size directly determines how many packets may be outstanding simultaneously, which is the pipeline depth. On high‑delay links, a deeper pipeline (larger window) keeps the channel busy, improving throughput despite long round‑trip times.
Q14. If a GBN sender uses a window size of 4 and the receiver’s advertised window is 3, what logical outcome occurs?
📖 Explanation: GBN respects the receiver’s advertised window to prevent buffer overflow. When the receiver can only accept 3 packets, the sender must limit its transmission to that number, effectively shrinking its own window from 4 to 3.
Q15. Which analytical comparison correctly highlights a drawback of GBN relative to Selective Repeat when packet loss is frequent?
📖 Explanation: When losses occur often, GBN’s strategy of retransmitting all packets from the lost one onward results in many unnecessary duplicate transmissions, whereas Selective Repeat only resends the specific missing packets, making it more efficient under high loss conditions.
Q16. In GBN, what conceptual reason explains why the sender does not need to maintain a per‑packet timer?
📖 Explanation: GBN simplifies timeout management by associating a single timer with the oldest unacknowledged packet. If that timer expires, the sender assumes that packet (and all later packets) were lost, triggering a retransmission of the whole window, thus avoiding the overhead of tracking individual timers.
Q17. Which logical reasoning best predicts the effect of decreasing the timeout interval to half the RTT in a low‑loss environment?
📖 Explanation: A timeout that is shorter than the actual round‑trip time can expire before ACKs arrive, leading the sender to falsely assume loss and retransmit packets unnecessarily, which degrades throughput despite the low loss rate.
Q18. Analyze the impact on GBN’s effective throughput if the sequence‑number field is limited to 3 bits while the window size is set to 7.
📖 Explanation: With only 3 bits, the sequence space is 8. A window size of 7 leaves only one unused value, making it easy for new packets to be confused with old ones after wrap‑around, leading to ambiguity and extra retransmissions that reduce effective throughput.
Q19. Conceptually, why does GBN require the receiver to discard out‑of‑order packets rather than buffering them?
📖 Explanation: GBN’s design emphasizes simplicity; the receiver does not maintain a buffer for out‑of‑order packets, instead discarding them and relying on cumulative ACKs. This avoids the complexity of tracking which packets have been received out of order, at the cost of potentially higher retransmission overhead.
Q20. If the sender’s window size is 5 and the receiver acknowledges packet 2, what inference can be made about the receiver’s buffer state?
📖 Explanation: A cumulative ACK for packet 2 means the receiver has successfully received all packets up to and including sequence number 2. Consequently, its buffer now expects the next packet (sequence 3) and can accept up to the remaining window capacity.
Q21. Which logical reasoning explains why GBN cannot achieve the same efficiency as Selective Repeat when the round‑trip time is large relative to packet transmission time?
📖 Explanation: When RTT dominates, a single lost packet forces the sender to retransmit the whole window, which can be large. This results in substantial redundant traffic, whereas Selective Repeat would only resend the missing packet, making it more efficient on high‑delay paths.
Q22. Analytically compare the effect of increasing the GBN window size from 3 to 6 on the probability of a timeout occurring, assuming independent packet loss probability .
📖 Explanation: With a larger window, more packets are in flight, each with an independent loss chance. The chance that at least one packet is lost (triggering a timeout) grows with window size, but the relationship is sub‑linear because the events overlap; thus the increase is noticeable but not simply proportional.
Q23. Conceptually, why does GBN require the sender to keep a copy of each transmitted packet until it is acknowledged?
📖 Explanation: If a packet is lost or its ACK is not received, the sender must resend that exact packet. Keeping a copy ensures the data can be retransmitted unchanged, preserving reliability and order, which is central to GBN’s operation.
Q24. In a network where the loss pattern is bursty, which logical inference best describes GBN’s behavior compared to a protocol with selective acknowledgments?
📖 Explanation: Burst losses cause a contiguous set of packets to be missing. GBN must retransmit the entire window after the first loss, even though many subsequent packets were correctly received, leading to unnecessary traffic. Protocols with selective acknowledgments only resend the lost packets, making them more efficient under bursty conditions.
Q25. Which analytical observation explains why GBN’s timeout value is often set to a multiple of the estimated round‑trip time?
📖 Explanation: Setting the timeout to a factor (e.g., 2×) of the measured RTT provides a safety margin that accommodates RTT variations, ensuring that ACKs have sufficient time to arrive before the sender assumes loss, thereby avoiding unnecessary retransmissions.
Q26. Conceptualize how GBN would behave if the receiver’s ACKs were delayed intentionally by 200 ms. What is the most likely impact on throughput?
📖 Explanation: Delaying ACKs effectively lengthens the round‑trip time perceived by the sender. Since GBN’s window fills based on ACK arrivals, a longer RTT reduces the rate at which the sender can slide the window, thereby lowering overall throughput.
Q27. Which logical reasoning best explains why GBN cannot safely use a window size equal to the entire sequence‑number space?
📖 Explanation: If the window occupied the entire sequence‑number space, a new packet could have the same sequence number as a still‑unacknowledged older packet after wrap‑around, making it impossible for the receiver to distinguish them, which would break reliable delivery.
Q28. Given a GBN window size of 4 and a packet loss probability of 5 %, what is the expected number of transmissions needed to successfully deliver a full window?
📖 Explanation: The probability that all four packets are received without loss is . The expected number of attempts is full windows. Multiplying by the window size gives transmissions, rounded to about 5.3 accounting for partial retransmissions.
Q29. Given a GBN window size of 4 and a packet loss probability of 5 %, what is the expected number of transmissions needed to successfully deliver a full window?
📖 Explanation: With cumulative ACKs, the receiver only needs to track the next expected sequence number. Out‑of‑order packets are discarded, so the receiver does not maintain a buffer of individual packets, greatly simplifying its state management compared to protocols that must store and reorder out‑of‑order arrivals.
Q30. Which factual recall question correctly states the maximum number of unacknowledged packets GBN can have if the sequence‑number space is 8?
📖 Explanation: GBN can have at most unacknowledged packets where ≤ sequence‑number space − 1. With an 8‑value space, the maximum window is 7, allowing up to seven packets to be sent without acknowledgment.
Q31. Which factual recall question identifies the layer that directly provides the services used by GBN?
📖 Explanation: Go‑Back‑N is a transport‑layer protocol; it resides in the transport layer, which directly offers the socket‑type services to applications and receives services from the network layer.
Q32. Logical reasoning: If a GBN sender’s window is full and a new ACK for the earliest packet arrives, what immediate effect does this have on the sender’s ability to transmit?
📖 Explanation: When the earliest unacknowledged packet is acknowledged, the sender can advance its sliding window, freeing one slot. This enables the transmission of a new packet while maintaining the window size, ensuring continuous flow of data without waiting for additional acknowledgments.