Message distribution method and device based on multiple hashes

A shunting device and re-hashing technology, which is applied in the computer field, can solve problems such as conflicts and long time-consuming shunting and filtering, and achieve the effects of improving construction efficiency, submitting shunting efficiency, and improving shunting efficiency

Active Publication Date: 2018-06-01
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the commonly used Hash algorithm cannot guarantee the unique correspondence between the inpu

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message distribution method and device based on multiple hashes
  • Message distribution method and device based on multiple hashes
  • Message distribution method and device based on multiple hashes

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0040] Example 1

[0041] like figure 1 As shown, Embodiment 1 of the present invention provides a method for distributing packets based on multiple hashing, and the method includes the following steps:

[0042] S1: For the values ​​in the table to be looked up, use hash algorithm A and hash algorithm B with orthogonal relationship to calculate respectively, and obtain hash results a and b respectively.

[0043] S2: Use the hash result a as an index to search the main table of the hash space.

[0044] S3: Check whether the conflict flag of the table lookup result is valid. If the conflict flag bit of the table lookup result is valid, it means a conflict occurs, and go to the next step. If the conflict flag of the main table lookup result indicates that no conflict occurs, it is used to look up the target table item The index is a.

[0045] S4: Use the hash result b as an index to search the hash space sub-table, and the search result is b.

[0046] S5: Calculate the final ...

Example Embodiment

[0054] Example 2

[0055] like image 3 As shown, Embodiment 1 of the present invention provides a method for distributing packets based on multiple hashing, and the method includes the following steps:

[0056] S1: For the value of the table to be looked up, use the hash algorithm A to calculate, and get the hash result a.

[0057] S2: Use the hash result a as an index to search the main table of the hash space.

[0058] S3: Check whether the conflict flag of the table lookup result is valid. If the conflict flag bit of the table lookup result is valid, it means a conflict occurs, and go to the next step. If the conflict flag of the main table lookup result indicates that no conflict occurs, it is used to look up the target table item The index is a.

[0059] S4: For the value of the table to be looked up, use the hash algorithm B which has an orthogonal relationship with the hash algorithm A to calculate, and obtain the hash result b.

[0060] S5: Use the hash result b as ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a message distribution method and device based on multiple hashes. The method comprises the steps of: respectively calculating two hash results by utilizing two hash algorithms,taking a result that a spatial main table is searched by utilization of one hash result as a reference index, and taking a result that a spatial sub-table is searched by utilization of the other hashresult as an auxiliary index correction reference index. The device comprises a first calculation unit, a second calculation unit, a first searching unit, a second searching unit and a third calculation unit; the first calculation unit is used for calculating a hash result A by utilizing a hash algorithm A; the second calculation unit is used for calculating a hash result B by utilizing a hash algorithm B; the first searching unit is used for searching a hash spatial main table by utilizing the result A, so that a search result a is obtained; the second searching unit is used for searching ahash spatial sub-table by utilizing the result B, so that a search result b is obtained; and the third calculation unit is used for judging a conflict condition of the search result a, and calculatinga search destination table item index. According to the message distribution method and device based on multiple hashes provided by the invention, a double-hash search sequence is constructed by utilization of two hash functions; therefore, the conflict is effectively avoided; the distribution time is saved; and the distribution efficiency is increased.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for distributing messages based on multiple hashing. Background technique [0002] With the continuous expansion of the Internet scale and the continuous improvement of application technology, more and more services need to classify data packets in real time and quickly. For various network packet processing functions, the ability to accurately and efficiently distinguish and identify packets is the key, but the more complex the packet parsing field, the greater the processing consumption required and the lower the parsing efficiency. For this reason, many algorithms have emerged, such as hash (hash) algorithm, linear lookup table, content lookup algorithm, etc., in order to realize packet classification processing more accurately and efficiently. [0003] Hash, generally translated as "hash", and also directly transliterated as "hash", is to convert an inp...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L12/743H04L12/851
CPCH04L45/7453H04L47/2441Y02D30/50
Inventor 丁建华
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products