CN101459569A - Method, apparatus for establishing route index tree and method, apparatus for searching route index tree - Google Patents

Method, apparatus for establishing route index tree and method, apparatus for searching route index tree Download PDF

Info

Publication number
CN101459569A
CN101459569A CNA2008101832457A CN200810183245A CN101459569A CN 101459569 A CN101459569 A CN 101459569A CN A2008101832457 A CNA2008101832457 A CN A2008101832457A CN 200810183245 A CN200810183245 A CN 200810183245A CN 101459569 A CN101459569 A CN 101459569A
Authority
CN
China
Prior art keywords
node
route
index tree
network
network identity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008101832457A
Other languages
Chinese (zh)
Other versions
CN101459569B (en
Inventor
滕新东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2008101832457A priority Critical patent/CN101459569B/en
Publication of CN101459569A publication Critical patent/CN101459569A/en
Application granted granted Critical
Publication of CN101459569B publication Critical patent/CN101459569B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a method and a device for establishing route index trees, and a method and a device for searching for the route index trees, which relate to the network communication field, wherein the method for establishing a route index tree comprises conserving network marks by a route index tree root node, wherein the network marks comprise virtual special-purpose network marks, and conserving interval end point values of route prefixes in network corresponding to the network marks on a subtree node hung under the root node. A method for searching for route index trees comprises obtaining destination address of a message which is to be transmitted and network where the destination address is belonged, and obtaining next hop address of the message which is to be transmitted according to the network marks and the destination address corresponding to the network. The method and the device improve the searching speed of routes, and can be applied to search for routes.

Description

Set up the method for route index tree, the method for installing and searching route index tree, device
Technical field
The present invention relates to network communication field, relate in particular to a kind of method of route index tree, the method for installing and searching route index tree, device set up.
Background technology
Along with the tendency of globalization, there has been more branched structure in a lot of enterprises in different places, and people need safety, data communication means, the therefore extensive use that has brought VPN (Virtual Private Network, Virtual Private Network) easily.Had only incoming end routing forwarding equipment just need support the VPN route, now a lot of middle and high ends routing forwarding equipment is directly connected to the end user in the past.Because the speed of transmission medium is increasing rapidly, routing forwarding equipment needs higher longest path by the prefix search capacity.As the routing forwarding equipment of supporting 100G optical cable port needs each second and searches 150M route prefix, support the routing forwarding equipment of 150G port to need each second searches 250M route prefix etc.
Summary of the invention
The embodiment of the invention provides the method for setting up route index tree, the method for installing and searching route index tree, device, can improve the speed of route querying.
On the one hand, the embodiment of the invention provides a kind of method, device of setting up route index tree.
A kind of method of setting up route index tree comprises:
The route index tree root node is preserved network identity, and wherein said network identity comprises the Virtual Private Network sign;
The subtree node of hanging under described root node is preserved the interval endpoint value of route prefix in the described network identity map network.
A kind of device of setting up route index tree comprises:
Sign is preserved module, is used for the route index tree root node and preserves network identity, and wherein said network identity comprises the Virtual Private Network sign;
The interval endpoint value is preserved module, and the subtree node that is used for hanging under described root node is preserved the interval endpoint value of described network identity map network route prefix.
On the other hand, the embodiment of the invention provides a kind of method, device of searching route index tree.
A kind of method of searching route index tree comprises:
Obtain and wait the transmit messages destination address of literary composition and the network under the described destination address;
In route index tree,, obtain the described civilian next hop address of transmitting messages of waiting according to the network identity and the described destination address of described network correspondence.
A kind of device of searching route index tree comprises:
The information acquisition module is used to obtain and waits to transmit messages civilian destination address and the affiliated network of described destination address;
Address acquisition module is used at route index tree, according to the network identity and the described destination address of described network correspondence, obtains the described civilian next hop address of transmitting messages of waiting.
The method of searching route index tree, device that the embodiment of the invention provides, in the route querying process, add network identity and be the value of searching, dwindle the seek scope of route prefix in the route querying process, reach the purpose of the time that shortens the route prefix coupling, improved the convergence rate of route index tree.
Description of drawings
The method flow diagram of setting up route index tree that Fig. 1 provides for the embodiment of the invention one;
The method flow diagram of setting up route index tree that Fig. 2 provides for the embodiment of the invention two;
The method flow diagram of setting up route index tree that Fig. 3 provides for the embodiment of the invention three;
The method flow diagram of setting up route index tree that Fig. 4 provides for the embodiment of the invention four;
Fig. 5 is the schematic diagram 1 in route interval in the embodiment of the invention four;
Fig. 6 is the schematic diagram 2 in route interval in the embodiment of the invention four;
The structural representation of the device of setting up route index tree that Fig. 7 provides for the embodiment of the invention five;
Fig. 8 is the structural representation that the interval endpoint value is preserved module among Fig. 7;
The another kind that Fig. 9 provides for the middle embodiment of the invention five is set up the structural representation of the device of route index tree;
The structural representation of the device of searching route index tree that Figure 10 provides for the embodiment of the invention six;
The another kind that Figure 11 provides for the middle embodiment of the invention six is set up the structural representation of the device of route index tree.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Be described in detail below in conjunction with the method for accompanying drawing the embodiment of the invention.
Embodiment one
As shown in Figure 1, a kind of method of setting up route index tree comprises:
S101, route index tree root node are preserved network identity, and wherein said network identity comprises the Virtual Private Network sign;
The interval endpoint value that S102, the subtree node of hanging under described root node are preserved route prefix in the described network identity map network.
The method of setting up route index tree that the embodiment of the invention provides, by network identity is set in route index tree, realize the memory space of the shared described route index tree root node of subtree, overcome and distribute the subtree fixed storage space in the prior art, the problem that the subtree memory space inadequate occurs, the autobalance of realization subtree memory space.
Embodiment two
As shown in Figure 2, below the method for the embodiment of the invention one is described in detail.
The embodiment of the invention is by the route index tree of a classification of binary tree algorithm realization of software, and described route index tree is divided into root tree and subtree, wherein hangs a stalk under the root node on each root tree and sets.
The root node of S201, route index tree is preserved network identity
Wherein said network identity comprises the sign of Virtual Private Network sign and non-Virtual Private Network.
Obtain the sign of at least one Virtual Private Network, and described sign is distributed to the root node of described Virtual Private Network; The network identity of at least one non-Virtual Private Network is set, and wherein said being designated keeps use, is applicable to non-Virtual Private Network, as public network; Described network identity is distributed to described route index tree root node.
The interval endpoint value that S202, the subtree node of hanging under described root node are preserved route prefix in the described network identity map network
At each subtree root node, the threshold value that the subtree node is preserved the interval endpoint value of route prefix is set, wherein said threshold value is preserved the maximum or the minimum value of the interval endpoint value of route prefix for the subtree node; The root node of the interval endpoint value of determining each route prefix under in described route index tree; The interval endpoint value that the subtree node of hanging under the described root node after determining is preserved corresponding route prefix.
When node on the described subtree is expired, or when node reached a predetermined threshold value on the subtree, for example the subtree size was 256 nodes, meets or exceeds 3/4, then need distribute new subtree on described route index tree.Detailed process is as follows: when node on the described subtree is expired, have at least one route prefix not add the subtree node to, obtain the affiliated network of un-added described route prefix and the network identity of described network correspondence; Add a root node of preserving network identity on described routing index tree root tree, wherein said network identity is the network identity of un-added described route prefix correspondence; Under the described root node that adds, add stalk tree; At the described root node that adds, the described subtree node that interpolation is set is preserved the threshold value of the interval endpoint value of route prefix; The interval endpoint value of preserving described un-added route prefix at the described subtree node that adds.
The method that the embodiment of the invention provides, by network identity is set in route index tree, realize the memory space of the shared described route index tree root node of subtree, overcome and distribute the subtree fixed storage space in the prior art, the problem that the subtree memory space inadequate occurs, the autobalance of realization subtree memory space is avoided when memory space inadequate occurring, consume system resources is moved the problem of subtree, reduces system resources consumption.
Embodiment three
As shown in Figure 3, a kind of method of searching route index tree comprises:
S301, the destination address that obtains the literary composition of waiting to transmit messages and the network under the described destination address;
S302, in route index tree, according to the network identity and the described destination address of described network correspondence, obtain the next hop address of the described literary composition of waiting to transmit messages.
Embodiment four
As shown in Figure 4, the another kind that provides of the embodiment of the invention method of searching route index tree.
S401, the destination address that obtains the literary composition of waiting to transmit messages and the network under the described destination address
Concrete, the method for obtaining above-mentioned information in the prior art all is applicable to this step, repeats no more.
S402, in route index tree, according to the network identity and the described destination address of described network correspondence, obtain the next hop address of the described literary composition of waiting to transmit messages
Concrete, the root tree at described route index tree is the value of searching with network identity and destination address, determines the root node of route index tree; The subtree node of hanging under described root node is the value of searching with destination address, obtains the described civilian next hop address of transmitting messages of waiting.
Optionally, according to described network identity, determine the root node of route index tree from the address table of the root node preserved in advance, the address table of wherein said root node can be by being that index is set up with the network identity; The subtree node of hanging under described root node is the value of searching with destination address, obtains the described civilian next hop address of transmitting messages of waiting.
When wherein in described route index tree, not having the node that writes down described next hop address, then in described index tree, add the node of the described next hop address of record;
The process of adding described node comprises: according to network identity and threshold value, determine the root node under described node is in route index tree; On the subtree under the described root node, add described node; According to the interval endpoint value of the route prefix of the left and right sides adjacent node of node, upgrade the interval endpoint value of route prefix of the node of the subinterval correspondence that the route prefix interval of the adjacent node of described node and described node comprised.
Because of having added new node,, upgrade the interval endpoint value of the route prefix of the adjacent node of described node and child node for the route prefix interval that guarantees node in the described route index tree does not intersect in described subtree.
For ease of revising the interval endpoint value of route prefix, for each subtree node preserve left and right sides adjacent node and about the interval endpoint value of the route prefix of node farthest, the recording method of described endpoint value can realize by adding pointer at described subtree node, but method is not limited thereto, and no longer gives an example at this.
More the concrete grammar of the table item index value of new node is as follows:
The first kind, the interval left and right sides of the route prefix of node endpoint value does not exist in index tree, for example at interval [a1, a2] in added node route prefix interval [b1, b2], then described interval becomes 3 subintervals, be respectively [a1, b1], [b1, b2], [b2, a2], the table item index value of interval [a1, b1] is a1, interval [b1, b2] the table item index value be b1, the table item index value of [b2, a2] is updated to a1.
Second class, the interval left end point value of the route prefix of node exists, and the right-hand member point value does not exist, and has for example added route prefix interval [b1, b2] after existing interval [a1, a2] in the route index tree, wherein a1=b1.If interval right-hand member point value b2〉during a2, the table item index value of interval [a1, a2] is a1, the table item index value of interval [a2, b2] is a1, and preserves the right-hand member point value of described node.If interval right-hand member point value b2<during a2, then interval is a1, b2] the table item index value be a1, the table item index value in interval [b2, a2] is a1, does not preserve the right-hand member point value of described node.
The 3rd class, the interval left end point value of the route prefix of node does not exist, and the right-hand member point value exists, has for example added route prefix interval [b1, b2] after existing interval [a1, a2] in the route index tree, wherein a2=b2.If interval left end point value b1<during a1, the table item index value of interval [b1, b2] is a1, does not preserve the left end point value of described node; If interval left end point value b1〉during a1, the table item index value of interval [b1, b2] is b1, preserves the left end point value of described node.
When the 4th class, the route prefix interval of node are other interval fathers intervals,, add interval [b1 referring to Fig. 5, b2], described [b1, b2] interval is [a1, a2], [a2, a3], [a3, a4], the father interval of [a4, a5], then described [a2, a3], [a4, a5], the table item index value of [a5, a6] is updated to b1, and preservation a2, a4, the former table item index value of a5.
Done introduction to adding node above, below deletion of node has been explained.
Deletion is during described node in described route index tree, according to the interval endpoint value of node and left and right sides neighbors information farthest about node, determines whether described node keeps; If node is not deleted, the index value that then described node is preserved is updated to the interval index value of preserving of father in the route interval of described node; Upgrade interval endpoint value, the index value of the left and right sides adjacent node of the subinterval corresponding node that the route prefix interval of the adjacent node of described node and described node comprised; The more maximum or the minimum value of new node place subtree root node.
For example, referring to Fig. 6, during as if deletion interval [b1, b2], the former routing index value c1 by [b2, b3] deposits upgrades [a2, a3] [a4, a5], the table item index of [a5, a6]; If deletion interval [b2, b3] by interval [b2, b3] former routing index value c1, is upgraded b2, the table item index value of a7 is c1.
The method of searching route index tree, device that the method embodiment of the invention that the embodiment of the invention provides provides, in the route querying process, add network identity and be the value of searching, dwindle the seek scope of route prefix in the route querying process, reach the purpose of the time that shortens the route prefix coupling, improved the convergence rate of route index tree.By the information of adjacent node is set at each node, convenient modification to the route prefix has been accelerated the processing speed of route index tree, thereby has been improved the convergence rate of network.
Embodiment five
As shown in Figure 7, a kind of device of setting up route index tree of providing of the embodiment of the invention five comprises:
Sign is preserved module 701, is used for the route index tree root node and preserves network identity, and wherein said network identity comprises the Virtual Private Network sign;
Wherein said network identity also comprises non-VPN (virtual private network) sign.
Further, described sign preservation module 701 specifically is used for: the network identity that obtains at least one Virtual Private Network; Described network identity is distributed to described route index tree root node.
Described sign is preserved module 701 and specifically is used for: the network identity that at least one non-Virtual Private Network is set; Described network identity is distributed to described route index tree root node.
The interval endpoint value is preserved module 702, and the subtree node that is used for hanging under described root node is preserved the interval endpoint value of described network identity map network route prefix.
Further, as shown in Figure 8, described interval endpoint value is preserved module 702 and be may further include:
Threshold value is provided with unit 7021, is used for being provided with at each subtree root node the threshold value of interval endpoint value of the route prefix of described subtree node, and wherein said threshold value is maximum or the minimum value that the subtree node is preserved the interval endpoint value of route prefix;
Root node determining unit 7022 is used for according to network identity and threshold value, the root node of the interval endpoint value of determining each route prefix under in described route index tree;
The interval endpoint value is preserved unit 7023, the interval endpoint value that the subtree node that is used for hanging under the described root node after determining is preserved corresponding route prefix.
Optionally, as shown in Figure 9, the described device of setting up route index tree can also comprise:
Subtree is added module 703, and being used for has at least one route prefix not add the subtree node to when node on the described subtree is expired, then obtains the affiliated network of un-added described route prefix and the network identity of described network correspondence; Add a root node of preserving network identity on described routing index tree root tree, wherein said network identity is the network identity of un-added described route prefix correspondence; Under the described root node that adds, add stalk tree; At the described root node that adds, the described subtree node that interpolation is set is preserved the threshold value of the interval endpoint value of route prefix; The interval endpoint value of preserving described un-added route prefix at the described subtree node that adds.
The device of setting up route index tree that the embodiment of the invention provides, can be used in combination with the method that the embodiment of the invention provides, by network identity is set in route index tree, realize the memory space of the shared described route index tree root node of subtree, overcome fixed allocation subtree fixed space in the prior art, the problem that the subtree memory space inadequate occurs, the autobalance of realization subtree memory space.
Embodiment six
As shown in figure 10, a kind of device of searching route index tree comprises:
Information acquisition module 1001 is used to obtain and waits to transmit messages civilian destination address and the affiliated network of described destination address;
Address acquisition module 1002 is used at route index tree, according to the network identity and the described destination address of described network correspondence, obtains the described civilian next hop address of transmitting messages of waiting.
Further, described address acquisition module 1002 specifically is used for the root tree at described route index tree.Be the value of searching with network identity and destination address, determine the root node of route index tree; The subtree of hanging under described root node is the value of searching with destination address, obtains the described civilian next hop address of transmitting messages of waiting.
Described address acquisition module 1002 specifically is used for according to described network identity, determines the root node of route index tree from the address table of the root node preserved in advance, and the address table of wherein said root node can be by being that index is set up with the network identity; The subtree node of hanging under described root node is the value of searching with destination address, obtains the described civilian next hop address of transmitting messages of waiting.
Optionally, as shown in figure 11, the described device of searching route index tree can also comprise:
Add update module 1003, specifically be used for when there is not the node that writes down described next hop address in route index tree, determine root node in the described route index tree according to network identity and threshold value; On the subtree under the described root node, add described node; According to the interval endpoint value of the route prefix of the left and right sides adjacent node of node, upgrade the interval endpoint value of route prefix of the node of the subinterval correspondence that the route prefix interval of the adjacent node of described node and described node comprised.
Deletion update module 1004 specifically is used for when the node of the described next hop address of deletion record, according to the interval endpoint value of node and left and right sides neighbors information farthest about node, determines whether described node keeps; The index value that then described node is preserved is updated to the interval index value of preserving of father in the route interval of described node; Upgrade interval endpoint value, the index value of the left and right sides adjacent node of the subinterval corresponding node that the route prefix interval of the adjacent node of described node and described node comprised; The more maximum or the minimum value of new node place subtree root node.
The device of searching route index tree that the embodiment of the invention provides, can be used in combination with the device that the embodiment of the invention provides, in the route querying process, add network identity and be the value of searching, dwindle the seek scope of route prefix in the route querying process, reach the purpose of the time that shortens the route prefix coupling, improved the convergence rate of route index tree.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing module, also can be that the independent physics in each unit exists, and also can be integrated in the module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion by described protection range with claim.

