skip to main content
10.1145/1007912.1007928acmconferencesArticle/Chapter ViewAbstractPublication PagesspaaConference Proceedingsconference-collections
Article

Parallelism versus memory allocation in pipelined router forwarding engines

Published:27 June 2004Publication History

ABSTRACT

A crucial problem that needs to be solved is the allocation of memory to processors in a pipeline. Ideally, the processor memories should be totally separate (i.e., one port memories) in order to minimize contention; however, this minimizes memory sharing. Idealized sharing occurs by using a single shared memory for all processors but this maximizes contention. Instead, in this paper we show that perfect memory sharing of shared memory can be achieved with a collection of *two*-port memories, as long as the number of processors is less than the number of memories. We show that the problem of allocation is NP-complete in general, but has a fast approximation algorithm that comes within a factor of 3/2. The proof utilizes a new bin packing model, which is interesting in its own right. Further, for important special cases that arise in practice the approximation algorithm is indeed optimal. We also describe an incremental memory allocation algorithm that provides good memory utilization while allowing fast updates.

References

  1. A. Basu and G. Narlikar, Fast Incremental Updates for Pipeline Forwarding Engines, InfoCom 2003.Google ScholarGoogle Scholar
  2. C. Berge, Graphs and Hypergraphs, North-Holland, Amsterdam, 1976. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Guy E. Blelloch Phillip B. Gibbons Yossi Matias Accounting for Memory Bank Contention and Delay in High-Bandwidth Multiprocessors, IEEE Transactions on Parallel and Distributed Systems, volume 8, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. D. Culler, J, Singh, and A. Gupta. Parallel Computer Architecture, A Hardware/Software Approach, Morgan Kaufman, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. M. Degermark, A. Brodnik, S. Carlsson, and Stephen Pink, Small forwarding tables for fast routing lookups, Proc. SIGCOMM, (1997), 3--14. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. M. R. Garey and D. S. Johnson, Computer and Intractability, A Guide to the Theory of NP-completeness, W. H. Freeman and Co., San Francisco, 1979. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. M. R. Garey and D. S. Johnson, Complexity results for multiprocessor scheduling under resource constraints, SIAM J. Comput., (1975), 397--411.Google ScholarGoogle ScholarCross RefCross Ref
  8. A. Ranade, How to emulate shared memory. Journal of Computer and System Sciences, 42:307--326, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. B. Rau, Pseudo-randomly interleaved memory. In Proceedings Int. Symp. on Computer Architecture, 1991. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. T.V. Lakshman and D. Staliadis, High Speed Policy-based Packet Forwarding Using Efficient Multi-dimensional Range Matching, Proc. ACM SIGCOMM '98, 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. M. Ruiz-Sanchez, E. Biersack, and W. Dabbous, Survey and Taxonomy of IP Address Lookup Algorithms, IEEE Network, March/April 2001. Google ScholarGoogle ScholarDigital LibraryDigital Library
  12. S. Sikka and G. Varghese, Memory Efficient State Lookups with Fast Updates, in Proceedings of SIGCOMM 2000, August 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. L. Valiant, A bridging model for parallel computation. Communications of the ACM, 33(8), 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Parallelism versus memory allocation in pipelined router forwarding engines

          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
            SPAA '04: Proceedings of the sixteenth annual ACM symposium on Parallelism in algorithms and architectures
            June 2004
            332 pages
            ISBN:1581138407
            DOI:10.1145/1007912

            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: 27 June 2004

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • Article

            Acceptance Rates

            Overall Acceptance Rate447of1,461submissions,31%

            Upcoming Conference

            SPAA '24

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader