Skip to main content

Matching Integer Intervals by Minimal Sets of Binary Words with don’t cares

  • Conference paper
Combinatorial Pattern Matching (CPM 2008)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 5029))

Included in the following conference series:

Abstract

An interval [p,q], where 0 ≤ p ≤ q < 2n, can be considered as the set X of n-bit binary strings corresponding to encodings of all integers in [p,q]. A word w with don’t care symbols is matching the set L(w) of all words of the length |w| which can differ only on positions containing a don’t care. A set Y of words with don’t cares is matching X iff X  = ∪  w ∈ Y L(w). For a set X of codes of integers in [p,q] we ask for a minimal size set Y of words with don’t cares matching X. Such a problem appears in the context of network processing engines using Ternary Content Addressable Memory (TCAM) as a lookup table for IP packet header fields. The set Y is called a template in this paper, and it corresponds to a TCAM representation of an interval. It has been traditionally calculated by a heuristic called “prefix match”, which can produce a result of the size approximately twice larger than the minimal one. In this paper we present two fast (linear time in the size of the input and the output) algorithms for finding minimal solutions for two natural encodings of integers: the usual binary representation (lexicographic encoding) and the reflected Gray code.

The research of the second author was supported by the grant of the Polish Ministery of Science and Higher Education N 206 004 32/0806.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Kempke, R., McAuley, A.: Ternary CAM memory architecture and methodology. US Patent 5, 841–874 (August 1996)

    Google Scholar 

  2. Kohonen, T.: Content-Addressable Memories. Springer, New York (1980)

    MATH  Google Scholar 

  3. Davis, G., Jeffries, C., Lunteren, J.: Method and system for performing range rule testing in a ternary content addressable memory. US Patent 6, 886,073 (April 2005)

    Google Scholar 

  4. Jeong, H.J., Song, I.S., Kwon, T.G., Lee, Y.K.: A multi-dimension rule update in a tcam-based high-performance network security system. In: AINA 2006: Proceedings of the 20th International Conference on Advanced Information Networking and Applications. AINA 2006, Washington, DC, USA, vol. 2, pp. 62–66. IEEE Computer Society, Los Alamitos (2006)

    Chapter  Google Scholar 

  5. Srinivasan, V., Varghese, G., Suri, S., Waldvogel, M.: Fast and scalable layer four switching. In: SIGCOMM 1998: Proceedings of the ACM SIGCOMM 1998 conference on Applications, technologies, architectures, and protocols for computer communication, pp. 191–202. ACM, New York (1998)

    Chapter  Google Scholar 

  6. Lakshminarayanan, K., Rangarajan, A., Venkatachary, S.: Algorithms for advanced packet classification with Ternary CAMs. In: SIGCOMM, pp. 193–204 (2005)

    Google Scholar 

  7. Liu, H.: Efficient mapping of range classifier into ternary-cam. In: HOTI 2002: Proceedings of the 10th Symposium on High Performance Interconnects HOT Interconnects (HotI 2002), Washington, DC, USA, p. 95. IEEE Computer Society, Los Alamitos (2002)

    Google Scholar 

  8. Gilbert, E.: Gray codes and paths on the n-cube. Bell Systems Technical Journal 37, 815–826 (1958)

    Google Scholar 

  9. Gray, F.: Pulse code communications. US Patent 2,632,058 (March 1953)

    Google Scholar 

  10. Brayton, R., Hachtel, G., McMullen, C., Sangiovanni-Vincentelli, A.: Logic Minimization Algorithms for VLSI Synthesis. Kluwer Academic Publishers, Dordrecht (1984)

    MATH  Google Scholar 

  11. Fraczak, W., Rytter, W., Yazdani, M.: TCAM representations of intervals of integers encoded by binary trees. In: Proceedings of IWOCA Conference, Lake Macquarie, Newcastle, Australia (November 2007)

    Google Scholar 

  12. Coudert, O.: Two-level logic minimization: an overview. Integr. VLSI J 17(2), 97–140 (1994)

    Article  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Paolo Ferragina Gad M. Landau

Rights and permissions

Reprints and permissions

Copyright information

© 2008 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Fraczak, W., Rytter, W., Yazdani, M. (2008). Matching Integer Intervals by Minimal Sets of Binary Words with don’t cares . In: Ferragina, P., Landau, G.M. (eds) Combinatorial Pattern Matching. CPM 2008. Lecture Notes in Computer Science, vol 5029. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-69068-9_21

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-69068-9_21

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-69066-5

  • Online ISBN: 978-3-540-69068-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics