A file cannot be sent in a single message (for practical reasons)
The ordering of these messages must be maintained for the receiver to reconstruct the entire file.
|
|
![]() |
Let us see how this protocol will hold up in the face of transmission errors...
![]() |
![]() |
(Because the receiver will accept the message "xxx" twice !!!)
|
![]() |
Nope, there is one more problem....
The receiver may be very busy and could not send the ACK immediately...
So the receiver send the ack a little bit later than normal...
![]() |
So sender believes that frame 1 was received correctly, while in fact, it was NOT
Error ! (not reliable)
![]() |
The resulting protocol is called the "Stop-and-wait" protocol:
|
To achieve better performance, we must use the more complicated Sliding Window methods.