Method and device for Hash lookup table

A hash lookup and hash technology, applied in digital transmission systems, data exchange networks, electrical components, etc., can solve the inability to reflect efficiency and resource fairness, waste of hash table storage space resources, and limitations in the use of multi-core processors and other issues to achieve high search efficiency, reduce the incidence of hash collisions, and improve utilization

Active Publication Date: 2010-04-07
ZTE CORP
View PDF1 Cites 71 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The Chinese patent application with the patent number CN200710049572 has the following deficiencies: one, the application of the invention adopts a master-slave parallel multi-core processor, and the complexity of the application of the multi-core processor has caused limitations in use; two, the invention uses multiple Memory management, that is, multiple hash storage tables, information interaction between these storage tables, etc. The invention does not explain
3. The invention does not provide the hardware implementation
[0012] The U.S. patent application with the patent number US20080034115 has the following deficiencies: the invention implements the hash table lookup in hardware, and proposes that information is stored in a CAM (ContentAddressable Memory) when the hash conflicts, and the CAM and the hash The method of looking up tables at the same time, the hardware implementation of this invention requires an external CAM, and a CAM addressing interface needs to be added, and when the conflict is severe, the information is concentrated in the CAM, resulting in a waste of storage space resources for the hash table, which cannot reflect the relationship between efficiency and resources fairness

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
  • Method and device for Hash lookup table
  • Method and device for Hash lookup table
  • Method and device for Hash lookup table

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0061] Such as figure 1 As shown, the storage structure of the hash storage table of the present invention is a two-dimensional structure, wherein the address space of the main table of the hash storage table is 0~(N-1), that is, table address 0~(N-1), that is, Index values ​​0 to (N-1) obtained after each hash operation. Each address space stores K1 entries. Each time the information is stored, it is sufficient to fill in the table items sequentially. The subsidiary table has only one address space, and this address space can store K2 table entries, and sequentially store the conflict overflow information in the main table. The entire hash storage table is stored in the memory of the hardware.

[0062] Such as figure 2 As shown, the hardware circuit of the present invention includes a hash table entry establishment device 21 and a hash table entry...

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 discloses a method and a device for a Hash lookup table. When storing a table, the method comprises the following steps of: planning a main table storage space which is divided into a plurality of address spaces; establishing a plurality of Hash functions and performing Hash calculation on a keyword of a piece of information to be stored by using the plurality of Hash functions to obtain a plurality of index values; and comparing the empty/full degrees of the address spaces corresponding to the plurality of index values and storing the information to be stored in the address space with the least stored information. When looking up the table, the method comprises the following steps of: using the plurality of different established Hash functions to perform Hash calculation on the keyword to be looked up so as to obtain a plurality of index values and performing match search on the keyword of a table entry of an address space position corresponding to the plurality of index values and the key word to be looked up. The method and the device for the Hash lookup table can save storage resource for the Hash table and improve the efficiency of Hash lookup.

Description

technical field [0001] The invention relates to the field of network communication, in particular to the problem of hardware implementation of a hash lookup table in network communication. More specifically, it relates to a method and device for a hash lookup table. Background technique [0002] In the field of network communication, lookup tables are essential, such as looking up MAC tables, ARP tables, MPLS label tables, etc., and hash lookup tables are a widely used method. A certain corresponding relationship f is established between its keywords, so that each keyword corresponds to a unique storage address in the hash table. The determined corresponding relationship f is the corresponding hash function. When the table is looked up each time, the storage table item is obtained through the hash function, and the relevant information bit of the table item is extracted, matched with the searched keyword, and the search result is returned according to the matching situation...

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 Applications(China)
IPC IPC(8): H04L12/56H04L29/06
CPCG06F17/30949G06F16/9014
Inventor 周昶缪欣周晓晶
Owner ZTE CORP
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