ONU protection method and device based on wavelength binding

By building a protection switching configuration table and using wavelength binding to match spare ONUs, the problem of ONU protection switching in the existing technology requires additional hardware equipment, and flexible and efficient ONU protection switching is achieved, thereby improving network reliability.

CN119544064APending Publication Date: 2025-02-28WUHAN YANGTZE OPTICAL TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411565433.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The existing ONU protection switching method requires additional hardware equipment support and is not flexible enough to use.

Method used

By constructing a protection switching configuration table based on the ONU identification information and the bound wavelength channel, when the current communication status of the main ONU to be protected is abnormal, the ONU same as the main ONU wavelength channel is matched from the configuration table to perform protection switching.

Benefits of technology

It realizes ONU protection switching without adding additional equipment, and the applicable scenarios are more flexible and efficient, improving the reliability of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544064A_ABST
    Figure CN119544064A_ABST
Patent Text Reader

Abstract

The invention provides an ONU (Optical Network Unit) protection method and device based on wavelength binding. The method comprises the following steps: acquiring a current communication state of a to-be-protected main ONU; under the condition that the current communication state is abnormal, an ONU with the same wavelength channel as the to-be-protected main ONU is obtained from the protection switching configuration table through matching, and a standby ONU of the to-be-protected main ONU is obtained; performing protection switching on the to-be-protected main ONU based on the standby ONU; the protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel. According to the method and the device provided by the invention, the protection switching configuration table is constructed through the identification information of the ONU and the bound wavelength channel, and under the condition that the current communication state of the to-be-protected main ONU is abnormal, the ONU with the same wavelength channel as the to-be-protected main ONU is obtained through matching from the protection switching configuration table, so that the standby ONU of the to-be-protected main ONU is obtained. According to the ONU protection switching method and device, hardware equipment resources are saved, the applicable scene is more flexible, and the ONU protection switching is efficient, so that the network reliability is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to an ONU protection method and device based on wavelength binding. Background Art

[0002] In order to improve the reliability and availability of the network and prevent service interruptions due to network link or equipment failures, the commonly used equipment protection methods in PON networks are the four protection types A, B, C, and D defined in the ITU-TG.984 standard to implement ONU protection switching technology.

[0003] However, the implementation of the existing ONU protection switching method requires additional hardware support and is not flexible in use. Summary of the invention

[0004] The present invention provides an ONU protection method and device based on wavelength binding, which are used to solve the defects that the implementation of the ONU protection switching method in the prior art requires additional hardware equipment support and is not flexible in use.

[0005] The present invention provides an ONU protection method based on wavelength binding, comprising: Get the current communication status of the main ONU to be protected; In the case that the current communication state is abnormal, an ONU having the same wavelength channel as the main ONU to be protected is matched from the protection switching configuration table to obtain a standby ONU of the main ONU to be protected; Based on the standby ONU, performing protection switching on the main ONU to be protected; The protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

[0006] According to an ONU protection method based on wavelength binding provided by the present invention, the steps of constructing the protection switching configuration table include: Based on the bound wavelength channel of the main ONU to be protected, perform wavelength negotiation on the initial standby ONU, and if the wavelength negotiation result is successful, back up the initial standby ONU based on the basic configuration information and the negotiated wavelength channel corresponding to the main ONU to be protected, and determine the standby ONU based on the backup result of the initial standby ONU; The protection switching configuration table is constructed based on the identification information of the main ONU to be protected and the standby ONU and the bound wavelength channels.

[0007] According to an ONU protection method based on wavelength binding provided by the present invention, the ONU having the same wavelength channel as the main ONU to be protected is matched from the protection switching configuration table to obtain a backup ONU of the main ONU to be protected, including: An ONU having the same wavelength channel as the main ONU to be protected is obtained by matching from the protection switching configuration table to obtain a candidate standby ONU; The standby ONU is determined from the candidate standby ONUs based on the communication status of the candidate standby ONUs.

[0008] According to an ONU protection method based on wavelength binding provided by the present invention, the identification information of the ONU includes a primary and a standby identification.

[0009] According to an ONU protection method based on wavelength binding provided by the present invention, the method performs protection switching on the main ONU to be protected based on the standby ONU, and then includes: The active / standby identifier of the standby ONU in the protection switching configuration table is updated to the active identifier, and the active / standby identifier of the main ONU to be protected is updated to the standby identifier, so as to obtain an updated protection switching configuration table.