Claims (23)

1, a kind of method of setting up route index tree is characterized in that, comprising:
The route index tree root node is preserved network identity, and wherein said network identity comprises the Virtual Private Network sign.
The subtree node of hanging under described root node is preserved the interval endpoint value of route prefix in the described network identity map network.
2, the method for setting up route index tree according to claim 1 is characterized in that, described network identity also comprises non-Virtual Private Network sign.
3, the method for setting up route index tree according to claim 1 is characterized in that, the route index tree root node is preserved network identity and comprised:
Obtain the network identity of at least one Virtual Private Network;
The network identity of described Virtual Private Network is distributed to described route index tree root node.
4, the method for setting up route index tree according to claim 1 and 2 is characterized in that, the route index tree root node is preserved network identity and comprised:
The network identity of at least one non-Virtual Private Network is set;
The network identity of described non-Virtual Private Network is distributed to described route index tree root node.
5, the method for setting up route index tree according to claim 1 is characterized in that, the interval endpoint value that the subtree node of hanging under described root node is preserved route prefix in the described network identity map network comprises:
At each subtree root node, the threshold value that the subtree node is preserved the interval endpoint value of route prefix is set, wherein said threshold value is preserved the maximum or the minimum value of the interval endpoint value of route prefix for the subtree node;
According to network identity and threshold value, the root node of the interval endpoint value of determining each route prefix under in described route index tree;
The subtree node of hanging under the described root node after determining, the interval endpoint value of preserving route prefix.
6, the method for setting up route index tree according to claim 5 is characterized in that, the interval endpoint value that the subtree node of hanging under described root node is preserved route prefix in the described network identity map network comprises:
When node on the described subtree is expired, there is at least one route prefix not add the subtree node to, then obtain the affiliated network of un-added described route prefix and the network identity of described network correspondence;
Add a root node of preserving network identity on described routing index tree root tree, wherein said network identity is the network identity of un-added described route prefix correspondence;
Under the described root node that adds, add stalk tree;
At the described root node that adds, the described subtree node that interpolation is set is preserved the threshold value of the interval endpoint value of route prefix;
The interval endpoint value of preserving described un-added route prefix at the described subtree node that adds.
7, a kind of method of searching route index tree is characterized in that, comprising:
Obtain and wait the transmit messages destination address of literary composition and the network under the described destination address;
In route index tree,, obtain the described civilian next hop address of transmitting messages of waiting according to the network identity and the described destination address of described network correspondence.
8, method of searching route index tree according to claim 7 is characterized in that, in route index tree, according to the network identity and the described destination address of described network correspondence, obtains the described civilian next hop address of waiting to transmit messages and comprises:
Root tree at described route index tree is the value of searching with network identity and destination address, determines the root node of route index tree;
The subtree of hanging under described root node is the value of searching with destination address, obtains the described civilian next hop address of transmitting messages of waiting.
9, method of searching route index tree according to claim 7 is characterized in that, in route index tree, according to the network identity and the described destination address of described network correspondence, obtains the described civilian next hop address of waiting to transmit messages and comprises:
According to described network identity, from the address table of the root node preserved in advance, determine the root node of route index tree, the address table of wherein said root node can be by being that index is set up with the network identity;
The subtree of hanging under described root node is the value of searching with destination address, obtains the described civilian next hop address of transmitting messages of waiting.
10, method of searching route index tree according to claim 7 is characterized in that, in route index tree, according to the network identity and the described destination address of described network correspondence, obtains the described civilian next hop address of waiting to transmit messages and comprises:
When in described route index tree, not having the node that writes down described next hop address, then in described index tree, add the node of the described next hop address of record;
The process of adding described node comprises:
According to network identity and threshold value, determine the root node under described node is in route index tree;
On the subtree under the described root node, add described node;
According to the interval endpoint value of the route prefix of the left and right sides adjacent node of node, upgrade the interval endpoint value of route prefix of the node of the subinterval correspondence that the route prefix interval of the adjacent node of described node and described node comprised.
11, method of searching route index tree according to claim 7 is characterized in that, in route index tree, according to the network identity and the described destination address of described network correspondence, obtains the described civilian next hop address of waiting to transmit messages and also comprises afterwards:
In described route index tree during the node of the described next hop address of deletion record,, determine whether described node keeps according to the interval endpoint value of node and left and right sides neighbors information farthest about node; If node is not deleted, the index value that then described node is preserved is updated to the interval index value of preserving of father in the route interval of described node;
Upgrade interval endpoint value, the index value of the left and right sides adjacent node of the subinterval corresponding node that the route prefix interval of the adjacent node of described node and described node comprised;
The more maximum or the minimum value of new node place subtree root node.
12, according to arbitrary described method of searching route index tree in the claim 7 to 11, it is characterized in that described node comprises:
Preserve left and right sides adjacent node and about the node of the interval endpoint value of the route prefix of node farthest.
13, a kind of device of setting up route index tree is characterized in that, comprising:
Sign is preserved module, is used for the route index tree root node and preserves network identity, and wherein said network identity comprises the Virtual Private Network sign;
The interval endpoint value is preserved module, is used for the subtree node hung under described root node, the interval endpoint value of preserving route prefix in the described network identity map network.
14, the device of setting up route index tree according to claim 13 is characterized in that, described network identity also comprises non-Virtual Private Network sign
15, the device of setting up route index tree according to claim 13 is characterized in that,
Described sign is preserved module and specifically is used for: the network identity that obtains at least one Virtual Private Network; Described network identity is distributed to described route index tree root node.
16, according to claim 13 or the 14 described devices of setting up route index tree, it is characterized in that,
Described sign is preserved module and specifically is used for: the network identity that at least one non-Virtual Private Network is set; Described network identity is distributed to described route index tree root node.
17, according to the right 13 described devices of setting up route index tree, it is characterized in that,
Described interval endpoint value is preserved module and is comprised:
Threshold value is provided with the unit, is used at each subtree root node, and the threshold value that the subtree node is preserved the interval endpoint value of route prefix is set, and wherein said threshold value is preserved the interval endpoint value maximum or the minimum value of route prefix for the subtree node;
The root node determining unit is used for according to network identity and threshold value, determines the root node under route prefix is in described route index tree;
The interval endpoint value is preserved the unit, is used for the subtree node hung under the root node after determining, the interval endpoint value of preserving route prefix.
18, the device of setting up route index tree according to claim 13 is characterized in that, also comprises:
Subtree is added module, and being used for has at least one route prefix not add the subtree node to when node on the described subtree is expired, then obtains the affiliated network of un-added described route prefix and the network identity of described network correspondence; Add a root node of preserving network identity on described routing index tree root tree, wherein said network identity is the network identity of un-added described route prefix correspondence; Add stalk tree at the described root node that adds; At the described root node that adds, the described subtree node that interpolation is set is preserved the threshold value of the interval endpoint value of route prefix; The interval endpoint value of preserving un-added described route prefix at the described subtree node that adds.
19, a kind of device of searching route index tree is characterized in that, comprising:
The information acquisition module is used to obtain and waits to transmit messages civilian destination address and the affiliated network of described destination address;
Address acquisition module is used at route index tree, according to the network identity and the described destination address of described network correspondence, obtains the described civilian next hop address of transmitting messages of waiting.
20, the device of searching route index tree according to claim 19 is characterized in that,
Described address acquisition module specifically is used for the root tree at described route index tree, is the value of searching with network identity and destination address, determines the root node of route index tree; The subtree of hanging under described root node is the value of searching with destination address, obtains the described civilian next hop address of transmitting messages of waiting.
21, the device of searching route index tree according to claim 19 is characterized in that,
Described address acquisition module specifically is used for according to described network identity, determines the root node of route index tree from the address table of the root node preserved in advance, and the address table of wherein said root node can be by being that index is set up with the network identity; The subtree node of hanging under described root node is the value of searching with destination address, obtains the described civilian next hop address of transmitting messages of waiting.
22, the device of searching route index tree according to claim 19 is characterized in that, also comprises:
Add update module, specifically be used for when there is not the node of the described next hop address of described record in route index tree, determining root node in the described route index tree according to network identity and threshold value; On the subtree under the described root node, add described node; According to the interval endpoint value of the route prefix of the left and right sides adjacent node of node, upgrade the interval endpoint value of route prefix of the node of the subinterval correspondence that the route prefix interval of the adjacent node of described node and described node comprised.
23, the device of searching route index tree according to claim 19 is characterized in that, also comprises:
The deletion update module specifically is used for when the node of the described next hop address of deletion record, according to the interval endpoint value of node and left and right sides neighbors information farthest about node, determines whether described node keeps; The index value that then described node is preserved is updated to the interval index value of preserving of father in the route interval of described node; Upgrade interval endpoint value, the index value of the left and right sides adjacent node of the subinterval corresponding node that the route prefix interval of the adjacent node of described node and described node comprised; The more maximum or the minimum value of new node place subtree root node.
CN2008101832457A 2008-12-12 2008-12-12 Method, apparatus for establishing route index tree and method, apparatus for searching route index tree Expired - Fee Related CN101459569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101832457A CN101459569B (en) 2008-12-12 2008-12-12 Method, apparatus for establishing route index tree and method, apparatus for searching route index tree

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101832457A CN101459569B (en) 2008-12-12 2008-12-12 Method, apparatus for establishing route index tree and method, apparatus for searching route index tree

Publications (2)

Publication Number Publication Date
CN101459569A true CN101459569A (en) 2009-06-17
CN101459569B CN101459569B (en) 2011-08-10

Family

ID=40770209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101832457A Expired - Fee Related CN101459569B (en) 2008-12-12 2008-12-12 Method, apparatus for establishing route index tree and method, apparatus for searching route index tree

Country Status (1)

Country Link
CN (1) CN101459569B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821052A (en) * 2012-08-22 2012-12-12 迈普通信技术股份有限公司 Method and device for searching forwarding information in virtual special local area network service network
WO2013078644A1 (en) * 2011-11-30 2013-06-06 华为技术有限公司 Route prefix storage method and device and route address searching method and device
CN104767684A (en) * 2014-01-03 2015-07-08 腾讯科技(深圳)有限公司 Data transmission method and related device and communication system
CN105681119A (en) * 2014-11-19 2016-06-15 中兴通讯股份有限公司 Method and apparatus for detecting routing loop
CN105812258A (en) * 2014-12-31 2016-07-27 北京华为数字技术有限公司 Method and device for data processing
CN108134739A (en) * 2016-12-01 2018-06-08 深圳市中兴微电子技术有限公司 A kind of method for searching route and device based on index trie
CN109657022A (en) * 2018-12-08 2019-04-19 拉扎斯网络科技(上海)有限公司 Trade company's lookup method, device, electronic equipment and storage medium
WO2020000409A1 (en) * 2018-06-29 2020-01-02 Intel Corporation Managing quality of storage service in virtual network
CN111538864A (en) * 2020-03-25 2020-08-14 新华三技术有限公司合肥分公司 Method and device for reducing Buildrun consumption
CN112769699A (en) * 2019-11-05 2021-05-07 烽火通信科技股份有限公司 Method and controller for distributing and updating routing information in SD-WAN (secure digital-Wide area network)
CN115442301A (en) * 2022-09-09 2022-12-06 珍爱信息技术(海南)有限公司 Routing configuration tree generation method, routing method and device based on routing configuration tree and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6654369B1 (en) * 1999-05-28 2003-11-25 Intel Corporation Method for directing the route of a cell transmitting a network
CN100566281C (en) * 2007-11-02 2009-12-02 华为技术有限公司 The method and apparatus of virtual private network routing search

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013078644A1 (en) * 2011-11-30 2013-06-06 华为技术有限公司 Route prefix storage method and device and route address searching method and device
CN103404092A (en) * 2011-11-30 2013-11-20 华为技术有限公司 Route prefix storage method and device and route address searching method and device
CN103404092B (en) * 2011-11-30 2015-11-25 华为技术有限公司 Route prefix storage means, device and routing address lookup method, device
CN102821052B (en) * 2012-08-22 2015-06-03 迈普通信技术股份有限公司 Method and device for searching forwarding information in virtual special local area network service network
CN102821052A (en) * 2012-08-22 2012-12-12 迈普通信技术股份有限公司 Method and device for searching forwarding information in virtual special local area network service network
CN104767684A (en) * 2014-01-03 2015-07-08 腾讯科技(深圳)有限公司 Data transmission method and related device and communication system
CN105681119A (en) * 2014-11-19 2016-06-15 中兴通讯股份有限公司 Method and apparatus for detecting routing loop
CN105812258B (en) * 2014-12-31 2019-02-12 北京华为数字技术有限公司 A kind of data processing method and device
CN105812258A (en) * 2014-12-31 2016-07-27 北京华为数字技术有限公司 Method and device for data processing
CN108134739A (en) * 2016-12-01 2018-06-08 深圳市中兴微电子技术有限公司 A kind of method for searching route and device based on index trie
WO2020000409A1 (en) * 2018-06-29 2020-01-02 Intel Corporation Managing quality of storage service in virtual network
US11809890B2 (en) 2018-06-29 2023-11-07 Intel Corporation Managing quality of storage service in virtual network
CN109657022A (en) * 2018-12-08 2019-04-19 拉扎斯网络科技(上海)有限公司 Trade company's lookup method, device, electronic equipment and storage medium
CN112769699A (en) * 2019-11-05 2021-05-07 烽火通信科技股份有限公司 Method and controller for distributing and updating routing information in SD-WAN (secure digital-Wide area network)
WO2021088192A1 (en) * 2019-11-05 2021-05-14 烽火通信科技股份有限公司 Method for distributing and updating routing information in sd-wan network, and controller
CN111538864A (en) * 2020-03-25 2020-08-14 新华三技术有限公司合肥分公司 Method and device for reducing Buildrun consumption
CN111538864B (en) * 2020-03-25 2023-03-31 新华三技术有限公司合肥分公司 Method and device for reducing Buildrun consumption
CN115442301A (en) * 2022-09-09 2022-12-06 珍爱信息技术(海南)有限公司 Routing configuration tree generation method, routing method and device based on routing configuration tree and electronic equipment

