Skip to content

GATE CS 2022 Q50 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI
Consider the data transfer using TCP\text{TCP} over a 1  Gbps1 \; \text{Gbps} link. Assuming that the maximum segment lifetime (MSL)\text{(MSL)} is set to 60  seconds,60 \; \text{seconds}, the minimum number of bits required for the sequence number field of the TCP\text{TCP} header, to prevent the sequence number space from wrapping around during the MSL\text{MSL} is ________________.
View worked solution

Answer: 33

To prevent the TCP sequence number space from wrapping around during the Maximum Segment Lifetime (MSL\text{MSL}), the total number of unique sequence numbers available must be at least equal to the maximum number of bytes that can be transmitted during the MSL\text{MSL}.

Step 1: Calculate the data transmission rate in bytes per second
In computer networks, bandwidth is measured in powers of 1010.
Bandwidth=1 Gbps=109 bits/second\text{Bandwidth} = 1 \text{ Gbps} = 10^9 \text{ bits/second} Since TCP sequence numbers are assigned per byte (octet): Transmission Rate=109 bits/second8 bits/byte=1.25×108 bytes/second\text{Transmission Rate} = \frac{10^9 \text{ bits/second}}{8 \text{ bits/byte}} = 1.25 \times 10^8 \text{ bytes/second}

Step 2: Calculate the total bytes transmitted during the MSL
Given MSL=60 seconds\text{MSL} = 60 \text{ seconds}: Total Bytes=1.25×108 bytes/second×60 seconds=7.5×109 bytes\text{Total Bytes} = 1.25 \times 10^8 \text{ bytes/second} \times 60 \text{ seconds} = 7.5 \times 10^9 \text{ bytes}

Step 3: Determine the minimum number of bits (nn) for the sequence number
We need the sequence number space 2n2^n to be at least the total bytes transmitted: 2n≥7.5×1092^n \ge 7.5 \times 10^9 Let's evaluate powers of 22:

  • For n=32n = 32: 232≈4.29×1092^{32} \approx 4.29 \times 10^9 (Insufficient)
  • For n=33n = 33: 233≈8.59×1092^{33} \approx 8.59 \times 10^9 (Sufficient)
Therefore, the minimum number of bits required for the sequence number field is 33.

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