Chapter 6 Flashcards
What is the primary goal of TCP congestion control?
To determine the available capacity in the network to avoid congestion
Which mechanism does TCP use to adjust the size of the congestion window? A) Fast Retransmit
- Additive Increase/Multiplicative Decrease (AIMD)
- Slow Start
How does TCP infer the occurrence of network congestion?
By detecting timeouts and duplicate ACKs
What happens during TCP’s slow start phase?
The congestion window increases exponentially
What triggers the ‘Fast Retransmit’ mechanism in TCP?
The receipt of multiple duplicate ACKs
Which TCP mechanism adjusts the congestion window based on perceived network congestion without waiting for a packet loss?
Fast Recovery
What does the TCP ‘Additive Increase, Multiplicative Decrease’ strategy help prevent?
- Buffer overflow at the routers
- Congestion collapse
- Uncontrolled bandwidth usage
During TCP congestion control, when is the ‘Slow Start’ algorithm re-invoked?
After a timeout indicating packet loss
Which of the following best describes TCP’s Fast Retransmit?
It triggers retransmission of a packet if multiple duplicate ACKs are received.
In TCP congestion control, what is the purpose of the ‘Congestion Window’?
To control the number of bytes the sender is allowed to transmit without an ACK
Congestion Window (CWND)
- The congestion window controls the amount of data TCP can send into the network before requiring an acknowledgment.
- It starts small and adjusts dynamically based on network responses to find an optimal data flow rate without inducing congestion.
Additive Increase/Multiplicative Decrease (AIMD):
- This is the primary mechanism of TCP congestion control
- Where the congestion window increases gradually (additively) to probe for usable bandwidth and decreases sharply (multiplicatively) when congestion is detected (usually through packet loss indicated by timeouts or duplicate acknowledgments).
Slow Start Phase
- When a TCP connection begins, or after a timeout, TCP uses the slow start algorithm, where the congestion window size increases exponentially each round-trip time (RTT) until it detects packet loss or reaches a threshold.
- This rapid increase helps quickly utilize available bandwidth.
Fast Retransmit
Fast Retransmit triggers a retransmission of packets when multiple duplicate ACKs are received, suggesting that a packet has been lost but subsequent packets have been received.
Fast Recovery
Fast Recovery adjusts the congestion window in response to congestion detected via Fast Retransmit, allowing the congestion window to shrink less drastically than it would with multiplicative decrease alone, thus speeding recovery.
Congestion Avoidance:
After the slow start phase, TCP enters congestion avoidance where it increases the
congestion window more slowly to avoid causing congestion. This phase continues until a packet loss is detected.
Thresholds and Adjustments:
The threshold, or ssthresh, is a boundary between slow start and congestion avoidance. TCP uses this threshold to switch from the exponential growth of the slow start to the linear increase of congestion avoidance.
TCP Self-Clocking
- TCP uses the principle of self-clocking, where the receipt of ACKs paces the sending of new data.
- This mechanism ensures that data transmission is naturally regulated by the rate at which the network can handle the traffic.
Interaction with Network Conditions:
- TCP congestion control adapts not just to packet loss but also variations in round-trip time and other network conditions, adjusting its behavior to maintain efficient and stable data transfer.
Protocols and Algorithms:
TCP employs several protocols and algorithms to handle various scenarios and network conditions, such as selective acknowledgments (SACK) to improve performance in networks with high packet reordering.
TCP Timers and Their Role in Congestion Control:
- TCP uses various timers, such as the Retransmission Timeout (RTO), to detect lost packets.
- The behavior of these timers directly influences congestion control dynamics, as timeouts often trigger reductions in the congestion window.
Retransmission Strategies
TCP’s retransmission strategies, including Fast Retransmit, are crucial for maintaining throughput in the face of packet loss without waiting for the expiration of timers, which can significantly slow down transmission.
Network Feedback Utilization
- TCP interprets duplicate ACKs and timeouts as signals of potential network congestion.
- This feedback mechanism allows TCP to adjust the sending rate preemptively before more severe network congestion occurs.
Slow Start Restart (SSR)
- If a connection goes idle for a period, TCP may restart the slow start process, assuming that the state of the network may have changed during the idle period.
- This cautious approach helps avoid sudden bursts of data that might lead to packet loss.