Skip to content

GATE CS 2007 Q69 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI

The distance between two stations MM and NN is LL kilometers. All frames are KK bits long. The propagation delay per kilometer is tt seconds. Let RR bits/second be the channel capacity. Assuming that the processing delay is negligible, the minimum\text{minimum} number of bits for the sequence number field in a frame for maximum utilization, when the sliding window protocol\text{sliding window protocol} is used, is:

Choose one option
View worked solution

Answer: C

To achieve maximum utilization (100% efficiency) in a sliding window protocol, the sender's window size (WW) must be large enough to allow continuous transmission while waiting for the first acknowledgment.

Step-by-Step Derivation:

  1. Transmission Delay (TtT_t):

    The time taken to transmit a frame of size KK bits over a channel of capacity RR bits/second is:

    Tt=KR secondsT_t = \frac{K}{R} \text{ seconds}
  2. Propagation Delay (TpT_p):

    The time taken for a bit to travel the distance LL km with a propagation delay of tt seconds/km is:

    Tp=L×t secondsT_p = L \times t \text{ seconds}
  3. Minimum Window Size (WW) for Maximum Utilization:

    To keep the channel busy continuously, the window size must satisfy:

    W≥1+2aW \ge 1 + 2a

    where a=TpTta = \frac{T_p}{T_t} is the ratio of propagation delay to transmission delay.

    Substituting the values of TpT_p and TtT_t:

    a=L⋅tKR=L⋅t⋅RKa = \frac{L \cdot t}{\frac{K}{R}} = \frac{L \cdot t \cdot R}{K}

    Thus, the minimum window size is:

    W=1+2(L⋅t⋅RK)=K+2LtRKW = 1 + 2\left(\frac{L \cdot t \cdot R}{K}\right) = \frac{K + 2LtR}{K}
  4. Minimum Sequence Number Bits:

    The minimum number of bits required in the sequence number field to represent a window of size WW is:

    ⌈log⁡2W⌉=⌈log⁡2(2LtR+KK)⌉\lceil \log_2 W \rceil = \left\lceil \log_2 \left(\frac{2LtR + K}{K}\right) \right\rceil

This matches Option C.

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