written 5.8 years ago by | modified 2.8 years ago by |
Mumbai University > Information Technology > Sem4 > Computer Networks
Marks: 5M
Year: May 18
written 5.8 years ago by | modified 2.8 years ago by |
Mumbai University > Information Technology > Sem4 > Computer Networks
Marks: 5M
Year: May 18
written 5.7 years ago by |
Disadvantage of Stop-and-Wait
In stop-and-wait, at any point in time, there is only one frame that is sent and waiting to be acknowledged.
This is not a good use of transmission medium. To improve efficiency, multiple frames should be in transition while waiting for ACK.
Two protocol use the above concept
, – Go-Back-N ARQ
– Selective Repeat ARQ
One problem is when the ACK sent by the receiver is damaged or lost. In this case, the sender doesn't receive the ACK, times out, and sends the frame again. Now the receiver has two copies of the same frame, and doesn't know if the second one is a duplicate frame or the next frame of the sequence carrying identical DATA
Another problem is when the transmission medium has such a long latency that the sender's timeout runs out before the frame reaches the receiver. In this case the sender re-sends the same packet. Eventually the receiver gets two copies of the same frame, and sends an ACK for each one. The sender, waiting for a single ACK, receives two ACKs, which may cause problems if it assumes that the second ACK is for the next frame in the sequence.