edited by
56,164 views
117 117 votes

Let the size of congestion window of a TCP connection be $32$ KB when a timeout occurs. The round trip time of the connection is $100$ msec and the maximum segment size used is $2$ KB. The time taken (in msec) by the TCP connection to get back to $32$ KB congestion window is _________.

13 Answers

Best answer
230 230 votes

Answer:  Given that at the time of Time Out, Congestion Window Size
           is $32\;\textsf{KB}$ and RTT $= 100\;\text{ms}$,

          When Time Out occurs, for the next round of Slow Start, 

          Threshold $= \dfrac{\text{size of congestion window}}{2}$ ,

          Threshold $= 16\;\textsf{KB}$

Suppose  we have a slow start $\Rightarrow2\;\textsf{KB} \mid 4\;\textsf{KB} \mid 8\;\textsf{KB} \mid 16\;\textsf{KB}$
(As the threshold is reached,  Additive increase starts)

$\mid 18\;\textsf{KB} \mid 20\;\textsf{KB} \mid 22\;\textsf{KB} \mid 24\;\textsf{KB} \mid 26\;\text{KB} \mid 28\;\textsf{KB} \mid 30\;\textsf{KB} \mid 32\;\textsf{KB}$

Here | (vertical line)  is representing RTT so the total number of vertical lines is
 $11\times 100\;\text{ms} = 1100\;\text{msec}$ and so this is the answer.

edited by
35 35 votes
After timeout, new threshold = 32KB/2 = 16 KB, which is 8MSS (as size of MSS = 2KB).

So the transfer proceeds as

1 - 1MSS (2KB)

2 - 2MSS (4KB)

3 - 4MSS (8KB)

4 - 8MSS (16KB) <--- threshold

5 - 9MSS (18KB)

6 - 10MSS (20KB)

7 - 11MSS (22KB)

8 - 12MSS (24KB)

9 - 13MSS (26KB)

10 - 14MSS (28KB)

11 - 15MSS (30KB)

12 - 16MSS (32KB)

Hence total time = RTT  * 11 = 1200ms
edited by
2 flags:
✌ Edit necessary (Sameer Bawane “the final ans needs to be 1100ms”)
✌ Edit necessary (Hira Thakur)
12 12 votes
Current size of congestion window in terms of number of segments
                            = (Size in Bytes)/(Maximum Segment Size)
                            = 32KB / 2KB 
                            = 16 MSS
          
When timeout occurs, in TCP's Slow Start algorithm, threshold is 
reduced to half which is 16KB or 8MSS. Also, slow start phase begins 
where congestion window is increased twice. 
So from 1MSS to 8 MSS window size will grow exponentially. 
Congestion window becomes 2MSS after one RTT and becomes 4MSS after
2 RTTs and 8MSS after 3 RTTs.  At 8MSS, threshold is reached and
congestion avoidance phase begins.  In congestion avoidance phase,
window is increased linearly. So to cover from 8MSS to 16MSS, it needs
8 RTTs

Together, 11RTTs are needed (3 in slow start phase and 8 in congestion
avoidance phase).
2 2 votes
1 MSS = 2KB so 16 MSS= 32KB

Note: The initial size of cwnd is 1MSS so

cwnd : 1 2 4 8(ssthresh) 9 10 11 12 13 14 15 16

RTT    : 0 1 2 3                  4    5   6  7   8  9   10   11

So at the 11th RTT we got to cwnd of size 16.

11*100 = 1100ms
1 1 vote
Congetion Windows size=32KB

Th=32/2=16

MSS=2

2 | x1 | 4 |x2| 8 |x3| 16|x4| 18 |x5| 20 |x6| 22 |x7| 24 |x8| 26 |x9| 28 |x10| 30|x11| 32

Where xi=100ms

So total time =100*xi(11 times)=1100ms
1 1 vote

This question is very confusing. 

The time taken (in msec) by the TCP connection

Look at this carefully, in the question itself examiner is talking about Entire TCP connection.

So we should start from start and just look how many RTT have passed

 

1

1 RTT

2

2 RTT

4

3 RTT

8

4 RTT

16

5 RTT ---------------------------------------------------------------------------------------------------------------------

32

6 RTT

16

7 RTT

18

8 RTT

20

9 RTT

22

10 RTT

24

11 RTT

26

12 RTT

28

13 RTT

30

14 RTT

32

15 RTT --------------------------------------------------------------------------------------------------------------------

 

NOW FROM 32 TO 32, LOOK HOW MANY RTT ARE THERE

15-5+1 = 11

1 RTT TAKES 100MS

11 RTT WILL TAKE $1100 MS$

 

 

Answer:
Position:
Show:

Related questions

78 78 votes
11 answers 11 answers
33.3k
33.3k views
go_editor asked Sep 28, 2014
33,317 views
Consider a $6$-stage instruction pipeline, where all stages are perfectly balanced. Assume that there is no cycle-time overhead of pipelining. When an application is exec...
68 68 votes
8 answers 8 answers
42.6k
42.6k views
go_editor asked Sep 26, 2014
42,641 views
Consider a selective repeat sliding window protocol that uses a frame size of $1$ $\text{KB}$ to send data on a $1.5$ $\text{Mbps}$ link with a one-way latency of $50$ $\...
16 16 votes
4 4 answers
3.1k
3.1k views
gatecse asked Feb 23
3,058 views
Consider a new TCP connection between a sender and a receiver. The receiver advertised window is constant at $48$ KB, the maximum segment size (MSS) is $2$ KB, and the sl...
28 28 votes
4 4 answers
21.0k
21.0k views
Arjun asked Feb 16, 2024
21,014 views
Consider a $\text{TCP}$ connection operating at a point of time with the congestion window of size $12$ $\text{MSS}$ (Maximum Segment Size), when a timeout occurs due to ...