Tunnel path re-optimization method, communication device, storage medium and product

By switching tunnel business to another within its protection group before and after path reoptimization, the method ensures no loss of business during tunnel path reoptimization, improving reliability and reducing resource waste.

CN120321172APending Publication Date: 2025-07-15ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510591895.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-08
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

In the tunnel path re-optimization process, the service transmission is interrupted due to the long modification of the underlying configuration information, resulting in low reliability of the service transmission of the path re-optimization.

Method used

By switching the services carried by the first tunnel to another tunnel (second tunnel) in the target tunnel protection group, the path re-optimization operation is performed after the service switching is completed, and the service is switched back to the first tunnel after completion, ensuring the continuity of service transmission.

Benefits of technology

Lossless service transmission during tunnel path re-optimization is realized, the reliability of path re-optimization is improved, and resource waste and user-perceived interference is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321172A_ABST
    Figure CN120321172A_ABST
Patent Text Reader

Abstract

The invention discloses a tunnel path re-optimization method, communication equipment, a storage medium and a product. The method comprises: in response to a first path re-optimization instruction of a first tunnel, switching a service carried by the first tunnel to a second tunnel, the second tunnel being another tunnel in a target tunnel protection group where the first tunnel is located; after the service switching is completed, executing 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 service back to the first tunnel. According to the invention, the service transmission reliability of path re-optimization of the tunnel can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of this application relate to the field of communication technologies, and in particular, to a method for re-optimizing the path of a tunnel, a communication device, a storage medium, and a product. Background Art

[0002] In network communication, in order to optimize the use of network resources and improve the efficiency and performance of the network, when a tunnel has been established and is running, the path of the tunnel can be recalculated and adjusted according to the dynamic changes of the network, such as link failures, traffic load changes, topology changes, etc., to achieve re-optimization of the path of the tunnel.

[0003] The path of the tunnel is defined by the underlying configuration information of network devices (such as routers and switches). In the related art, after recalculating the optimal path of the tunnel, the underlying configuration information of the network device is directly modified to adjust the path of the tunnel. However, modifying the underlying configuration information takes a long time, and during this modification period, services cannot be transmitted through the tunnel, resulting in service packet loss and low reliability of service transmission for re-optimizing the path of the tunnel. Summary of the Invention

[0004] Embodiments of this application provide a method for re-optimizing the path of a tunnel, a communication device, a storage medium, and a product, aiming to improve the reliability of service transmission for re-optimizing the path of the tunnel.

[0005] In a first aspect, embodiments of this application provide a method for re-optimizing the path of a tunnel. The method includes: in response to a first path re-optimization instruction for a first tunnel, switching the service carried by the first tunnel to a second tunnel, where the second tunnel is another tunnel in the target tunnel protection group where 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 service back to the first tunnel.

[0006] In a second aspect, embodiments of this application provide a communication device, including: at least one processor; at least one memory for storing at least one program; when at least one of the at least one program is executed by the at least one processor, implementing the method for re-optimizing the path of a tunnel as described in the first aspect.

[0007] In a third aspect, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for executing the method for re-optimizing the path of a tunnel as described in the first aspect.

[0008] Fourthly, an embodiment of the present application provides a computer program product, including a computer program or computer instructions. The computer program or computer instructions 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 the processor executes the computer program or computer instructions, so that the communication device executes the path re-optimization method of the tunnel as described in the first aspect.

[0009] In the embodiment of the present application, in response to a first path re-optimization instruction of a first tunnel, the service carried by the first tunnel may be switched to another tunnel in the target tunnel protection group where the first tunnel is located, that is, the second tunnel. After the service switching is completed, a first path re-optimization operation corresponding to the first path re-optimization instruction is performed on the first tunnel. Then, after the first path re-optimization operation is completed, the service is switched back to the first tunnel. In this way, by switching the service carried by the first tunnel to another tunnel in its target tunnel protection group before performing path re-optimization on the first tunnel, and then switching the service 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 path re-optimization of the tunnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The drawings are used to provide a further understanding of the technical solutions of the present application, and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solutions of the present application, and do not constitute a limitation to the technical solutions of the present application.

[0011] Figure 1 is one of the flow diagrams of the path re-optimization method of the tunnel provided by the embodiment of the present application;

[0012] Figure 2a is the second flow diagram of the path re-optimization method of the tunnel provided by the embodiment of the present application;

[0013] Figure 2b is a schematic diagram of the path change in the unprotected SR-TP scenario provided by the embodiment of the present application;

[0014] Figure 3a is the second flow diagram of the path re-optimization method of the tunnel provided by the embodiment of the present application;

[0015] Figure 3b is a schematic diagram of the path change in the protected SR-TP scenario provided by the embodiment of the present application;

[0016] Figure 4 is the second flow diagram of the path re-optimization method of the tunnel provided by the embodiment of the present application;

[0017] Figure 5It is a schematic structural diagram of a communication device provided by an embodiment of the present application. Detailed implementation manners

[0018] In order to make the objectives, technical solutions and advantages of the present application more clear and understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0019] It should be understood that in the description of the embodiments of the present application, if there is a description of "first", "second", etc., it is only for the purpose of distinguishing technical features and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or implicitly indicating the sequence relationship of the indicated technical features. "At least one" means one or more, and "multiple" means two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships can exist. For example, A and / or B can represent the situation where A exists alone, A and B exist simultaneously, and B exists alone. Wherein A and B can be singular or plural. The character " / " generally indicates that the front and rear associated objects are an "or" relationship. "At least one of the following" and its similar expressions refer to any group of these items, including any group of single items or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.

[0020] For the convenience of understanding the solutions of the embodiments of the present application, some contents related to the embodiments of the present application are described below:

[0021] The path re-optimization of a tunnel refers to the process of recalculating and adjusting the path of the tunnel according to the current network status, such as link status, traffic load, topology change, etc. in network communication, which can improve the performance, reliability and resource utilization efficiency of the network.

[0022] 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 implement the adjustment of the path of the tunnel. However, the modification of the underlying configuration information takes a long time, and during this modification period, services cannot be transmitted through the tunnel, resulting in service packet loss and low reliability of service transmission for the path re-optimization of the tunnel.

[0023] Based on this, the embodiments of the present application provide a method, a communication device, a storage medium and a product for path re-optimization of a tunnel, which can make the path re-optimization of the tunnel achieve lossless services, thereby improving the reliability of service transmission for the path re-optimization of the tunnel.

[0024] The following will, in conjunction with the accompanying drawings, through some embodiments and their application scenarios, elaborate in detail on the path re-optimization method for tunnels provided by the embodiments of the present application.

[0025] The path re-optimization method for tunnels provided by the embodiments of the present application can be applied to the 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 can be the network management and control system (which can be abbreviated as "management and control" for short). In other embodiments, the communication device corresponding to the tunnel can be the source node or the target node of the tunnel path, such as a router or a switch, etc.

[0026] It can be understood that the path re-optimization of each tunnel is executed by the communication device corresponding to the tunnel. For example, Figure 1 in the corresponding method embodiment, the path re-optimization of the first tunnel is taken as an example for illustration. Then, the path re-optimization of the first tunnel can be executed by the communication device corresponding to the first tunnel.

[0027] Refer to Figure 1 , Figure 1 which is one of the flow diagrams of the path re-optimization method for tunnels provided by the embodiments of the present application. As Figure 1 shown, the path re-optimization method for tunnels includes at least but is not limited to the following steps:

[0028] Step 101, in response to the first path re-optimization instruction of the first tunnel, switch the service carried by the first tunnel to the second tunnel, where the second tunnel is another tunnel in the target tunnel protection group where the first tunnel is located.

[0029] Specifically, when the first tunnel has been established and is running, the network management and control system can recalculate the optimal path of the first tunnel according to the dynamic changes of the network, such as link failures, traffic load changes, topology changes, etc. When the optimal path of the first tunnel changes, that is, when the outbound information of the first tunnel changes, a path re-optimization instruction of the first tunnel for indicating the new optimal path of the first tunnel or the new outbound information of the first tunnel, that is, the first path re-optimization instruction, can be generated to trigger the path re-optimization of the first tunnel through the first path re-optimization instruction.

[0030] As can be seen from the foregoing content, the path re-optimization method for tunnels provided by the embodiments of the present application can be applied to the network management and control system, the source node or the target node of the tunnel path. Specifically, when applied to the network management and control system, after generating the first path re-optimization instruction, the network management and control system can directly respond to the generated first path re-optimization instruction and execute step 101; when applied to the source node or the target node of the tunnel path, after generating the first path re-optimization instruction, the network management and control system can send the generated first path re-optimization instruction to the corresponding node to trigger the corresponding node to execute step 101.

[0031] It should be noted that in the embodiments of the present application, before the communication device corresponding to the first tunnel changes the path of the first tunnel in response to the first path re-optimization instruction, it first switches the service carried by the first tunnel to another tunnel in the target tunnel protection group where the first tunnel is located, that is, the second tunnel. When specifically implemented, switching the service carried by the first tunnel to the second tunnel can be manifested as: switching the service 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: the standby path of the first tunnel, which is used to transmit the service carried by the first tunnel during the path re-optimization process of the first tunnel.

[0032] Furthermore, before switching the first tunnel to the second tunnel, it can be first determined that the second tunnel is ready for service transmission. In this way, it can be ensured that the service carried by the first tunnel can be normally transmitted after being switched to the second tunnel.

[0033] In this way, on the one hand, since the first tunnel and the second tunnel are in the same tunnel protection group, that is, the target tunnel protection group, therefore, by changing the protection state of the target tunnel protection group, the service switching between these two tunnels can be realized. In this way, the damage to the service caused by the service switching can be ignored. In addition, 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 to the transmission of this service can be avoided. It can be seen that through this way, the path re-optimization of the tunnel can achieve lossless service, thereby improving the service transmission reliability of the path re-optimization of the tunnel.

[0034] In addition, in the embodiments of the present 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.

[0035] In the embodiments of the present application, the preset tunnel protection group can be understood as: a tunnel protection group pre-configured to include a working tunnel and a protection tunnel, which can realize quickly switching the service to the protection tunnel when the working tunnel fails, so as to ensure the continuity of service transmission.

[0036] For the first tunnel with different manifestations, the manifestations of the corresponding target tunnel protection group can be the same or different, which is specifically described as follows.

