Back to the 2025 paper

Module 2: Data Link Layer & MAC Sublayer

20257m

Write a short note on Sliding Window Protocol.

Question 9 asks candidates to write short notes on any two listed topics.

Worked SolutionAI Assisted

Sliding Window Protocol

A flow and error control technique that lets the sender transmit several frames before waiting for an acknowledgement, so the channel stays busy (unlike Stop-and-Wait). The sender and receiver each keep a window of allowed sequence numbers.

SVGVector Architecture Diagram (SVG)
Sender window (size 4) 01234 56789 ACKedSent, ACK pendingCan be sent Outside window Window slides right as ACKs arrive

Working

  1. Frames are numbered with mm-bit sequence numbers (0 to 2m−12^m - 1).
  2. The sender window holds the numbers of frames that may be sent or are awaiting ACK; it slides forward when ACKs arrive.
  3. The receiver window holds the numbers of frames it can accept.
  4. ACKs may be cumulative, and can be piggybacked on data frames.

Variants

Go-Back-N ARQ Selective Repeat ARQ
Sender window Up to 2m−12^m - 1 Up to 2m−12^{m-1}
Receiver window 1 Same as sender
On error Retransmit the lost frame and all after it Retransmit only the lost frame
Out-of-order frames Discarded Buffered
Complexity Low High

Efficiency

Efficiency=N1+2a\text{Efficiency} = \frac{N}{1 + 2a}

where NN is the window size and a=Tp/Tta = T_p / T_t (capped at 1). A larger window gives better utilization than Stop-and-Wait (N=1N=1).

Similar questions

Official AppAndroid App

PYQDeck for Android

Solve BEU previous-year exam papers anywhere, anytime. Fast search, offline paper viewing, and step-by-step solutions designed specifically for your phone.