Trie searching method and device applied to network processor

A technology of a network processor and a search method, applied in the field of network processors, can solve the problems of a large number and low utilization of memory bandwidth, and achieve the effects of low memory cost, reduction of search time, and improvement of search efficiency

Inactive Publication Date: 2014-10-08
NO 32 RES INST OF CHINA ELECTRONICS TECH GRP
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The path compression Trie tree algorithm is the same as the binary tree algorithm, which requires a large number of memory access operations in the search process; whil

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
  • Trie searching method and device applied to network processor
  • Trie searching method and device applied to network processor
  • Trie searching method and device applied to network processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be described in detail below in conjunction with specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0036] In the present invention, the structure of Trie search is as follows figure 1 As shown, the trie search method applied in the network processor provided by the present invention includes the following steps:

[0037] Step 1: establish a multi-level storage structure, the storage structure includes register files with gradually smaller priorities, internal RAM, external SRAM and external SDRAM;

[0038] Step 2: Build a balanced tree, specifically, traverse each bit of all routing tables, fi...

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 Trie searching method applied to a network processor. The Trie searching method applied to the network processor is characterized by comprising the following steps that firstly, a multi-level storage structure is established, wherein the storage structure comprises a register file, an internal RAM, an external SRAM and an external SDRAM, and the priority of the register file, the priority of the internal RAM, the priority of the external SRAM and the priority of the external SDRAM are gradually reduced; secondly, a balance tree is established, wherein each bit of all routing tables is traversed, the bit of which the number of values 0 and the number of values 1 are roughly equal is found, set as a current root node and marked as a used bit, the process is repeated, and the relative balance tree is established; thirdly, data storage is conducted, wherein every time data storage is conducted, a plurality of adjacent bits of data are organized into a sub-tree structure to conduct data storage. The hierarchical storage structure is adopted for the Trie structure, the time for a key to have access to the external memories is shortened, and high searching speed is obtained at low memory cost.

Description

technical field [0001] The invention relates to a network processor, in particular to a Trie search method applied in the network processor. Background technique [0002] Due to its fast speed and good programmable performance, the network processor has become the core device of the next-generation network products. With the continuous improvement of network requirements, the line speed requirements of network processors are getting higher and higher, and the required data packet forwarding rate is also increasing. The higher the value, the faster the route lookup becomes the main bottleneck restricting the performance of the network processor. [0003] There are many routing lookup algorithms used in the core period of the network. Among them, the algorithm based on the Trie tree not only has better search speed, space complexity and time complexity, but also can continuously improve the performance of routers. Therefore, the novel modern fast routing lookup algorithms are ...

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): G06F17/30
CPCG06F16/9027
Inventor 李苗金胤丞李智广
Owner NO 32 RES INST OF CHINA ELECTRONICS TECH GRP
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