[0037] 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 realizing the lossless path re-optimization of the services of the first tunnel. Correspondingly, the second tunnel can be a tunnel created specifically for realizing the lossless path re-optimization of the services of the first tunnel. Further, the second tunnel can be a physical tunnel or a virtual tunnel, which can be determined according to the actual situation specifically, and the embodiments of the present application do not limit this. For the convenience of description, in the embodiments of the present application, the tunnel protection group created specifically for realizing the lossless path re-optimization of the services of a certain tunnel can be called the dedicated tunnel protection group of this tunnel; the tunnel created specifically for realizing the lossless path re-optimization of the services of a certain tunnel can be called the standby tunnel of this tunnel. Based on this, in this case, the second tunnel can be understood as the standby tunnel of the first tunnel, and the target tunnel protection group can be understood as the dedicated tunnel protection group of the first tunnel. It should be noted that the embodiments of the present application do not limit the protection type of the dedicated tunnel protection group, and it can be but not limited to the protection type of single transmission and dual reception, which can be set based on actual requirements specifically. For the creation of the second tunnel and the target tunnel protection group, refer to the following relevant descriptions, and no description is given here.

[0038] In the case where the first tunnel is a tunnel with a preset tunnel protection group, the following two types of embodiments can be included:

[0039] In some embodiments, the same as the case where the first tunnel is a tunnel without a preset tunnel protection group, the second tunnel can be understood as the standby tunnel of the first tunnel, and the target tunnel protection group can be understood as the dedicated tunnel protection group of the first tunnel. In these embodiments, regardless of whether there is a preset tunnel protection group for the tunnel, a standby tunnel can be created in advance for each tunnel and a dedicated tunnel protection group can be formed to be used for realizing the lossless path re-optimization of the services of this tunnel.

[0040] In some other embodiments, the target tunnel protection group can be the preset tunnel protection group corresponding to the first tunnel. In these embodiments, for the tunnel configured with a preset tunnel protection group, the preset tunnel protection group can be reused to realize the lossless path re-optimization of the tunnel services, so that it is not necessary to add new tunnel configuration resources and resource waste can be reduced.

[0041] In addition, the embodiments of the present application do not limit the tunnel type of the tunnel. The tunnel can be any tunnel that supports re-optimization and can be based on routing calculation. That is to say, the re-optimization of any tunnel that supports re-optimization and can be based on routing calculation can be realized by the tunnel path optimization method provided by the embodiments of the present application.

[0042] In some embodiments, the tunnel can be any one of the following tunnels: 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; Segment Routing over IPv6 (SRv6) tunnel.

[0043] For different types of tunnels, the form of the outgoing information can be different, which can be determined according to the actual situation. For example, for an SR-TP tunnel, its outgoing information can include the label stack of the tunnel; for a GRE tunnel, its outgoing information can include: the outgoing interface of the tunnel, the source IP, and the destination IP; for an SRv6 tunnel, its outgoing information can include: the outgoing interface of the tunnel, and the Segment ID Stack (SID) stack of the SRv6.

[0044] Step 102, after the service handover is completed, perform a first path re-optimization operation corresponding to the first path re-optimization instruction on the first tunnel.

[0045] In the embodiments of the present application, in response to the first path re-optimization instruction, first switch the service carried by the first tunnel to the second tunnel, and after the service handover is completed, that is, after the service carried by the first tunnel is successfully switched to the second tunnel for transmission, then perform the first path re-optimization operation corresponding to the first path re-optimization instruction on the first tunnel.

[0046] The first path re-optimization operation, that is, the path change operation of the actual first tunnel, is used to correctly switch the path of the first tunnel to the new optimal path, thereby optimizing the use of network resources and improving the efficiency and performance of the network. Specifically, when implemented, the first path re-optimization operation can change the outgoing information of the first tunnel by modifying the underlying configuration information of the network device of the first tunnel, and then adjust the path of the first tunnel.

[0047] Step 103, after the first path re-optimization operation is completed, switch the service back to the first tunnel.

[0048] The path re-optimization operation of the tunnel is completed, indicating that the path change of the tunnel is completed and ready for service transmission. Based on this, after the first path re-optimization operation is completed, the service carried by the first tunnel can be switched back from the second tunnel to the first tunnel, so that the service carried by the first tunnel is transmitted through the first tunnel again, and the service transmission is restored to the expected state of the user, thereby improving the service transmission performance.

[0049] In the embodiments of the present application, for a tunnel carrying a service, to achieve lossless path re-optimization of the service, the path re-optimization process includes three steps: step 101 to step 103. It can be understood that for a tunnel not carrying a service, since it does not carry a service, there will be no problem of service damage in its path re-optimization. Therefore, for a tunnel not carrying a service, its path re-optimization process may only include a path re-optimization operation for changing the path, corresponding to step 102.

[0050] The path re-optimization method of the tunnel provided by the embodiments of the present application, in response to a first path re-optimization instruction of the first tunnel, may first switch the service carried by the first tunnel to another tunnel in the target tunnel protection group where the first tunnel is located, that is, the second tunnel. After the service switching is completed, then perform a first path re-optimization operation corresponding to the first path re-optimization instruction on the first tunnel. Then, after the first path re-optimization operation is completed, switch the service back to the first tunnel. In this way, by first switching the service carried by the first tunnel to another tunnel in its target tunnel protection group before performing path re-optimization on the first tunnel, and then switching the service back after its path re-optimization is completed, it can make the entire path re-optimization process of the first tunnel achieve service losslessness, thereby improving the service transmission reliability of the path re-optimization of the tunnel.

