Question

A link has a transmission speed of 10610^6 bits/sec. It uses data packets of size 1000 bytes each. Assume that the acknowledgment has negligible transmission delay, and that its propagation delay is the same as the data propagation delay. Also assume that the processing delays at nodes are negligible. The efficiency of the stop-and-wait protocol in this setup is exactly 25%. The value of the one-way propagation delay (in milliseconds) is _____.

Official answer and solution
Official answer
12
From
Official GATE 2015 answer key

Solution

Use the standard efficiency formula for Stop-and-Wait protocol η=TtTt+2Tp\eta = \dfrac{T_t}{T_t + 2T_p}.

Parameters given:

  • Bandwidth B=106 bits/secB = 10^6\text{ bits/sec}
  • Packet size L=1000 bytes=8000 bitsL = 1000\text{ bytes} = 8000\text{ bits}
  • Efficiency η=25%=0.25=14\eta = 25\% = 0.25 = \frac{1}{4}

Transmission time of a data packet:

Tt=LB=8000 bits106 bits/sec=8×10−3 sec=8 ms.T_t = \frac{L}{B} = \frac{8000\text{ bits}}{10^6\text{ bits/sec}} = 8 \times 10^{-3}\text{ sec} = 8\text{ ms}.

In Stop-and-Wait with negligible ACK transmission delay and processing delays:

η=TtTt+2Tp=14\eta = \frac{T_t}{T_t + 2T_p} = \frac{1}{4}
Tt+2Tp=4Tt  ⟹  2Tp=3Tt  ⟹  Tp=1.5TtT_t + 2T_p = 4T_t \implies 2T_p = 3T_t \implies T_p = 1.5 T_t
Tp=1.5×8 ms=12 ms.T_p = 1.5 \times 8\text{ ms} = 12\text{ ms}.
Final answer

12

Common trap

Forgetting to multiply packet size in bytes by 8 to convert to bits.

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

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 2
Question
18 of 65, printed as CS Q.8
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.