MARWARI COLLEGE,RANCHI
(UNDER RANCHI UNIVERSITY RANCHI)
NAME : RAJU MANJHI,PRAKASH KUMAR
SUB: NETWORKING
SEM : IT IV
________________________________________________________________________________
Stop and Wait Protocol-
(UNDER RANCHI UNIVERSITY RANCHI)
NAME : RAJU MANJHI,PRAKASH KUMAR
SUB: NETWORKING
SEM : IT IV
________________________________________________________________________________
Data Link layer:
Topic : Flow Control
Protocols:
There are various flow control protocols which are classified
as-
Stop and Wait Protocol-
Stop and Wait Protocol is
the simplest flow control protocol.
It works under the following assumptions-
·
Communication channel
is perfect.
·
No error occurs during
transmission.
Working-
The working of a stop and wait protocol may be
explained as-
·
Sender sends a data
packet to the receiver.
·
Sender stops and waits
for the acknowledgement for the sent packet from the receiver.
·
Receiver receives and
processes the data packet.
·
Receiver sends an
acknowledgement to the sender.
·
After receiving the
acknowledgement, sender sends the next data packet to the receiver.
These steps are illustrated below-
Analysis of the protocol-
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.
Total Time-
Total time taken in sending one data packet
= (Transmission
delay + Propagation delay + Queuing delay + Processing delay)packet
+
(Transmission delay
+ Propagation delay + Queuing delay + Processing delay)ACK
|
Assume-
·
Queuing delay and
processing delay to be zero at both sender and receiver side.
·
Transmission time for
the acknowledgement to be zero since it’s size is very small.
Under the above assumptions.
Total time taken in sending one data packet
= (Transmission
delay + Propagation delay)packet + (Propagation delay)ACK
|
We know,
·
Propagation delay
depends on the distance and speed.
·
So, it would be same
for both data packet and acknowledgement.
So, we have-
Total time taken in sending one data packet
= (Transmission
delay)packet + 2 x Propagation delay
|
Efficiency-
Efficiency of any flow control control
protocol is given by-
Efficiency (η) = Useful Time / Total Time
|
where-
·
Useful time =
Transmission delay of data packet = (Transmission delay)packet
·
Useless time = Time
for which sender is forced to wait and do nothing = 2 x Propagation delay
·
Total time = Useful
time + Useless 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-
a)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.
b)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.
c)
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.
Question : Describe
Stop And Wait Protocol.
: Write short notes on Stop and wait protocol
: What is Stop and wait protocol.
Describe the limitation of stop and wait protocol
Comments
Post a Comment