Question:

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 slow start threshold for TCP congestion control is 16 KB. Assume that there are no timeouts or duplicate acknowledgements. The number of rounds of transmission required for the congestion control algorithm of the TCP connection to reach the congestion avoidance phase is ______.

Note: \(1\text{K}=2^{10}\)

Show Hint

In slow start, cwnd doubles every round starting from 1 MSS. Find how many doublings it takes for cwnd to reach the slow start threshold of 16 KB (8 MSS).
Updated On: Jul 22, 2026
Show Solution
collegedunia
Verified By Collegedunia

Correct Answer: 4

Solution and Explanation

Step 1: Recall how slow start grows the congestion window.
TCP begins a new connection in the slow start phase. The congestion window (cwnd) starts at 1 MSS, and every round where all sent segments get acknowledged, the sender doubles cwnd for the next round. This continues until cwnd reaches or passes the slow start threshold (ssthresh), at which point the algorithm switches to the congestion avoidance phase, where growth becomes linear instead of doubling.

Step 2: Convert everything into the same unit.
MSS
\[ = 2 \text{ KB} \]
ssthresh
\[ = 16 \text{ KB} = 8 \text{ MSS} \]
The advertised window is 48 KB, which is 24 MSS, and it never comes into play here because cwnd never has to reach that high before hitting ssthresh.

Step 3: Track cwnd round by round in units of MSS.
Round 1: cwnd
\[ = 1 \text{ MSS} = 2 \text{ KB} \]
Round 2: cwnd doubles to
\[ 2 \text{ MSS} = 4 \text{ KB} \]
Round 3: cwnd doubles to
\[ 4 \text{ MSS} = 8 \text{ KB} \]
Round 4: cwnd doubles to
\[ 8 \text{ MSS} = 16 \text{ KB} \]

Step 4: Check when ssthresh is reached.
At round 4, cwnd equals 16 KB, which is exactly the slow start threshold. Once cwnd reaches ssthresh, the sender stops doubling and switches to the congestion avoidance phase (linear, additive increase) starting from the next round.
So it takes 4 rounds of slow start growth for the window to climb from 1 MSS up to the threshold, after which congestion avoidance takes over.

Final Answer:
The number of rounds needed to reach the congestion avoidance phase is
\[ \boxed{4} \]
Was this answer helpful?
0
0