Skip to content

GATE CS 2023 Q40 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI

Suppose you are asked to design a new reliable byte-stream transport protocol like TCP.\text{TCP}. This protocol, named myTCP\textsf{myTCP}, runs over a 100 Mbps100 \mathrm{~Mbps} network with Round Trip Time of 150150 milliseconds and the maximum segment lifetime of 22 minutes.

Which of the following is/are valid lengths of the Sequence Number field in the myTCP\textsf{myTCP} header?

Select all correct options
View worked solution

Answer: B;C;D

To prevent sequence number wrap-around within the Maximum Segment Lifetime (MSL\text{MSL}), the total number of unique sequence numbers available must be greater than or equal to the maximum number of bytes that can be transmitted during one MSL\text{MSL}.

Step 1: Calculate the maximum bytes transmitted in one MSL\text{MSL}

  • Bandwidth: 100 Mbps=100×106 bits/second100 \text{ Mbps} = 100 \times 10^6 \text{ bits/second}
  • Bandwidth in Bytes: Bandwidth=100×1068 bytes/second=12.5×106 bytes/second\text{Bandwidth} = \frac{100 \times 10^6}{8} \text{ bytes/second} = 12.5 \times 10^6 \text{ bytes/second}
  • Maximum Segment Lifetime (MSL): 2 minutes=120 seconds2 \text{ minutes} = 120 \text{ seconds}
  • Total bytes transmitted in MSL: Total Bytes=12.5×106 bytes/second×120 seconds=1.5×109 bytes\text{Total Bytes} = 12.5 \times 10^6 \text{ bytes/second} \times 120 \text{ seconds} = 1.5 \times 10^9 \text{ bytes}

Step 2: Determine the minimum sequence number field length (NN)

For a sequence number field of NN bits, the sequence number space is 2N2^N. To avoid wrap-around within the MSL, we require:

2N≥1.5×1092^N \ge 1.5 \times 10^9

Let's evaluate the powers of 22:

  • For N=30N = 30 bits: 230≈1.07×109<1.5×1092^{30} \approx 1.07 \times 10^9 < 1.5 \times 10^9 (Insufficient)
  • For N=31N = 31 bits: 231≈2.15×109≥1.5×1092^{31} \approx 2.15 \times 10^9 \ge 1.5 \times 10^9 (Sufficient)

Thus, the minimum length of the sequence number field must be at least 3131 bits. Any length N≥31N \ge 31 is valid.

Conclusion

  • A. 3030 bits: Invalid (30<3130 < 31)
  • B. 3232 bits: Valid (32≥3132 \ge 31)
  • C. 3434 bits: Valid (34≥3134 \ge 31)
  • D. 3636 bits: Valid (36≥3136 \ge 31)

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