775 views
0 votes
0 votes

Consider a network topology using STOP and WAIT protocol  A---------R----------B   (here R is STORE and FORWARD ROUTER) Tp=1uS ,  Tx(data)=1000uS,  Tx(ack)=10uS File Size =10000bits, Packet size=1000bits. How long will it take for A to send whole file to B?

 

Dobut—here A will send packet to router R and router will send ack back to A then A will Transmit second packet 

                             OR

   here A will send packet toHost B and B will send ack back to A then A will send second packet 

1 Answer

0 votes
0 votes
Since it is Stop and Wait Protocol, next packet will be sent only upon receipt of acknowledgement of previous packet from reciever/Host, not router.

Here total no. of packets = 10.

For 1 packet, total time taken to complete one cycle = TxAR + TpAR + TxRB + TpRB + TxackBR + TpackBR + TxackRA + TpackRA

(AR : A->R link, RB: R->B link, etc)

                                                                             =  1000us + 1us + 1000us + 1 us + 10us + 1 us + 10us + 1us = 2024us

For 10 packets, total time taken = 2024*10 us = 20240us = 20.24 ms.

Related questions

1 votes
1 votes
2 answers
2