24 Traffic Management TCP Congestion 24-10-2024 (1)
24 Traffic Management TCP Congestion 24-10-2024 (1)
24 Traffic Management TCP Congestion 24-10-2024 (1)
Congestion Control
Window size
• Generally the sender window size is determined by the available
buffer space in the receiver (rwnd).
• If the network cannot deliver the data as fast as they are created by
the sender, it must tell the sender to slow down.
• In other words, in addition to the receiver, the network is a second
entity that determines the size of the sender's window.
Actual window size = minimum (rwnd, cwnd)
rwnd- receiver window; cwnd- congestion window
Congestion policy
• TCP's general policy for handling congestion is based on three phases:
• Slow start,
• Congestion avoidance,
• Congestion detection.
Slow start
• Slow Start: Exponential Increase
• One of the algorithms used in TCP congestion control is called slow
start.
• This algorithm is based on the idea that the size of the congestion
window (cwnd) starts with one maximum segment size (MSS).
• In the slow-start algorithm, the size of the congestion window
increases exponentially until it reaches a threshold.
Congestion avoidance
• Congestion avoidance- which undergoes an additive increase instead
of an exponential one.
• When the size of the congestion window reaches the slow-start
threshold, the slow-start phase stops and the additive phase begins.