Information processing method and device

By determining the positional relationship between the network node and the destination node and calculating the next hop corresponding to the redundant tree, the problem of excessive computing resource usage caused by frequent network topology changes is solved and the performance of the network node is improved.

CN118540267APending Publication Date: 2024-08-23HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310201059.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When network topology changes frequently, network nodes need to frequently recalculate the maximum separation tree, resulting in excessive use of computing resources and affecting performance.

Method used

By determining the position relationship between the network node and the destination node, the next hop corresponding to the redundant tree is calculated, avoiding frequent recalculation of the maximum separation tree, and only updating the next hop when the position relationship changes.

Benefits of technology

It reduces the computing resource occupation of network nodes, improves the performance of network nodes, and avoids the performance impact caused by frequent calculations due to changes in network topology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540267A
    Figure CN118540267A
Patent Text Reader

Abstract

The embodiment of the invention discloses an information processing method which can be applied to a first node. The method comprises the steps that the position relation between a first node and a destination node is determined, M next hops from the first node to the destination node are obtained according to the position relation and route generation information, the M next hops comprise the next hops corresponding to all redundancy trees in M redundancy trees, and one redundancy tree corresponds to one next hop. The route generation information comprises interface information of the destination node receiving the data when the second node forwards the data to the destination node based on each redundancy tree in the M redundancy trees. Therefore, according to the scheme of the embodiment of the invention, the first node can determine the M next hops from the first node to the destination node according to the position relationship between the first node and the destination node. By means of the scheme, the first node can be prevented from frequently recalculating the maximum separation tree, occupation of computing resources of the first node is reduced, and therefore the performance of the first node is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to an information processing method and device. Background Art

[0002] In order to ensure the quality of service provided for the business, the network node can generate two maximum separation trees based on the maximally redundant trees (MRT) technology, and each separation tree can be used to determine the next hop from the network node to other network nodes in the network. For this situation, in one example, for each destination node, the network node can obtain three next hops to reach the destination node, which are the primary next hop and two backup next hops obtained based on the above two maximum separation trees. These three next hops can be in a load balancing relationship or a primary and backup relationship.

[0003] However, in this way, when the network topology changes, the network nodes need to recalculate the maximum separation tree according to the changed network topology, which consumes more computing resources of the network nodes. Especially when the network topology changes frequently, frequent recalculation of the maximum separation tree will occupy a large amount of computing resources of the network nodes, thereby affecting the performance of the network nodes.

[0004] Therefore, a solution is urgently needed to solve the above problems. Summary of the invention

[0005] The embodiments of the present application provide an information processing method and device, which can avoid the network node from frequently recalculating the maximum separation tree, reduce the occupation of computing resources of the network node, and thus improve the performance of the network node.

[0006] In the first aspect, the embodiment of the present application provides an information processing method, which can be applied to a first node. In an example, the first node can determine the positional relationship between the first node and the destination node. After determining the positional relationship, the first node can obtain M next hops for reaching the destination node according to the positional relationship and the route generation information, and the M next hops include the next hops corresponding to each redundant tree in the M redundant trees, and one redundant tree corresponds to one next hop. The route generation information includes: when the second node forwards data to the destination node based on each redundant tree in the M redundant trees, the interface information of the destination node receiving the data. It can be seen that, using the scheme of the embodiment of the present application, the first node can determine the M next hops for reaching the destination node according to the positional relationship between the first node and the destination node. In this way, even if the network topology of the network to which the first node belongs changes, the first node does not need to recalculate the maximum separation tree according to the changed network topology, but recalculates the next hop to the node whose relative positional relationship with itself has changed. For example, the first node can calculate the next hop of itself to the newly added node, and for another example, the first node can delete the next hop information of the deleted node from the routing table. Therefore, by using this solution, the first node can be prevented from frequently recalculating the maximum separating tree, thereby reducing the occupation of computing resources of the first node and improving the performance of the first node.

[0007] In one possible implementation, the network to which the first node belongs is a mesh network. When the target network is a mesh network, considering that the first node includes four directly connected nodes, the four directly connected nodes can all serve as the next hop of the first node. Therefore, the value of M can be less than or equal to 4.

[0008] In a possible implementation, when the target network is a mesh network, the value of M may be less than or equal to 4. In this case, the M redundant trees may include one or more of the first redundant tree, the second redundant tree, the third redundant tree, and the fourth redundant tree. In one example, if the M redundant trees include the first redundant tree, the route generation information may include: when the second node sends data to the destination node based on the first redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the first end of the destination node. Wherein: the second node sends data to the destination node based on the first redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the first redundant tree. In another example, if the M redundant trees include the second redundant tree, the route generation information may include: when the second node sends data to the destination node based on the second redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the second end of the destination node. Wherein: the second node sends data to the destination node based on the second redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the second redundant tree. In another example, if the M redundant trees include a third redundant tree, the route generation information may include: when the second node sends data to the destination node based on the third redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the third end of the destination node. Wherein: the second node sends data to the destination node based on the third redundant tree, which can be understood as the second node sending data to the destination node based on the output interface corresponding to the third redundant tree. In another example, if the M redundant trees include a fourth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the fourth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the fourth end of the destination node. Wherein: the second node sends data to the destination node based on the fourth redundant tree, which can be understood as the second node sending data to the destination node based on the output interface corresponding to the fourth redundant tree.

[0009] In a possible implementation, when the target network is a cube structure network, considering that the first node includes 6 directly connected nodes, the 6 directly connected nodes can all serve as the next hop of the first node, therefore, the value of M can be less than or equal to 6.

[0010] In a possible implementation, when the target network is a cube structure network, the value of M may be less than or equal to 6. For this case, the M redundant trees may include one or more of the fifth redundant tree, the sixth redundant tree, the seventh redundant tree, the eighth redundant tree, and the ninth redundant tree. In one example, if the M redundant trees include the fifth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the fifth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the first end of the destination node. Wherein: the second node sends data to the destination node based on the fifth redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the fifth redundant tree. In another example, if the M redundant trees include the sixth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the sixth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the second end of the destination node. Wherein: the second node sends data to the destination node based on the sixth redundant tree, which can be understood as the second node sends data to the destination node based on the output interface corresponding to the sixth redundant tree. In another example, if the M redundant trees include the seventh redundant tree, the route generation information may include: when the second node sends data to the destination node based on the seventh redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the third end of the destination node. Wherein: the second node sends data to the destination node based on the seventh redundant tree, which can be understood as the second node sends data to the destination node based on the output interface corresponding to the seventh redundant tree. In another example, if the M redundant trees include the eighth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the eighth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the fourth end of the destination node. Wherein: the second node sends data to the destination node based on the eighth redundant tree, which can be understood as the second node sends data to the destination node based on the output interface corresponding to the eighth redundant tree. In another example, if the M redundant trees include the ninth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the ninth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the fifth end of the destination node. Wherein: the second node sends data to the destination node based on the ninth redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the ninth redundant tree.In another example, if the M redundant trees include the tenth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the tenth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the sixth end of the destination node. Wherein: the second node sends data to the destination node based on the tenth redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the tenth redundant tree.

[0011] In a possible implementation, a first node may receive a first message in a first message flow; after receiving the first message, a first output interface for forwarding the first message may be determined based on the first message and the first target redundant tree in the M redundant trees; after determining the first output interface, in order to ensure the transmission quality of the first message flow, the first node does not directly forward the first message through the first output interface, but further determines whether to forward the first service message through the first output interface in combination with the interface utilization of the first output interface. In one example, if the first interface utilization of the first interface is higher than the first diversion threshold, it means that the interface utilization of the first interface is high. In this case, part of the message flow originally forwarded through the first output interface may be switched to other output interfaces for forwarding. As an example, if the first interface utilization of the first interface is higher than the first diversion threshold, the first node may not forward the first message through the first interface, but forward the first message flow through the second output interface. The forwarding of the first message flow through the second output interface mentioned here can be understood as that before the interface utilization of the first interface meets the condition for retransmitting the first message flow, all messages in the first message flow (including the first message) are forwarded through the second output interface. In this way, it is possible to avoid the disorder of the message flow caused by different messages in the first message flow being forwarded through different output interfaces. In a possible implementation, when the utilization of the aforementioned first interface is higher than the first diversion threshold, the message flow originally forwarded through the first output interface and the diversion level matching the first diversion threshold can be switched to other output interfaces for forwarding. In this case, the first node can forward the first message flow through the second output interface when the utilization of the first interface is higher than the first diversion threshold and the diversion level corresponding to the first message flow matches the first diversion threshold.

[0012] In a possible implementation, the diversion level corresponding to the first message flow matches the first diversion threshold, which may be that the diversion level corresponding to the first message flow matches the diversion level corresponding to the first diversion threshold, wherein the diversion level corresponding to the first message flow matches the diversion level corresponding to the first diversion threshold, which means that the diversion level corresponding to the first message flow and the diversion level corresponding to the first diversion threshold satisfy a specific quantitative relationship. As an example, the diversion level corresponding to the first message flow matches the diversion level corresponding to the first diversion threshold, which may be that the diversion level corresponding to the first message flow is less than the diversion level corresponding to the first diversion threshold.

[0013] In a possible implementation, the second outbound interface may be an outbound interface determined based on a second target redundant tree among the M redundant trees. After determining to forward the first message through the second outbound interface, the first node may process the first message using a first path identifier to obtain a second message, and forward the second message through the second outbound interface. The first path identifier indicates that the redundant tree used to forward the second message is the second target redundant tree among the M redundant trees, so that the downstream node that receives the second message forwards the second message based on the second target redundant tree.

[0014] In a possible implementation, when determining the second outbound interface, the first node may combine the redundant tree used by the first message before being forwarded to the first node. As an example, the first message may include indication information, and the indication information is used to indicate the redundant tree that has been used among the M redundant trees before the first message is forwarded to the first node. In this case, the first node may determine the second outbound interface according to the indication information.

[0015] In a possible implementation, if the indication information indicates that the second target redundant tree in the M redundant trees has not been used before the first message is forwarded to the first node, the first node can determine the second target redundant tree according to the indication information, and further determine the second outbound interface based on the second target redundant tree. In an example, the first node can determine the second target redundant tree in the redundant trees that have not been used in the M redundant trees.

