in Computer Networks
763 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 

in Computer Networks
763 views

3 Comments

@gourav94240 which would be a reliable one? 

Suppose you send to R and get acknowledgement , and further if the packets are lost would it be reliable?

0
0

@prashant jha 1 in store and forward router packets are stored before sending . Geeksforgeeks/computernetworkpacketswitchingdelays

0
0
how does it answer my question?
0
0

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.
by

Related questions