Transmission link fault processing method, electronic equipment and storage medium

By switching to the target protection ring at the same virtual level when the transmission link fails, the waste and impact of service switching in the transmission protection ring on resources is solved, and the utilization rate and reliability of transmission resources are improved.

CN120238422APending Publication Date: 2025-07-01ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311836307.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

Although the prior art improves reliability when switching services in the transmission protection ring, it has a great impact on the service and leads to waste of transmission resources.

Method used

By obtaining the fault information of the transmission link, determine the target virtual level corresponding to the fault protection ring, and switch services to the target protection ring of the same virtual level, avoiding the service switching of the entire physical transmission link and reducing resource waste.

Benefits of technology

It ensures normal service transmission in case of failure, avoids the impact on other logic protection rings, and improves the utilization rate and reliability of transmission resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238422A_ABST
    Figure CN120238422A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a transmission link fault processing method, electronic equipment and a storage medium, and relates to the technical field of communication. Obtaining fault information of the transmission link; determining a first target virtual hierarchy corresponding to the fault protection ring according to the fault information; determining a target protection ring used for bearing services on the fault protection ring from the protection rings of which the virtual hierarchy is the first target virtual hierarchy; and switching the service on the fault protection ring to the target protection ring. By adopting the technical scheme, the service can be switched to the target protection ring of the same virtual level, normal transmission of the service borne on the fault protection ring is guaranteed, and meanwhile, the situation that the service switching of the whole physical transmission link is triggered when a part of logic transmission links fail can be avoided; the influence of service switching on services borne on other logic protection rings is avoided, the waste of transmission resources is reduced, and the utilization rate of the transmission resources is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a method for handling transmission link failures, an electronic device, and a storage medium. Background Art

[0002] A transmission protection ring is a common transmission protection method. Taking an optical fiber protection ring as an example, Figure 1 The schematic diagram of a device transmission protection ring in the related art is shown. As Figure 1 shown, optical fibers L1-1, L1-2, L1-3, and L1-4 are connected to devices 1, 2, 3, and 4 to form an optical fiber protection ring L1 for devices 1 and 2. Optical fibers L2-1, L2-2, L2-3, L2-4, and L2-5 are connected to devices 1, 2, 5, 6, and 7 to form another optical fiber protection ring L2 for devices 1 and 2. When any optical fiber on any optical fiber protection ring fails, the reliability of the device networking can be improved by switching the optical fiber protection ring. Figure 2 The schematic diagram of the method for handling transmission link failures in the related art is shown. As Figure 2 shown, if the optical fiber L1-3 on the optical fiber protection ring L1 fails, the service carried by devices 1 and 2 on the optical fiber protection ring L1 can be switched to the normal optical fiber protection ring L2, thereby improving the reliability.

[0003] In the related art, while the service switching of the optical fiber protection ring improves the reliability, there are also technical problems with a greater impact on the service. How to reduce the impact on the service while further improving the service reliability has become an urgent problem to be solved. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a method for handling transmission link failures, an electronic device, and a storage medium.

[0005] To solve the above technical problems, the embodiments of this application are achieved through the following aspects.

[0006] According to the first aspect of the embodiments of the present disclosure, a method for handling transmission link failures is provided. The method includes:

[0007] Obtain the fault information of the transmission link, where the fault information includes the fault protection ring information of the transmission link. The transmission link includes at least two virtual levels, each virtual level includes at least one protection ring, and each protection ring of a higher-level virtual level includes at least one protection ring of a lower-level virtual level;

[0008] Determine the first target virtual level corresponding to the fault protection ring according to the fault information;

[0009] Determine a target protection ring for carrying services on the fault protection ring from the protection rings at the first target virtual level of the virtual hierarchy.

[0010] Switch the services on the fault protection ring to the target protection ring.

[0011] According to a second aspect of the embodiments of the present disclosure, a method for processing a loop fault is provided. The method includes:

[0012] In response to transmission link fault information in a first loop, perform fault processing on the transmission link by using the method described in the first aspect, where the fault information includes fault protection ring information.

[0013] In a case where no first candidate protection ring meeting a preset condition is determined in the protection rings at the first target virtual level corresponding to the fault protection ring, switch the services carried on the fault protection ring in the first loop to a second loop, where the second loop is a protection loop of the first loop, and the preset condition includes a preset status condition and / or a preset capacity condition.

