Problem 50
Question
Consider a simplified TCP's AIMD algorithm where the congestion window size is measured in number of segments, not in bytes. In additive increase, the congestion window size increases by one segment in each RTT. In multiplicative decrease, the congestion window size decreases by half (if the result is not an integer, round down to the nearest integer). Suppose that two TCP connections, \(C_{1}\) and \(C_{2}\), share a single congested link of speed 30 segments per second. Assume that both \(\mathrm{C}_{1}\) and \(\mathrm{C}_{2}\) are in the congestion avoidance phase. Connection \(\mathrm{C}_{1}\) 's RTT is \(50 \mathrm{msec}\) and connection \(\mathrm{C}_{2}\) 's RTT is \(100 \mathrm{msec}\). Assume that when the data rate in the link exceeds the link's speed, all TCP connections experience data segment loss. a. If both \(\mathrm{C}_{1}\) and \(\mathrm{C}_{2}\) at time \(\mathrm{t}_{0}\) have a congestion window of 10 segments, what are their congestion window sizes after 1000 msec? b. In the long run, will these two connections get the same share of the bandwidth of the congested link? Explain.
Step-by-Step Solution
VerifiedKey Concepts
Congestion Window
The AIMD algorithm works by adjusting the size of the congestion window based on network conditions. During the additive increase phase, the window size incrementally grows by one segment per RTT (Round Trip Time). This phase continues until packet loss occurs, signaling network congestion.
When congestion is detected, the multiplicative decrease phase kicks in, reducing the congestion window size by half. This decrease helps prevent network overload.
- Additive Increase: Slow and steady growth.
- Multiplicative Decrease: Responsive reduction to avoid load.
Round-Trip Time (RTT)
In our scenario, connection \(C_1\) has an RTT of 50 msec, while connection \(C_2\) has an RTT of 100 msec. These times directly impact the growth rate of their congestion windows because the frequency of CWND increases is tied to RTT length.
- Connection with smaller RTT (\(C_1\)) can increase its window more often.
- Longer RTT for \(C_2\) means slower growth rate.
Bandwidth Allocation
In the given problem, two connections are vying for bandwidth over a shared link. The AIMD algorithm makes sure that each connection increases its share until congestion occurs. After a congestion event, each connection halves its congestion window, which determines their throughput.
Because \(C_1\) has a shorter RTT, it can increase its congestion window more rapidly, leading to a temporary advantage. Over time, \(C_1\) maintains a slightly larger share of the bandwidth due to its faster increase cycle, even though AIMD's fairness strives to equalize shares.
- Short RTT leads to aggressive bandwidth capture.
- AIMD balances the scale, promoting fairness over long-term use.