Question: In the congestion avoidance algorithm, the size of the congestion window grows ______________ congestion is detected.
Answer:
In the congestion avoidance algorithm, the size of the congestion window grows additively until congestion is detected.
After the slow start phase, TCP enters congestion avoidance mode. During this phase, the size of the congestion window is increased linearly rather than exponentially as in slow start. Specifically, the congestion window size is increased by one maximum segment size (MSS) for every round-trip time (RTT) of the connection, so long as no congestion is detected.
If congestion is detected, either through the receipt of a packet indicating congestion from the network or through packet loss, TCP reduces the congestion window size and re-enters slow start phase to ramp up its sending rate again.
The congestion avoidance algorithm is used to prevent TCP from overwhelming the network with traffic and causing congestion or packet loss. By gradually increasing the congestion window size, TCP can find the optimal sending rate without causing congestion, while also responding appropriately when congestion is detected.
MCQ: In the congestion avoidance algorithm, the size of the congestion window grows ______________ congestion is detected.
Correct Answer:A. exponentially; it reaches a threshold
Explanation:
In the congestion avoidance algorithm, the size of the congestion window grows additively until congestion is detected.
After the slow start phase, TCP enters congestion avoidance mode. During this phase, the size of the congestion window is increased linearly rather than exponentially as in slow start. Specifically, the congestion window size is increased by one maximum segment size (MSS) for every round-trip time (RTT) of the connection, so long as no congestion is detected.
If congestion is detected, either through the receipt of a packet indicating congestion from the network or through packet loss, TCP reduces the congestion window size and re-enters slow start phase to ramp up its sending rate again.
The congestion avoidance algorithm is used to prevent TCP from overwhelming the network with traffic and causing congestion or packet loss. By gradually increasing the congestion window size, TCP can find the optimal sending rate without causing congestion, while also responding appropriately when congestion is detected.