Skip to main content
Log in

Parallelism versus Memory Allocation in Pipelined Router Forwarding Engines

Theory of Computing Systems Aims and scope Submit manuscript

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 \(\frac 32\) asymptotically. The proof utilizes a new bin packing model, which is interesting in its own right. Further, for important special cases that arise in practice a more sophisticated modification of this approximation algorithm is in fact optimal. We also discuss the online memory allocation problem and present fast online algorithms that provide good memory utilization while allowing fast updates.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Fan Chung, Ronald Graham, Jia Mao or George Varghese.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Chung, F., Graham, R., Mao, J. et al. Parallelism versus Memory Allocation in Pipelined Router Forwarding Engines. Theory Comput Syst 39, 829–849 (2006). https://doi.org/10.1007/s00224-006-1249-3

Download citation

  • Received:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00224-006-1249-3

Keywords

Navigation