Source: http://www.patentsencyclopedia.com/app/20130311492
Timestamp: 2017-12-18 20:18:55
Document Index: 464831272

Matched Legal Cases: ['art 24', 'art 36', 'art 44', 'art 52', 'art 60', 'art 68']

HASH COLLISION REDUCTION SYSTEM - Patent application
Patent application title: HASH COLLISION REDUCTION SYSTEM
Patent application number: 20130311492
An improved computer system that can include a controller having a computer processor, the controller to reduce insertion times and/or collisions when interfacing with new components introduced to the controller. The system may also include a collision avoidance apparatus that reduces hashing collisions by using a plurality of tables and a plurality of keys per bucket. The system may further include a hash apparatus in communication with the controller to map the plurality of keys to the plurality of tables where the hash apparatus uses a single hash logic to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables.
1. A system comprising: a controller including a computer processor, the controller to reduce at least one of insertion times and hashing collisions when interfacing with new components introduced to the controller; a collision avoidance apparatus that reduces the hashing collisions by using a plurality of tables and a plurality of keys per bucket; and a hash apparatus in communication with the controller to map the plurality of keys to the plurality of tables where the hash apparatus uses a single hash logic to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables.
2. The system of claim 1 wherein the single hash logic is based upon the Cuckoo algorithm.
3. The system of claim 1 wherein the single hash logic comprises a configurable cyclic redundancy check polynomial.
4. The system of claim 1 wherein the hash apparatus provides parallel table lookup of the plurality of tables based upon the avalanche effect.
5. The system of claim 1 wherein the avalanche effect is based upon orthogonal hash functions for each of the plurality of tables, and the single hash logic implements each orthogonal hash function.
6. The system of claim 5 wherein each bit output of the single hash logic comprises funneled results of the key bits.
7. The system of claim 6 wherein the funneled results are generated by an XOR function.
8. The system of claim 1 wherein the plurality of tables is configurable.
9. The system of claim 8 wherein global load of the plurality of tables is configurable by controlling the number of bits for the single hash logic output.
10. A method comprising: reducing at least one of insertion times and hashing collisions when new components are introduced to a controller that includes a computer processor; reducing the hashing collisions by using a plurality of tables and a plurality of keys per bucket through a collision avoidance apparatus; and mapping the plurality of keys to the plurality of tables with a hash apparatus in communication with the controller, the hash apparatus uses a single hash logic to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables.
11. The method of claim 10 further comprising providing parallel table lookup of the plurality of tables via the hash apparatus based upon the avalanche effect.
12. The method of claim 10 further comprising basing the avalanche effect upon orthogonal hash functions for each of the plurality of tables, and the single hash logic implements each orthogonal hash function.
13. The method of claim 12 further comprising funneling results of the key bits for each bit output of the single hash logic.
14. The method of claim 10 further comprising making the plurality of tables configurable.
15. The method of claim 14 further comprising controlling the number of bits for the single hash logic output so global load of the plurality of tables is configurable.
16. A computer program product embodied in a tangible media comprising: computer readable program codes coupled to the tangible media to improve computer systems, the computer readable program codes configured to cause the program to: reduce at least one of insertion times and hashing collisions when new components are introduced to a controller that includes a computer processor; reduce the hashing collisions by using a plurality of tables and a plurality of keys per bucket through a collision avoidance apparatus; and map the plurality of keys to the plurality of tables with a hash apparatus in communication with the controller, the hash apparatus uses a single hash logic to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables.
17. The computer program product of claim 16 further comprising program code configured to: provide parallel table lookup of the plurality of tables via the hash apparatus based upon the avalanche effect.
18. The computer program product of claim 16 further comprising program code configured to: base the avalanche effect upon orthogonal hash functions for each of the plurality of tables, and the single hash logic implements each orthogonal hash function.
19. The computer program product of claim 18 further comprising program code configured to: funnel results of the key bits for each bit output of the single hash logic.
20. The computer program product of claim 16 further comprising program code configured to: make the plurality of tables configurable.
21. The computer program product of claim 20 further comprising program code configured to: control the number of bits for the single hash logic output so global load of the plurality of tables is configurable.
[0001] The invention relates to the field of computer systems, and, more particularly, to a computer implemented packet look-up mechanism for very large tables and very high throughput.
[0002] An Ethernet port may provide a connection between a computer and a computer network. For a 100 Gbps Ethernet port, the smallest 64 bytes packet duration time is 6.7 nanoseconds, which gives only 3 clock cycles at 500 Mhz for the logic doing the look up.
[0003] According to one embodiment of the invention, an improved computer system may include a controller having a computer processor, the controller to reduce insertion times and/or hashing collisions when interfacing with new components introduced to the controller. The system may also include a collision avoidance apparatus that reduces the hashing collisions by using a plurality of tables and a plurality of keys per bucket. The system may further include a hash apparatus in communication with the controller to map the plurality of keys to the plurality of tables where the hash apparatus uses a single hash logic to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables.
[0004] The single hash logic may be based upon the Cuckoo algorithm. The single hash logic may comprise a configurable cyclic redundancy check polynomial. The hash apparatus may provide parallel table lookup of the plurality of tables based upon the avalanche effect.
[0005] The avalanche effect may be based upon orthogonal hash functions for each of the plurality of tables, and the single hash logic implements each orthogonal hash function. Each bit output of the single hash logic may comprise funneled results of the key bits.
[0006] The funneled results may be generated by an XOR function. The plurality of tables may be configurable. The global load of the plurality of tables may be configurable by controlling the number of bits for the single hash logic output.
[0007] Another aspect of the invention is a method for improving a computer system. The method may include reducing insertion times and/or hashing collisions when new components are introduced to a controller that includes a computer processor. The method may also include reducing the hashing collisions by using a plurality of tables and a plurality of keys per bucket through a collision avoidance apparatus. The method may further include mapping the plurality of keys to the plurality of tables with a hash apparatus in communication with the controller where the hash apparatus uses a single hash logic to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables.
[0008] The method may additionally include providing parallel table lookup of the plurality of tables via the hash apparatus based upon the avalanche effect. The method may also include basing the avalanche effect upon orthogonal hash functions for each of the plurality of tables, and the single hash logic implements each orthogonal hash function.
[0009] The method may further include funneling results of the key bits for each bit output of the single hash logic. The method may additionally include making the plurality of tables configurable. The method may also include controlling the number of bits for the single hash logic output so global load of the plurality of tables is configurable.
[0010] Another aspect of the invention is computer readable program codes coupled to tangible media to improve a computer system. The computer readable program codes may be configured to cause the program to reduce insertion times and/or hashing collisions when new components are introduced to a controller that includes a computer processor. The computer readable program codes may also reduce the hashing collisions by using a plurality of tables and a plurality of keys per bucket through a collision avoidance apparatus. The computer readable program codes may further map the plurality of keys to the plurality of tables with a hash apparatus in communication with the controller where the hash apparatus uses a single hash logic to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables.
[0011] The computer readable program codes may additionally provide parallel table lookup of the plurality of tables via the hash apparatus based upon the avalanche effect. The computer readable program codes may also base the avalanche effect upon orthogonal hash functions for each of the plurality of tables, and the single hash logic implements each orthogonal hash function.
[0012] The computer readable program codes may further funnel results of the key bits for each bit output of the single hash logic. The computer readable program codes may additionally make the plurality of tables configurable. The computer readable program codes may also control the number of bits for the single hash logic output so global load of the plurality of tables is configurable.
[0013] FIG. 1 is a block diagram illustrating a database improvement system in accordance with the invention.
[0014] FIG. 2 is a flowchart illustrating method aspects according to the invention.
[0015] FIG. 3 is a flowchart illustrating method aspects according to the method of FIG. 2.
[0016] FIG. 4 is a flowchart illustrating method aspects according to the method of FIG. 2.
[0017] FIG. 5 is a flowchart illustrating method aspects according to the method of FIG. 4.
[0018] FIG. 6 is a flowchart illustrating method aspects according to the method of FIG. 2.
[0019] FIG. 7 is a flowchart illustrating method aspects according to the method of FIG. 6.
[0020] FIG. 8 illustrates a CCB table lookup engine's high level structure in accordance with the invention.
[0021] FIG. 9 illustrates a 5 modes programmable hashing logic's high level structure in accordance with the invention.
[0022] FIG. 10 illustrates a 4 to 2 example in accordance with the invention.
[0023] FIG. 11 illustrates an XOR Matrix example in accordance with the invention.
[0024] FIG. 12 illustrates remote lookup request timing in accordance with the invention.
[0025] FIG. 13 illustrates an "On the fly" compare engine in accordance with the invention.
[0026] The invention will now be described more fully hereinafter with reference to the accompanying drawings, in which preferred embodiments of the invention are shown. Like numbers refer to like elements throughout.
[0027] With reference now to FIG. 1, an improved computer system 10 is initially described. In an embodiment, the system 10 includes a controller 12 comprising a computer processor 14. The controller 12 reduces insertion times and/or hashing collisions when interfacing with new components 16 introduced to the controller. The system 10 also includes a collision avoidance apparatus 18 that reduces hashing collisions by using a plurality of tables and a plurality of keys per bucket. The system 10 further includes a hash apparatus 20 in communication with the controller 12 to map the plurality of keys to the plurality of tables where the hash apparatus uses a single hash logic 22 to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables. The components of system 10 are connected by a communications network 21 as will be appreciated by those of skill in the art.
[0028] In one embodiment, the single hash logic 22 is based upon the Cuckoo algorithm. In another embodiment, the single hash logic 22 comprises a configurable cyclic redundancy check (CRC) polynomial. In another embodiment, the hash apparatus 20 provides parallel table lookup of the plurality of tables based upon the avalanche effect.
[0029] In one embodiment, the avalanche effect is based upon orthogonal hash functions for each of the plurality of tables, and the single hash logic 22 implements each orthogonal hash function. In another embodiment, each bit output of the single hash logic 22 comprises funneled results of the key bits.
[0030] In one embodiment, the funneled results are generated by an XOR function. In another embodiment, the plurality of tables are configurable. In another embodiment, the global load of the plurality of tables are configurable by controlling the number of bits for the single hash logic 22 output.
[0031] Another aspect of the invention is a method for improving a computer system, which is now described with reference to flowchart 24 of FIG. 2. The method begins at Block 26 and may include reducing insertion times and/or hashing collisions when new components are introduced to a controller that includes a computer processor at Block 28. The method may also include reducing hashing collisions by using a plurality of tables and a plurality of keys per bucket through a collision avoidance apparatus at Block 30. The method may further include mapping the plurality of keys to the plurality of tables with a hash apparatus in communication with the controller where the hash apparatus uses a single hash logic to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables at Block 32. The method ends at Block 34.
[0032] In another method embodiment, which is now described with reference to flowchart 36 of FIG. 3, the method begins at Block 38. The method may include the steps of FIG. 2 at Blocks 28, 30, and 32. The method may additionally include providing parallel table lookup of the plurality of tables via the hash apparatus based upon the avalanche effect at Block 40. The method ends at Block 42.
[0033] In another method embodiment, which is now described with reference to flowchart 44 of FIG. 4, the method begins at Block 46. The method may include the steps of FIG. 2 at Blocks 28, 30, and 32. The method may also include basing the avalanche effect upon orthogonal hash functions for each of the plurality of tables, and the single hash logic implements each orthogonal hash function at Block 48. The method ends at Block 50.
[0034] In another method embodiment, which is now described with reference to flowchart 52 of FIG. 5, the method begins at Block 54. The method may include the steps of FIG. 4 at Blocks 28, 30, 32, and 48. The method may further include funneling results of the key bits for each bit output of the single hash logic at Block 56. The method ends at Block 58.
[0035] In another method embodiment, which is now described with reference to flowchart 60 of FIG. 6, the method begins at Block 62. The method may include the steps of FIG. 2 at Blocks 28, 30, and 32. The method may additionally include making the plurality of tables configurable at Block 64. The method ends at Block 66.
[0036] In another method embodiment, which is now described with reference to flowchart 68 of FIG. 7, the method begins at Block 70. The method may include the steps of FIG. 6 at Blocks 28, 30, 32, and 64. The method may also include controlling the number of bits for the single hash logic output so global load of the plurality of tables is configurable at Block 72. The method ends at Block 74.
[0037] Another aspect of the invention is computer readable program codes coupled to tangible media to improve a computer system. The computer readable program codes may be configured to cause the program to reduce insertion times and/or hashing collisions when new components 16 are introduced to a controller 12 that includes a computer processor 14. The computer readable program codes may also reduce hashing collisions by using a plurality of tables and a plurality of keys per bucket through a collision avoidance apparatus 18. The computer readable program codes may further map the plurality of keys to the plurality of tables with a hash apparatus 20 in communication with the controller 12 where the hash apparatus uses a single hash logic 22 to provide an avalanche effect when one key is changed which results in nearly half of bits changing in the plurality of tables.
[0038] The computer readable program codes may additionally provide parallel table lookup of the plurality of tables via the hash apparatus 22 based upon the avalanche effect. The computer readable program codes may also base the avalanche effect upon orthogonal hash functions for each of the plurality of tables, and the single hash logic 22 implements each orthogonal hash function.
[0039] The computer readable program codes may further funnel results of the key bits for each bit output of the single hash logic 22. The computer readable program codes may additionally make the plurality of tables configurable. The computer readable program codes may also control the number of bits for the single hash logic 22 output so global load of the plurality of tables is configurable.
[0040] In view of the foregoing, the system 10 provides an improved computer system. For example, using conventional hashing with chaining such as the "Cuckoo Algorithm" can do a search in a few bonded number of table lookups when used in a 100 Gbps Ethernet application, but its drawback is a long insertion time when a lot of hashing collisions are present in a very large table. In contrast, system 10 enables insertion in the same time range as a search, which is important when new table insertion is done on the fly by packet learning in a plug and play network.
[0041] System 10 uses efficient hashing and/or algorithm selection for collision avoidance and reduced insertion time. System 10 provides packet look-up for very large tables and high throughput.
[0042] In one embodiment, system 10 provides hardware implementation of a single hashing method capable of using any type of CRC polynomial division, for any number of logic tables, thereby reducing cache collisions. System 10 hardware implementation of a packet lookup function supports a very large number of large keys (hundreds of millions) and very high throughput (100 Gbps Ethernet). In another embodiment, system 10 is based on a single logic 22 in which system 10 can configure any type of CRC polynomials. In another embodiment, system 10 reduces collisions using orthogonality and high avalanche effect for a plurality of hashers thereby enabling the lookup of several tables in parallel.
[0043] In one embodiment, efficient orthogonal hashers are used for each different table. In another embodiment, to be efficient, a hasher should provide a high avalanche effect, e.g. around half of the bits of the hash result change when only one bit of the key is changed.
[0044] This can be achieved by division or multiplication of the key, but with the very limited clock cycles for 100 Gbps aggregate throughput, such hardware implementation of multiplication is difficult. XOR folding can be implemented in hardware but they do not provide a good avalanche result. CRC can work because it provides a good avalanche effect and can be implemented in hardware with XOR funneling, but it does require a lot of logic XOR circuits, which leads to large logic circuitry for different tables.
[0045] To reduce the collisions, system 10 uses 4 different tables and 8 keys per bucket, in one embodiment. In another embodiment, a single programmable hasher 22 is used where each bit of the hasher result is the funnel result of all the bits of the key, which allows the implementation of any type of CRC polynomial. This requires a large number of XOR circuits, but the sharing of the single logic 22 for the 4 different tables makes it affordable.
[0046] In one embodiment, the flexible hardware implementation to optimize the solution with the lookup table includes having the number of hash tables configurable from 2 to 5 (basic configuration could be 4 actives+1 standby). In another embodiment, the 5 hashing functions are XOR matrix fully configurable. Even if the matrix allows different types of hash configuration, CRC hashing function is the preferred choice.
[0047] In one embodiment, the global table load will be configurable by providing configuration of the number of bits for the hash result (hardware can support up to 19 b hash value 4M entries per table). In another embodiment, "On the Fly" keys comparison help to optimize back to back DMA requests and responses.
[0048] With additional reference to FIG. 8, a CCB table lookup engine's high level structure is illustrated. In one embodiment, the lookup process includes: look-up request received; goes thru hash functions to compute memory address; DMA read request; DMA read response; read data is compared to original key; and look-up response is sent to requester.
[0049] With additional reference to FIGS. 9-10, a 5 modes programmable hashing logic's high level structure is illustrated in FIG. 9. FIG. 10 discloses a 4 to 2 exemplary embodiment of the invention.
[0050] In one embodiment, probably the most flexible implementation of system 10, all the key bits can participate to any hash bit. This implementation makes the hardware almost independent of refinement to the algorithms and the maximum number of tables because the "intelligence" is in the hash logic 22.
[0051] In one embodiment, sizing for a 64 b key, 19 b hash, and 5 hash functions provides:
[0052] 64*19*5=6080 configuration latches
[0053] (64*19) 5to1 muxes to select configuration
[0054] (64*19) 2to1 AND gates
[0055] 19*(32+16+8+4+2+1)=1197 2to1 XOR gates
[0056] A rough area estimate for 45 nm implementation include:
[0057] Latch: 6080*10 μm2=60800 μm2
[0058] XOR2: 1197*4 μm2=4788 μm2
[0059] AND2: 64*19*3 μm2=3648 μm2
[0060] AO22: 3*64*19*4 μm2=14592 μm2
[0061] Total=(60800+4788+3648+14592)*1.4 (assume 60% wireability)=117359 μm2 about 0.12 mm2
[0062] FIG. 11 illustrates an XOR Matrix example in accordance with the invention. In this example, a 64 b key is hashed to a 16 b hash value.
[0063] FIG. 12 illustrates remote lookup request timing. In this example, a 4 hash table case is shown. FIG. 13 illustrates an "On the fly" compare engine.
[0064] In one embodiment, system 10 provides a method for a table lookup. The method may include hardware means for executing a single hash function for mapping one of hundreds of millions of keys to a slot, e.g. bucket, in the table whereby the hashing function produces a high avalanche effect when only one bit of a key is changed. The method may also include means for minimizing hashing collisions by implementing four different tables and eight keys per bucket.
[0065] In one embodiment, system 10 provides hardware implementation of a packet lookup function supporting a very large number of large keys, e.g. hundreds of millions, and very high throughput, e.g. 100 Gbps Ethernet, based on a single logic 22 that can be configured to any type of CRC polynomials while reducing collisions with orthogonality and high avalanche effect for a plurality of hashers to enable the lookup of several tables in parallel.
[0066] In one embodiment, system 10 provides a method and system for executing a single hashing logic 22 to map a very large set of keys to a slot, e.g. bucket, with a high avalanche effect. In another embodiment, system 10 reduces hashing collision by sharing the single hashing logic 22 for four different tables and eight keys per slot.
20130311476 METHOD AND APPARATUS FOR ON-THE-FLY CATEGORIZATION AND OPTIONAL DETAILS EXTRACTION FROM QUESTIONS POSTED TO AN ONLINE CONSULTATION SYSTEM
20130311475 Generating Mappings Between a Plurality of Taxonomies
20130311474 Generating Mappings Between a Plurality of Taxonomies
20130311473 SYSTEM AND METHOD FOR DYNAMICALLY CLUSTERING DATA ITEMS
20130311472 IMAGING PROTOCOL UPDATE AND/OR RECOMMENDER
2011-02-03 Tag creation system
2011-08-04 Url reputation system