[0014] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including: a memory, a processor, and computer executable instructions stored on the memory and executable on the processor. When the computer executable instructions are executed by the processor, the steps described in the embodiments of the first aspect or the second aspect are implemented.

[0015] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided. The computer-readable storage medium stores computer executable instructions, and when the computer executable instructions are executed by a processor, the steps described in the embodiments of the first aspect or the second aspect are implemented.

[0016] By using the technical solution provided by the embodiments of the present disclosure, obtain fault information of a transmission link; determine a first target virtual level corresponding to the fault protection ring according to the fault information; determine a target protection ring for carrying services on the fault protection ring from the protection rings at the first target virtual level; and switch the services on the fault protection ring to the target protection ring. It is possible to switch services to a target protection ring at the same virtual level, ensure the normal transmission of services carried on the fault protection ring, and at the same time avoid triggering the service switch of the entire physical transmission link when some logical transmission links fail, avoid affecting the services carried on other logical protection rings due to service switching, reduce the waste of transmission resources, and improve the utilization rate of transmission resources.

[0017] It should be understood that the above general description and subsequent detailed description are only exemplary and explanatory, and cannot limit the present disclosure.

[0018] Other features and advantages of the present disclosure will be described in detail in the following detailed description section. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following briefly introduces the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments described in the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0020] Figure 1 Schematic diagram showing a device transmission protection ring in the related art;

[0021] Figure 2 Schematic diagram showing a method for handling a transmission link failure in the related art;

[0022] Figure 3 Schematic flowchart showing a method for handling a transmission link failure provided by an embodiment of the present application;

[0023] Figure 4 Schematic diagram showing a logical structure of a transmission link protection ring provided by an embodiment of the present application;

[0024] Figure 5 Schematic flowchart showing another method for handling a transmission link failure provided by an embodiment of the present application;

[0025] Figure 6 Schematic flowchart showing yet another method for handling a transmission link failure provided by an embodiment of the present application;

[0026] Figure 7 Schematic flowchart showing yet another method for handling a transmission link failure provided by an embodiment of the present application;

[0027] Figure 8 Schematic flowchart showing yet another method for handling a transmission link failure provided by an embodiment of the present application;

[0028] Figure 9 Schematic flowchart showing a method for handling a loop failure provided by an embodiment of the present application;

[0029] Figure 10 Schematic flowchart showing another method for handling a loop failure provided by an embodiment of the present application;

[0030] Figure 11 Schematic diagram of the hardware structure of an electronic device for executing the method for handling a transmission link failure provided by an embodiment of the present application. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the technical solutions in this application, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0032] After analysis, the inventors of this application found that multiple logical transmissions at different virtual levels can often be multiplexed during transmission, and these logical transmissions can form logical transmission protection rings at different virtual levels. Taking optical fibers as an example, a physical optical fiber can carry TMS (Transmission MPLS Section), and each TMS can include at least one TP (Transport Protocol), and each TP can further include at least one PW (Pseudo Wire). In the related art, when any logical transmission protection ring (such as the logical transmission protection ring at the TP application level) fails, it will also trigger the service switching of the entire physical transmission protection ring (such as the optical fiber protection ring), resulting in the services carried by other logical transmission protection rings without faults being switched together, causing a great waste of transmission resources and having a certain impact on the services. This application proposes a method for handling transmission link failures, which can switch services to the target protection ring at the same virtual level, ensure the normal transmission of the services carried on the faulty protection ring, and at the same time can avoid triggering the service switching of the entire physical transmission link when some logical transmission links fail, avoid the impact of service switching on the services carried on other logical protection rings, reduce the waste of transmission resources, and improve the utilization rate of transmission resources.

[0033] Figure 3 FIG. shows a schematic flowchart of a method for handling transmission link failures provided by an embodiment of this application. This method can be executed by a network element device or by a network management device connected to the network element device. As Figure 3 shown, this method can include the following steps.

[0034] In step S101, obtain the fault information of the transmission link.

[0035] Among them, the fault information includes the fault protection ring information of the transmission link. The transmission link includes at least two virtual levels, each virtual level includes at least one protection ring, and each protection ring at a higher virtual level includes at least one protection ring at a lower virtual level.

[0036] In some embodiments, the transmission link may be an optical fiber loop, and the virtual hierarchy may include a TMS management hierarchy and a TP application hierarchy. Among them, the TMS management hierarchy may be the upper virtual hierarchy of the TP application hierarchy, and the TMS management hierarchy may include a first protection ring, and the first protection ring may include at least two second protection rings of the TP application hierarchy.

