Assignment CIT-223
Assignment CIT-223
Sender Window:
At the beginning of a transmission, the sender window contains n-1 frames, and when they are
sent out, the left boundary moves inward shirking the size of the window. For example, if the
size of the window is w if three frames are sent out, then the number of frames left out in the
sender window is w-3.
Once the ACK has arrived, then the sender window expands to the number which will be equal
to the number of frames acknowledge by ACK.
For Example, the size of the window is 7, and if frames 0 through 4 have been sent out and no
ACK has arrived, then the sender Window contains only two frames, i.e., 5 and 6 if ACK has
arrived with a number 4 which means that 0 through 3 frames have arrived undamaged and
sender window is expanded to include the next four frames. Therefore, the sender window
contains six frames (5,6,7,0,1,2).
Advantage of Stop-and-wait:
The Stop and wait method is simple as each is checked and ACK before the next frame is sent.
Disadvantage of Stop-and-wait:
Stop and wait technique is inefficient to use as each frame must travel across all the way to the
receiver, and an ACK travels all the way before the next frame is sent. Each frame sent and received
uses the entire time needed to traverse the link.