Method for traversing multi-branch Trie tree

A multi-branch and traversal technology, applied in the network field, can solve problems such as consumption, memory occupation, and low performance, and achieve high traversal performance and ensure the effect of processing order

Inactive Publication Date: 2008-10-01
MAIPU COMM TECH CO LTD
View PDF0 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of the traditional binary Trie tree and path compression Trie tree is that the search process requires a large number of memory access operations
The general method of traversal is to record the prefix items that have been processed and compare them with the prefixes in the nodes that need to be processed later, which usually consumes a lot of memory and has low performance
Another method is to add fields in the specific information of each IP prefix, so that the IP prefixes in the entire table are linked to form a linear table. This method has high traversal performance, but it will occupy the already huge m-trie tree. More memory, and another problem with this method is that there is no order when processing prefixes, and they are processed in the order they were added. When displaying prefix items, the output IP prefix items are out of order, which is not conducive to checking and problems Positioning, if you want to improve its unordered problem, it will increase the complexity of updating the m-trie tree

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 for traversing multi-branch Trie tree
  • Method for traversing multi-branch Trie tree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The technical solution of the present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.

[0021] The present invention can be used in routers, packet switching systems or other communication or computer systems, when the m-trie tree is used to store IP prefixes, the method for traversing the m-trie tree.

[0022] The meanings of terms involved in the present invention are:

[0023] Series - refers to the depth of the m-trie tree from the root to this node;

[0024] Valid node - the valid flag in the node is 1, and contains routing information, that is, the node whose mask length is not 0;

[0025] Leaf node - means that the next level pointer of the node is empty;

[0026] Inner node - means that the next level pointer of the node is not empty, and has a child node;

[0027] Processing function - refers to the function used to process the node, such as the output function, the function of setting the flag, etc....

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 relates to a network technique, especially an IP address searching method. In order to solve the problem of traversal performance and memory consumption of multi-branch Trie tree, the invention discloses a traversal method of multi-branch Trie tree for increasing traversal performance and reducing memory consumption. The technical scheme is that: when a node is treating, firstly, a treated record last time is compared with the node, if the node has been treated already, then, next node is traversal, if not, the node is treated by processing function; after the node has been treated, the node position information, IP prefix information corresponding to the position, block pointer and IP prefix information of its each level ancestor are recorded. The method provided by the invention has advantages that memory capacitance is reduced, distributing and releasing memory are not needed, other IP prefix information of the level needs not cached, comparison with other IP prefix of the level is not needed and traversal performance is increased. Because of employing preorder traversal method, treating order can be ensured.

Description

technical field [0001] The invention relates to network technology, in particular to an IP address search method. Background technique [0002] With the rapid development of the Internet, the interface rate of core routers used for backbone network interconnection has reached 2.5Gbit / s to 10Gbit / s. This rate requires the core router to be able to forward millions to tens of millions of packets per second. An important step in packet forwarding is to look up the routing table, so a fast IP address lookup algorithm is the key technology to achieve high packet forwarding. IP address lookup needs to achieve the longest prefix match. The disadvantage of the traditional binary Trie tree and path compression Trie tree is that the search process requires a large number of memory access operations. In recent years, with the gradual deepening of router research and the continuous improvement of router performance requirements, people have proposed a multi-branch Trie tree search al...

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/56G06F17/30
CPCG06F17/30014G06F16/94
Inventor 刘宝琴
Owner MAIPU COMM 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