[0037] In another embodiment, the virtual hierarchy may further include a PW application hierarchy. Among them, the TP application hierarchy is the upper virtual hierarchy of the PW application hierarchy, and each second protection ring includes at least two third protection rings of the PW application hierarchy.

[0038] Figure 4 The schematic diagram of the logical structure of a transmission link protection ring provided by an embodiment of the present application is shown, as Figure 4 shown. Taking the optical fiber loop as an example, the TMS management hierarchy protection ring 1 may include a first TP application hierarchy protection ring 11 and a second TP application hierarchy protection ring 12. The first TP application hierarchy protection ring 11 may include a first PW application hierarchy protection ring 111 and a second PW application hierarchy protection ring 112. The second TP application hierarchy protection ring 12 may include a third PW application hierarchy protection ring 121 and a fourth PW application hierarchy protection ring 122.

[0039] Those skilled in the art can flexibly set the number of virtual hierarchies according to the type of the transmission link and service requirements, and can also flexibly set the number of logical protection rings included in each virtual hierarchy. Still taking the optical fiber loop as an example, the number of TMS management hierarchy protection rings, TP application hierarchy protection rings, and PW application hierarchy protection rings can be flexibly set according to service requirements. For example, each TMS management hierarchy protection ring may only include 1 TP application hierarchy protection ring, and each TP application hierarchy protection ring may include 3 PW application hierarchy protection rings; each TMS management hierarchy protection ring may also include 3 TP application hierarchy protection rings, and each TP application hierarchy protection ring may include 2 PW application hierarchy protection rings. The present application does not limit this. It should be noted that although TMS, TP, and PW in optical fiber transmission are used as examples of protection rings for different virtual hierarchies, this should not be regarded as a limitation of the protection rings in the technical solution of the present application. It can be applied to protection rings of other different types of virtual hierarchies, and can also be applied to transmission link protection rings in other transmission scenarios.

[0040] In step S102, determine the first target virtual hierarchy corresponding to the faulty protection ring according to the fault information.

[0041] Exemplarily, the transmission link failure can be a failure corresponding to protection rings at different virtual levels. The reasons for the failure can be various. For example, any physical optical fiber is interrupted, any logical protection ring connection at any virtual level is interrupted, or the bit error rate of any logical protection ring connection at any virtual level exceeds a preset threshold. The virtual level corresponding thereto can be included in the fault information. Taking the optical fiber protection ring as an example, when a logical connection at a certain virtual level in the protection ring fails, resulting in the failure of the protection ring at that virtual level, the first target virtual level corresponding to the faulty protection ring can be included in the fault information. For example, in optical fiber transmission, when the logical connection at this level between any two network elements in the first TP application level protection ring 11 fails, it will cause the first TP application level protection ring 11 to fail. The first target virtual level of the first TP application level protection ring 11 can be, for example, Level2, where Level2 is used to represent that the virtual level of the first TP application level protection ring 11 is the TP application level.

[0042] In step S103, from the protection ring with the virtual level being the first target virtual level, determine the target protection ring for carrying the services on the faulty protection ring.

[0043] Wherein, the target protection ring is the protection ring that carries the services on the faulty protection ring during the transmission link failure and has the virtual level being the first target virtual level, that is, the peer protection ring.

[0044] Exemplarily, in the case where the logical connection at this level between any two network elements in the first TP application level protection ring 11 fails, resulting in the failure of the first TP application level protection ring 11, the target protection ring can be determined from the protection rings at the same level (that is, the virtual level of the protection ring is also the first target virtual level Level2) according to the first target virtual level Level2 of the first TP application level protection ring 11.

[0045] It can be understood that multiple fault information at different virtual levels may be generated during the transmission link failure. For example, in the case where a failure occurs in the first TP application level protection ring 11, in addition to generating the fault information of the first TP application level protection ring 11, the lower-level protection rings of the first TP application level protection ring 11 (such as the first PW application level protection ring 111 and the second application level optical fiber protection ring 112) may also generate corresponding fault information with the virtual level being Level3 (that is, the PW application level) due to the failure in the first TP application level protection ring 11. In this case, the target protection ring can be determined according to the first target virtual level in the fault information with the highest virtual level among the multiple fault information at different virtual levels.