[0016] In a possible implementation, if the indication information indicates that the M redundant trees have all been used before the first message is forwarded to the first node, the first node can determine the second outgoing interface based on the network topology to which the first node belongs, for example, the shortest path tree can be calculated based on the first network topology, and the second outgoing interface can be further obtained based on the shortest path tree. In this case, using the solution of the embodiment of the present application, even if the aforementioned M redundant trees have all been used, it can be ensured that the first message can be forwarded to the destination node.

[0017] In a possible implementation, the first message includes a second path identifier, and the second path identifier indicates that the redundant tree used to forward the first message is the first target redundant tree among the M redundant trees. In this case, when the first node determines the first output interface, it can determine the first target redundant tree according to the second path identifier during specific implementation, and further determine the output interface for forwarding the first message based on the first message and the first target redundant tree.

[0018] In a possible implementation, after the interface utilization of the first output interface decreases, the message flow switched to other output interfaces for forwarding can be switched back to the first output interface for forwarding. The first node can also maintain the switchback threshold corresponding to each diversion threshold. As an example, after forwarding the first message flow through the second output interface, the first node can also obtain the third message in the first message flow, and determine the first output interface for forwarding the first message according to the first message and the first target redundant tree; when the second interface utilization of the first output interface is less than or equal to the first switchback threshold, and the duration of the second interface utilization being less than or equal to the first switchback threshold is greater than the first preset duration, the first message flow is forwarded through the first output interface, the first switchback threshold and the first diversion threshold correspond to the same diversion level, and the first switchback threshold is less than the first diversion threshold. In this way, frequent switching of the output interface for forwarding the first message flow can be avoided, and the quality of service provided for the first message flow can be guaranteed.

[0019] In a second aspect, an embodiment of the present application provides an information processing device, which is applied to a first node, and the device includes: the device includes: a transceiver unit and a processing unit; the transceiver unit is used to perform the receiving and / or sending operations performed by the first node as described in the first aspect above; the processing unit is used to perform operations other than the receiving and / or sending operations performed by the first node as described in the first aspect above.

[0020] In a specific example, the apparatus includes:

[0021] A processing unit is used to determine the positional relationship between a first node and a destination node; based on the positional relationship and route generation information, determine M next hops for the first node to reach the destination node, wherein the M next hops include the next hops corresponding to each redundant tree in the M redundant trees, and one redundant tree corresponds to one next hop; the route generation information includes: when the second node forwards data to the destination node based on each redundant tree in the M redundant trees, the interface information of the destination node receiving the data.

[0022] In a possible implementation manner, the network to which the first node belongs is a mesh network, and M is less than or equal to 4.

[0023] In a possible implementation, the M redundant trees include: one or more of a first redundant tree, a second redundant tree, a third redundant tree and a fourth redundant tree, and the routing generation information includes one or more of the following: when the second node sends data to the destination node based on the first redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a first end of the destination node; when the second node sends data to the destination node based on the second redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a second end of the destination node; when the second node sends data to the destination node based on the third redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a third end of the destination node; when the second node sends data to the destination node based on the fourth redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a fourth end of the destination node.

[0024] In a possible implementation manner, the network to which the first node belongs is a cubic structure network, and M is less than or equal to 6.

[0025] In a possible implementation, the M redundant trees include: one or more of a fifth redundant tree, a sixth redundant tree, a seventh redundant tree, an eighth redundant tree, a ninth redundant tree and a tenth redundant tree, and the route generation information includes one or more of the following: when the second node sends data to the destination node based on the fifth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at a first end of the destination node; when the second node sends data to the destination node based on the sixth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at a second end of the destination node; when the second node sends data to the destination node based on the seventh redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at a second end of the destination node. When the second node sends data to the destination node based on the eighth redundant tree, the interface through which the destination node receives the data is an interface for communicating with a node located at the third end of the destination node; when the second node sends data to the destination node based on the eighth redundant tree, the interface through which the destination node receives the data is an interface for communicating with a node located at the fourth end of the destination node; when the second node sends data to the destination node based on the ninth redundant tree, the interface through which the destination node receives the data is an interface for communicating with a node located at the fifth end of the destination node; when the second node sends data to the destination node based on the tenth redundant tree, the interface through which the destination node receives the data is an interface for communicating with a node located at the sixth end of the destination node.

[0026] In one possible implementation, the device also includes: a receiving unit and a sending unit; the receiving unit is used to receive a first message in a first message flow; the processing unit is also used to determine a first output interface for forwarding the first message based on the first message and the first target redundant tree among the M redundant trees; the sending unit is used to forward the first message flow through a second output interface when the first interface utilization of the first output interface is higher than a first diversion threshold.

[0027] In a possible implementation, the sending unit is configured to: forward the first message flow through a second output interface when the utilization rate of the first interface is higher than a first diversion threshold and the diversion level corresponding to the first message flow matches the first diversion threshold.

[0028] In a possible implementation manner, the diversion level corresponding to the first message flow matches the first diversion threshold, including: the diversion level corresponding to the first message flow is smaller than the diversion level corresponding to the first diversion threshold.

[0029] In one possible implementation, the second outbound interface is an outbound interface determined based on a second target redundant tree among the M redundant trees, and the sending unit is used to: obtain a second message including a first path identifier based on the first message, wherein the first path identifier indicates that the redundant tree used to forward the second message is the second target redundant tree among the M redundant trees; and forward the second message through the second outbound interface.

[0030] In a possible implementation, the first message also includes indication information, and the indication information indicates the redundant tree among the M redundant trees that has been used before the first message is forwarded to the first node. The processing unit is also used to determine the second output interface based on the indication information.

[0031] In one possible implementation, the indication information indicates that before the first message is forwarded to the first node, the second target redundant tree among the M redundant trees has not been used, and determining the second output interface based on the indication information includes: determining the second output interface based on the second target redundant tree.

[0032] In one possible implementation, the indication information indicates that the M redundant trees have all been used before the first message is forwarded to the first node, and determining the second output interface based on the indication information includes: determining the second output interface based on the network topology of the network to which the first node belongs.

[0033] In one possible implementation, the first message includes a second path identifier, and the second path identifier indicates that the redundant tree used to forward the first message is a first target redundant tree among the M redundant trees; the processing unit is used to: determine the first target redundant tree according to the second path identifier; determine the first output interface according to the first message and the first target redundant tree.

[0034] In one possible implementation, after forwarding the first message flow through the second output interface, the device includes a receiving unit, which is also used to obtain a third message in the first message flow; the processing unit is also used to determine the first output interface for forwarding the first message based on the first message and the first target redundant tree; the device includes a sending unit, which is also used to forward the first message flow through the first output interface when the second interface utilization of the first output interface is less than or equal to a first reversal threshold and the duration of the second interface utilization being less than or equal to the first reversal threshold is greater than a first preset duration, the first reversal threshold and the first diversion threshold correspond to the same diversion level, and the first reversal threshold is less than the first diversion threshold.

[0035] In a third aspect, an embodiment of the present application provides a device. The device includes a processor and a memory. The memory is used to store instructions or computer programs. The processor is used to execute the instructions or computer programs in the memory to perform any one of the methods described in the first aspect above.

[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions or a computer program, which, when executed on a computer, enables the computer to execute any one of the methods described in the first aspect above.

[0037] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions or a computer program, which, when executed on a computer, enables the computer to execute any one of the methods described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0039] Figure 1a A schematic diagram of the structure of a mesh network provided in an embodiment of the present application;

[0040] Figure 1b A schematic diagram of the structure of the positional relationship between nodes in a network-type network provided in an embodiment of the present application;

[0041] Figure 1c A schematic diagram of a cubic structure network provided in an embodiment of the present application;

[0042] Figure 1d A schematic diagram of the structural relationship between nodes in a cube structure network provided in an embodiment of the present application;

[0043] Figure 2 A flowchart of an information processing method provided in an embodiment of the present application;

[0044] Figure 3a A schematic diagram of a forwarding path provided in an embodiment of the present application;

[0045] Figure 3b A schematic diagram of a situation where a destination node receives data provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of a three-layer dual-standard network structure provided in an embodiment of the present application;

[0047] Figure 5 A flowchart of a message processing method provided in an embodiment of the present application;

[0048] Figure 6 A schematic diagram of the structure of a mesh network provided in an embodiment of the present application;

[0049] Figure 7 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0050] Figure 8 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The embodiments of the present application provide an information processing method and device, which can avoid the network node from frequently recalculating the maximum separation tree, reduce the occupation of computing resources of the network node, and thus improve the performance of the network node.

[0052] In traditional technology, a network node can generate two maximum separation trees based on MRT technology, and each separation tree can be used to determine the next hop from the network node to other network nodes in the network. For this situation, in one example, for each destination node, the network node can obtain three next hops to reach the destination node, which are the main next hop and two backup next hops obtained based on the above two maximum separation trees. These three next hops can be load-balanced or primary-backup. However, in this way, when the network topology changes, the network node needs to recalculate the maximum separation tree according to the changed network topology, thereby consuming more computing resources of the network node. Especially when the network topology changes frequently, frequent recalculation of the maximum separation tree will occupy a large amount of computing resources of the network node, thereby affecting the performance of the network node.

[0053] The inventor of the present application has found that for some special network topologies, such as mesh networks and cube-structured networks, the message forwarding path can be determined based on the relative position relationship between network nodes. Accordingly, when the network topology changes, the network nodes do not need to recalculate the maximum separation tree based on the changed network topology, but only need to recalculate the message forwarding path to the node whose relative position relationship with itself has changed.

[0054] Based on this, the embodiment of the present application provides an information processing method and device. Next, the message processing method and device provided by the embodiment of the present application are introduced in conjunction with the accompanying drawings.

[0055] The information processing method provided in the embodiment of the present application can be applied to a grid network or a cube structure network. Among them, the star network is a grid network. In a specific example, the information processing method provided in the embodiment of the present application can be applied to a star network.

[0056] Before introducing the information processing method provided by the embodiment of the present application, the positional relationship between nodes in a grid network and the positional relationship between nodes in a cube structure network are first introduced. In the embodiment of the present application, "node" can also be referred to as "network node", and the two can be used interchangeably.

[0057] See also Figure 1a , which is a structural schematic diagram of a mesh network provided in an embodiment of the present application.

[0058] Figure 1a The intersection of the horizontal line and the vertical line (corresponding to Figure 1a The circle shown in the figure corresponds to a network node. In the star network, Figure 1a The horizontal lines in the vertical direction may be satellite orbits, for example.

[0059] In a mesh network, the positional relationship between the source node and the destination node can be referred to Figure 1b Understand. Figure 1b As shown, a two-dimensional coordinate system is established with the source node as the center. Figure 1b In the two-dimensional coordinate system, the x-axis is the horizontal axis and the y-axis is the vertical axis. The relative position relationship between the source node and the destination node can include 8 situations:

[0060] The first case: the destination node is located in the first quadrant of the two-dimensional coordinate system;

[0061] The second case: the destination node is located in the second quadrant of the two-dimensional coordinate system;

[0062] The third case: the destination node is located in the third quadrant of the two-dimensional coordinate system;

[0063] The fourth case: the destination node is located in the fourth quadrant of the two-dimensional coordinate system;

[0064] The fifth case: the destination node is located on the positive half axis of the x-axis in the two-dimensional coordinate system;

[0065] The sixth case: the destination node is located on the negative half axis of the x-axis in the two-dimensional coordinate system;

[0066] The seventh case: the destination node is located on the positive half axis of the y-axis in the two-dimensional coordinate system;

[0067] The eighth case: the destination node is located on the negative half axis of the y-axis in the two-dimensional coordinate system.

[0068] See also Figure 1c , which is a schematic diagram of a cubic structure network provided by an embodiment of the present application. Figure 1c In the figure, a circle represents a network node. In a mesh network, the positional relationship between the source node and the destination node can be referred to as Figure 1d Understand. Figure 1d As shown in the figure, a three-dimensional coordinate system is established with the source node as the center. Figure 1d In the 3D coordinate system, the two-dimensional coordinate system is a three-dimensional coordinate system with the x-axis as the horizontal axis, the y-axis as the vertical axis, and the z-axis as the vertical axis. The relative position relationship between the source node and the destination node can include 14 situations:

[0069] Case 1 to Case 8: The destination node and the source node are located in the same xy plane. For the convenience of description, the xy plane to which the source node belongs is called the "first xy plane". Then:

[0070] Case 1①: The destination node is located in the first quadrant of the first xy plane;

[0071] Case 2②: The destination node is located in the second quadrant of the first xy plane;

[0072] The third case ③: The destination node is located in the third quadrant of the first xy plane;

[0073] Fourth case ④: The destination node is located in the fourth quadrant of the first xy plane;

[0074] The fifth case ⑤: the destination node is located on the positive half axis of the x-axis in the first xy plane;

[0075] Case ⑥: The destination node is located on the negative half axis of the x-axis in the first xy plane;

[0076] Case ⑦: The destination node is located on the positive half axis of the y-axis in the first xy plane;

[0077] Case ⑧: The destination node is located on the negative half axis of the y-axis in the first xy plane.

[0078] Case 9⑨: The destination node is on the z-axis;

[0079] The tenth to fourteenth cases: the destination node is a directly connected node of the node on the z-axis. Specifically:

[0080] Case 10⑩: The destination node is a directly connected node along the positive direction of the y-axis.

[0081] Case 11 The destination node is the directly connected node of the node on the z-axis along the negative direction of the y-axis;

[0082] The twelfth case The destination node is the directly connected node of the node on the z-axis along the positive direction of the x-axis;

[0083] Thirteenth Case The destination node is the directly connected node of the node on the z-axis along the negative direction of the x-axis;

[0084] The fourteenth case The destination node is a node in the xy plane to which the node on the z-axis belongs, except for the aforementioned directly connected node.

[0085] See also Figure 2 , which is a flow chart of an information processing method provided in an embodiment of the present application. Figure 2 The method shown can be applied to a first node, and the first network node can be a node in a mesh network or a node in a cube network. In an example, the method shown in FIG1 can include the following S101-S102.

[0086] S101: Determine a positional relationship between a first node and a destination node.

[0087] In the embodiment of the present application, the destination node may be any node different from the first node. For the convenience of description, the network to which the first node and the destination node belong is referred to as the "target network". If the target network is a mesh network, the positional relationship between the first node and the destination node can be referred to as Figure 1b If the target network is a cubic structure network, the positional relationship between the first node and the destination node can be referred to Figure 1d 14 situations are shown.

[0088] In an example, the first node may determine the positional relationship between the first node and the destination node according to the network topology of the target network.

[0089] In another example, the first node can take itself as the center and traverse other nodes in the target network to obtain the destination node, and determine the positional relationship according to the way of traversing to obtain the destination node. For example, the first node takes itself as the center and traverses the nodes located on the positive half axis of the x-axis along the positive direction of the x-axis to obtain the destination node. The positional relationship between the first node and the destination node can correspond to Figure 1b For another example, the first node is centered on itself and traverses along the positive direction of the x-axis to obtain node 1 located on the positive half axis of the x-axis. Then, starting from node 1, traverse along the positive direction of the y-axis to obtain the destination node. The positional relationship between the first node and the destination node can correspond to Figure 1bThe first case is shown.

[0090] S102: According to the positional relationship and the route generation information, determine the M next hops for the first node to reach the destination node, the M next hops include the next hops corresponding to each redundant tree in the M redundant trees, and one redundant tree corresponds to one next hop. The route generation information includes: when the second node forwards data to the destination node based on each redundant tree in the M redundant trees, the interface information of the destination node receiving the data.

[0091] After the first network node determines the position relationship, it can determine the M next hops for the first node to reach the destination node based on the position relationship and the route generation information, wherein the M next hops are the next hops corresponding to each redundant tree in the M redundant trees, and one redundant tree corresponds to one next hop. In an embodiment of the present application, the M next hops can be used as backup next hops to reach the destination node, and the M next hops can be used for load sharing.

[0092] In the embodiment of the present application, the M may be an integer greater than or equal to 1, and the value of the M may be determined according to the network type of the target network.

[0093] In one example, when the target network is a mesh network, considering that the first node includes four directly connected nodes, the four directly connected nodes can all serve as the next hop of the first node. Therefore, the value of M can be less than or equal to four.

[0094] In another example, when the target network is a cube structure network, considering that the first node includes 6 directly connected nodes, the 6 directly connected nodes can all serve as the next hop of the first node. Therefore, the value of M can be less than or equal to 6.

[0095] In an embodiment of the present application, the route generation information may be a specification for the first node to generate a route. In one example, the route generation information may indicate interface information of the destination node receiving the data when the second node in the target network forwards the data to the destination node based on each redundant tree in the M redundant trees. In an embodiment of the present application, the second node may be any node in the target network that is different from the destination node, and the second node may be the first node or another node that is different from the first node.

[0096] Next, the routing generation information is introduced by taking the target network as a mesh network and a cube structure network as examples.

[0097] As mentioned above, when the target network is a mesh network, the value of M may be less than or equal to 4. In this case, the M redundant trees may include one or more of a first redundant tree, a second redundant tree, a third redundant tree, and a fourth redundant tree.

[0098] In one example, if the M redundant trees include a first redundant tree, the route generation information may include: when the second node sends data to the destination node based on the first redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the first end of the destination node. Wherein: the second node sends data to the destination node based on the first redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the first redundant tree.

[0099] In another example, if the M redundant trees include a second redundant tree, the route generation information may include: when the second node sends data to the destination node based on the second redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the second end of the destination node. Wherein: the second node sending data to the destination node based on the second redundant tree can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the second redundant tree.

[0100] In another example, if the M redundant trees include a third redundant tree, the route generation information may include: when the second node sends data to the destination node based on the third redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the third end of the destination node. Wherein: the second node sends data to the destination node based on the third redundant tree, which can be understood as the second node sending data to the destination node based on the output interface corresponding to the third redundant tree.

[0101] In another example, if the M redundant trees include a fourth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the fourth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the fourth end of the destination node. Wherein: the second node sending data to the destination node based on the fourth redundant tree can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the fourth redundant tree.

[0102] In one example, a two-dimensional coordinate system can be established with the destination node as the center. The first end located at the destination node can be understood as being located at the positive half axis of the y axis; the second end located at the destination node can be understood as being located at the negative half axis of the y axis; the third end located at the destination node can be understood as being located at the negative half axis of the x axis; and the fourth end located at the destination node can be understood as being located at the positive half axis of the x axis. Figure 3a To understand, Figure 3a The figure shows the forwarding paths used by the second node to forward data to the destination node based on the first redundant tree, the second redundant tree, the third redundant tree and the fourth redundant tree. Figure 3a As shown:

[0103] When the second node as the source node S sends data to the destination node D based on the first redundant tree, the forwarding path corresponds to Figure 3a As shown in 301, when the data is forwarded to the destination node D through the forwarding path 301, the previous hop node of the destination node is the node located directly above the destination node D (positive half axis of the y-axis), that is, the interface through which the destination node D receives the data is the interface for communicating with the node located directly above the destination node D.

[0104] When the second node as the source node S sends data to the destination node D based on the second redundant tree, the forwarding path corresponds to Figure 3a As shown in 302, when the data is forwarded to the destination node D through the forwarding path 302, the previous hop node of the destination node is the node located directly below the destination node D (negative half axis of the y-axis), that is, the interface through which the destination node D receives the data is the interface for communicating with the node located directly below the destination node D.

[0105] When the second node as the source node S sends data to the destination node D based on the third redundant tree, the forwarding path corresponds to Figure 3a As shown in 303, when the data is forwarded to the destination node D through the forwarding path 303, the previous hop node of the destination node is the node located to the immediate left of the destination node D (negative half axis of the x-axis), that is, the interface through which the destination node D receives the data is the interface for communicating with the node located to the immediate left of the destination node D.

[0106] When the second node as the source node S sends data to the destination node D based on the fourth redundant tree, the forwarding path corresponds to Figure 3a As shown in 304, when the data is forwarded to the destination node D through the forwarding path 304, the previous hop node of the destination node is the node located to the right of the destination node D (positive half axis of the x-axis), that is, the interface of the destination node D for receiving the data is the interface for communicating with the node located to the right of the destination node D.

[0107] Next, taking the case where M is equal to 4 as an example, the next hops corresponding to the four redundant trees are introduced respectively.

[0108] Refer to Table 1, which shows the next hops corresponding to the four redundant trees from the first node to the destination node.

[0109] Table 1

[0110]

[0111] In Table 1:

[0112] D1 represents the first quadrant in the two-dimensional coordinate system established with the first node as the center, that is, when the destination node is D1, the position relationship between the first node and the destination node can correspond to Figure 1a The first case is shown.

[0113] D2 represents the second quadrant in the two-dimensional coordinate system established with the first node as the center, that is, when the destination node is D2, the position relationship between the first node and the destination node can correspond to Figure 1a The second case is shown.

[0114] D3 represents the third quadrant in the two-dimensional coordinate system established with the first node as the center, that is, when the destination node is D3, the position relationship between the first node and the destination node can correspond to Figure 1a The third case is shown.

[0115] D4 represents the fourth quadrant in the two-dimensional coordinate system established with the first node as the center, that is, when the destination node is D4, the position relationship between the first node and the destination node can correspond to Figure 1a The fourth case is shown.

[0116] Dln represents the negative half axis of the x-axis in the two-dimensional coordinate system established with the first node as the center, that is, when the destination node is Dln, the position relationship between the first node and the destination node can correspond to Figure 1a The sixth case is shown.

[0117] Drn represents the positive half axis of the x-axis in the two-dimensional coordinate system established with the first node as the center, that is, when the destination node is Drn, the position relationship between the first node and the destination node can correspond to Figure 1a The fifth case is shown.

[0118] Dun represents the positive half axis of the y-axis in the two-dimensional coordinate system established with the first node as the center, that is, when the destination node is Dun, the position relationship between the first node and the destination node can correspond to Figure 1a The seventh case is shown.

[0119] Ddn represents the negative half axis of the y-axis in the two-dimensional coordinate system established with the first node as the center, that is, when the destination node is Ddn, the position relationship between the first node and the destination node can correspond to Figure 1a The eighth case is shown.

[0120] Dd is a node located on the negative half axis of the y-axis in a two-dimensional coordinate system established with the first node as the center.

[0121] Du is a node located on the positive half axis of the y-axis in a two-dimensional coordinate system established with the first node as the center.

[0122] D1 is a node located on the negative half axis of the x-axis in a two-dimensional coordinate system established with the first node as the center.

[0123] Dr is a node located on the positive half axis of the x-axis in a two-dimensional coordinate system established with the first node as the center.

[0124] In the embodiment of the present application, assuming that the mesh network has N nodes in the x-axis direction and M nodes in the y-axis direction, for the destination node D4, the first redundant tree and the third redundant tree are shortest path trees, that is, when forwarding data to the destination node based on the first redundant tree or the third redundant tree, the forwarding path is the shortest path. When forwarding data to the destination node based on the second redundant tree, the data detours M-1 hops at most, and when forwarding data to the destination node based on the fourth redundant tree, the data detours N-1 hops at most. For the destination node D3, the first redundant tree and the fourth redundant tree are shortest path trees, that is, when forwarding data to the destination node based on the first redundant tree or the fourth redundant tree, the forwarding path is the shortest path. When forwarding data to the destination node based on the second redundant tree, the data detours M-1 hops at most, and when forwarding data to the destination node based on the third redundant tree, the data detours N-1 hops at most. For the destination node D2, the second redundant tree and the third redundant tree are shortest path trees, that is, when forwarding data to the destination node based on the second redundant tree or the third redundant tree, the forwarding path is the shortest path. When forwarding data to the destination node based on the first redundant tree, the data will go around M-1 hops at most, and when forwarding data to the destination node based on the fourth redundant tree, the data will go around N-1 hops at most. For the destination node D1, the second redundant tree and the fourth redundant tree are shortest path trees, that is, when forwarding data to the destination node based on the second redundant tree or the fourth redundant tree, the forwarding path is the shortest path. When forwarding data to the destination node based on the first redundant tree, the data will go around M-1 hops at most, and when forwarding data to the destination node based on the third redundant tree, the data will go around N-1 hops at most.

[0125] As mentioned above, when the target network is a cube structure network, the value of M may be less than or equal to 6. In this case, the M redundant trees may include one or more of the fifth redundant tree, the sixth redundant tree, the seventh redundant tree, the eighth redundant tree, and the ninth redundant tree.

[0126] In one example, if the M redundant trees include the fifth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the fifth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the first end of the destination node. Wherein: the second node sends data to the destination node based on the fifth redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the fifth redundant tree.

[0127] In another example, if the M redundant trees include a sixth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the sixth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the second end of the destination node. Wherein: the second node sending data to the destination node based on the sixth redundant tree can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the sixth redundant tree.

[0128] In another example, if the M redundant trees include the seventh redundant tree, the route generation information may include: when the second node sends data to the destination node based on the seventh redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the third end of the destination node. Wherein: the second node sends data to the destination node based on the seventh redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the seventh redundant tree.

[0129] In another example, if the M redundant trees include an eighth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the eighth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the fourth end of the destination node. Wherein: the second node sends data to the destination node based on the eighth redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the eighth redundant tree.

[0130] In another example, if the M redundant trees include the ninth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the ninth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the fifth end of the destination node. Wherein: the second node sends data to the destination node based on the ninth redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the ninth redundant tree.

[0131] In another example, if the M redundant trees include the tenth redundant tree, the route generation information may include: when the second node sends data to the destination node based on the tenth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at the sixth end of the destination node. Wherein: the second node sends data to the destination node based on the tenth redundant tree, which can be understood as the second node sending data to the destination node based on the outgoing interface corresponding to the tenth redundant tree.

[0132] In one example, a two-dimensional coordinate system can be established with the destination node as the center. The first end located at the destination node can be understood as being located at the positive half axis of the z-axis; the second end located at the destination node can be understood as being located at the negative half axis of the z-axis; the third end located at the destination node can be understood as being located at the negative half axis of the y-axis; the fourth end located at the destination node can be understood as being located at the positive half axis of the y-axis; the fifth end located at the destination node can be understood as being located at the positive half axis of the x-axis; the sixth end located at the destination node can be understood as being located at the negative half axis of the x-axis. Figure 3b To understand, Figure 3b It shows the situation that the destination node receives data when the second node forwards data to the destination node based on the fifth redundant tree, the sixth redundant tree, the seventh redundant tree, the eighth redundant tree, the ninth redundant tree and the tenth redundant tree respectively. Figure 3b As shown:

[0133] When the second node serving as the source node S sends data to the destination node D based on the fifth redundant tree, the destination node D receives the data from the node located in the positive direction of its z-axis, that is, the interface through which the destination node D receives the data is the interface for communicating with the node located in the positive direction of the z-axis of the destination node D.

[0134] When the second node serving as the source node S sends data to the destination node D based on the sixth redundant tree, the destination node D receives the data from the node located in the negative direction of its z-axis, that is, the interface through which the destination node D receives the data is the interface for communicating with the node located in the negative direction of the z-axis of the destination node D.

[0135] When the second node serving as the source node S sends data to the destination node D based on the seventh redundant tree, the destination node D receives the data from the node located in the negative direction of its y-axis, that is, the interface through which the destination node D receives the data is the interface for communicating with the node located in the negative direction of the y-axis of the destination node D.

[0136] When the second node serving as the source node S sends data to the destination node D based on the eighth redundant tree, the destination node D receives the data from the node located in the positive direction of its y-axis, that is, the interface through which the destination node D receives the data is the interface for communicating with the node located in the positive direction of the y-axis of the destination node D.

[0137] When the second node serving as the source node S sends data to the destination node D based on the ninth redundant tree, the destination node D receives the data from the node located in the positive direction of its x-axis, that is, the interface through which the destination node D receives the data is the interface for communicating with the node located in the positive direction of the x-axis of the destination node D.

[0138] When the second node serving as the source node S sends data to the destination node D based on the tenth redundant tree, the destination node D receives the data from the node located in the negative direction of its x-axis, that is, the interface through which the destination node D receives the data is the interface for communicating with the node located in the negative direction of the x-axis of the destination node D.

[0139] Next, taking the case where M is equal to 6 as an example, the next hops corresponding to the 6 redundant trees are introduced respectively.

[0140] See Table 2, which shows the next hops corresponding to the six redundant trees from the first node to the destination node.

[0141] Table 2

[0142]

[0143] D0 means that it is located in the same xy plane as the first node, that is, when the destination node is D0, the position relationship between the first node and the destination node can correspond to Figure 1c The first case ① to the eighth case ⑧ are shown.

[0144] Dz means it is located on the z-axis, that is, when the destination node is Dz, the position relationship between the first node and the destination node can correspond to Figure 1c The ninth situation shown is ⑨.

[0145] Dzr represents the directly connected node of Dz along the positive direction of the y-axis, that is, when the destination node is Dzr, the position relationship between the first node and the destination node can correspond to Figure 1c The tenth case ⑩ is shown.

[0146] Dzl represents the directly connected node of Dz along the negative direction of the y-axis, that is, when the destination node is Dzl, the position relationship between the first node and the destination node can correspond to Figure 1c The eleventh case shown

[0147] Dzu represents the directly connected node of Dz along the positive direction of the x-axis, that is, when the destination node is Dzu, the position relationship between the first node and the destination node can correspond to Figure 1c The twelfth case shown

[0148] Dzd represents the directly connected node of Dz along the negative direction of the x-axis, that is, when the destination node is Dzd, the position relationship between the first node and the destination node can correspond to Figure 1c The thirteenth case shown

[0149] Dxy represents the other nodes on the xy plane to which Dz belongs except Dzr, Dzl, Dzu and Dzd, that is, when the destination node is Dxy, the position relationship between the first node and the destination node can correspond to Figure 1c The fourteenth case shown

[0150]

[0151] In Table 2:

[0152] Dd is a node located on the negative half axis of the y-axis on the xy plane to which the first node belongs in a three-dimensional coordinate system established with the first node as the center.

[0153] Du is a node located on the positive half axis of the y-axis on the xy plane to which the first node belongs in a three-dimensional coordinate system established with the first node as the center.

[0154] D1 is a node located on the negative half axis of the x-axis on the xy plane to which the first node belongs in the three-dimensional coordinate system established with the first node as the center.

[0155] Dr is a node located on the positive half axis of the x-axis on the xy plane to which the first node belongs in a three-dimensional coordinate system established with the first node as the center.

[0156] Dh+ is a node located on the positive half axis of the z-axis in the three-dimensional coordinate system established with the first node as the center;

[0157] Dh- is a node located on the negative half axis of the z-axis in the three-dimensional coordinate system established with the first node as the center;

[0158] When the destination node is D0, the next hop NH_l2' obtained according to the seventh redundant tree can be the next hop obtained by using the aforementioned third redundant tree according to the relative position relationship between the destination node D0 and the first node. Regarding the NH_l2', please refer to the description of Table 1 above, and no repeated description will be made here.

[0159] When the destination node is D0, the next hop NH_l3' obtained according to the eighth redundant tree can be the next hop obtained by using the aforementioned fourth redundant tree based on the relative position relationship between the destination node D0 and the first node. Regarding the NH_l3', please refer to the description of Table 1 above, and no repeated description will be made here.

[0160] When the destination node is D0, the next hop NH_l1' obtained according to the ninth redundant tree can be the next hop obtained by using the aforementioned second redundant tree according to the relative position relationship between the destination node D0 and the first node. Regarding the NH_l1', please refer to the description of Table 1 above, and no repeated description will be made here.

[0161] When the destination node is D0, the next hop NH_l0' obtained according to the tenth redundant tree can be the next hop obtained by using the aforementioned first redundant tree according to the relative position relationship between the destination node D0 and the first node. Regarding the NH_l0', please refer to the description of Table 1 above, and no repeated description will be made here.

[0162] When the destination node is Dxy, the next hop NH_l3 obtained according to the fifth redundant tree can be Dz as the source node and Dxy as the destination node. According to the positional relationship between Dz and Dxy, the next hop obtained by the fourth redundant tree is adopted. Regarding the next hop obtained by adopting the fourth redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0163] When the destination node is Dxy, the next hop NH_l1 obtained according to the sixth redundant tree can be Dz as the source node and Dxy as the destination node. According to the positional relationship between Dz and Dxy, the next hop obtained by the second redundant tree is adopted. Regarding the next hop obtained by adopting the second redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0164] When the destination node is Dxy, the next hop NH_l2 obtained according to the seventh redundant tree can be Dz as the source node and Dxy as the destination node. According to the positional relationship between Dz and Dxy, the next hop obtained by the third redundant tree is adopted. Regarding the next hop obtained by adopting the third redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0165] When the destination node is Dxy, the next hop NH_l0 obtained according to the tenth redundant tree can be Dz as the source node and Dxy as the destination node. According to the positional relationship between Dz and Dxy, the next hop obtained by the first redundant tree is adopted. Regarding the next hop obtained by adopting the first redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0166] When the destination node is Dzr, the next hop NH_l3 obtained according to the fifth redundant tree can be Dz as the source node and Dzr as the destination node. According to the positional relationship between Dz and Dzr, the next hop obtained by the fourth redundant tree is adopted. Regarding the next hop obtained by adopting the fourth redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0167] When the destination node is Dzr, the next hop NH_l1 obtained according to the sixth redundant tree can be Dz as the source node and Dzr as the destination node. According to the positional relationship between Dz and Dzr, the next hop obtained by the second redundant tree is adopted. Regarding the next hop obtained by adopting the second redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0168] When the destination node is Dzr, the next hop NH_l2 obtained according to the ninth redundant tree can be Dz as the source node and Dzr as the destination node. According to the positional relationship between Dz and Dzr, the next hop obtained by the third redundant tree is adopted. Regarding the next hop obtained by adopting the third redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0169] When the destination node is Dzr, the next hop NH_l0 obtained according to the tenth redundant tree can be Dz as the source node and Dzr as the destination node. According to the positional relationship between Dz and Dzr, the next hop obtained by the first redundant tree is adopted. Regarding the next hop obtained by adopting the first redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0170] When the destination node is Dzl, the next hop NH_l3 obtained according to the fifth redundant tree can be Dz as the source node and Dzl as the destination node. According to the positional relationship between Dz and Dzl, the next hop obtained by the fourth redundant tree is adopted. Regarding the next hop obtained by adopting the fourth redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0171] When the destination node is Dzl, the next hop NH_l1 obtained according to the sixth redundant tree can be Dz as the source node and Dzl as the destination node. According to the positional relationship between Dz and Dzl, the next hop obtained by the second redundant tree is adopted. Regarding the next hop obtained by the second redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0172] When the destination node is Dzl, the next hop NH_l2 obtained according to the seventh redundant tree can be Dz as the source node and Dzl as the destination node. According to the positional relationship between Dz and Dzl, the next hop obtained by the third redundant tree is adopted. Regarding the next hop obtained by adopting the third redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0173] When the destination node is Dzl, the next hop NH_l0 obtained according to the tenth redundant tree can be Dz as the source node and Dzl as the destination node. According to the positional relationship between Dz and Dzl, the next hop obtained by the first redundant tree is adopted. Regarding the next hop obtained by adopting the first redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0174] When the destination node is Dzu, the next hop NH_l3 obtained according to the fifth redundant tree can be Dz as the source node and Dzu as the destination node. According to the positional relationship between Dz and Dzu, the next hop obtained by the fourth redundant tree is adopted. Regarding the next hop obtained by adopting the fourth redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0175] When the destination node is Dzu, the next hop NH_l1 obtained according to the sixth redundant tree can be Dz as the source node and Dzu as the destination node. According to the positional relationship between Dz and Dzu, the next hop obtained by the second redundant tree is adopted. Regarding the next hop obtained by the second redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0176] When the destination node is Dzu, the next hop NH_l2 obtained according to the seventh redundant tree can be Dz as the source node and Dzu as the destination node. According to the positional relationship between Dz and Dzu, the next hop obtained by the third redundant tree is adopted. Regarding the next hop obtained by the third redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0177] When the destination node is Dzu, the next hop NH_l0 obtained according to the tenth redundant tree can be Dz as the source node and Dzu as the destination node. According to the positional relationship between Dz and Dzu, the next hop obtained by the first redundant tree is adopted. Regarding the next hop obtained by adopting the first redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0178] When the destination node is Dzd, the next hop NH_l3 obtained according to the fifth redundant tree can be Dz as the source node and Dzd as the destination node. According to the positional relationship between Dz and Dzd, the next hop obtained by the fourth redundant tree is adopted. Regarding the next hop obtained by adopting the fourth redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0179] When the destination node is Dzd, the next hop NH_l1 obtained according to the sixth redundant tree can be Dz as the source node and Dzd as the destination node. According to the positional relationship between Dz and Dzd, the next hop obtained by the second redundant tree is adopted. Regarding the next hop obtained by adopting the second redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0180] When the destination node is Dzd, the next hop NH_l2 obtained according to the seventh redundant tree can be Dz as the source node and Dzd as the destination node. According to the positional relationship between Dz and Dzd, the next hop obtained by the third redundant tree is adopted. Regarding the next hop obtained by adopting the third redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0181] When the destination node is Dzd, the next hop NH_l0 obtained according to the ninth redundant tree can be Dz as the source node and Dzd as the destination node. According to the positional relationship between Dz and Dzd, the next hop obtained by the first redundant tree is adopted. Regarding the next hop obtained by adopting the first redundant tree, please refer to the description of Table 1 above, which will not be repeated here.

[0182] In the embodiment of the present application, assuming that the cube structure network has N nodes in the x-axis direction, M nodes in the y-axis direction, and Q nodes in the z-axis direction, then:

[0183] For the destination node D0, the first node can forward data to the destination node based on the first redundant tree, the second redundant tree, the third redundant tree and the fourth redundant tree on the xy plane where the first node is located. In addition, it can also forward one hop along the z-axis direction and then forward to the destination node.

[0184] For the destination node Dz, when forwarding data based on the next hop obtained by the fifth redundant tree, the data is forwarded to the destination node along the negative direction of the z-axis. When forwarding data based on the next hop obtained by the sixth redundant tree, the data is forwarded to the destination node along the positive direction of the z-axis. The fifth redundant tree and the sixth redundant tree are the shortest path trees. When forwarding data based on the next hop obtained by the seventh redundant tree to the tenth redundant tree, the data is first forwarded to the four directly connected nodes of Dz along the positive and negative directions of the x-axis and the positive and negative directions of the y-axis, and then forwarded to the destination node. In this case, the data detours Q-1+2 hops at most.

[0185] For the destination node Dxy, when forwarding data based on the next hop obtained by the fifth redundant tree, the data is forwarded to Dz and then transmitted to the destination node along the positive direction of the z axis; when forwarding data based on the next hop obtained by the sixth redundant tree, the data is forwarded to Dz and then transmitted to the destination node along the negative direction of the z axis; when forwarding data based on the eighth redundant tree, the data is transmitted along the negative direction of the z axis to the node on the same plane as the destination node, and then transmitted to the destination node; when forwarding data based on the ninth redundant tree, the data is transmitted along the positive direction of the z axis to the node on the same plane as the destination node, and then transmitted to the destination node; when forwarding data based on the seventh redundant tree or the tenth redundant tree, the data is first forwarded to the node directly connected to the Dz node, and then forwarded to the node on the same plane as the destination node, and finally forwarded to the destination node. The first node forwards the data to the destination node Dxy, and the data detours M+Q-2 hops or N+Q-2 hops at most.

[0186] It can be seen from the above description that, by using the solution of the embodiment of the present application, the first node can determine the M next hops of the first node to reach the destination node based on the positional relationship between the first node and the destination node. In this way, even if the network topology of the network to which the first node belongs changes, the first node does not need to recalculate the maximum separation tree according to the changed network topology, but recalculates the next hop to the node whose relative positional relationship with itself has changed. Therefore, by using this solution, the first node can avoid frequently recalculating the maximum separation tree, reduce the occupation of the computing resources of the first node, and thus improve the performance of the first node.

[0187] In one example, after the first node determines the M next hops, the correspondence between the position relationship and the M next hops can be saved, so as to determine the next hop for forwarding the service message based on the correspondence during the message forwarding phase.

[0188] In addition, in an embodiment of the present application, for a three-layer dual-standard network, the first node can determine M (M equals 2) redundant trees, and accordingly, can save its own two next hops to reach the destination node, so that in the message forwarding stage, the next hop for forwarding the service message can be determined from the two next hops.

[0189] See also Figure 4 , which is a schematic diagram of the structure of a three-layer dual-standard network provided in an embodiment of the present application. Figure 4 As shown, the three-layer dual-standard network includes an access layer, a convergence layer, and a core layer. Figure 4 As described above, the access layer nodes A1 and A2 are dual-regularly connected to the aggregation layer nodes P1 and P2 respectively, and the aggregation layer nodes P1 and P2 are dual-regularly connected to the core layer nodes C1 and C2.

[0190] If the first node is an access layer node, it may correspond to two next hops, namely, the next hop corresponding to the eleventh redundant tree and the next hop corresponding to the twelfth redundant tree. The two next hops from the access layer node to all nodes may be as shown in Table 3 below:

[0191] Table 3

[0192]

[0193] If the first node is a convergence layer node, it may correspond to two next hops, namely, the next hop corresponding to the eleventh redundant tree and the next hop corresponding to the twelfth redundant tree. Among them, the two next hops from the access layer node P1 to each destination node may be shown in Table 4 below, and the two next hops from the access layer node P2 to each destination node may be shown in Table 5 below.

[0194] Table 4

[0195]

[0196] Table 5

[0197]

[0198] In Table 4 and Table 5: C represents a core layer node, and C can be C1 or C2; A represents an access layer node, and A can be A1 or A2.

[0199] If the first node is a core layer node, it may correspond to two next hops, namely, the next hop corresponding to the eleventh redundant tree and the next hop corresponding to the twelfth redundant tree. The two next hops from the core layer node C1 to each destination node may be shown in Table 6 below, and the two next hops from the core layer node C2 to each destination node may be shown in Table 7 below.

[0200] Table 6

[0201]

[0202] Table 7

[0203]

[0204] In Table 6 and Table 7: A represents an access layer node, which can be either A1 or A2; P represents a convergence layer node, which can be either P1 or P2.

[0205] Next, the operations performed by the first node in the message forwarding phase are introduced.

[0206] See also Figure 5 , which is a flow chart of a message processing method provided in an embodiment of the present application, Figure 5 The message processing method shown may include the following S201-S203.

[0207] S201: Receive a first message in a first message flow.

[0208] In an example, the first node may receive the first message from an upstream node.

[0209] S202: Determine a first outbound interface for forwarding the first message according to the first message and the first target redundant tree.

[0210] In one example, the first message includes a second path identifier, and the second path identifier indicates that the redundant tree used to forward the first message is the first target redundant tree among the M redundant trees. In this case, the first node can determine the first target redundant tree based on the second path identifier, and further determine the output interface for forwarding the first message based on the first message and the first target redundant tree. In one example, the first node can parse the first message to obtain the destination address of the first message, and then determine the positional relationship between the first node and the destination node of the first message based on the destination address of the first message, and further determine the next hop corresponding to the first target redundant tree based on the positional relationship, so as to determine the interface communicating with the next hop as the first output interface.

[0211] Regarding the second path identifier, it should be noted that, in one example, the second path identifier may be the identifier of the first target redundant tree. In another example, the first message may include indication bits corresponding to each redundant tree. The first message includes the second path identifier, for example, the indication bit corresponding to each redundant tree and the indication bit corresponding to the first target redundant tree (for example, set to 1).

[0212] In another example, the first message does not include a path identifier indicating any redundant tree. In this case, the first node can determine the first target redundant tree from the M redundant trees, and further determine the first output interface based on the first target redundant tree. As an example, the first node can randomly select the first target redundant tree from the M redundant trees. As another example, the first node can determine the first target redundant tree based on the priority of the M redundant trees, for example, the redundant tree with the highest priority can be determined as the first target redundant tree.

[0213] S203: When the first interface utilization rate of the first output interface is higher than a first traffic diversion threshold, forward the first packet flow through a second output interface.

[0214] After determining the first outbound interface, in order to ensure the transmission quality of the first message flow, the first node does not directly forward the first message through the first outbound interface, but further determines whether to forward the first service message through the first outbound interface in combination with the interface utilization of the first outbound interface. In an embodiment of the present application, the interface utilization of the first outbound interface may be the link utilization of the directly connected link corresponding to the first outbound interface, and the link utilization may be, for example, the bandwidth utilization of the link.

[0215] In the embodiment of the present application, the first node may periodically detect the interface utilization of the first outbound interface. The embodiment of the present application does not specifically limit the specific implementation method in which the first node determines the interface utilization of the first outbound interface.

[0216] In one example, if the first interface utilization of the first interface is higher than the first diversion threshold, it means that the interface utilization of the first interface is high. For this case, part of the message flow originally forwarded through the first output interface can be switched to other output interfaces for forwarding. Therefore, in an embodiment of the present application, if the first interface utilization of the first interface is higher than the first diversion threshold, the first node may not forward the first message through the first interface, but forward the first message flow through the second output interface. The forwarding of the first message flow through the second output interface mentioned here can be understood as that before the interface utilization of the first interface meets the condition for retransmitting the first message flow, the messages (including the first message) in the first message flow are all forwarded through the second output interface. In this way, it can be avoided that different messages in the first message flow are forwarded through different output interfaces, resulting in message flow disorder.

[0217] In one example, when the utilization rate of the aforementioned first interface is higher than the first diversion threshold, the message flow originally forwarded through the first output interface and the message flow whose diversion level matches the first diversion threshold can be switched to other output interfaces for forwarding. In this case, the first node can forward the first message flow through the second output interface when the utilization rate of the first interface is higher than the first diversion threshold and the diversion level corresponding to the first message flow matches the first diversion threshold.

[0218] In an embodiment of the present application, the diversion level of a message flow can be determined according to the characteristics of the message flow. As an example, for an Internet Protocol version 4 (IPv4) message, the diversion level of its message flow can be obtained based on the message flow quintuple. For example, the quintuple can be modulo a preset value to obtain the diversion level of the message flow. As another example, for an Internet Protocol version 6 (IPv6) message, the diversion level of its message flow can be obtained based on the flow label of the message flow. For example, the flow label can be modulo a preset value to obtain the diversion level of the message flow. The preset value mentioned here can be the number of diversion levels supported by the first node mentioned below.

[0219] In the embodiment of the present application, the first node may support multiple diversion levels, each diversion level has a corresponding diversion threshold, and the first diversion threshold may be a diversion threshold corresponding to a certain diversion level.

[0220] In an embodiment of the present application, the diversion level corresponding to the first message flow matches the first diversion threshold, and the diversion level corresponding to the first message flow matches the diversion level corresponding to the first diversion threshold, wherein the diversion level corresponding to the first message flow matches the diversion level corresponding to the first diversion threshold, which means that the diversion level corresponding to the first message flow and the diversion level corresponding to the first diversion threshold satisfy a specific quantitative relationship. As an example, the diversion level corresponding to the first message flow matches the diversion level corresponding to the first diversion threshold, and the diversion level corresponding to the first message flow is less than the diversion level corresponding to the first diversion threshold. For example, the first node includes 3 diversion levels, namely diversion level 0, diversion level 1, and diversion level 2. The diversion thresholds corresponding to each diversion level are shown in Table 8 below.

[0221] Table 8

[0222] Shunt level Shunt Threshold 0 65% 1 75% 2 85%

[0223] Assuming that the utilization rate of the first interface is 80%, which is greater than the first diversion threshold of 75%, and the diversion level corresponding to the first diversion threshold is 1, if the diversion level corresponding to the first message flow is 0, the diversion level corresponding to the first message flow matches the diversion level corresponding to the first diversion threshold.

[0224] In an example, after determining that the utilization rate of the first interface is higher than the first traffic diversion threshold, the first node may further determine a second outbound interface so as to forward the first message through the second outbound interface.

[0225] In one example, the first node may combine the redundant trees used by the first message before being forwarded to the first node when determining the second output interface. As an example, the first message may include indication information, and the indication information is used to indicate the redundant trees that have been used among the M redundant trees before the first message is forwarded to the first node. For this case, the first node can determine the second output interface based on the indication information. As an example, the first message may include indication bits corresponding to each redundant tree, the indication bit of the redundant tree that has been used is in the position, and the value of the indication bit corresponding to the redundant tree that has not been used is the initial value.

[0226] In a specific example, if the indication information indicates that the second target redundant tree among the M redundant trees has not been used before the first message is forwarded to the first node, the first node may determine the second target redundant tree according to the indication information, and further determine the second output interface based on the second target redundant tree. In one example, the first node may determine the second target redundant tree among the redundant trees that have not been used among the M redundant trees. For example, the first node may randomly select a redundant tree from the redundant trees that have not been used as the second target redundant tree. For another example, the first node may determine the redundant tree with the highest priority among the redundant trees that have not been used as the second target redundant tree.

[0227] In one example, when the first node determines the second output interface based on the second target redundant tree, the next hop corresponding to the second target redundant tree can be determined according to the positional relationship between the first node and the destination node of the first message, thereby determining the interface that communicates with the next hop as the second output interface.

[0228] In another specific example, if the indication information indicates that the M redundant trees have all been used before the first message is forwarded to the first node, the first node can determine the second output interface based on the network topology to which the first node belongs. For example, the shortest path tree can be calculated based on the first network topology, and the second output interface can be further obtained based on the shortest path tree. For this case, using the solution of the embodiment of the present application, it is possible to ensure that the first message can be forwarded to the destination node even if the aforementioned M redundant trees have all been used. The network topology to which the first node belongs can be the original topology of the network described by the first node, or it can be a topology obtained by deleting some links on the basis of the original topology. The deleted links mentioned here can be, for example, links whose quality of service can not meet the requirements, for example, links that are congested.

[0229] In one example, the second outbound interface may be an outbound interface determined based on a second target redundant tree among the M redundant trees. After determining to forward the first message through the second outbound interface, the first node may process the first message using a first path identifier to obtain a second message, and forward the second message through the second outbound interface. The first path identifier indicates that the redundant tree used to forward the second message is the second target redundant tree among the M redundant trees, so that the downstream node that receives the second message forwards the second message based on the second target redundant tree.

[0230] The manner of carrying the first path identifier in the second message is similar to the manner of carrying the second path identifier in the first message mentioned above, and is not repeated here.

[0231] In one example, if the first message includes the second path identifier, then “the first node can process the first message using the first path identifier to obtain the second message” can be implemented by, for example, replacing the second path identifier in the first message with the first path identifier, thereby obtaining the second message. In another example, if the first message does not include a path identifier indicating any redundant tree, then “the first node can process the first message using the first path identifier to obtain the second message” can be implemented by, for example, adding the first path identifier to the first message, thereby obtaining the second message.

[0232] In one example, when the interface utilization of the first outbound interface decreases, the message flow switched to other outbound interfaces for forwarding can be switched back to the first outbound interface for forwarding. In an embodiment of the present application, the first node can also maintain the switchback thresholds corresponding to each shunt threshold. As an example, the first node can maintain a first switchback threshold corresponding to the first shunt threshold, the first shunt threshold and the first switchback threshold correspond to the same shunt level, and the first switchback threshold is less than the first shunt threshold. For this case, the first node can also perform the following steps A1-A3.

[0233] A1: Obtain a third message in the first message flow.

[0234] A2: Determine a first outbound interface for forwarding the first message according to the first message and the first target redundant tree.

[0235] For the specific implementation of steps A1-A2, please refer to the above description of S201-S202, which will not be repeated here.

[0236] A3: When the second interface utilization of the first output interface is less than or equal to the first reversal threshold, and the duration of the second interface utilization being less than or equal to the first reversal threshold is greater than a first preset duration, forward the first message flow through the first output interface.

[0237] In the embodiment of the present application, in addition to monitoring the interface utilization of the first outbound interface, the first node may also record the duration during which the second interface utilization of the first outbound interface is less than or equal to the first reversal threshold.

[0238] In the embodiment of the present application, the first node switches the received third message back to the first output interface for forwarding only when the duration of the second interface utilization being less than or equal to the first switching back threshold is greater than the first preset duration, thereby avoiding frequent switching of the output interface for forwarding the first message flow. Moreover, the duration of the second interface utilization being less than or equal to the first switching back threshold is greater than the first preset duration, indicating that the service quality that the current first output interface can provide is relatively stable, therefore, forwarding the first message flow through the first output interface can also ensure the service quality provided for the first message flow.

[0239] In an example, if the third message includes the second path identifier, forwarding the first message flow through the first output interface may include: forwarding the third message through the first output interface.

[0240] In yet another example, if the third message does not include the second path identifier, the first node may obtain a fourth message including the second path identifier according to the third message, and forward the fourth message through the first outbound interface.

[0241] Next, the specific logic of the first node switching the message flow is introduced with reference to a specific example.

[0242] Assuming that the diversion level supported by the first node, each diversion is equal to the corresponding diversion threshold, the switching back threshold and the duration are as shown in Table 9 below, then: the logic of the first node switching the message flow can refer to Table 10.

[0243] Table 9

[0244] Shunt level Shunt Threshold Switchback threshold Duration 0 65% 60% 5 minutes 1 75% 70% 5 minutes 2 85% 80% 5 minutes

[0245] The duration in Table 9 refers to the minimum duration during which the interface utilization is lower than the corresponding switching threshold when the message flow is switched back, which may correspond to the first preset duration mentioned above.

[0246] Table 10

[0247]

[0248]

[0249] Next, the message processing method provided in the embodiment of the present application is introduced in combination with specific scenarios.

[0250] See also Figure 6 , this figure is a structural diagram of a mesh network provided in an embodiment of the present application. Next, taking R4 as the source node and D as the destination node as an example, the message forwarding process is introduced.

[0251] In the following description, an outbound interface (AB) identifies an outbound interface used by node A to communicate with node B. For example, an outbound interface (3-D) indicates an outbound interface used by node 3 to communicate with node D.

[0252] 1. Source node R4 obtains message 1, and determines the next hop node as node 1 according to the first redundant tree based on its positional relationship with the destination node, and writes the path identifier 000 indicating the first redundant tree into message 1. In addition, indication information 1000 indicating that the first redundant tree has been used is added to message 1 to obtain message 2, and forward message 2 along the path R4-1-Rdn-3-D.

[0253] 2. When forwarding message 2, node 3 determines that the interface utilization of the output interface (3-D) exceeds the diversion threshold corresponding to the diversion level 1. Node 3 determines that the diversion level of message 2 is 0. Therefore, node 3 determines that the next hop is node 4 based on the third redundant tree, and determines the output interface as (3-4). The identifier 000 indicating the first redundant tree in message 2 is modified to 010 indicating the third redundant tree. In addition, the indication information 1000 in message 2 is modified to 1010, indicating that both the first redundant tree and the third redundant tree have been used, thereby obtaining message 3. Node 3 forwards message 3 along the path 3-4-Rrn-D.

[0254] 3. When forwarding message 3, node Rrn determines that the interface utilization of the outgoing interface Rrn-D exceeds the diversion threshold corresponding to the diversion level 1, and determines that the diversion level of message 3 is 0. Therefore, node Rrn determines that the next hop is node 5 based on the second redundant tree, and determines the outgoing interface as (Rrn-5), and modifies the identifier 010 indicating the third redundant tree in message 3 to 001 indicating the second redundant tree. In addition, the indication information 1010 in message 3 is modified to 1110, indicating that the first redundant tree, the second redundant tree, and the third redundant tree have all been used, thereby obtaining message 4, and node Rrn forwards message 4 along the path Rrn-5-Run-D.

[0255] 4. When forwarding message 4, node 5 determines that the interface utilization of the outgoing interface (5-Run) exceeds the diversion threshold corresponding to the diversion level 1, and determines that the diversion level of message 4 is 0. Node 5 determines that only the fourth redundant tree has not been used according to the indication information 1110 in message 4, and then node 5 determines that the next hop is R3 according to the fourth redundant tree. In addition, node 2 modifies the identifier 001 indicating the second redundant tree in message 4 to 011 indicating the fourth redundant tree, and in addition, modifies the indication information 1110 in message 4 to 1111, indicating that the first redundant tree, the second redundant tree, the third redundant tree and the fourth redundant tree have all been used, thereby obtaining message 5, and node 5 forwards message 5 along the path 5-R3-R1-Rln-6-D.

[0256] 5. When forwarding message 5, node R1 determines that the link utilization of the direct link (R1-Rln) exceeds the diversion threshold corresponding to diversion level 1, and determines that the diversion level of message 5 is 0. Node R1 determines through information 1111 that all four redundant trees have been used, so it switches the next hop to the backup next hop 7, and modifies the identifier 011 indicating the fourth redundant tree in message 5 to 100 indicating the backup path, obtains message 6, and forwards message 6 to the destination node D along the path R1-7-Run-D.

[0257] The embodiment of the present application also provides an information processing device, which is applied to the first node. Figure 7, which is a structural schematic diagram of an information processing device provided in an embodiment of the present application.

[0258] like Figure 7 As shown, the device 700 includes: a transceiver unit 701 and a processing unit 702; the transceiver unit 701 is used to perform the receiving and / or sending operations performed by the first node as described in the above method embodiment; the processing unit 702 is used to perform operations other than the receiving and / or sending operations performed by the first node as described in the above method embodiment. The transceiver unit 701 may include a receiving unit and / or a sending unit, the receiving unit is used to perform the receiving operation performed by the first node as described in the above method embodiment, and the sending unit is used to perform the sending operation performed by the first node as described in the above method embodiment.

[0259] In a specific example, the information processing device includes:

[0260] A processing unit is used to determine the positional relationship between a first node and a destination node; based on the positional relationship and route generation information, determine M next hops for the first node to reach the destination node, wherein the M next hops include the next hops corresponding to each redundant tree in the M redundant trees, and one redundant tree corresponds to one next hop; the route generation information includes: when the second node forwards data to the destination node based on each redundant tree in the M redundant trees, the interface information of the destination node receiving the data.

[0261] In a possible implementation manner, the network to which the first node belongs is a mesh network, and M is less than or equal to 4.

[0262] In a possible implementation, the M redundant trees include: one or more of a first redundant tree, a second redundant tree, a third redundant tree and a fourth redundant tree, and the routing generation information includes one or more of the following: when the second node sends data to the destination node based on the first redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a first end of the destination node; when the second node sends data to the destination node based on the second redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a second end of the destination node; when the second node sends data to the destination node based on the third redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a third end of the destination node; when the second node sends data to the destination node based on the fourth redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a fourth end of the destination node.

[0263] In a possible implementation manner, the network to which the first node belongs is a cubic structure network, and M is less than or equal to 6.

[0264] In a possible implementation, the M redundant trees include: one or more of a fifth redundant tree, a sixth redundant tree, a seventh redundant tree, an eighth redundant tree, a ninth redundant tree and a tenth redundant tree, and the route generation information includes one or more of the following: when the second node sends data to the destination node based on the fifth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at a first end of the destination node; when the second node sends data to the destination node based on the sixth redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at a second end of the destination node; when the second node sends data to the destination node based on the seventh redundant tree, the interface of the destination node receiving the data is an interface for communicating with a node located at a second end of the destination node. When the second node sends data to the destination node based on the eighth redundant tree, the interface through which the destination node receives the data is an interface for communicating with a node located at the third end of the destination node; when the second node sends data to the destination node based on the eighth redundant tree, the interface through which the destination node receives the data is an interface for communicating with a node located at the fourth end of the destination node; when the second node sends data to the destination node based on the ninth redundant tree, the interface through which the destination node receives the data is an interface for communicating with a node located at the fifth end of the destination node; when the second node sends data to the destination node based on the tenth redundant tree, the interface through which the destination node receives the data is an interface for communicating with a node located at the sixth end of the destination node.

[0265] In one possible implementation, the device also includes: a receiving unit and a sending unit; the receiving unit is used to receive a first message in a first message flow; the processing unit is also used to determine a first output interface for forwarding the first message based on the first message and the first target redundant tree among the M redundant trees; the sending unit is used to forward the first message flow through a second output interface when the first interface utilization of the first output interface is higher than a first diversion threshold.

[0266] In a possible implementation, the sending unit is configured to: forward the first message flow through a second output interface when the utilization rate of the first interface is higher than a first diversion threshold and the diversion level corresponding to the first message flow matches the first diversion threshold.

[0267] In a possible implementation manner, the diversion level corresponding to the first message flow matches the first diversion threshold, including: the diversion level corresponding to the first message flow is smaller than the diversion level corresponding to the first diversion threshold.

[0268] In one possible implementation, the second outbound interface is an outbound interface determined based on a second target redundant tree among the M redundant trees, and the sending unit is used to: obtain a second message including a first path identifier based on the first message, wherein the first path identifier indicates that the redundant tree used to forward the second message is the second target redundant tree among the M redundant trees; and forward the second message through the second outbound interface.

[0269] In a possible implementation, the first message also includes indication information, and the indication information indicates the redundant tree among the M redundant trees that has been used before the first message is forwarded to the first node. The processing unit is also used to determine the second output interface based on the indication information.

[0270] In one possible implementation, the indication information indicates that before the first message is forwarded to the first node, the second target redundant tree among the M redundant trees has not been used, and determining the second output interface based on the indication information includes: determining the second output interface based on the second target redundant tree.

[0271] In one possible implementation, the indication information indicates that the M redundant trees have all been used before the first message is forwarded to the first node, and determining the second output interface based on the indication information includes: determining the second output interface based on the network topology of the network to which the first node belongs.

[0272] In one possible implementation, the first message includes a second path identifier, and the second path identifier indicates that the redundant tree used to forward the first message is a first target redundant tree among the M redundant trees; the processing unit is used to: determine the first target redundant tree according to the second path identifier; determine the first output interface according to the first message and the first target redundant tree.

[0273] In one possible implementation, after forwarding the first message flow through the second output interface, the device includes a receiving unit, which is also used to obtain a third message in the first message flow; the processing unit is also used to determine the first output interface for forwarding the first message based on the first message and the first target redundant tree; the device includes a sending unit, which is also used to forward the first message flow through the first output interface when the second interface utilization of the first output interface is less than or equal to a first reversal threshold and the duration of the second interface utilization being less than or equal to the first reversal threshold is greater than a first preset duration, the first reversal threshold and the first diversion threshold correspond to the same diversion level, and the first reversal threshold is less than the first diversion threshold.

[0274] For the specific implementation of each unit of the information processing device, reference may be made to the relevant description of the above method embodiment, and a repeated description will not be made here.

[0275] It should be noted that the hardware structure of the information processing device mentioned above can be as follows: Figure 8 The structure shown, Figure 8 A schematic diagram of the structure of a device provided in an embodiment of the present application.

[0276] See also Figure 8 As shown, the device 800 includes: a processor 810, a communication interface 820 and a memory 830. The number of the processor 810 in the device 800 can be one or more. Figure 8 In the embodiment of the present application, the processor 810, the communication interface 820 and the memory 830 may be connected via a bus system or other means, wherein: Figure 8 The connection via bus system 840 is taken as an example.

[0277] The processor 810 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 810 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0278] The memory 830 may include a volatile memory (English: volatile memory), such as a random-access memory (RAM); the memory 830 may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); the memory 830 may also include a combination of the above types of memories. The memory 830 may, for example, store the route generation information mentioned in the above embodiment.

[0279] Optionally, the memory 830 stores an operating system and a program, an executable module or a data structure, or a subset thereof, or an extended set thereof, wherein the program may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks. The processor 810 may read the program in the memory 830 to implement the information processing method provided in the embodiment of the present application.

[0280] The bus system 840 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus system 840 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0281] The embodiment of the present application also provides a computer-readable storage medium, including instructions or computer programs, which, when executed on a computer, enable the computer to execute the information processing method provided in the above embodiment.

[0282] The embodiments of the present application also provide a computer program product including instructions or a computer program, which, when executed on a computer, enables the computer to execute the information processing method provided in the above embodiments.

[0283] The device or equipment mentioned in this application may be a network device, such as a switch or a router, or may be a part of a network device. In some embodiments, the device or equipment of this application may also be a functional module deployed in a device.

[0284] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0285] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0286] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical business division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0287] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0288] In addition, each business unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software business units.

[0289] If the integrated unit is implemented in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0290] Those skilled in the art will appreciate that in one or more of the above examples, the services described in the present invention may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, the services may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media may be any available media that can be accessed by a general-purpose or special-purpose computer.

[0291] The above specific implementation modes further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation modes of the present invention.

[0292] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An information processing method, characterized in that: Applied to the first node, the method comprises: Determining a positional relationship between the first node and the destination node; According to the positional relationship and the route generation information, the M next hops for the first node to reach the destination node are determined, the M next hops include the next hops corresponding to each redundant tree in the M redundant trees, and one redundant tree corresponds to one next hop. The route generation information includes: when the second node forwards data to the destination node based on each redundant tree in the M redundant trees, the interface information of the destination node receiving the data.

2. The method according to claim 1, characterized in that The network to which the first node belongs is a mesh network, and M is less than or equal to 4.

3. The method according to claim 2, characterized in that The M redundant trees include: one or more of a first redundant tree, a second redundant tree, a third redundant tree, and a fourth redundant tree, and the route generation information includes one or more of the following: When the second node sends data to the destination node based on the first redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a first end of the destination node; When the second node sends data to the destination node based on the second redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a second end of the destination node; When the second node sends data to the destination node based on the third redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a third end of the destination node; When the second node sends data to the destination node based on the fourth redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a fourth end of the destination node.

4. The method according to claim 1, characterized in that: The network to which the first node belongs is a cubic structure network, and M is less than or equal to 6.

5. The method according to claim 4, characterized in that The M redundant trees include: one or more of a fifth redundant tree, a sixth redundant tree, a seventh redundant tree, an eighth redundant tree, a ninth redundant tree, and a tenth redundant tree, and the route generation information includes one or more of the following: When the second node sends data to the destination node based on the fifth redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a first end of the destination node; When the second node sends data to the destination node based on the sixth redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a second end of the destination node; When the second node sends data to the destination node based on the seventh redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a third end of the destination node; When the second node sends data to the destination node based on the eighth redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a fourth end of the destination node; When the second node sends data to the destination node based on the ninth redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at a fifth end of the destination node; When the second node sends data to the destination node based on the tenth redundant tree, the interface of the destination node for receiving the data is an interface for communicating with a node located at the sixth end of the destination node.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: receiving a first message in a first message stream; Determine a first outbound interface for forwarding the first message according to the first message and a first target redundant tree in the M redundant trees; When the first interface utilization rate of the first output interface is higher than a first traffic diversion threshold, the first message flow is forwarded through a second output interface.

7. The method according to claim 6, characterized in that When the first interface utilization rate of the first output interface is higher than a first traffic diversion threshold, forwarding the first message flow through the second output interface includes: When the utilization rate of the first interface is higher than a first diversion threshold and the diversion level corresponding to the first packet flow matches the first diversion threshold, the first packet flow is forwarded through a second outbound interface.

8. The method according to claim 7, characterized in that The diversion level corresponding to the first message flow matches the first diversion threshold, including: The diversion level corresponding to the first message flow is smaller than the diversion level corresponding to the first diversion threshold.

9. The method according to any one of claims 6 to 8, characterized in that: The second outbound interface is an outbound interface determined based on a second target redundant tree in the M redundant trees, and forwarding the first message flow through the second outbound interface includes: According to the first message, a second message including a first path identifier is obtained, wherein the first path identifier indicates that a redundant tree used to forward the second message is a second target redundant tree among the M redundant trees; The second message is forwarded through the second outbound interface.

10. The method according to any one of claims 6 to 8, characterized in that: The first message also includes indication information, where the indication information indicates a redundant tree that has been used among the M redundant trees before the first message is forwarded to the first node, and the method further includes: The second outbound interface is determined according to the indication information.

11. The method according to claim 10, characterized in that The indication information indicates that before the first message is forwarded to the first node, the second target redundant tree in the M redundant trees has not been used, and the determining the second outbound interface according to the indication information includes: The second outbound interface is determined according to the second target redundancy tree.

12. The method according to claim 10, characterized in that The indication information indicates that the M redundant trees have all been used before the first message is forwarded to the first node, and the determining the second outbound interface according to the indication information includes: The second outbound interface is determined based on a network topology of a network to which the first node belongs.

13. The method according to any one of claims 6 to 12, characterized in that: The first message includes a second path identifier, and the second path identifier indicates that the redundant tree used to forward the first message is the first target redundant tree among the M redundant trees; The step of determining a first outbound interface for forwarding the first message according to the first message and a first target redundant tree in the M redundant trees includes: determining the first target redundant tree according to the second path identifier; The first outbound interface is determined according to the first message and the first target redundant tree.

14. The method according to any one of claims 6 to 13, characterized in that: After forwarding the first message flow through the second outbound interface, the method further includes: Obtaining a third message in the first message flow; Determine, according to the first message and the first target redundant tree, a first outbound interface for forwarding the first message; When the second interface utilization of the first output interface is less than or equal to the first reversal threshold, and the duration for which the second interface utilization is less than or equal to the first reversal threshold is greater than a first preset duration, the first message flow is forwarded through the first output interface, the first reversal threshold and the first diversion threshold correspond to the same diversion level, and the first reversal threshold is less than the first diversion threshold.

15. An information processing device, characterized in that: Applied to a first node, the device comprises: A processing unit is used to determine the positional relationship between a first node and a destination node; based on the positional relationship and route generation information, determine M next hops for the first node to reach the destination node, wherein the M next hops include the next hops corresponding to each redundant tree in the M redundant trees, and one redundant tree corresponds to one next hop; the route generation information includes: when the second node forwards data to the destination node based on each redundant tree in the M redundant trees, the interface information of the destination node receiving the data.

16. A device, characterized in that include: Processor and memory; The memory is used to store instructions or computer programs; The processor is used to execute the instructions or computer programs to perform the method according to any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that: The method comprises instructions or computer programs, which, when executed on a computer, enable the computer to execute the method according to any one of claims 1 to 14.