A routing method and a forwarding node
By rapidly switching inner forwarding nodes locally on deployment environment nodes and using explicit path indicators for outer nodes, the problem of excessively long fault convergence time in SR technology is solved, achieving reliable data transmission and rapid fault recovery.
Patent Information
- Application Number
- CN202110412849.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-16
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-04-16
AI Technical Summary
In existing SR technology, when some segments in the explicit path fail, the central controller needs to recalculate a new explicit path, resulting in excessively long fault convergence time, which cannot meet the service quality requirements with high real-time requirements.
By enabling rapid switching of inner forwarding nodes locally on deployment environment nodes and using explicit path indicators for outer nodes, redundant links are avoided, saving storage resources for the central controller and transmission nodes.
It achieves rapid fault convergence, ensures the reliability of data transmission, shortens transmission latency, and avoids the generation of redundant links.
Smart Images

Figure CN115225569B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer network technology, and in particular to a routing method and a forwarding node. Background Technology
[0002] Segment routing (SR) is a technique that divides the network into different segments and then splices the segments together to form a specified forwarding path.
[0003] In the current SR scheme, the source node needs to encapsulate the explicit path and the original data to obtain the encapsulated data. The explicit path is used to guide the specified nodes on the explicit path to forward the original data. The explicit path is represented by a list of IPs of the multiple nodes that the data forwarding needs to traverse.
[0004] Please see Figure 1 As shown, the explicit path A from the source node (node 1) to the destination node (node 8) is: IP3, IP5, IP8. If the link from node 3 to node 5 fails, node 3 needs to report the fault information to the central controller. After receiving the fault information, the central controller needs to recalculate the explicit path from the source node (node 1) to the destination node (node 8), and then send the recalculated explicit path B (such as IP3, IP5, IP8) to the source node. The source node re-encapsulates the explicit path B and the original data, and then forwards the re-encapsulated data to the next hop.
[0005] In the current SR technology, when some segments in the explicit path fail, the central controller needs to recalculate a new explicit path and the source node needs to re-forward and encapsulate the data. This results in an excessively long fault convergence time, causing the business data stream to be interrupted for a long time, which cannot meet the quality requirements of services with high real-time requirements (such as media). Summary of the Invention
[0006] This application provides a routing method and a forwarding node to improve fault convergence speed and reduce transmission latency when a link fails.
[0007] In a first aspect, embodiments of this application provide a routing method applied to a first forwarding node, which is a forwarding node deployed in a first deployment environment node. The method includes: firstly, the first forwarding node obtains a first explicit path, which is represented by a list of identifiers of deployment environment nodes; then, the first forwarding node queries a node routing table based on the first explicit path to determine the IP addresses of multiple forwarding nodes in a second deployment environment node, wherein the node routing table includes identifiers of multiple deployment environment nodes and the IP addresses of multiple forwarding nodes corresponding to the identifiers of each deployment environment node; the second deployment environment node is the next-hop deployment environment node of the first deployment environment node in the first explicit path, and the multiple forwarding nodes deployed in the second deployment environment node include at least a second forwarding node and a third forwarding node; finally, when the link status between the first forwarding node and the second forwarding node is faulty, the first forwarding node sends first encapsulated data to the third forwarding node, the first encapsulated data including the first explicit path, original data, and the IP address of the third forwarding node. In this embodiment, the explicit path indicates the outer node (deployment environment node). When a link between the inner forwarding nodes fails, the deployment environment node locally performs a rapid switchover of the inner forwarding node to continue forwarding data, thereby achieving rapid fault convergence and ensuring the reliability of data transmission. Furthermore, this application achieves reliable data transmission through only one explicit path, avoiding redundant links and saving storage resources for the central controller and transmission nodes.
[0008] In an optional implementation, when the link status between the first forwarding node and multiple forwarding nodes is normal, the method may further include: the first forwarding node randomly selecting a target forwarding node in the second deployment environment; and sending second encapsulated data to the target forwarding node, the second encapsulated data including a first explicit path, the original data, and the IP address of the target forwarding node. In this embodiment, to avoid data traffic always being forwarded through a single forwarding node and to ensure load balancing among the forwarding nodes in the second deployment environment, the first forwarding node can randomly select a target forwarding node from multiple forwarding nodes in the second deployment environment as the next-hop forwarding node, thereby avoiding excessive forwarding traffic pressure on any single forwarding node.
[0009] In one alternative implementation, the method further includes: a first forwarding node receiving a first source routing table from a central controller, the first source routing table including a path from a source deployment environment node to a destination deployment environment node; when the first forwarding node is a source deployment environment node, the first forwarding node obtaining the first explicit path may include: the first forwarding node querying the first source routing table to obtain the first explicit path.
[0010] In one alternative implementation, the first forwarding node obtaining the first explicit path may include: the first forwarding node receiving second encapsulated data from a forwarding node in the previous hop deployment environment node of the first deployment environment node; and obtaining the first explicit path from the header of the second encapsulated data.
[0011] In an alternative implementation, before querying the node routing table according to the first explicit path, the method further includes: the first forwarding node receiving the node routing table from the central controller. In this embodiment, the node routing table is generated by the central controller and is used to indicate the forwarding nodes deployed in each deployment environment node. The node routing table guides the first forwarding node to select a forwarding node from the second deployment environment node as the next-hop forwarding node, thereby achieving local fault convergence in the second deployment environment node.
[0012] In one optional implementation, when the link status of the first forwarding node and multiple forwarding nodes in the second deployment node are all in a fault state, the method further includes: the first forwarding node sending a message to the central controller, the message carrying the identifier of the second deployment environment node, the message being used to trigger the central controller to generate a second source routing table; the second source routing table being used to trigger the forwarding nodes in the source deployment environment node to query the second source routing table, obtain a second explicit path, and forward data based on the second explicit path. In this embodiment, the fault information carries the identifier of the second deployment environment node (e.g., EdgeB). The central controller updates the topology of the deployment environment according to the fault information, that is, the second deployment environment node is no longer a participating node in the path. The central controller generates a second source routing table corresponding to each deployment environment node according to the link status information and the updated topology of the deployment environment node. The second source routing table is used to trigger the forwarding nodes in the source deployment environment node to query the second source routing table and obtain a second explicit path; the source forwarding node re-forwards data based on the second explicit path, thereby solving the problem of forwarding nodes forwarding data when the link status of the first forwarding node and multiple forwarding nodes in the second deployment node are all in a fault state.
[0013] In one alternative implementation, the deployment environment nodes include edge cloud, POP, OLT, or MEC. In this embodiment, the forwarding node can be flexibly deployed on various deployment environment nodes.
[0014] Secondly, embodiments of this application provide a forwarding node, which is a first forwarding node deployed in a first deployment environment node. The forwarding node includes: a path acquisition module, used to acquire a first explicit path, which is represented by a list of identifiers of deployment environment nodes; a processing module, used to query a node routing table based on the first explicit path acquired by the path acquisition module to determine the IP addresses of multiple forwarding nodes in a second deployment environment node, wherein the node routing table includes the identifiers of multiple deployment environment nodes and the IP addresses of multiple forwarding nodes corresponding to the identifiers of each deployment environment node; the second deployment environment node is the next-hop deployment environment node of the first deployment environment node in the first explicit path, and the multiple forwarding nodes deployed in the second deployment environment node include at least a second forwarding node and a third forwarding node; and a transceiver module, used to send first encapsulated data to the third forwarding node when the link status between the first forwarding node and the second forwarding node is in a fault state, the first encapsulated data including the first explicit path, original data, and the IP address of the third forwarding node.
[0015] In one optional implementation, when the link status of the first forwarding node and multiple forwarding nodes is normal, the processing module is further configured to randomly select a target forwarding node in the second deployment environment; the transceiver module is further configured to send second encapsulated data to the target forwarding node selected by the processing module, the second encapsulated data including the first explicit path, the original data and the IP address of the target forwarding node.
[0016] In one alternative implementation, a transceiver module is used to receive a first source routing table from the central controller, the first source routing table including a path from a source deployment environment node to a destination deployment environment node; and a path acquisition module is used to query the first source routing table to obtain a first explicit path when the first forwarding node is a source deployment environment node.
[0017] In one alternative implementation, the path acquisition module is further configured to receive second encapsulated data from a forwarding node in the previous hop deployment environment node of the first deployment environment node; and to obtain a first explicit path from the header of the second encapsulated data.
[0018] In one alternative implementation, the transceiver module is also used to receive node routing tables from the central controller.
[0019] In one optional implementation, when the link status of the first forwarding node and multiple forwarding nodes in the second deployment node are all in a fault state, the transceiver module is also used to send a message to the central controller. The message carries the identifier of the second deployment environment node and is used to trigger the central controller to generate a second source routing table. The second source routing table is used to trigger the forwarding nodes in the source deployment environment node to query the second source routing table, obtain the second explicit path, and forward data based on the second explicit path.
[0020] Thirdly, embodiments of this application provide a computer program product, which includes computer program code. When the computer program code is executed by a computer, the computer implements the method described in any of the first aspects above.
[0021] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program or instructions, which, when executed, cause a computer to perform any of the methods described in the first aspect above. Attached Figure Description
[0022] Figure 1 This is a schematic diagram illustrating a scenario using the traditional SR routing method.
[0023] Figure 2 This is a schematic diagram of the architecture of a communication system according to an embodiment of this application;
[0024] Figure 3 This is a schematic diagram of an overlay network and an underlay network;
[0025] Figure 4 This is a schematic diagram of the data forwarding process in an embodiment of this application when the first forwarding node determines that the link status with the neighboring forwarding node is normal.
[0026] Figure 5 This is a flowchart illustrating the steps of a routing method provided in an embodiment of this application;
[0027] Figure 6 This is a schematic diagram of the data forwarding process in an embodiment of this application when the first forwarding node determines that the link status with the neighboring forwarding node is normal.
[0028] Figure 7 This is a schematic diagram of the structure of a forwarding node in an embodiment of this application;
[0029] Figure 8 This is a schematic diagram of the virtual machine architecture in an embodiment of this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. The term "multiple" in this application refers to two or more.
[0031] In current SR technology, explicit paths are represented by a list of forwarding node IPs, and each forwarding node on the explicit path forwards data according to the path's instructions. The data forwarding process in current SR technology will be explained first. Please refer to... Figure 1 As shown, Figure 1 This is a schematic diagram of a scenario where data forwarding is based on an explicit path. The example uses forwarding node 1 as the source forwarding node and forwarding node 8 as the destination forwarding node.
[0032] S10. Forwarding node 1 receives the explicit path A (e.g., IP3, IP5, IP8) from the central controller. Forwarding node 1 encapsulates the original data and header to obtain encapsulated data A. The header includes the explicit path A, the source IP address (IP1), and the IP address of the next-hop forwarding node (IP3).
[0033] S11. After receiving the encapsulated data A, forwarding node 3 obtains the IP address of the next-hop forwarding node (e.g., IP5) from the explicit path A (IP3, IP5, IP8) and pushes IP5 into the destination address field of the header to obtain encapsulated data B. The header of encapsulated data B includes the explicit path B (e.g., IP5, IP8), the source IP address (IP3), and the IP address of the next-hop forwarding node (IP5). Forwarding node 3 forwards encapsulated data B to forwarding node 5.
[0034] S12. After receiving the encapsulated data B, forwarding node 5 obtains the IP address of the next-hop forwarding node (e.g., IP8) from the explicit path B and pushes IP8 into the destination address field of the header to obtain the encapsulated data C. The header of the encapsulated data C includes the explicit path C (IP8), the source IP address (IP5), and the IP address of the next-hop forwarding node (IP8). Forwarding node 5 forwards the encapsulated data C to forwarding node 8.
[0035] After steps S10-S12, the source forwarding node forwards the original data to the destination forwarding node.
[0036] Steps S10-S12 above represent the normal data forwarding process of SR. However, when a link between two adjacent forwarding nodes (such as the link between node 3 and node 5) fails, the data transmission path is interrupted. The central controller needs to recalculate a new explicit path (such as IP3, IP6, IP8) and reissue the new explicit path to the source forwarding node (forwarding node 1). The source forwarding node then re-forwards the data according to the new explicit path. This process results in a long fault convergence time, leading to service interruption. Alternatively, the central controller can pre-generate two paths: a primary path and a backup path. When two forwarding nodes in the primary path fail, the source forwarding node forwards the data through the backup path. This method, however, creates redundant paths. The redundant backup paths consume storage resources of the central controller and forwarding nodes, and the source forwarding node still needs to re-forward the data according to the backup path.
[0037] In view of the above problems, embodiments of this application provide a routing method to shorten the fault convergence time and ensure data transmission reliability. Furthermore, it avoids generating redundant links, saving storage resources for the central controller and transmission nodes.
[0038] This application provides a two-layer node system: an outer layer node and an inner layer node. The outer layer node is the deployment environment node, and the inner layer node is the forwarding node. The relationship between the deployment environment node and the forwarding node is that the forwarding node is deployed within (or "parasitic on") the deployment environment node, and each deployment environment node has at least two forwarding nodes. The deployment environment node provides the deployment environment for the forwarding node, and the forwarding node is used for data forwarding. Explicit paths are identified by a list of identifiers for the deployment environment nodes, and the path indicated by the explicit path is at the deployment environment node level. For example, an explicit path might be: Deployment Environment Node A, Deployment Environment Node B, Deployment Environment Node C. When forwarding node A1 (belonging to deployment environment node A) forwards data, it can determine the next-hop deployment environment node (deployment environment node B) based on the explicit path. To determine which specific forwarding node to forward to, forwarding node A1 needs to query the node routing table. The node routing table records the identifiers of all deployment environment nodes and the IP addresses of the forwarding nodes deployed within each deployment environment node. When forwarding node A1 determines that the link with forwarding node B1 in deployment environment node B is in a fault state, forwarding node A1 can select another forwarding node (such as forwarding node B2) in deployment environment node B1 as the next-hop forwarding node according to the node routing table. In this embodiment, the explicit path indicates the outer node (deployment environment node). When the link between the inner forwarding nodes fails, the deployment environment node quickly switches the inner forwarding node locally to continue forwarding data, thereby achieving rapid fault convergence and ensuring the reliability of data transmission. Furthermore, this application can achieve reliable data transmission through only one explicit path, without generating redundant links, saving storage resources of the central controller and transmission nodes.
[0039] This application provides a routing method applied to a communication system. Please refer to [link to relevant documentation]. Figure 2As shown, the communication system includes a central controller 201, multiple deployment environment nodes 202, and at least two forwarding nodes 203 deployed within the deployment environment nodes. Each deployment environment node 202 has at least two forwarding nodes 203 deployed within it. The central controller 201 manages the multiple deployment environment nodes 202, and each deployment environment node 202 manages at least two forwarding nodes 203 deployed internally. The central controller 201 may be a virtual server deployed on the cloud side. The deployment environment nodes 202 include, but are not limited to, edge clouds, optical line terminals (OLTs), multi-access edge computing (MECs), and points of presence (POPs). In this embodiment, the deployment environment node is illustrated using an edge cloud as an example. A forwarding node may be a virtual forwarding device deployed on a "host" provided by the deployment environment to implement forwarding functions. The forwarding nodes and the deployment environment as a whole can constitute a logical forwarding node. The central controller generates a node routing table based on the deployment of forwarding nodes in each deployment environment node. The central controller sends the node routing table to the deployment environment node, and the deployment environment node distributes the node routing table to at least two forwarding nodes within it. The multiple deployment environment nodes include a first deployment environment node, and the first forwarding node is any one of the multiple forwarding nodes deployed within the first deployment environment node. The first forwarding node obtains a first explicit path, determines the next-hop deployment environment node (the second deployment environment node) based on the first explicit path, and then queries the node routing table to determine at least two forwarding nodes in the second deployment environment node (including the second forwarding node and the third forwarding node). When the link between the first forwarding node and the second forwarding node is in a fault state, the first forwarding node sends first encapsulated data to the third forwarding node. The first encapsulated data includes the first explicit path, the original data, and the IP address of the third forwarding node. In this embodiment, the explicit path indicates the path at the deployment environment node level. When the link between the first forwarding node and one of the forwarding nodes in the next-hop deployment environment node is in a fault state, the first forwarding node can send data to other forwarding nodes in the next-hop deployment environment node according to the node routing table, thereby achieving fast fault convergence locally in the deployment environment node and ensuring the reliability of data transmission.
[0040] To better understand this application, the terms used in this application will first be explained by way of example.
[0041] The source routing table indicates the optimal path from the source forwarding node to the destination forwarding node. For example, the fields included in the source routing table are shown in Table 1 below.
[0042] Table 1
[0043]
[0044] The node routing table indicates the forwarding nodes deployed in each deployment environment node. The node routing table contains the identifiers of the globally deployed environment nodes, and the IP addresses of multiple forwarding nodes corresponding to each deployment environment node's identifier. For example, the fields contained in the node routing table are shown in Table 2 below.
[0045] Table 2
[0046]
[0047] Explanation of overlay networks and underlay networks.
[0048] An underlay network refers to a physical network, which consists of physical devices and physical links. Common physical devices include switches, routers, and firewalls, which are connected by specific links to form a traditional physical network.
[0049] An overlay network is a computer network that can be built on top of another network (such as an underlay). Nodes (i.e., forwarding nodes) in an overlay network can be considered as being connected via virtual or logical links, where each link corresponds to a path. See also Figure 3 To understand, Figure 3 Nodes H, I, J, and K are logical nodes in the overlay network. For example, in the upper-layer overlay network, the direct connection between nodes H and J (i.e., only one hop at the application layer) may involve multiple relay routing devices in the lower-layer underlay network, effectively making it a multi-hop route. However, when developing applications based on the overlay network, it's not necessary to consider the connectivity of the physical nodes in the lower-layer underlay network; only the interconnection between the deployed overlay nodes needs to be considered. Nodes in the overlay network achieve data forwarding at the overlay layer by encapsulating the source and destination IPs mapped to nodes in the underlay network.
[0050] In this embodiment, the forwarding node can be a node in the overlay layer, and the optimal path is the overlay path. The encapsulation data described below is overlay encapsulation data.
[0051] An illustrative description is provided regarding the link status between forwarding nodes.
[0052] A forwarding node collects the link state between itself and its neighboring forwarding nodes by measuring the quality of service (QoS) of those neighboring nodes. It is understood that the link state can be described using QoS values, where QoS performance metrics include packet loss rate, latency, and jitter. For example, when a forwarding node performs QoS measurements on the link between each neighboring forwarding node, it continuously sends q probe packets (q being an integer greater than or equal to 2) to its neighboring forwarding nodes. The forwarding node calculates transmission latency, jitter, and packet loss rate based on the responses to these q probe packets. Optionally, the forwarding node can take a weighted average of latency, jitter, and packet loss rate, and use the weighted average value to describe the link state between itself and that neighboring forwarding node. In this application, the measurement of the "link state" of a forwarding node to its neighboring forwarding nodes can also be referred to as "QoS measurement."
[0053] Full-mash refers to a networking mode in which every pair of nodes in N nodes is interconnected.
[0054] Explanation of "source deployment environment node", "destination deployment environment node" and "transfer deployment environment node".
[0055] "Source deployment environment node," "destination deployment environment node," and "transmission agency environment node" are all deployment environment nodes described in this application. The deployment environment nodes are categorized as "source deployment environment node," "destination deployment environment node," and "transmission agency environment node" only according to the data transmission direction and their position on the optimal path. On the optimal path, the deployment environment node at the beginning is the "source deployment environment node"; the deployment environment node at the end is the "destination deployment environment node"; and the deployment environment node located between the beginning and end on the optimal path is the "transmission agency environment node."
[0056] The routing method in this application is illustrated below through specific embodiments. These embodiments comprise two parts.
[0057] This embodiment mainly includes two parts. The first part is the initial deployment phase, detailed in steps S20-S22 and S30-S33 below. The second part is the data forwarding phase, detailed in steps S40-S48, S50-S52, and S60-S65 below.
[0058] I. Explanation of the preliminary deployment phase.
[0059] S20, The central controller registers all deployed environment nodes in the communication system.
[0060] The central controller communicates with each deployment environment node via a handshake, receiving registration requests from each node. These requests include, but are not limited to, the deployment environment ID, the IDs of the forwarding nodes deployed within that environment, and the public IP addresses of each forwarding node. The registration process for forwarding nodes by the central controller can be understood as the central controller storing relevant information about the deployment environment nodes (the deployment environment ID, the IDs of the forwarding nodes deployed within that environment, and the public IP addresses of each forwarding node).
[0061] The following steps S21-S22 are the process by which the central controller generates a node routing table and distributes the node routing table to the forwarding nodes.
[0062] S21. The central controller generates a node routing table based on the relevant information of the registered deployment environment nodes.
[0063] Taking edge cloud as an example, each deployment environment has at least two forwarding nodes. The node routing table is shown in Table 3 below.
[0064] Table 3
[0065]
[0066] The node routing table is used by forwarding nodes to query which forwarding nodes are deployed in the next-hop deployment environment node indicated in the explicit path, and the public IP address of each forwarding node. The deployment environment nodes shown in Table 3 above are examples for illustrative purposes only and do not constitute a limitation on this application. For example, as can be seen from Table 3 above, there are two forwarding nodes deployed in edge cloud A, namely forwarding node A1 and forwarding node A2. Among them, the IP address of forwarding node A1 is IP1, and the IP address of forwarding node A2 is IP2.
[0067] S22. The central controller sends the node routing table to each deployment environment node, and each deployment environment node sends the node routing table to the forwarding nodes deployed within it; correspondingly, each forwarding node receives the node routing table from the central controller.
[0068] The following steps S30-S33 are the process by which the central controller generates a source routing table and distributes the source routing table to the forwarding nodes.
[0069] S30, the central controller initiates measurement tasks to each deployment environment node.
[0070] The central controller initiates measurement tasks to each deployment environment node, and each deployment environment node organizes its internally deployed forwarding nodes to initiate QoS measurements to neighboring forwarding nodes.
[0071] S31. The central controller receives link status information from each forwarding node.
[0072] Each forwarding node performs QoS measurements on its neighboring forwarding nodes, collecting the link status between the forwarding node and its neighboring forwarding nodes. For example, multiple environment deployment nodes are fully interconnected (full-mash), with every two deployment environment nodes being neighboring deployment environment nodes. As shown in Table 3 above, EdgeA's neighboring deployment environment nodes include EdgeB, EdgeC, and EdgeD. Forwarding node A1's neighboring forwarding nodes are forwarding nodes in other deployment environment nodes. For example, forwarding node A1's neighboring forwarding nodes include forwarding nodes B1, B2, C1, C2, D1, and D2. Forwarding node B1's neighboring forwarding nodes include forwarding nodes A1, A2, C1, C2, D1, and D2. For example, the link status information collected by forwarding node A1 includes the link status from forwarding node A1 to forwarding nodes B1, B2, C1, C2, D1, and D2, respectively. Each forwarding node in a deployment environment node sends the collected link status information to the deployment environment node, which then reports the link status information to the central controller.
[0073] S32. The central controller generates a source routing table for each deployment environment node based on the link status information and the topology of the deployment environment nodes.
[0074] The central controller selects the optimal path from the source deployment environment node to the destination deployment environment node based on link status information and the topology of the deployment environment nodes. The source deployment environment node is selected from every deployment environment node in the communication system, and the destination deployment environment node is selected from every deployment environment node in the communication system. For example, the optimal path from EdgeA to EdgeD is: EdgeA→EdgeB→EdgeC→EdgeD. The optimal path from EdgeA to EdgeC is: EdgeA→EdgeB→EdgeC. The optimal path from EdgeA to EdgeB is: EdgeA→EdgeD→EdgeB. The optimal paths from EdgeB to other source deployment environment nodes, from EdgeC to other source deployment environment nodes, and so on, are also available. For example, the central controller can first generate a source routing table including the globally optimal path for the network, and then decompose this global source routing table to obtain the source routing table corresponding to each deployment environment node.
[0075] For example, the central controller sends source routing table A to the source deployment environment node EdgeA. Source routing table A includes the optimal path with EdgeA as the source deployment environment node. For example, the optimal path from EdgeA to EdgeD, the optimal path from EdgeA to EdgeC, the optimal path from EdgeA to EdgeB, etc. An example of source routing table A is shown in Table 4 below.
[0076] Table 4
[0077]
[0078] S33. The central controller sends the source routing table corresponding to each deployment environment node to each deployment environment node, and the deployment environment node then sends the source routing table to the internally deployed forwarding nodes; correspondingly, the forwarding nodes receive the source routing table from the central controller.
[0079] It should be noted that there is no time restriction on the above "steps S21-S22" and "steps S30-S33". For example, "steps S21-S22" can be executed before "steps S30-S33", or "steps S21-S22" can be executed after "steps S30-S33", or "steps S21-S22" and "steps S30-S33" can be executed synchronously. There is no specific restriction.
[0080] II. Explanation of the data forwarding process.
[0081] It should be noted that, in this embodiment, to distinguish between the source routing table queried by the forwarding node before determining that the link has failed and the source routing table regenerated by the central controller after the link has failed, the source routing table queried by the forwarding node before determining that the link has failed is called the "first source routing table," and the source routing table regenerated by the central controller after the link has failed is called the "second source routing table." Explicit paths from the "first source routing table" are called the "first explicit path," and explicit paths from the "second source routing table" are called the "second explicit path." The "first forwarding node" is any forwarding node deployed in the "first deployment environment nodes." The first deployment environment can be any one of multiple deployment environment nodes. For example, the first deployment environment is EdgeA, and the first forwarding node is forwarding node A1 in EdgeA.
[0082] First, each forwarding node periodically measures the link status with its neighboring forwarding nodes. Each forwarding node pre-determines whether its link status with its neighboring forwarding nodes is normal or faulty. When each forwarding node determines that its link status with its neighboring forwarding nodes is normal, it executes the process shown in steps S40-S48 below. It should be noted that, in this embodiment, a faulty state refers to a measured link QoS value less than a threshold, and a normal state refers to a measured link QoS value greater than or equal to the threshold. Please refer to... Figure 4 As shown, Figure 4 This is a schematic diagram illustrating the data forwarding process when the first forwarding node determines that the link status with its neighboring forwarding nodes is normal.
[0083] S40. Forwarding node A1 queries the first source routing table to obtain the first explicit path.
[0084] Forwarding node A1 is a forwarding node in the source deployment environment, also known as the "source forwarding node". Forwarding node A1 queries the stored source routing table (such as source routing table A) to obtain the optimal path from the source deployment environment node to the destination deployment environment node.
[0085] For example, first, forwarding node A1 determines the destination deployment environment node.
[0086] Forwarding node A1 obtains the destination address from the header of the raw data and queries the pre-stored location routing table based on this address to determine the destination deployment environment node. The location routing table includes the mapping between IP addresses and destination deployment environment nodes. For example, if the destination address of the raw data obtained by forwarding node A1 is IPA, forwarding node A1 queries the node routing table, and the destination deployment environment node corresponding to IPA is EdgeD. The first forwarding node determines that the destination deployment environment node is EdgeD.
[0087] Then, forwarding node A1 queries source routing table A to find the optimal path from EdgeA to EdgeD. For example, as shown in Table 4 above, the optimal path from EdgeA to EdgeD is: EdgeA|EdgeB|EdgeC|EdgeD. Forwarding node A determines the first explicit path based on the optimal path. The explicit path is the path from the next-hop deployment environment node to the destination deployment environment node. For example, the first explicit path is: EdgeB|EdgeC|EdgeD.
[0088] S41. Forwarding node A1 queries the stored node routing table according to the first explicit path to determine the multiple forwarding nodes deployed in the second deployment environment node. The second deployment environment node is the next-hop deployment environment node of the first deployment environment node in the first explicit path. The multiple forwarding nodes in the second deployment environment node include at least the second forwarding node and the third forwarding node.
[0089] For example, in the first explicit path, the next-hop deployment environment node is EdgeB. Forwarding node A1 queries the stored node routing table (as shown in Table 3 above) and determines that forwarding nodes B1 and B2 are deployed in EdgeB, and that the IP address of forwarding node B1 is IP3 and the IP address of forwarding node B2 is IP4.
[0090] S42. Forwarding node A1 selects a target forwarding node as the next-hop forwarding node from among the multiple forwarding nodes in the second deployment environment.
[0091] To avoid data traffic always being forwarded through a single forwarding node and to ensure load balancing among the forwarding nodes in the second deployment environment, forwarding node A1 can randomly select a target forwarding node from multiple forwarding nodes as the next-hop forwarding node, thereby avoiding excessive forwarding traffic pressure on any one forwarding node. In this embodiment, the method for random selection by forwarding node A1 is not limited. For example, forwarding node A1 can randomly select a forwarding node by generating a hash value or by generating a random number. Taking the method of generating a random number as an example, forwarding node A1 randomly generates a value i. When i is greater than or equal to 0 and less than or equal to 0.5, the first forwarding node selects the second forwarding node (such as forwarding node B1) as the next-hop forwarding node; when i is greater than 0.5 and less than or equal to 1, the first forwarding node selects the third forwarding node (such as forwarding node B2) as the next-hop forwarding node. For example, the first forwarding node selects forwarding node B1 as the next-hop forwarding node.
[0092] S43. Forwarding node A1 performs overlay encapsulation on the original data to obtain encapsulated data A. The header of the encapsulated data A includes the first explicit path A (e.g., EdgeB|EdgeC|EdgeD), the source address (e.g., IP1), and the destination address (e.g., IP3).
[0093] S44. Forwarding node B1 receives encapsulated data A and obtains the first explicit path B.
[0094] Forwarding node B1 receives encapsulated data A and obtains the first explicit path B from the first explicit path A. For example, the header of encapsulated data A includes the first explicit path A as: EdgeB|EdgeC|EdgeD. Forwarding node B1 obtains the first explicit path B (EdgeC|EdgeD) from the first explicit path A.
[0095] S45. Forwarding node B1 queries the node routing table based on the first explicit path B to determine multiple forwarding nodes in the next-hop deployment environment node of the second deployment environment node.
[0096] For example, forwarding node B1 determines that the next-hop deployment environment node is EdgeC based on the first explicit path B (EdgeC|EdgeD). Further querying the node routing table, it finds that the forwarding nodes deployed in EdgeC include forwarding node C1 and forwarding node C2. Forwarding node C1 has an IP address of IP5, and forwarding node C2 has an IP address of IP6.
[0097] S46. Forwarding node B1 selects one forwarding node from multiple forwarding nodes as the next-hop forwarding node.
[0098] Forwarding node B1 selects one of forwarding nodes C1 and C2 as its next-hop forwarding node. For example, forwarding node B1 selects forwarding node C1 as its next-hop forwarding node.
[0099] S47. Forwarding node B1 sends overlay encapsulated data B to the next hop forwarding node (forwarding node C1).
[0100] The encapsulated data B includes a header and raw data. The header includes the first explicit path B (e.g., EdgeC|EdgeD), the source address (the IP address of forwarding node B1, such as IP3), and the destination address (the IP address of forwarding node C1, such as IP5).
[0101] S48. Forwarding node C1 sends overlay encapsulated data C to the next hop forwarding node (forwarding node D1).
[0102] The encapsulated data C includes a header and raw data. The header includes a first explicit path C (e.g., EdgeD), a source address (the IP address of forwarding node C1, e.g., IP5), and a destination address (the IP address of forwarding node D2, e.g., IP8).
[0103] Forwarding node D1 receives the encapsulated data C, decapsulates the encapsulated data C to obtain the original data, and then sends the original data to the destination based on the destination address in the original data header.
[0104] Through the above steps S40-S48, the forwarding of data in the overlay network is completed.
[0105] The following describes the data routing process when a failure occurs between a forwarding node in the first deployment environment node and a forwarding node in the next-hop deployment environment node. Please refer to steps S50-S52 below. In practice, link failures can occur between any forwarding nodes. In this embodiment, the first forwarding node in the first deployment environment node is used as the execution subject for illustration. Please refer to... Figure 5 and Figure 6 As shown, Figure 5 This is a flowchart illustrating the steps of a routing method. Figure 6 This is a schematic diagram illustrating the data forwarding process when the first forwarding node determines that the link status with its neighboring forwarding nodes is normal.
[0106] S50, the first forwarding node obtains the first explicit path.
[0107] In the first scenario, when the first forwarding node is a source forwarding node, such as forwarding node A1 in Edge A, the first forwarding node queries the already stored first source routing table and retrieves the first explicit path A (e.g., EdgeB|EdgeC|EdgeD) from the first source routing table. For a detailed explanation of this first scenario, please refer to the description of step S40 above; it will not be repeated here. The first source routing table is generated by the central controller based on link status information and the topology of the deployed environment nodes. The first source routing table is shown in Table 4 above.
[0108] In the second scenario, when the first forwarding node is a forwarding node within the transport deployment environment node, the first forwarding node receives the second encapsulated data from the previous hop deployment environment node. The first forwarding node obtains the first explicit path and the original data from the second encapsulated data. For example, if the first forwarding node is forwarding node B1 in EdgeB, forwarding node B1 receives the second encapsulated data from the first forwarding node. This second encapsulated data may include the original data and the first explicit path A (e.g., EdgeB|EdgeC|EdgeD). Forwarding node B1 obtains the first explicit path B (e.g., EdgeC|EdgeD) from the second encapsulated data. For this second scenario, please refer to the explanation of step S44 above; it will not be elaborated upon here.
[0109] S51. The first forwarding node queries the node routing table according to the first explicit path to determine multiple forwarding nodes in the second deployment environment node. The node routing table includes identifiers of multiple deployment environment nodes and the IP addresses of the multiple forwarding nodes corresponding to each identifier of the deployment environment node. The second deployment environment node is the next-hop deployment environment node of the first deployment environment node on the first explicit path. The second deployment environment node deploys multiple forwarding nodes, including at least the second forwarding node and the third forwarding node.
[0110] After receiving the node routing table from the central controller, the first forwarding node stores the node routing table. The first forwarding node retrieves the node routing table from the storage area. For example, the node routing table is shown in Table 3 above.
[0111] When the first forwarding node is forwarding node B1, and the first explicit path B is EdgeC|EdgeD, forwarding node B1 queries the node routing table to determine the multiple forwarding nodes deployed in the next-hop deployment environment node (such as EdgeC). These multiple forwarding nodes include a second forwarding node (such as forwarding node C1) and a third forwarding node (such as forwarding node C2), along with the IP addresses of the second and third forwarding nodes (such as IP5 and IP6, respectively).
[0112] S52. When the link between the first forwarding node and the second forwarding node is in a fault state, the first forwarding node sends the first encapsulated data to the third forwarding node. The first encapsulated data includes the first explicit path, the original data, and the IP address of the third forwarding node.
[0113] For example, when the link between forwarding node B1 and forwarding node C1 is in a fault state, forwarding node B1 selects one of the other forwarding nodes in EdgeC as the next-hop forwarding node. Forwarding node B1 selects forwarding node C2 as the next-hop forwarding node. Forwarding node B1 sends the first encapsulated data to forwarding node C2. The first encapsulated data includes the first explicit path (e.g., EdgeC|EdgeD), the source address (the IP address of forwarding node B1, IP3), and the destination address (the IP address of forwarding node C2, IP6).
[0114] In this embodiment, the explicit path is used to indicate the outer node (deployment environment node). When a link between the inner transmission nodes fails, the forwarding node can determine the next-hop deployment node that is not faulty based on the node routing table. This allows the selection of the next-hop deployment node as the next-hop forwarding node, enabling the deployment environment node to quickly switch the inner forwarding node locally, thus achieving rapid fault convergence and ensuring data transmission reliability. Furthermore, this application achieves data transmission reliability through only one explicit path, avoiding redundant links and saving storage resources for the central controller and transmission nodes.
[0115] Optionally, when the link status between the first forwarding node and multiple forwarding nodes in the second deployment environment node is in a fault state, the central controller recalculates the path and generates a second source routing table. The forwarding nodes in the source deployment environment node query the second source routing table to obtain the second explicit path, which is used to guide data forwarding hop-by-hop to the destination forwarding node.
[0116] First, the first forwarding node sends a fault message, which carries the identifier of the second deployment environment node. This fault message indicates that the link status between the first forwarding node and all forwarding nodes in the second deployment environment node is faulty.
[0117] The first forwarding node sends a fault message to the first deployment environment node, which then sends the fault message to the central controller. The fault message triggers the central controller to recalculate the optimal path and generate a second source routing table.
[0118] Then, the central controller generates a second source routing table.
[0119] Upon receiving a fault message, the central controller carries the identifier of the second deployment environment node (e.g., EdgeB). Based on this fault message, the central controller updates the deployment environment topology, meaning EdgeB is no longer a participating node in the optimal path. The central controller then generates a second source routing table for each deployment environment node based on the link status information and the updated topology.
[0120] Then, the central controller sends the second source routing table to each deployment environment node, and each deployment environment node sends the second source routing table to the internally deployed forwarding nodes; correspondingly, the first forwarding node receives the second source routing table from the central controller.
[0121] Finally, the forwarding node (called the "source forwarding node") in the source deployment environment queries the second source routing table to obtain the second explicit path. The source forwarding node encapsulates the second explicit path, the original data, the destination IP address, and the source IP address to obtain encapsulated data, and then forwards the encapsulated data.
[0122] Please refer to the explanations of steps S40-S48 above for understanding this step. That is, the source deployment environment node forwards data according to the second explicit path, and the data is forwarded hop-by-hop according to the second explicit path. This can be understood as replacing the first source routing table in step S40 with the second source routing table, and replacing the first explicit path in steps S40, S41, S44, and S45 with the second explicit path.
[0123] Please see Figure 7 As shown, this application embodiment provides a forwarding node. The forwarding node 700 is used to execute the method executed by the first forwarding node in the above method embodiment. The first forwarding node is deployed in a first deployment environment node. The forwarding node includes a path acquisition module 701, a processing module 702, and a transceiver module 703.
[0124] The path acquisition module 701 is used to acquire the first explicit path, which is represented by a list of identifiers of deployment environment nodes;
[0125] The processing module 702 is used to query the node routing table of the first explicit path obtained by the path acquisition module 701 to determine the IP addresses of multiple forwarding nodes in the second deployment environment node. The node routing table includes the identifiers of multiple deployment environment nodes and the IP addresses of multiple forwarding nodes corresponding to the identifiers of each deployment environment node. The second deployment environment node is the next-hop deployment environment node of the first deployment environment node in the first explicit path. The multiple forwarding nodes deployed in the second deployment environment node include at least a second forwarding node and a third forwarding node.
[0126] The transceiver module 703 is used to send first encapsulated data to the third forwarding node when the link between the first forwarding node and the second forwarding node is in a fault state. The first encapsulated data includes a first explicit path, raw data and the IP address of the third forwarding node.
[0127] Furthermore, the path acquisition module 701 is used to perform... Figure 6 In the corresponding embodiment, step S50 is executed by the processing module 702. Figure 6 In the corresponding embodiment, step S51 is performed by the transceiver module 703. Figure 6 Step S52 in the corresponding embodiment.
[0128] Specifically, in an optional implementation, when the link status of the first forwarding node and multiple forwarding nodes is normal, the processing module 702 is used to randomly select the target forwarding node in the second deployment environment. The transceiver module 703 is used to send the second encapsulated data to the target forwarding node selected by the processing module 702. The second encapsulated data includes the first explicit path, the original data, and the IP address of the target forwarding node.
[0129] In an optional implementation, the transceiver module 703 is used to receive a first source routing table from the central controller, the first source routing table including the optimal path from the source deployment environment node to the destination deployment environment node; the path acquisition module 701 is used to query the first source routing table to obtain a first explicit path when the first forwarding node is the source deployment environment node.
[0130] In an optional implementation, the path acquisition module 701 is further configured to receive second encapsulated data from a forwarding node in the previous hop deployment environment node of the first deployment environment node; and to obtain the first explicit path from the header of the second encapsulated data.
[0131] In an alternative implementation, the transceiver module 703 is also used to receive node routing tables from the central controller.
[0132] In an optional implementation, when the link status of the first forwarding node and multiple forwarding nodes in the second deployment node are all in a fault state, the transceiver module 703 is further used to send a message to the central controller. The message carries the identifier of the second deployment environment node and is used to trigger the central controller to generate a second source routing table. The second source routing table is used to trigger the forwarding nodes in the source deployment environment node to query the second source routing table, obtain the second explicit path, and forward data based on the second explicit path.
[0133] In one possible design, the forwarding node runs within a virtual machine or container provided by the deployment environment node. The deployment environment node provides hardware resources for the forwarding node. The forwarding node runs within the deployment environment node and is used to execute the methods performed by the first forwarding node in the above method embodiments. Please refer to... Figure 8 As shown, Figure 8 This is a schematic diagram of the virtual machine architecture. The virtual machine architecture includes a hardware layer 801, a virtualization layer 802, and a virtual machine 803. The virtualization layer 802 includes a hypervisor. The hypervisor manages the actual hardware resources of the hardware layer 801 and provides hardware resource abstraction for the virtual machine 803, thereby providing a runtime environment for the forwarding node 700 in the virtual machine 803. The hardware layer 801 may include one or more processors, memory, and storage devices. Both the storage device and memory are connected to the processor. The processor, also called a processing unit, can implement certain control functions. The processor can be a general-purpose processor or a special-purpose processor, etc. Instructions can be stored in the memory and can be executed on the processor. The storage device is used to store source routing tables, node routing tables, and location routing tables. The hypervisor provides hardware resource abstraction for the virtual machine, enabling the forwarding node 700 in the virtual machine to execute the method executed by the first forwarding node in the above method embodiment. The first forwarding node can be any one of the multiple forwarding nodes in the above method embodiment.
[0134] This application provides a computer program product including computer program code. When the computer program code is executed by a computer, the computer implements the method executed by the first forwarding node in the above method embodiments. The first forwarding node can be any forwarding node in the above method embodiments.
[0135] This application provides a computer-readable storage medium for storing a computer program or instructions, which, when executed, cause a computer to perform the method described by the first forwarding node in the method embodiments. The first forwarding node is any one of the forwarding nodes described in the above method embodiments.
[0136] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A routing method, characterized in that, Applied to a first forwarding node, which is a forwarding node deployed in a first deployment environment node, the method includes: Obtain the first explicit path, which is represented by a list of identifiers for deployment environment nodes; Based on the first explicit path query node routing table, the IP addresses of multiple forwarding nodes in the second deployment environment node are determined. The node routing table includes the identifiers of multiple deployment environment nodes and the IP addresses of multiple forwarding nodes corresponding to the identifiers of each deployment environment node. The second deployment environment node is the next-hop deployment environment node of the first deployment environment node in the first explicit path. The multiple forwarding nodes deployed in the second deployment environment node include at least a second forwarding node and a third forwarding node. When the link between the first forwarding node and the second forwarding node is in a fault state, the first encapsulated data is sent to the third forwarding node. The first encapsulated data includes a first explicit path, the original data, and the IP address of the third forwarding node. The deployment environment nodes include edge cloud, access point (POP), optical line terminal (OLT), or multi-access edge computing device (MEC).
2. The method according to claim 1, characterized in that, When the link status between the first forwarding node and the plurality of forwarding nodes is normal, the method further includes: Randomly select the target forwarding node in the second deployment environment; Send second encapsulated data to the target forwarding node. The second encapsulated data includes the first explicit path, the original data, and the IP address of the target forwarding node.
3. The method according to claim 1, characterized in that, The method further includes: Receive a first source routing table from the central controller, the first source routing table including the path from the source deployment environment node to the destination deployment environment node; When the first forwarding node is a source deployment environment node, the first forwarding node obtains the first explicit path, including: Query the first source routing table to obtain the first explicit path.
4. The method according to claim 1, characterized in that, The first forwarding node obtains the first explicit path, including: Receive the second encapsulated data from the forwarding node in the previous hop deployment environment node of the first deployment environment node; Obtain the first explicit path from the header of the second encapsulated data.
5. The method according to any one of claims 1-4, characterized in that, Before querying the node routing table based on the first explicit path, the method further includes: Receive the node routing table from the central controller.
6. The method according to claim 1, characterized in that, When the link status between the first forwarding node and multiple forwarding nodes in the second deployment environment node is all in a fault state, the method further includes: A message is sent to the central controller, the message carrying the identifier of the second deployment environment node, the message being used to trigger the central controller to generate a second source routing table; the second source routing table is used to trigger the forwarding nodes in the source deployment environment node to query the second source routing table, obtain the second explicit path, and forward data based on the second explicit path.
7. A forwarding node, characterized in that, The forwarding node is a first forwarding node, which is a forwarding node deployed in a first deployment environment node. The forwarding node includes: The path acquisition module is used to acquire a first explicit path, which is represented by a list of identifiers of deployment environment nodes; The processing module is configured to query the node routing table of the first explicit path obtained by the path acquisition module to determine the IP addresses of multiple forwarding nodes in the second deployment environment node. The node routing table includes identifiers of multiple deployment environment nodes and the IP addresses of multiple forwarding nodes corresponding to the identifiers of each deployment environment node. The second deployment environment node is the next-hop deployment environment node of the first deployment environment node in the first explicit path. The multiple forwarding nodes deployed in the second deployment environment node include at least a second forwarding node and a third forwarding node. The transceiver module is used to send first encapsulated data to the third forwarding node when the link status between the first forwarding node and the second forwarding node is in a fault state. The first encapsulated data includes a first explicit path, original data and the IP address of the third forwarding node. The deployment environment nodes include edge cloud, POP, OLT, or MEC.
8. The forwarding node according to claim 7, characterized in that, When the link status between the first forwarding node and the plurality of forwarding nodes is normal, The processing module is also used to randomly select a target forwarding node in the second deployment environment; The transceiver module is further configured to send second encapsulated data to the target forwarding node selected by the processing module. The second encapsulated data includes the first explicit path, the original data, and the IP address of the target forwarding node.
9. The forwarding node according to claim 7, characterized in that, The transceiver module is used to receive a first source routing table from the central controller, the first source routing table including the path from the source deployment environment node to the destination deployment environment node; The path acquisition module is used to query the first source routing table to obtain the first explicit path when the first forwarding node is a source deployment environment node.
10. The forwarding node according to claim 7, characterized in that, The path acquisition module is further configured to receive second encapsulated data from the forwarding node in the previous hop deployment environment node of the first deployment environment node; and to obtain the first explicit path from the header of the second encapsulated data.
11. The forwarding node according to any one of claims 7-10, characterized in that, The transceiver module is also used to receive node routing tables from the central controller.
12. The forwarding node according to claim 7, characterized in that, When the link status between the first forwarding node and multiple forwarding nodes in the second deployment environment node is in a fault state, the transceiver module is further configured to send a message to the central controller. The message carries the identifier of the second deployment environment node and is used to trigger the central controller to generate a second source routing table. The second source routing table is used to trigger the forwarding nodes in the source deployment environment node to query the second source routing table, obtain a second explicit path, and forward data based on the second explicit path.
13. A computer program product, said computer program product comprising computer program code, characterized in that, When the computer program code is executed by a computer, it causes the computer to implement the method described in any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that, Used to store computer programs or instructions, which, when executed, cause a computer to perform the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Selection of routing paths based upon path quality of a wireless mesh network
CN101194469A
Static routing deployment method, device and system
CN109495567A
