Go Back N - ARQ

Duration: 13 min

This video lesson is available to enrolled students.

Enroll to watch — ISRO Scientist/Engineer 'SC'

AI Summary

An AI-generated summary of this video lecture.

The lecture provides a comprehensive overview of the Go-Back-N Automatic Repeat Request (ARQ) protocol. It begins by establishing the need for pipelining to improve transmission efficiency, allowing multiple frames to be in transit simultaneously. The instructor uses a detailed diagram to explain the send window, sequence numbers, and the specific regions of the window, such as acknowledged, outstanding, sendable, and unsendable frames. He clarifies the window size constraint formula ($S_{size} = 2^m - 1$) and the buffer management required for outstanding frames. Finally, the lecture addresses the timer mechanism, explaining that a single timer is used for the first outstanding frame, and a timeout triggers a retransmission of all outstanding frames, ensuring data integrity. The visual aids, including the sequence number bar and the sender-receiver diagrams, are crucial for understanding the flow of data and control.

Chapters

  1. 0:00 2:00 00:00-02:00

    The lecture begins with the title "Go-Back-N Automatic Repeat Request" displayed at the top of the slide. The instructor explains that to improve transmission efficiency, often described as "filling the pipe," multiple frames must be in transition simultaneously while waiting for acknowledgments. The slide text states, "In other words, we need to let more than one frame be outstanding to keep the channel busy while the sender is waiting for acknowledgment." He introduces the protocol where several frames can be sent before receiving acknowledgments, and copies of these frames are kept until the acknowledgments arrive. This sets the stage for understanding how pipelining works in data link layer protocols, moving away from stop-and-wait mechanisms. He emphasizes that this is the first protocol discussed that allows this behavior.

  2. 2:00 5:00 02:00-05:00

    The instructor focuses on a diagram illustrating the send window. He points to a sequence of numbers from 0 to 6, which are highlighted in orange. The diagram labels these as "Frames sent, but not acknowledged (outstanding)". He explains the boundaries of the window, pointing to $S_f$ (first outstanding frame) and $S_n$ (next frame to send). The slide displays the formula for the send window size: $S_{size} = 2^m - 1$. He also draws a simple diagram on the whiteboard with 'S' for Sender and 'R' for Receiver, showing frames moving between them to visualize the concept of frames in transit. He writes "15 (1111)" on the board, likely referring to the sequence number space for $m=4$, indicating the maximum sequence number is 15.

  3. 5:00 10:00 05:00-10:00

    Continuing with the window diagram, the instructor breaks down the four regions defined by the window. He points to the text "Frames already acknowledged" on the far left, followed by the orange region "Frames sent, but not acknowledged (outstanding)". He then indicates the region "Frames that can be sent, but not received from upper layer" and finally "Frames that cannot be sent". He emphasizes that the sender keeps a copy of the outstanding frames (0 through 6 in the example) in a buffer. He explains that the window slides forward as acknowledgments are received, allowing new frames to be sent. This mechanism ensures the channel remains busy without exceeding the window size limit, preventing sequence number ambiguity. He specifically points to the number 7 as the next frame to be sent.

  4. 10:00 12:31 10:00-12:31

    The topic shifts to "Timers". The slide text reads, "Although there can be a timer for each frame that is sent, in our protocol we use only one." The instructor explains that the timer for the first outstanding frame always expires first. He draws a diagram showing a timeout event. When this timer expires, the protocol dictates that all outstanding frames are resent. He contrasts two scenarios in the diagrams: one where the window size is less than $2^m$ (labeled 'a') and one where it equals $2^m$ (labeled 'b'). He points out how a timeout leads to retransmission, ensuring reliability even if acknowledgments are lost. He specifically points to the "Time-out" label and the subsequent retransmission of frames 0, 1, 2, and 3. He also discusses the concept of "Correctly discarded" and "Erroneously accepted" in the context of window size constraints.

The lecture provides a comprehensive overview of the Go-Back-N ARQ protocol. It starts by establishing the need for pipelining to improve efficiency, allowing multiple frames to be in transit. The instructor uses a detailed diagram to explain the send window, sequence numbers, and the specific regions of the window (acknowledged, outstanding, sendable, unsendable). He clarifies the window size constraint ($2^m - 1$) and the buffer management required for outstanding frames. Finally, the lecture addresses the timer mechanism, explaining that a single timer is used for the first outstanding frame, and a timeout triggers a retransmission of all outstanding frames, ensuring data integrity. The visual aids, including the sequence number bar and the sender-receiver diagrams, are crucial for understanding the flow of data and control. The distinction between window sizes less than and equal to $2^m$ is highlighted as a critical factor in protocol correctness.