Multiple parallel packet routing lookup
First Claim
1. A method, including the steps ofreceiving a packet header, said packet header including header information;
- determining a packet treatment identifier responsive to said header information, said packet treatment identifier including a destination address; and
using said packet treatment identifier to access a memory having information regarding treatment of packets, said information being responsive to a length field for said header information, said memory including a plurality of entries matching said header information and differing with regard to said length field, said entries associated with packet routing information, and wherein said length field indicates a longest match for said destination address included in said header information.
1 Assignment
0 Petitions
Accused Products
Abstract
The invention provides a method and system for routing information lookup for packets using a routing protocol such as IP. Routing information which has been determined responsive to the packet header, which includes a destination address, a source address, and an input interface for the packet. Routing lookup is performed in response to at least one set of selected routing information, using a lookup table which includes tags both for the routing information and for a bitmask length (thus indicating the generality or scope of the routing information for the routing lookup). The lookup table is structured so that addresses having the most common bitmask length are addressed first, but that more specific addresses are still considered when they are present. It has been discovered that most internet addresses can be found by reference to 24-bit or 21-bit IP addresses, after which 16-bit, 12-bit, and finally 32-bit IP addresses are considered. Lookup flags indicate when a relatively uncommon but more specific 32-bit IP address match is available. A memory controller pipelines the lookup requests to a hash table memory, flushes superfluous requests when a lookup result is found, and handles cases relating to 32-bit IP address matches.
294 Citations
4 Claims
-
1. A method, including the steps of
receiving a packet header, said packet header including header information; -
determining a packet treatment identifier responsive to said header information, said packet treatment identifier including a destination address; and
using said packet treatment identifier to access a memory having information regarding treatment of packets, said information being responsive to a length field for said header information, said memory including a plurality of entries matching said header information and differing with regard to said length field, said entries associated with packet routing information, and wherein said length field indicates a longest match for said destination address included in said header information. - View Dependent Claims (2, 3, 4)
-
Specification