Routing table construction method and device and routing table lookup method and device

A technique for establishing a method and a routing table, which is applied in the field of communication and can solve problems such as slow speed of searching the routing table

Active Publication Date: 2015-01-21
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] Embodiments of the present invention provide a method and device for establishing a routing table and a method and device for searching a routing table, which are used to solve the problem that the tree height in the existing TRIE algorithm is too high, which causes the speed of searching the routing table to be slow and the time delay increases. Improve the search rate of the routing table and reduce the search delay

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
  • Routing table construction method and device and routing table lookup method and device
  • Routing table construction method and device and routing table lookup method and device
  • Routing table construction method and device and routing table lookup method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The technical solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0051] Figure 4 The flow chart of the embodiment of the method for establishing the routing table of the present invention, such as Figure 4 As shown, the routing table establishment method includes:

[0052] 101. Divide the data structure of the routing table into a trunk and a TRIE subtree;

[0053] 102. Add a routing table entry to the TRIE subtree;

[0054] 103. Save the promoted child node of the vertex of the TRIE subtree in the trunk, the height of the TRIE subtree is less than or equal to the set height threshold, and the promoted child node of the vertex of the TRIE subtree is the The vertices of the TRIE subtree include the child vertices in the prefix child nodes.

[0055] The routing table can be stored in a layered data structure, and the data structure of the routing table can be divided into a trun...

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 embodiments of the present invention relate to a routing table establishment method and device and a routing table lookup method and device. The routing table establishment method includes: partitioning a data structure of a routing table into a trunk and a TRIE sub-tree (101); adding entries of the routing table to the TRIE sub-tree (102); and storing an upgrade sub-node of the TRIE sub-tree's root in the trunk, where the height of the TRIE sub-tree is smaller than or equal to a set height threshold (103), and the upgrade sub-node of the TRIE sub-tree's root is a sub-root among prefix sub-nodes included in the TRIE sub-tree's root. According to the embodiments of the present invention, the data structure of the routing table is partitioned into the trunk and the TRIE sub-tree, and the TRIE sub-tree is established by using the TRIE algorithm, thereby ensuring the high compression ratio of the routing table; and the height of the TRIE sub-tree is controlled according to the height threshold, thereby reducing times for accessing a memory, improving lookup speed, and reducing lookup delay.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of communication, and in particular to a method and device for establishing a routing table and a method and device for searching a routing table. Background technique [0002] In order to prevent the address space from being exhausted, the Internet Engineering Task Force (IETF for short) proposed a temporary solution to the address structure of Classless Inter-Domain Routing (CIDR for short) in 1993. CIDR is the basis of the actual routing lookup table, which breaks away from the traditional A-E classification address structure. In CIDR, an IP network is represented by a prefix (prefix), which is represented by a composite of an IP address and a mask identifying the valid bits of the IP address. CIDR allows routers to perform route aggregation, that is, routing table entries of 2 subnets with the same size, adjacent to each other in the address space, and the same route can be com...

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/741H04L45/74H04L45/748
CPCH04L45/742H04L45/748H04L45/54
Inventor胡睿陈洪飞龚钧翟素平王小忠赵鹤轩
OwnerHUAWEI TECH CO LTD