[0051] In addition, to achieve lossless path re-optimization of the service of a tunnel carrying a service, even if it is necessary to create a standby tunnel and a dedicated tunnel protection group, the standby tunnel and the dedicated tunnel protection group only need to occupy less redundant resources, have a lower cost, and are not easily perceived by users.

[0052] The creation of the second tunnel and the target tunnel protection group will be described below.

[0053] In some embodiments, before switching the service carried by the first tunnel to the second tunnel, the method further includes:

[0054] Create a second tunnel according to the first tunnel; wherein, the second tunnel and the first tunnel at least satisfy: the source node and the target node of the path are the same;

[0055] Create a target tunnel protection group formed by the first tunnel and the second tunnel.

[0056] As can be seen from the foregoing, the second tunnel can be regarded as a backup tunnel for the first tunnel and is used to transmit the bearer service of the first tunnel during the path re-optimization process of the first tunnel. Therefore, the second tunnel can be created according to the first tunnel, so that the source node of the path of the second tunnel is the same as the source node of the path of the first tunnel, and the destination node of the path of the second tunnel is the same as the destination node of the path of the first tunnel. In this way, whether the service is transmitted through the first tunnel or the second tunnel, it can be ensured that the service can be transmitted to the same node, thereby improving the reliability of service transmission.

[0057] It should be noted that the paths of the second tunnel and the first tunnel can be the same or different, which can be specifically set according to actual needs. In some embodiments, the second tunnel can be a virtual tunnel, and the path of the virtual tunnel is the same as the path of the first tunnel. In these embodiments, the second tunnel can be created by copying (i.e., copying) the outgoing information of the first tunnel, so that the path of the second tunnel is the same as the path of the first tunnel. In this way, the creation of the second tunnel can be simplified.

[0058] After the second tunnel is created, a tunnel protection group, that is, the target tunnel protection group, can be generated through the first tunnel and the second tunnel, and the configuration of the target tunnel protection group can be completed. In this way, the service carried by the first tunnel can be switched to the second tunnel for transmission without loss, thereby improving the reliability of service transmission.

[0059] Combined with the foregoing content, it can be seen that the creation of the second tunnel and the target tunnel protection group can be applicable to the case where there is no preset tunnel protection group for the first tunnel, and can also be applicable to the case where there is a preset tunnel protection group for the first tunnel. In some embodiments, creating the second tunnel according to the first tunnel may include:

[0060] In the case where there is no corresponding preset tunnel protection group for the first tunnel, create the second tunnel according to the first tunnel.

[0061] In these embodiments, in response to the path re-optimization instruction of the first tunnel, it can be first determined whether there is a corresponding preset tunnel protection group for the first tunnel. 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 operations of the second tunnel and the target tunnel protection group can be executed to prepare for the lossless path re-optimization of the service of the first tunnel. In this way, for the tunnel with a preset tunnel protection group configured, the preset tunnel protection group can be reused to achieve the lossless path re-optimization of the tunnel service, so that there is no need to add new tunnel configuration resources and resource waste can be reduced.

[0062] In the above manner, 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 being switched to the second tunnel, thereby improving the reliability of service transmission; generating a target tunnel protection group from the first tunnel and the second tunnel can enable the services carried by the first tunnel to be losslessly switched to the second tunnel for transmission, thereby improving the reliability of service transmission.

[0063] Furthermore, for the above embodiments of creating the second tunnel and the target tunnel protection group, in some embodiments, after switching the service back to the first tunnel, the method may further include:

[0064] Deleting the second tunnel and the target tunnel protection group.

[0065] That is to say, after completing the path re-optimization of a certain tunnel, the resources created to achieve the lossless path re-optimization of the services of the tunnel can be deleted, including the standby tunnel and the dedicated tunnel protection group. In this way, the redundant resources occupied can be released after completing the path re-optimization of the tunnel, thereby reducing the occupation of the tunnel and protection group resources by the lossless path re-optimization of the tunnel services.

[0066] The following specifically describes the case where there is a corresponding preset tunnel protection group for the first tunnel and the target tunnel protection group is the preset tunnel protection group.

[0067] As can be seen from the foregoing, the preset tunnel protection group can achieve quickly switching the service to the protection tunnel when the working tunnel fails. That is to say, generally, when the working tunnel in the preset tunnel protection group does not fail, the service is transmitted through the working tunnel, and when the working tunnel in the preset tunnel protection group fails, the service is transmitted through the protection tunnel. However, it should be noted that the embodiments of the present application do 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 force the service to be switched to the protection tunnel because they think there may be potential hazards in the working tunnel.

[0068] Based on this, for the case where there is a corresponding preset tunnel protection group for the first tunnel and the target tunnel protection group is the preset tunnel protection group, in some embodiments, the first tunnel can be the working tunnel carrying services in the preset tunnel protection group, and the second tunnel can be the protection tunnel that has not failed in the preset tunnel protection group. These embodiments can be applied to the above general situation. In other embodiments, the first tunnel can be the protection tunnel carrying services in the preset tunnel protection group, and the second tunnel can be the working tunnel that has not failed but the service is forced to be switched to the protection tunnel due to possible potential hazards in the preset tunnel protection group. These embodiments can be applied to the above special situation.

[0069] In addition, in the embodiments of the present application, for a preset tunnel protection group, both the working tunnel and the protection tunnel therein can perform path re-optimization, but the priority of path re-optimization of the working tunnel can be higher than that of the protection tunnel. In response to the priority of path re-optimization of the working tunnel being higher than that of the protection tunnel, it can be understood that when the working tunnel performs re-optimization, the protection tunnel will not perform re-optimization, but when the protection tunnel performs re-optimization, the working tunnel may perform re-optimization.

[0070] Based on this, in response to a path re-optimization instruction for the protection tunnel, before performing path re-optimization on the protection tunnel, it can first be determined whether the working tunnel is in the process of path re-optimization, and then based on the determination result, it can be decided whether to immediately respond to the path re-optimization instruction for the protection tunnel and start the path re-optimization of the protection tunnel. The specific description is as follows.

[0071] In some embodiments, that is, in the scenario where the first tunnel can be the protection tunnel carrying services in a preset tunnel protection group, and the second tunnel can be the working tunnel in the preset tunnel protection group that has not failed but has its services forcibly switched to the protection tunnel due to possible hidden dangers. In response to the first tunnel being the protection tunnel in the preset tunnel protection group and the second tunnel being the working tunnel in the preset tunnel protection group, in response to the first path re-optimization instruction for the first tunnel, switching the services carried by the first tunnel to the second tunnel includes:

[0072] In response to the first path re-optimization instruction for the first tunnel, determine whether the second tunnel is in the process of path re-optimization;

[0073] In the case where the second tunnel is in the process of path re-optimization, after the path re-optimization of the second tunnel is completed, switch the services carried by the first tunnel to the second tunnel;

[0074] In the case where the second tunnel is not in the process of path re-optimization, switch the services carried by the first tunnel to the second tunnel.

[0075] In these embodiments, the first tunnel is the protection tunnel in the preset tunnel protection group and carries services, and the second tunnel is the working tunnel in the preset tunnel protection group. Therefore, to achieve lossless path re-optimization of the services of the protection tunnel, the services carried by the protection tunnel can first be switched to the working tunnel, and then the path re-optimization operation of the protection tunnel can be performed.

[0076] Since the path re-optimization of the protection tunnel needs to borrow the working tunnel for service transmission, and the priority of path re-optimization of the working tunnel is higher than that of the protection tunnel, before switching the services carried by the protection tunnel to the working tunnel in response to the path re-optimization instruction for the protection tunnel, it can first be determined whether the working tunnel is in the process of path re-optimization.

[0077] If the working tunnel is in path re-optimization, it is possible to wait for the working tunnel to complete path re-optimization first, and then switch the services of the protection tunnel to the working tunnel before starting to perform path re-optimization of the protection tunnel. It can be understood that in this embodiment, since the user specifies to transmit services through the protection tunnel of the preset tunnel protection group, before the path re-optimization of the protection tunnel is started, the working tunnel does not carry any services, and there will be no problem of service impairment in the path re-optimization of the working tunnel. Therefore, the path re-optimization of the working tunnel can directly perform the corresponding path change operation, and the services are transmitted by the protection tunnel during the path re-optimization of the working tunnel.

[0078] If the working tunnel is not in path re-optimization, it is possible to start performing path re-optimization of the protection tunnel and successively execute the aforementioned steps 101 to 103.

[0079] In the above manner, for the case where the preset tunnel protection group carries services through the protection tunnel, before starting to perform path re-optimization of the protection tunnel, it is possible to first determine whether the working tunnel is in path re-optimization, and it is possible to preferentially perform path re-optimization of the working tunnel when the working tunnel is in path re-optimization, and then perform path re-optimization of the protection tunnel. In this way, it is possible to make the path re-optimization order of the tunnels in the preset tunnel protection group match the path re-optimization priority of the tunnels, ensuring the reliability of path re-optimization of the tunnels in the preset tunnel protection group.

[0080] In some embodiments, that is, in the general scenario where the first tunnel can be the working tunnel carrying services in the preset tunnel protection group and the second tunnel can be the protection tunnel without failure in the preset tunnel protection group, in response to the first tunnel being the working tunnel in the preset tunnel protection group and the second tunnel being the protection tunnel in the preset tunnel protection group, the method further includes:

[0081] In response to the second path re-optimization instruction of the second tunnel and the second tunnel not carrying any services, determine whether the first tunnel is in path re-optimization;

[0082] When the first tunnel is in path re-optimization, after the path re-optimization of the first tunnel is completed, perform the second path re-optimization operation corresponding to the second path re-optimization instruction on the second tunnel;

[0083] When the first tunnel is not in path re-optimization, perform the second path re-optimization operation on the second tunnel.

[0084] In these embodiments, the first tunnel is the working tunnel carrying services in the preset tunnel protection group, and the second tunnel is the protection tunnel not carrying any services in the preset tunnel protection group. Therefore, to achieve lossless path re-optimization of the services of the working tunnel, it is possible to first switch the services carried by the working tunnel to the protection tunnel, and then perform path re-optimization of the working tunnel.

[0085] Since the path re-optimization of the working tunnel needs to borrow the protection tunnel for service transmission, and the priority of the path re-optimization of the working tunnel is higher than that of the path re-optimization 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 first determined whether the working tunnel is in the process of path re-optimization.

[0086] If the working tunnel is in the process of path re-optimization, it can wait for the working tunnel to complete the path re-optimization first, and then execute the path re-optimization of the protection tunnel, so as to successfully complete the lossless path re-optimization of the services of the working tunnel.

[0087] If the working tunnel is not in the process of path re-optimization, the path re-optimization of the protection tunnel can be directly executed in response to the path re-optimization instruction. It can be understood that in this embodiment, since services are transmitted through the working tunnel of the preset tunnel protection group, before the path re-optimization of the working tunnel starts, the protection tunnel does not carry any services, and there will be no problem of service damage in the path re-optimization of the protection tunnel. Therefore, the corresponding path change operation can be directly executed for the path re-optimization of the protection tunnel.

[0088] Through the above method, for the case where the preset tunnel protection group carries services through the working tunnel, before starting to execute the path re-optimization of the protection tunnel, it can first determine whether the working tunnel is in the process of path re-optimization, and can preferentially execute the path re-optimization of the working tunnel when the working tunnel is in the process of path re-optimization, and then execute the path re-optimization of the protection tunnel. In this way, not only can the path re-optimization order of the tunnels in the preset tunnel protection group match 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, but also the lossless path re-optimization of the services of the working tunnel can be successfully completed, thereby improving the reliability of service transmission.

[0089] In the embodiment of the present application, the path re-optimization process of the tunnel carrying services includes three steps executed in sequence: switching the carried services to the standby tunnel, performing the path re-optimization operation, and switching the services back. To ensure the lossless service during the entire path re-optimization process, the next operation can be executed after the current operation is completed. In some embodiments, the method may further include:

[0090] Determining that the target operation is completed when the target condition is met;

[0091] wherein the target operation includes at least one of service switching and the first path re-optimization operation;

[0092] The target condition is any one of the following:

[0093] The time interval between the current time and the start execution time of the target operation reaches the target time; the target time is greater than or equal to the expected execution completion time of the target operation;

[0094] A message notification indicating the completion of the execution of the target operation is obtained.

[0095] For ease of description, the target time can be denoted as T. It can be understood that for different target operations, the expected execution completion time of the target operation can be different, and thus the value of T can be different, which can be specifically set according to the actual situation, and the embodiments of the present application do not limit this.

[0096] For the case where the target condition is that the time interval between the current time and the start execution time of the target operation reaches T, after the target operation starts to be executed, it can be delayed by T, and then the next operation of the target operation is executed. In this way, by delaying by T, it can be ensured that the target operation has been completed before the next operation of the target operation is executed.

[0097] For the case where the target condition is to obtain a message notification indicating the completion of the execution of the target operation, the execution situation of the target operation can be monitored. After the target operation is completed, a message can be sent to notify its completion to facilitate the execution of the next operation of the target operation. In this way, compared with delaying by T and then executing the next operation of the target operation, the flexibility of the operation execution timing can be further improved.

[0098] By the above method, when the target condition is met, it is determined that the target operation is 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 after the current operation is completed, thereby further improving the service transmission reliability of the entire path re-optimization process.

[0099] The embodiments of the present application do not limit the way of triggering service switching. In some embodiments, the method may further include:

[0100] 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 indicate switching the service from the first tunnel to the second tunnel;

[0101] In response to the completion of the first path re-optimization operation, the service switching command is cleared.

[0102] In specific implementation, in response to the path re-optimization instruction of the first tunnel, a service switching command indicating switching the service from the first tunnel to the second tunnel can be sent to the target tunnel protection group first, so that the target tunnel protection group responds to this service switching command and switches the service to the second tunnel.

[0103] In some implementation manners, the service switching command may be a newly created switching command for indicating service switching; in some other implementation manners, service switching may be implemented by reusing the automatic protection switching mechanism of the tunnel protection group. In these implementation manners, the service switching command may be a switching command, and further may be a manual switching (MS) command. In this way, the signaling overhead of service switching can be saved.

[0104] After the first path re-optimization operation is completed, to make the service transmission conform to the expected state of the user, the service needs to be switched back to the first tunnel. Therefore, the service switching command can be cleared, so that the service is successfully switched back to the first tunnel, thereby improving the reliability of service switching.

[0105] In the above embodiments, the service can be switched from the first tunnel to the standby tunnel by sending a service switching command, and the service can be switched back from the standby tunnel to the first tunnel by clearing the service switching command, thereby ensuring the reliability of service switching.

[0106] It should be noted that the various embodiments described in the embodiments of the present application can be combined with each other without conflict, or can be implemented independently. The embodiments of the present application do not make any limitations in this regard.

[0107] For ease of understanding, some specific embodiments are used for illustrative examples:

[0108] In the following specific embodiments, the SR-TP tunnel is used for illustrative examples, but the type of the tunnel is not limited thereby. The following specific embodiments can be applied but not limited to the symmetric network of the switch or router using the SR-TP tunnel to cross the basic network architecture layer, such as the 5G core network docking scenario.

[0109] In Embodiment 1, the re-optimization lossless of the unprotected SR-TP tunnel (i.e., the first tunnel that does not have the corresponding preset tunnel protection group mentioned above) can be realized by creating a virtual protection group (i.e., the dedicated tunnel protection mentioned above).

[0110] As Figure 2a shown, when the device receives the change of the outgoing information of the unprotected SR-TP tunnel (denoted as tunnel K), a virtual tunnel K' (i.e., the second tunnel mentioned above) is created, and the outgoing information of the virtual tunnel K' copies the original tunnel K. The original tunnel K and the virtual tunnel K' form a virtual protection group; after delaying for T seconds, after the virtual protection group is configured, a manual switching command is issued to the virtual protection group to switch it to K'. After the switching is successful, the original tunnel K changes to a new path; after delaying for T seconds again, after the original tunnel K is changed, the manual switching command is cleared to make it switch back to the original tunnel K; after delaying for T seconds again, after the switching back is completed, all virtual resources are deleted, including the virtual tunnel K' and the virtual tunnel protection group.

[0111] It can be seen that for the unprotected SR-TP scenario, virtual protected SR-TP and virtual protection groups are used for processing. For ease of understanding, further combined with Figure 2b the following is an example for illustration.

[0112] As Figure 2b shown, the original SR-TP tunnel: the label stack is [100, 101], and the path is [A, B, E]. After receiving the path re-optimization instruction, it will be re-optimized to the label stack [102, 103, 105, 106], and the path is [A, C, B, D, E].

[0113] The path re-optimization can include five parts: 1) Create a same-route protection path (virtual protected SR-TP, and the path is still [A, B, E]) for the original unprotected SR-TP, and generate a virtual protection group; 2) Manually switch the service to the virtual protected SR-TP; 3) Re-optimize a new path for the original SR-TP; 4) Manually switch back the service to the original SR-TP (i.e., take the new path [A, C, B, D, E]); 5) Delete the virtual protected SR-TP and the virtual protection group.

[0114] Embodiment 2. The re-optimization of the working tunnel of the protected SR-TP tunnel (i.e., the first tunnel having a corresponding preset tunnel protection group as described above, and the first tunnel is the working tunnel of the preset tunnel protection group) is lossless and is achieved through internal switching and backhaul.

[0115] As Figure 3a shown, when the device receives a change in the outgoing information of the protected working SR-TP tunnel, an artificial switching command is issued internally for switching. After the switching is successful, the working SR-TP tunnel is changed to a new path; after a delay of T seconds, after the change of the working SR-TP tunnel is completed, the artificial switching command is cleared to make it backhaul to the working state.

[0116] For ease of understanding, it can be further combined with Figure 3b the following for example illustration.

[0117] As Figure 3b shown, the working SR-TP tunnel: the label stack is [100, 101], and the path is [A, B, E]; the protected SR-TP tunnel: the label stack is [102, 104, 106], and the path is [A, C, D, E]. After receiving the path re-optimization instruction, the working SR-TP tunnel will be re-optimized to the label stack [102, 103, 105, 106], and the path is [A, C, B, D, E].

[0118] The path re-optimization of the working SR-TP tunnel can include three parts: 1) Manually switch the service from the working to the protected SR-TP; 2) Re-optimize a new path for the working SR-TP; 3) Manually switch back the service to the working.

[0119] Embodiment 3. The re-optimization lossless of the protection tunnel for protecting the SR-TP tunnel (i.e., the first tunnel having a corresponding preset tunnel protection group described above, and the first tunnel is an unloaded protection tunnel of the preset tunnel protection group) can be achieved by directly changing at an appropriate time.

[0120] As Figure 4 shown, when the device receives a change in the outgoing information of the protected SR-TP tunnel, it determines whether the working SR-TP tunnel is being re-optimized. If so, it waits until the working SR-TP tunnel is processed and then makes the change. If not, it directly changes to the new path. That is, the path re-optimization of the protected SR-TP tunnel can include three parts: 1) determining whether the working SR-TP is in the process of re-optimization; 2) waiting if it is; 3) directly re-optimizing to the new path if it is not.

[0121] It can be seen from the above specific embodiments that compared with the general method for realizing the re-optimization of the SR-TP tunnel, through the above method, when the outgoing information of the SR-TP tunnel changes, the situation of service damage caused by directly modifying the outgoing forwarding information can be avoided; at the same time, the consumption of redundant resources is small, and the customer is not aware of the consumption of redundant resources. Using this method can ensure that the service is lossless during the process of re-optimizing to the new path. Applying this method can improve the reliability and stability of the network and enhance the user experience.

[0122] The embodiment of the present application also provides a communication device. As Figure 5 shown, the communication device 500 includes:

[0123] One or more processors 510;

[0124] A memory 520, on which one or more programs are stored. When the one or more programs are executed by the one or more processors 510, the one or more processors 510 implement the path re-optimization method of the tunnel described in any of the above embodiments.

[0125] As a non-transitory network system, the memory 520 can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory 520 can include high-speed random access memory, and can also include non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory 520 may optionally include a memory 520 remotely provided with respect to the processor 510, and these remote memories 520 can be connected to the processor 510 through a network. Examples of the above networks include but are not limited to the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof.

[0126] The memory 520 can be implemented in the form of a read only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 520 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 520 and are called by the processor 510 to execute the methods of the embodiments of this application.

[0127] The processor 510 can be implemented in ways such as a general-purpose CPU (Central Processing Unit), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0128] In some embodiments, the communication device further includes:

[0129] An input / output interface, which is used to implement information input and output;

[0130] A communication interface, which is used to implement communication interaction between this device and other devices. It can implement communication through wired means (such as USB, network cable, etc.) or through wireless means (such as mobile network, WIFI, Bluetooth, etc.);

[0131] A bus is used to transmit information between various components of the device (such as the processor 510, the memory 520, the input / output interface, and the communication interface);

[0132] Among them, the processor 510, the memory 520, the input / output interface, and the communication interface can achieve communication connections with each other inside the device through the bus.

[0133] An embodiment of this application also provides a computer-readable storage medium, storing computer-executable instructions, and the computer-executable instructions are used to execute the path re-optimization method of the tunnel provided in any embodiment of this application.

[0134] An embodiment of this application also provides a computer program product, including a computer program or computer instructions. The computer program or computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the path re-optimization method of the tunnel provided in any embodiment of this application.

[0135] The system architecture and application scenarios described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. As can be known to those skilled in the art, with the evolution of the system architecture and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0136] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and appropriate combinations thereof.

[0137] In a hardware implementation, the division of the functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, one physical component can have multiple functions, or one function or step can be executed by several physical components in cooperation. Some or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or can be implemented as hardware, or can be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or a non-transitory medium) and a communication medium (or a transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium 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 include, but are not limited to, RAM, ROM, EEPROM, flash memory, or other memory technologies, CD-ROM, digital versatile disk (DVD), or other optical disk storage, magnetic cartridges, tapes, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium typically includes computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.

[0138] As used in this specification, the terms "component", "module", "system", etc. are used to denote 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, an execution thread, a program, or a computer. By way of illustration, both an application running on a computing device and the computing device can be components. One or more components can reside within a process or execution thread, and a component can be located on one computer or distributed between two or more computers. In addition, these components can execute from various computer-readable media storing various data structures. A component can communicate, for example, by signals according to one or more data packets (e.g., data from two components interacting with another component from a local system, a distributed system, or a network, e.g., the Internet interacting with other systems via signals).

[0139] Some embodiments of the present application have been described above with reference to the accompanying drawings, which do not limit the scope of the rights of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present application shall fall within the scope of the rights of the present application.

Claims

1. A method for re - optimizing the path of a tunnel, the method comprising: In response to a first path re - optimization instruction for a first tunnel, switching the service carried by the first tunnel to a second tunnel, where the second tunnel is another tunnel in the target tunnel protection group where 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; After the first path re - optimization operation is completed, switching the service 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 comprises: Creating the second tunnel according to the first tunnel; where the second tunnel and the first tunnel at least satisfy: the source node and the target node of the path are the same; Creating 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 comprises: Deleting 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 the path of the first tunnel.

5. The method according to claim 2, characterized in that, The creating the second tunnel according to the first tunnel includes: In the case where there is no corresponding preset tunnel protection group for the first tunnel, creating the second tunnel according to the first tunnel.

6. The method according to claim 1, wherein In the case where there is a corresponding preset tunnel protection group for the first tunnel, 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 the protection tunnel in the preset tunnel protection group and the second tunnel being the working tunnel in the preset tunnel protection group, in response to a first path re - optimization instruction for the first tunnel, switching the service carried by the first tunnel to the second tunnel includes: In response to a first path re - optimization instruction for the first tunnel, determining whether the second tunnel is in path re - optimization; In the case where the second tunnel is in path re - optimization, after the path re - optimization of the second tunnel is completed, switching the service carried by the first tunnel to the second tunnel; In the case where the second tunnel is not in path re - optimization, switching the service carried by the first tunnel to the second tunnel.

8. The method according to claim 6, wherein In response to the first tunnel being the working tunnel in the preset tunnel protection group and the second tunnel being the protection tunnel in the preset tunnel protection group, the method further comprises: In response to a second path re - optimization instruction for the second tunnel and the second tunnel not carrying a service, determining whether the first tunnel is in path re - optimization; In the case where the first tunnel is in 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; In the case where the first tunnel is not in path re - optimization, performing the second path re - optimization operation on the second tunnel.

9. The method according to claim 1, wherein The method further comprises: Determining that the target operation is completed when a target condition is met; where 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 execution time of the target operation reaches the target time; the target time is greater than or equal to the expected execution completion time of the target operation; A message notification indicating the completion of the execution of the target operation is obtained.

10. The method according to claim 1, characterized in that The method further includes: Before switching the service carried by the first tunnel to the second tunnel, sending a service switching command to the target tunnel protection group; wherein, the service switching command is used to indicate switching the service from the first tunnel to the second tunnel; In response to the completion of the first path re-optimization operation, clearing the service switching command.

11. A communication device, comprising: At least one processor; At least one memory for storing at least one program; When at least one of the at least one program is executed by at least one of the at least one processor, the path re-optimization method of the tunnel according to any one of claims 1 to 10 is implemented.

12. A computer-readable storage medium storing computer-executable instructions for executing the path re-optimization method of the tunnel according to any one of claims 1 to 10.

13. A computer program product comprising a computer program or computer instructions, the computer program or the computer instructions being stored in a computer-readable storage medium, a processor of a communication device reads the computer program or the computer instructions from the computer-readable storage medium, and the processor executes the computer program or the computer instructions, so that the communication device executes the path re-optimization method of the tunnel according to any one of claims 1 to 10.