Flow Control Protocols
Flow Control Protocols
There are various flow control protocols which are classified as-
In this article, we will discuss about stop and wait protocol.
Stop and Wait Protocol-
Analysis-
Now, let us analyze in depth how the transmission is actually carried out-
Sender puts the data packet on the transmission link.
Data packet propagates towards the receiver’s end.
Data packet reaches the receiver and waits in its buffer.
Receiver processes the data packet.
Receiver puts the acknowledgement on the transmission link.
Acknowledgement propagates towards the sender’s end.
Acknowledgement reaches the sender and waits in its buffer.
Sender processes the acknowledgement.
These steps are illustrated below-
Throughput-
Number of bits that can be sent through the channel per second is called as its
throughput.
Round Trip Time-
Advantages-
The advantages of stop and wait protocol are-
It is very simple to implement.
The incoming packet from receiver is always an acknowledgement.
Limitations-
The limitations of stop and wait protocol are-
Point-01:
It is extremely inefficient because-
It makes the transmission process extremely slow.
It does not use the bandwidth entirely as each single packet and acknowledgement
uses the entire time to traverse the link.
Point-02:
If the data packet sent by the sender gets lost, then-
Sender will keep waiting for the acknowledgement for infinite time.
Receiver will keep waiting for the data packet for infinite time.
Point-03:
If acknowledgement sent by the receiver gets lost, then-
Sender will keep waiting for the acknowledgement for infinite time.
Receiver will keep waiting for another data packet for infinite time.
Important Notes-
Note-01:
Efficiency may also be referred by the following names-
Line Utilization
Link Utilization
Sender Utilization
Utilization of Sender
Note-02:
Throughput may also be referred by the following names-
Bandwidth Utilization
Effective Bandwidth
Maximum data rate possible
Maximum achievable throughput
Note-03:
Stop and Wait protocol performs better for LANs than WANs.
This is because-
Efficiency of the protocol is inversely proportional to the distance between sender and
receiver.
So, the protocol performs better where the distance between sender and receiver is
less.
The distance is less in LANs as compared to WANs.