[0010] According to an ONU protection method based on wavelength binding provided by the present invention, the current communication state of the main ONU to be protected is obtained, and then the method further includes: Obtaining the protection switching record of the main ONU to be protected; When the protection switching record is not empty, the ONUs in the protection switching record and the main ONU to be protected are backed up based on the updated configuration information of the main ONU to be protected.

[0011] The present invention also provides an ONU protection device based on wavelength binding, comprising: An acquisition unit is used to acquire the current communication status of the main ONU to be protected; A matching unit, when the current communication state is abnormal, matches an ONU having the same wavelength channel as the main ONU to be protected from a protection switching configuration table to obtain a backup ONU of the main ONU to be protected; A protection switching unit performs protection switching on the main ONU to be protected based on the standby ONU; The protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the ONU protection method based on wavelength binding as described above is implemented.

[0013] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the ONU protection method based on wavelength binding as described in any one of the above is implemented.

[0014] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the ONU protection method based on wavelength binding as described in any one of the above is implemented.

[0015] The ONU protection method and device based on wavelength binding provided by the present invention obtain a protection switching configuration table through the identification information of the ONU and the binding wavelength channel. When the current communication state of the main ONU to be protected is abnormal, the ONU with the same wavelength channel as the main ONU to be protected is matched from the protection switching configuration table to obtain a backup ONU of the main ONU to be protected, thereby saving hardware equipment resources and achieving more flexible and efficient ONU protection switching in applicable scenarios, thereby greatly improving the reliability of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the present invention or 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 It is a flow chart of an ONU protection method based on wavelength binding provided by the present invention; Figure 2 It is a schematic diagram of an ONU protection method provided by the prior art; Figure 3 It is a schematic diagram of the network topology of the networking provided by the present invention; Figure 4 It is a structural schematic diagram of an ONU protection device based on wavelength binding provided by the present invention; Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0019] In view of the above problems, the present invention provides an ONU protection method based on wavelength binding to achieve flexible and efficient ONU protection switching without adding additional equipment. Figure 1 is a flow chart of the ONU protection method based on wavelength binding provided by the present invention, such as Figure 1 As shown, the method includes: Step 110, obtaining the current communication status of the main ONU to be protected.

[0020] Here, the current communication status can be used to reflect the line status and port abnormality between the main ONU to be protected and the OLT (Optical Line Terminal). It can be understood that when the line status between the main ONU to be protected and the OLT is normal, and the port status of the main ONU to be protected is normal, the communication status between the main ONU to be protected and the OLT can be normal. When the line status between the main ONU to be protected and the OLT is abnormal, such as a line interruption, or the port status of the main ONU to be protected is abnormal, the current communication status of the main ONU to be protected is abnormal, and normal communication cannot be achieved.

[0021] Specifically, the communication status between the main ONU to be protected and the OLT can be obtained through heartbeat detection, and the main ONU to be protected sends a heartbeat packet to the OLT at a set packet sending interval. If the OLT does not receive the heartbeat packet of the main ONU within the set timeout period, it is judged that the communication status of the main ONU is abnormal, that is, there is an abnormality in the current communication status of the main ONU to be protected.

[0022] Step 120, when the current communication state is abnormal, match the ONU with the same wavelength channel as the main ONU to be protected from the protection switching configuration table to obtain the backup ONU of the main ONU to be protected; the protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

[0023] Here, the protection switching configuration table can be constructed based on all the identification information of all the main ONUs to be protected and all the identification information of the backup ONUs and the bound wavelength channels. It should be noted that when the bound wavelength channels of two ONUs are consistent, it means that the relationship between the two ONUs is a master-slave relationship, and the protection switching can be performed on the main ONU.

[0024] Specifically, when the current communication state is abnormal, it means that there may be situations such as fiber line interruption and port failure between the main ONU to be protected and the OLT. In order to improve the reliability and availability of the network and prevent the interruption of communication services due to network link or equipment failure, an ONU with the same wavelength channel as the main ONU to be protected can be matched from the pre-configured protection switching configuration table. If multiple ONUs with the same wavelength channel as the main ONU to be protected are matched at this time, one ONU can be elected as the backup ONU of the main ONU to be protected based on the existing election algorithm. The election algorithm here can be a priority algorithm, a load balancing algorithm, etc.

