

Now, putting the value of equation 1 in equation 4, we get, Throughput= η * B Advantages of Stop and Wait Protocol Now putting the value of equation 3 in equation 2, we get, D bits in one frame.įrom the definition of Transmission delay, In Stop and Wait, in the total duration, the receiver can accept only one frame. It is also called effective bandwidth or bandwidth utilization.

transmission time(Td) + 2 * propagation delay(Tp)). The number of bits that a receiver can accept in total time duration (i.e. EfficiencyĮfficiency = Useful Time/ Total Time η = Td / (Td+2*Tp) η = 1/(1+2a) →(1) where a=Tp / Td Throughput The sender is doing work only for Td time (useful time)and for the rest 2Tp time the sender is waiting for the acknowledgment. Hence, the total time required to send a frame is: Total time= Td(Transmission Delay) + Tp(Propagation Delay for data frame) + Tp(Propagation Delay for acknowledgment frame) Total time=Td+ 2Tp The propagation delay for sending the data frame and the acknowledgment frame is the same as distance and speed will remain the same for both frames. This can be understood by the diagram below: When the sender gets the acknowledgment(ACK), then it will send the next data packet to the receiver and wait for the acknowledgment again and this process will continue as long as the sender has the data to send. the time between message sending and acknowledgement receiving) is the waiting time for the sender and the sender is totally idle during this time. The sender will stop and wait for the acknowledgment from the receiver.

In this, the sender will send one frame at a time to the receiver. In this blog, we are going to learn about the Stop-and-wait protocol. using Stop-and-wait protocol or sliding window protocol. There are mainly two ways in which this can be achieved i.e. The flow control method will keep a check that the senders send the data only at a rate that the receiver is able to receive and process. The Flow-control methods will help in ensuring that the data doesn't get lost. Suppose a situation where the sender is sending the data at a rate higher than the receiver is able to receive and process it, then the data will get lost. While sending the data from the sender to the receiver the flow of data needs to be controlled.
