×

Hierarchical hash method for performing forward route lookup

  • US 7,483,430 B1
  • Filed: 02/28/2003
  • Issued: 01/27/2009
  • Est. Priority Date: 02/28/2003
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for performing a lookup to support forwarding of IP packets in a router comprising a network processor and a route processor, the method comprising:

  • receiving a packet containing a destination IP address at a device comprising a base hash table containing IP prefixes divided into prefix groups according to prefix length and quick hash tables each comprising the IP prefixes from two or more of said prefix groups and configured to identify one or more of said prefix groups to search in the base hash table;

    performing a lookup for the IP address in the base hash table, said lookup comprising searching the prefix group containing the longest prefix, wherein performing said lookup comprises searching a first prefix group in the base hash table and if a match is not found in said first prefix group, searching one of the quick hash tables for the IP address to determine the next prefix group to search in the base hash table by identifying one or more prefix groups that do not need to be searched in the base hash table;

    performing adjacency processing at the network processor if a match is found in one of the prefix groups; and

    forwarding the packet from the network processor performing said lookup to a route processor for further processing if no match is found;

    wherein the network processor comprises a plurality of microprocessors arranged to process data packets in parallel pipelines, and performing a lookup for the IP address comprises processing a data packet at one or more of said parallel pipelines and wherein the hash tables are located on two or more memory controllers and subsequent hash accesses are interleaved between memory controllers.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×