Question

Consider a source computer (SS) transmitting a file of size 10610^6 bits to a destination computer (DD) over a network of two routers (R1R_1 and R2R_2) and three links (L1L_1, L2L_2, and L3L_3). L1L_1 connects SS to R1R_1; L2L_2 connects R1R_1 to R2R_2; and L3L_3 connects R2R_2 to DD. Let each link be of length 100 km. Assume signals travel over each link at a speed of 10810^8 meters per second. Assume that the link bandwidth on each link is 1Mbps. Let the file be broken down into 1000 packets each of size 1000 bits. Find the total sum of transmission and propagation delays in transmitting the file from SS to DD?

Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2012 answer key

Solution

Calculate transmission delay, propagation delay, and store-and-forward pipelining delay across 3 links and 2 routers.

  1. System parameters:
  • File size = 10610^6 bits, divided into 1000 packets of 1000 bits each.
  • Link bandwidth B=1 Mbps=106 bpsB = 1\text{ Mbps} = 10^6\text{ bps}.
  • Link length d=100 km=105 md = 100\text{ km} = 10^5\text{ m}.
  • Signal propagation speed v=108 m/sv = 10^8\text{ m/s}.
  • Number of links = 3 (S→R1S \to R_1, R1→R2R_1 \to R_2, R2→DR_2 \to D).
  1. Transmission delay for one packet:
tt=Packet sizeBandwidth=1000 bits106 bps=1 mst_t = \frac{\text{Packet size}}{\text{Bandwidth}} = \frac{1000\text{ bits}}{10^6\text{ bps}} = 1\text{ ms}
  1. Propagation delay per link:
tp=dv=105 m108 m/s=1 mst_p = \frac{d}{v} = \frac{10^5\text{ m}}{10^8\text{ m/s}} = 1\text{ ms}

Total propagation delay for any packet across 3 links = 3×1 ms=3 ms3 \times 1\text{ ms} = 3\text{ ms}.

  1. Pipelining analysis:
  • First packet leaves source SS at t=0t = 0.
  • Arrives at R1R_1 at tt+tp=1+1=2 mst_t + t_p = 1 + 1 = 2\text{ ms}.
  • Forwarded by R1R_1 and arrives at R2R_2 at 2+1+1=4 ms2 + 1 + 1 = 4\text{ ms}.
  • Forwarded by R2R_2 and arrives at destination DD at 4+1+1=6 ms4 + 1 + 1 = 6\text{ ms}.
  • Due to pipelining, the remaining 999 packets arrive at destination DD consecutively one packet every 1 ms1\text{ ms}.
  1. Total delay:
Total time=6 ms+(1000−1)×1 ms=6+999=1005 ms\text{Total time} = 6\text{ ms} + (1000 - 1) \times 1\text{ ms} = 6 + 999 = 1005\text{ ms}
  1. This matches option (A).
Final answer

A

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2012 Computer Science and Information Technology (CS)
Question
44 of 65, printed as CS Q.44
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.