[0025] Figure 2 Schematic diagram of an ONU protection method provided by the prior art. Figure 2 As shown, they are schematic diagrams of the protection methods in the prior art, namely Type A (backbone fiber protection), Type B (OLT PON port protection), Type C (PON system full fiber protection), and Type D (PON system full fiber protection). Among them, in the Type A protection method, the two PON ports (primary / standby) of the OLT use a PON MAC chip, and two optical modules are connected through a 1×2 switch. Once the main optical fiber link fails, it switches to the backup optical fiber link. In the Type B protection method, the OLT uses two PON ports (primary / standby), and uses independent PON MAC chips and optical modules respectively to achieve protection of the two PON ports. By establishing two independent and mutually backed-up optical fiber links between the splitter and the OLT, the OLT detects the line status and the OLT PON port status. Once the main optical fiber link fails, the OLT completes the switchover. In the Type C protection method, the OLT uses two PON ports (primary / backup), both of which are in working state. By installing a built-in 1×2 optical switch in front of the PON port of the ONU, two independent and mutually backed-up optical fiber links are established between the ONU and the OLT. Once the main optical fiber link fails, the ONU completes the switchover. In the Type D protection method, the OLT uses two PON ports (primary / backup) and two PON ports (primary / backup) are used on the ONU side. In this configuration, the failure can be restored at any point by switching to the backup device, which has high reliability.

[0026] It should be noted that compared with the prior art Figure 2The ONU protection methods shown all need to be supported by additional hardware devices. The method provided by the embodiment of the present invention, by wavelength binding the main ONU to be protected and the ONU that can be used for standby, realizes that the wavelength channel of the standby ONU is consistent with the wavelength channel of the main ONU. Then, when the main ONU fails, the ONU consistent with its own wavelength channel can be selected as the standby ONU to perform protection switching. Thus, the protection switching of the ONU can be realized by utilizing the multi-wavelength transmission characteristics of the WDM-PON system, without adding additional equipment, without changing the existing networking mode, and the applicable scenarios are more flexible. In addition, there is no need to perform complex operations, and only the ONU with the same wavelength channel as the main ONU to be protected needs to be traversed from the protection switching configuration table, thereby realizing efficient protection switching.

[0027] In one embodiment, Figure 3 is a schematic diagram of the network topology of the network provided by the present invention, such as Figure 3 As shown, the network includes an OLT end, N optical splitters and multiple ONU units. The OLT includes a PON port, and each ONU unit includes a PON port. It can be understood that if the wavelength channel of ONU2 is the same as that of ONU1, when the communication state of ONU1 is abnormal, ONU2 can perform protection switching on ONU1 to ensure normal communication of the network.

[0028] Step 130: Based on the standby ONU, protection switching is performed on the main ONU to be protected.

[0029] Specifically, the standby ONU can be enabled to replace the main ONU to be protected for communication. Once the switch is completed, the standby ONU will take over the business of the main ONU to be protected to ensure the continuity of network services.

[0030] The method provided by the embodiment of the present invention obtains a protection switching configuration table through the identification information of the ONU and the bound wavelength channel. When the current communication state of the main ONU to be protected is abnormal, the ONU with the same wavelength channel as the main ONU to be protected is matched from the protection switching configuration table to obtain a backup ONU of the main ONU to be protected, thereby saving hardware equipment resources and achieving more flexible and efficient ONU protection switching in applicable scenarios, thereby greatly improving the reliability of the network.

[0031] Based on any of the above embodiments, the step of constructing the protection switching configuration table includes: Based on the bound wavelength channel of the main ONU to be protected, perform wavelength negotiation on the initial standby ONU, and if the wavelength negotiation result is successful, back up the initial standby ONU based on the basic configuration information and the negotiated wavelength channel corresponding to the main ONU to be protected, and determine the standby ONU based on the backup result of the initial standby ONU; The protection switching configuration table is constructed based on the identification information of the main ONU to be protected and the standby ONU and the bound wavelength channels.

[0032] Here, the identification information may include a master / slave identification and an ONU device identification. The master / slave identification here can be used to identify whether the ONU is a master ONU or a standby ONU, and reflects the working status of the ONU, which can be expressed as "master / standby". It can be understood that the master ONU indicates that the ONU is working normally, and the standby ONU indicates that the working status of the ONU is idle. The ONU device identification can be the MAC address of the ONU device. In addition, the negotiated wavelength channel here refers to the wavelength channel after the wavelength negotiation of the initial standby ONU based on the bound wavelength channel of the main ONU to be protected, that is, the same wavelength channel as the bound wavelength channel of the main ONU to be protected.