Also Published As

Publication number Publication date
CN101459569B (en) 2011-08-10

Similar Documents

Publication Publication Date Title
CN101459569B (en) Method, apparatus for establishing route index tree and method, apparatus for searching route index tree
CN103259725B (en) Messaging method and network equipment
CN103259726A (en) Method, device and system for storing and sending MAC address table entries
CN102111318A (en) Method for distributing virtual local area network resource and switch
CN101150483A (en) Route table adjustment method, route query method and device and route table storage device
CN104115472A (en) A method for scalable routing in content-oriented networks
US7336645B2 (en) Bluetooth-IP access system
CN101764751A (en) Method, system and equipment for forwarding roaming messages for wireless user terminal travelling across VLAN
CN104219125A (en) Method, device and system for forwarding message in ICN
CN101778035B (en) Virtual private LAN service communication method and device
CN103326915A (en) Method, device and system for achieving three-layer VPN
CN102291472A (en) Network address lookup method and device
CN103201987A (en) Prioritization of routing information updates
CN111654443B (en) Method for directly accessing public network by virtual machine IPv6 address in cloud environment
CN103516612A (en) Method for generating routing table items in a distributed router, and distributed router
CN108322376B (en) Route synchronization method, device and machine-readable storage medium
CN114401274B (en) Communication line creation method, device, equipment and readable storage medium
CN113542099B (en) Data transmission method, device, electronic equipment, medium and product
CN101572647A (en) Method and device for searching data
CN102932255A (en) Method and device for selecting tunnel path
CN103139068B (en) The method E-Packeted, router and system
KR100480272B1 (en) A prefix aggregation method for routing coordination protocol in a loosely coupled massively parallel router
CN100596087C (en) FTN matching management method
US10813033B1 (en) Partitioned network routing
JP4375518B2 (en) Method and apparatus for establishing a routing table in a communication network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110810

Termination date: 20151212

EXPY Termination of patent right or utility model