[0046] In step S104, switch the services on the faulty protection ring to the target protection ring.

[0047] Exemplarily, after determining the target protection ring corresponding to the fault protection ring, the services on the fault protection ring can be switched to the target protection ring, so that the services on the fault protection ring are carried by the target protection ring, improving the reliability of the transmission link.

[0048] Still taking optical fiber transmission as an example, in the case where the first TP application-level protection ring 11 fails, the target protection ring can be determined as the second TP application-level protection ring 12, and the services of the first TP application-level protection ring 11 are switched to the second TP application-level protection ring 12. Instead of switching the services of the entire optical fiber loop to the protection loop, it overcomes the technical problem in the related art that the service switching of the entire physical optical fiber loop causes the normal logical transmission link (such as the second TP application-level protection ring 12) to be switched to the protection loop, thereby affecting the services on the normal logical transmission link (such as the second TP application-level protection ring 12).

[0049] By adopting the above technical method, the services can be switched to the target protection ring at the same virtual level, ensuring the normal transmission of the services carried on the fault protection ring. At the same time, it can avoid triggering the service switching of the entire physical transmission link when some logical transmission links fail, avoid affecting the services carried on other logical protection rings, reduce the waste of transmission resources, and improve the utilization rate of transmission resources.

[0050] Figure 5 Another schematic flowchart showing the method for handling transmission link failures provided by the embodiments of the present application is as follows Figure 5 As shown, step S103 may include the following steps:

[0051] In step S1031, a first candidate protection ring that meets the preset conditions is determined from the protection rings with the virtual level being the first target virtual level.

[0052] Among them, the preset conditions may include a preset status condition and / or a preset capacity condition.

[0053] In some embodiments, the preset capacity condition may include that the remaining service bandwidth of the protection ring is greater than or equal to the service bandwidth on the fault protection ring; the preset status condition may include at least one of the following:

[0054] The allowable switching function of the protection ring is enabled;

[0055] The service status of the protection ring is the active state;

[0056] The service status of the protection ring on the network management device is consistent with the service status of the protection ring on the network element device.

[0057] It is understandable that those skilled in the art can also flexibly set the preset status conditions and / or preset capacity conditions according to business needs, and the present application does not limit this.

[0058] In some embodiments, the protection ring of each virtual level may further include one or more additional information as shown in Table 1 below. In some possible implementation manners, the fault information may include the above one or more additional information, and the above one or more additional information may also be obtained by a network element device or a network management device connected to the network element device by querying configuration information and real-time status information.

[0059] Table 1

[0060]

[0061]

[0062] In some embodiments, it is possible to determine whether the protection ring of each virtual level that is the first target virtual level meets the preset conditions through the above additional information.

[0063] Exemplarily, when the fault protection ring is the first PW application level protection ring 111, the first candidate protection rings may be the second PW application level protection ring 112, the third PW application level protection ring 121, and the fourth PW application level protection ring 122 that meet the preset conditions.

[0064] It is understandable that by determining the target protection ring from the first candidate protection rings screened by the preset status conditions and / or preset capacity conditions, abnormal situations such as excessive service load on the target protection ring can be avoided after switching the services on the fault protection ring to the target protection ring, thereby improving the reliability of transmission link fault handling.

[0065] In step S1032, determine the target protection ring from the first candidate protection rings.

[0066] In some embodiments, when the number of the first candidate protection rings is one, the first candidate protection ring may be determined as the target protection ring.

[0067] In another embodiment, when the number of the first candidate protection rings is multiple, determine the target protection ring from the first candidate protection rings in accordance with a preset priority order.

[0068] In some possible implementation manners, the target protection ring may be determined from multiple first candidate protection rings in accordance with a preset priority order by any of the following methods.

[0069] Method 1: When there is a second candidate protection ring among the first candidate protection rings, determine the protection ring with the highest target priority order in the second candidate protection rings as the target protection ring.

[0070] Among them, the second candidate protection ring is the same as the upper-level protection ring to which the fault protection ring belongs, and the highest target priority order includes the lowest service load or the lowest historical failure rate.

[0071] Exemplarily, in Figure 4 , when the fault protection ring is the first PW application-level protection ring 111, and the first candidate protection rings include the second PW application-level protection ring 112, the third PW application-level protection ring 121, and the fourth PW application-level protection ring 122, since the second PW application-level protection ring 112 and the fault protection ring, the first PW application-level protection ring 111, belong to the same upper-level protection ring, the first TP application-level protection ring 11, it can be determined that the second candidate protection ring is the second PW application-level protection ring 112, and then the second PW application-level protection ring 112 can be determined as the target protection ring. When the number of second candidate protection rings is multiple, the protection ring with the highest target priority order can be selected as the target protection ring, and the highest target priority order indicates the lowest service load or the lowest historical failure rate.

[0072] Method 2: When there is no second candidate protection ring in the first candidate protection rings, determine the protection ring with the highest target priority order in the first candidate protection rings as the target protection ring.

[0073] Exemplarily, when the fault protection ring is the first PW application-level protection ring 111, and the first candidate protection rings include the third PW application-level protection ring 121 and the fourth PW application-level protection ring 122, since the upper-level protection ring of the fault protection ring, the first TP application-level protection ring 11, does not include a protection ring that meets the preset conditions, so, since there is no second candidate protection ring in the first candidate protection rings, the protection ring with the highest target priority order can be selected from the third PW application-level protection ring 121 and the fourth PW application-level protection ring 122 as the target protection ring, and the highest target priority order includes the lowest service load or the lowest historical failure rate.

[0074] It can be understood that when there is a second candidate protection ring, determining the target protection ring from the second candidate protection rings can control the possible influence range of service switching between the fault protection ring and the target protection ring within the upper-level protection ring of the fault protection ring, thereby controlling the service influence range of transmission link fault handling. By analogy, if the number of virtual levels is greater than Figure 3For the three levels shown in the example, it can be extended based on the above technical means. When there is no second candidate protection ring, it is possible to continue to determine whether there is a third candidate protection ring in the upper-upper-level protection ring of the fault protection ring (that is, the upper-level protection ring of the upper-level protection ring of the fault protection ring). When there is a third candidate protection ring, the protection ring with the highest target priority order in the third candidate protection ring is determined as the target protection ring. In this way, the impact range that may be caused by the service switch between the fault protection ring and the target protection ring can be controlled within the upper-upper-level protection ring of the fault protection ring.

[0075] It can be understood that those skilled in the art can also flexibly set the target priority order according to service needs, and this application does not limit this.

[0076] By adopting the above technical means, the service can be switched to the target protection ring at the same virtual level, ensuring the normal transmission of the service carried on the fault protection ring. At the same time, it can avoid triggering the service switch of the entire physical transmission link when some logical transmission links fail, avoid affecting the services carried on other logical protection rings, reduce the waste of transmission resources, improve the utilization rate of transmission resources, and can also control the service impact range of transmission link fault handling as much as possible, further improving the reliability of transmission link fault handling.

[0077] Figure 6 Another process schematic diagram showing the method for handling transmission link faults provided by the embodiments of the present application is shown in Figure 6 As shown, step 104 may include the following steps:

[0078] In step S1041, the service on the fault protection ring is deleted, and the service is recreated on the target protection ring.

[0079] In step S1042, the remaining service bandwidth of the target protection ring is updated according to the service bandwidth of the fault protection ring.

[0080] Exemplarily, the remaining service bandwidth of the target protection ring can be updated according to the following formula 1.

[0081]

[0082] Among them, is the remaining service bandwidth of the updated target protection ring, is the remaining service bandwidth of the target protection ring before service switch, BW S is the service bandwidth of the fault protection ring.

[0083] By adopting the above technical means, the services on the faulty protection ring can be timely switched to the target protection ring, ensuring the normal transmission of the services carried on the faulty protection ring. Moreover, the remaining service bandwidth of the target protection ring can be updated in a timely manner, improving the reliability of transmission link fault handling.

[0084] Figure 7 Another process schematic diagram showing the method for handling transmission link faults provided by an embodiment of the present application is shown in Figure 7 As shown, step 104 may further include the following steps:

[0085] Before step S1041, step S1043 may further be included to modify the service state of the target protection ring to the operation and maintenance state.

[0086] After step S1042, step S1044 may further be included to modify the service state of the target protection ring to the active state.

[0087] In some embodiments, after updating the remaining service bandwidth of the target protection ring according to the service bandwidth of the faulty protection ring and modifying the service state of the target protection ring to the active state, a consistency check may be performed to determine the consistency of the service state of the target protection ring on the network element device and the network management device connecting the network element devices.

[0088] In some embodiments, after deleting the services on the faulty protection ring and re-creating the services on the target protection ring, the creation information in the target protection ring may also be updated, such as the creation time and the creating user, etc.