[0033] Specifically, when constructing the protection switching configuration table, the ONU currently in use in the network can be used as the main ONU to be protected, and the identification information and bound wavelength channel of the main ONU to be protected can be written into the protection switching configuration table to construct the main ONU data to be protected in the protection switching configuration table.

[0034] For the standby ONU in the protection switching configuration table, first, based on the bound wavelength channel of the main ONU to be protected corresponding to the standby ONU, the wavelength negotiation is performed on the initial standby ONU. That is, the initial standby ONU is negotiated to bind the wavelength channel. In the case where the wavelength negotiation result of the initial standby ONU is a failure, the initial standby ONU is not recorded in the protection switching configuration table. In the case where the wavelength negotiation result of the initial standby ONU is successful, the basic configuration information corresponding to the main ONU to be protected can be transmitted to the initial standby ONU based on the negotiated wavelength channel, so as to realize the backup of the initial standby ONU. That is, the basic configuration information corresponding to the main ONU to be protected can be transmitted to the initial standby ONU through the negotiated wavelength channel, and the backup on the initial standby ONU is realized based on the multi-wavelength channel without affecting the normal data communication between the OLT and the main ONU to be protected. The basic configuration information here refers to the configuration information used to establish communication with the OLT, which can include port information. Then, the initial standby ONU with a backup result of a successful backup can be used as a standby ONU. If the backup fails, the initial standby ONU is not recorded in the protection switching configuration table.

[0035] Finally, a protection switching configuration table can be constructed based on the identification information and bound wavelength channel of the main ONU to be protected, and the identification information and bound wavelength channel of the standby ONU. The protection switching configuration table can be stored at the OLT end.

[0036] It should be noted that when any one of the main ONUs does not need protection switching, the main ONU can be removed from the protection switching configuration table, or the field of whether the main ONU needs protection switching can be modified to "no protection". In addition, when a certain reserve ONU needs to be removed, the adjustment of the ONU protection switching can be achieved by only removing the reserve ONU from the protection switching configuration table, or modifying the field of whether the reserve ONU is standby to "no". It is understandable that the adjustment of adding or removing the actual ONU can be achieved only by modifying the protection switching configuration table, which realizes a convenient network adjustment without affecting the existing networking mode.

[0037] The method provided by the embodiment of the present invention performs wavelength negotiation on the initial standby ONU through the bound wavelength channel of the main ONU to be protected, and backs up the initial standby ONU based on the basic configuration information of the main ONU to be protected. Finally, only the ONU that successfully negotiates and backs up can serve as the standby ONU, which ensures that the standby ONU in the protection switching configuration table can normally and correctly take over the communication work of the main ONU to be protected after the protection switching is performed, greatly improving the reliability and timeliness of the protection switching of the main ONU to be protected, and ensuring the timely recovery of network communication.

[0038] Based on any of the above embodiments, in step 120, the step of matching an ONU having the same wavelength channel as the main ONU to be protected from the protection switching configuration table to obtain a backup ONU of the main ONU to be protected includes: An ONU having the same wavelength channel as the main ONU to be protected is obtained by matching from the protection switching configuration table to obtain a candidate standby ONU; The standby ONU is determined from the candidate standby ONUs based on the communication status of the candidate standby ONUs.

[0039] Specifically, an ONU having the same wavelength channel as the main ONU to be protected can be matched from the protection switching configuration table to obtain a candidate standby ONU. Then, the communication state of the candidate standby ONU can be obtained by performing heartbeat detection between the candidate standby ONU and the OLT. When the communication state of the candidate standby ONU is normal, the candidate standby ONU is used as the standby ONU of the main ONU to be protected to ensure that the standby ONU performing protection switching can timely replace the main ONU to be protected for communication transmission, thereby ensuring the reliability of the network.

[0040] Based on any of the above embodiments, the identification information of the ONU includes a primary and standby identification; Step 130 then includes: The active / standby identifier of the standby ONU in the protection switching configuration table is updated to the active identifier, and the active / standby identifier of the main ONU to be protected is updated to the standby identifier, so as to obtain an updated protection switching configuration table.

