Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for packet distribution based on multiple hashing

A technology of re-hashing and message, applied in the field of message distribution method and device based on multi-hash, can solve the problems of conflict, time-consuming distribution and filtering, etc., so as to improve the construction efficiency, the submission distribution efficiency, and the distribution efficiency. Effect

Active Publication Date: 2021-02-09
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF6 Cites 0 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 input value and the output value, that is, a conflict occurs, resulting in a long time-consuming split filtering

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
  • A method and device for packet distribution based on multiple hashing
  • A method and device for packet distribution based on multiple hashing
  • A method and device for packet distribution based on multiple hashing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] Such as 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 value of the table to be looked up, use hash algorithm A and hash algorithm B with orthogonal relationship to calculate respectively, and obtain hash result A and hash result 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 of is the search result 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: Calculat...

Embodiment 2

[0055] Such as 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 of is the search result 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 ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/743H04L12/851
CPCH04L45/7453H04L47/2441Y02D30/50
Inventor 丁建华
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products