Question

Assume that the bandwidth for a TCP connection is 1048560 bits/sec. Let α\alpha be the value of RTT in milliseconds (rounded off to the nearest integer) after which the TCP window scale option is needed. Let β\beta be the maximum possible window size with window scale option. Then the values of α\alpha and β\beta are

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2015 answer key

Solution

Relate the maximum 16-bit TCP receive window to the Bandwidth-Delay Product (BDP) and apply RFC 1323 scale factor constraints.

  1. Calculating α\alpha:
    The standard TCP header includes a 16-bit window size field, allowing a maximum unscaled window of:
Wmax⁡=216−1=65535 bytes=65535×8 bits=524280 bits.W_{\max} = 2^{16} - 1 = 65535\text{ bytes} = 65535 \times 8\text{ bits} = 524280\text{ bits}.

The TCP Window Scale option is required when the Bandwidth-Delay Product exceeds this unscaled limit:

Bandwidth×RTT>524280 bits\text{Bandwidth} \times \text{RTT} > 524280\text{ bits}

Given Bandwidth=1048560 bits/sec\text{Bandwidth} = 1048560\text{ bits/sec}:

RTT>524280 bits1048560 bits/sec=0.5 seconds=500 milliseconds.\text{RTT} > \frac{524280\text{ bits}}{1048560\text{ bits/sec}} = 0.5\text{ seconds} = 500\text{ milliseconds}.

Hence, α=500 ms\alpha = 500\text{ ms}.

  1. Calculating β\beta:
    RFC 1323 specifies that the Window Scale option carries a 1-byte scale factor shift count up to 14 (shift values larger than 14 are prohibited because 16+14=3016 + 14 = 30 bits, fitting comfortably within the 32-bit TCP sequence space).

With a scale factor of 2142^{14}, the maximum possible window size is:

β=65535×214 bytes.\beta = 65535 \times 2^{14}\text{ bytes}.

Thus, α=500 milliseconds\alpha = 500\text{ milliseconds} and β=65535×214\beta = 65535 \times 2^{14} (option C).

Final answer

C

Common trap

Assuming a 16-bit scale factor (2162^{16}) rather than the RFC 1323 limit of 14 bits (2142^{14}).

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
44 of 65, printed as CS Q.34
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.