[0041] Specifically, after the protection switching of the main ONU to be protected is performed, the master-slave identifier of the standby ONU in the protection switching configuration table can be updated to the master identifier. When the communication recovery state of the main ONU to be protected is normal, the master-slave identifier of the main ONU to be protected is updated to the standby identifier to obtain an updated protection switching configuration table. Thus, the protection switching configuration table is synchronized with the protection switching record of the ONU in the networking, and then when the new main ONU needs protection switching, the corresponding standby ONU can be selected from the updated protection switching configuration table.

[0042] In addition, after the protection switching of the main ONU to be protected is performed, the fault diagnosis of the replaced main ONU to be protected can be performed. Then, the communication recovery state of the main ONU to be protected can be obtained through the heartbeat detection between the OLT and the main ONU to be protected. When the communication recovery state is normal, it means that the main ONU to be protected can be put back on line and communicate as the main ONU. Thus, the basic configuration information of the original standby ONU can be backed up to the main ONU to be protected, so that the main ONU to be protected that is put back on line can be used as a standby ONU.

[0043] It should be noted that the ONU protection method provided in the embodiment of the present invention only needs to maintain the protection switching configuration table to realize the protection switching of the main ONU to be protected, without adding additional equipment, thereby avoiding the impact of failure of the additional equipment on the protection switching of the main ONU to be protected, thereby greatly improving the reliability of the network.

[0044] Based on any of the above embodiments, after step 110, the following steps may be further performed: Obtaining the protection switching record of the main ONU to be protected; When the protection switching record is not empty, the ONUs in the protection switching record and the main ONU to be protected are backed up based on the updated configuration information of the main ONU to be protected.

[0045] Specifically, the protection switching record of the main ONU to be protected can be obtained. Here, the protection switching record can reflect all the standby ONUs used for protection switching of the main ONU to be protected. When the protection switching record is not empty, based on the wavelength channels between the OLT and the main ONU to be protected and all the standby ONUs of the main ONU to be protected, the configuration information is transmitted to the corresponding ONU to update, so as to realize the synchronous backup of the ONU in the protection switching record and the main ONU to be protected, so as to keep the configuration information between the ONUs that can realize the protection switching synchronously, and lay the foundation for the smooth protection switching.

[0046] Based on any of the above embodiments, Figure 4 Schematic diagram of the structure of the ONU protection device based on wavelength binding provided by the present invention, such as Figure 4 As shown, the device comprises: An acquisition unit 410 acquires the current communication status of the main ONU to be protected; The matching unit 420, when the current communication state is abnormal, matches and obtains an ONU having the same wavelength channel as the main ONU to be protected from the protection switching configuration table, and obtains a backup ONU of the main ONU to be protected; A protection switching unit 430 performs protection switching on the main ONU to be protected based on the standby ONU; The protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

[0047] The device provided by the embodiment of the present invention obtains a protection switching configuration table through the identification information of the ONU and the bound wavelength channel. When the current communication state of the main ONU to be protected is abnormal, the ONU with the same wavelength channel as the main ONU to be protected is matched from the protection switching configuration table to obtain a backup ONU of the main ONU to be protected, thereby saving hardware equipment resources and achieving more flexible and efficient ONU protection switching in applicable scenarios, thereby greatly improving the reliability of the network.

[0048] Based on any of the above embodiments, the device further includes a construction unit, and the construction unit is specifically used for: Based on the bound wavelength channel of the main ONU to be protected, perform wavelength negotiation on the initial standby ONU, and if the wavelength negotiation result is successful, back up the initial standby ONU based on the basic configuration information and the negotiated wavelength channel corresponding to the main ONU to be protected, and determine the standby ONU based on the backup result of the initial standby ONU; The protection switching configuration table is constructed based on the identification information of the main ONU to be protected and the standby ONU and the bound wavelength channels.

[0049] Based on any of the above embodiments, the matching unit is specifically used for: An ONU having the same wavelength channel as the main ONU to be protected is obtained by matching from the protection switching configuration table to obtain a candidate standby ONU; The standby ONU is determined from the candidate standby ONUs based on the communication status of the candidate standby ONUs.

[0050] Based on any of the above embodiments, the identification information of the ONU includes a primary and a standby identification.

[0051] Based on any of the above embodiments, the protection switching unit includes an updating unit after the protection switching unit, and the updating unit is specifically used for: The active / standby identifier of the standby ONU in the protection switching configuration table is updated to the active identifier, and the active / standby identifier of the main ONU to be protected is updated to the standby identifier, so as to obtain an updated protection switching configuration table.

[0052] Based on any of the above embodiments, the acquisition unit further includes a configuration backup unit, and the configuration backup unit is specifically used for: Obtaining the protection switching record of the main ONU to be protected; When the protection switching record is not empty, the ONUs in the protection switching record and the main ONU to be protected are backed up based on the updated configuration information of the main ONU to be protected.

[0053] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 complete mutual communication through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the ONU protection method based on wavelength binding, the method comprising: obtaining the current communication state of the main ONU to be protected; when the current communication state is abnormal, matching the ONU with the same wavelength channel as the main ONU to be protected from the protection switching configuration table to obtain the backup ONU of the main ONU to be protected; based on the backup ONU, performing protection switching on the main ONU to be protected; the protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

[0054] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0055] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the ONU protection method based on wavelength binding provided by the above methods, the method including: obtaining the current communication status of the main ONU to be protected; when the current communication status is abnormal, matching the ONU with the same wavelength channel as the main ONU to be protected from the protection switching configuration table to obtain a backup ONU of the main ONU to be protected; based on the backup ONU, performing protection switching on the main ONU to be protected; the protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

[0056] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the ONU protection method based on wavelength binding provided by the above-mentioned methods, the method comprising: obtaining the current communication status of the main ONU to be protected; when the current communication status is abnormal, matching an ONU with the same wavelength channel as the main ONU to be protected from a protection switching configuration table to obtain a backup ONU of the main ONU to be protected; based on the backup ONU, performing protection switching on the main ONU to be protected; the protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

[0057] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0058] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0059] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An ONU protection method based on wavelength binding, characterized in that: include: Get the current communication status of the main ONU to be protected; In the case that the current communication state is abnormal, an ONU having the same wavelength channel as the main ONU to be protected is matched from the protection switching configuration table to obtain a standby ONU of the main ONU to be protected; Based on the standby ONU, performing protection switching on the main ONU to be protected; The protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

2. The ONU protection method based on wavelength binding according to claim 1, characterized in that: The steps of constructing the protection switching configuration table include: Based on the bound wavelength channel of the main ONU to be protected, perform wavelength negotiation on the initial standby ONU, and if the wavelength negotiation result is successful, back up the initial standby ONU based on the basic configuration information and the negotiated wavelength channel corresponding to the main ONU to be protected, and determine the standby ONU based on the backup result of the initial standby ONU; The protection switching configuration table is constructed based on the identification information of the main ONU to be protected and the standby ONU and the bound wavelength channels.

3. The ONU protection method based on wavelength binding according to claim 1, characterized in that: The step of matching an ONU having the same wavelength channel as the main ONU to be protected from the protection switching configuration table to obtain a standby ONU of the main ONU to be protected comprises: An ONU having the same wavelength channel as the main ONU to be protected is obtained by matching from the protection switching configuration table to obtain a candidate standby ONU; The standby ONU is determined from the candidate standby ONUs based on the communication status of the candidate standby ONUs.

4. The ONU protection method based on wavelength binding according to any one of claims 1 to 3, characterized in that: The identification information of the ONU includes a primary identification and a secondary identification.

5. The ONU protection method based on wavelength binding according to claim 4, characterized in that: The step of performing protection switching on the main ONU to be protected based on the standby ONU comprises: The active / standby identifier of the standby ONU in the protection switching configuration table is updated to the active identifier, and the active / standby identifier of the main ONU to be protected is updated to the standby identifier, so as to obtain an updated protection switching configuration table.

6. The ONU protection method based on wavelength binding according to any one of claims 1 to 3, characterized in that: The step of obtaining the current communication status of the main ONU to be protected further includes: Obtaining the protection switching record of the main ONU to be protected; When the protection switching record is not empty, the ONUs in the protection switching record and the main ONU to be protected are backed up based on the updated configuration information of the main ONU to be protected.

7. An ONU protection device based on wavelength binding, characterized in that: include: An acquisition unit is used to acquire the current communication status of the main ONU to be protected; A matching unit, when the current communication state is abnormal, matches an ONU having the same wavelength channel as the main ONU to be protected from a protection switching configuration table to obtain a backup ONU of the main ONU to be protected; A protection switching unit performs protection switching on the main ONU to be protected based on the standby ONU; The protection switching configuration table is constructed based on the identification information of the ONU and the bound wavelength channel.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the ONU protection method based on wavelength binding as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the ONU protection method based on wavelength binding as claimed in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the ONU protection method based on wavelength binding as claimed in any one of claims 1 to 6 is implemented.