Skip to main content

XOR-Based Schemes for Fast Parallel IP Lookups

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2653))

Abstract

An IP router must forward packets at gigabit speed in order to guarantee a good QoS. Two important factors make this task a challenging problem: (i) for each packet, the longest matching preffix in the forwarding table must be computed; (ii) the routing tables contain several thousands of entries and their size grows significantly every year. Because of this, parallel routers have been developed which use several processors to forward packets. In this work, we present a novel algorithmic technique which, for the first time, exploits the parallelism of the router to also reduce the size of the routing table. Our method is scalable and requires onlya minimal additional hardware. Indeed, we prove that any IP routing table T can be split into two subtables T 1 and T 2 such that: (a) |T 1| can be any positive integer k ≤ |T| and |T 2| ≤ |T| ∑ k; (b) the two routing tables can be used separately by two processors so that the IP lookup on T is obtained by simply XOR-ing the IP lookup on the two tables. Our method is independent on the data structure used to implement the lookup search and it allows for a better use of the processors L2 cache. For real routers routing tables, we also show how to achieve simultaneously: (a) |T 1| is roughly 7% of the original table T; (b) the lookup on table T 2 does not require the best matching preffix computation.

Research supported by the European project CRESCCO.

Most of this work has been done while at the University of Rome “Tor Vergata”, Math Department.

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

Buying options

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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. S. Bellovin, R. Bush, T.G. Griffin, and J. Rexford. Slowing routing table growth by filtering based on address allocation policies. http://www.research.att.com/~jrex/, June 2001.

  2. G. Bongiovanni and P. Penna. XOR-based schemes for fast parallel IP lookups. Technical report, University of Salerno, 2003. Electronically available at http://www.dia.unisa.it/~penna.

  3. T. Bu, L. Gao, and D. Towsley. On Routing Table Growth. In Proceedings of Globe Internet, 2002.

    Google Scholar 

  4. P. Crescenzi, L. Dardini, and R. Grossi. IP address lookup made fast and simple. In Proc. 7th Annual European Symposium on Algorithms, volume 1643 of LNCS, 1999.

    Google Scholar 

  5. S. Deering and R. Hinden. Internet protocol, version 6 (IPv6). RFC 1883, 1995.

    Google Scholar 

  6. M. Degernark, A. Brodnik, S. Carlesson, and S. Pink. Small forwarding tables for fast routing lookups. ACM Computer Communication Review, 27(4):3–14, 1997.

    Article  Google Scholar 

  7. DIGITAL, http://www.networks.europe.digital.com/html/products guide/hpswch3.html. GIGAswitch/FDDI networking switch, 1995.

  8. V. Fuller, T. Li, J. Yu, and K. Varadhan. Classless Inter-Domain Routing (CIDR): and address assignment and aggregation strategy. RFC 1519, September 1993.

    Google Scholar 

  9. N. Huang, S. Zhao, and J. Pan C. Su. A Fast IP Routing Lookup Scheme for Gigabit Switching Routers. In IEEE INFOCOM, 2002.

    Google Scholar 

  10. G. Huston. Analyzing the Internet’s BGP Routing Table. The Internet Protocol Journal, 4(1), 2001.

    Google Scholar 

  11. C. Labovitz, G.R. Malan, and F. Jahanian. Origins of Internet Routing Instability. In IEEE INFOCOM, 1999.

    Google Scholar 

  12. B. Lampson, V. Srinivasan, and G. Varghese. IP Lookups using Multi-way and Multicolumn Search. In INFOCOM, 1998.

    Google Scholar 

  13. A. McAuley, P. Tsuchiya, and D. Wilson. Fast multilevel hierarchical routing table using content-adressable memory. US Patent Serial Number 034444, 1995.

    Google Scholar 

  14. MERIT, ftp://ftp.merit.edu/ipma/routing_table. IPMA statistices, 2002.

  15. M. Mitzenmacher and A. Broder. Using Multiple Hash Functions to Improve IP Lookups. In IEEE INFOCOM, 2001.

    Google Scholar 

  16. P. Newman, G. Minshall, T. Lyon, and L. Huston. IP Switching and Gigabit Routers. IEEE Communications Magazine, January 1997.

    Google Scholar 

  17. S. Nilsson and G. Karlsson. Fast address look-up for internet routers. Proc. of ALEX, pages 42–50, February 1998.

    Google Scholar 

  18. D. Pao, C. Liu, A. Wu, L. Yeung, and K.S. Chan. Efficient Hardware Architecture for Fast IP Adress Lookup. In IEEE INFOCOM, 2002.

    Google Scholar 

  19. C. Partridge, P. Carvey, E. Burgess, I. Castineyra, T. Clarke, L. Graham, M. Hathaway, P. Herman, A. King, S. Kohalmi, T. Ma, J. Mcallen, T. Mendez, W.C. Miller, R. Pettyjohn, J. Rokosz, J. Seeger, M. Sollins, S. Storch, B. Tober, G.D. Troxel, and S. Winterble. A 50-Gb/s IP router. IEEE/ACM Transactions on Networking, 6(3):237–247, 1998.

    Article  Google Scholar 

  20. T.-B. Pei and C. Zukowski. Putting routing tables into silicon. IEEE Network, January 1992.

    Google Scholar 

  21. Pluris Inc., White Paper, http://www.pluris.com. Pluris Massively Parallel Routing.

  22. J. Postel. J. Internet protocol. RFC 791, 1981.

    Google Scholar 

  23. V. Srinivasan and G. Varghese. Faster IP Lookups using Controlled Preffix Expansion. In Proc. of ACM SIGMETRICS (also in ACM TOCS 99), pages 1–10, September 1998.

    Google Scholar 

  24. D.E. Taylor, J.W. Lockwood, T.S. Sroull, J.S. Turner, and D.B. Parlour. Scalable IP Lookup for Programmable Routers. In IEEE INFOCOM, 2002.

    Google Scholar 

  25. M. Waldvogel, G. Varghese, J. Turner, and B. Plattner. Scalable High Speed IP Routing Lookups. In Proc. of ACM SIGCOMM, pages 25–36, September 1997.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2003 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bongiovanni, G., Penna, P. (2003). XOR-Based Schemes for Fast Parallel IP Lookups. In: Petreschi, R., Persiano, G., Silvestri, R. (eds) Algorithms and Complexity. CIAC 2003. Lecture Notes in Computer Science, vol 2653. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44849-7_28

Download citation

  • DOI: https://doi.org/10.1007/3-540-44849-7_28

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-40176-6

  • Online ISBN: 978-3-540-44849-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics