Congestion control refers to techniques and mechanisms that can:
The size of the sender window is determined by the following two factors:
1. Receiver Window Size
2. Congestion Window
So, always
Sender window size = Minimum (Receiver window size, Congestion window size)
TCP’s general policy for handling congestion consists of following three phases-
1. Slow Start Phase
The followed formula is
Congestion window size = Congestion window size + Maximum segment size
This is shown below
This phase continues until the congestion window size reaches the slow start threshold.
Threshold
= Maximum number of TCP segments that receiver window can accommodate / 2
= (Receiver window size / Maximum Segment Size) / 2
2. Congestion Avoidance Phase
After reaching the threshold,
The followed formula is:
Congestion window size = Congestion window size + 1
This phase continues until the congestion window size becomes equal to the receiver window size.
3. Congestion Detection Phase
When sender detects the loss of segments, it reacts in different ways depending on how the loss is detected
Case-01: Detection On Time Out
Reaction
In this case, sender reacts by:
Case-02: Detection On Receiving 3 Duplicate Acknowledgements
Reaction
In this case, sender reacts by:
21 videos|113 docs|66 tests
|
1. What is TCP congestion control? |
2. How does TCP congestion control work? |
3. What is Slow Start algorithm in TCP congestion control? |
4. How does TCP congestion control prevent packet loss? |
5. Can TCP congestion control be disabled or modified? |
|
Explore Courses for Computer Science Engineering (CSE) exam
|