Industrial PON network protection switching method, device and system and readable storage medium
By pre-storing the ranging values of the spare OLT in the industrial PON network and directly using these ranging values for OLT switching when the main OLT fails, the problem of long recovery time of OLT in the prior art is solved, and network stability is improved.
Patent Information
- Application Number
- CN202411878470.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-08
AI Technical Summary
When the OLT machine fails, the recovery time of the TYPE-B protection method is long, resulting in a reduced network stability.
By pre-stored the ranging values of the backup OLT in the target ONU, these ranging values are used directly to switch OLTs when the main OLT fails, skipping the ranging process.
This greatly reduces the time-consuming protection switching, improves switching efficiency, and thus improves the stability of the PON network.
Smart Images

Figure CN119788174A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the fields of network technology and security technology, and in particular to an industrial PON network protection switching method, device, system, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] The application scenarios of industrial PON (Passive Optical Network) in enterprises mainly include production networks, office networks, security monitoring networks, etc. Among them, the production network has extremely high requirements for network stability and reliability. Once a network failure occurs, it will affect the production of the enterprise.
[0003] An OLT (optical line terminal) can hold an average of five PON service boards. One PON service board has 16 PON service ports. One PON service port can connect to 32 ONUs (Optical Network Units). One ONU generally has eight or so GEs (Gigabit Ethernet). In this case, if the entire OLT fails, tens of thousands of information points connected to the OLT will not function properly.
[0004] When most enterprises use industrial PON networking, the network system redundancy protection solution is TYPE-B. However, based on the existing standards, when an OLT failure occurs, the recovery time of TYPE-B protection is at the minute level, which is time-consuming and greatly reduces the stability of the PON network. Summary of the invention
[0005] Based on this, it is necessary to provide an industrial PON network protection switching method, device, computer equipment, computer-readable storage medium and computer program product that can reduce the time consumption of industrial PON network protection switching and improve the stability of the PON network in response to the above technical problems.
[0006] In a first aspect, the present application provides an industrial PON network protection switching method, the method comprising:
[0007] When the main OLT associated with the target ONU fails, obtaining the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area;
[0008] In case that the ranging value corresponding to the standby OLT is acquired, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
[0009] In one embodiment, the method further comprises:
[0010] In the case where the ranging value corresponding to the standby OLT is not obtained, the target ONU starts a ranging process to obtain the ranging value corresponding to the standby OLT, and switches from the active OLT to the standby OLT based on the ranging value.
[0011] In one of the embodiments, the target ONU includes the first storage area and the second storage area, the second storage area is used to store the ranging value corresponding to the active OLT, and the first storage area is used to store the ranging value corresponding to the standby OLT, and the method further includes:
[0012] In response to the simulation operation for the complete failure of the active OLT, the target ONU starts a ranging process, obtains a ranging value corresponding to the standby OLT, and stores the ranging value corresponding to the standby OLT in the first storage area.
[0013] In one embodiment, the method further comprises:
[0014] After an interval of a preset duration and when it is determined that the simulation conditions are met, in response to an update operation on the ranging value of the standby OLT, the target ONU obtains the ranging value corresponding to the standby OLT at the current moment, and uses the ranging value corresponding to the current moment to overwrite the ranging value corresponding to the standby OLT in the first storage area.
[0015] In a second aspect, the present application provides an industrial PON network protection switching system, including a target ONU, a primary OLT associated with the target ONU, and a backup OLT associated with the target ONU, wherein:
[0016] The target ONU is used to obtain the ranging value corresponding to the backup OLT associated with the target ONU from the first storage area when the associated active OLT fails, and when the ranging value corresponding to the backup OLT is obtained, switch from the active OLT to the backup OLT based on the ranging value.
[0017] In one embodiment, the system further comprises:
[0018] The PON network management and control platform is used to collect and change trends of various performance indicators of PON devices, analyze the faulty PON devices, determine the ONU associated with the faulty PON devices, and send warning information based on the ONU associated with the faulty PON devices.
[0019] In a third aspect, the present application provides an industrial PON network protection switching device, the device comprising:
[0020] An acquisition module, configured to acquire, from the first storage area, a ranging value corresponding to a standby OLT associated with the target ONU when a primary OLT associated with the target ONU fails;
[0021] The switching module is used for, when a ranging value corresponding to the standby OLT is acquired, switching the target ONU from the active OLT to the standby OLT based on the ranging value.
[0022] In one embodiment, the device further comprises:
[0023] The ranging module is used for, when the ranging value corresponding to the standby OLT is not obtained, the target ONU starts a ranging process to obtain the ranging value corresponding to the standby OLT, and switches from the active OLT to the standby OLT based on the ranging value.
[0024] In one of the embodiments, the target ONU includes the first storage area and the second storage area, the second storage area is used to store the ranging value corresponding to the active OLT, and the first storage area is used to store the ranging value corresponding to the standby OLT, and the device further includes:
[0025] The storage module is used for, in response to the simulation operation for the complete failure of the active OLT, the target ONU starts a ranging process, obtains the ranging value corresponding to the standby OLT, and stores the ranging value corresponding to the standby OLT in the first storage area.
[0026] In one embodiment, the device further comprises:
[0027] The updating module is used for, after a preset time interval and when it is determined that the simulation condition is met, in response to the updating operation of the ranging value of the standby OLT, the target ONU obtains the ranging value corresponding to the standby OLT at the current moment, and uses the ranging value corresponding to the current moment to overwrite the ranging value corresponding to the standby OLT in the first storage area.
[0028] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0029] When the main OLT associated with the target ONU fails, obtaining the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area;
[0030] In case that the ranging value corresponding to the standby OLT is acquired, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
[0031] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0032] When the main OLT associated with the target ONU fails, obtaining the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area;
[0033] In case that the ranging value corresponding to the standby OLT is acquired, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
[0034] In a sixth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0035] When the main OLT associated with the target ONU fails, obtaining the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area;
[0036] In case that the ranging value corresponding to the standby OLT is acquired, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
[0037] The above-mentioned industrial PON network protection switching method, device, system, computer equipment, computer-readable storage medium and computer program product, when the main OLT associated with the target ONU fails, obtains the ranging value corresponding to the backup OLT associated with the target ONU from the first storage area, and when the ranging value corresponding to the backup OLT is obtained, the target ONU switches from the main OLT to the backup OLT based on the ranging value. Using the industrial PON network protection switching method, device, system, computer equipment, computer-readable storage medium and computer program product provided by the embodiments of the present application, during the industrial PON network protection switching process, the target ONU can directly perform OLT switching based on the pre-stored ranging value of the backup OLT, skipping the ranging process of the target ONU, which can greatly reduce the switching time, improve the switching efficiency, and thus improve the stability of the PON network. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1An application environment diagram of an industrial PON network protection switching method in an embodiment;
[0040] Figure 2 A schematic diagram of a process flow of an industrial PON network protection switching method in one embodiment;
[0041] Figure 3 A schematic diagram of an industrial PON network protection switching method in one embodiment;
[0042] Figure 4 A structural block diagram of an industrial PON network protection switching device in an embodiment;
[0043] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] The industrial PON network protection switching method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Each ONU is connected to the main OLT and the backup OLT through a 2:N optical splitter. In the PON network management platform, a "PON protection management and control" function module is provided. The "PON protection management and control" function module is integrated with the PON equipment network management in the same software platform, and in the "PON protection management and control" function module, it can be pre-set to enable "prioritization of ranging values between the backup OLT" for each downstream ONU, that is, when the OLT board or port connected to the ONU fails, the ranging value record between the ONU and the backup OLT stored locally is preferentially retrieved. If there is no ranging value storage record between the backup OLT, the ranging process is executed, and the ranging value obtained based on the ranging process is switched to the backup OLT.
[0046] In an exemplary embodiment, Figure 2 As shown, a method for industrial PON network protection switching is provided, and the method is applied to Figure 1 The ONU in FIG. 1 is taken as an example to illustrate, including the following steps 202 to 204. Among them:
[0047] Step 202: When the active OLT associated with the target ONU fails, a ranging value corresponding to the standby OLT associated with the target ONU is obtained from the first storage area.
[0048] In the embodiment of the present application, ONU is an optical network unit, which is a user-side device in a network architecture such as FTTH (fiber to the home) or FTTB (fiber to the building), responsible for receiving and sending data. OLT is an optical line terminal, which is a central office device responsible for managing ONUs and transmitting data with ONUs.
[0049] In order to improve the reliability of the PON network, a primary OLT and a backup OLT are usually configured. When the primary OLT fails, the ONU can switch to the backup OLT to continue working. In the PON system, since the transmission delay of the optical signal in the optical fiber is different, the ranging value is required to compensate for this delay and ensure that the data of all ONUs can be correctly synchronized.
[0050] In the embodiment of the present application, the ranging value corresponding to the standby OLT associated with the target ONU can be stored in the first storage area in advance, and the ranging value can be obtained by pre-executing the ranging process. When the main OLT currently responsible for communicating with the target ONU has a problem and cannot work normally, the target ONU can preferentially obtain the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area.
[0051] Step 204: When the ranging value corresponding to the standby OLT is obtained, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
[0052] In an embodiment of the present application, when the ranging value corresponding to the backup OLT is obtained from the first storage area, the target ONU can skip the ranging process, directly use the pre-stored ranging value, adjust its own timestamp or sending timing to adapt to the environment of the backup OLT, thereby achieving a smooth switch from the active OLT to the backup OLT.
[0053] In the above industrial PON network protection switching method, when the main OLT associated with the target ONU fails, the ranging value corresponding to the standby OLT associated with the target ONU is obtained from the first storage area, and when the ranging value corresponding to the standby OLT is obtained, the target ONU is switched from the main OLT to the standby OLT based on the ranging value. Using the industrial PON network protection switching method provided by the embodiment of the present application, during the industrial PON network protection switching process, the target ONU can directly perform OLT switching based on the pre-stored ranging value of the standby OLT, skipping the ranging process of the target ONU, which can greatly reduce the switching time, improve the switching efficiency, and thus improve the stability of the PON network.
[0054] In an exemplary embodiment, the method further includes:
[0055] In the case where the ranging value corresponding to the standby OLT is not obtained, the target ONU starts the ranging process, obtains the ranging value corresponding to the standby OLT, and switches from the active OLT to the standby OLT based on the ranging value.
[0056] In an embodiment of the present application, if the ranging value corresponding to the backup OLT is not stored in the first storage area in advance, or the ranging value corresponding to the backup OLT stored in the first storage area has expired (for example: a validity period of the ranging value is set, and when this period is exceeded, it can be determined that the ranging value has expired), when the active OLT fails, the target ONU cannot obtain the ranging value corresponding to the backup OLT from the first storage area, and the target ONU needs to actively initiate a ranging process.
[0057] The ranging process is a process in which the ONU and the OLT interact through specific protocols and signals to measure the optical fiber transmission delay between the ONU and the OLT, thereby calculating the ranging value. This process usually includes the ONU sending a ranging request signal, the OLT receiving and responding, and finally calculating the ranging value. The ranging process is not elaborated in detail in the embodiments of the present application.
[0058] Through the ranging process, the target ONU successfully obtains the ranging value corresponding to the backup OLT, and then the target ONU will adjust its internal timestamp or data sending timing according to this ranging value to ensure that communication with the backup OLT can proceed normally. After that, the target ONU will switch from the active OLT to the backup OLT to complete the switching process.
[0059] In one example, after the target ONU obtains the ranging value corresponding to the backup OLT, it can also store the ranging value in the first storage area. Then, when switching from the active OLT to the backup OLT next time, it can be directly based on the ranging value stored in the first storage area without performing the ranging process, thereby improving the switching efficiency and improving the stability of the PON network.
[0060] In an exemplary embodiment, the target ONU includes a first storage area and a second storage area, the second storage area is used to store the ranging value corresponding to the active OLT, and the first storage area is used to store the ranging value corresponding to the standby OLT, then the method may further include:
[0061] In response to the simulation operation for the complete failure of the active OLT, the target ONU starts a ranging process, obtains a ranging value corresponding to the standby OLT, and stores the ranging value corresponding to the standby OLT in the first storage area.
[0062] In an embodiment of the present application, two independent storage areas can be pre-divided inside the target ONU, namely a first storage area and a second storage area, wherein the first storage area is used to store the ranging value corresponding to the backup OLT, and the second storage area is used to store the ranging value corresponding to the active OLT.
[0063] Before the enterprise PON network is built and officially put into use, the ranging process can be pre-executed to obtain the ranging value corresponding to the standby OLT and store it in the first storage area. Exemplarily, the simulation operation for the complete failure of the main OLT is an operation for simulating the scenario of the complete failure of the main OLT. Under this simulation operation, the main OLT cannot work normally (for example, power off the main OLT, etc.), and the target ONU needs to detect this failure and respond accordingly.
[0064] When the target ONU detects a failure in the active OLT, it will actively start the ranging process. The ranging process is a process in which the ONU and the OLT interact through specific protocols and signals to measure the fiber transmission delay between the ONU and the OLT, thereby calculating the ranging value. That is, the target ONU needs to perform ranging with the standby OLT to obtain the ranging value corresponding to the standby OLT. Through the ranging process, the target ONU successfully obtains the ranging value corresponding to the standby OLT, and the target ONU stores this ranging value in the first storage area.
[0065] In this way, after the enterprise PON network is officially put into use, when the main OLT fails again, the ranging value of the backup OLT can be quickly obtained directly from the first storage area without restarting the ranging process. And when switching from the backup OLT to the main OLT, it can also be directly based on the ranging value corresponding to the main OLT stored in the second storage area, and there is no need to restart the ranging process. This can improve the speed of fault switching and ensure the reliability of the PON network and the continuity of services.
[0066] In an exemplary embodiment, the above method may further include:
[0067] After an interval of preset duration and when it is determined that the simulation conditions are met, in response to the update operation of the ranging value of the standby OLT, the target ONU obtains the ranging value corresponding to the standby OLT at the current moment, and uses the ranging value corresponding to the current moment to overwrite the ranging value corresponding to the standby OLT in the first storage area.
[0068] In the embodiment of the present application, since the internal network of the enterprise basically does not move after the network is built, the re-"distance measurement" value between a certain ONU and the main and standby OLTs is basically unchanged, but there will also be small probability events such as construction and collision of optical fibers. In order to ensure that the distance measurement values of the main and standby OLTs saved by each ONU are accurate, every once in a while (for example: the interval period is about one month), when it is determined that the simulation conditions are met (for example: non-working hours or in a scenario with low network demand), the power supply of the main OLT can be turned off, and the "distance measurement" function can be enabled at the standby OLT end, so that each ONU switches to the standby OLT, and the "distance measurement value" of each ONU switching to the standby OLT is refreshed, that is, the distance measurement value corresponding to the current moment is obtained through the distance measurement process, and the distance measurement value is used to overwrite the original "distance measurement value" of the standby OLT stored in the first storage area.
[0069] In an exemplary embodiment, Figure 1 As shown, an industrial PON network protection switching system is provided, including a target ONU 102, a main OLT 104 associated with the target ONU 102, and a standby OLT 106 associated with the target ONU 102, wherein:
[0070] The target ONU 102 is used to obtain the ranging value corresponding to the backup OLT 106 associated with the target ONU 102 from the first storage area when the associated active OLT 104 fails, and when the ranging value corresponding to the backup OLT 106 is obtained, switch from the active OLT 104 to the backup OLT 106 based on the ranging value.
[0071] It should be noted that the operations performed by the target ONU 102 in the embodiment of the present application can refer to the relevant description of the aforementioned embodiment, and will not be repeated here in the embodiment of the present application.
[0072] In an exemplary embodiment, the system further includes:
[0073] The PON network management and control platform 108 is used to collect and change trends of various performance indicators of the PON device, analyze the faulty PON device, determine the ONU associated with the faulty PON device, and send warning information based on the ONU associated with the faulty PON device.
[0074] In the embodiment of the present application, the PON network management and control platform 108 is a system platform specifically used to manage the PON network, that is, it is used to monitor, manage and troubleshoot the equipment in the PON network (including OLT, PON service board, PON service port and other equipment, hereinafter referred to as PON equipment in the embodiment of the present application). The PON network management and control platform 108 will collect various performance indicators of the PON equipment, such as: optical power (received and transmitted optical signal strength), bandwidth utilization, packet loss rate, delay, error rate, equipment status (such as online / offline) and other performance indicators, which reflect the operating status and health of the PON equipment. The PON network management and control platform 108 can analyze the changing trends of these performance indicators, such as: whether the optical power gradually decreases, whether the bandwidth utilization continues to increase, whether the error rate suddenly increases, etc.
[0075] Then, based on the various performance indicators and change trends of PON devices, it is possible to analyze which PON devices may have failed. The basis for judging the failure may include but is not limited to: performance indicators exceeding the preset threshold (for example, the optical power is lower than a certain value), abnormal performance indicator change trend (for example, the optical power continues to decrease), abnormal device status (for example, the device is offline), etc.
[0076] In a PON network, an OLT can be associated with multiple ONUs, so a faulty OLT will affect all ONUs associated with it. After the PON network management and control platform 108 identifies a faulty PON device, it can determine which ONUs are associated with the faulty PON device based on the long PON device. Exemplarily, the platform determines which ONUs are affected by the faulty PON device based on the network topology or configuration information.
[0077] For example: when the faulty PON device is an OLT device, multiple ONUs associated with the OLT can be determined; or, when the faulty PON device is a PON service board, the ONUs connected to each PON service port of the PON service board can be determined to be multiple associated ONUs; or, when the faulty PON device is a PON service port, the ONUs connected to the PON service port can be determined to be multiple associated ONUs.
[0078] After determining the ONUs associated with the faulty PON device, the platform will send warning information to the PON device network management based on these ONUs, so as to notify the ONU users or administrators through the warning information that there may be problems with the network, and then remind the users to check the network connection or device status, and provide support for subsequent troubleshooting and repair.
[0079] This mechanism can quickly discover faults in the PON network through real-time monitoring and analysis, and promptly notify relevant users or administrators, thereby improving network reliability and fault handling efficiency.
[0080] In an exemplary embodiment, after receiving the warning information, the PON equipment network manager can quickly change the OLT machine, or the PON service board or PON service port from "primary" to "spare" according to the pre-designed corresponding segmented and classified "fault" agile disposal plan, and then replace the "faulty" equipment or link with pre-configured spare parts.
[0081] For the repaired "faulty" device or optical link, after a period of stable operation, for example, one month later, switch it again according to the above process to check whether the "faulty" device or optical link is fully restored. If everything returns to normal, change the device or optical link back to "primary".
[0082] By adopting the industrial PON network protection switching method system provided in the embodiment of the present application, during the industrial PON network protection switching process, the target ONU can directly perform OLT switching based on the pre-stored ranging value of the standby OLT, skipping the ranging process of the target ONU, which can greatly reduce the switching time, improve the switching efficiency, and thus improve the stability of the PON network.
[0083] In order to enable those skilled in the art to better understand the embodiments of the present application, the embodiments of the present application are described below through specific examples.
[0084] In this example, each ONU is connected to the main OLT and the standby OLT through a 2:N optical splitter. In the PON network management platform, a "PON protection management and control" function module is set, which is integrated with the PON equipment network management in the same software platform. In the "PON protection management and control" function module, it is pre-set to enable "prioritization of the distance measurement value between the standby OLT" for each downstream ONU, that is, when the OLT board or port connected to the ONU fails, the distance measurement value record between the ONU and the standby OLT is preferentially retrieved. If there is no distance measurement value storage record between the standby OLT, "distance measurement" is performed.
[0085] Before the enterprise PON network is built and officially put into use, after artificially simulating the failure of the entire OLT, the ONU obtains the "distance value" between the ONU and the backup OLT. At this time, unlike the existing standard process, the original "distance value" with the main OLT is not overwritten, but the original "distance value" with the main OLT is retained, and the "distance value" between the ONU and the backup OLT is saved in another storage unit of the ONU, and the "distance value" is used to communicate with the backup OLT.
[0086] Reference Figure 3 As shown in the figure, the PON network management and control platform collects various performance indicators and change trends of PON devices, analyzes the correlation between different devices, and immediately associates the affected ONUs once a fault is found in the OLT, PON board or PON port, and the affected ONUs immediately activate the preset protection switching process.
[0087] When the affected ONU enters the "ranging" process, the "ranging value" stored locally with the standby OLT is immediately called. The affected ONU completes quick ranging based on the locally stored ranging value and quickly switches the service to the standby OLT.
[0088] According to the pre-designed corresponding segmented and classified "fault" agile disposal plan, the OLT machine, or PON board or PON port is quickly changed from "primary" to "standby", and then the "faulty" equipment or link is replaced with the pre-configured spare parts. For the repaired original "faulty" equipment or optical link, after a period of stable operation, such as one month, it is replaced again according to the above process to check whether the "faulty" equipment or optical link is fully restored. If everything returns to normal, the equipment or optical link is changed back to "primary".
[0089] Using the industrial PON network protection switching method provided in the embodiment of the present application, each ONU is connected to two different active and standby OLTs. For the convenience of network management, the PON boards and ports corresponding to the two different active and standby OLTs connected to the same ONU are exactly the same. For example, if an ONU is connected to the 8th PON port in the 3rd slot of the active OLT (OLT-A), then the 8th PON port in the 3rd slot of the standby OLT (OLT-B) is also connected to the 8th PON port in the 3rd slot of the standby OLT.
[0090] After the enterprise completes the construction of the industrial PON network of TYPE-B networking mode, the service intercommunication between each ONU and the main OLT is adjusted. This process includes the registration, authentication, and ranging of the ONU equipment; at this time, each ONU will record and retain the ranging value of the main OLT in the relevant storage medium. According to the current relevant standards, when the OLT fails, each ONU finds that the original main optical link is interrupted and reselects a new optical link. At this time, each ONU must re-"range" with the backup OLT to complete the service intercommunication. At this time, the re-"ranging" value between each ONU and the backup OLT will replace the "ranging" value of the original main OLT. In the embodiment of the present application, before the enterprise PON network is built and officially put into use, after artificially simulating the failure of the entire OLT, the ONU obtains the "distance measurement value" between the ONU and the backup OLT. At this time, unlike the existing standard process, the original "distance measurement value" with the main OLT is not overwritten, but the original "distance measurement value" with the main OLT is retained, and at the same time, the "distance measurement value" between the ONU and the backup OLT is saved in another storage unit of the ONU, and the "distance measurement value" is used to communicate with the backup OLT. That is, in the storage memory of the OLT and the ONU, two relatively independent storage units are set in each ONU in the embodiment of the present application, allowing each ONU to retain the distance measurement value to the main and backup OLTs respectively, instead of covering the original "distance measurement" value as required by the current standard.
[0091] Since the internal network of an enterprise is basically immobile after the network is built, the re-"distance measurement" value between a certain ONU and the main and backup OLTs is basically unchanged. After completing the above-mentioned artificial active simulation of the OLT whole machine failure, each ONU saves the "distance measurement value" of the main and backup OLTs in two relatively independent storage units. Although the internal network of an enterprise rarely changes after it is built, there will be small probability events such as construction and collision of optical fibers; in order to ensure that the "distance measurement value" of the main and backup OLTs saved by each ONU is accurate, every once in a while (the recommended interval is about one month) and during non-working hours, turn off the power supply of the main OLT, enable the "distance measurement" function on the OLT side, manually switch each ONU to the backup OLT, refresh the "distance measurement value" of each ONU switched to the backup OLT, and overwrite the original "distance measurement value" with the backup OLT.
[0092] In the relevant standards, when the OLT fails, the affected ONUs immediately start the preset protection switching process. Since each ONU must re-measure the distance with the backup ONU in the switching process according to the existing standard system, it is affected by the competition for the upstream bandwidth time slice and the processing capacity of the OLT. The time required for all ONUs connected to the entire OLT to be switched is uncontrollable. The larger the network scale, the longer the switching time. In some scenarios, the switching time takes several minutes. The industrial PON network protection switching method provided by the embodiment of the present application adopts the "PON protection management and control" function module to pre-set each downstream ONU to enable "prioritized retrieval of the distance measurement value between the backup OLT", that is, when the OLT board or port connected to the ONU fails, the distance measurement value record between the ONU and the backup OLT is preferentially retrieved. If there is no distance measurement value storage record between the backup OLT, "distance measurement" is performed again. That is, when a real OLT failure occurs, on the PON management and control platform, the "distance measurement" step when the ONU is turned off and put back online is skipped directly, and the original "distance measurement value" with the backup OLT is directly retrieved, thus saving the "distance measurement" process time and greatly reducing the protection switching time of the entire OLT. The protection switching time is reduced from minutes to less than 50 milliseconds.
[0093] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0094] Based on the same inventive concept, the embodiment of the present application also provides an industrial PON network protection switching device for implementing the industrial PON network protection switching method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more industrial PON network protection switching device embodiments provided below can refer to the limitations of the industrial PON network protection switching method above, and will not be repeated here.
[0095] In an exemplary embodiment, Figure 4 As shown, an industrial PON network protection switching device is provided, including: an acquisition module 402 and a switching module 404, wherein:
[0096] The acquisition module 402 is used to acquire, from the first storage area, a ranging value corresponding to the standby OLT associated with the target ONU when the active OLT associated with the target ONU fails;
[0097] The switching module 404 is configured to, when a ranging value corresponding to the standby OLT is acquired, switch the target ONU from the active OLT to the standby OLT based on the ranging value.
[0098] The above industrial PON network protection switching device, when the main OLT associated with the target ONU fails, obtains the ranging value corresponding to the backup OLT associated with the target ONU from the first storage area, and when the ranging value corresponding to the backup OLT is obtained, the target ONU switches from the main OLT to the backup OLT based on the ranging value. Using the industrial PON network protection switching device provided by the embodiment of the present application, during the industrial PON network protection switching process, the target ONU can directly perform OLT switching based on the pre-stored ranging value of the backup OLT, skipping the ranging process of the target ONU, which can greatly reduce the switching time, improve the switching efficiency, and thus improve the stability of the PON network.
[0099] In one embodiment, the device further comprises:
[0100] The ranging module is used for, when the ranging value corresponding to the standby OLT is not obtained, the target ONU starts a ranging process to obtain the ranging value corresponding to the standby OLT, and switches from the active OLT to the standby OLT based on the ranging value.
[0101] In one of the embodiments, the target ONU includes the first storage area and the second storage area, the second storage area is used to store the ranging value corresponding to the active OLT, and the first storage area is used to store the ranging value corresponding to the standby OLT, and the device further includes:
[0102] The storage module is used for, in response to the simulation operation for the complete failure of the active OLT, the target ONU starts a ranging process, obtains the ranging value corresponding to the standby OLT, and stores the ranging value corresponding to the standby OLT in the first storage area.
[0103] In one embodiment, the device further comprises:
[0104] The updating module is used for, after a preset time interval and when it is determined that the simulation condition is met, in response to the updating operation of the ranging value of the standby OLT, the target ONU obtains the ranging value corresponding to the standby OLT at the current moment, and uses the ranging value corresponding to the current moment to overwrite the ranging value corresponding to the standby OLT in the first storage area.
[0105] Each module in the above industrial PON network protection switching device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0106] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, an industrial PON network protection switching method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0107] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0108] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0109] When the main OLT associated with the target ONU fails, obtaining the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area;
[0110] In case that the ranging value corresponding to the standby OLT is acquired, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
[0111] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0112] In the case where the ranging value corresponding to the standby OLT is not obtained, the target ONU starts a ranging process to obtain the ranging value corresponding to the standby OLT, and switches from the active OLT to the standby OLT based on the ranging value.
[0113] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0114] In response to the simulation operation for the complete failure of the active OLT, the target ONU starts a ranging process, obtains a ranging value corresponding to the standby OLT, and stores the ranging value corresponding to the standby OLT in the first storage area.
[0115] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0116] After an interval of a preset duration and when it is determined that the simulation conditions are met, in response to an update operation on the ranging value of the standby OLT, the target ONU obtains the ranging value corresponding to the standby OLT at the current moment, and uses the ranging value corresponding to the current moment to overwrite the ranging value corresponding to the standby OLT in the first storage area.
[0117] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0118] When the main OLT associated with the target ONU fails, obtaining the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area;
[0119] In case that the ranging value corresponding to the standby OLT is acquired, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
[0120] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0121] In the case where the ranging value corresponding to the standby OLT is not obtained, the target ONU starts a ranging process to obtain the ranging value corresponding to the standby OLT, and switches from the active OLT to the standby OLT based on the ranging value.
[0122] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0123] In response to the simulation operation for the complete failure of the active OLT, the target ONU starts a ranging process, obtains a ranging value corresponding to the standby OLT, and stores the ranging value corresponding to the standby OLT in the first storage area.
[0124] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0125] After an interval of a preset duration and when it is determined that the simulation conditions are met, in response to an update operation on the ranging value of the standby OLT, the target ONU obtains the ranging value corresponding to the standby OLT at the current moment, and uses the ranging value corresponding to the current moment to overwrite the ranging value corresponding to the standby OLT in the first storage area.
[0126] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0127] When the main OLT associated with the target ONU fails, obtaining the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area;
[0128] In case that the ranging value corresponding to the standby OLT is acquired, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
[0129] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0130] In the case where the ranging value corresponding to the standby OLT is not obtained, the target ONU starts a ranging process to obtain the ranging value corresponding to the standby OLT, and switches from the active OLT to the standby OLT based on the ranging value.
[0131] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0132] In response to the simulation operation for the complete failure of the active OLT, the target ONU starts a ranging process, obtains a ranging value corresponding to the standby OLT, and stores the ranging value corresponding to the standby OLT in the first storage area.
[0133] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0134] After an interval of a preset duration and when it is determined that the simulation conditions are met, in response to an update operation on the ranging value of the standby OLT, the target ONU obtains the ranging value corresponding to the standby OLT at the current moment, and uses the ranging value corresponding to the current moment to overwrite the ranging value corresponding to the standby OLT in the first storage area.
[0135] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0136] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0138] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An industrial PON network protection switching method, characterized in that: The method comprises: When the main OLT associated with the target ONU fails, obtaining the ranging value corresponding to the standby OLT associated with the target ONU from the first storage area; In case that the ranging value corresponding to the standby OLT is acquired, the target ONU is switched from the active OLT to the standby OLT based on the ranging value.
2. The method according to claim 1, characterized in that The method further comprises: In the case where the ranging value corresponding to the standby OLT is not obtained, the target ONU starts a ranging process to obtain the ranging value corresponding to the standby OLT, and switches from the active OLT to the standby OLT based on the ranging value.
3. The method according to claim 1 or 2, characterized in that: The target ONU includes the first storage area and the second storage area, the second storage area is used to store the ranging value corresponding to the active OLT, and the first storage area is used to store the ranging value corresponding to the standby OLT, and the method further includes: In response to the simulation operation for the complete failure of the active OLT, the target ONU starts a ranging process, obtains a ranging value corresponding to the standby OLT, and stores the ranging value corresponding to the standby OLT in the first storage area.
4. The method according to claim 3, characterized in that The method further comprises: After an interval of a preset duration and when it is determined that the simulation conditions are met, in response to an update operation on the ranging value of the standby OLT, the target ONU obtains the ranging value corresponding to the standby OLT at the current moment, and uses the ranging value corresponding to the current moment to overwrite the ranging value corresponding to the standby OLT in the first storage area.
5. An industrial PON network protection switching system, characterized in that: It includes a target ONU, a main OLT associated with the target ONU, and a standby OLT associated with the target ONU, wherein: The target ONU is used to obtain the ranging value corresponding to the backup OLT associated with the target ONU from the first storage area when the associated active OLT fails, and when the ranging value corresponding to the backup OLT is obtained, switch from the active OLT to the backup OLT based on the ranging value.
6. The system according to claim 5, characterized in that The system further comprises: The PON network management and control platform is used to collect and change trends of various performance indicators of PON devices, analyze the faulty PON devices, determine the ONU associated with the faulty PON devices, and send warning information based on the ONU associated with the faulty PON devices.
7. An industrial PON network protection switching device, characterized in that: The device comprises: An acquisition module, configured to acquire, from the first storage area, a ranging value corresponding to a standby OLT associated with the target ONU when a primary OLT associated with the target ONU fails; The switching module is used for, when a ranging value corresponding to the standby OLT is acquired, switching the target ONU from the active OLT to the standby OLT based on the ranging value.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.