Transmission link fault processing method, electronic device, and storage medium
By determining the virtual level of the fault protection ring and switching to the target protection ring of the same virtual level when the transmission link fails, the resource waste and business impact caused by optical fiber failure in the transmission protection ring is solved, and the reliability and resource utilization of the transmission link are improved.
Patent Information
- Application Number
- PCT/CN2024/085597
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-28
- Filing Date
- 2024-04-02
- Publication Date
- 2025-07-03
AI Technical Summary
In the transmission protection ring, when the optical fiber protection ring fails, service switching leads to waste of resources and a great impact on the normal logical transmission link. How to improve business reliability while reducing the impact on the business has become an urgent problem to be solved.
By obtaining the fault information of the transmission link, determine the 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.
It realizes that when the transmission link fails, the normal transmission of services on the fault protection ring is ensured, and the impact on other logical protection rings is avoided, and the utilization rate and reliability of transmission resources are improved.
Smart Images

Figure CN2024085597_03072025_PF_FP_ABST
Abstract
Description
Method for processing transmission link failure, electronic device and storage medium
[0001] Cross-references
[0002] The present invention claims priority to the Chinese patent application filed with the Patent Office of China on December 28, 2023, with application number 202311836307.0 and invention name “Method for handling transmission link failure, electronic device and storage medium”. The entire contents of the application are incorporated into the present invention by reference. Technical Field
[0003] The present application belongs to the field of semiconductor technology, and specifically relates to a method for processing transmission link failure, an electronic device, and a storage medium. Background Art
[0004] A transmission protection ring is a common transmission protection method. Taking a fiber optic protection ring as an example, FIG1 shows a schematic diagram of a device transmission protection ring in the related art. As shown in FIG1 , optical fibers L1-1, L1-2, L1-3, and L1,4 are connected to devices 1, 2, 3, and 4 to form a fiber optic 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 fiber optic protection ring L2 for devices 1 and 2. When any optical fiber on any fiber optic protection ring fails, the reliability of the device network can be improved by switching the fiber optic protection ring. FIG2 shows a schematic diagram of a method for handling transmission link failures in the related art. As shown in FIG2 , if optical fiber L1-3 on fiber optic protection ring L1 fails, the services carried by devices 1 and 2 on fiber optic protection ring L1 can be switched to the normal fiber optic protection ring L2, thereby improving reliability.
[0005] In related technologies, service switching of optical fiber protection rings improves reliability but also has the technical problem of having a significant impact on services. How to further improve service reliability while reducing the impact on services is an urgent problem to be solved.
[0006] Summary of the Invention
[0007] The purpose of the embodiments of the present application is to provide a method for processing a transmission link failure, an electronic device, and a storage medium.
[0008] To solve the above technical problems, the embodiments of the present application are implemented through the following aspects.
[0009] According to a first aspect of an embodiment of the present disclosure, a method for processing a transmission link failure is provided, the method comprising: obtaining fault information of the transmission link, wherein the fault information includes fault protection ring information of the transmission link, the transmission link includes at least two virtual layers, each virtual layer includes at least one protection ring, and the protection ring of each upper virtual layer includes at least one protection ring of a lower virtual layer; determining a first target virtual layer corresponding to the fault protection ring according to the fault information; determining a target protection ring for carrying services on the fault protection ring from the protection ring whose virtual layer is the first target virtual layer; and switching the services on the fault protection ring to the target protection ring.
[0010] According to a second aspect of an embodiment of the present disclosure, a method for handling a loop failure is provided, the method comprising: in response to transmission link failure information in a first loop, performing fault handling on the transmission link using the method described in the first aspect, the failure information including failure protection ring information; if a first candidate protection ring that meets a preset condition is not determined in the protection ring of the first target virtual layer corresponding to the failure protection ring, switching the service carried on the failure protection ring in the first loop to a second loop, wherein the second loop is a protection loop of the first loop, and the preset condition includes a preset state condition and / or a preset capacity condition.
[0011] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a memory, a processor, and computer-executable instructions stored on the memory and executable on the processor, wherein the computer-executable instructions, when executed by the processor, implement the steps described in the first aspect embodiment or the second aspect embodiment.
[0012] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps described in the first aspect embodiment or the second aspect embodiment are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0014] FIG1 is a schematic diagram showing a device transmission protection ring in the related art;
[0015] FIG2 is a schematic diagram showing a method for processing a transmission link failure in the related art;
[0016] FIG3 is a schematic flow chart showing a method for handling a transmission link failure according to an embodiment of the present application;
[0017] FIG4 shows a schematic diagram of the logical structure of a transmission link protection ring provided in an embodiment of the present application;
[0018] FIG5 is a schematic diagram showing another flow chart of a method for handling a transmission link failure provided in an embodiment of the present application;
[0019] FIG6 shows another flow chart of a method for handling a transmission link failure according to an embodiment of the present application;
[0020] FIG7 shows another flow chart of a method for handling a transmission link failure according to an embodiment of the present application;
[0021] FIG8 shows another flow chart of a method for handling a transmission link failure according to an embodiment of the present application;
[0022] FIG9 is a flow chart showing a method for handling a loop failure according to an embodiment of the present application;
[0023] FIG10 is a schematic diagram showing another flow chart of a method for handling a loop failure according to an embodiment of the present application;
[0024] FIG11 is a schematic diagram of the hardware structure of an electronic device that executes the method for processing a transmission link failure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0026] After analysis, the inventors of the present application found that in transmission, multiple logical transmissions of different virtual levels can often be multiplexed, and these logical transmissions can form logical transmission protection rings of different virtual levels. Taking optical fiber as an example, a physical optical fiber can carry TMS (Transmission MPLS Section), each TMS can include at least one TP (Transport Protocol), and each TP can also include at least one PW (Pseudo Wire). When any logical transmission protection ring (such as the logical transmission protection ring at the TP application layer) fails, the transmission protection method in the related art will also trigger the service switching of the entire physical transmission protection ring (such as the optical fiber protection ring), causing the services carried by other logical transmission protection rings without failure to switch together, resulting in a huge waste of transmission resources and a certain degree of impact on the service. The present application proposes a method for handling transmission link failures, which can switch services to the target protection ring of the same virtual layer, ensure the normal transmission of services carried on the faulty protection ring, and at the same time avoid triggering service switching of the entire physical transmission link when part of the logical transmission link fails, avoid the impact of service switching on services carried on other logical protection rings, reduce the waste of transmission resources, and improve the utilization rate of transmission resources.
[0027] Figure 3 shows a flow chart of a method for handling a transmission link failure provided by an embodiment of the present application, which can be executed by a network element device or a network management device connected to the network element device. As shown in Figure 3, the method can include the following steps.
[0028] In step S101, the fault information of the transmission link is obtained.
[0029] The fault information includes fault protection ring information of the transmission link. The transmission link includes at least two virtual layers, each virtual layer includes at least one protection ring, and each protection ring of the upper virtual layer includes at least one protection ring of the lower virtual layer.
[0030] In some embodiments, the transmission link may be a fiber ring, and the virtual layer may include a TMS management layer and a TP application layer, wherein the TMS management layer may be an upper-level virtual layer of the TP application layer, and the TMS management layer may include a first protection ring, and the first protection ring may include at least two second protection rings of the TP application layer.
[0031] In another embodiment, the virtual layer may further include a PW application layer, wherein the TP application layer is an upper-level virtual layer of the PW application layer, and each second protection ring includes at least two third protection rings of the PW application layer.
[0032] Figure 4 shows a schematic diagram of the logical structure of a transmission link protection ring provided by an embodiment of the present application. As shown in Figure 4, taking a fiber ring as an example, the TMS management-level protection ring 1 may include a first TP application-level protection ring 11 and a second TP application-level protection ring 12. The first TP application-level protection ring 11 may include a first PW application-level protection ring 111 and a second PW application-level protection ring 112. The second TP application-level protection ring 12 may include a third PW application-level protection ring 121 and a fourth PW application-level protection ring 122.
[0033] Those skilled in the art can flexibly set the number of virtual layers according to the type of transmission link and business needs, and can also flexibly set the number of logical protection rings contained in each virtual layer. Still taking the optical fiber ring as an example, the number of TMS management layer protection rings, TP application layer protection rings and PW application layer protection rings can be flexibly set according to business needs. For example, each TMS management layer protection ring can include only 1 TP application layer protection ring, and each TP application layer protection ring can include 3 PW application layer protection rings; each TMS management layer protection ring can also include 3 TP application layer protection rings, and each TP application layer protection ring can include 2 PW application layer protection rings. This 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 of different virtual layers, this should not be used as a limitation of the protection rings in the technical solution of this application. It can be applied to protection rings of other different types of virtual layers, and can also be applied to transmission link protection rings in other transmission scenarios.
[0034] In step S102, a first target virtual level corresponding to the fault protection ring is determined according to the fault information.
[0035] For example, a transmission link failure may be a failure corresponding to protection rings of different virtual layers, and the reasons for the failure may be various, such as any physical optical fiber interruption, any virtual layer logical protection ring connection interruption, or any virtual layer logical protection ring connection bit error rate exceeding a preset threshold. The corresponding virtual layer may be included in the fault information. Taking the optical fiber protection ring as an example, when the logical connection of a virtual layer in the protection ring fails, thereby causing the protection ring of the virtual layer to fail, the fault information may include the first target virtual layer corresponding to the failed protection ring. For example, in optical fiber transmission, if the logical connection of the layer between any two network elements in the first TP application layer protection ring 11 fails, the first TP application layer protection ring 11 will fail. The first target virtual layer of the first TP application layer protection ring 11 may be, for example, Level2, where Level2 is used to characterize that the virtual layer of the first TP application layer protection ring 11 is the TP application layer.
[0036] In step S103, a target protection ring for carrying services on the faulty protection ring is determined from the protection rings whose virtual level is the first target virtual level.
[0037] The target protection ring carries services on the fault protection ring during a transmission link failure, and the corresponding virtual layer is a protection ring of the first target virtual layer, ie, a protection ring of the same level.
[0038] For example, when a fault occurs in the hierarchical logical connection between any two network elements in the first TP application layer protection ring 11, causing the first TP application layer protection ring 11 to fail, the target protection ring can be determined from the protection rings of the same level (i.e., the virtual level of the protection ring is also the first target virtual level Level 2) based on the first target virtual level Level 2 of the first TP application layer protection ring 11.
[0039] When a transmission link fails, multiple fault information at different virtual levels may be generated. For example, when a fault occurs in the first TP application layer protection ring 11, in addition to generating fault information of the first TP application layer protection ring 11, the lower-level protection rings of the first TP application layer protection ring 11 (such as the first PW application layer protection ring 111 and the second application layer optical fiber protection ring 112) may also generate corresponding virtual level Level 3 (i.e., PW application layer) fault information due to the fault in the first TP application layer protection ring 11. In this case, the target protection ring can be determined based on the first target virtual level in the fault information with the highest virtual level among the fault information of multiple different virtual levels.
[0040] In step S104, the service on the faulty protection ring is switched to the target protection ring.
[0041] For example, after determining the target protection ring corresponding to the faulty protection ring, the service on the faulty protection ring may be switched to the target protection ring, so that the service on the faulty protection ring is carried by the target protection ring, thereby improving the reliability of the transmission link.
[0042] Taking fiber transmission as an example, if the first TP application-layer protection ring 11 fails, the target protection ring can be determined to be the second TP application-layer protection ring 12, and services on the first TP application-layer protection ring 11 can be switched to the second TP application-layer protection ring 12. This eliminates the need to switch services on the entire fiber ring to the protection ring. This overcomes the technical problem in related art where switching services on the entire physical fiber ring causes normal logical transmission links (e.g., the second TP application-layer protection ring 12) to also be switched to the protection ring, thereby impacting services on the normal logical transmission links (e.g., the second TP application-layer protection ring 12).
[0043] By adopting the above-mentioned technical method, the service can be switched to the target protection ring of the same virtual layer, ensuring the normal transmission of the service 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, and avoid the service switching from affecting the services carried on other logical protection rings. It reduces the waste of transmission resources and improves the utilization rate of transmission resources.
[0044] FIG5 shows another flow chart of a method for handling a transmission link failure provided by an embodiment of the present application. As shown in FIG5 , step S103 may include the following steps: in step S1031 , a first candidate protection ring that meets a preset condition is determined from the protection ring whose virtual level is the first target virtual level.
[0045] The preset conditions may include preset state conditions and / or preset capacity conditions.
[0046] 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: the protection ring's switching permission function is turned on; the service status of the protection ring is activated; 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.
[0047] Those skilled in the art may also flexibly set at least one of the preset state condition and the preset capacity condition according to business needs, and this application does not impose any restrictions on this.
[0048] In some embodiments, the protection ring of each virtual layer may also include one or more additional information as shown in Table 1 below. In some possible implementations, 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 the network element device or the network management device connected to the network element device from the configuration information and real-time status information.
[0049] Table 1
[0050] In some embodiments, it may be determined through the additional information whether the protection ring of each virtual level as the first target virtual level meets a preset condition.
[0051] For example, when the fault protection ring is the first PW application layer protection ring 111 , the first candidate protection rings may be the second PW application layer protection ring 112 , the third PW application layer protection ring 121 , and the fourth PW application layer protection ring 122 that meet preset conditions.
[0052] By determining the target protection ring from the first candidate protection rings that have been screened by at least one of a preset state condition and a preset capacity condition, abnormal conditions such as excessive traffic load on the target protection ring can be avoided after switching the traffic on the faulty protection ring to the target protection ring, thereby improving the reliability of transmission link fault handling.
[0053] In step S1032, a target protection ring is determined from the first candidate protection rings.
[0054] In some embodiments, when the number of first candidate protection rings is one, the first candidate protection ring may be determined as the target protection ring.
[0055] In another embodiment, when there are multiple first candidate protection rings, the target protection ring is determined from the first candidate protection rings according to a preset priority order.
[0056] In some possible implementations, a target protection ring may be determined from a plurality of first candidate protection rings according to a preset priority order by any of the following methods.
[0057] Method 1: When a second candidate protection ring exists in the first candidate protection ring, the protection ring with the highest target priority order among the second candidate protection rings is determined as the target protection ring.
[0058] The second candidate protection ring is the same as the upper 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.
[0059] For example, in FIG4 , when the fault protection ring is first PW application-level protection ring 111, and the first candidate protection rings include second PW application-level protection ring 112, third PW application-level protection ring 121, and fourth PW application-level protection ring 122, since second PW application-level protection ring 112 and fault protection ring first PW application-level protection ring 111 belong to the same upper-level protection ring, first TP application-level protection ring 11, the second candidate protection ring can be determined to be second PW application-level protection ring 112, and second PW application-level protection ring 112 can be determined as the target protection ring. If there are multiple second candidate protection rings, the protection ring with the highest target priority can be selected as the target protection ring. The highest target priority indicates the lowest service load or the lowest historical failure rate.
[0060] Method 2: When there is no second candidate protection ring among the first candidate protection rings, determine the protection ring with the highest target priority order among the first candidate protection rings as the target protection ring.
[0061] For example, when the fault protection ring is the first PW application layer protection ring 111, and the first candidate protection ring includes the third PW application layer protection ring 121 and the fourth PW application layer protection ring 122, since the upper-level protection ring of the fault protection ring, the first TP application layer protection ring 11, does not include a protection ring that meets the preset conditions, and since the second candidate protection ring is not included in the first candidate protection ring, the protection ring with the highest target priority order can be selected from the third PW application layer protection ring 121 and the fourth PW application layer 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.
[0062] In the case where there is a second candidate protection ring, the target protection ring is determined from the second candidate protection ring, and the scope of influence that may be caused by the service switching between the faulty protection ring and the target protection ring can be controlled within the upper-level protection ring of the faulty protection ring, thereby controlling the scope of influence of the service on the transmission link failure processing. Similarly, if the number of virtual levels is greater than the three levels shown in the example of FIG3 , it can be expanded based on the above-mentioned technical approach. In the case where there is no second candidate protection ring, it can continue to determine whether there is a third candidate protection ring from the upper-upper protection ring of the faulty protection ring (i.e., the upper-upper protection ring of the upper-upper protection ring of the faulty protection ring). In the case where there is a third candidate protection ring, the protection ring with the highest target priority order among the third candidate protection rings is determined as the target protection ring. In this way, the scope of influence that may be caused by the service switching between the faulty protection ring and the target protection ring can be controlled within the upper-upper protection ring of the faulty protection ring.
[0063] Those skilled in the art may also flexibly set the target priority order according to business needs, and this application does not impose any restrictions on this.
[0064] By adopting the above-mentioned technical method, the service can be switched to the target protection ring of the same virtual layer, ensuring the normal transmission of the service 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, and avoid the service switching from affecting the services carried on other logical protection rings. It reduces the waste of transmission resources, improves the utilization rate of transmission resources, and can also control the service impact scope of transmission link fault handling as much as possible, further improving the reliability of transmission link fault handling.
[0065] FIG6 illustrates another flow diagram of a method for handling a transmission link failure according to an embodiment of the present application. As shown in FIG6 , step 104 may include the following steps: In step S1041, services on the failed protection ring are deleted and services are recreated on the target protection ring. In step S1042, the remaining service bandwidth of the target protection ring is updated based on the service bandwidth of the failed protection ring.
[0066] For example, the remaining service bandwidth of the target protection ring may be updated according to the following formula 1.
[0067] in, is the remaining service bandwidth of the updated target protection ring, BW is the remaining service bandwidth of the target protection ring before service switching. S is the service bandwidth of the fault protection ring.
[0068] The above technical approach can promptly switch services on the faulty protection ring to the target protection ring, ensuring normal transmission of services carried on the faulty protection ring. It can also promptly update the remaining service bandwidth of the target protection ring, improving the reliability of transmission link fault handling.
[0069] FIG7 shows another flow diagram of a method for handling a transmission link failure according to an embodiment of the present application. As shown in FIG7 , step 104 may further include the following steps: before step S1041, step S1043 may be included to change the service state of the target protection ring to the operation state. After step S1042, step S1044 may be included to change the service state of the target protection ring to the activation state.
[0070] 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 activated state, a consistency check can 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 connected to the network element device.
[0071] In some embodiments, the service on the faulty protection ring is deleted, and the service is re-created on the target protection ring. Creation information in the target protection ring, such as creation time and creation user, may also be updated.
[0072] In some embodiments, when switching 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 state, and after the service switching is completed, the service state is updated to the fault state.
[0073] By adopting the above technical method, the services on the fault protection ring can be switched to the target protection ring in time to ensure the normal transmission of the services carried on the fault protection ring. It can also avoid conflicts in transmission link fault handling by modifying the service status (for example, multiple fault protection rings switch services to the same target protection ring), further improving the reliability of transmission link fault handling.
[0074] Figure 8 shows another flow chart of the method for handling transmission failures provided in an embodiment of the present application. As shown in Figure 8, the method may further include the following steps: in step S105, in response to the transmission link returning to normal, the service is switched from the target protection ring back to the fault protection ring that has returned to normal.
[0075] In some embodiments, services may be switched from the target protection ring back to the restored fault protection ring in the following manner.
[0076] Mode 1: In response to the return operation, the service is switched from the target protection ring back to the normal fault protection ring.
[0077] Mode 2: When the time after the faulty protection ring returns to normal is greater than or equal to a preset waiting time threshold for recovery, the service is switched from the target protection ring back to the faulty protection ring that has returned to normal.
[0078] The steps of switching the service from the target protection ring back to the restored fault protection ring are similar to steps S1041-S1042 and will not be described in detail. After switching the service back to the restored fault protection ring, the remaining service bandwidth of the target protection ring can be restored according to the service switching situation.
[0079] When there are frequent failures in the fault protection ring, service return can be controlled according to preset penalty parameters to avoid the impact of frequent service switching on service experience.
[0080] The above technical approach enables services to be switched to the target protection ring at the same virtual level, ensuring the normal transmission of services carried on the faulty protection ring. This also prevents failures on some logical transmission links from triggering service switching on the entire physical transmission link, preventing service switching from impacting services carried on other logical protection rings. This reduces transmission resource waste and improves transmission resource utilization. After the transmission link recovers, services can be promptly switched back to the restored faulty protection ring, further improving system maintainability.
[0081] Figure 9 shows a flow chart of a method for handling loop failures provided in an embodiment of the present application. As shown in Figure 9, the method may include the following steps: in step S201, in response to transmission link failure information in the first loop, the transmission link is fault-handled.
[0082] The fault information includes fault protection ring information.
[0083] In some embodiments, the method for handling transmission link failures shown in the embodiment of the first aspect of the present application can be used to handle transmission link failures. Taking Figure 2 as an example, the first loop can be a fiber protection ring L1. If any transmission link in the first loop (e.g., L1-3) fails, the method for handling transmission link failures shown in the embodiment of the first aspect of the present application can be used to handle the transmission link failure. The first target virtual level corresponding to the faulty protection ring is determined based on the fault information, and a first candidate protection ring that meets the preset conditions is determined from the protection rings whose virtual levels are the first target virtual levels included in the first loop.
[0084] Figure 10 shows another flow chart of the method for handling loop failures provided in an embodiment of the present application. As shown in Figure 10, the method may further include the following steps: in step S202, if a first candidate protection ring that meets the preset conditions is not determined in the protection ring of the first target virtual layer corresponding to the faulty protection ring, the service on the faulty protection ring in the first ring is switched to the second ring.
[0085] The second loop is a protection loop of the first loop, and the preset condition includes a preset state condition and / or a preset capacity condition.
[0086] If no first candidate protection ring meeting preset conditions is determined in the protection rings of the first target virtual level corresponding to the faulty protection ring, services on the faulty protection ring in the first ring may be switched to the second ring (eg, optical fiber protection ring L2).
[0087] Transmission link failures can be failures corresponding to protection rings at different virtual levels, and the causes of the failures can be varied. When the logical protection ring connection at the virtual level is interrupted, or the bit error rate of the logical protection ring connection at any virtual level exceeds a preset threshold, only the services on the faulty protection ring can be switched from the first ring to the second ring. In the event that the fault information indicates a serious and large-scale failure in the transmission link, such as a physical fiber break (i.e., a logical transmission protection ring connection at all virtual levels is interrupted), all services can also be switched from the first ring to the second ring.
[0088] By adopting the above-mentioned technical method, when there is no first candidate protection ring that meets the preset conditions in the protection ring of the first target virtual layer corresponding to the fault protection ring in the same loop, the service carried on the fault protection ring in the first loop can be switched to the second loop, thereby realizing cross-loop switching of the service carried on the logical protection ring of the first target virtual layer. This can avoid triggering service switching of the entire protection ring when the transmission link of some virtual layers fails, avoid affecting the services carried on the protection rings of other virtual layers due to switching, reduce the waste of transmission resources, and improve the utilization rate of transmission resources.
[0089] FIG11 shows a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present application. Referring to the figure, at the hardware level, the electronic device includes a processor, and optionally, an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services. The processor, network interface, and memory can be interconnected through an internal bus, which 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 ease of representation, only one bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0090] The memory stores programs. Programs may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides instructions and data to the processor.
[0091] 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 a logical level. The processor executes the program stored in the memory and specifically performs the method disclosed in the first embodiment or the second embodiment, and achieves the functions and beneficial effects of each method described in the above method embodiments, which will not be repeated here.
[0092] The methods disclosed in the first or second embodiments of the present application can be implemented in a processor or by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the method can be completed by hardware integrated logic circuits in the processor or by software instructions. The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can 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, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly implemented as a hardware decoding processor or performed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0093] The electronic device can also execute the methods described in the above method embodiments and realize the functions and beneficial effects of the methods described in the above method embodiments, which will not be described in detail here.
[0094] Of course, in addition to software implementation, the electronic device of this application does not exclude other implementation methods, such as logic devices 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, but can also be hardware or logic devices.
[0095] An embodiment of the present application also proposes a computer-readable storage medium, which stores one or more programs. When the one or more programs are executed by an electronic device including multiple applications, the electronic device executes the method disclosed in the first aspect embodiment or the second aspect embodiment and realizes the functions and beneficial effects of the various methods described in the previous method embodiments, which will not be repeated here.
[0096] The computer-readable storage medium includes a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0097] An embodiment of the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and 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 first aspect embodiment or the second aspect embodiment and the functions and beneficial effects of the various methods described in the previous method embodiments are implemented, which will not be repeated here.
[0098] In short, the above description is only a preferred embodiment of the present application and does not limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
[0099] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0100] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 technology, 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 media 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 (transitory media), such as modulated data signals and carrier waves.
[0101] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0102] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
Claims
1. A method for handling transmission link failures, the method comprising: Obtaining failure information of a transmission link, wherein 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 each protection ring of a higher-level virtual level includes at least one protection ring of a lower-level virtual level; Determining a first target virtual level corresponding to the failed protection ring according to the failure information; Determining a target protection ring for carrying services on the failed protection ring from the protection rings of the virtual level being the first target virtual level; Switching the services on the failed 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 failed 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, the preset condition including 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 failed 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 consistent with the service status of the protection ring on the network element device. State.
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 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 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 higher-level protection ring to which the failed 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 failed protection ring to the target protection ring includes: Deleting the services on the failed 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 failed protection ring.
7. The method according to claim 6, wherein The method further includes: Before deleting the services on the failed 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 failed protection ring, modifying the service status of the target protection ring to the active state. The method further includes:
8. The method according to any one of claims 1-5, wherein 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 at least one of a preset status condition and a preset capacity condition.
14. An electronic device, including: A processor; And A memory arranged to store computer-executable instructions that, when executed, use the processor to execute the steps of the method for processing a transmission link fault according to any one of claims 1-11, or the executable instructions, when executed, use the processor to execute the steps of the method for processing a loop fault according to claim 12 or 13.
15. A computer-readable storage medium that stores one or more programs which, when executed by an electronic device including a plurality of application programs, cause the electronic device to execute the steps of the method for processing a transmission link fault according to any one of claims 1-11, or the executable instructions, when executed, use the processor to execute the steps of the method for processing a loop fault according to claim 12 or 13.
Citation Information
Patent Citations
Looped network data transmission method, device and system
CN103856404A
Ring network protection method and device and ring network
CN109450764A
Protection method for group business stream on wideband switching network
CN1407763A
Virtual ring protection method for optical wave division network
CN1503496A
Two stage, hybrid logical ring protection with rapid path restoration over mesh networks
EP1146682A2