Usage

 

Stop-and-Wait:

 

 

The transmitter(left) starts sending a data package Then he waits till the receiver(right) sends an answer. If he does not get this answer in time he sends the same package again. This happens till he receives the answer of the receiver. Then he sends the next package.