• retagged by
21,267 views
28 28 votes
Consider the data transfer using $\text{TCP}$ over a $1 \; \text{Gbps}$ link. Assuming that the maximum segment lifetime $\text{(MSL)}$ is set to $60 \; \text{seconds},$ the minimum number of bits required for the sequence number field of the $\text{TCP}$ header, to prevent the sequence number space from wrapping around during the $\text{MSL}$ is ________________.

8 Answers

64 64 votes

Answer : 33 bits

Given Bandwidth = $1Gbps$, MSL = $60 sec$.

Now, in $1$ sec, amount of data consumed = $1Gb$

Hence. in $60 sec$, amount of data consumed = $60Gb$ $\implies$ $(60Gb/8)$ $\implies$ $7.5GB$

Therefore, to prevent the sequence number space from wrapping around during the MSL, we need $7.5GB$ of data which can be represented with:-

$\lceil log(7.5 * 2^{30}) \rceil$ $\implies$ $\lceil log(7.5) + log(2^{30}) \rceil$ $\implies$ $\lceil 2.9+30 \rceil$  $\implies$ $33 bits$ for the sequence number field.

----------------------------------------------------------------------------------------------------------------------------------------------------------------

The Answer will also be same if we use $1Gbps = 10^9bps$

Minimum no. of bits required in Sequence number field of the $\text{TCP}$ header to prevent the sequence number space from wrapping around during the $\text{MSL}$ is given by:-

$\lceil log(MSL*B_w) \rceil$ where $MSL$ (maximum segment lifetime) = $60 \; \text{seconds}$ [given]

and $B_w$ (Bandwidth in $Bps$) =  $10^9bps = 10^9/8 Bps$ [given]

Thus,

Min. no. of bits required= $\lceil log(60* 10^9/8) \rceil$

$=\lceil log(60*10^4) + log(10^5/8) \rceil$ [Breaking $10^9$ so that it becomes easy to use the scientific calculator in exam]

$=\lceil19.19460+  13.60964 \rceil$

$=\lceil 32.80424\rceil = 33bits$ for the sequence number field.

• edited by
14 14 votes
33 bits.

As in 60 seconds , 60Gb of data will get transferred which in turn is about 7.5GB and can be represented in 33 bits
6 6 votes
33 bits.

WAT = $2^{32}$/x (x is bandwidth which should be in Bytes/sec).
Value of x = $10^{9}$ bits/sec  = $10^{9}/8$  B/sec.

So, WAT = $2^{32} * 8 / 10^{9}$ =  34.35 sec.
And according to question the lifetime of TCP segment is set to 60sec.

It can easily be observed that : 2 * WAT ( 68.70 ) > TCP Lifetime ( 60 sec ).
For WAT already calculated using 32 bits and if we multiply it by 2 this will give 33 bits.
4 4 votes
let suppose SEQUNCE NO = $X$ BITS

WINDOW SIZE=$2^{X}$ B

WRAP AROUND TIME=  $(2^{X} * 2^{3}) / 2^{30}$ SEC

WRAP AROUND TIME > MSL

  $(2^{X} * 2^{3}) / 2^{30}$  $> 60$  {why taking greater bcz WAT should be greater than MSL bcz atleast after these many seconds it can repeat the sequence number}

= $33$
• edited by
0 0 votes

 


Bandwidth = 1 Gbps : 10^9 not 10^30

Maximum Segment Lifetime (MSL) = 60 seconds

Formula:
Minimum sequence number required to avoid wraparound within MSL =

Ceil ( Log (BW * MSL))

Calculations:

  1. 1 second = 10910^9 sequence numbers (in Gb)
  2. In 60 seconds: x=60×10^9 Gb
  1. Convert x to GB by dividing by 8:

        x=60×10^9/8=75×10^8 GB

  1. To calculate the minimum sequence bits:

Sequence bits=⌈log⁡(75×10^8)/log⁡2⌉

  1. Simplify using logarithmic properties:

Sequence bits=⌈(log⁡(75)+8)/log⁡2⌉

  1. Calculate:

Sequence bits=⌈(1.875+8)/0.301⌉=⌈32.8⌉=33

Final Answer:

Minimum sequence bits required = 33


Would you like me to clarify any part of this?

Answer:
Position:
Show:

Related questions

54 54 votes
5 answers 5 answers
23.6k
23.6k views
Arjun asked Feb 15, 2022
23,617 views
Consider a network with three routers $\text{P, Q, R}$ shown in the figure below. All the links have cost of unity.The routers exchange distance vector routing informatio...
34 34 votes
3 answers 3 answers
20.2k
20.2k views
Arjun asked Feb 15, 2022
20,160 views
Consider a $100 \; \text{Mbps}$ link between an earth station (sender) and a satellite (receiver) at an altitude of $2100 \; \text{km}.$ The signal propagates at a speed ...
47 47 votes
8 answers 8 answers
30.8k
30.8k views
Arjun asked Feb 15, 2022
30,753 views
Consider the resolution of the domain name $\textsf{www.gate.org.in}$ by a $\text{DNS}$ resolver. Assume that no resource records are cached anywhere across the $\text{DN...
94 94 votes
17 17 answers
40.0k
40.0k views
Arjun asked Feb 15, 2022
39,969 views
Consider routing table of an organization’s router shown below:$$\begin{array} {|l|l|l|} \hline \text{Subnet Number} & \text{Subnet Mask} & \text{Next Hop} \\\hline 12.20...