Network congestion avoidance

From Wikipedia, the free encyclopedia

Network congestion avoidance is a process used in computer networks to avoid congestion.

The fundamental problem is that all network resources are limited, including router processing time and link throughput. Eg.:

  • todays (2006) Wireless LAN effective bandwidth throughput (15-100Mbit/s) is easily filled by a single personal computer.
  • Even on fast computer networks (e.g. 1 Gbit), the backbone can easily be congested by a few servers and client PCs.
  • Because P2P scales very well, file transmissions by P2P has no problem filling and will fill an uplink or some other network bottleneck. For P2P using TCP, this because P2P is programmed to find the best local P2P servers. And local typically means low round-trip times (RTT) and the lower RTT the more bandwidth is consumed. Other tcp flows with higher RTT will get less bandwidth.
  • Another way the network get congested is by users or Botnets overloading networking resources via denial of service attacks, making the network unusable, unless steps are taken to prevent this.

Implementations of connection-oriented protocols, such as the widely-used TCP protocol, generally watch for packet errors, losses, or delays (see Quality of Service) in order to adjust the transmit speed. There are many different network congestion avoidance processes, since there are a number of different trade-offs available. [1]

Contents

[edit] TCP/IP congestion avoidance

The TCP congestion avoidance algorithm is the primary basis for congestion control in the Internet. [2] [3] [4] [5] [6]

Problems occur when many concurrent TCP flows are experiencing port queue buffer tail-drops. Then TCP's automatic congestion avoidance is not enough. All flows that experience port queue buffer tail-drop will begin a TCP retrain at the same moment - this is called TCP global synchronization.

[edit] Active Queue Management (AQM)

[edit] Purpose

"Recommendations on Queue Management and Congestion Avoidance in the Internet" (RFC 2309[7]) states that:

  • Less packets will be dropped with Active Queue Management (AQM).
  • The link utilization will increase because less TCP global synchronization will occur.
  • By keeping the average queue size small, queue management will reduce the delays and jitter seen by flows.
  • The connection bandwidth will be more equally shared among connection oriented flows, even without flow-based RED or WRED.

[edit] Random early detection

One solution is to use random early detection (RED) on network equipments port queue buffer. [8] [9] On network equipment ports with more than one queue buffer, weighted random early detection (WRED) could be used if available.

RED indirectly signals to sender and receiver by deleting some packets, eg. when the average queue buffer lengths are more than eg. 50% (lower threshold) filled and deletes linearly more or (better according to paper) cubical more packets, [10] up to eg. 100% (higher threshold). The average queue buffer lengths are computed over 1 second at a time.

[edit] Flowbased-RED/WRED

Some network equipment are equipped with ports that can follow and measure each flow (flowbased-RED/WRED) and are hereby able to signal to a too big bandwidth flow according to some QoS policy. A policy could divide the bandwidth among all flows by some criteria.

[edit] IP ECN

Another approach is to use IP ECN[11]. ECN is only used when the two hosts signal that they want to use it. With this method, an ECN bit is used to signal that there is explicit congestion. This is better than the indirect packet delete congestion notification performed by the RED/WRED algorithms, but it requires explicit support by both hosts to be effective. [12] Some outdated or buggy network equipment drops packets with the ECN bit set, rather than ignoring the bit. More information on the status of ECN including the version required for Cisco IOS, by Sally Floyd[8], one of the authors of ECN.

When a router receives a packet marked as ECN capable and anticipates (using RED) congestion, it will set an ECN-flag notifying the sender of congestion. The sender then ought to decrease its transmission bandwidth; eg. by decreasing the tcp window size (sending rate) or by other means.

[edit] Cisco AQM: Dynamic buffer limiting (DBL)

Cisco has taken a step further in their Catalyst 4000 series with engine IV and V. Engine IV and V has the possibility to classify all flows in "aggressive" (bad) and "adaptive" (good). It ensures that no flows fill the port queues for a long time. DBL can utilize IP ECN instead of packet-delete-signalling. [13] [14]

[edit] See also

[edit] References

  1. ^ TCP Tunnels: Avoiding Congestion Collapse (2000)
  2. ^ Van Jacobson, Michael J. Karels. Congestion Avoidance and Control (1988). Proceedings of the Sigcomm '88 Symposium, vol.18(4): pp.314–329. Stanford, CA. August, 1988. This paper originated many of the congestion avoidance algorithms used in TCP/IP.
  3. ^ RFC 2001 - TCP Slow Start, Congestion Avoidance, Fast Retransmit, and Fast Recovery Algorithms
  4. ^ RFC 2581 - TCP Congestion Control
  5. ^ RFC 3390 - TCP Increasing TCP's Initial WindowOriginal RFC3390]
  6. ^ TCP Congestion Avoidance Explained via a Sequence Diagram
  7. ^ RFC 2309 - April 1998: Recommendations on Queue Management and Congestion Avoidance in the Internet
  8. ^ a b Sally Floyd: RED (Random Early Detection) Queue Management
  9. ^ Sally Floyd, Van Jacobson. Random Early Detection Gateways for Congestion Avoidance (1993). IEEE/ACM Transactions on Networking, vol.1(4): pp.397–413. Invented Random Early Detection (RED) gateways.
  10. ^ An Analytical RED Function Design Guaranteeing Stable System Behavior Quote: "...The advantage of this function lies not only in avoiding heavy oscillations but also in avoiding link under-utilization at low loads. The applicability of the derived function is independent of the load range, no parameters are to be adjusted. Compared to the original linear drop function applicability is extended by far...Our example with realistic system parameters gives an approximation function of the cubic of the queue size..."
  11. ^ RFC 3168 - The Addition of Explicit Congestion Notification (ECN) to IP
  12. ^ Comparative study of RED, ECN and TCP Rate Control (1999)
  13. ^ Active Queue Management
  14. ^ Enabling Dynamic Buffer Limiting

[edit] External links

In other languages