METHOD AND APPARATUS FOR PACKET SWITICHING
First Claim
Patent Images
1. An apparatus comprising:
- a lookup memory having a primary table and a secondary table, wherein the secondary table includes a first set of ternary rules, and wherein the primary includes a set of binary rule, and wherein each binary rule is a binary version of at least one ternary rule from a second set of ternary rules; and
a search engine that is coupled to the lookup memory, wherein the search engine includes;
an controller that is configured to receive data words; and
hash logic that is coupled to lookup memory and the controller, wherein the hash logic is configured to perform a binary search of the primary table to determine whether each data word matches at least one of the binary rules, and wherein, if there is a failed match by hash logic and primary table, the search engine is configured to perform a ternary search of the secondary table to determine whether the data word associated with the failed match matches at least one of the ternary rules from the first set of ternary rules.
3 Assignments
0 Petitions
Accused Products
Abstract
A method for performing packet lookups is provided. Packets (which each have a body and a header) are received and parsed to parsing headers. A hash function is applied to each header, and each hashed header is compared with a plurality of binary rules stored within a primary table, where each binary rule is a binary version of at least one ternary rule from a first set of ternary rules. For each match failure with the plurality of rules, a secondary table is searched using the header associated with each match failure, where the secondary table includes a second set of ternary rules.
41 Citations
20 Claims
-
1. An apparatus comprising:
-
a lookup memory having a primary table and a secondary table, wherein the secondary table includes a first set of ternary rules, and wherein the primary includes a set of binary rule, and wherein each binary rule is a binary version of at least one ternary rule from a second set of ternary rules; and a search engine that is coupled to the lookup memory, wherein the search engine includes; an controller that is configured to receive data words; and hash logic that is coupled to lookup memory and the controller, wherein the hash logic is configured to perform a binary search of the primary table to determine whether each data word matches at least one of the binary rules, and wherein, if there is a failed match by hash logic and primary table, the search engine is configured to perform a ternary search of the secondary table to determine whether the data word associated with the failed match matches at least one of the ternary rules from the first set of ternary rules. - View Dependent Claims (2, 3)
-
- 4. The apparatus of claim 4, wherein the dynamic memory is a static random access memory (SRAM).
-
10. A method comprising:
-
receiving a plurality of packets, wherein each packet has a body and a header; parsing each packet to extract its header; applying a hash function to each header; comparing each hashed header with a plurality of binary rules stored within a primary table, wherein each binary rule is a binary version of at least one ternary rule from a first set of ternary rules; and for each match failure with the plurality of rules, searching a secondary table using the header associated with each match failure, wherein the secondary table includes a second set of ternary rules. - View Dependent Claims (11, 12, 13, 14, 15)
-
-
16. An apparatus comprising:
-
a primary table including a set of binary rule, and wherein each binary rule is a binary version of at least one ternary rule from a first set of ternary rules; a secondary table including a first set of ternary rules; a switching circuit having; a shared memory; a search engine including; an controller that is configured to receive data words; and hash logic that is coupled to lookup memory and the controller, wherein the hash logic is configured to perform a binary search of the primary table to determine whether each data word matches at least one of the binary rules, and wherein, if there is a failed match by hash logic and primary table, the search engine is configured to perform a ternary search of the secondary table to determine whether the data word associated with the failed match matches at least one of the ternary rules from the first set of ternary rules; and a plurality of port managers that are each in communication with the search engine; and input/output (I/O) circuit that is in communication with the switching circuit. - View Dependent Claims (17, 18, 19, 20)
-
Specification