Skip to content

GATE CS 2021 Set 1 Q49 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI

Consider the sliding window flow-control protocol operating between a sender and a receiver over a full-duplex error-free link. Assume the following:

  • The time taken for processing the data frame by the receiver is negligible.
  • The time taken for processing the acknowledgement frame by the sender is negligible.
  • The sender has infinite number of frames available for transmission.
  • The size of the data frame is 2,0002,000 bits and the size of the acknowledgement frame is 1010 bits.
  • The link data rate in each direction is 11 Mbps (=106=10^6 bits per second).
  • One way propagation delay of the link is 100100 milliseconds.

The minimum value of the sender's window size in terms of the number of frames, (rounded to the nearest  integer)  needed  to achieve a link utilization of 50%50\% is_____________.

View worked solution

Answer: 50 : 52

To find the minimum sender window size WW for a link utilization of 50%50\%, we first calculate the transmission delays and the total round-trip cycle time.

1. Transmission Delays:

  • Transmission delay of the data frame (TtT_t):
    Tt=Frame SizeBandwidth=2000 bits106 bps=2 msT_t = \frac{\text{Frame Size}}{\text{Bandwidth}} = \frac{2000 \text{ bits}}{10^6 \text{ bps}} = 2 \text{ ms}
  • Transmission delay of the acknowledgement frame (TackT_{ack}):
    Tack=ACK SizeBandwidth=10 bits106 bps=0.01 msT_{ack} = \frac{\text{ACK Size}}{\text{Bandwidth}} = \frac{10 \text{ bits}}{10^6 \text{ bps}} = 0.01 \text{ ms}

2. Total Cycle Time (TcT_c):

The total time elapsed from the start of sending a frame to receiving its acknowledgement is: Tc=Tt+Tp+Tack+TpT_c = T_t + T_p + T_{ack} + T_p Given the one-way propagation delay Tp=100 msT_p = 100 \text{ ms}: Tc=2 ms+100 ms+0.01 ms+100 ms=202.01 msT_c = 2 \text{ ms} + 100 \text{ ms} + 0.01 \text{ ms} + 100 \text{ ms} = 202.01 \text{ ms}

3. Window Size (WW):

The link utilization (efficiency η\eta) is given by: η=W×TtTc\eta = \frac{W \times T_t}{T_c} Setting η=50%=0.5\eta = 50\% = 0.5: 0.5=W×2202.01  ⟹  W=101.0052=50.50250.5 = \frac{W \times 2}{202.01} \implies W = \frac{101.005}{2} = 50.5025

Rounding to the nearest integer, we get W=51W = 51 (which lies within the accepted range of 5050 to 5252).

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets questions