Question
Consider a network path P-Q-R between nodes P and R via router Q. Node P sends a file of size bytes to R via this path by splitting the file into chunks of bytes each. Node P sends these chunks one after the other without any wait time between the successive chunk transmissions. Assume that the size of extra headers added to these chunks is negligible, and that the chunk size is less than the MTU.
Each of the links P-Q and Q-R has a bandwidth of bits/sec, and negligible propagation latency. Router Q immediately transmits every packet it receives from P to R, with negligible processing and queueing delays. Router Q can simultaneously receive on link P-Q and transmit on link Q-R.
Assume P starts transmitting the chunks at time .
Which one of the following options gives the time (in seconds, rounded off to 3 decimal places) at which R receives all the chunks of the file?
Official answer and solution
- Official answer
- B
- From
- Official GATE 2024 answer key
Solution
Calculate the number of chunks , the single-hop transmission time of one chunk, and the pipelined two-hop completion time .
- Number of chunks:
- Transmission time of one chunk on each link:
Each chunk has size , and link bandwidth is : - Total time with store-and-forward pipelining across 2 equal-bandwidth links:
- Node P finishes transmitting the chunk to Q at .
- Router Q immediately transmits the chunk over link Q-R, which takes one additional chunk transmission time .
Option (B)
Forgetting the store-and-forward delay of the last chunk on the second link (giving 8.000 s) or ignoring pipelining across the two links (giving 16.000 s).
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
- Question
- 36 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.