[0089] In some embodiments, when switching the services on the faulty protection ring to the target protection ring, the service state of the faulty protection ring may also be modified to the operation and maintenance state, and after the service switching is completed, its service state is updated to the faulty state.

[0090] By adopting the above technical means, the services on the faulty protection ring can be timely switched to the target protection ring, ensuring the normal transmission of the services carried on the faulty protection ring. Moreover, conflicts in transmission link fault handling (such as multiple faulty protection rings switching services to the same target protection ring) can be avoided by modifying the service state, further improving the reliability of transmission link fault handling.

[0091] Figure 8 Another process schematic diagram showing the method for handling transmission faults provided by an embodiment of the present application is shown in Figure 8 As shown, the method may further include the following steps:

[0092] In step S105, in response to the transmission link returning to normal, the services are switched back from the target protection ring to the faulty protection ring that has returned to normal.

[0093] In some embodiments, the service can be switched back from the target protection ring to the restored failed protection ring in the following manner.

[0094] Method 1: In response to the return operation, switch the service back from the target protection ring to the restored normal failed protection ring.

[0095] Method 2: When the duration after the failed protection ring is restored to normal is greater than or equal to the preset waiting recovery duration threshold, switch the service back from the target protection ring to the restored normal failed protection ring.

[0096] It can be understood that the steps of switching the service back from the target protection ring to the restored failed protection ring are similar to steps S1041 - S1042 and will not be elaborated here. After switching the service back to the restored failed protection ring, the remaining service bandwidth of the target protection ring can be restored according to the service switching situation.

[0097] It can be understood that when the failed protection ring has frequent failures, the service return can be controlled according to the preset penalty parameters to avoid the impact of frequent service switching on the service experience.

[0098] By adopting the above technical means, the service can be switched to the target protection ring at the same virtual level, ensuring the normal transmission of the service carried on the failed protection ring. At the same time, it can avoid triggering the service switching of the entire physical transmission link when some logical transmission links fail, avoiding the impact of service switching on the services carried on other logical protection rings, reducing the waste of transmission resources, and improving the utilization rate of transmission resources. After the failure of the transmission link is restored to normal, the service can be timely switched back to the restored normal failed protection ring, which can further improve the maintainability of the system.

[0099] Figure 9 Shown is a schematic flowchart of a method for processing loop failures provided by an embodiment of the present application, as Figure 9 shown, the method may include the following steps:

[0100] In step S201, in response to the transmission link failure information in the first loop, perform failure processing on the transmission link.

[0101] Among them, the failure information includes failed protection ring information.

[0102] In some embodiments, the method for processing transmission link failures shown in the embodiments of the first aspect of the present application can be used to perform failure processing on the transmission link. Figure 2For example, the first loop may be the optical fiber protection loop L1. If any transmission link (such as L1-3) in the first loop fails, the processing method for the transmission link failure shown in the embodiment of the first aspect of the present application can be used to handle the transmission link failure, determine the first target virtual level corresponding to the fault protection loop according to the fault information, and determine the first candidate protection loop that meets the preset conditions from the protection loops in the first loop whose virtual level is the first target virtual level.

[0103] Figure 10 Another schematic flowchart showing the processing method for loop failure provided by the embodiment of the present application is as Figure 10 shown. The method may further include the following steps:

[0104] In step S202, when the first candidate protection loop that meets the preset conditions is not determined among the protection loops of the first target virtual level corresponding to the fault protection loop, the services on the fault protection loop in the first loop are switched to the second loop.

[0105] Wherein, the second loop is the protection loop of the first loop, and the preset conditions include a preset state condition and / or a preset capacity condition.

[0106] When the first candidate protection loop that meets the preset conditions is not determined among the protection loops of the first target virtual level corresponding to the fault protection loop, the services on the fault protection loop in the first loop can be switched to the second loop (such as the optical fiber protection loop L2).

[0107] It can be understood that the transmission link failure can be a failure corresponding to protection loops of different virtual levels, and the reasons for the failure can be various. When the logical protection loop connection of a virtual level is interrupted, or the bit error rate of the logical protection loop connection of any virtual level exceeds the preset threshold, only the services on the fault protection loop can be switched from the first loop to the second loop. And when the fault information indicates that the transmission link has a serious large-area failure, such as a physical optical fiber interruption (that is, the logical transmission protection loop connections of all virtual levels are interrupted), all services can also be switched from the first loop to the second loop.

