article

Sizing router buffers

Published:30 August 2004Publication History
Skip Abstract Section

Abstract

All Internet routers contain buffers to hold packets during times of congestion. Today, the size of the buffers is determined by the dynamics of TCP's congestion control algorithm. In particular, the goal is to make sure that when a link is congested, it is busy 100% of the time; which is equivalent to making sure its buffer never goes empty. A widely used rule-of-thumb states that each link needs a buffer of size B = overlineRTT x C, where overlineRTT is the average round-trip time of a flow passing across the link, and C is the data rate of the link. For example, a 10Gb/s router linecard needs approximately 250ms x 10Gb/s = 2.5Gbits of buffers; and the amount of buffering grows linearly with the line-rate. Such large buffers are challenging for router manufacturers, who must use large, slow, off-chip DRAMs. And queueing delays can be long, have high variance, and may destabilize the congestion control algorithms. In this paper we argue that the rule-of-thumb (B = (overlineRTT x C) is now outdated and incorrect for backbone routers. This is because of the large number of flows (TCP connections) multiplexed together on a single backbone link. Using theory, simulation and experiments on a network of real routers, we show that a link with n flows requires no more than B = (overlineRTT x C) √n, for long-lived or short-lived TCP flows. The consequences on router design are enormous: A 2.5Gb/s link carrying 10,000 flows could reduce its buffers by 99% with negligible difference in throughput; and a 10Gb/s link carrying 50,000 flows requires only 10Mbits of buffering, which can easily be implemented using fast, on-chip SRAM.

