A method and apparatus for generating a forwarding path, a network device, and a storage medium

By acquiring and utilizing the topology information of network nodes to generate connected forwarding paths, the problem of physical link interruption caused by logical topology changes is solved, and stable packet forwarding in the SR network is achieved.

CN113748643BActive Publication Date: 2026-11-27NEW H3C TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202180001610.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-23
Publication Date
2026-11-27
Estimated Expiration
2041-06-23

AI Technical Summary

Technical Problem

In networks based on SR technology, changes in logical topology can lead to the interruption of physical links between network nodes, making it difficult to generate connected forwarding paths.

Method used

By acquiring the network node topology information that supports the target path calculation algorithm, an initial forwarding path is generated. When the path is interrupted, a connected forwarding path is generated using the topology information of network nodes that do not support the target path calculation algorithm. The forwarding path is optimized by binding segment identifiers and security authentication commands.

Benefits of technology

Even if a change in logical topology causes a physical link to be interrupted, a connected forwarding path can still be generated to ensure that packets are forwarded smoothly and reduce the workload of network nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113748643B_ABST
    Figure CN113748643B_ABST
Patent Text Reader

Abstract

A forwarding path generation method and device, a network device and a storage medium, relate to the technical field of network communication, and the method comprises: acquiring topology information of a first network node supporting a target path calculation algorithm; performing path calculation on the topology information of the first network node by using the target path calculation algorithm to generate a first forwarding path; if the first forwarding path has a path interruption, obtaining a second forwarding path from a source node to a tail node; determining, from the second forwarding path, a first network node that is in communication with a second network node to obtain a node pair; updating a second node in each node pair in the second forwarding path to a next-hop device of a first node in the node pair to obtain a forwarding path that is in communication from the source node to the tail node, and the second node in each node pair is located behind the first node in the direction of the second forwarding path. According to the scheme provided in the embodiments of the application, a connected forwarding path can still be generated in the case of a change in logical topology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of network communication technology, and in particular to a forwarding path generation method, apparatus, network device, and storage medium. Background Technology

[0002] Segment Routing (SR) is a source routing technology. Based on the Flex-Algo technology in SR, network nodes can support different path calculation algorithms, and the topology between network nodes supporting the same path calculation algorithm is considered a logical topology. Flex-Algo is a flexible algorithm within the SR IGP (Interior Gateway Protocol).

[0003] When forwarding packets in a network based on SR technology, the packet forwarding path is generated based on network nodes with physical links within the same logical topology.

[0004] However, in practical applications, the path calculation algorithms supported by network nodes may change with the network environment, causing changes in the logical topology to which the network nodes belong. For example, if the path calculation algorithms supported by two network nodes in a logical topology change, they may no longer belong to that logical topology, leading to the interruption of physical links between other network nodes in that logical topology. In this case, it becomes difficult to generate a connected forwarding path based on the network nodes in that logical topology.

[0005] Therefore, a solution is needed that can still generate a connected forwarding path even when the logical topology changes. Summary of the Invention

[0006] The purpose of this application is to provide a forwarding path generation method, apparatus, network device, and storage medium, so as to still generate a connected forwarding path even when the logical topology changes. The specific technical solution is as follows:

[0007] In a first aspect, embodiments of this application provide a method for generating a forwarding path, the method comprising:

[0008] Obtain the topology information of the first network node that supports the target path calculation algorithm;

[0009] Using the target path calculation algorithm, path calculation is performed on the topology information of the first network node to generate a first forwarding path. The first forwarding path is a forwarding path from the specified source node to the specified tail node in the first network node.

[0010] If the first forwarding path is interrupted, a second forwarding path is obtained from the source node to the tail node. The second forwarding path is a forwarding path determined by the topology information of all first network nodes and the topology information of the second network node. The second network node does not support the target path calculation algorithm.

[0011] From the second forwarding path, determine the first network node connected to the second network node to obtain the node pair;

[0012] The second node in each node pair on the second forwarding path is updated to the next-hop device of the first node in that node pair, thus obtaining a forwarding path connected from the source node to the tail node, wherein the second node in each node pair is located after the first node along the direction of the second forwarding path.

[0013] In one embodiment of this application, obtaining the second forwarding path from the source node to the tail node includes:

[0014] Identify the third network node in the first forwarding path where the path is interrupted, and the first forwarding sub-path from the source node to the third network node;

[0015] Based on the topology information of the fourth network node and the topology information of the second network node, a second forwarding sub-path is generated from the third network node to the tail node, wherein the fourth network node is: the first network node not located in the first forwarding sub-path;

[0016] The step of determining the first network node connected to the second network node from the second forwarding path to obtain the node pair includes:

[0017] From the second forwarding sub-path, determine the first network node connected to the second network node to obtain the node pair;

[0018] The step of updating the second node in each node pair on the second forwarding path to the next-hop device of the first node in that node pair, thereby obtaining a forwarding path connecting the source node to the tail node, includes:

[0019] Update the second node in each node pair on the second forwarding subpath to the next-hop device of the first node in that node pair;

[0020] Connect the first forwarding sub-path and the updated second forwarding sub-path to obtain a forwarding path that connects the source node to the tail node.

[0021] In one embodiment of this application, generating a second forwarding sub-path from the third network node to the tail node based on the topology information of the fourth network node and the second network node includes:

[0022] Using the target path calculation algorithm, based on the topology information of the fourth network node and the second network node, path calculation is performed to generate a second forwarding sub-path from the third network node to the tail node;

[0023] After the step of connecting the first forwarding sub-path and the updated second forwarding sub-path to obtain a connected forwarding path from the source node to the tail node, the method further includes:

[0024] When generating the segment list of the connected forwarding path, a binding segment identifier BSID is added between the first segment identifier SID and the second SID, so that the first node in the first node pair calls the SRv6 forwarding policy corresponding to the BSID to select the forwarding path of the second node in the first node pair. The path calculation algorithm used by the forwarding policy corresponding to the BSID is: the target path calculation algorithm, the first node pair is: the node pair in the connected forwarding path, the first SID is: the SID corresponding to the first node in the first node pair, and the second SID is: the SID corresponding to the second node in the first node pair.

[0025] In one embodiment of this application, the forwarding path generation method further includes:

