A Simplex Stop-and-Wait Protocol for an Error-Free Channel

Computer EngineeringComputer NetworkMCA

Stop – and – Wait protocol is data link layer protocol for transmission of frames over noiseless channels. It provides unidirectional data transmission with flow control facilities but without error control facilities.

This protocol takes into account the fact that the receiver has a finite processing speed. If data frames arrive at the receiver’s end at a rate which is greater than its rate of processing, frames be dropped out. In order to avoid this, the receiver sends an acknowledgement for each frame upon its arrival. The sender sends the next frame only when it has received a positive acknowledgement from the receiver that it is available for further data processing.


  • Sender Site: The data link layer in the sender site waits for the network layer for a data packet. It then checks whether it can send the frame. If it receives a positive notification from the physical layer, it makes frames out of the data and sends it. It then waits for an acknowledgement before sending the next frame.

  • Receiver Site: The data link layer in the receiver site waits for a frame to arrive. When it arrives, the receiver processes it and delivers it to the network layer. It then sends an acknowledgement back to the sender.

Sender Site Algorithm of Simplex Stop – and – Wait Protocol for Noiseless Channel

   canSend = True;        //Allow the first frame to be sent
   while (true)           //check repeatedly
      Wait_For_Event();   //wait for availability of packet
      if ( Event(Request_For_Transfer) AND canSend) then
         canSend = False;
      else if ( Event(Acknowledgement_Arrival)) then
         canSend = True;
      end if
   end while

Receiver Site Algorithm of Simplex Stop – and – Wait Protocol for Noiseless Channel

   while (true)      //check repeatedly
      Wait_For_Event();     //wait for arrival of frame
      if ( Event(Frame_Arrival) then
      end if
   end while

Flow Diagram

The following flow diagram depicts communication via simplex stop – and – wait protocol for noiseless channel:

Published on 05-Feb-2019 18:00:09