[0108] By adopting the above technical means, when the first candidate protection loop that meets the preset conditions is not determined among the protection loops of the first target virtual level corresponding to the fault protection loop in the same loop, the services carried on the fault protection loop in the first loop can be switched to the second loop, realizing the cross-loop switching of the services carried on the logical protection loop of the first target virtual level, avoiding the triggering of the service switching of the entire protection loop when the transmission link of some virtual levels fails, avoiding the impact on the services carried on the protection loops of other virtual levels due to the switching, reducing the waste of transmission resources, and improving the utilization rate of transmission resources.

[0109] Figure 11 The figure shows a schematic diagram of the hardware structure of the electronic device provided in the embodiments of the present application. Referring to this figure, at the hardware level, the electronic device includes a processor. Optionally, it includes an internal bus, a network interface, and a memory. Among them, the memory may include internal memory, such as high-speed random access memory (RAM), and may also include non-volatile memory, such as at least one disk memory, etc. Of course, the electronic device may also include other hardware required for other services. The processor, network interface, and memory can be interconnected through the internal bus, and the internal bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a bidirectional arrow is used in this figure to represent it, but it does not mean that there is only one bus or one type of bus.

[0110] The memory stores programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory may include internal memory and non-volatile memory, and provide instructions and data to the processor.

[0111] The processor reads the corresponding computer program from the non-volatile memory into the internal memory and then runs it, forming a device for locating the target user at the logical level. The processor executes the program stored in the memory and specifically executes: the methods disclosed in the embodiments of the first aspect or the second aspect, and realizes the functions and beneficial effects of the various methods described in the foregoing method embodiments, which will not be elaborated here.

[0112] The methods disclosed in the embodiments of the first aspect or the second aspect of the present application as described above can be applied to or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, the steps of the above methods can be completed by the integrated logic circuit in the hardware of the processor or instructions in software form. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the methods disclosed in combination with the embodiments of the present application can be directly implemented by the execution of the hardware decoding processor, or completed by the combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, register, etc. This storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above methods.

[0113] The electronic device can also execute the various methods described in the foregoing method embodiments and achieve the functions and beneficial effects of the various methods described in the foregoing method embodiments, which will not be elaborated herein.

[0114] Of course, in addition to the software implementation, the electronic device of the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.

[0115] The embodiments of the present application also propose a computer-readable storage medium. The computer-readable medium stores one or more programs. When the one or more programs are executed by an electronic device including multiple application programs, the electronic device is caused to execute the methods disclosed in the embodiments of the first aspect or the second aspect and achieve the functions and beneficial effects of the various methods described in the foregoing method embodiments, which will not be elaborated herein.

[0116] Among them, the computer-readable storage medium includes a read-only memory (ROM for short), a random access memory (RAM for short), a magnetic disk, an optical disc, etc.

[0117] Furthermore, an embodiment of the present application also provides a computer program product. The computer program product includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the following process is implemented: the method disclosed in the embodiment of the first aspect or the second aspect, and the functions and beneficial effects of each method described in the foregoing method embodiments are realized. Details are not described herein again.

[0118] In summary, the above are only the preferred embodiments of the present application, and do not limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

[0119] The systems, devices, modules or units described in the above embodiments can be specifically implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or any combination of these devices.

[0120] Computer-readable media includes both permanent and non-permanent, removable and non-removable media and can be implemented by any method or technology for information storage. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.

[0121] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, such that a process, method, commodity or device comprising a series of elements not only includes those elements but also other elements not expressly listed, or elements inherent to such process, method, commodity or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, commodity or device comprising said element.

[0122] Each embodiment in this specification is described in a progressive manner, and the same or similar parts among the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

Claims

1. A method for handling transmission link failures, the method comprising: Obtaining failure information of a transmission link, where the failure information includes failure protection ring information of the transmission link, the transmission link includes at least two virtual levels, each virtual level includes at least one protection ring, and the protection ring of each upper virtual level includes at least one protection ring of a lower virtual level; Determining a first target virtual level corresponding to the failure protection ring according to the failure information; Determining a target protection ring for carrying services on the failure protection ring from the protection rings of the virtual level being the first target virtual level; Switching the services on the failure protection ring to the target protection ring.