References

  1. C. Villamizar and C. Song. High performance tcp in ansnet. ACM Computer Communications Review, 24(5):45--60, 1994 1994.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. Cisco line cards. http://www.cisco.com/en/US/products/hw/modules/ps2710/products_data_sheets_list.html.]]Google ScholarGoogle Scholar
  3. R. Bush and D. Meyer. RFC 3439: Some internet architectural guidelines and philosophy, December 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. C. J. Fraleigh. Provisioning Internet Backbone Networks to Support Latency Sensitive Applications. PhD thesis, Stanford University, Department of Electrical Engineering, June 2002.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. D. Ferguson. {e2e} Queue size of routers. Posting to the end-to-end mailing list, January 21, 2003.]]Google ScholarGoogle Scholar
  6. S. H. Low, F. Paganini, J. Wang, S. Adlakha, and J. C. Doyle. Dynamics of tcp/red and a scalable control. In Proceedings of IEEE INFOCOM 2002, New York, USA, June 2002.]]Google ScholarGoogle ScholarCross RefCross Ref
  7. G. Appenzeller, I. Keslassy, and N. McKeown. Sizing router buffers. Technical Report TR04-HPNG-06-08-00, Stanford University, June 2004. Extended version of the paper published at SIGCOMM 2004.]]Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. S. Iyer, R. R. Kompella, and N. McKeown. Analysis of a memory architecture for fast packet buffers. In Proceedings of IEEE High Performance Switching and Routing, Dallas, Texas, May 2001.]]Google ScholarGoogle ScholarCross RefCross Ref
  9. C. Dovrolis. {e2e} Queue size of routers. Posting to the end-to-end mailing list, January 17, 2003.]]Google ScholarGoogle Scholar
  10. S. Shenker, L. Zhang, and D. Clark. Some observations on the dynamics of a congestion control algorithm. ACM Computer Communications Review, pages 30--39, Oct 1990.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. The network simulator - ns-2. http://www.isi.edu/nsnam/ns/.]]Google ScholarGoogle Scholar
  12. S. Floyd and V. Jacobson. Random early detection gateways for congestion avoidance. IEEE/ACM Transactions on Networking, 1(4):397--413, 1993.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. L. Zhang and D. D. Clark. Oscillating behaviour of network traffic: A case study simulation. Internetworking: Research and Experience, 1:101--112, 1990.]]Google ScholarGoogle Scholar
  14. L. Qiu, Y. Zhang, and S. Keshav. Understanding the performance of many tcp flows. Comput. Networks, 37(3-4):277--306, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  15. G. Iannaccone, M. May, and C. Diot. Aggregate traffic performance with active queue management and drop from tail. SIGCOMM Comput. Commun. Rev., 31(3):4--13, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. V. Paxson and S. Floyd. Wide area traffic: the failure of Poisson modeling. IEEE/ACM Transactions on Networking, 3(3):226--244, 1995.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  17. A. Feldmann, A. C. Gilbert, and W. Willinger. Data networks as cascades: Investigating the multifractal nature of internet WAN traffic. In SIGCOMM, pages 42--55, 1998.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. R. W. Wolff. Stochastic Modelling and the Theory of Queues, chapter 8. Prentice Hall, October 1989.]]Google ScholarGoogle Scholar
  19. F. P. Kelly. Notes on Effective Bandwidth, pages 141--168. Oxford University Press, 1996.]]Google ScholarGoogle Scholar
  20. J. Cao, W. Cleveland, D. Lin, and D. Sun. Internet traffic tends to poisson and independent as the load increases. Technical report, Bell Labs, 2001.]]Google ScholarGoogle Scholar
  21. S. Floyd and V. Paxson. Difficulties in simulating the internet. IEEE/ACM Transactions on Networking, February 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. R. Morris. Scalable tcp congestion control. In Proceedings of IEEE INFOCOM 2000, Tel Aviv, USA, March 2000.]]Google ScholarGoogle ScholarCross RefCross Ref
  23. S. B. Fredj, T. Bonald, A. Proutière, G. Régnié, and J. Roberts. Statistical bandwidth sharing: a study of congestion at flow level. In Proceedings of SIGCOMM 2001, San Diego, USA, August 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  24. Personal communication with stanford networking on characteristics of residential traffic.]]Google ScholarGoogle Scholar
  25. Cisco 12000 series routers. http://www.cisco.com/en/US/products/hw/routers/ps167/.]]Google ScholarGoogle Scholar
  26. J. Sommers, H. Kim, and P. Barford. Harpoon: A flow-level traffic generator for router and network test. In Proceedings of ACM SIGMETRICS, 2004. (to appear).]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  27. I. Cisco~Systems. Netflow services solution guido, July 2001. http://www.cisco.com/.]]Google ScholarGoogle Scholar
  28. L. Zhang, S. Shenker, and D. D. Clark. Observations on the dynamics of a congestion control algorithm: The effects of two-way traffic. In Proceedings of ACM SIGCOMM, pages 133--147, September 1991.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  29. Microsoft. Tcp/ip and nbt configuration parameters for windows xp. Microsoft Knowledge Base Article - 314053, November 4, 2003.]]Google ScholarGoogle Scholar
  30. K. McCloghrie and M. T. Rose. RFC 1213: Management information base for network management of TCP/IP-based internets:MIB-II, March 1991. Status: STANDARD.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  31. R. Morris. Tcp behavior with many flows. In Proceedings of the IEEE International Conference on Network Protocols, Atlanta, Georgia, October 1997.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  32. K. Avrachenkov, U. Ayesta, E. Altman, P. Nain, and C. Barakat. The effect of router buffer size on the tcp performance. In Proceedings of the LONIIS Workshop on Telecommunication Networks and Teletraffic Theory, pages 116--121, St.Petersburg, Russia, January 2002.]]Google ScholarGoogle Scholar
  33. M. Garetto and D. Towsley. Modeling, simulation and measurements of queueing delay under long-tail internet traffic. In Proceedings of SIGMETRICS 2003, San Diego, USA, June 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Sizing router buffers

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in

    Full Access

    • Published in

      cover image ACM SIGCOMM Computer Communication Review
      ACM SIGCOMM Computer Communication Review  Volume 34, Issue 4
      October 2004
      385 pages
      ISSN:0146-4833
      DOI:10.1145/1030194
      Issue’s Table of Contents
      • cover image ACM Conferences
        SIGCOMM '04: Proceedings of the 2004 conference on Applications, technologies, architectures, and protocols for computer communications
        August 2004
        402 pages
        ISBN:1581138628
        DOI:10.1145/1015467

      Copyright © 2004 ACM

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 30 August 2004

      Check for updates

      Qualifiers

      • article

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader
    About Cookies On This Site

    We use cookies to ensure that we give you the best experience on our website.

    Learn more

    Got it!