Path re-optimization method for tunnel, and communication device, storage medium and product
By first switching services to a backup tunnel during the tunnel path re-optimization process, and then performing path re-optimization and switching back to the original tunnel, the problem of service interruption in existing technologies is solved, achieving lossless transmission and high reliability.
Patent Information
- Application Number
- PCT/CN2026/089898
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-08
- Filing Date
- 2026-04-10
- Publication Date
- 2026-11-12
AI Technical Summary
During tunnel path re-optimization, existing technologies directly modify the underlying configuration information of network devices, leading to service interruptions and low transmission reliability.
By switching the services carried by the first tunnel to another tunnel (the second tunnel) in the same tunnel protection group, performing path re-optimization after the service switch is completed, and then switching the services back to the first tunnel after completion, the underlying configuration information is avoided from being directly modified.
It enables lossless transmission of services during tunnel path re-optimization, improves transmission reliability, and reduces resource waste and user experience.
Smart Images

Figure CN2026089898_12112026_PF_FP_ABST
Abstract
Description
Tunnel path re-optimization methods, communication equipment, storage media and products
[0001] Cross-references to related applications
[0002] This application is based on and claims priority to Chinese Patent Application No. 202510591895.9, filed on May 8, 2025, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of communication technology, and in particular to a tunnel path re-optimization method, communication device, storage medium, and product. Background Technology
[0004] In network communication, in order to optimize the use of network resources and improve network efficiency and performance, once a tunnel has been established and is in operation, the tunnel path can be recalculated and adjusted according to dynamic changes in the network, such as link failures, changes in traffic load, and changes in topology, thereby achieving tunnel path re-optimization.
[0005] The tunnel path is defined by the underlying configuration information of network devices (such as routers and switches). In related technologies, after recalculating the optimal path for the tunnel, the underlying configuration information of the network devices is directly modified to adjust the tunnel path. However, modifying the underlying configuration information is time-consuming, and during this modification period, services may be unable to be transmitted in the tunnel, resulting in packet loss and low reliability of service transmission after the tunnel path re-optimization. Summary of the Invention
[0006] This application provides a tunnel path re-optimization method, communication device, storage medium, and product.
[0007] In a first aspect, embodiments of this application provide a tunnel path re-optimization method, the method comprising: in response to a first path re-optimization instruction of a first tunnel, switching the services carried by the first tunnel to a second tunnel, wherein the second tunnel is another tunnel in the target tunnel protection group to which the first tunnel is located; after the service switching is completed, performing a first path re-optimization operation corresponding to the first path re-optimization instruction on the first tunnel; and after the first path re-optimization operation is completed, switching the services back to the first tunnel.
[0008] In a second aspect, embodiments of this application provide a communication device, comprising: at least one processor; at least one memory for storing at least one program; and, when at least one of the programs is executed by at least one of the processors, implementing the tunnel path re-optimization method as described in the first aspect.
[0009] Thirdly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for performing the tunnel path re-optimization method as described in the first aspect.
[0010] Fourthly, embodiments of this application provide a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a communication device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the communication device to perform the tunnel path re-optimization method as described in the first aspect. Attached Figure Description
[0011] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0012] Figure 1 is a flowchart of one of the tunnel path re-optimization methods provided in the embodiments of this application;
[0013] Figure 2a is a second schematic flowchart of the tunnel path re-optimization method provided in the embodiments of this application;
[0014] Figure 2b is a schematic diagram of the path change in an unprotected SR-TP scenario provided in an embodiment of this application;
[0015] Figure 3a is a second schematic flowchart of the tunnel path re-optimization method provided in the embodiments of this application;
[0016] Figure 3b is a schematic diagram of path changes in a protected SR-TP scenario provided in an embodiment of this application;
[0017] Figure 4 is a second schematic flowchart of the tunnel path re-optimization method provided in the embodiments of this application;
[0018] Figure 5 is a schematic diagram of the structure of the communication device provided in the embodiment of this application. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0020] It should be understood that in the description of the embodiments of the present application, references to "first", "second" and the like are only for the purpose of distinguishing technical features, and shall not be construed as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the sequence of the indicated technical features. "At least one" refers to one or more, and "a plurality of" refers to two or more. "And / or" describes the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B may represent the case where A exists alone, both A and B exist simultaneously, and B exists alone. Herein, A and B may be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following items" and similar expressions refer to any group of these items, including any group of a single item or a plurality of items. For example, at least one of a, b and c may represent: a, b, c, a and b, a and c, b and c, or a and b and c, wherein a, b and c may be a single one or a plurality of ones.
[0021] To facilitate the understanding of the solutions of the embodiments of the present application, some contents involved in the embodiments of the present application are described below.
[0022] Path re-optimization of a tunnel refers to the process of recalculating and adjusting the path of the tunnel according to the current network state, such as link state, traffic load, topology change, etc., in network communication, which can improve network performance, reliability and resource utilization efficiency.
[0023] In the related art, after the optimal path of the tunnel is recalculated, the underlying configuration information of the network device is directly modified to adjust the path of the tunnel. However, the modification of the underlying configuration information takes a long time, during which the service cannot be transmitted on the tunnel, resulting in service packet loss and low service transmission reliability of the path re-optimization of the tunnel.
[0024] Based on this, the embodiments of the present application provide a tunnel path re-optimization method, communication device, storage medium and product, which can realize service non-loss in the path re-optimization of the tunnel, thereby improving the service transmission reliability of the path re-optimization of the tunnel.
[0025] The method for path re-optimization of a tunnel provided by the embodiments of the present application will be described in detail below through some embodiments and application scenarios in conjunction with the accompanying drawings.
[0026] The method for path re-optimization of a tunnel provided by the embodiments of the present application can be applied to a communication device corresponding to the tunnel, and is executed by the communication device corresponding to the tunnel. In some embodiments, the communication device corresponding to the tunnel may be a network management and control system (which may be referred to as management and control for short). In other embodiments, the communication device corresponding to the tunnel may be the source node or the destination node of the path of the tunnel, such as a router or a switch.
[0027] It is understood that the path re-optimization of each tunnel is performed through the communication equipment of the corresponding tunnel. As shown in the method embodiment corresponding to Figure 1, the path re-optimization of the first tunnel is used as an example. Therefore, the path re-optimization of the first tunnel can be performed through the communication equipment corresponding to the first tunnel.
[0028] Referring to Figure 1, Figure 1 is a schematic flowchart of one of the tunnel path re-optimization methods provided in this application embodiment. As shown in Figure 1, the tunnel path re-optimization method includes, but is not limited to, the following steps.
[0029] Step 101: In response to the first path re-optimization instruction of the first tunnel, the service carried by the first tunnel is switched to the second tunnel, wherein the second tunnel is another tunnel in the target tunnel protection group where the first tunnel is located.
[0030] In practice, once the first tunnel is established and operational, the network management system can recalculate the optimal path of the first tunnel based on dynamic network changes, such as link failures, traffic load changes, and topology changes. If the optimal path of the first tunnel changes, i.e., the outbound information of the first tunnel changes, a path re-optimization instruction (i.e., a first path re-optimization instruction) can be generated to indicate the new optimal path or the new outbound information of the first tunnel, thereby triggering path re-optimization of the first tunnel.
[0031] As can be seen from the foregoing, the tunnel path re-optimization method provided in this application embodiment can be applied to a network management system, the source node of the tunnel path, or the target node. In implementation, if applied to a network management system, after generating the first path re-optimization instruction, the network management system can directly respond to the generated first path re-optimization instruction and execute step 101; if applied to the source node or target node of the tunnel path, after generating the first path re-optimization instruction, the network management system can send the generated first path re-optimization instruction to the corresponding node to trigger the corresponding node to execute step 101.
[0032] It is worth noting that, in this embodiment, before the communication device corresponding to the first tunnel changes the path of the first tunnel in response to the first path re-optimization command, it first switches the services carried by the first tunnel to another tunnel in the target tunnel protection group where the first tunnel is located, namely the second tunnel. In implementation, switching the services carried by the first tunnel to the second tunnel can be expressed as: switching the services carried by the first tunnel to be transmitted on the path of the second tunnel. Based on this, the path of the second tunnel can be understood as: a backup path for the first tunnel, used to transmit the services carried by the first tunnel during the path re-optimization process of the first tunnel.
[0033] In some embodiments, before switching the first tunnel to the second tunnel, it can be determined that the second tunnel is ready for service transmission. In this way, it can be ensured that the services carried by the first tunnel can be transmitted normally after switching to the second tunnel.
[0034] In this way, firstly, since the first tunnel and the second tunnel are located in the same tunnel protection group, namely the target tunnel protection group, the service switching between the two tunnels can be achieved by changing the protection status of the target tunnel protection group. Thus, the damage to the service during the service switching is negligible. Secondly, by switching the service carried by the first tunnel to the second tunnel, the interference of the path re-optimization operation of the first tunnel on the transmission of this service can be avoided. It can be seen that this method can make the tunnel path re-optimization achieve service lossless, thereby improving the service transmission reliability of the tunnel path re-optimization.
[0035] In addition, in this embodiment of the application, the first tunnel can be any tunnel in the network, which can be a tunnel with a preset tunnel protection group or a tunnel without a preset tunnel protection group.
[0036] In this application embodiment, the preset tunnel protection group can be understood as a pre-configured tunnel protection group that includes a working tunnel and a protection tunnel. This tunnel protection group can quickly switch services to the protection tunnel when the working tunnel fails, thereby ensuring the continuity of service transmission.
[0037] For the first tunnel with different manifestations, the manifestations of the corresponding target tunnel protection group can be the same or different, as explained below.
[0038] In the case where the first tunnel is a tunnel without a preset tunnel protection group, the target tunnel protection group can be a tunnel protection group created specifically for achieving lossless path re-optimization of the first tunnel. Correspondingly, the second tunnel can be a tunnel created specifically for achieving lossless path re-optimization of the first tunnel. In some embodiments, the second tunnel can be a physical tunnel or a virtual tunnel, which can be determined according to the actual situation, and this application embodiment does not limit this. For ease of description, in this application embodiment, a tunnel protection group created specifically for achieving lossless path re-optimization of a tunnel can be called a dedicated tunnel protection group for that tunnel; a tunnel created specifically for achieving lossless path re-optimization of a tunnel can be called a backup tunnel for that tunnel. Based on this, in this case, the second tunnel can be understood as a backup tunnel for the first tunnel, and the target tunnel protection group can be understood as a dedicated tunnel protection group for the first tunnel. It should be noted that this application embodiment does not limit the protection type of the dedicated tunnel protection group, which can be, but is not limited to, a single-transmitter, dual-receiver protection type, and can be set according to actual needs. For the creation of the second tunnel and the target tunnel protection group, please refer to the relevant description below, which will not be described here.
[0039] When the first tunnel is a tunnel with a preset tunnel protection group, the following two types of embodiments may be included.
[0040] In some embodiments, similar to the case where the first tunnel is a tunnel without a preset tunnel protection group, the second tunnel can be understood as a backup tunnel for the first tunnel, and the target tunnel protection group can be understood as a dedicated tunnel protection group for the first tunnel. In these embodiments, regardless of whether a tunnel has a preset tunnel protection group, a backup tunnel can be created in advance for each tunnel to form a dedicated tunnel protection group, in order to achieve lossless path re-optimization for the tunnel.
[0041] In other embodiments, the target tunnel protection group can be a preset tunnel protection group corresponding to the first tunnel. In these embodiments, for tunnels that have already been configured with preset tunnel protection groups, the preset tunnel protection groups can be reused to achieve lossless path re-optimization of the tunnel's services, thereby eliminating the need to add new tunnel configuration resources and reducing resource waste.
[0042] Furthermore, the embodiments of this application do not limit the tunnel type. The tunnel can be any tunnel that supports re-optimization and can be based on route calculation. In other words, the re-optimization of any tunnel that supports re-optimization and can be based on route calculation can be achieved through the tunnel path optimization method provided in the embodiments of this application.
[0043] In some embodiments, the tunnel can be any of the following: Segment Routing-Traffic Engineering (SR-TP) tunnel; Generic Routing Encapsulation (GRE) tunnel; Segment Routing-Multiprotocol Label Switching (SR-MPLS) tunnel; Internet Protocol Version 6 (IPv6) tunnel; or Segment Routing over IPv6 (SRv6) tunnel.
[0044] The outgoing information can be presented in different ways depending on the type of tunnel. For example, for an SR-TP tunnel, the outgoing information may include the tunnel's tag stack; for a GRE tunnel, the outgoing information may include the tunnel's outgoing interface, source IP, and destination IP; for an SRV6 tunnel, the outgoing information may include the tunnel's outgoing interface and the SRV6 segment ID stack (SID).
[0045] Step 102: After the service switch is completed, perform the first path re-optimization operation corresponding to the first path re-optimization instruction on the first tunnel.
[0046] In this embodiment of the application, in response to the first path re-optimization instruction, the service carried by the first tunnel is first switched to the second tunnel, and only after the service switching is completed, that is, after the service carried by the first tunnel is successfully switched to the second tunnel for transmission, is the first path re-optimization operation corresponding to the first path re-optimization instruction performed on the first tunnel.
[0047] The first path re-optimization operation, also known as the actual path change operation of the first tunnel, is used to correctly switch the path of the first tunnel to a new optimal path, thereby optimizing the use of network resources and improving network efficiency and performance. In implementation, the first path re-optimization operation can modify the underlying configuration information of the network devices in the first tunnel to change the outbound information of the first tunnel, thus adjusting the path of the first tunnel.
[0048] Step 103: After the first path re-optimization operation is completed, switch the service back to the first tunnel.
[0049] Once the tunnel path re-optimization operation is complete, it indicates that the tunnel path change is finished and ready for service transmission. Based on this, after the first path re-optimization operation is completed, services carried in the first tunnel can be switched back from the second tunnel to the first tunnel, allowing the services carried in the first tunnel to be transmitted again through the first tunnel. This restores the service transmission to the user's desired state, thereby improving service transmission performance.
[0050] In this embodiment, for tunnels carrying services, the path re-optimization process includes three steps: 101 to 103, to achieve lossless service re-optimization. It can be understood that for tunnels not carrying services, since they do not carry services, path re-optimization will not cause service loss. Therefore, for tunnels not carrying services, the path re-optimization process may only include path re-optimization operations for changing the path, corresponding to step 102.
[0051] The tunnel path re-optimization method provided in this application, in response to a first path re-optimization command for a first tunnel, can first switch the services carried by the first tunnel to another tunnel in the target tunnel protection group where the first tunnel is located, i.e., a second tunnel. After the service switch is completed, a first path re-optimization operation corresponding to the first path re-optimization command is performed on the first tunnel. Then, after the first path re-optimization operation is completed, the services are switched back to the first tunnel. In this way, by switching the services carried by the first tunnel to another tunnel in the target tunnel protection group before performing path re-optimization on the first tunnel, and then switching the services back after the path re-optimization is completed, the entire path re-optimization process of the first tunnel can achieve lossless service, thereby improving the service transmission reliability of the tunnel path re-optimization.
[0052] In addition, to achieve lossless path re-optimization of services in tunnels carrying services, even if it is necessary to create backup tunnels and dedicated tunnel protection groups, backup tunnels and dedicated tunnel protection groups only require a small amount of redundant resources, have low cost, and are not easily perceived by users.
[0053] The following describes the creation of the protection groups for the second tunnel and the target tunnel.
[0054] In some embodiments, before switching the service carried by the first tunnel to the second tunnel, the method further includes: creating a second tunnel based on the first tunnel; wherein the second tunnel and the first tunnel at least satisfy the following conditions: the source node and the target node of the path are the same; and creating a target tunnel protection group formed by the first tunnel and the second tunnel.
[0055] As described above, the second tunnel can be considered a backup tunnel for the first tunnel, used to transmit the services carried by the first tunnel during path re-optimization. Therefore, a second tunnel can be created based on the first tunnel, such that the source node of the second tunnel's path is the same as the source node of the first tunnel's path, and the destination node of the second tunnel's path is the same as the destination node of the first tunnel's path. In this way, regardless of whether the service is transmitted through the first tunnel or the second tunnel, it can be guaranteed that the service can be transmitted to the same node, thereby improving the reliability of service transmission.
[0056] It is worth noting that the paths of the second tunnel and the first tunnel can be the same or different, depending on the actual needs. In some embodiments, the second tunnel can be a virtual tunnel, and the path of the virtual tunnel is the same as that of the first tunnel. In these embodiments, the second tunnel can be created by copying (i.e., duplicating) the outbound information of the first tunnel, so that the path of the second tunnel is the same as that of the first tunnel, thus simplifying the creation of the second tunnel.
[0057] After the second tunnel is created, a tunnel protection group, namely the target tunnel protection group, can be generated through the first and second tunnels. The target tunnel protection group can then be configured. This allows services carried by the first tunnel to be seamlessly switched to the second tunnel for transmission, thereby improving the reliability of service transmission.
[0058] Based on the foregoing, the creation of the second tunnel and target tunnel protection group can be applied to both cases where the first tunnel does not have a preset tunnel protection group and cases where the first tunnel does have a preset tunnel protection group. In some embodiments, creating the second tunnel based on the first tunnel may include:
[0059] If there is no corresponding preset tunnel protection group for the first tunnel, create a second tunnel based on the first tunnel.
[0060] In these embodiments, in response to the path re-optimization command of the first tunnel, it can be first determined whether the first tunnel has a corresponding preset tunnel protection group. If it exists, the preset tunnel protection group corresponding to the first tunnel can be directly used as the target tunnel protection group; if it does not exist, the creation operation of the second tunnel and the target tunnel protection group can be performed to prepare for the lossless path re-optimization of the first tunnel. In this way, for tunnels that have been configured with preset tunnel protection groups, the preset tunnel protection groups can be reused to achieve lossless path re-optimization of the tunnel's services, thereby eliminating the need to add new tunnel configuration resources and reducing resource waste.
[0061] By using the above method, the second tunnel created based on the first tunnel can ensure that the services carried by the first tunnel can still be transmitted to the desired node after switching to the second tunnel, thereby improving the reliability of service transmission. By generating a target tunnel protection group through the first and second tunnels, the services carried by the first tunnel can be switched to the second tunnel for transmission without loss, thereby improving the reliability of service transmission.
[0062] In some embodiments, for the above-described embodiments of creating a second tunnel and a target tunnel protection group, after switching the service back to the first tunnel, the method may further include: deleting the second tunnel and the target tunnel protection group.
[0063] In other words, after completing the path re-optimization of a tunnel, all resources created to achieve lossless path re-optimization of the tunnel can be deleted, including backup tunnels and dedicated tunnel protection groups. In this way, the redundant resources occupied can be released after the tunnel path re-optimization is completed, thereby reducing the resource occupation of the tunnel and protection group by the lossless path re-optimization of the tunnel.
[0064] The following is a detailed explanation of the case where the first tunnel has a corresponding preset tunnel protection group, and the target tunnel protection group is a preset tunnel protection group.
[0065] As described above, the preset tunnel protection group can quickly switch services to the protection tunnel when the working tunnel fails. In other words, under normal circumstances, services are transmitted through the working tunnel when it is not faulty, and through the protection tunnel when it fails. However, it is worth noting that this embodiment does not exclude the special case where neither the working tunnel nor the protection tunnel in the preset tunnel protection group fails, but the user may perceive a potential problem in the working tunnel and forcibly switch services to the protection tunnel.
[0066] Based on this, in cases where the first tunnel has a corresponding preset tunnel protection group, and the target tunnel protection group is a preset tunnel protection group, in some embodiments, the first tunnel can be a working tunnel carrying services within the preset tunnel protection group, and the second tunnel can be a protection tunnel in the preset tunnel protection group that has not experienced a fault. These embodiments are applicable to the general situation described above. In other embodiments, the first tunnel can be a protection tunnel carrying services within the preset tunnel protection group, and the second tunnel can be a working tunnel in the preset tunnel protection group that has not experienced a fault but whose services are forcibly switched to the protection tunnel due to potential hidden dangers. These embodiments are applicable to the special situations described above.
[0067] Furthermore, in this embodiment, for a preset tunnel protection group, both the working tunnel and the protection tunnel can undergo path re-optimization, but the priority of path re-optimization for the working tunnel can be higher than that for the protection tunnel. Since the path re-optimization priority of the working tunnel is higher than that of the protection tunnel, it can be understood that when the working tunnel is re-optimized, the protection tunnel will not be re-optimized, but when the protection tunnel is re-optimized, the working tunnel may be re-optimized.
[0068] Based on this, in response to the path re-optimization command for the protected tunnel, before performing path re-optimization on the protected tunnel, it can be determined whether the working tunnel is under path re-optimization, and then based on the determination result, it can be decided whether to immediately respond to the path re-optimization command for the protected tunnel and start the path re-optimization of the protected tunnel. The specific explanation is as follows.
[0069] In some embodiments, where the first tunnel can be a protection tunnel carrying services in a preset tunnel protection group, and the second tunnel can be a working tunnel in the preset tunnel protection group that is not faulty but whose services are forcibly switched to the protection tunnel due to potential risks, in response to the first tunnel being a protection tunnel in the preset tunnel protection group and the second tunnel being a working tunnel in the preset tunnel protection group, in response to the first path re-optimization instruction of the first tunnel, the services carried by the first tunnel are switched to the second tunnel, including: in response to the first path re-optimization instruction of the first tunnel, determining whether the second tunnel is undergoing path re-optimization; if the second tunnel is undergoing path re-optimization, switching the services carried by the first tunnel to the second tunnel after the path re-optimization of the second tunnel is completed; if the second tunnel is not undergoing path re-optimization, switching the services carried by the first tunnel to the second tunnel.
[0070] In these embodiments, the first tunnel is a protection tunnel in a preset tunnel protection group and carries services, while the second tunnel is a working tunnel in the preset tunnel protection group. Therefore, to achieve lossless path re-optimization of services in the protection tunnel, the services carried by the protection tunnel can be switched to the working tunnel first, and then the path re-optimization operation of the protection tunnel can be performed.
[0071] Since path re-optimization of the protection tunnel requires the use of the working tunnel for service transmission, and the path re-optimization of the working tunnel has a higher priority than that of the protection tunnel, it is possible to determine whether the working tunnel is undergoing path re-optimization before switching the services carried by the protection tunnel to the working tunnel in response to the path re-optimization command of the protection tunnel.
[0072] If the working tunnel is undergoing path re-optimization, the service in the protection tunnel can be switched to the working tunnel before the protection tunnel's path re-optimization begins. In this embodiment, since the user specifies that services are transmitted through the protection tunnel of a preset tunnel protection group, the working tunnel does not carry any services before the protection tunnel's path re-optimization begins. Therefore, the working tunnel's path re-optimization will not cause service disruption. Consequently, the working tunnel's path re-optimization can directly execute the corresponding path change operation, and services are transmitted through the protection tunnel during the working tunnel's path re-optimization process.
[0073] If the working tunnel is not in path re-optimization, then the path re-optimization of the protection tunnel can be started, and steps 101 to 103 mentioned above can be executed sequentially.
[0074] In the above manner, when the preset tunnel protection group carries services through the protected tunnel, it can first determine that the working tunnel is undergoing path re-optimization before starting to execute the path re-optimization of the protected tunnel. If the working tunnel is undergoing path re-optimization, the path re-optimization of the working tunnel can be executed first, and then the path re-optimization of the protected tunnel can be executed. In this way, the path re-optimization order of the tunnels in the preset tunnel protection group can be matched with the path re-optimization priority of the tunnels, ensuring the reliability of the path re-optimization of the tunnels in the preset tunnel protection group.
[0075] In some embodiments, where the first tunnel can be a working tunnel carrying services in a preset tunnel protection group and the second tunnel can be a protection tunnel in the preset tunnel protection group that has not experienced a fault, in a general scenario where the first tunnel is a working tunnel in the preset tunnel protection group and the second tunnel is a protection tunnel in the preset tunnel protection group, the method further includes: in response to a second path re-optimization instruction for the second tunnel and the second tunnel not carrying services, determining whether the first tunnel is undergoing path re-optimization; if the first tunnel is undergoing path re-optimization, after the path re-optimization of the first tunnel is completed, performing a second path re-optimization operation corresponding to the second path re-optimization instruction on the second tunnel; if the first tunnel is not undergoing path re-optimization, performing a second path re-optimization operation on the second tunnel.
[0076] In these embodiments, the first tunnel is a working tunnel carrying services in a preset tunnel protection group, and the second tunnel is a protection tunnel in the preset tunnel protection group that does not carry services. Therefore, to achieve lossless path re-optimization of services in the working tunnel, the services carried by the working tunnel can be switched to the protection tunnel first, and then the path re-optimization of the working tunnel can be performed.
[0077] Since path re-optimization of the working tunnel requires the use of the protection tunnel for service transmission, and the path re-optimization priority of the working tunnel is higher than that of the protection tunnel, if a path re-optimization instruction for the second tunnel is obtained, before executing the path re-optimization of the protection tunnel in response to the path re-optimization instruction of the protection tunnel, it can be determined whether the working tunnel is under path re-optimization.
[0078] If the working tunnel is undergoing path re-optimization, the path re-optimization of the protection tunnel can be performed after the working tunnel has completed its path re-optimization, so that the working tunnel's service can be re-optimized without loss.
[0079] If the working tunnel is not undergoing path re-optimization, the path re-optimization of the protection tunnel can be directly executed in response to the path re-optimization command. It can be understood that in this embodiment, since services are transmitted through the working tunnel of the preset tunnel protection group, the protection tunnel does not carry any services before the path re-optimization of the working tunnel begins. Therefore, the path re-optimization of the protection tunnel will not cause service disruption. Thus, the path re-optimization of the protection tunnel can directly execute the corresponding path change operation.
[0080] Using the above method, when the preset tunnel protection group carries services through the working tunnel, before starting the path re-optimization of the protection tunnel, it can first determine that the working tunnel is undergoing path re-optimization. If the working tunnel is undergoing path re-optimization, the path re-optimization of the working tunnel can be performed first, and then the path re-optimization of the protection tunnel can be performed. In this way, the path re-optimization order of the tunnels in the preset tunnel protection group can be matched with the path re-optimization priority of the tunnels, ensuring the reliability of the path re-optimization of the tunnels in the preset tunnel protection group. It can also ensure that the lossless path re-optimization of services in the working tunnel is successfully completed, thereby improving the reliability of service transmission.
[0081] In this embodiment, the path re-optimization process of a tunnel carrying services includes three steps executed sequentially: switching the carried services to a backup tunnel, performing path re-optimization, and switching the services back. To ensure uninterrupted service throughout the entire path re-optimization process, the next operation can be performed only after the current operation is completed. In some embodiments, the method may further include: determining that a target operation is completed when a target condition is met; wherein the target operation includes at least one of service switching and a first path re-optimization operation; the target condition is any one of the following: the time interval between the current time and the start time of the target operation reaches a target time; the target time is greater than or equal to the expected completion time of the target operation; and a message notification indicating that the target operation has been completed is received.
[0082] For ease of description, the target time can be denoted as T. It is understood that the expected completion time of the target operation can be different for different target operations, and therefore the value of T can be different. The specific value can be set according to the actual situation, and this application embodiment does not limit it.
[0083] If the target condition is that the time interval between the current time and the start time of the target operation reaches T, after the target operation starts, a delay of T can be made before executing the next operation of the target operation. In this way, by delaying T, it can be ensured that the target operation has been completed before the next operation of the target operation is executed.
[0084] If the target condition is to obtain a message notification indicating that the target operation has been completed, the execution status of the target operation can be monitored. After the target operation is completed, a message can be sent to notify it that it has been completed, so as to facilitate the execution of the next operation of the target operation. In this way, compared with executing the next operation of the target operation after a delay of T, the flexibility of the timing of operation execution can be improved.
[0085] By using the above method, once the target conditions are met, the target operation is determined to be completed, and then the next operation of the target operation is executed. In this way, it can be ensured that the next operation is executed only after the current operation is completed, thereby improving the service transmission reliability of the entire path re-optimization process.
[0086] This application does not limit the way of triggering service switching. In some embodiments, the method may further include: sending a service switching command to the target tunnel protection group before switching the service carried by the first tunnel to the second tunnel; wherein the service switching command is used to indicate that the service is switched from the first tunnel to the second tunnel; and clearing the service switching command in response to the completion of the first path re-optimization operation.
[0087] In practice, in response to the path re-optimization command of the first tunnel, a service switching command instructing the target tunnel protection group to switch the service from the first tunnel to the second tunnel can be sent first, so that the target tunnel protection group responds to this service switching command and switches the service to the second tunnel.
[0088] In some implementations, the service switching command can be a newly created switching command to indicate the service switching; in other implementations, the service switching can be achieved through the automatic protection switching mechanism of the multiplexed tunnel protection group. In these implementations, the service switching command can be a switching command, such as a manual-switch (MS) command, which can save the signaling overhead of service switching.
[0089] After the first path re-optimization operation is completed, in order to ensure that the service transmission meets the user's expected state, it is necessary to switch the service back to the first tunnel. Therefore, the service switching command can be cleared to enable the service to successfully switch back to the first tunnel, thereby improving the reliability of service switching.
[0090] In the above embodiments, a service can be switched from the first tunnel to the backup tunnel by sending a service switching command, and the service can be switched back from the backup tunnel to the first tunnel by clearing the service switching command, thereby ensuring the reliability of the service switching.
[0091] It should be noted that the various embodiments described in this application can be combined with each other or implemented individually without conflict, and this application does not limit this.
[0092] For ease of understanding, some examples are provided for illustration.
[0093] In the following embodiments, SR-TP tunnels are used as examples, but this does not limit the type of tunnel. The following embodiments can be applied, but are not limited to, symmetric networks where switches or routers use SR-TP tunnels to cross underlying network architecture layers, such as in 5G core network interconnection scenarios.
[0094] Example 1: The non-destructive re-optimization of an unprotected SR-TP tunnel (i.e., the first tunnel that does not have a corresponding preset tunnel protection group) can be achieved by creating a virtual protection group (i.e., the aforementioned dedicated tunnel protection).
[0095] As shown in Figure 2a, when the device receives a change in outbound information of an unprotected SR-TP tunnel (denoted as tunnel K), it creates a virtual tunnel K' (i.e., the aforementioned second tunnel). The outbound information of the virtual tunnel K' is copied from the original tunnel K. The original tunnel K and the virtual tunnel K' form a virtual protection group. After a delay of T seconds, once the virtual protection group is configured, a manual switchover command is issued to the virtual protection group to switch it to K'. After a successful switchover, the original tunnel K changes to the new path. After another delay of T seconds, once the original tunnel K has changed, the manual switchover command is cleared to switch back to the original tunnel K. After another delay of T seconds, once the switchback is complete, all virtual resources, including the virtual tunnel K' and the virtual tunnel protection group, are deleted.
[0096] As can be seen, for unprotected SR-TP scenarios, virtual protected SR-TP and virtual protection groups are used for processing. For ease of understanding, an example is provided with reference to Figure 2b.
[0097] As shown in Figure 2b, the original SR-TP tunnel has a tag stack of [100, 101] and a path of [A, B, E]. Upon receiving the path re-optimization instruction, it will be re-optimized to a tag stack of [102, 103, 105, 106] and a path of [A, C, B, D, E].
[0098] Path re-optimization can include 5 parts: 1) Create a co-route protected path (virtual protection SR-TP, the path is still [A, B, E]) for the original unprotected SR-TP, and generate a virtual protection group; 2) Manually switch services to the virtual protection SR-TP; 3) Re-optimize the original SR-TP to a new path; 4) Manually switch services back to the original SR-TP (i.e., take the new path [A, C, B, D, E]); 5) Delete the virtual protection SR-TP and the virtual protection group.
[0099] Example 2: The re-optimization of the working tunnel with protected SR-TP tunnel (i.e., the first tunnel with a corresponding preset tunnel protection group, and the first tunnel is the working tunnel of the preset tunnel protection group) is lossless and is achieved through internal switching and back-cutting.
[0100] As shown in Figure 3a, when the device receives a change in the outbound information of the protected working SR-TP tunnel, it internally issues a manual switch command to perform the switch. After the switch is successful, the working SR-TP tunnel is changed to the new path. After a delay of T seconds, once the working SR-TP tunnel has been changed, the manual switch command is cleared to switch back to the working path.
[0101] For easier understanding, an example can be provided in conjunction with Figure 3b.
[0102] As shown in Figure 3b, the working SR-TP tunnel has a label stack of [100, 101] and a path of [A, B, E]; the protection SR-TP tunnel has a label stack of [102, 104, 106] and a path of [A, C, D, E]. Upon receiving a path re-optimization instruction, the working SR-TP tunnel will be re-optimized to a label stack of [102, 103, 105, 106] and a path of [A, C, B, D, E].
[0103] The path re-optimization of the working SR-TP tunnel can include three parts: 1) manually switching the service from working to protection SR-TP; 2) re-optimizing the new path for the working SR-TP; 3) manually switching the service back to working.
[0104] Example 3: The re-optimization of the protected tunnel of the protected SR-TP tunnel (i.e., the first tunnel that has a corresponding preset tunnel protection group and the first tunnel is a protected tunnel of the preset tunnel protection group that does not carry services) is lossless and can be achieved by directly changing it at an appropriate time.
[0105] As shown in Figure 4, when the device receives a change in outbound information for a protected SR-TP tunnel, it determines whether the working SR-TP tunnel is undergoing re-optimization. If it is, it waits for the working SR-TP tunnel to complete its processing before making the change; otherwise, it directly changes to the new path. In other words, the path re-optimization of the protected SR-TP tunnel can include three parts: 1) determining whether the working SR-TP is undergoing re-optimization; 2) if the SR-TP is undergoing re-optimization, waiting; 3) if the SR-TP is not undergoing re-optimization, directly re-optimizing to a new path.
[0106] As can be seen from the above embodiments, compared with the general SR-TP tunnel re-optimization implementation method, the above method can avoid the service impairment caused by directly modifying the outbound forwarding information when the outbound information of the SR-TP tunnel changes; at the same time, the consumption of redundant resources is low, and customers do not perceive the consumption of redundant resources. This method can ensure uninterrupted service during the re-optimization to the new path, and its application can improve network reliability and stability, and enhance user experience.
[0107] This application also provides a communication device, as shown in FIG5. The communication device 500 includes: one or more processors 510; and a memory 520 storing one or more programs. When the one or more programs are executed by the one or more processors 510, the one or more processors 510 implement the tunnel path re-optimization method described in any of the above embodiments.
[0108] Memory 520, as a non-transitory network system, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 520 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 520 includes remotely located memories 520 relative to processor 510, which can be connected to processor 510 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0109] The memory 520 can be implemented as a read-only memory (ROM), static storage device, dynamic storage device, or random access memory (RAM). The memory 520 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 520 and is called and executed by the processor 510.
[0110] The processor 510 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.
[0111] In some embodiments, the communication device further includes: an input / output interface for implementing information input and output; a communication interface for implementing communication interaction between the device and other devices, which can be implemented via wired means (e.g., USB, Ethernet cable, etc.) or via wireless means (e.g., mobile network, WIFI, Bluetooth, etc.); and a bus for transmitting information between various components of the device (e.g., processor 510, memory 520, input / output interface, and communication interface); wherein the processor 510, memory 520, input / output interface, and communication interface can be interconnected within the device via the bus.
[0112] One embodiment of this application also provides a computer-readable storage medium storing computer-executable instructions for performing a tunnel path re-optimization method as provided in any embodiment of this application.
[0113] An embodiment of this application also provides a computer program product, including a computer program or computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform a tunnel path re-optimization method as provided in any embodiment of this application.
[0114] The system architecture and application scenarios described in this application are intended to more clearly illustrate the technical solutions of this application and do not constitute a limitation on the technical solutions provided in this application. Those skilled in the art will understand that as system architectures evolve and new application scenarios emerge, the technical solutions provided in this application are also applicable to similar technical problems.
[0115] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0116] In hardware implementations, the division between functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0117] The terms “component,” “module,” “system,” etc., used in this specification are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process or execution thread, and components may be located on a single computer or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, or a network, such as the Internet interacting with other systems via signals).
[0118] The above description, with reference to the accompanying drawings, illustrates some embodiments of this application, but does not limit the scope of this application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and spirit of this application shall be within the scope of this application.
Claims
1. A tunnel path re-optimization method, comprising: In response to the first path re-optimization command of the first tunnel, the service carried by the first tunnel is switched to the second tunnel, wherein the second tunnel is another tunnel in the target tunnel protection group to which the first tunnel is located; After the service switch is completed, the first path re-optimization operation corresponding to the first path re-optimization instruction is performed on the first tunnel; After the first path re-optimization operation is completed, the service will be switched back to the first tunnel.
2. The method according to claim 1, wherein, Before switching the service carried by the first tunnel to the second tunnel, the method further includes: Based on the first tunnel, create the second tunnel; wherein the second tunnel and the first tunnel at least satisfy the following conditions: the source node and the target node of the path are the same; Create the target tunnel protection group formed by the first tunnel and the second tunnel.
3. The method according to claim 2, wherein, After switching the service back to the first tunnel, the method further includes: Delete the second tunnel and the target tunnel protection group.
4. The method according to claim 2, wherein, The second tunnel is a virtual tunnel, and the path of the virtual tunnel is the same as that of the first tunnel.
5. The method according to claim 2, wherein, The step of creating the second tunnel based on the first tunnel includes: If there is no corresponding preset tunnel protection group for the first tunnel, the second tunnel is created based on the first tunnel.
6. The method according to claim 1, wherein, If the first tunnel has a corresponding preset tunnel protection group, the target tunnel protection group is the preset tunnel protection group.
7. The method according to claim 6, wherein, In response to the first tunnel being a protection tunnel in the preset tunnel protection group and the second tunnel being a working tunnel in the preset tunnel protection group, the step of switching the service carried by the first tunnel to the second tunnel in response to the first path re-optimization instruction of the first tunnel includes: In response to the first path re-optimization instruction of the first tunnel, determine whether the second tunnel is undergoing path re-optimization; When the second tunnel is undergoing path re-optimization, the services carried by the first tunnel will be switched to the second tunnel after the path re-optimization of the second tunnel is completed. If the second tunnel is not undergoing path re-optimization, the services carried by the first tunnel will be switched to the second tunnel.
8. The method according to claim 6, wherein, In response to the first tunnel being a working tunnel in the preset tunnel protection group and the second tunnel being a protected tunnel in the preset tunnel protection group, the method further includes: In response to the second path re-optimization instruction of the second tunnel and the second tunnel is not carrying any services, determine whether the first tunnel is undergoing path re-optimization. When the first tunnel is undergoing path re-optimization, after the path re-optimization of the first tunnel is completed, the second path re-optimization operation corresponding to the second path re-optimization instruction is performed on the second tunnel. If the first tunnel is not undergoing path re-optimization, the second path re-optimization operation is performed on the second tunnel.
9. The method according to claim 1, further comprising: If the target conditions are met, the target operation is deemed complete. The target operation includes at least one of the service switching and the first path re-optimization operation; The target condition is any one of the following: The time interval between the current time and the start time of the target operation reaches the target time; the target time is greater than or equal to the expected completion time of the target operation. Receive a message notification indicating that the target operation has been completed.
10. The method according to claim 1, further comprising: Before switching the service carried by the first tunnel to the second tunnel, a service switching command is sent to the target tunnel protection group; wherein, the service switching command is used to instruct the service to be switched from the first tunnel to the second tunnel; In response to the completion of the first path re-optimization operation, the service switching command is cleared.
11. A communication device, comprising: At least one processor; At least one memory for storing at least one program; The tunnel path re-optimization method of any one of claims 1 to 10 is implemented when at least one of the programs is executed by at least one of the processors.
12. A computer-readable storage medium storing computer-executable instructions for performing the tunnel path re-optimization method according to any one of claims 1 to 10.
13. A computer program product comprising a computer program or computer instructions stored in a computer-readable storage medium, wherein a processor of a communication device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions to cause the communication device to perform the tunnel path re-optimization method according to any one of claims 1 to 10.
