Skip to content

GATE CS 2014 Set 1 Q28 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI
Consider a selective repeat sliding window protocol that uses a frame size of 11 KB\text{KB} to send data on a 1.51.5 Mbps\text{Mbps} link with a one-way latency of 5050 msec\text{msec}. To achieve a link utilization of 60%60\%, the minimum number of bits required to represent the sequence number field is ________.
View worked solution

Answer: 5

To find the minimum number of bits required for the sequence number field in Selective Repeat (SR), we first calculate the transmission time (TtT_t) and the round-trip time (RTTRTT).

1. Calculate Transmission Time (TtT_t):
Frame size, L=1 KB=1024×8 bits=8192 bitsL = 1 \text{ KB} = 1024 \times 8 \text{ bits} = 8192 \text{ bits}
Bandwidth, B=1.5 Mbps=1.5×106 bpsB = 1.5 \text{ Mbps} = 1.5 \times 10^6 \text{ bps}
Tt=LB=81921.5×106≈5.46 msT_t = \frac{L}{B} = \frac{8192}{1.5 \times 10^6} \approx 5.46 \text{ ms}

2. Calculate Round-Trip Time (RTTRTT):
One-way latency (TpT_p) = 50 ms50 \text{ ms}
RTT=2×Tp=100 msRTT = 2 \times T_p = 100 \text{ ms}

3. Determine Sender Window Size (WsW_s):
For a link utilization of η=60%=0.6\eta = 60\% = 0.6:
η=Ws×TtTt+2Tp≥0.6\eta = \frac{W_s \times T_t}{T_t + 2T_p} \ge 0.6 Ws≥0.6×(1+2TpTt)=0.6×(1+1005.46)≈0.6×19.31=11.59W_s \ge 0.6 \times \left(1 + \frac{2T_p}{T_t}\right) = 0.6 \times \left(1 + \frac{100}{5.46}\right) \approx 0.6 \times 19.31 = 11.59 Since the window size must be an integer, the minimum sender window size is Ws=12W_s = 12.

4. Calculate Sequence Number Bits (nn):
In the Selective Repeat protocol, to avoid ambiguity, the sender window size WsW_s and receiver window size WrW_r must satisfy:
Ws+Wr≤2nW_s + W_r \le 2^n Since Ws=WrW_s = W_r in Selective Repeat:
2Ws≤2n  ⟹  2n−1≥Ws2 W_s \le 2^n \implies 2^{n-1} \ge W_s 2n−1≥12  ⟹  n−1≥4  ⟹  n≥52^{n-1} \ge 12 \implies n - 1 \ge 4 \implies n \ge 5

Thus, the minimum number of bits required to represent the sequence number field is 5.

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