The Gateway to Computer Science Excellence
0 votes
100 views

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 by (85 points) | 100 views
0

@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

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

0
how does it answer my question?

1 Answer

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 (17 points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,467 answers
195,381 comments
100,319 users