Implementation of Stop & Wait ARQ Flow control Protocol.
General Instructions:
- The aim is to introduce the students to the working of the Stop and Wait ARQ and how it behaves under the situations such as Frame Lost or Acknowledgement lost.
- Once redirected to the simulation page click on the instructions button prompted on the right side of the page.
- Since Stop and Wait ARQ does not follow sliding window protocol, ONLY ONE frame should be selected at a time to move ahead with the simulation.
- The user needs to make the right selections in the array (labeled as Frames) for the simulation to run further and for better understanding, we have taken the running serial number to represent the frames otherwise it works on sequence numbers i.e., 0,1,0,1.....
- If the user fails to select the correct frame at any point of simulation, the “Wrong Frame Selected” is alerted on the screen and until the user successfully selects the correct frame, the simulation does not proceed and the user is given as many retries as needed.
- An index is provided to the left of the screen to allow the user to understand which color signifies what behaviour.
- Firstly, select the first frame, i.e., 1 to be sent to the receiver and now wait to receive the acknowledgment of the 1st frame.
- After ACK 1 received, select the next frame to be sent.
- ACK 2 not received because the acknowledgment is lost, retransmits the frame.
- After ACK 2 received, select the next frame to be sent.
- After ACK 3 received, select the next frame to be sent.
- Frame 4 got lost, retransmit the frame.
- After ACK 4 received, select the next frame to be sent.
- ACK 5 received, ALL FRAMES SENT!
- Input the correct total number of frames transmitted and click the Submit button.