BIT254 ยท 2080 ยท 10 marks
What is Congestion Control? How can it be handled? Explain acknowledgement policy and discarding policy
What is Congestion Control? How can it be handled? Explain acknowledgement policy and discarding policy[10]
Quick answer
Congestion in a network occurs when the number of packets being transmitted through the network approaches the packet handling capacity of the network. Congestion control refers to the mechanisms and techniques used to control or prevent congestion so that network performance does not degrade.
Congestion Control
Definition
Note: No specific reference notes were found for this topic; the answer below is based on standard networking curriculum (Forouzan / Tanenbaum) as taught in BSc CSIT.
Why Congestion Occurs
When too many packets are present in a part of the network, network performance degrades. This happens because:
- Routers have limited buffer (queue) space
- Links have limited bandwidth
- Processors in routers have limited processing speed
If the load exceeds capacity, packets are dropped, retransmissions increase, and the situation worsens -- leading to congestion collapse.
How Congestion Can Be Handled
Congestion control approaches are broadly classified as:
1. Open Loop Congestion Control (Prevention)
Policies are applied before congestion occurs -- at the design stage.
| Policy Point | Technique |
|---|---|
| Source | Retransmission policy, Windowing policy |
| Destination | Acknowledgement policy |
| Router/Switch | Discarding policy, Scheduling policy |
2. Closed Loop Congestion Control (Reaction)
Policies are applied after congestion is detected.
- Back pressure: A congested node sends a signal to the upstream node to slow down.
- Choke packet: A special packet is sent by the router to the source to reduce its transmission rate.
- Implicit signaling: Source detects congestion from delays or dropped packets (e.g., TCP timeout).
- Explicit signaling: Router explicitly marks packets to inform source/destination of congestion (e.g., ECN -- Explicit Congestion Notification).
Open Loop Congestion Control Policies (Detailed)
A. Acknowledgement Policy
The acknowledgement (ACK) policy at the receiver side can greatly affect congestion.
How it works:
- If the receiver sends an acknowledgement for every packet received, it encourages the sender to keep sending packets rapidly, which can contribute to congestion.
- By delaying acknowledgements, the receiver can slow down the sender and reduce network load.
Techniques:
| Technique | Description |
|---|---|
| Cumulative ACK | Receiver sends one ACK for multiple received packets instead of one ACK per packet. This reduces ACK traffic and slows the sender. |
| Delayed ACK | Receiver waits for a short time (e.g., up to 500 ms) before sending an ACK, hoping to piggyback it on a data packet or combine multiple ACKs. |
| Selective ACK (SACK) | Receiver acknowledges only specific packets, avoiding unnecessary retransmissions. |
Effect on Congestion:
- Fewer ACKs mean the sender's window advances more slowly.
- This reduces the rate at which new packets are injected into the network.
- Thus, acknowledgement policy directly helps in preventing congestion at the source.
B. Discarding Policy
The discarding policy is applied at routers/switches. When a router's buffer is full or near full, it must decide which packets to drop.
Approaches:
1. Tail Drop (Default / Simple)
- When the buffer is full, the router simply drops all incoming packets (from the tail of the queue).
- Problem: Can cause global synchronization -- many TCP connections reduce their window simultaneously, then increase together, causing oscillation.
2. Random Early Detection (RED)
- The router monitors its average queue length.
- When the queue length exceeds a minimum threshold (min_th), it starts randomly dropping packets with increasing probability.
- When the queue length exceeds a maximum threshold (max_th), all packets are dropped.
Queue Length:
0 -------- min_th -------- max_th -------- Max Buffer
| |
Start random Drop all
dropping packets
- Advantage: Prevents global synchronization; notifies individual connections early.
- Advantage: Maintains low average queue length and low delay.
3. Priority-Based Discarding
- Packets are assigned priority levels.
- When congestion occurs, lower priority packets are dropped first.
- Higher priority packets (e.g., real-time voice/video) are protected.
4. Weighted RED (WRED)
- Extension of RED where different traffic classes have different drop probabilities.
- Higher priority traffic has a lower drop probability.
Summary Table
| Policy | Applied At | Purpose |
|---|---|---|
| Acknowledgement Policy | Receiver (Destination) | Slow down sender by reducing ACK frequency |
| Discarding Policy | Router/Switch | Decide which packets to drop when buffer is full |
| Retransmission Policy | Sender (Source) | Avoid unnecessary retransmissions |
| Scheduling Policy | Router | Decide which packet to send next (e.g., FIFO, WFQ) |
Conclusion
Congestion control is essential for maintaining network performance and reliability. Open loop methods like acknowledgement policy and discarding policy prevent congestion proactively, while closed loop methods react to congestion after it is detected. Together, these mechanisms ensure fair and efficient use of network resources.
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.