2. The method according to claim 1, wherein The determining a target protection ring for carrying services on the failure protection ring from the protection rings of the virtual level being the first target virtual level includes: Determining a first candidate protection ring that meets a preset condition from the protection rings of the virtual level being the first target virtual level, where the preset condition includes a preset status condition and / or a preset capacity condition; Determining the target protection ring from the first candidate protection rings.

3. The method according to claim 2, wherein The preset capacity condition includes that the remaining service bandwidth of the protection ring is greater than or equal to the service bandwidth on the failure protection ring; the preset status condition includes at least one of the following: The allowable switching function of the protection ring is enabled; The service status of the protection ring is the active state; The service status of the protection ring on the network management device is the same as the service status of the protection ring on the network element device.

4. The method according to claim 2, wherein The determining the target protection ring from the first candidate protection rings includes: In the case where the number of the first candidate protection rings is multiple, determining the target protection ring from the first candidate protection rings in accordance with a preset priority order.

5. The method according to claim 4, wherein The determining the target protection ring from the first candidate protection rings in accordance with a preset priority order includes: In the case where there is a second candidate protection ring among the first candidate protection rings, determining the protection ring with the highest target priority order in the second candidate protection rings as the target protection ring; In the case where there is no second candidate protection ring among the first candidate protection rings, determining the protection ring with the highest target priority order in the first candidate protection rings as the target protection ring; Wherein, the second candidate protection ring is the same as the upper protection ring to which the failure protection ring belongs, and the highest target priority order includes the lowest service load or the lowest historical failure rate.

6. The method according to any one of claims 1-5, wherein, The switching the services on the failure protection ring to the target protection ring includes: Deleting the services on the failure protection ring and re-creating the services on the target protection ring; Updating the remaining service bandwidth of the target protection ring according to the service bandwidth of the failure protection ring.

7. The method according to claim 6, wherein The method further includes: Before deleting the services on the failure protection ring and re-creating the services on the target protection ring, modifying the service status of the target protection ring to the operation and maintenance state; After updating the remaining service bandwidth of the target protection ring according to the service bandwidth of the failure protection ring, modifying the service status of the target protection ring to the active state.

8. The method according to any one of claims 1-5, wherein The method further includes: In response to the transmission link returning to normal, switch the service back from the target protection ring to the faulty protection ring that has returned to normal.

9. The method according to claim 8, wherein The switching of the service back from the target protection ring to the faulty protection ring that has returned to normal includes: In response to a return operation, switch the service back from the target protection ring to the faulty protection ring that has returned to normal; or, When the duration after the faulty protection ring returns to normal is greater than or equal to a preset waiting recovery duration threshold, switch the service back from the target protection ring to the faulty protection ring that has returned to normal.

10. The method according to claim 1, wherein, The transmission link is an optical fiber loop. The virtual hierarchy includes a TMS management hierarchy and a TP application hierarchy. The TMS management hierarchy is the upper virtual hierarchy of the TP application hierarchy. The TMS management hierarchy includes a first protection ring, and the first protection ring includes at least two second protection rings of the TP application hierarchy.

11. The method according to claim 10, wherein, The virtual hierarchy further includes a PW application hierarchy. The TP application hierarchy is the upper virtual hierarchy of the PW application hierarchy. Each second protection ring includes at least two third protection rings of the PW application hierarchy.

12. A method for processing a loop fault, the method including: In response to transmission link fault information in a first loop, perform fault processing on the transmission link by using the method according to any one of claims 1-11, where the fault information includes faulty protection ring information.

13. The method according to claim 12, wherein, The method further includes: When no first candidate protection ring that meets a preset condition is determined in the protection ring of the first target virtual hierarchy corresponding to the faulty protection ring, switch the service on the faulty protection ring in the first loop to a second loop, where the second loop is a protection loop of the first loop, and the preset condition includes a preset status condition and / or a preset capacity condition.

14. An electronic device, including: A processor; And A memory arranged to store computer-executable instructions, where when the executable instructions are executed, the processor is used to execute the steps of the method for processing a transmission link fault according to any one of claims 1-11, or when the executable instructions are executed, the processor is used to execute the steps of the method for processing a loop fault according to claim 12 or 13.

15. A computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including a plurality of application programs, the electronic device is caused to execute the steps of the method for processing a transmission link fault according to any one of claims 1-11, or when the executable instructions are executed, the processor is used to execute the steps of the method for processing a loop fault according to claim 12 or 13.