Route association relationship updating method, route communication method and related device
By identifying problem nodes in the autonomous network and updating the next-hop block, the problem of routing prefix next-hop address update caused by link failure is solved, rapid response and efficient resource utilization are achieved during path update, and network performance is improved.
Patent Information
- Application Number
- CN202310464820.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-04-26
AI Technical Summary
In autonomous networks, link failures lead to changes in the shortest path of the topology, causing the next hop addresses of some routing prefixes to fail to reach the end of the path. Existing methods require re-decisions for all routing prefixes when the path is updated, which consumes a lot of computing resources and affects Network performance.
By comparing the shortest path of the node with the historical path during path update, the problem node is identified, and the next hop block is updated according to the prefix set associated with the problem node to avoid re-decision of all routing prefixes and directly update the forwarding address of the message.
Quickly update the forwarding address of packets when a link fails, saving computing resources, improving network performance, and reducing the load on the autonomous network.
Smart Images

Figure CN118869583A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method for updating a routing association relationship, a routing communication method and related devices. Background Art
[0002] As the scale of the network expands, the application of link state routing protocols increases. Link state routing protocols are used to control nodes (such as gateway devices, routers, etc.) in an autonomous network to announce their own link state information, and at the same time determine the topological shortest path with itself as the root through path algorithms such as Dijkstra based on the information fed back by other nodes.
[0003] At present, most protocols decide the next hop address corresponding to each routing prefix in the autonomous network based on the topological shortest path between nodes. After receiving the message, the node can match the routing prefix in the autonomous network according to the destination address of the message, and use the next hop address corresponding to the matching routing prefix as the forwarding address of the message for message forwarding.
[0004] When there is a path update in an autonomous network, the topological shortest path between nodes will change, which will cause the next-hop addresses corresponding to some routing prefixes to be unable to reach the end of the path. The common solution is to recalculate the topological shortest paths between nodes in the autonomous network when the path is updated, and re-determine the next-hop address corresponding to each routing prefix based on the calculation results. The next-hop address corresponding to the routing prefix is the forwarding address of the message matching the routing prefix. However, the larger the network, the more routing prefixes it has. This method of re-deciding on all routing prefixes when the path is updated will consume more computing resources and affect network performance. Summary of the invention
[0005] The embodiment of the present application provides a method for updating the association relationship of routing, a routing communication method and related devices, which are used to quickly update the forwarding address of a message when a link fails.
[0006] In a first aspect, an embodiment of the present application provides a method for updating a routing association relationship, which is applied to a first node in an autonomous network, and the method includes:
[0007] In response to the path update indication, determining the shortest path from the first node to each node in the autonomous network;
[0008] For any node in the autonomous network, the shortest path with the node as the path end point is compared with a historical path with the node as the path end point in the pre-stored historical paths; if the shortest path is different from the historical path, the node is a problem node; wherein each historical path represents the shortest path from the first node to the node at the path end point of the historical path;
[0009] If any of the nodes is a problem node, for each first prefix, a target next hop block associated with the first prefix is selected from the pre-stored next hop blocks; wherein the pre-stored next hop block is an index for determining a forwarding address of a message; any node in the autonomous network is associated with a prefix set for matching messages, and any prefix set is composed of at least one routing prefix in the autonomous network; the first prefix is a routing prefix in the prefix set associated with any node;
[0010] The next hop block associated with the first prefix is updated according to the target next hop block and the shortest path currently reaching the any node from the first node.
[0011] In some possible embodiments, at least one node is provided under each routing prefix in the autonomous network; and the association relationship between any node and the prefix set is determined in the following manner:
[0012] For any routing prefix, a first path with a second node as a path end point is selected from the historical paths; wherein the second node is a node under the routing prefix;
[0013] According to the cost value of each first path, a second path is selected from the first paths; and the routing prefix is associated with a node at the path end point of the second path; wherein the cost value of each historical path is determined according to the bandwidth of the node through which the path passes;
[0014] For any node in the autonomous network, a prefix set associated with the node is determined according to all routing prefixes associated with the node.
[0015] In some possible embodiments, the next hop block is determined in the following manner:
[0016] For any routing prefix, determine a third node associated with the prefix set to which the routing prefix belongs;
[0017] For any third node, selecting a third path with the third node as a path end point from the historical paths;
[0018] A union of the next hop addresses of each third path is determined, and a next hop block associated with the union is constructed.
[0019] In some possible embodiments, the association relationship between the next hop block and the routing prefix is determined in the following manner:
[0020] After determining the union of the next hop addresses of each third path, the routing prefix is associated with the next hop block associated with the union.
[0021] In some possible embodiments, before constructing the next hop block associated with the union, the method further includes:
[0022] It is determined that the union does not have an associated next hop block.
[0023] In some possible embodiments, updating the next hop block associated with the first prefix according to the target next hop block and the shortest path from the first node to the any node currently includes:
[0024] Selecting a comparison next hop block from pre-stored next hop blocks according to the shortest path; wherein the address of the comparison next hop block is the same as the next hop address of the shortest path;
[0025] Determine whether the target next hop block and the comparison next hop block are the same next hop block;
[0026] If they are not the same next hop block, the association relationship between the first prefix and the target next hop block is deleted, and the first prefix is associated with the comparison next hop block.
[0027] In some possible embodiments, the method further includes:
[0028] After determining that any one of the nodes is a problem node, a historical path from the first node to the any one of the problem nodes is updated according to the shortest path from the first node to the any one of the problem nodes.
[0029] In a second aspect, an embodiment of the present application further provides a routing communication method, which is applied to a first node in an autonomous network, and the method includes:
[0030] receiving a message to be processed, and selecting a third prefix matching a destination address of the message from the routing prefixes of the autonomous network;
[0031] The forwarding address of the message to be processed is determined according to the next hop block associated with the third prefix, and a forwarding operation is performed on the message to be processed; wherein any routing prefix in the autonomous network is associated with a next hop block, and each next hop block is an index for determining the forwarding address of the message.
[0032] In a third aspect, an embodiment of the present application further provides a device for updating a routing association relationship, the device comprising:
[0033] an indication unit, configured to determine, in response to the path update indication, the shortest path currently taken by the first node to reach each node in the autonomous network;
[0034] The node unit is configured to compare the shortest path with the node as the path end point with a historical path with the node as the path end point in the pre-stored historical paths for any node in the autonomous network; if the shortest path is different from the historical path, the node is a problem node; wherein each historical path represents the shortest path from the first node to the node at the path end point of the historical path;
[0035] A next hop block unit is configured to execute, if any of the nodes is a problem node, then for each first prefix, a target next hop block associated with the first prefix is selected from the pre-stored next hop blocks; wherein the pre-stored next hop block is an index for determining a forwarding address of a message; any node in the autonomous network is associated with a prefix set for matching messages, and any prefix set is composed of at least one routing prefix in the autonomous network; the first prefix is a routing prefix in the prefix set associated with any node;
[0036] An updating unit is configured to update the next hop block associated with the first prefix according to the target next hop block and the shortest path from the first node to the any node currently.
[0037] In some possible embodiments, at least one node is provided under each routing prefix in the autonomous network; the device further includes: an association unit configured to determine an association relationship between any node and a prefix set in the following manner:
[0038] For any routing prefix, a first path with a second node as a path end point is selected from the historical paths; wherein the second node is a node under the routing prefix;
[0039] According to the cost value of each first path, a second path is selected from the first paths; and the routing prefix is associated with a node at the path end point of the second path; wherein the cost value of each historical path is determined according to the bandwidth of the node through which the path passes;
[0040] For any node in the autonomous network, a prefix set associated with the node is determined according to all routing prefixes associated with the node.
[0041] In some possible embodiments, the next hop block is determined in the following manner:
[0042] For any routing prefix, determine a third node associated with the prefix set to which the routing prefix belongs;
[0043] For any third node, selecting a third path with the third node as a path end point from the historical paths;
[0044] A union of the next hop addresses of each third path is determined, and a next hop block associated with the union is constructed.
[0045] In some possible embodiments, the association relationship between the next hop block and the routing prefix is determined in the following manner:
[0046] After determining the union of the next hop addresses of each third path, the routing prefix is associated with the next hop block associated with the union.
[0047] In some possible embodiments, before executing the step of constructing the next hop block associated with the union, the associating unit is further configured to:
[0048] It is determined that the union does not have an associated next hop block.
[0049] In some possible embodiments, the updating of the next hop block associated with the first prefix is performed according to the target next hop block and the shortest path currently from the first node to the any node, and the updating unit is configured to:
[0050] Selecting a comparison next hop block from pre-stored next hop blocks according to the shortest path; wherein the address of the comparison next hop block is the same as the next hop address of the shortest path;
[0051] Determine whether the target next hop block and the comparison next hop block are the same next hop block;
[0052] If they are not the same next hop block, the association relationship between the first prefix and the target next hop block is deleted, and the first prefix is associated with the comparison next hop block.
[0053] In some possible embodiments, the updating unit is further configured to:
[0054] The historical path from the first node to any one of the nodes is updated according to the shortest path.
[0055] In a fourth aspect, an embodiment of the present application further provides a routing communication device, the device comprising:
[0056] A message receiving unit, configured to receive a message to be processed, and select a third prefix matching a destination address of the message from the routing prefixes of the autonomous network;
[0057] A message forwarding unit is configured to determine the forwarding address of the message to be processed according to the next hop block associated with the third prefix, and perform a forwarding operation on the message to be processed; wherein any routing prefix in the autonomous network is associated with a next hop block, and each next hop block is an index for determining the forwarding address of the message.
[0058] In a fifth aspect, an embodiment of the present application further provides a computer-readable storage medium. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any method provided in the first aspect or the second aspect of the present application.
[0059] In a sixth aspect, an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, implements any method provided in the first aspect or the second aspect of the present application.
[0060] In an embodiment of the present application, the shortest path from the first node to each node in the autonomous network is determined during path update, and the problem node is determined based on the comparison result between the shortest path of each node and the historical path. Finally, based on the routing prefix in the prefix set associated with the problem node, the target next hop block associated with the routing prefix is selected from the pre-stored next hop blocks. Then, the next hop block associated with the first prefix is updated based on the shortest path between the target next hop block and the problem node. The next hop block of the present application is an index that represents the forwarding address of the message. The update of the next hop block associated with the routing prefix is to update the forwarding address of the message. This process does not need to re-determine the next hop address of each routing prefix based on the shortest path of all nodes when the path is updated, which saves computing power and improves network performance.
[0061] In the embodiment of the present application, each next hop block is an index for determining the forwarding address of the message; the first prefix is a routing prefix in the prefix set associated with the problem node; the problem node is the node at the end of the path of the historical problem path. Through the above process, the forwarding address of the message can be quickly updated when a link fails, without the need to re-decide on all routing prefixes of the autonomous network, saving computing power and improving network performance.
[0062] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0064] Figure 1 A schematic diagram of a communication link between nodes in an autonomous network according to an embodiment of the present application;
[0065] Figure 2 A schematic diagram of the correspondence between nodes and routing prefixes shown in an embodiment of the present application;
[0066] Figure 3 A schematic diagram of the shortest path from node R6 to R1 shown in an embodiment of the present application;
[0067] Figure 4 A flowchart for constructing a routing prefix table according to an embodiment of the present application;
[0068] Figure 5 A schematic diagram of a historical path table shown in an embodiment of the present application;
[0069] Figure 6 A schematic diagram of a node table shown in an embodiment of the present application;
[0070] Figure 7 A schematic diagram showing how to determine a node associated with a routing prefix according to an embodiment of the present application;
[0071] Figure 8 Another schematic diagram of how to determine a node associated with a routing prefix according to an embodiment of the present application;
[0072] Fig. 9 A schematic diagram of an association table shown in an embodiment of the present application;
[0073] Fig.10 A schematic diagram of the construction process of the next hop block shown in an embodiment of the present application;
[0074] Fig.11 Another schematic diagram of the next hop block construction process shown in the embodiment of the present application;
[0075] Fig.12 A schematic diagram of a next hop block table shown in an embodiment of the present application;
[0076] Fig.13 A schematic diagram of determining a source node set and a preferred node set according to an embodiment of the present application;
[0077] Fig.14Another schematic diagram of determining a source node set and a preferred node set shown in an embodiment of the present application;
[0078] Fig.15 A schematic diagram of a routing prefix table shown in an embodiment of the present application;
[0079] Fig.16 An overall flow chart of a method for updating a routing association relationship shown in an embodiment of the present application;
[0080] Fig.17 A schematic diagram of updating a historical path shown in an embodiment of the present application;
[0081] Fig.18 A schematic diagram of updating the next hop block associated with the first prefix shown in an embodiment of the present application;
[0082] Fig.19 Another schematic diagram of the next hop block update associated with the first prefix shown in an embodiment of the present application;
[0083] Fig. 20 An overall flow chart of a routing communication method shown in an embodiment of the present application;
[0084] Fig.21 A structural diagram of a device for updating the association relationship of routes shown in an embodiment of the present application;
[0085] Fig. 22 A structural diagram of a routing communication device shown in an embodiment of the present application;
[0086] Fig.23 This is a schematic diagram of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0087] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " will mean or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0088] In the description of the embodiments of the present application, unless otherwise specified, the term "multiple" refers to two or more, and other quantifiers are similar and should be understood. The preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments of the present application and the features therein may be combined with each other if there is no conflict.
[0089] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method can be executed in the order of the method shown in the embodiment or drawings or in parallel during the actual processing process or when the control device is executed.
[0090] Compared with traditional distance vector routing protocols, link state routing protocols are more suitable for large networks. In an autonomous network that uses link state routing protocols, nodes no longer simply learn routes from adjacent nodes, but instead announce their own link state information, collect link state information from other nodes at the same time, and use the protocol to determine the next hop address of each routing prefix in the autonomous network. In this way, after receiving a message, the node can match the routing prefix in the autonomous network according to the destination address of the message, and use the next hop address corresponding to the matching routing prefix as the forwarding address of the message to forward the message.
[0091] The routing prefix in the autonomous network is determined based on the services that the autonomous network can provide, and each routing prefix in the autonomous network is assigned a specified number of nodes in the autonomous network. Figure 1 The autonomous network shown contains 6 nodes R1 to R6 in total. Then the nodes under each routing prefix in the autonomous network (that is, the corresponding relationship between each node and the routing prefix) can be as follows: Figure 2 shown.
[0092] This correspondence is used to determine the services that a node can provide, that is, each node under any routing prefix has the function of providing the service corresponding to the routing prefix. Figure 2 The node R1 shown in the figure has the function of providing services corresponding to eight routing prefixes, namely, 100.1.1.1 / 32 to 100.1.1.5 / 32, 110.12.1.0 / 24, 110.14.1.0 / 24, and 110.15.1.0 / 24.
[0093] When a link failure occurs in an autonomous network, the shortest path between nodes will change, which will cause the next hop address corresponding to some routing prefixes to be unable to reach the end of the path. Figure 1 Taking the autonomous network shown as an example, Figure 3 As shown in the figure, there are two shortest paths between nodes R6 and R1. Path 1 jumps from R6 to R4 and then to R1, and path 2 jumps from R6 to R5 and then to R1.
[0094] When there is a link failure between nodes, it means that direct jumps between nodes are not possible. Figure 3 If the link between nodes R1 and R4 shown in the figure fails, it is not possible to jump directly to R1 through R4. At this time, if the destination address of the request message received by node R6 points to node R1, it is no longer possible to reach node R1 through the above path 1. At this time, it is necessary to re-determine the forwarding address of the message, that is, the next hop of the message from node R6 to R1.
[0095] The current solution is to recalculate the topological shortest paths between nodes in the autonomous network when a link fails, and re-determine the next hop address corresponding to each routing prefix based on the calculation results. However, the larger the scale of the autonomous network, the more routing prefixes it has. This method of re-deciding all routing prefixes in the network when a link fails will consume more computing resources and affect network performance.
[0096] To solve the above problems, the invention of the present application is as follows: when updating the path, the shortest path from the first node to each node in the autonomous network is determined, and the problem node is determined based on the comparison result between the shortest path of each node and the historical path. Finally, based on the routing prefix in the prefix set associated with the problem node, a target next hop block associated with the routing prefix is selected from the pre-stored next hop blocks. Then, the next hop block associated with the first prefix is updated based on the shortest path between the target next hop block and the problem node.
[0097] The next hop block of this application is an index that represents the forwarding address of the message. The update of the next hop block associated with the routing prefix is to update the forwarding address of the message. This process does not need to re-determine the next hop address of each routing prefix based on the shortest path of all nodes when the path is updated, saving computing power and improving network performance. Next, how to construct the routing prefix table of each node in the embodiment of this application is explained, specifically as follows Figure 4 As shown:
[0098] Step 401: determine the shortest path from the first node to each node in the autonomous network, and use the shortest path as a historical path;
[0099] The technical solution of the embodiment of the present application is applied to any node in the autonomous network, which is referred to as the first node in the following. All nodes mentioned in the subsequent steps are nodes in the autonomous network where the first node is located.
[0100] The first node is the node that currently needs to determine its own routing prefix table. To facilitate the introduction of the technical solution of this application, the following examples are all based on the aforementioned Figure 1 and Figure 2The node R6 in the autonomous network is taken as the first node for illustration, and it is specifically explained how the first node R6 determines the routing prefix table of R6 according to the link information of the remaining nodes R1 to R5 in the autonomous network.
[0101] With the aforementioned Figure 1 Taking the autonomous network shown in the figure as an example, during implementation, a path algorithm such as Dijkstra can be used to determine the reachable path from the first node to the remaining nodes. Figure 1 As shown, there are two shortest paths between nodes R6 and R1. Path 1 jumps from R6 to R4 and then to R1, and path 2 jumps from R6 to R5 and then to R1.
[0102] In addition, the cost of each path can be calculated based on the bandwidth of each node along the path. The cost represents the resources required to forward the message from R6 to R1. In this way, the path with the smallest cost value can be selected from each path as the shortest path between R6 and R1. In this way, the topological shortest path between each node in the autonomous network can be determined.
[0103] To facilitate explanation of the technical solution of the embodiment of the present application, it is assumed in the subsequent examples that the bandwidth of each node is the same, that is, the overhead value required for each node passed is 1.
[0104] Still with the above Figure 1 Taking the autonomous network shown in the figure as an example, the two paths from node R6 to R1 both need to pass through R4 or R5 to reach R1. That is, the number of jumps for these two paths is two. When the bandwidth of each node is the same, since the cost value required for each node passed is 1, the cost value of these two paths is 2. At this time, these two paths are regarded as the shortest path between R6 and R1.
[0105] After the shortest paths from the first node to the remaining nodes in the autonomous network are determined through the above process, each shortest path can be stored as a historical path in the above Figure 5 The historical path table shown in FIG. Each historical path stored in the historical path table represents the shortest path from the first node R6 to the remaining nodes R1 to R5.
[0106] Next, a node table is constructed based on the next hop address of each historical path. The node table shows the next hop address of the historical path from the first node to other nodes in the autonomous network, as well as the cost value of the path. Figure 6 As shown, Figure 6Taking the first row of data in the node table as an example, the row of data indicates the next hop address of each historical path from the first node R6 to the node R1 (ie, the address of the node R4<Gi0 / 0,110.46.1.4> and the address of node R5<Gi0 / 0,110.56.1.5> ), and the cost value of each historical path.
[0107] It should be noted that the next hop address of the historical path is the next hop address when the current node reaches the grid device at the end of the historical path. Figure 5 Taking the historical path "R6→R5→R1" as an example, the next hop address of the historical path is the address of the node R5.
[0108] Step 402: for any routing prefix, selecting a first path with a second node as the path end point from the historical paths; wherein the second node is a node under the routing prefix;
[0109] Still with the above Figure 1 Taking the autonomous network shown as an example, the nodes under each routing prefix in the autonomous network are as mentioned above. Figure 2 For each routing prefix in the autonomous network, Figure 2 The node under the routing prefix is determined in the corresponding relationship table between the node and the routing prefix shown in FIG. 40, that is, the second node in step 402; then, from the aforementioned Figure 5 In the historical path table shown, a first path in which a node at the end point of the path is selected as the second node.
[0110] Step 403: selecting a second path from the first paths according to the cost value of each first path; and associating the routing prefix with a node at the path end of the second path; wherein the cost value of each historical path is determined according to the bandwidth of the node through which the path passes;
[0111] The cost value has been introduced above, which represents the resources required by the first node to reach the node at the end of the path. It is determined according to the bandwidth of the nodes through which the path passes. Step 403 is explained by taking the routing prefix 100.1.1.1 / 32 as an example. Figure 7 As shown, from the aforementioned Figure 2 From the corresponding table shown, it can be seen that there is only node R1 under the routing prefix 100.1.1.1 / 32. Figure 5 It can be seen from the historical path table shown that R1 is the node at the end point of the historical paths "R6→R4→R1" and "R6→R5→R1".
[0112] That is, the historical paths "R6→R4→R1" and "R6→R5→R1" are the first paths selected from the historical path table. Figure 6 From the query of the node table shown, it can be seen that the cost values of the historical paths with R1 as the path end point are all 2, so "R6→R4→R1" and "R6→R5→R1" are selected as the second path with the smallest cost value from the first path. Finally, the node R1 at the path end point of the second path "R6→R4→R1" and "R6→R5→R1" is associated with the routing prefix 100.1.1.1 / 32.
[0113] Take the routing prefix 110.14.1.0 / 24 as an example. Figure 8 As shown, from the aforementioned Figure 2 It can be seen from the corresponding relationship table that the nodes under the routing prefix 110.14.1.0 / 24 are R1 and R4. Figure 5 From the historical path table shown, it can be seen that R1 is the node at the end point of the historical paths "R6→R4→R1" and "R6→R5→R1", and R4 is the node at the end point of the historical path "R6→R4".
[0114] That is, the historical paths "R6→R4→R1", "R6→R5→R1" and "R6→R4" are all the first paths selected from the historical path table. Figure 6 From the node table shown, it can be seen that the number of jumps of the historical paths with R1 as the path end point is 2, while the number of jumps of the historical paths with R4 as the path end point is only 1. Therefore, the cost value of the historical paths with R1 as the path end point is 2, while the cost value of the historical paths with R4 as the path end point is 1. Next, the "R6→R4" with the smallest cost value is selected from each first path as the second path in step 403. Finally, the node R4 located at the end point of the second path "R6→R4" is associated with the routing prefix 110.14.1.0 / 24.
[0115] Step 404: for any node in the autonomous network, determine a prefix set associated with the node according to all routing prefixes associated with the node;
[0116] By traversing each routing prefix in the autonomous network through the above steps 402 to 404, the association relationship between each node and the routing prefix can be finally obtained.
[0117] Next, for each node in the autonomous network, all routing prefixes associated with the node are used as the prefix set of the node. Fig. 9The association table representing the association relationship between nodes and prefix sets is shown. For example, if node R1 is associated with 6 routing prefixes, 100.1.1.1 / 32 to 100.1.1.5 / 32 and 110.12.1.0 / 24, then the routing prefix set associated with R1 is {100.1.1.1 / 32 to 100.1.1.5 / 32, 110.12.1.0 / 24}.
[0118] Step 405: Determine the next hop block in the autonomous network according to the prefix set associated with each node, and construct a routing prefix table based on the next hop block;
[0119] First, the next hop block in the embodiment of the present application is explained. The next hop block in the embodiment of the present application is constructed based on the historical path from the first node to the remaining nodes in the autonomous network, and each next hop block is provided with an address determined according to the historical path, and the address of the next hop block is used to indicate the forwarding address of the message.
[0120] During implementation, for any routing prefix in the autonomous network, determine the third node associated with the prefix set to which the routing prefix belongs. And for any third node, Figure 5 The third path with the third node as the path end point is selected in the historical path table shown. Next, the union of the next hop addresses of each third path is determined, and a next hop block associated with the union is constructed.
[0121] With the aforementioned Figure 1 The routing prefix 100.1.1.1 / 32 in the autonomous network shown is used as an example. Fig.10 As shown, through the aforementioned Fig. 9 From the association table of nodes and prefix sets shown, it can be seen that the node associated with the prefix set to which the routing prefix 100.1.1.1 / 32 belongs is R1, and the node R1 is the third node of the routing prefix 100.1.1.1 / 32.
[0122] Continue as Fig.10 As shown, through the aforementioned Figure 4 From the node table shown, it can be seen that the next hop addresses of the third path with node R1 as the path end point include<Gi0 / 0,110.46.1.4> and<Gi0 / 0,110.56.1.5> At this time, the next hop block Nhb_1 is constructed, and the union of the next hop block Nhb_1 and each next hop address is {<Gi0 / 0,110.46.1.4> ,<Gi0 / 0,110.56.1.5>}associated.
[0123] It should be noted that before constructing the next hop block, it is necessary to determine in advance that the union does not have an associated next hop block. Fig.11 As shown in the figure, when processing the routing prefix 100.2.1.1 / 32, the Fig. 9 From the association table of nodes and prefix sets shown, we can see that the node associated with the prefix set of routing prefix 100.2.1.1 / 32 is R2, and the third paths corresponding to node R2 in the historical path table are "R6→R4→R2" and "R6→R5→R2". Then the next hop address of each third path with R2 as the path end point is also<Gi0 / 0,110.46.1.4> and<Gi0 / 0,110.56.1.5> . Since the union {<Gi0 / 0,110.46.1.4> ,<Gi0 / 0,110.56.1.5>}The next hop block Nhb_1 has been associated, so the processing of R2 is ended and the above process is repeated for the remaining nodes.
[0124] By traversing each routing prefix in the autonomous network through the above process, we can get the following Fig.12 The next hop block table shown. The next hop block table records all the next hop blocks in the autonomous network, each next hop block is an index for determining the forwarding address of the message, and is used to quickly locate the next hop block that matches the destination address of the message when forwarding the message, and then use the address of the next hop block as the forwarding address of the message.
[0125] Each next hop block in the embodiment of the present application is associated with a routing prefix in the autonomous network. Next, the association between the routing prefix and the next hop block in the embodiment of the present application is described:
[0126] During implementation, after determining the union of the next hop addresses of each third path, the routing prefix is associated with the next hop block associated with the union. Fig.10 The construction process of the next hop block Nhb_1 shown in FIG. 1 is used as an example to illustrate that after the next hop block Nhb_1 is constructed, the union of the next hop block Nhb_1 and each next hop address is formed.<Gi0 / 0,110.46.1.4> ,<Gi0 / 0,110.56.1.5> Then the routing prefix 100.1.1.1 / 32 is associated with the next hop block Nhb_1. In this way, in the process of traversing each routing prefix in the autonomous network to build the next hop block, the routing prefix associated with each next hop block can be determined.
[0127] After the above process is performed on each routing prefix in the autonomous network, the source node set and the preferred node set of the routing prefix can be determined according to each routing prefix and the next hop block associated with the routing prefix. The source node set is the set consisting of all nodes under the routing prefix, and the preferred node set is the set consisting of the third node associated with the prefix set where the routing prefix is located.
[0128] Take the routing prefix 100.1.1.1 / 32 as an example. Fig.13As shown. Figure 2 From the corresponding table of nodes and routing prefixes shown, it can be seen that the routing prefix 100.1.1.1 / 32 only includes node R1. Fig. 9 It can be seen from the shown association table that the node associated with the prefix set of the routing prefix 100.1.1.1 / 32 is also R1, so the source node set of the routing prefix 100.1.1.1 / 32 is {R1} and the preferred node set is also {R1}.
[0129] Another example Fig.14 As shown, taking the routing prefix 110.14.1.0 / 24 in the corresponding relationship table as an example, the nodes under the routing prefix 110.14.1.0 / 24 are R1 and R4. Then the source node set of the routing prefix 100.1.1.1 / 32 is {R1, R4}. Fig. 9 It can be seen from the association table that the node associated with the prefix set of the routing prefix 110.14.1.0 / 24 is only R4, so the preferred node set of the routing prefix 110.14.1.0 / 24 is {R4}.
[0130] In addition, through the above-mentioned next-hop block construction process, it can be known that the address of the next-hop block is actually the union of the next-hop addresses of the historical paths with the smallest cost value in each node under the routing prefix. Therefore, routing prefixes with the same preferred node set must be associated with the same next-hop block. Based on this, each routing prefix is grouped according to the source node set and the preferred node set to construct Fig.15 The routing prefix table is shown.
[0131] Next, a method for updating the association relationship of a route provided in an embodiment of the present application is described. Fig.16 As shown, the following steps are included:
[0132] Step 161: In response to the path update indication, determine the shortest path from the first node to each node in the autonomous network;
[0133] As mentioned above, there are communication paths between nodes in an autonomous network. When a path is reset or fails in the autonomous network, the communication paths that were originally accessible between nodes will be interrupted.
[0134] With the aforementioned Figure 1 For example, "R6→R4→R1" is a reachable communication path between nodes R6 and R1. Assume that the communication paths of each node in the autonomous network are reset. Figure 1When the direct communication path "R4→R1" between R4 and R1 is no longer applicable, or there is a fault in the communication path "R4→R1", it means that R6 cannot communicate with R1 by jumping to R4. At this time, the autonomous network will notify all nodes in the network of the path update indication. After receiving the indication, the first node calculates the shortest path from the first node to each node in the autonomous network through the Dijkstra path algorithm mentioned above.
[0135] Step 162: for any node in the autonomous network, compare the shortest path with the node as the path end point with a historical path with the node as the path end point in the pre-stored historical paths; if the shortest path is different from the historical path, the node is a problem node; wherein the pre-stored historical path is the shortest path from the first node to each node in the autonomous network before responding to the path update indication;
[0136] During implementation, the shortest path from the first gateway to each gateway in the autonomous network is calculated, and the obtained shortest path is compared with the aforementioned Figure 5 The historical paths in the historical path table shown are compared.
[0137] For any node, if the shortest path with the node as the end point is different from the historical path with the node as the end point, the node will be regarded as a problem node. Figure 1 As shown, the historical paths from node R6 to R1 are "R6→R4→R1" and "R6→R5→R1".
[0138] Assume that the direct communication path "R4→R1" between nodes R1 and R4 is interrupted due to path update. At this time, the shortest path from R6 to R1 is currently only "R6→R5→R1". Since the shortest path from R6 to R1 is different from the historical path, the shortest path "R6→R5→R1" is the shortest path, and the node R1 at the end of the shortest path is the problem node.
[0139] Step 163: If any of the nodes is a problem node, for each first prefix, a target next hop block associated with the first prefix is selected from the pre-stored next hop blocks; wherein the pre-stored next hop block is an index for determining a forwarding address of a message; any node in the autonomous network is associated with a prefix set for matching messages, and any prefix set is composed of at least one routing prefix in the autonomous network; the first prefix is a routing prefix in the prefix set associated with any node;
[0140] After any node is determined to be a problem node through the aforementioned step 162, Fig. 9The prefix set associated with the problem node is selected from the association table shown in FIG. 1 , and each routing prefix in the prefix set is the first prefix in step 163. Then, from the aforementioned Fig.15 The next hop block associated with the first prefix is determined in the routing prefix table, and the next hop block is the target next hop block.
[0141] Step 164: Update the next hop block associated with the first prefix according to the target next hop block and the shortest path from the first node to the any node currently.
[0142] During implementation, the shortest path from the first node to any of the problem nodes is pre-determined, and the historical path from the first node to the problem node is updated based on the shortest path. It is understandable that the updating step can also be performed after step 162, that is, after the shortest path from the first node to the problem node is compared with the historical path in the pre-stored historical path with the problem node as the path end point, the historical path is updated to the shortest path from the first node to the problem node.
[0143] The historical problem path mentioned above is still "R6→R4→R1", and the problem node of the historical problem path is R1. The current shortest path from the first node R6 to the problem node R1 is calculated as "R6→R5→R1". The historical path from the first node to the problem node is updated according to the shortest path. Fig.17 As shown, the above Figure 5 The historical path "R6→R4→R1" corresponding to R1 in the shortest path table shown is deleted, and the aforementioned Figure 6 The next hop address corresponding to R1 in the node table is shown as "<Gi0 / 0,110.46.1.4> ,<Gi0 / 1,110.56.1.5> " represents the R4 address"<Gi0 / 0,110.46.1.4> "Delete. This completes the update of the historical path.
[0144] Next, a comparison next hop block is selected from the pre-stored next hop blocks according to the shortest path; wherein the address of the comparison next hop block is the same as the next hop address of the shortest path.
[0145] If the target next hop block and the comparison next hop block are not the same next hop block, the association relationship between the first prefix and the target next hop block is deleted, and the first prefix is associated with the comparison next hop block.
[0146] Specifically, from the above Fig. 9The association table shown determines the prefix set {100.1.1 / 32 to 100.1.5 / 32, 110.12.1.0 / 24} associated with the problem node R1, and each routing prefix in the prefix set is the first prefix. Since the prefixes 100.1.1 / 32 to 100.1.5 / 32 are only associated with R1 in the association table, and the prefix 110.12.1.0 / 24 is associated with R1 and R2 respectively, the following will take these two routing prefixes as examples for explanation.
[0147] First, Fig.18 As shown in the figure, for any prefix in the routing prefixes 100.1.1 / 32 to 100.1.5 / 32, since these routing prefixes are only associated with R1, the updated next hop address of R1 is found from the node table.<Gi0 / 1,110.56.1.5> . In addition, the next hop address is queried from the next hop block table.<Gi0 / 1,110.56.1.5> The next hop block Nhb_2 of the address. Fig.15 From the routing prefix table shown, it can be seen that the next hop block currently associated with any prefix in 100.1.1 / 32 to 100.1.5 / 32 is Nhb_1. Since Nhb_1 and Nhb_2 are not the same next hop blocks, the next hop block associated with 100.1.1 / 32 to 100.1.5 / 32 in the routing prefix table is replaced from Nhb_1 to Nhb_2.
[0148] Another example Fig.19 As shown in FIG. 1 , for the routing prefix 110.12.1.0 / 24, the routing prefix is associated with both R1 and R2. Then, the union of the next hop addresses of R1 and R2 found in the node table is {<Gi0 / 1,110.46.1.4> ,<Gi0 / 1,110.56.1.5>}. In addition, the union of the next hop address is queried from the next hop block table {<Gi0 / 1,110.46.1.4> ,<Gi0 / 1,110.56.1.5>} is the next hop block Nhb_1 of the address. Fig.15 The routing prefix table shows that the next hop block currently associated with the routing prefix 110.12.1.0 / 24 is Nhb_1. Since the next hop block has not changed, the processing of the routing prefix is stopped, which indicates that the link failure has no impact on the routing prefix.
[0149] Next, in conjunction with a routing communication method provided by the present application, how to determine the forwarding address of the message through the next hop block of the present application is described. Fig. 20 As shown, including:
[0150] Step 2001: receiving a message to be processed, and selecting a third prefix matching a destination address of the message from the routing prefixes of the autonomous network;
[0151] Step 2002: Determine the forwarding address of the message to be processed according to the next hop block associated with the third prefix, and perform a forwarding operation on the message to be processed; wherein any routing prefix in the autonomous network is associated with a next hop block, and each next hop block is an index for determining the forwarding address of the message.
[0152] During implementation, when the first node receives the message to be processed, it compares the destination address of the message to be processed with the aforementioned Fig.15 The routing prefix table shown is matched, and a third prefix containing the destination address is selected from each routing prefix. Then the next hop block associated with the third prefix in the routing prefix table is determined. And the address of the next hop block is determined according to the next hop block table. Assume that the address of the next hop block is multiple (such as<Gi0 / 1,110.46.1.4> ,<Gi0 / 1,110.56.1.5> ), a reasonable strategy can be set, such as using a hash algorithm to select a unique address from multiple addresses, and using the address as the forwarding address for the message to be processed, and then forwarding the message to be processed.
[0153] Through the technical solution of this application, when a link fails, the routing prefix affected by the problem path can be quickly located based on the problem path of the fault, and the forwarding address of the message can be updated by updating the next hop block associated with the routing prefix. The entire process does not require re-decision of all routing prefixes of the autonomous network, saving computing power and improving network performance.
[0154] Based on the same inventive concept, the embodiment of the present application provides a routing association updating device 210, specifically as follows Fig.21 As shown, the device comprises:
[0155] The indication unit 211 is configured to determine the shortest path currently reached by the first node to each node in the autonomous network in response to the path update indication;
[0156] The node unit 212 is configured to compare the shortest path with the node as the path end point with the historical path with the node as the path end point in the pre-stored historical paths for any node in the autonomous network; if the shortest path is different from the historical path, the node is a problem node; wherein each historical path represents the shortest path from the first node to the node at the path end point of the historical path;
[0157] The next hop block unit 213 is configured to execute if any of the nodes is a problem node, then for each first prefix, a target next hop block associated with the first prefix is selected from the pre-stored next hop blocks; wherein the pre-stored next hop block is an index for determining a forwarding address of a message; any node in the autonomous network is associated with a prefix set for matching messages, and any prefix set is composed of at least one routing prefix in the autonomous network; the first prefix is a routing prefix in the prefix set associated with any node;
[0158] The updating unit 214 is configured to update the next hop block associated with the first prefix according to the target next hop block and the shortest path from the first node to the any node currently.
[0159] In some possible embodiments, at least one node is provided under each routing prefix in the autonomous network; the device further includes: an association unit configured to determine an association relationship between any node and a prefix set in the following manner:
[0160] For any routing prefix, a first path with a second node as a path end point is selected from the historical paths; wherein the second node is a node under the routing prefix;
[0161] According to the cost value of each first path, a second path is selected from the first paths; and the routing prefix is associated with a node at the path end point of the second path; wherein the cost value of each historical path is determined according to the bandwidth of the node through which the path passes;
[0162] For any node in the autonomous network, a prefix set associated with the node is determined according to all routing prefixes associated with the node.
[0163] In some possible embodiments, the next hop block is determined in the following manner:
[0164] For any routing prefix, determine a third node associated with the prefix set to which the routing prefix belongs;
[0165] For any third node, selecting a third path with the third node as a path end point from the historical paths;
[0166] A union of the next hop addresses of each third path is determined, and a next hop block associated with the union is constructed.
[0167] In some possible embodiments, the association relationship between the next hop block and the routing prefix is determined in the following manner:
[0168] After determining the union of the next hop addresses of each third path, the routing prefix is associated with the next hop block associated with the union.
[0169] In some possible embodiments, before executing the step of constructing the next hop block associated with the union, the associating unit is further configured to:
[0170] It is determined that the union does not have an associated next hop block.
[0171] In some possible embodiments, the updating of the next hop block associated with the first prefix is performed according to the target next hop block and the shortest path currently from the first node to the any node, and the updating unit is configured to:
[0172] Selecting a comparison next hop block from pre-stored next hop blocks according to the shortest path; wherein the address of the comparison next hop block is the same as the next hop address of the shortest path;
[0173] Determine whether the target next hop block and the comparison next hop block are the same next hop block;
[0174] If they are not the same next hop block, the association relationship between the first prefix and the target next hop block is deleted, and the first prefix is associated with the comparison next hop block.
[0175] In some possible embodiments, the updating unit is further configured to:
[0176] The historical path from the first node to any one of the nodes is updated according to the shortest path.
[0177] Based on the same inventive concept, the present application embodiment provides a routing communication device 220, specifically as follows Fig. 22 As shown, the device comprises:
[0178] The message receiving unit 221 is configured to receive a message to be processed and select a third prefix matching the destination address of the message from the routing prefixes of the autonomous network;
[0179] The message forwarding unit 222 is configured to determine the forwarding address of the message to be processed according to the next hop block associated with the third prefix, and perform a forwarding operation on the message to be processed; wherein, any routing prefix in the autonomous network is associated with a next hop block, and each next hop block is an index for determining the forwarding address of the message.
[0180] Refer to the following Fig.23 To describe the electronic device 130 provided according to the technical solution of the embodiment of the present application. It should be noted that: Fig.23 The electronic device 130 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0181] Specific as Fig.23 As shown, the electronic device 130 is in the form of a general electronic device. The components of the electronic device 130 may include but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting different system components (including the memory 132 and the processor 131).
[0182] Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0183] The memory 132 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .
[0184] The memory 132 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0185] The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 130, and / or communicate with any device that enables the electronic device 130 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 135. Furthermore, the electronic device 130 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 136. As shown, the network adapter 136 communicates with other modules for the electronic device 130 via a bus 133. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 130, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0186] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 132 including instructions, and the instructions can be executed by the processor 131 of the above device to complete the above method. Alternatively, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0187] In an exemplary embodiment, a computer program product is also provided, including a computer program / instruction, which, when executed by the processor 131, implements any one of a method for updating a routing association relationship and a method for routing communication provided in the present application.
[0188] In an exemplary embodiment, various aspects of a method for updating a routing association relationship and a routing communication method provided by the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of a method for updating a routing association relationship or a routing communication method according to various exemplary embodiments of the present application described above in this specification.
[0189] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0190] The program product for updating the association relationship of routing and routing communication of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on an electronic device. However, the program product of the present application is not limited to this. In this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, an apparatus or a device or used in combination with it.
[0191] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0192] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0193] The program code for performing the operation of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as language or similar programming languages. The program code can be executed entirely on the user electronic device, partially on the user device, as an independent software package, partially on the user electronic device and partially on the remote electronic device, or completely on the remote electronic device or server. In the case of a remote electronic device, the remote electronic device can be connected to the user electronic device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external electronic device (for example, using an Internet service provider to connect through the Internet).
[0194] It should be noted that, although several units or subunits of the device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided into multiple units to be embodied.
[0195] In addition, although the operations of the method of the present application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0196] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0197] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable image scaling device to produce a machine, so that the instructions executed by the processor of the computer or other programmable image scaling device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0198] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable image scaling device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, the instruction device being implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0199] These computer program instructions may also be loaded onto a computer or other programmable image scaling device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0200] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0201] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for updating a routing association relationship, characterized in that: Applied to a first node in an autonomous network, the method comprises: In response to the path update indication, determining the shortest path from the first node to each node in the autonomous network; For any node in the autonomous network, the shortest path with the node as the path end point is compared with a historical path with the node as the path end point in the pre-stored historical paths; if the shortest path is different from the historical path, the node is a problem node; wherein the pre-stored historical path is the shortest path from the first node to each node in the autonomous network before responding to the path update indication; If any of the nodes is a problem node, for each first prefix, a target next hop block associated with the first prefix is selected from the pre-stored next hop blocks; wherein the pre-stored next hop block is an index for determining a forwarding address of a message; any node in the autonomous network is associated with a prefix set for matching messages, and any prefix set is composed of at least one routing prefix in the autonomous network; the first prefix is a routing prefix in the prefix set associated with any node; The next hop block associated with the first prefix is updated according to the target next hop block and the shortest path currently reaching the any node from the first node.
2. The method according to claim 1, characterized in that At least one node is provided under each routing prefix in the autonomous network; the association relationship between any node and the prefix set is determined in the following manner: For any routing prefix, a first path with a second node as a path end point is selected from the historical paths; wherein the second node is a node under the routing prefix; According to the cost value of each first path, a second path is selected from the first paths; and the routing prefix is associated with a node at the path end point of the second path; wherein the cost value of each historical path is determined according to the bandwidth of the node through which the path passes; For any node in the autonomous network, a prefix set associated with the node is determined according to all routing prefixes associated with the node.
3. The method according to claim 2, characterized in that The next hop block is determined in the following manner: For any routing prefix, determine a third node associated with the prefix set to which the routing prefix belongs; For any third node, selecting a third path with the third node as a path end point from the historical paths; A union of the next hop addresses of each third path is determined, and a next hop block associated with the union is constructed.
4. The method according to claim 3, characterized in that: The association relationship between the next hop block and the routing prefix is determined in the following manner: After determining the union of the next hop addresses of each third path, the routing prefix is associated with the next hop block associated with the union.
5. The method according to claim 3 or 4, characterized in that: Before constructing the next hop block associated with the union, the method further includes: It is determined that the union does not have an associated next hop block.
6. The method according to claim 5, characterized in that The updating of the next hop block associated with the first prefix according to the target next hop block and the shortest path from the first node to the any node currently includes: Selecting a comparison next hop block from pre-stored next hop blocks according to the shortest path; wherein the address of the comparison next hop block is the same as the next hop address of the shortest path; Determine whether the target next hop block and the comparison next hop block are the same next hop block; If they are not the same next hop block, the association relationship between the first prefix and the target next hop block is deleted, and the first prefix is associated with the comparison next hop block.
7. The method according to claim 1, characterized in that The method further comprises: After determining that any one of the nodes is a problem node, a historical path from the first node to the any one of the problem nodes is updated according to the shortest path from the first node to the any one of the problem nodes.
8. A routing communication method, characterized in that: Applied to a first node in an autonomous network, the method comprises: receiving a message to be processed, and selecting a third prefix matching a destination address of the message from the routing prefixes of the autonomous network; The forwarding address of the message to be processed is determined according to the next hop block associated with the third prefix, and a forwarding operation is performed on the message to be processed; wherein any routing prefix in the autonomous network is associated with a next hop block, and each next hop block is an index for determining the forwarding address of the message.
9. A device for updating the association relationship of routes, characterized in that: The device comprises: an indication unit, configured to determine, in response to the path update indication, the shortest path currently taken by the first node to reach each node in the autonomous network; The node unit is configured to compare the shortest path with the node as the path end point with the historical path with the node as the path end point in the pre-stored historical paths for any node in the autonomous network; if the shortest path is different from the historical path, the node is a problem node; wherein each historical path represents the shortest path from the first node to the node at the path end point of the historical path, A next hop block unit is configured to execute, if any of the nodes is a problem node, then for each first prefix, a target next hop block associated with the first prefix is selected from the pre-stored next hop blocks; wherein the pre-stored next hop block is an index for determining a forwarding address of a message; any node in the autonomous network is associated with a prefix set for matching messages, and any prefix set is composed of at least one routing prefix in the autonomous network; the first prefix is a routing prefix in the prefix set associated with any node; An updating unit is configured to update the next hop block associated with the first prefix according to the target next hop block and the shortest path from the first node to the any node currently.
10. A routing communication device, characterized in that: The device comprises: A message receiving unit, configured to receive a message to be processed, and select a third prefix matching a destination address of the message from the routing prefixes of the autonomous network; A message forwarding unit is configured to determine the forwarding address of the message to be processed according to the next hop block associated with the third prefix, and perform a forwarding operation on the message to be processed; wherein any routing prefix in the autonomous network is associated with a next hop block, and each next hop block is an index for determining the forwarding address of the message.
11. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the steps included in the method of any one of claims 1-7 or 8 according to the obtained program instructions.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 7 or 8.
Citation Information
Patent Citations
Routing computing method and network node based on link condition routing protocol
CN101272393A
Data message forwarding method and device based on two-dimensional routing policy
CN105763454A
Packet forwarding method and device
US20190166045A1
Route publishing method and apparatus, packet forwarding method and apparatus, device, and storage medium
WO2023274083A1
