Pattern matching operations are critical to many applications, such as in high speed networks or in rule engines for event processing. Ternary content addressable memory (TCAM) devices have been used for performing pattern matching operations, albeit in simpler pattern matching operations. TCAM devices, however, have high power consumption and are inefficient in performing large volume and complex pattern matching.
Examples described herein provide for a system, such as a search system, to partition a ternary content addressable memory (TCAM) array to store both a bit vector for a Bloom filter and a set of TCAM words for performing search operations. As described herein, a TCAM word can correspond to a target pattern that is stored in a row of TCAM array. For example, the system can designate or partition the TCAM array into a first portion to store the bit vector and a second portion to store the set of TCAM words. The system can monitor the performance of the search operations in order to dynamically adjust the size of the first and second portions of the TCAM array. In this manner, the system can use the Bloom filter to reduce the number of search operations that are performed on the TCAM array, while also adjusting the size of the Bloom filter in order to improve search and power efficiency of the TCAM array.
In some examples, a bit vector for a Bloom filter can be constructed or determined by performing one or more hash function operations on each of a set of TCAM words. As used herein, a TCAM word is a set of data bits that corresponds to a particular pattern and can be stored in a TCAM array. For example, the TCAM array can include a plurality of TCAM cells that are organized in a number of rows and columns. A row of TCAM cells can be used to store a TCAM word. Accordingly, the TCAM array can store a plurality of different TCAM words, with each TCAM word being stored in a different row of TCAM cells. In addition, the bit vector can also be stored in one or more rows of the TCAM array.
According to one example, a control module is coupled to a search engine, which includes a TCAM array. The control module can determine the bit vector for a Bloom filter for a set of TCAM words by performing one or more hash function operations to each of the set of TCAM words, and can partition the TCAM array into a first portion and a second portion (e.g., the remaining portion of the TCAM array). The first portion can be used to store the bits of the bit vector for the Bloom filter and the second portion can be used to store the set of TCAM words. The control module can determine the size of the first portion (e.g., the number of rows of the TCAM array) based on the bit vector, and can dynamically adjust the size of the first portion based on the results of search operations. In this manner, the system can control a dynamically partitionable hybrid TCAM array that stores both the bit vector for the Bloom filter and the set of TCAM words for the search engine.
The control module can receive a search word in order to perform a search in the TCAM array. In some examples, the control module can perform a search in the TCAM array by performing the one or more hash function operations to the search word and determining whether the bits of the hashed search word are in the first portion of the TCAM array (e.g., whether the bits of the hashed search word match the bits of the bit vector) before searching the second portion of the TCAM array with the search word. Accordingly, the second portion of the TCAM array can be searched using the search word only when the Bloom filter indicates that the search word may be found in the set of TCAM words stored in the second portion, thereby reducing the number of search operations performed in the TCAM array.
One or more examples described herein provide that methods, techniques, and actions performed by a computing device are performed programmatically, or as a computer-implemented method. Programmatically, as used herein, means through the use of code or computer-executable instructions. These instructions can be stored in one or more memory resources of the computing device, such as non-transitory computer-readable media. A programmatically performed step may or may not be automatic.
One or more examples described herein can be implemented using programmatic modules, engines, or components. A programmatic module, engine, or component can include a program, a sub-routine, a portion of a program, or a software component and/or a hardware component capable of performing one or more stated tasks or functions. As used herein, a module or component can exist on a hardware component independently of other modules or components. Alternatively, a module or component can be a shared element or process of other modules, programs or machines.
Some examples described herein can generally require the use of computing devices, including processing and memory resources. Examples described herein may be implemented, in whole or in part, on computing devices, such as servers, desktop computers, cellular or smartphones, personal digital assistants (e.g., PDAs), laptop computers, printers, digital picture frames, network equipment (e.g., routers), or tablet devices. Memory, processing, and network resources may all be used in connection with the establishment, use, or performance of any example described herein (including with the performance of any method or with the implementation of any system).
Furthermore, one or more examples described herein may be implemented through the use of instructions that are executable by one or more processors. These instructions may be carried on a computer-readable medium. Machines shown or described with figures below provide examples of processing resources and computer-readable media on which instructions for implementing examples can be carried and/or executed. In particular, the numerous machines shown with examples include processor(s) and various forms of memory for holding data and instructions. Examples of computer-readable media include permanent memory storage devices, such as hard drives on personal computers or servers. Other examples of computer storage media include portable storage units, such as CD or DVD units, flash memory (such as carried on smartphones, multifunctional devices or tablets), and magnetic memory. Computers, terminals, network enabled devices (e.g., mobile devices, such as cell phones) are all examples of machines and devices that utilize processors, memory, and instructions stored on computer-readable media. Additionally, examples may be implemented in the form of computer-programs, or a computer usable carrier medium capable of carrying such a program.
System Description
According to an example, the control module 120 can include one or more processors and/or one or more memory controllers for writing data to the TCAM array 115 and for performing search operations on the TCAM array 115. The control module 120 (e.g., the one or more processors and/or one or more memory controllers) can execute instructions stored in memory, such as the memory 130, to perform process steps described herein. For example, the memory 130 can store data write instructions 131, search instructions 133, and/or partition instructions 135 that, when executed by the control module 120, cause the search system 100 to determine what data to write to the TCAM array 115 and to store the data to the TCAM array 115, to perform search operations on the TCAM array 115 using a particular search word, and/or to dynamically partition the TCAM array 115, respectively. In alternative implementations, hard-wired circuitry may be used in place of or in combination with software instructions to implement examples described herein. Thus, the examples described are not limited to any specific combination of hardware circuitry and software.
In one example, the TCAM array 115 can include a plurality of TCAM cells that are organized in a number of rows and columns (see, for example,
Depending on implementation, the control module 120 can use a Bloom filter to perform search operations in conjunction with the search engine 110. A Bloom filter is a data structure that can be used to determine whether a particular search word is found (or exists) in a set of words (e.g., is the search word a member of the set of TCAM words?). The Bloom filter can indicate either possible positive matches (e.g., indicate that the search word may be found in the set of words) or negative matches (e.g., indicate that the search word is not found in the set of words) in response to a query (e.g., the inputted search word). The search system 100 can construct and use a Bloom filter to eliminate a majority of non-matching search words before performing a search on the set of TCAM words stored in the TCAM array 115.
For example, the control module 120 can determine a bit vector (or data structure) for the Bloom filter by determining a set of TCAM words that are to be stored in the TCAM array 115 (e.g., n number of TCAM words for illustrative purposes). The control module 120 can also access the memory 130 to identify one or more hash functions 134 (e.g., three different hash functions) to use to construct the bit vector for the Bloom filter. Each of the hash functions 134 can map or point to a bit of the bit vector and more than one of the hash functions 134 can map to the same bit position. The set of TCAM words can be added to the Bloom filter by performing the hash operation(s) using the one or more hash functions 134 (e.g., three hash functions) on each of the TCAM words in the set. For example, a bit vector can have M bits, where M is a positive integer and can be a predefined or user-configured/adjustable value. Initially, before any TCAM words are added to the Bloom filter, all the M bits in the bit vector can be set to 0 (e.g., a logical low). The control module 120 can also identify K hash functions, where K is a positive integer and can be a predefined or user-configured/adjustable value, with each hash function to map or hash each TCAM word in the set to one of the M bit vector positions. When a TCAM word is hashed using each of the K hash functions, a number of positions of the bit vector (e.g., K number of positions or less than K number if more than one hash function mapped to the same bit position) are set to 1 (e.g., a logical high). Each TCAM word in the set of TCAM words can be added to the Bloom filter by hashing each TCAM word using each of the K hash functions. Once the bit vector for the Bloom filter is constructed or determined, the control module 120 can store the bit vector in a portion of the TCAM array 115.
The control module 120 can partition the TCAM array 115 into a first portion and a second portion. The bit vector can be stored in the first portion, for example, while a plurality of TCAM words of the set of TCAM words can be stored in the second portion. In one example, the control module 120 can determine the size of the bit vector (e.g., M bits) and based on the size of the bit vector, determine the size of the first portion (e.g., the number of TCAM rows that are needed to store the bit vector). Referring back to the example above, the TCAM array 115 can include 512 rows of TCAM cells, with each row having 256 TCAM cells. If the bit vector is a 512-bit array, the control module 120 can determine (e.g., by executing the partition instructions 135) that two rows of TCAM cells are necessary to store the bit vector. As another example, if the bit vector is a 400-bit array, the control module 120 can determine that two rows of TCAM cells are necessary to store the bit vector, but that not all TCAM cells of the second row will be used to store the bit vector. In such case, the control module 120 can store the remaining TCAM cells of the second row with “X” or “don't care” bits, such as discussed below (see
Depending on implementation, the total number of the set of TCAM words (e.g., 508 TCAM words) that are added to the Bloom filter in addition to the total number of rows to store the bit vector should not exceed the total number of rows of the TCAM array 115. When performing the data write and partitioning processes, the control module 120 can ensure that the bit vector can be stored along with the set of TCAM words in the TCAM array 115. For example, referring to the example above, the control module 120 can determine the size of the bit vector (e.g., M bits) before performing the hashing of a set of TCAM words. If the control module 120 identifies that 8 rows of TCAM cells are needed to store the bit vector, the control module 120 can identify the number of the set of TCAM words that are added to the Bloom filter to not exceed 504 TCAM words (e.g., 512 TCAM rows less 8 TCAM rows). After the bit vector and the set of TCAM words are stored in the TCAM array 115, the control module 120 can perform search operations, when necessary, based on the input stream received by the search system 100.
The control module 120 can receive an input stream, that includes, for example, incoming packets that are to be routed to another port and/or device. In one example, the control module 120 can extract header information from each packet to identify which flow the packet belongs to, and forward the packets to the search engine 110 for search operations. During a search or compare operation, the search word (e.g., the comparand word) can typically be provided to the search engine 110 and compared with the TCAM words stored in the TCAM array 115. Before the search word is compared with the set of TCAM words stored in the TCAM array 115, however, the control module 120 can first perform K number of hash function operations using the K hash functions 134. The search word can be hashed to result in the hashed search word. This hashed search word can be compared with the bit vector of the Bloom filter stored in the first portion of the TCAM array 115 before the second portion of the TCAM array 115 is searched with the search word.
For example, the hashed search word can have K bit positions (or less than K bit positions if multiple hash functions map to the same bit position of a bit vector), with each of the bits at the K positions being set to 1 (e.g., logical high). The control module 120 can then set the remaining bits of the hashed search word as “X” or “don't care” bits. These K bit positions of the hashed search word are compared to the bit vector stored in the first portion of the TCAM array 115. If any of the bits at these corresponding positions in the bit vector are 0 (e.g., do not match), then the search word is determined to not be in the set of TCAM words. The search engine 110 outputs a match signal, MAT, indicating, in this case, that no match is found with respect to the first portion of the TCAM array 115. The control module 120 can receive the MAT signal (e.g., no match) and the search engine 110 is not instructed to perform a search of the second portion of the TCAM array 115. In this manner, the Bloom filter can be used to prevent unnecessary searching of the TCAM words in the second portion of the TCAM array 115.
On the other hand, if the K bit positions of the hashed search word are each 1 in the corresponding positions of the bit vector (e.g., match), then the search word is determined to possibly be included in the set of TCAM words and an additional search of the second portion of the TCAM array 115 is needed. The control module 120 can receive the MAT signal (e.g., match) and can then instruct the search engine 120 to perform a search of the second portion of the TCAM array 115 using the search word. In this manner, by eliminating the majority of non-matching searches before passing search words to the second portion of the TCAM array 115, the set of words in the second portion is only searched by search words having a high matching potential. This reduces the frequency of searching the set of words in the second portion, thereby improving power-efficiency of the search engine 110.
According to examples, the control module 120 can also dynamically adjust the Bloom filter and/or dynamically re-partition (if necessary) the TCAM array 115 based on feedback information from the search engine 110, such as a false positive rate (FPR) or other matching result information. In some instances, the set of TCAM words that are to be stored in the TCAM array 115 can be changed and/or one or more of the K hash functions can be changed. In such cases, the control module 120 can reconstruct the Bloom filter to be stored in the first portion of the TCAM array 115.
In another example, the control module 120 can balance the capacity of the TCAM array 115 to store both the bit vector for the Bloom filter and the set of TCAM words in order to reduce the amount of unnecessary (and power-consuming) searches of the second portion of the TCAM array 115. In one example, the control module 120 can compare the FPR with a predefined threshold value (e.g., 5%) to determine whether to dynamically adjust the Bloom filter and/or to dynamically re-partition the TCAM array 115. The predefined threshold value can be dynamically configured by users and/or configured based on work load to minimize the full search frequency in the second portion of the TCAM array 115. This predefined threshold value can be used to balance the capacity, performance, and/or power-efficiency of the search engine 100, for example, as increasing the size of the Bloom filter results in less capacity for the set of TCAM words, and vice versa.
For example, if the current Bloom filter is resulting in a high rate of false positive results (e.g., the rate of searches of hashed search words results in possible matches of the corresponding search words in the set of TCAM words, but when the set of TCAM words are searched using the search words, no match is found), the control module 120 can dynamically adjust the Bloom filter to be larger and/or use additional hash functions to reduce the rate of false positive results. The size of the first portion of the TCAM array 115 can also be dynamically adjusted accordingly. Similarly, the control module 120 can also dynamically reduce the size of the Bloom filter and reduce the size of the first portion of the TCAM array 115 (and increase the size of the second portion) based on the feedback information from the search engine 110. Although the examples described in
The TCAM array 210 includes a number of rows of TCAM cells (not shown for simplicity in
Each row of TCAM cells (not shown in
For a data write operation, the control module 120 can partition the TCAM array 210 into a first portion and a second portion by using address information of the rows of the TCAM array 210. The control module 120 can construct a Bloom filter for a set of TCAM words, as discussed above, and can cause the bits of the bit vector to be written to the first portion of the TCAM array 210. The read/write circuit 240 includes write drivers to write data received from a data bus, DBUS, to the TCAM array 210 via the bit lines, BL, and can include sense amplifiers to read data from the TCAM array 210 onto DBUS. For example, when the bit vector is to be written to the first portion of the TCAM array 210, the control module 210 can provide address(es) for the row(s) of the TCAM array 210 for the first portion to the address decoder 220 and also provide the data bits of the bit vector, via the DBUS, to the read/write circuit 240. The read/write circuit 240 can write the bit vector to the appropriate address(es) of the row(s) of the first portion of the TCAM array 210. Similarly, the control module 120 can provide the addresses for the rows of the second portion of the TCAM array 210 to the address decoder 220 and the data bits of the set of TCAM words that are to be stored in the second portion to the read/write circuit 240. The read/write circuit 240 can write the data of the set of TCAM words to the appropriate addresses of the rows of the second portion of the TCAM array 210.
Each column of TCAM cells (not shown in
The match lines, ML, provide match results for compare operations between comparand data (e.g., a search word or the hashed search word) and data stored in the TCAM array 210. For example, if the search of the Bloom filter with the hashed search word (e.g., compare operation of the first portion of the TCAM array 210) indicates that the search word may be found in the set of TCAM words stored in the second portion of the TCAM array 210, the match logic 260 can use the match results indicated on the match lines to generate a match flag (MF) indicative of a match condition in the TCAM array 210. The control module 120 can receive the match flag and cause TCAM device 200 to perform a full search (e.g., a second subsequent search) of the second portion of the TCAM array 210 using the search word. The comparand register 230 can then provide the search word to the TCAM array 210 during compare operations with data stored in the second portion of the TCAM array 210. Again, the match logic 260 can use the match results indicated on the match lines to generate a match flag indicative of a match condition in the TCAM array 210. If there is more than one matching entry in the TCAM array 210, the match logic 260 may generate a multiple match flag to indicate a multiple match condition. Still further, in some examples, the priority encoder 250 uses the match results indicated on the match lines to determine the matching entry that has the highest priority number associated with it and generates the index or address of this highest priority match (HPM).
In some examples, the TCAM array 210 also includes match circuitry 212. The match circuitry 212 can include a plurality of match latches, for example, where each match latch is coupled to the match line, ML, of a corresponding row of TCAM cells, and is used to store the match state of the corresponding TCAM row during compare operations. The match circuitry 212 can also include counter circuitry 214 that use counters to count the miss frequency (or miss rate) of all search operations in the second portion of the TCAM array 210. The counter circuitry 214 can be coupled to the match lines of the TCAM array 210. Because all search requests are first filtered by the Bloom filter before the second portion of the TCAM array 210 is searched, the miss frequency of all search operations in the second portion can correspond to the false positive frequency (or FPR) of the Bloom filter itself. The counter circuitry 214 can provide the FPR to the control module 120 so that the control module 120 can dynamically adjust or resize the Bloom filter (and if necessary, the sizes of the first and second portions of the TCAM array 210) based on the FPR.
As an addition or an alternative, the counter circuitry 214 can also use counters to count TCAM words that match search words during compare operations in order to determine which TCAM words are more frequently used or accessed (as compared to other TCAM words in the set of TCAM words). This information can be provided to the control module 120. For example, the size of the TCAM array 210 can be an inherent limitation to a computing device. Only a certain number of TCAM words may be stored in the TCAM array 210. Accordingly, the control module 120 can use information about which TCAM words are more frequently used (e.g., are “hot” TCAM words) as compared to other TCAM words that are not frequently used (e.g., are “cold” TCAM words) in order to remove individual TCAM words that are not frequently used from the set of TCAM words stored in the second portion of the TCAM array 210 and insert TCAM words that are more frequently used (e.g., swap out). A TCAM word that is accessed or matched at least a predetermined threshold amount of times (x number of times) over a course of a duration (e.g., the last certain amount of time) can be classified to be “hot,” whereas a TCAM word that is accessed or matched less than a predetermined threshold amount of times (or even less than a second, lower, predetermined threshold amount of times) over a course of the duration can be classified to be “cold.” In one example, the control module 120 can rank the TCAM words in order of frequency during a specified duration to determine which TCAM words are to be removed or not stored in the TCAM array (e.g., the ten lowest frequently used TCAM words). TCAM words that are not stored in the TCAM array can be searched independently, for example, using other resources of the system 100, such as RAM.
When TCAM words are to be swapped out by the control module 120, the control module 120 can re-partition the TCAM array 210, if necessary, and reconstruct the Bloom filter using the newly determined set of TCAM words. The control module 120 can then perform a write operation of data of the bit vector for the reconstructed Bloom filter and data of the newly determined set of TCAM words in the TCAM array 210.
In one example, the control module 120 can also implement a hierarchical memory access process in which it uses the TCAM device 200 to perform compare (search) operations for those TCAM words that are “hot,” and use other components of the search system 100 or other devices (not shown in
Referring back to
When data is to be written to the TCAM array 300, the control module 120 can communicate the data to the read/write circuit 240 and communicate with the address decoder 220 to control which rows are to store which data. For example, the control module 120 determines a set of TCAM words to write to the TCAM array 300. The control module 120 can first construct a Bloom filter by performing one or more hash function operations on each of the set of TCAM words to determine a M-bit vector for the Bloom filter. Depending on the size of the M-bit vector and the size of the TCAM array 300, the control module 120 can determine a size of the first portion of the TCAM array 300 in which to store the data of the bit vector. If M is less than or equal to the number of bits of a single TCAM word (e.g., a single row of TCAM cells 302), the data of the bit vector can be stored in a row. This row can correspond to the first portion of the TCAM array 300.
For example, if M is 128 bits and there are 256 TCAM cells 302 in each row of the TCAM array 300, the bit vector can be stored in the first row of the TCAM array 300 and the remaining 128 bits can be stored as wildcard bits (e.g., “X”) or “don't care” bits. On the other hand, if M is greater than the number of bits of a single TCAM word, then the bit vector can be partitioned into a series of sub-words, each of which is stored in a consecutive row of the TCAM array 300. For example, if M is 550 bits, the bit vector can be partitioned into a first sub-word that is stored in the first row of the TCAM array (256 bits), a second sub-word that is stored in the next, second row of the TCAM array (256 bits), and a third sub-word that is stored in the next, third row of the TCAM array (38 bits) along with the rest of the bits in the third row being stored as wildcard bits. The control module 120 can then partition the TCAM array 300 into the first portion having a size of three rows and the second portion having a size of the remaining rows of the TCAM array 300.
Referring to the latter example, the control module 120 can communicate with the address decoder 220 to select the first row of the TCAM array 300, and communicate the data of the first sub-word of the bit vector to the read/write circuit 240 so that the data of the first sub-word can be written to the first row. Similarly, the address decoder 220 can select the second row and the read/write circuit 240 can write the data of the second sub-word of the bit vector to the second row, and so forth. The control module 120 can also communicate with the address decoder 220 and the read/write circuit 240 to write the data of the set of TCAM words to the remaining rows of the TCAM array 300 (e.g., so that the set of TCAM words can be stored in the second portion of the TCAM array 300).
During compare operations, a match line, ML, indicates a match condition (e.g., assert logical high, or 1) for a corresponding TCAM row only if all TCAM cells 302 in that row match the search input (e.g., either hashed search word or the search word). For example, if the first two rows of the TCAM array 300 are designated as being the first portion to store the bit vector for a Bloom filter, the comparand register 230 can receive, as input, the hashed search word for the compare operation. In some examples, each of the match lines, ML, of each TCAM row can be coupled to a pre-charge circuit 310. The pre-charge circuit 310 can pre-charge the match line(s), ML, of row(s) that are to be searched during the compare operation. In this example, if the first two rows of the TCAM array 300 store the bit vector, the control module 120 (not shown in
The comparand register 130 can drive the data of the hashed search word to on the comparand line pairs CL/CLB and the first two rows of the TCAM array 300 can perform the compare operation to determine whether there is a match. If any TCAM cell 302 in the row does not match the hashed search word, the TCAM cell(s) 302 discharges the corresponding match line, ML, toward ground potential (e.g., logical low) to indicate the mismatch condition. Conversely, if all TCAM cells 302 match the hashed search word, the match line, ML, remains in a charged (e.g., logical high) state to indicate the match condition.
In some examples, such as described above, the bit vector for the Bloom filter can be stored in consecutive rows of TCAM cells 302, as the bit vector may be too large for a single row of TCAM cells 302. The TCAM device that utilizes the TCAM array 300 (e.g., TCAM device 200 of
If the compare operation of the hashed search key with the bit vector of the Bloom filter indicates a match, the TCAM device can provide a match flag indicating a match to the control module 120. In response, the control module 120 can cause the TCAM device to perform a subsequent compare operation of the search word with the set of TCAM words stored in the second portion of the TCAM array 300. The control module 120 can provide an enable signal to the pre-charge circuits 310 of the rows of the second portion of the TCAM array 300 to pre-charge the corresponding match lines, ML, of these rows to a logical high (e.g., drive up to 1 from 0). The other pre-charge circuits 310 corresponding to the rows of the first portion of the TCAM array 300 can be prevented (via the control module 120 not asserting the enable signal) from pre-charging the corresponding match lines, ML. The TCAM device can provide a match signal to the control module if the search word is matched to a TCAM word(s) in the TCAM array 300.
For example, as illustrated in
As an addition or an alternative, while the TCAM array, such as described in
Methodology
In
The control module 120 can cause the search engine 110 to store the bit vector in the first portion of the TCAM array 115 and the set of TCAM words in the second portion of the TCAM array 115 (415). Once the data for the bit vector and the set of TCAM words are stored in the TCAM array 115, the control module 120 can perform search operations on the TCAM array 115 (420). According to an example, the control module 120 can receive an input stream that includes a data packet that is to be routed. The control module 120 can perform a search operation using a search word as a query to the search engine 110. The control module 120 can perform the plurality of hash function operations on the search word to obtain a hashed search word. The hashed search word can have a plurality of bits set to 1 (e.g., “logical high”) in response to the plurality of hash operations being performed on the search word. The control module 120 can set the remaining bits of the hashed search word as “X” or “don't care” bits (e.g., so that the hashed search word has “1”s and “X”s). A first search operation is performed in which the bits that are set to a logical high (e.g., set as 1) of the hashed search word is compared to the corresponding bits of the bit vector stored in the first portion of the TCAM array 115. If the bits of the hashed searched word that are set to 1 match the bits of the bit vector at the corresponding positions that are also set to 1, then the search engine 110 provides a matching signal indicating to the control module 120 that the search word may be in the set of TCAM words stored in the second portion of the TCAM array 115. The control module 120 can then cause the second portion of the TCAM array 115 to be searched using the search word.
The control module 120 can monitor the results of the search operation(s) (425). Based on the monitored results, the control module 120 can determine that the Bloom filter and/or the size of the first portion that stores the bit vector needs to be adjusted, and can re-partition the TCAM array 115 accordingly (430).
The control module 120 can partition the TCAM array 115 into a first portion to store the bit vector and a second portion to store the set of TCAM words (445). The TCAM array 115 can be partitioned so that the size of the first portion is sufficient to store the bits of the bit vector for the Bloom filter. Although the example of
After data is written to the TCAM array 115, the search system 100 can perform search operations on the TCAM array 115. The control module 120, for example, can receive a search word for performing a search operation on the TCAM array 115 (445). The control module 120 also performs the same one or more hash function operations on the search word using the identified one or more hash functions (460). The result of the one or more hash function operations on the search word can result in a hashed search word having one or more bits set to 1 (e.g., “logical high”). The remaining bits of the hashed search word can also be set as “X” or “don't care” bits. The control module 120 can also cause the search operation to be performed using the hashed search word on only the first portion of the TCAM array 115 by enabling rows of TCAM cells corresponding to the first portion to be searched while disabling the other rows of TCAM cells corresponding to the second portion from being searched.
If there is a match between the bits of the hashed search word and the bits of the bit vector in the first portion of the TCAM array 115 (465), the control module 120 can cause a subsequent search operation to be performed on the second portion of the TCAM array 115 using the search word (as opposed to using the hashed search word) (470). On the other hand, if there is no match, no additional search is performed. The Bloom filter has indicated that the search word is not found in the set of TCAM words stored in the second portion of the TCAM array 115 without the search system 100 having to perform the search operation on each of the rows of TCAM cells in the second portion. The control module 475 can continue to monitor and/or record information, such as the results of the search operation, for purposes of determining whether the current Bloom filter is appropriate for the search operations (475).
Based on the monitored results, the control module 120 can determine whether the size of the Bloom filter (and therefore, the sizes of the portions of the TCAM array 115) should be adjusted (480). If the Bloom filter is to be adjusted, the control module 120 can then dynamically re-construct the Bloom filter and dynamically re-partition the TCAM array 115 accordingly, based on the monitored results. On the other hand, if the Bloom filter does not have to be adjusted, the control module 120 can continue to perform search operations using the current Bloom filter and receive another search word for performing a search operation. In this manner, the search system can use the Bloom filter to reduce the number of search operations that are performed on the TCAM array 115, thereby improving the power efficiency of the TCAM array 115, and can also dynamically adjust the size of the Bloom filter in order to improve search efficiency of the TCAM array 115.
It is contemplated for examples described herein to extend to individual elements and concepts described herein, independently of other concepts, ideas or system, as well as for examples to include combinations of elements recited anywhere in this application. Although examples are described in detail herein with reference to the accompanying drawings, it is to be understood that the concepts are not limited to those precise examples. Accordingly, it is intended that the scope of the concepts be defined by the following claims and their equivalents. Furthermore, it is contemplated that a particular feature described either individually or as part of an example can be combined with other individually described features, or parts of other examples, even if the other features and examples make no mentioned of the particular feature. Thus, the absence of describing combinations should not preclude having rights to such combinations.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/US2014/036236 | 4/30/2014 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2015/167559 | 11/5/2015 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
7738274 | Nemati | Jun 2010 | B1 |
8032529 | Gupta et al. | Oct 2011 | B2 |
9727459 | Khoueir | Aug 2017 | B2 |
9847132 | Zheng | Dec 2017 | B1 |
20070115986 | Shankara | May 2007 | A1 |
20080133583 | Artan et al. | Jun 2008 | A1 |
20100023727 | Lim | Jan 2010 | A1 |
20100098081 | Dharmapurikar et al. | Apr 2010 | A1 |
20120275466 | Bhadra et al. | Nov 2012 | A1 |
20130188409 | Soyata | Jul 2013 | A1 |
20150006808 | Miller | Jan 2015 | A1 |
20160054940 | Khoueir | Feb 2016 | A1 |
Entry |
---|
Chen et at., Power efficient packet classification using cascaded bloom filter and off-the-shelf ternary CAM for OM networks,—ComputerCommunications, vol. 32, No. 2, pp. 349-356, Feb. 2009. |
Hao, F. et al, Building High Accuracy Bloom Filters Using Partitioned Hashing, (Research Paper), < http://dl.acm.org/ft_gateway.cfm?id=1254916&ftid=425265&dwn=1&CFID=426392285&CFTOKEN=64756604 >. Jun. 12-16, 2007, 11 Pgs. |
Lim, H. et al., On Adding Bloom Filters to Longest Prefix Matching Algorithms, (Research Paper), < http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6263242 >, Feb. 2014, pp. 411-423, vol. 63, No. 2. |
PCT Search Report/Written Opinion ˜ Application No. PCT/US2014/036236 dated Dec. 12, 2014 ˜ 10 pages. |
Yu, F. et al., Gigabit Rate Packet Pattern-matching Using TCAM, (Research Paper), < http://,www.ieee-icnp.org/2004/papers/5-1.pdf >, Jul. 15, 2004, 10 Pgs. |
Goel, A., et al.; “Small Subset Queries and Bloom Filters Using Ternary Associative Memories, with Applications”; in SIGMETRICS 2010; 12 pages. |
Guo, Q., et al.; “A Resistive TCAM Accelerator for Data-Intensive Computing”; Dec. 3-7, 2011 ; 12 pages. |
Guo, Q., et al.; “AC-DIMM: Associative Computing with STT-MRAM”, in ISCA 2013; 12 pages. |
Number | Date | Country | |
---|---|---|---|
20170046395 A1 | Feb 2017 | US |