Follow these steps:
NOTE: For better understanding we have not used the sequence number for representing frames instead we have taken the running serial number i.e., 1,2,3,4,5,6....
1. Firstly, send the first four frames to the receiver, i.e., 1, 2, 3, 4 and now the sender is expected to receive the acknowledgment of the 1st frame.
2. After ACK 1 received, select the next frame to be sent i.e., 5th and the window slides containing four frames, i.e., 2, 3, 4, 5.
3. NAK received, retransmit the frame 2.
4. After ACK 3 lost, retransmit the frame 3.
5. After ACK 4 received, select the next frame to be sent.
6. ACK 5, 2, 3, 6 received, select the next four frame to be sent.
7. ACK 7, 8, 9, 10 received, ALL FRAMES SENT!
8. Input the correct total number of frames transmitted and click the Submit button.