[0026] When generating the segment list of the connected forwarding path, a security authentication instruction and its instruction parameters are added to the function field of the SID corresponding to each node in the first node pair.

[0027] In one embodiment of this application, generating a second forwarding sub-path from the third network node to the tail node based on the topology information of the fourth network node and the second network node includes:

[0028] The shortest path first algorithm is used to calculate the path based on the topology information of the fourth network node and the second network node, and to generate a second forwarding sub-path from the third network node to the tail node.

[0029] In one embodiment of this application, obtaining the second forwarding path from the source node to the tail node includes:

[0030] Send a path request to the control node;

[0031] The control node receives a second forwarding path from the source node, which is a forwarding path determined by the control node based on the topology information of all first network nodes and the topology information of the second network node.

[0032] Secondly, embodiments of this application provide a forwarding path generation apparatus, the apparatus comprising:

[0033] The topology acquisition module is used to acquire the topology information of the first network node that supports the target path calculation algorithm;

[0034] The path generation module is used to perform path calculation on the topology information of the first network node using the target path calculation algorithm to generate a first forwarding path, wherein the first forwarding path is a forwarding path from a specified source node to a specified tail node in the first network node.

[0035] The path acquisition module is used to obtain a second forwarding path from the source node to the tail node if the first forwarding path is interrupted. The second forwarding path is a forwarding path determined by the topology information of all first network nodes and the topology information of the second network node. The second network node does not support the target path calculation algorithm.

[0036] The node determination module is used to determine the first network node connected to the second network node from the second forwarding path, thereby obtaining a node pair;

[0037] The next-hop update module is used to update the second node in each node pair on the second forwarding path to the next-hop device of the first node in the node pair, thereby obtaining a forwarding path that connects the source node to the tail node, wherein the second node in each node pair is located after the first node along the direction of the second forwarding path.

[0038] In one embodiment of this application, the path acquisition module includes:

[0039] The sub-path determination unit is used to determine, if there is a path interruption in the first forwarding path, a third network node in the first forwarding path where the path interruption has occurred, and a first forwarding sub-path from the source node to the third network node.

[0040] The sub-path generation unit is used to generate a second forwarding sub-path from the third network node to the tail node based on the topology information of the fourth network node and the topology information of the second network node. The fourth network node is: a first network node that is not located in the first forwarding sub-path.

[0041] The node determination module is specifically used to determine the first network node connected to the second network node from the second forwarding sub-path, thereby obtaining a node pair;

[0042] The next-hop update module is specifically used to update the second node in each node pair on the second forwarding sub-path to the next-hop device of the first node in the node pair; and connect the first forwarding sub-path and the updated second forwarding sub-path to obtain a forwarding path that connects the source node to the tail node.

[0043] In one embodiment of this application, the sub-path generation unit is specifically used to perform path calculation based on the topology information of the fourth network node and the topology information of the second network node using the target path calculation algorithm, and generate a second forwarding sub-path from the third network node to the tail node.

[0044] The device further includes:

[0045] The BSID addition module is used to add a binding segment identifier BSID between the first segment identifier SID and the second SID when generating the segment list of the connected forwarding path after the next-hop update module obtains the connected forwarding path from the source node to the tail node. This allows the first node in the first node pair to call the SRv6 forwarding policy corresponding to the BSID to select the forwarding path of the second node in the first node pair. The path calculation algorithm used by the forwarding policy corresponding to the BSID is the target path calculation algorithm. The first node pair is the node pair in the connected forwarding path. The first SID is the SID corresponding to the first node in the first node pair. The second SID is the SID corresponding to the second node in the first node pair.

[0046] In one embodiment of this application, the forwarding path generation device further includes:

[0047] The information addition module is used to add a security authentication instruction and the instruction parameters of the security authentication instruction to the function field of the SID corresponding to each node in the first node pair when generating the segment list of the connected forwarding path.

[0048] In one embodiment of this application, the sub-path generation unit is specifically used to perform path calculation based on the topology information of the fourth network node and the second network node using the shortest path first algorithm, and generate a second forwarding sub-path from the third network node to the tail node.

[0049] In one embodiment of this application, the path acquisition module is specifically used to send a path request to the control node if the first forwarding path is interrupted; and to receive a second forwarding path fed back by the control node, wherein the second forwarding path is a forwarding path from the source node to the tail node determined by the control node based on the topology information of all first network nodes and the topology information of the second network node.

[0050] Thirdly, embodiments of this application provide a network device including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions that can be executed by the processor, the processor being prompted by the machine-executable instructions to implement the forwarding path generation method steps described in any of the first aspects above.

[0051] Fourthly, embodiments of this application provide a machine-readable storage medium storing machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the forwarding path generation method steps described in any of the first aspects above.

[0052] As can be seen from the above, when generating a forwarding path using the scheme provided in this application embodiment, if the target path calculation algorithm is used to calculate the path based on the topology information of the first network node, the generated first forwarding path may have path interruptions. This does not mean that a connected forwarding path cannot be generated; rather, a connected forwarding path is generated by using a second network node that does not support the target path calculation algorithm. Based on this, even if a change in the logical topology causes a physical link interruption between network nodes within that logical topology, a connected forwarding path can still be guaranteed. Attached Figure Description

[0053] To more clearly illustrate the technical solutions of the embodiments of this application and the prior art, the drawings used in the embodiments and the prior art are briefly introduced below. Obviously, the drawings described below are only some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings.

[0054] Figure 1a This is a schematic diagram of a first network topology provided in an embodiment of this application;

[0055] Figure 1b This is a schematic diagram of a second network topology provided in an embodiment of this application;

[0056] Figure 1c This is a schematic diagram of a third network topology provided in an embodiment of this application;

[0057] Figure 1d This is a schematic diagram of a fourth network topology provided in the embodiments of this application;

[0058] Figure 2 A flowchart illustrating the first forwarding path generation method provided in this application embodiment;

[0059] Figure 3 A flowchart illustrating the second forwarding path generation method provided in this application embodiment;

[0060] Figure 4A schematic diagram of the structure of the first forwarding path generation device provided in the embodiments of this application;

[0061] Figure 5 This is a schematic diagram of the structure of the second forwarding path generation device provided in the embodiments of this application;

[0062] Figure 6 This is a schematic diagram of the structure of a network device provided in an embodiment of this application. Detailed Implementation

