CN

Sliding Window Protocols

Hard
EST. TIME: 45 min

Sliding Window Protocols

To study and analyze the performance of various flow control protocols: Stop & Wait, Go-Back-N, and Selective Repeat.

Theory

Sliding Window Protocols are data link layer protocols used for reliable and sequential delivery of data frames. They provide Flow Control to ensure a fast sender doesn't overwhelm a slow receiver.

Stop & Wait ARQ

The sender sends one frame and waits for an acknowledgment (ACK) before sending the next. It is simple but inefficient due to high waiting time.

Go-Back-N (GBN)

Sender can send multiple frames (up to window size 'N') without waiting for ACKs. If a frame is lost, the sender retransmits ALL frames from the lost one onwards. Uses Cumulative ACKs.

Selective Repeat (SR)

Similar to GBN, but ONLY the lost frame is retransmitted. The receiver buffers out-of-order frames. It is more efficient but requires more complex logic at both ends.

Procedure

  1. Select the Protocol: Stop & Wait, GBN, or Selective Repeat.
  2. Set the Window Size and Timeout values.
  3. Start the simulation and observe the sequence numbers of transmitted packets.
  4. Use the Manual Error Injection buttons to simulate a "Lost Packet" or "Lost ACK".
  5. Observe the retransmission behavior (Does it resend one packet or the whole window?).
  6. Analyze the Efficiency and Throughput graphs to compare the three methods.

Ready to Start?

Launch the virtual simulator to visualize the network layers and verify protocols.

Resources

  • Reference Guide
  • Animation Lecture
  • Self Quiz

Hi, how can I help you Today!