Networking P
Networking P
*What will be the efficiency if processing delay, queuing delay and transmission delay of acknowledgement is
not zero.
o Total time=Tt+2*Tp+Pr+Pq+Tt(ack)
where,
Tt=Transmission delay of sender side
Tp=Propogation Delay
Pr=Processing Delay
Pq=Queuing Delay
Tt(ack)=Transmission Delay of Acknowledgement
In the GB-N the receiver window size is one always. i.e. WR is always 1 in
GBN.
3. Acknowledgements
On the sender side for every packet send there is a time out timer which will expire for
packet number 2. Now from the last transmitted packet 5 sender will go back to the packet
number 2 in the current window and transmit all the packets till packet number 5. That’s
why it is called Go Back N. Go back means sender has to go back N places from the last
transmitted packet in the unacknowledged window and not from the point where the packet
is lost.
Relationship Between Window Size and Sequence Numbers
The window size and sequence numbers in a sliding window protocol, like Go-Back-N or
Selective Repeat, are closely related.
The window size determines how many packets the sender can transmit without needing
an acknowledgment. It’s like a limit on how much data can be sent before the sender has to
stop and wait for confirmation.
Sequence numbers are used to label packets so the receiver knows their order and can
detect any missing packets.
The window size should be smaller than or equal to the range of available sequence
numbers. If the window size is too large compared to the sequence number range, the
receiver might get confused because the same sequence number could be reused before
the first one is acknowledged. This would make it hard to know if a packet is new or a
duplicate.
Relation between window size and sequence number is given by the formula:
Ws+WR<=ASN
where Ws is sender window size and W R is receiver window size, and ASN is available
sequence number.
Ws+1<=ASN because W R=1 in GB-N protocol
So minimum sequence numbers required in GBN = N + 1