[0063] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided with reference to the accompanying drawings and embodiments. Obviously, the described embodiments are merely some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application. Furthermore, the embodiments described below are only used to illustrate and explain the technical solutions provided by the embodiments of this application, and are not intended to limit this application. Moreover, the embodiments and features in the embodiments of this application can be combined with each other without conflict.

[0064] In existing technologies, when generating forwarding paths for networks based on Flex-Algo technology in SR, it relies on physical links between network nodes within the same logical topology. However, changes in the logical topology may cause interruptions in these physical links, making it difficult to generate a connected forwarding path. To address this technical problem, embodiments of this application provide a forwarding path generation method, apparatus, network device, and storage medium.

[0065] The following is combined Figures 1a-1c The above technical issues will be illustrated through specific examples.

[0066] In a network based on Flex-Algo technology in SR, each network node can publish the path calculation algorithms it supports. The topology of network nodes supporting the same path calculation algorithm is considered a logical topology, thus dividing the physical topology of the entire network into multiple logical topologies. Each logical topology can be called a network slice, used to provide users with different types or levels of services.

[0067] Furthermore, SR technology allows source nodes in the forwarding path to insert segmentation information into packets. In IPv6 (Internet Protocol Version 6) communication between network nodes, the source node specifically inserts a segmentation list into the packet. For ease of description, the packet with the inserted segmentation list is called an SRv6 packet. The segmentation list of the forwarding path indicates the order in which network nodes forward packets within that path. Thus, when a network node receives an SRv6 packet, it can forward the packet according to the segmentation list carried within the SRv6 packet.

[0068] Given the above, a forwarding path needs to be generated before forwarding packets. In related technologies, when generating forwarding paths for networks based on Flex-Algo technology in SR, the forwarding path is generated based on network nodes within the logical topology. That is, all network nodes included in the generated forwarding path are within the same logical topology, meaning that all network nodes in the generated forwarding path support the same path calculation algorithm. Furthermore, the generation of a forwarding path depends on the physical links between network nodes within the logical topology. If the physical links between network nodes within the logical topology cannot connect the specified source node to the specified tail node, the forwarding path cannot be successfully generated.

[0069] See Figure 1a , Figure 1a A schematic diagram of the physical topology of a network is shown. The solid black lines in the diagram represent physical links between network nodes, and R0-R7 represent eight network nodes.

[0070] Assume that network nodes R0, R1, R2, R6, and R7 support path calculation algorithm 1, and network nodes R0, R4, R2, R3, and R7 support path calculation algorithm 2.

[0071] Thus, R0, R1, R2, R6, and R7 belong to a logical topology, based on Figure 1a The physical topology shown can be used to obtain, for example: Figure 1b The logical topology is shown. Since R3 and R5 do not support path calculation algorithm 1, the physical link between R2 and R6 is interrupted. Therefore, based on the physical links between R0, R1, R2, R6, and R7, a forwarding path connecting R0 to R7 cannot be generated.

[0072] R0, R4, R2, R3, and R7 belong to a logical topology, based on Figure 1a The physical topology shown can be used to obtain, for example: Figure 1c The logical topology is shown. This logical topology is connected, and a forwarding path connecting R0 to R7 can be generated based on R0, R4, R2, R3, and R7.

[0073] The forwarding path generation method, apparatus, network device, and storage medium provided in this application will be described in detail below through specific embodiments.

[0074] First, the execution subject of the embodiments of this application will be described.

[0075] The execution entity in this embodiment is a network node residing in an FCE (Path Computation Element), referred to as an execution node for ease of description. This execution node can be a routing device or a control node in the network, wherein the aforementioned control node is a device in the network with control functions.

[0076] When the execution node is a routing device, the execution node can be the source node specified in the forwarding path to be generated.

[0077] See Figure 2 , Figure 2 This is a flowchart illustrating a first forwarding path generation method provided in an embodiment of this application. The method includes the following steps S201-S205. Steps S201-S205 are executed by the aforementioned execution node.

[0078] Step S201: Obtain the topology information of the first network node that supports the target path calculation algorithm.

[0079] Network nodes can advertise the path calculation algorithms they support in a network based on SR technology, allowing execution nodes to learn about the path calculation algorithms supported by each network node. Therefore, in this step, the execution node can identify the first network node that supports the target path calculation algorithm through the announcements published by each network node.

[0080] A network node can support one path calculation algorithm or multiple path calculation algorithms.

[0081] The aforementioned path calculation algorithm refers to the algorithm used to calculate the forwarding path.

[0082] For example, the path calculation algorithm mentioned above could be an algorithm such as Flex-Algo. Each Flex-Algo algorithm can be represented by a value in the range of 128-255.

[0083] Step S202: Using the target path calculation algorithm, perform path calculation on the topology information of the first network node to generate the first forwarding path.

[0084] The first forwarding path mentioned above is the forwarding path from the source node specified in the first network node to the specified tail node.

[0085] Specifically, the execution node can perform path calculation on the topology information of the first network node based on the constraints of the target path calculation algorithm.

[0086] For example, Flex-Algo can include a set of constraints. These constraints can be for link metrics, such as latency; they can be for path calculation algorithms, such as the SPF (Shortest Path First) algorithm; or they can be for topology information, such as specifying which links should be included or removed from the forwarding path. Therefore, when the target path calculation algorithm is Flex-Algo, path calculation can be performed on the topology information of the first network node based on the constraints included in Flex-Algo.

[0087] Step S203: If the first forwarding path is interrupted, obtain the second forwarding path from the source node to the tail node.

[0088] The second forwarding path is determined by the topology information of all first network nodes and the topology information of the second network node. The second network node does not support the target path calculation algorithm.

[0089] The second forwarding path can be a complete forwarding path from the source node to the tail node. Alternatively, the second forwarding path can be a collection of multiple forwarding sub-paths, in which case these sub-paths can be connected to form a complete forwarding path from the source node to the tail node.

[0090] Specifically, if the physical link between the first network nodes cannot connect the source node and the tail node, the generated first forwarding path is only a partial forwarding path from the source node to the tail node. In this case, the last hop of the first forwarding path is a first network node that is not connected to other first network nodes, not the aforementioned tail node. Given the above situation, if the last hop in the first forwarding path is not the aforementioned tail node, the executing node can consider that the first forwarding path has a path interruption.

