skip to main content
10.1145/1007352.1007366acmconferencesArticle/Chapter ViewAbstractPublication PagesstocConference Proceedingsconference-collections
Article

On the performance of greedy algorithms in packet buffering

Published:13 June 2004Publication History

ABSTRACT

We study a basic buffer management problem that arises in network switches. Consider m input ports, each of which is equipped with a buffer (queue) of limited capacity. Data packets arrive online and can be stored in the buffers if space permits; otherwise packet loss occurs. In each time step the switch can transmit one packet from one of the buffers to the output port. The goal is to maximize the number of transmitted packets. Simple arguments show that any reasonable algorithm, which serves any non-empty buffer, is 2-competitive. Azar and Richter recently presented a randomized online algorithm and gave lower bounds for deterministic and randomized strategies.In practice greedy algorithms are very important because they are fast, use little extra memory and reduce packet loss by always serving a longest queue. In this paper we first settle the competitive performance of the entire family of greedy strategies. We prove that greedy algorithms are not better than 2-competitive no matter how ties are broken. Our lower bound proof uses a new recursive construction for building adversarial buffer configurations that may be of independent interest. We also give improved lower bounds for deterministic and randomized online algorithms.In the second part of the paper we present the first deterministic online algorithm that is better than 2-competitive. We develop a modified greedy algorithm, called Semi-Greedy, and prove that it achieves a competitive ratio of $17/9 ≅ 1. 89$. The new algorithm is simple, fast and uses little extra memory. Only when the risk of packet loss is low, it does not serve the longest queue. Additionally we study scenarios when an online algorithm is granted additional resources. We consider resource augmentation with respect to memory and speed, i. e. an online algorithm may be given larger buffers or higher transmission rates. We analyze greedy and other online strategies.

References

  1. W. Aiello, Y. Mansour, S. Rajagopolan and A. Rosen, Competitive queue policies for differentiated services. Proc. INFOCOM, 431--440, 2000.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. N. Andelman, Y. Mansour and A. Zhu. Competitive queueing policies in QoS switches. Proc. 14th ACM-SIAM Symp. on Discrete Algorithms, 761--770, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Y. Azar and Y. Richter. Management of multi-queue switches in QoS Networks. Proc. 35th ACM Symp. on Theory of Computing, 82--89, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. A. Aziz, A. Prakash and V. Ramachandran. A new optimal scheduler for switch-memory-switch routers. Proc. 15th Annual ACM Symp. on Parallelism in Algorithms and Architectures, 343--352, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. A. Bar-Noy, A. Freund, S. Landa and J. Naor. Competitive on-line switching policies. Proc. 13th ACM-SIAM Symp. on Discrete Algorithms, 525--534, 2002.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. E. L. Hahne, A. Kesselman and Y. Mansour. Competitive buffer management for shared-memory switches. Proc. 13th ACM Symp. on Parallel Algorithms and Architectures, 53--58, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. A. Kesselman, Z. Lotker, Y. Mansour, B. Patt-Shamir, B. Schieber and M. Sviridenko. Buffer overflow management in QoS switches. Proc. 31st ACM Symp. on Theory of Computing, 520--529, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. A. Kesselman and Y. Mansour. Loss-bounded analysis for differentiated services. Proc. 12th ACM-SIAM Symp. on Discrete Algorithms, 591--600, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. A. Kesselman, Y. Mansour and R. van Stee. Improved competitive guarantees for QoS buffering Proc. 11th European Symp. on Algorithms, LNCS Vol. 2832, 361--372, 2003.]]Google ScholarGoogle Scholar
  10. A. Kesselman and A. Rosen. Scheduling policies for CIOQ switches. Proc. 15th Annual ACM Symp. on Parallelism in Algorithms and Architectures, 353--361, 2003.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. H. Koga. Balanced scheduling towards loss-free packet queueing and delay fairness. Proc. 12th Annual International Symp. on Algorithms and Computation, LNCS Vol. 2223, 61--73, 2001.]] Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. D. D. Sleator and R. E. Tarjan. Amortized efficiency of list update and paging rules. Comm. of the ACM, 28:202-208, 1985.]] Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. On the performance of greedy algorithms in packet buffering

          Recommendations

          Comments

          Login options

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

          Sign in
          • Published in

            cover image ACM Conferences
            STOC '04: Proceedings of the thirty-sixth annual ACM symposium on Theory of computing
            June 2004
            660 pages
            ISBN:1581138520
            DOI:10.1145/1007352

            Copyright © 2004 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 13 June 2004

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • Article

            Acceptance Rates

            Overall Acceptance Rate1,469of4,586submissions,32%

            Upcoming Conference

            STOC '24
            56th Annual ACM Symposium on Theory of Computing (STOC 2024)
            June 24 - 28, 2024
            Vancouver , BC , Canada

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader