Sliding window protocol program in java

broken image
broken image
broken image

It uses the principle of protocol pipelining in which the multiple frames can be sent before receiving the acknowledgment of the first frame. Suppose we say that Go-Back-3, which means that the three frames can be sent at a time before expecting the acknowledgment from the receiver. In Go-Back-N ARQ, N is the sender's window size. Let's understand 'what is Go-Back-N ARQ'. The variations of sliding window protocol are Go-Back-N ARQ and Selective Repeat ARQ. In the stop-and-wait protocol, the sender can send only one frame at a time and cannot send the next frame without receiving the acknowledgment of the previously sent frame, whereas, in the case of sliding window protocol, the multiple frames can be sent at a time. As we know that the sliding window protocol is different from the stop-and-wait protocol. Before understanding the working of Go-Back-N ARQ, we first look at the sliding window protocol.

broken image