[0091] In addition to the first network node, a second network node also exists in the network. Physical links may exist between the first network nodes, and also between the first and second network nodes. In this step, after the executing node determines that the first forwarding path is interrupted, it no longer limits itself to the first network node but also includes the second network node in the path calculation process, aiming to connect the two first network nodes through the physical links between the first and second network nodes, and between the second network nodes themselves.

[0092] In one embodiment of this application, the execution node can perform path calculation based on the topology information of all first network nodes and the topology information of all second network nodes, thereby obtaining a second forwarding path from the source node to the tail node.

[0093] The path calculation algorithm used in the path calculation can be the shortest path first algorithm or the target path calculation algorithm mentioned above.

[0094] Step S204: From the second forwarding path, determine the first network node connected to the second network node to obtain the node pair.

[0095] The second forwarding path may contain a sub-path connected by a second network node, or it may contain multiple sub-paths connected by a second network node.

[0096] Given the above, after obtaining the second forwarding path, the executing node can check each network node hop-by-hop along the direction from the source node to the tail node, determine the first network node directly connected to the second network node as the first node of a sub-path, and determine the next first network node directly connected to the second network node as the second node of that sub-path. The aforementioned first node and second node form a node pair, and along the direction of the second forwarding path, the second node is located after the first node.

[0097] In this case, if there are multiple sub-paths in the second forwarding path, this step can obtain multiple node pairs.

[0098] Step S205: Update the second node in each node pair on the second forwarding path to the next-hop device of the first node in the node pair, thus obtaining a forwarding path that connects the source node to the tail node.

[0099] In each node pair, the second node is located after the first node along the direction of the second forwarding path.

[0100] In the second forwarding path, the second node in each node pair is updated to be the next-hop device of the first node in that node pair, thus realizing the second forwarding path update. The second network node can be removed from the second forwarding path, and only the first network node exists in the second forwarding path. This not only ensures that the network nodes in the forwarding path all come from the same logical topology, but also ensures that the forwarding path is successfully generated even if the physical links between the first network nodes are not connected.

[0101] See Figure 1d , showed Figure 1b In the event that the forwarding path shown is interrupted, the forwarding path generated by the scheme provided in the embodiments of this application is applied. Figure 1dR2 and R6 are connected by a dashed line, indicating that R2 is connected to R6 through a second network node.

[0102] After generating the forwarding path according to the aforementioned steps, when each first network node in the forwarding path forwards the SRv6 packet, it can know the next-hop device based on the segment list of the forwarding path carried in the packet header of the SRv6 packet. At this time, even if there is no physical link between the first network node and the next-hop device, the first network node can still perform path calculation based on the shortest path first algorithm or the target path calculation algorithm to obtain the forwarding path between itself and the next-hop device, and then forward the SRv6 packet to the next-hop device along the obtained forwarding path.

[0103] As can be seen from the above, when generating a forwarding path using the scheme provided in this application embodiment, if the target path calculation algorithm is used to calculate the path based on the topology information of the first network node, the generated first forwarding path may have path interruptions. This does not mean that a connected forwarding path cannot be generated; rather, a connected forwarding path is generated by using a second network node that does not support the target path calculation algorithm. Based on this, even if a change in the logical topology causes a physical link interruption between network nodes within that logical topology, a connected forwarding path can still be guaranteed.

[0104] Specifically, the aforementioned second forwarding path can be generated not only by the execution node but also by the control node with control functions in the network. The control node can not only obtain the path calculation algorithms announced by each network node in the network, but also collect the topology information of network nodes in the network through BGP-LS (BGP Link-State) and other methods.

[0105] Therefore, in one embodiment of this application, the execution node obtaining the second forwarding path in step S203 above can be achieved through the control node.

[0106] Specifically, the execution node sends a path request to the control node, which requests the control node to generate a second forwarding path. Based on the topology information of all first network nodes and the second network nodes, the control node determines the second forwarding path from the source node to the tail node and feeds back the second forwarding path to the execution node, thereby enabling the execution node to obtain the second forwarding path.

[0107] The control node can use the shortest path first algorithm to determine the second forwarding path, or it can use the target path calculation algorithm to determine the second forwarding path. Of course, it can also use other algorithms to determine the second forwarding path. This application does not limit this.

[0108] As can be seen from the above, in the solution provided in this embodiment, because the control node can grasp the path calculation algorithms supported by network nodes and the topology information of the network nodes, it can generate a relatively accurate forwarding path. Furthermore, the control node undertakes the task of generating the second forwarding path, thereby reducing the workload of the network node, which is the main execution entity.

[0109] In one embodiment of this application, see [link to embodiment]. Figure 3 It provides a flowchart of the second forwarding path generation method, which is consistent with the aforementioned Figure 2 Compared to the illustrated embodiment, in step S203 above, if the first forwarding path is interrupted, a second forwarding path from the source node to the tail node is obtained, including the following steps S203A and S203B.

[0110] Step S203A: If there is a path interruption in the first forwarding path, determine the third network node in the first forwarding path where the path interruption occurred, and the first forwarding sub-path from the source node to the third network node.

[0111] Specifically, after the execution node generates the first forwarding path using the target path calculation algorithm, it can check the last hop in the first forwarding path to see if it is the aforementioned tail node. If it is not the aforementioned tail node, it indicates that the first forwarding path is interrupted, and the aforementioned last hop is referred to as the third network node. The aforementioned first forwarding path is also the forwarding path from the source node to the third network node. Therefore, the first forwarding path can be used as the first forwarding sub-path in this step.

[0112] Step S203B: Based on the topology information of the fourth network node and the second network node, generate a second forwarding sub-path from the third network node to the tail node.

[0113] The fourth network node is the first network node that is not located in the first forwarding sub-path.

[0114] Since the first forwarding sub-path is only a forwarding path between the source node and the third network node, this forwarding path cannot forward the packet to the tail node. Furthermore, because a situation arises where the third network node cannot connect to the fourth network node, and the third network node may be able to connect to the fourth network node via the second network node, this step generates a second forwarding sub-path from the third network node to the tail node based on the topology information of the fourth and second network nodes.

[0115] Different path calculation algorithms can be used when the execution node generates the second forwarding sub-path, which will be explained in detail in subsequent embodiments and will not be elaborated here.

[0116] Based on the above, in the aforementioned step S204, the executing node determines the first network node connected to the second network node from the second forwarding path to obtain a node pair, including the following step S204A.

[0117] Step S204A: From the second forwarding sub-path, determine the first network node connected to the second network node to obtain the node pair.

[0118] Since the first forwarding sub-path is generated using the target path calculation algorithm for the first network node, it is certain that there will be no first network node connected to the second network node in the first forwarding sub-path. To improve the efficiency of forwarding path generation, this step can determine the first network node connected to the second network node only in the second forwarding sub-path, thus obtaining node pairs.

[0119] Specifically, the execution node can check each network node hop by hop along the direction from the third network node to the tail node, determine the first network node directly connected to the second network node as the first node, and determine the next first network node directly connected to the second network node as the second node. The aforementioned first node and second node form a node pair.

[0120] In the aforementioned step S205, the executing node updates the second node in each node pair on the second forwarding path to the next-hop device of the first node in that node pair, thereby obtaining a forwarding path that connects the source node to the tail node, including the following steps S205A and S205B.

[0121] Step S205A: Update the second node in each node pair on the second forwarding subpath to the next-hop device of the first node in that node pair.

[0122] The execution node updates the second forwarding subpath by taking the second node in each node pair as the next-hop device of the first node in that node pair. This can remove the second network node from the second forwarding subpath, so that only the first network node exists in the second forwarding subpath.

[0123] Step S205B: Connect the first forwarding sub-path and the updated second forwarding sub-path to obtain a forwarding path that connects the source node to the tail node.

[0124] Since the first forwarding sub-path is a forwarding path from the source node to the third network node, and the second forwarding sub-path is a forwarding path from the third network node to the tail node, both the first and second forwarding sub-paths are part of a forwarding path from the source node to the tail node. Furthermore, both the first and second forwarding sub-paths contain a third network node. Therefore, the first and second forwarding sub-paths can be connected through the third network node to obtain a complete forwarding path from the source node to the tail node.

[0125] As can be seen from the above, in the solution provided by this embodiment, the first forwarding path obtained by the target path calculation algorithm is used as the first forwarding sub-path, which ensures that all network nodes in the first forwarding sub-path are first network nodes. Then, node pairs are determined only for the second forwarding sub-path. Under the premise of ensuring the accuracy of the determined node pairs, the efficiency of generating forwarding paths is improved.

[0126] The following two different embodiments illustrate how to generate the second forwarding sub-path.

[0127] In one embodiment of this application, in step S203B above, when the execution node generates a second forwarding sub-path from the third network node to the tail node based on the topology information of the fourth network node and the second network node, a target path calculation algorithm can be used to perform path calculation on the topology information of the fourth network node and the second network node to generate a second forwarding sub-path from the third network node to the tail node.

[0128] Since the second forwarding sub-path is generated using the target path calculation algorithm, in order to ensure that the first node in each node pair can accurately forward the SRv6 message to the second node in the node pair, the first node must be aware of the path calculation algorithm used to generate the second forwarding sub-path.

[0129] Given the above, after step S205B connects the first forwarding sub-path and the updated second forwarding sub-path to obtain a connected forwarding path from the source node to the tail node, when the execution node generates the segment list of the connected forwarding path, a BSID (Binding Segment Identifier) ​​can be added between the first SID (Segment Identifier) ​​and the second SID. This ensures that the first node in the first node pair uses the SRv6 forwarding policy corresponding to the BSID to select the forwarding path of the second node in the first node pair. This guarantees that when the source node adds a SID to the packet, the BSID is also successfully added to the packet.

[0130] The path calculation algorithm used by the forwarding strategy corresponding to the above BSID is as follows: target path calculation algorithm, the first node pair is: the node pair in the connected forwarding path, the first SID is: the SID corresponding to the first node in the first node pair, and the second SID is: the SID corresponding to the second node in the first node pair.

[0131] The segment list described above stores multiple SIDs, each corresponding to a network node in the forwarding path. Each network node's corresponding SID can store: the network node's identifier, the operation instructions the network node needs to perform on the SRv6 message, and the instruction parameters for those operation instructions.

[0132] Since the solution provided in this embodiment adds a BSID between the first SID and the second SID when generating the segment list of connected forwarding paths, and the path calculation algorithm used by the forwarding strategy corresponding to the BSID is the target path calculation algorithm, and the second forwarding sub-path before the update is also generated using the target path calculation algorithm, the first node in the node pair can select the path according to the second forwarding sub-path before the update, and then forward the SRv6 packet to the second node in the node pair, thereby effectively ensuring accurate forwarding of SRv6 packets.

[0133] In one implementation, since forwarding an SRv6 packet from the first node to the second node in each node pair requires passing through a second network node, to ensure the security of the forwarded SRv6 packet, when the execution node generates a segmented list of connected forwarding paths, a security authentication command and its command parameters can be added to the function field of the SID corresponding to each node in the first node pair. This way, after receiving the SRv6 packet to be forwarded, the first and second nodes in each node pair can execute the security authentication command carried in the SID according to the command parameters, thereby ensuring the security of the forwarded SRv6 packet. This also ensures that when the source node adds the SID to the packet, it also successfully adds the security authentication command and its command parameters to the packet simultaneously.

[0134] For example, the aforementioned security authentication command can be a security authentication command for IPSec or a security authentication command for SRv6HMAC.

[0135] In another embodiment of this application, the shortest path first algorithm can be used as the default path calculation algorithm. In this case, in step S203B above, when the executing node generates a second forwarding sub-path from the third network node to the tail node based on the topology information of the fourth network node and the second network node, the shortest path first algorithm can be used to perform path calculation on the topology information of the fourth network node and the second network node to generate the second forwarding sub-path from the third network node to the tail node. Since the shortest path first algorithm is the default path calculation algorithm, it is not necessary to separately inform the node that the path calculation algorithm used by the first node in the pair when generating the second forwarding sub-path is the shortest path first algorithm.

[0136] When the first node in a node pair receives an SRv6 message, it can directly select a path using the shortest path first algorithm and forward the SRv6 message to the second node in the pair. This not only ensures accurate SRv6 message forwarding but also reduces the amount of information carried by the SRv6 message.

[0137] The following is combined Figure 1b and Figure 1d The topology diagram shown illustrates the forwarding path generation scheme provided in the embodiments of this application.

[0138] Assume that the target path calculation algorithm is the path calculation algorithm 1 mentioned earlier. Network nodes R0, R1, R2, R6, and R7 all support path calculation algorithm 1. That is, the first network nodes include: R0, R1, R2, R6, and R7, and the second network nodes include: R3, R4, and R5.

[0139] The specified source node is R0, and the specified tail node is R7.

[0140] Although physical links exist between R0, R1, and R2, and between R6 and R7, the absence of a physical link between R2 and R6 prevents R0 from connecting with R7. Therefore, path calculation algorithm 1 is used to calculate the path based on the topology information of R0, R1, R2, R6, and R7. The resulting first forwarding path is R0->R1->R2, excluding the path R6->R7. The last hop of this first forwarding path is R2, not R7, indicating a path interruption in the first forwarding path.

[0141] At this point, the third network node is R2, and the first forwarding sub-path is: R0->R1->R2. The fourth network nodes include: R6 and R7.

[0142] In one scenario, the shortest path first (SLT) algorithm is used to calculate the path for the topology information of R6, R7, R3, R4, and R5, generating a second forwarding sub-path. If the generated second forwarding sub-path is: R2->R3->R6->R7, then a node pair includes R2 and R6, with R2 as the first node and R6 as the second node. Updating R6 in the second forwarding sub-path to be the next-hop device of R2 results in the updated second forwarding sub-path being: R2->R6->R7. The connected forwarding path obtained by linking the first and second forwarding sub-paths is: R0->R1->R2->R6->R7.

[0143] In this scenario, when generating the segment list for the connected forwarding path, the segment list includes the SIDs corresponding to R0, R1, R2, R6, and R7 in sequence. When R2 receives an SRv6 packet, it can determine from the segment list that the next-hop device is R6. Since R2 knows that there is no physical link between it and R6, when R2 forwards the SRv6 packet to R6, it uses the shortest path first algorithm to calculate the path to forward the SRv6 packet to R6. This can be calculated to involve forwarding the SRv6 packet to R6 via R3, then R2 forwarding the SRv6 packet to R3, and finally R3 forwarding the SRv6 packet to R6.

[0144] In another scenario, path calculation algorithm 1 is used to calculate the path for the topology information of R6, R7, R3, R4, and R5, generating a second forwarding sub-path. If the generated second forwarding sub-path is: R2->R5->R6->R7, then a node pair includes R2 and R6, with R2 as the first node and R6 as the second node. Updating R6 in the second forwarding sub-path to be the next-hop device of R2 results in the updated second forwarding sub-path being: R2->R6->R7. The connected forwarding path obtained by connecting the first and second forwarding sub-paths is: R0->R1->R2->R6->R7.

[0145] In this scenario, when generating the segment list for the connected forwarding path, the segment list includes, in order, the SIDs corresponding to R0, R1, R2, R6, and R7, with a BSID added between the SIDs corresponding to R2 and R6. When R2 receives an SRv6 packet, it can determine from the segment list that the next-hop device is R6. Since R2 knows there is no physical link between it and R6, when forwarding the SRv6 packet to R6, R2 uses the SRv6 forwarding policy corresponding to the BSID to select the forwarding path to R6. Because the path calculation algorithm used by the SRv6 forwarding policy corresponding to the BSID is Path Calculation Algorithm 1, it can be calculated that R2 forwards the SRv6 packet to R6 via R5, then R2 forwards the SRv6 packet to R5, and then R5 forwards the SRv6 packet to R6.

[0146] Corresponding to the above-described forwarding path generation method, this application also provides a forwarding path generation apparatus.

[0147] See Figure 4 , Figure 4 This application provides a schematic diagram of a forwarding path generation device, which includes:

[0148] The topology acquisition module 401 is used to acquire the topology information of the first network node that supports the target path calculation algorithm;

[0149] The path generation module 402 is used to perform path calculation on the topology information of the first network node using the target path calculation algorithm to generate a first forwarding path, wherein the first forwarding path is a forwarding path from the specified source node to the specified tail node in the first network node.

[0150] The path acquisition module 403 is used to obtain a second forwarding path from the source node to the tail node if the first forwarding path is interrupted. The second forwarding path is a forwarding path determined by the topology information of all first network nodes and the topology information of the second network node. The second network node does not support the target path calculation algorithm.

[0151] The node determination module 404 is used to determine the first network node connected to the second network node from the second forwarding path, and obtain the node pair;

[0152] The next-hop update module 405 is used to update the second node in each node pair on the second forwarding path to the next-hop device of the first node in the node pair, thereby obtaining a forwarding path that connects the source node to the tail node, wherein the second node in each node pair is located after the first node along the direction of the second forwarding path.

[0153] As can be seen from the above, when generating a forwarding path using the scheme provided in this application embodiment, if the target path calculation algorithm is used to calculate the path based on the topology information of the first network node, the generated first forwarding path may have path interruptions. This does not mean that a connected forwarding path cannot be generated; rather, a connected forwarding path is generated by using a second network node that does not support the target path calculation algorithm. Based on this, even if a change in the logical topology causes a physical link interruption between network nodes within that logical topology, a connected forwarding path can still be guaranteed.

[0154] In one embodiment of this application, see [link to embodiment]. Figure 5 A schematic diagram of the structure of a second forwarding path generation device is provided, which is similar to the aforementioned Figure 4 Compared to the illustrated embodiment, the path acquisition module 403 includes:

[0155] Sub-path determination unit 403A is used to determine, if there is a path interruption in the first forwarding path, a third network node in the first forwarding path where the path interruption has occurred, and a first forwarding sub-path from the source node to the third network node.

[0156] Sub-path generation unit 403B is used to generate a second forwarding sub-path from the third network node to the tail node based on the topology information of the fourth network node and the topology information of the second network node. The fourth network node is: a first network node that is not located in the first forwarding sub-path.

[0157] The node determination module 404 is specifically used to determine the first network node connected to the second network node from the second forwarding sub-path, thereby obtaining a node pair;

[0158] The next-hop update module 405 is specifically used to update the second node in each node pair on the second forwarding sub-path to the next-hop device of the first node in the node pair; and connect the first forwarding sub-path and the updated second forwarding sub-path to obtain a forwarding path that connects the source node to the tail node.

[0159] As can be seen from the above, in the solution provided by this embodiment, the first forwarding path obtained by the target path calculation algorithm is used as the first forwarding sub-path, which ensures that all network nodes in the first forwarding sub-path are first network nodes. Then, node pairs are determined only for the second forwarding sub-path. Under the premise of ensuring the accuracy of the determined node pairs, the efficiency of generating forwarding paths is improved.

[0160] In one embodiment of this application, the sub-path generation unit 403B is specifically used to perform path calculation based on the topology information of the fourth network node and the topology information of the second network node using the target path calculation algorithm, and generate a second forwarding sub-path from the third network node to the tail node.

[0161] The device further includes:

[0162] The BSID addition module is used to add a binding segment identifier BSID between the first segment identifier SID and the second SID when generating the segment list of the connected forwarding path after the next-hop update module obtains the connected forwarding path from the source node to the tail node. This allows the first node in the first node pair to call the SRv6 forwarding policy corresponding to the BSID to select the forwarding path of the second node in the first node pair. The path calculation algorithm used by the forwarding policy corresponding to the BSID is the target path calculation algorithm. The first node pair is the node pair in the connected forwarding path. The first SID is the SID corresponding to the first node in the first node pair. The second SID is the SID corresponding to the second node in the first node pair.

[0163] Since the solution provided in this embodiment adds a BSID between the first SID and the second SID when generating the segment list of connected forwarding paths, and the path calculation algorithm used by the forwarding strategy corresponding to the BSID is the target path calculation algorithm, and the second forwarding sub-path before the update is also generated using the target path calculation algorithm, the first node in the node pair can select the path according to the second forwarding sub-path before the update, and then forward the SRv6 packet to the second node in the node pair, thereby effectively ensuring accurate forwarding of SRv6 packets.

[0164] In one embodiment of this application, the apparatus further includes:

[0165] The information addition module is used to add a security authentication instruction and the instruction parameters of the security authentication instruction to the function field of the SID corresponding to each node in the first node pair when generating the segment list of the connected forwarding path.

[0166] In this way, after the first and second nodes in each node pair receive the SRv6 message to be forwarded, they can execute the security authentication command carried in the SID according to the command parameters carried in the SID, thereby ensuring the security of the SRv6 message to be forwarded.

[0167] In one embodiment of this application, the sub-path generation unit 403B is specifically used to perform path calculation based on the topology information of the fourth network node and the topology information of the second network node using the shortest path first algorithm, and generate a second forwarding sub-path from the third network node to the tail node.

[0168] When the first node in a node pair receives an SRv6 message, it can directly select a path using the shortest path first algorithm and forward the SRv6 message to the second node in the pair. This not only ensures accurate SRv6 message forwarding but also reduces the amount of information carried by the SRv6 message.

[0169] In one embodiment of this application, the path acquisition module 403 is specifically used to send a path request to the control node if the first forwarding path is interrupted; and to receive a second forwarding path fed back by the control node, wherein the second forwarding path is a forwarding path from the source node to the tail node determined by the control node based on the topology information of all first network nodes and the topology information of the second network node.

[0170] As can be seen from the above, in the solution provided in this embodiment, because the control node can grasp the path calculation algorithms supported by network nodes and the topology information of the network nodes, it can generate a relatively accurate forwarding path. Furthermore, the control node undertakes the task of generating the second forwarding path, thereby reducing the workload of the network node, which is the main execution entity.

[0171] Corresponding to the above-described forwarding path generation method, this application also provides a network device.

[0172] See Figure 6 , Figure 6 A schematic diagram of a network device is provided. The network device includes a processor 601 and a machine-readable storage medium 602. The machine-readable storage medium 602 stores machine-executable instructions that can be executed by the processor 601. The processor 601 is prompted by the machine-executable instructions to implement the forwarding path generation method steps described in the foregoing method embodiments.

[0173] Corresponding to the above-described forwarding path generation method, this application embodiment also provides a machine-readable storage medium storing machine-executable instructions. When called and executed by a processor, the machine-executable instructions cause the processor to implement the forwarding path generation method steps described in the foregoing method embodiment.

[0174] Corresponding to the above-described forwarding path generation method, this application also provides a computer program product containing instructions, which, when run on a computer, causes the computer to execute the forwarding path generation method steps described in the foregoing method embodiments.

[0175] It should be noted that the aforementioned machine-readable storage medium may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the aforementioned machine-readable storage medium may also be at least one storage device located remotely from the aforementioned processor.

[0176] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0177] In this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, without necessarily requiring or implying any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0178] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, network devices, machine-readable storage media, and computer program products are basically similar to the method embodiments, and therefore the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0179] The above description is only a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A method for generating forwarding paths, characterized in that, The method includes: Obtain the topology information of the first network node that supports the target path calculation algorithm; Using the target path calculation algorithm, path calculation is performed on the topology information of the first network node to generate a first forwarding path. The first forwarding path is a forwarding path from the specified source node to the specified tail node in the first network node. If the first forwarding path is interrupted, a second forwarding path is obtained from the source node to the tail node. The second forwarding path is a forwarding path determined by the topology information of all first network nodes and the topology information of the second network node. The second network node does not support the target path calculation algorithm. From the second forwarding path, a first network node connected to the second network node is determined to obtain a node pair. Along the direction from the source node to the tail node, a first network node directly connected to the second network node is determined as the first node, and the next first network node directly connected to the second network node is determined as the second node. The first node and the second node form a node pair. The second node in each node pair on the second forwarding path is updated to the next-hop device of the first node in that node pair, thus obtaining a forwarding path connected from the source node to the tail node, wherein the second node in each node pair is located after the first node along the direction of the second forwarding path.

2. The method according to claim 1, characterized in that, Obtaining the second forwarding path from the source node to the tail node includes: Identify the third network node in the first forwarding path where the path is interrupted, and the first forwarding sub-path from the source node to the third network node; Based on the topology information of the fourth network node and the topology information of the second network node, a second forwarding sub-path is generated from the third network node to the tail node, wherein the fourth network node is: the first network node not located in the first forwarding sub-path; The step of determining the first network node connected to the second network node from the second forwarding path to obtain the node pair includes: From the second forwarding sub-path, determine the first network node connected to the second network node to obtain the node pair; The step of updating the second node in each node pair on the second forwarding path to the next-hop device of the first node in that node pair, thereby obtaining a forwarding path connecting the source node to the tail node, includes: Update the second node in each node pair on the second forwarding subpath to the next-hop device of the first node in that node pair; Connect the first forwarding sub-path and the updated second forwarding sub-path to obtain a forwarding path that connects the source node to the tail node.

3. The method according to claim 2, characterized in that, The generation of a second forwarding sub-path from the third network node to the tail node, based on the topology information of the fourth network node and the second network node, includes: Using the target path calculation algorithm, based on the topology information of the fourth network node and the second network node, path calculation is performed to generate a second forwarding sub-path from the third network node to the tail node; After the step of connecting the first forwarding sub-path and the updated second forwarding sub-path to obtain a connected forwarding path from the source node to the tail node, the method further includes: When generating the segment list of the connected forwarding path, a binding segment identifier BSID is added between the first segment identifier SID and the second SID, so that the first node in the first node pair calls the SRv6 forwarding policy corresponding to the BSID to select the forwarding path of the second node in the first node pair. The path calculation algorithm used by the forwarding policy corresponding to the BSID is: the target path calculation algorithm, the first node pair is: the node pair in the connected forwarding path, the first SID is: the SID corresponding to the first node in the first node pair, and the second SID is: the SID corresponding to the second node in the first node pair.

4. The method according to claim 3, characterized in that, The method further includes: When generating the segment list of the connected forwarding path, a security authentication instruction and its instruction parameters are added to the function field of the SID corresponding to each node in the first node pair.

5. The method according to claim 2, characterized in that, The generation of a second forwarding sub-path from the third network node to the tail node, based on the topology information of the fourth network node and the second network node, includes: The shortest path first algorithm is used to calculate the path based on the topology information of the fourth network node and the second network node, and to generate a second forwarding sub-path from the third network node to the tail node.

6. The method according to claim 1, characterized in that, Obtaining the second forwarding path from the source node to the tail node includes: Send a path request to the control node; The control node receives a second forwarding path from the source node, which is a forwarding path determined by the control node based on the topology information of all first network nodes and the topology information of the second network node.

7. A forwarding path generation device, characterized in that, The device includes: The topology acquisition module is used to acquire the topology information of the first network node that supports the target path calculation algorithm; The path generation module is used to perform path calculation on the topology information of the first network node using the target path calculation algorithm to generate a first forwarding path, wherein the first forwarding path is a forwarding path from a specified source node to a specified tail node in the first network node. The path acquisition module is used to obtain a second forwarding path from the source node to the tail node if the first forwarding path is interrupted. The second forwarding path is a forwarding path determined by the topology information of all first network nodes and the topology information of the second network node. The second network node does not support the target path calculation algorithm. The node determination module is used to determine the first network node connected to the second network node from the second forwarding path to obtain a node pair. Specifically, along the direction from the source node to the tail node, the first network node directly connected to the second network node is determined as the first node, and the next first network node directly connected to the second network node is determined as the second node. The first node and the second node form a node pair. The next-hop update module is used to update the second node in each node pair on the second forwarding path to the next-hop device of the first node in the node pair, thereby obtaining a forwarding path that connects the source node to the tail node, wherein the second node in each node pair is located after the first node along the direction of the second forwarding path.

8. The apparatus according to claim 7, characterized in that, The path acquisition module includes: The sub-path determination unit is used to determine, if there is a path interruption in the first forwarding path, a third network node in the first forwarding path where the path interruption has occurred, and a first forwarding sub-path from the source node to the third network node. The sub-path generation unit is used to generate a second forwarding sub-path from the third network node to the tail node based on the topology information of the fourth network node and the topology information of the second network node. The fourth network node is: a first network node that is not located in the first forwarding sub-path. The node determination module is specifically used to determine the first network node connected to the second network node from the second forwarding sub-path, thereby obtaining a node pair; The next-hop update module is specifically used to update the second node in each node pair on the second forwarding sub-path to the next-hop device of the first node in the node pair; and connect the first forwarding sub-path and the updated second forwarding sub-path to obtain a forwarding path that connects the source node to the tail node.

9. The apparatus according to claim 8, characterized in that, The sub-path generation unit is specifically used to perform path calculation based on the topology information of the fourth network node and the topology information of the second network node using the target path calculation algorithm, and generate a second forwarding sub-path from the third network node to the tail node. The device further includes: The BSID addition module is used to add a binding segment identifier BSID between the first segment identifier SID and the second SID when generating the segment list of the connected forwarding path after the next-hop update module obtains the connected forwarding path from the source node to the tail node. This allows the first node in the first node pair to call the SRv6 forwarding policy corresponding to the BSID to select the forwarding path of the second node in the first node pair. The path calculation algorithm used by the forwarding policy corresponding to the BSID is the target path calculation algorithm. The first node pair is the node pair in the connected forwarding path. The first SID is the SID corresponding to the first node in the first node pair. The second SID is the SID corresponding to the second node in the first node pair.

10. The apparatus according to claim 9, characterized in that, The device further includes: The information addition module is used to add a security authentication instruction and the instruction parameters of the security authentication instruction to the function field of the SID corresponding to each node in the first node pair when generating the segment list of the connected forwarding path.

11. The apparatus according to claim 8, characterized in that, The sub-path generation unit is specifically used to perform path calculation based on the topology information of the fourth network node and the second network node using the shortest path first algorithm, and to generate a second forwarding sub-path from the third network node to the tail node.

12. The apparatus according to claim 7, characterized in that, The path acquisition module is specifically used to send a path request to the control node if the first forwarding path is interrupted; and to receive a second forwarding path fed back by the control node, wherein the second forwarding path is a forwarding path from the source node to the tail node determined by the control node based on the topology information of all first network nodes and the topology information of the second network node.

13. A network device, characterized in that, The method includes a processor and a machine-readable storage medium storing machine-executable instructions that can be executed by the processor, the processor being prompted by the machine-executable instructions to perform the steps of the method according to any one of claims 1-6.

14. A machine-readable storage medium, characterized in that, The device stores machine-executable instructions that, when invoked and executed by a processor, cause the processor to perform the steps of the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Enabling non-flexible-algorithm routers to participate in flexible-algorithm routing protocols

    US20200145319A1