PON protection switching method, OLT device and ONU device
By introducing the assembly and broadcasting steps of switchover notification messages on both the OLT and ONU sides, the problem of insufficient switchover stability in Type C protection is solved, achieving a higher switchover success rate and network reliability.
Patent Information
- Application Number
- CN202510547714.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-08-01
AI Technical Summary
Existing Type C protection solutions suffer from insufficient stability during ONU switchover, often resulting in ONU switchover failure or device registration loss.
The assembly and broadcasting steps of switchover notification messages are introduced on both the OLT and ONU sides. The OLT side triggers the switchover process based on optical path detection, and the ONU side triggers the switchover process based on the received switchover notification message, thereby reducing timing deviations caused by different optical path detection mechanisms.
It improves the switching stability of Type C protection, avoids ONU switching failures or device registration failures, and enhances network reliability.
Smart Images

Figure CN120416699A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of optical communication technologies, and particularly relates to a PON protection switching method, an OLT device, and an ONU device. Background Art
[0002] With the development of AI, cloud computing, and industrial Internet, the network's demand for large bandwidth, low latency, and high reliability has surged. Type C protection provides key support for various scenarios through a fast switching mechanism and deterministic low latency technology.
[0003] Type C protection is designed with dual PON (Passive Optical Network) ports on the OLT (Optical Line Terminal) and ONU (Optical Network Unit), combined with the dual-path redundancy of the backbone fiber and branch fiber, and can handle multiple faults. For the ONU, when the primary link fails, it can automatically switch to the standby link to ensure that the services of the attached devices are not interrupted. Therefore, Type C protection is particularly suitable for scenarios with extremely high requirements for network stability, such as large industrial parks, enterprise dedicated lines, data centers, and so on. However, in the process of implementing primary / standby switching in the existing solutions, the ONU switching often fails or the ONU device loses registration, and the switching stability is insufficient. Summary of the Invention
[0004] This application provides a PON protection switching method, an OLT device, and an ONU device, which can solve the technical problem of insufficient switching stability of Type C protection in the existing technology.
[0005] In a first aspect, an embodiment of this application provides a PON protection switching method, which is applied to the OLT side. The PON protection switching method includes:
[0006] After detecting the loss of any ONU signal on any link, use the corresponding link as the target link and the corresponding ONU as the target ONU, and assemble a switching notification message, where the switching notification message contains the ID of the target ONU;
[0007] Broadcast the switching notification message on the target link, where the trigger condition for the ONU-side switching process includes receiving a switching notification message containing its own ONU ID from the primary link;
[0008] Perform registration interaction with the target ONU through the other link to achieve primary / standby switching.
[0009] Further, in one embodiment, the step of assembling the switching notification message includes:
[0010] Set the ONU ID in the PLOAM message to the ID of the target ONU, and set the MESSAGE ID and VENDOR ID to the information negotiated with the ONU side to obtain a switching notification message.
[0011] Further, in one embodiment, the step of broadcasting the switching notification message on the target link includes:
[0012] Broadcast multiple identical switching notification messages continuously on the target link, where the ONU responds to at most one switching notification message containing its own ONU ID within a certain time period.
[0013] In a second aspect, an embodiment of the present application further provides a PON protection switching method, which is applied to the ONU side. The PON protection switching method includes: [[ID=IO]]
[0014] Detect whether the message received from the primary link is a target switching message, where the target switching message is a switching notification message containing its own ONU ID. The triggering condition for the OLT side switching process includes detecting the loss of any ONU signal from any link. The OLT side switching process includes assembling a switching notification message and broadcasting the switching notification message on the corresponding link. The switching notification message contains the corresponding ONU ID;
[0015] After detecting the target switching message, turn off the light emission of the primary PON port, turn on the light emission of the standby PON port, and switch the ONU state machine from the running state to the POP UP state;
[0016] Perform registration interaction with the OLT through the standby link to achieve primary / standby switching.
[0017] Further, in one embodiment, the step of detecting whether the message received from the primary link is a target switching message includes:
[0018] After receiving a PLOAM message from the primary link, extract the ONU ID, MESSAGE ID, and VENDOR ID in the PLOAM message;
[0019] If the ONU ID is its own ONU ID, and the MESSAGE ID and VENDOR ID are the information negotiated with the OLT side, it is determined that the target switching message is detected. <U
[0020] Further, in one embodiment, the step of turning off the light emission of the primary PON port, turning on the light emission of the standby PON port, and switching the ONU state machine from the running state to the POP UP state after detecting the target switching message includes:
[0021] When a target switching message is detected, if the time difference between the current time and the latest response time is greater than a first preset duration, or there is no latest response time, then determine to respond to the corresponding target switching message, record the current time as the latest response time; otherwise, discard the corresponding target switching message. Among them, the OLT-side switching process includes continuously broadcasting multiple identical switching notification messages on the target link.
[0022] After determining to respond to the target switching message, turn off the light emission of the main PON port, turn on the light emission of the standby PON port, and switch the ONU state machine from the running state to the POP UP state.
[0023] Further, in one embodiment, the PON protection switching method further includes:
[0024] When a target switching message is detected, record the current time as the latest response time;
[0025] When a target offline message is detected, if the time difference between the current time and the latest response time is greater than a second preset duration, or the latest response time is not obtained, then determine to respond to the corresponding target offline message; otherwise, discard the corresponding target offline message. Among them, the target offline message is an offline message from the primary link and containing its own ONU ID.
[0026] Further, in one embodiment, the PON protection switching method further includes:
[0027] When a target switching message is detected, record the current time as the latest response time, and set the preset flag bit to a first value;
[0028] When a target POP UP message is detected, if the preset flag bit is the first value, then set the preset flag bit to a second value. Among them, the target POP UP message is a POP UP message from the standby link and containing its own ONU ID;
[0029] When a target offline message is detected, if the preset flag bit is the first value and the time difference between the current time and the latest response time is greater than the second preset duration, then determine to respond to the corresponding target offline message, and set the preset flag bit to the second value. Among them, the target offline message is an offline message from the primary link and containing its own ONU ID;
[0030] When a target offline message is detected, if the preset flag bit is the first value and the time difference between the current time and the latest response time is less than or equal to the second preset duration, then discard the corresponding target offline message;
[0031] When a target offline message is detected, if the preset flag bit is the second value, then determine to respond to the corresponding target offline message.
[0032] Further, in one embodiment, the PON protection switching method further includes:
[0033] When it is detected that the registration interaction waiting time-out occurs, if the preset flag bit is the first value, the preset flag bit is set to the second value.
[0034] In a third aspect, an embodiment of the present application further provides an OLT device, which realizes the main-backup switching through the above-mentioned PON protection switching method applied to the OLT side.
[0035] In a fourth aspect, an embodiment of the present application further provides an ONU device, which realizes the main-backup switching through the above-mentioned PON protection switching method applied to the ONU side.
[0036] In the present application, the OLT side triggers the switching process based on the optical path detection situation, and adds the steps of assembling and broadcasting the switching notification message in the switching process. The ONU side triggers the switching process based on the reception situation of the switching notification message. Through the present application, the OLT side and the ONU side no longer solely rely on their respective optical path detection mechanisms to independently trigger the corresponding switching processes, reducing the timing deviation caused by different optical path detection mechanisms, avoiding the situation of ONU switching failure or ONU device deregistration, thereby improving the switching stability of Type C protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the network structure for the Type C dual-homing protection scenario;
[0038] Figure 2 It is a schematic diagram of the switching process for the Type C dual-homing protection scenario in the prior art;
[0039] Figure 3 It is a schematic diagram of the process of the PON protection switching method applied to the OLT side in an embodiment of the present application;
[0040] Figure 4 It is a schematic diagram of the process of the PON protection switching method applied to the ONU side in an embodiment of the present application;
[0041] Figure 5 It is a schematic diagram of the switching process for the Type C dual-homing protection scenario in an embodiment of the present application;
[0042] Figure 6 It is a schematic diagram of the process of the ONU processing the offline message in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0043] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only 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 this application.
[0044] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0045] Type C protection in optical communication networks is a protection method used in GPON networks to improve link reliability. It is divided into Type C single-homing protection and Type C dual-homing protection.
[0046] In Type C single-homing protection, the ONU is connected to different optical splitters via dual uplinks. The splitters are then connected to different PON ports on the same OLT. These PON ports can be on the same line card or different line cards. Because the two optical cables follow the same route, it is easy for both trunks to be disconnected.
[0047] In Type C dual-homing protection, ONUs are connected to different optical splitters via dual uplinks. The splitters are then connected to different optical line terminals (OLTs) deployed in different equipment rooms. The two trunk optical cables follow different routes. This effectively prevents dual-link outages caused by co-routing issues, providing higher reliability. However, this approach complicates networking, costs, and management.
[0048] Figure 1 The following diagram shows the network structure of the Type C dual-homing protection scenario. Figure 2 A schematic diagram of the switching process of a Type C dual-homing protection scenario in the prior art is shown.
[0049] Reference Figure 1 and Figure 2 In a Type C dual-homing protection scenario, taking a single ONU as an example, the switching process in the prior art includes the following steps:
[0050] A1: The master OLT detects ONU signal loss, meeting the triggering conditions for the OLT-side switching process;
[0051] A2. The active OLT notifies the standby OLT that the corresponding ONU needs to be switched. This step is only required in Type C dual-homing protection scenarios.
[0052] A3. The ONU main PON port senses optical signal loss, meeting the triggering conditions for the ONU-side switching process;
[0053] A4. The ONU turns off the light emission of the main PON port and turns on the light emission of the standby PON port, and switches the ONU state machine from the running state (also known as the O5 state) to the POP UP state (also known as the O6 state) to prepare for the registration interaction;
[0054] A5. The OLT and the ONU complete the registration interaction on their respective standby PON ports, including actions such as ranging, authorization, and configuration;
[0055] A6. The devices connected to the ONU resume services through the ONU-OLT standby PON port.
[0056] In the process of implementing the main-standby switchover in the above solution, the ONU switchover often fails or the ONU device drops registration, and the switchover stability is insufficient. The inventor of this application has studied and found that the reason for the above problem is that both the OLT side and the ONU side independently trigger the corresponding switchover process by means of their respective optical path detection mechanisms. However, due to different optical path detection mechanisms, one party may complete the switchover first while the other party is still in the state of waiting for switchover. For example, if the OLT side completes the switchover first and the ONU is still in the process of switchover, it will cause the OLT to wait for timeout and kick the ONU offline.
[0057] Therefore, this application provides a PON protection switchover method, an OLT device, and an ONU device, which can solve the technical problem of insufficient switchover stability in Type C protection existing in the prior art.
[0058] Figure 3 The flowchart shows the PON protection switchover method applied to the OLT side in an embodiment of this application. Figure 4 The flowchart shows the PON protection switchover method applied to the ONU side in an embodiment of this application.
[0059] Referring to Figure 3 , when applied to the OLT side, the PON protection switchover method includes:
[0060] S11. After detecting the loss of any ONU signal from any link, use the corresponding link as the target link and the corresponding ONU as the target ONU, and assemble a switchover notification message, where the switchover notification message contains the ID of the target ONU;
[0061] S12. Broadcast the switchover notification message on the target link, where the trigger condition for the ONU side switchover process includes receiving a switchover notification message containing its own ONU ID from the primary link;
[0062] S13. Perform registration interaction with the target ONU through another link to achieve the main-standby switchover.
[0063] Based on the same inventive concept, referring to Figure 4 , when applied to the ONU side, the PON protection switching method includes:
[0064] S21. Detect whether the message received from the primary link is a target switching message, where the target switching message is a switching notification message containing its own ONUID. The triggering condition for the switching process on the OLT side includes detecting the loss of any ONU signal from any link. The switching process on the OLT side includes assembling a switching notification message and broadcasting the switching notification message on the corresponding link. The switching notification message contains the corresponding ONUID;
[0065] S22. After detecting the target switching message, turn off the light emission of the primary PON port, turn on the light emission of the standby PON port, and switch the ONU state machine from the running state to the POP UP state;
[0066] S23. Perform registration interaction with the OLT through the standby link to achieve primary / standby switching.
[0067] In this embodiment, the OLT side triggers the switching process based on the optical path detection situation, adds the steps of assembling and broadcasting the switching notification message in the switching process, and the ONU side triggers the switching process based on the reception situation of the switching notification message. Through this embodiment, the OLT side and the ONU side no longer solely rely on their respective optical path detection mechanisms to independently trigger the corresponding switching processes, reducing the timing deviation caused by different optical path detection mechanisms, avoiding the situation of ONU switching failure or ONU device deregistration, and thus improving the switching stability of Type C protection.
[0068] Optionally, this embodiment is applicable to the scenarios of OLT single-homing board internal switching, OLT single-homing board inter-switching, and OLT dual-homing switching.
[0069] Figure 5 Shows the switching process schematic diagram of the Type C dual-homing protection scenario in an embodiment of the present application.
[0070] Referring to Figure 1 and Figure 5 , in the Type C dual-homing protection scenario, taking a single ONU as an example, the switching process of the present application includes the following steps:
[0071] B1. The primary OLT detects the loss of the ONU signal, the same as step A1;
[0072] B2. The primary OLT assembles and broadcasts a switching notification message, which is a new step in the present application;
[0073] B3. The primary OLT notifies the standby OLT that the corresponding ONU needs to perform switching, the same as step A2;
[0074] B4. The master PON port of the ONU detects the target switching message, meeting the trigger condition of the switching process on the ONU side. This step is an optimized step of this application.
[0075] B5. The ONU turns off the light emission of the master PON port and turns on the light emission of the standby PON port, and switches the ONU state machine from the running state to the POPUP state, the same as step A4.
[0076] B6. The OLT and the ONU complete the registration interaction on their respective standby PON ports, the same as step A5.
[0077] B7. The devices connected to the ONU resume services through the ONU-OLT standby PON port, the same as step A6.
[0078] It should be noted that the master and standby are concepts at the software level and are not bound to specific hardware serial numbers. For the ONU, the link that can transmit service data after registration and authentication is the primary link, and the corresponding PON port is the master PON port, and the other link is the standby link, and the corresponding PON port is the standby PON port. For the OLT, both links may be transmitting service data, and there is no distinction between the master and the standby.
[0079] In the actual usage scenario, assume that the two links of the OLT are called the first link and the second link at the physical level. In the initial state, the first link is selected as the primary link for all ONUs, and the second link is selected as the standby link for all ONUs. After detecting the loss of any ONU signal on the first link, the first link is taken as the target link, and the corresponding ONU is taken as the target ONU. The switching notification message is assembled and broadcast on the first link, and the registration interaction is carried out with the target ONU through the second link, so that the second link becomes the primary link of the target ONU, and the first link becomes the standby link of the target ONU. After maintaining the first link, the primary link of the target ONU is switched back to the first link.
[0080] Figure 2 and Figure 5 The shown embodiments take a single ONU as an example. For the sake of simplified description, the master and standby definitions of the ONU are uniformly used for explanation.
[0081] Further, in an embodiment, when applied to the OLT side, the step of assembling the switching notification message includes:
[0082] Set the ONU ID in the PLOAM message to the ID of the target ONU, and set the MESSAGE ID and VENDOR ID to the information negotiated with the ONU side to obtain the switching notification message.
[0083] Correspondingly, when applied to the ONU side, the step of detecting whether the message received from the primary link is the target switching message includes:
[0084] After receiving a PLOAM message from the active link, extract the ONU ID, MESSAGE ID, and VENDOR ID in the PLOAM message;
[0085] If the ONU ID is its own ONU ID and the MESSAGE ID and VENDOR ID are the information negotiated with the OLT side, it is determined that the target switch message is received from the active link.
[0086] In this embodiment, a custom PLOAM (Physical Layer Operations, Administration and Maintenance) message is used as the switch notification message. The sending, receiving, and detection operations of the PLOAM message are executed at the PON chip level, which is faster than the messages of other protocols, such as the OMCI (Optical Network Management and Control Interface) protocol. Among them, the MESSAGE ID is used to distinguish standard messages and custom messages, and the VENDOR ID is used to indicate that the specific content is a switch notification.
[0087] Optionally, the ONU first extracts the ONU ID in the PLOAM message. When the ONU ID is its own ONU ID, it then extracts the MESSAGE ID and VENDOR ID in the PLOAM message and detects whether it is the information negotiated with the OLT side, so as to reduce unnecessary detection operations and save system resources.
[0088] Further, in an embodiment, when applied to the OLT side, the step of broadcasting a switch notification message on the target link includes:
[0089] Broadcast multiple identical switch notification messages continuously on the target link, where the ONU responds to at most one switch notification message containing its own ONU ID within a certain time period.
[0090] Correspondingly, when applied to the ONU side, the step of turning off the light emission of the main PON port, turning on the light emission of the standby PON port, and switching the ONU state machine from the running state to the POP UP state after detecting the target switch message includes:
[0091] When detecting the target switch message, if the time difference between the current time and the latest response time is greater than the first preset time period, or there is no latest response time, it is determined to respond to the corresponding target switch message, and the current time is recorded as the latest response time; otherwise, the corresponding target switch message is discarded, where the OLT side switch process includes broadcasting multiple identical switch notification messages continuously on the target link;
[0092] After determining to respond to the target switching message, turn off the light emission of the main PON port, turn on the light emission of the standby PON port, and switch the ONU state machine from the running state to the POP UP state.
[0093] Specifically, the first preset duration is used to determine whether two adjacent target switching messages are redundant messages. If the time difference between the current time and the latest response time is greater than the first preset duration, it is considered that the current target switching message is independent of the previous target switching message and is not a redundant message, and the current target switching message is normally responded to, and the current time is recorded as the latest response time. If the time difference between the current time and the latest response time is less than or equal to the first preset duration, it is considered that the current target switching message and the previous target switching message are redundant messages. Since the previous target switching message has been responded to, the current target switching message is directly discarded.
[0094] In this embodiment, by continuously broadcasting multiple identical switching notification messages on the OLT side and restricting the response interval of different switching notification messages on the ONU side to be greater than the first preset duration, redundant protection is achieved, avoiding switching failures caused by the loss of a single switching notification message, thereby further improving the switching success rate.
[0095] It should be noted that the time when the ONU receives a message is different from the time when the ONU determines the message type after detecting this message, and the latter is later than the former. Moreover, the detection operation of the ONU for messages is linear. Even if the ONU receives multiple messages simultaneously, these messages will be detected sequentially.
[0096] Exemplarily, the ONU receives Message 1, Message 2, and Message 3 at time t1, detects Message 1 during t1 - t2, determines the type of Message 1 at time t2, detects Message 2 during t2 - t3, determines the type of Message 2 at time t3, detects Message 3 during t3 - t4, and determines the type of Message 3 at time t4, where t1 < t2 < t3 < t4.
[0097] In this embodiment and other subsequent embodiments, the "current time" corresponding to "when the target xx message is detected" refers to the time when the message type is determined after detection, rather than the time when the message is received.
[0098] The inventors of the present application further found through research that in the ONU side switching process, the ONU turns off the light emission of the main PON port, while the main PON port still remains in the light receiving state at this time. After the ONU turns off the light emission of the main PON port, if the OLT has not completed the switching preparation action, some OLT PON chips will consider that the ONU has gone offline and send a deactivation message to the ONU through the corresponding link. The ONU responds to this deactivation message and executes the offline process, resulting in the failure of the switching.
[0099] In view of the above situation, in order to adapt to different OLT PON chips and improve the reliability of switching, the present invention analyzes the entire PON registration process. According to the characteristics of each message processed linearly by the ONU PON, it is considered that when the ONU executes forced switching and the state machine switches from the running state to the POP UP state, the ONU is waiting for the OLT switching to complete and sends a POP UP message to enable the ONU to complete activation and go online on another PON port of the OLT. Therefore, the present invention believes that within a period of time in response to the target switching message, the ONU side can temporarily ignore the offline message sent by the OLT and only process the subsequent offline message after receiving the POP UP message, thereby improving the switching stability. At the same time, to avoid the OLT having an abnormality, resulting in the OLT not sending the POP UP message to the ONU all the time and the ONU continuously not processing the offline message, corresponding protection is also made on the ONU side to lift the restriction on not processing the offline message under specific conditions. The following is described in detail through different embodiments.
[0100] Further, in one embodiment, when applied to the ONU side, the PON protection switching method further includes:
[0101] When detecting the target switching message, record the current time as the latest response time;
[0102] When detecting the target offline message, if the time difference between the current time and the latest response time is greater than the second preset duration, or the latest response time is not obtained, then determine to respond to the corresponding target offline message, otherwise discard the corresponding target offline message, where the target offline message is an offline message from the active link and containing its own ONU ID.
[0103] Specifically, the second preset duration is used to determine whether the target offline message is an unexpected offline message caused by PON chip differences during the switching process. If the time difference between the current time and the latest response time is greater than the second preset duration, it is considered that the current target offline message is a normal offline message and the current target offline message is normally responded to. If the time difference between the current time and the latest response time is less than or equal to the second preset duration, it is considered that the current target offline message is an unexpected offline message. To ensure the success rate of switching, the current target offline message is directly discarded.
[0104] In this embodiment, the ONU directly discards the target offline message within the second preset duration after responding to the target switching message. If the target switching message is not received or the time interval since the last response to the target switching message is greater than the second preset duration, the ONU normally responds to the target offline message and executes the offline process, thereby further improving the switching success rate.
[0105] It should be noted that the ONU detecting whether the message received from the primary link is a target offline message, and the ONU executing the offline process after determining to respond to the target offline message belong to the existing working process of the ONU. What this embodiment optimizes is the conditions required to respond to the target offline message.
[0106] Furthermore, in one embodiment, when applied to the ONU side, the PON protection switching method further includes:
[0107] When detecting the target switching message, record the current time as the latest response time and set the preset flag bit to the first value;
[0108] When detecting the target POP UP message, if the preset flag bit is the first value, set the preset flag bit to the second value, where the target POP UP message is a POP UP message from the standby link and containing its own ONU ID;
[0109] When detecting the target offline message, if the preset flag bit is the first value and the time difference between the current time and the latest response time is greater than the second preset duration, determine to respond to the corresponding target offline message and set the preset flag bit to the second value, where the target offline message is an offline message from the primary link and containing its own ONU ID;
[0110] When detecting the target offline message, if the preset flag bit is the first value and the time difference between the current time and the latest response time is less than or equal to the second preset duration, discard the corresponding target offline message;
[0111] When detecting the target offline message, if the preset flag bit is the second value, determine to respond to the corresponding target offline message.
[0112] Specifically, the preset flag bit is used to determine the response strategy for the target offline message. If the preset flag bit is the first value, for the target offline message, it is necessary to determine whether to respond to the target offline message according to whether the time difference between the current time and the latest response time is greater than the second preset duration. If the preset flag bit is the second value, for the target offline message, directly respond.
[0113] In this embodiment, the timing for setting the preset flag bit from the second value to the first value includes detecting a target switching message, and the timing for setting the preset flag bit from the first value to the second value includes detecting a target POP UP message and responding to a target offline message.
[0114] In this embodiment, based on the previous embodiment, a preset flag bit is additionally set. When the preset flag bit is the first value, a second preset duration is used to limit the response to the target offline message. When the preset flag bit is the second value, the limitation of the second preset duration is cancelled.
[0115] It should be noted that the OLT sends a POP UP message to the ONU through the standby link, and the ONU detects whether the message received from the standby link is the target POP UP message, which belongs to the steps in the registration interaction process. In the registration interaction process, after the ONU detects the target POP UP message, it enters the ranging state (also known as the O4 state). After the OLT and the ONU complete ranging, the OLT and the ONU complete registration on the standby link of the ONU, the ONU's attached devices resume services, and the standby link and the primary link of the ONU complete the switchover. This embodiment triggers the flip determination operation of the preset flag bit by means of the time node when the ONU detects the target POP UP message, without changing the original registration interaction process.
[0116] Through this embodiment, when the latest response time remains unchanged, after detecting the target POP UP message, and when the time difference between the time of detecting the target offline message and the latest response time is greater than the second preset duration, the subsequent target offline messages are processed normally, which can reduce unnecessary time detection operations and save system resources.
[0117] Further, in one embodiment, when applied to the ONU side, the PON protection switching method further includes:
[0118] When detecting that the registration interaction waiting timeouts, if the preset flag bit is the first value, the preset flag bit is set to the second value.
[0119] It should be noted that the registration interaction waiting timeout is also called the TO2 timeout. It starts timing after the ONU state machine switches from the running state to the POP UP state. If the target POP UP message is not detected within a certain duration, it is determined that the registration interaction waiting timeouts, and related operations such as automatic offline are executed. This embodiment triggers the flip determination operation of the preset flag bit by means of the time node when the ONU detects the registration interaction waiting timeout, without changing the original timeout processing process.
[0120] In this embodiment, the timing for setting the preset flag bit from the first value to the second value further includes detecting the registration interaction waiting timeout.
[0121] In this embodiment, when the latest response time remains unchanged, after detecting that the registration interaction wait timeout has occurred, the offline message is processed normally, which can further reduce unnecessary time detection operations and save system resources.
[0122] In addition, the triggering of the flip determination operation of the preset flag bit in the above embodiment is all done with the help of specific time nodes in the existing detection logic of the ONU, that is, detecting the target offline message, detecting the target POP UP message, and detecting the registration interaction wait timeout are all specific time nodes that already exist in the existing detection logic of the ONU, which reduces the difficulty of improvement and facilitates the implementation of the solution.
[0123] Figure 6 A schematic diagram of the process of an ONU processing an offline message in an embodiment of the present application is shown.
[0124] Reference Figure 6 In one embodiment, the process of the ONU processing the offline message includes:
[0125] C1. Determine the response target switching message, record the current time as the latest response time, set the preset flag to the first value, and proceed to step C2;
[0126] C2. Determine whether the target offline message is detected. If so, proceed to step C3; if not, proceed to step C8;
[0127] C3. Determine whether the preset flag is the first value. If so, proceed to step C4; if not, proceed to step C6;
[0128] C4. Determine whether the time difference between the current time and the latest response time is greater than a second preset time length. If so, proceed to step C5; if not, proceed to step C7;
[0129] C5. Determine the target offline message corresponding to the response, set the preset flag bit to the second value, and proceed to step C2;
[0130] C6. Determine the target offline message corresponding to the response and proceed to step C2.
[0131] C7, discard the corresponding target offline message and go to step C2;
[0132] C8. Determine whether the target POP UP message is detected. If so, proceed to step C9; if not, proceed to step C11.
[0133] C9, determine whether the preset flag is the first value, if so, proceed to step C10, if not, proceed to step C2;
[0134] C10, setting the preset flag bit to a second value, and proceeding to step C2;
[0135] C11. Determine whether registration waiting timeout is detected. If so, proceed to step C9; if not, proceed to step C2.
[0136] Based on the same inventive concept, an embodiment of the present application provides an OLT device, which realizes primary / backup switching through the above-mentioned PON protection switching method applied to the OLT side.
[0137] Based on the same inventive concept, an embodiment of the present application provides an ONU device, which realizes primary / backup switching through the above-mentioned PON protection switching method applied to the ONU side.
[0138] It should be noted that the serial numbers of the embodiments of the present application above are only for description and do not represent the superiority or inferiority of the embodiments.
[0139] In the description of the embodiments of the present application, the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices. The descriptions such as "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit that "first", "second" and "third" are different types.
[0140] In the description of the embodiments of the present application, "exemplary", "for example" or "for instance" etc. are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary", "for example" or "for instance" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions; rather, the use of words such as "exemplary", "for example" or "for instance" is intended to present relevant concepts in a specific manner.
[0141] In the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may represent A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality of" means two or more than two.
[0142] In some of the processes described in the embodiments of the present application, multiple operations or steps appear in a specific order. However, it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or may be executed in parallel. The serial numbers of the operations are only used to distinguish different operations, and the serial numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0143] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, Flash) as described above and includes several instructions for causing a terminal device to execute the methods described in the various embodiments of the present application.
[0144] The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present application.
Claims
1. A PON protection switching method, characterized in that, Applied to the OLT side, the PON protection switching method includes: After detecting the loss of any ONU signal on any link, taking the corresponding link as the target link and the corresponding ONU as the target ONU, and assembling a switching notification message, where the switching notification message contains the ID of the target ONU; Broadcasting the switching notification message on the target link, where the triggering condition for the ONU-side switching process includes receiving a switching notification message containing its own ONU ID from the primary link; Performing registration interaction with the target ONU through another link to achieve primary / backup switching.
2. The PON protection switching method according to claim 1, characterized in that, The step of assembling the switching notification message includes: Setting the ONU ID in the PLOAM message to the ID of the target ONU, and setting the MESSAGE ID and VENDOR ID to the information negotiated with the ONU side to obtain the switching notification message.
3. The PON protection switching method according to claim 1, characterized in that, The step of broadcasting the switching notification message on the target link includes: Continuously broadcasting multiple identical switching notification messages on the target link, where the ONU responds to at most one switching notification message containing its own ONU ID within a certain time period.
4. A PON protection switching method, characterized in that, Applied to the ONU side, the PON protection switching method includes: Detecting whether the message received from the primary link is a target switching message, where the target switching message is a switching notification message containing its own ONU ID. The triggering condition for the OLT-side switching process includes detecting the loss of any ONU signal on any link. The OLT-side switching process includes assembling a switching notification message, broadcasting the switching notification message on the corresponding link, and the switching notification message contains the corresponding ONU ID; After detecting the target switching message, turning off the light emission of the primary PON port, turning on the light emission of the backup PON port, and switching the ONU state machine from the running state to the POP UP state; Performing registration interaction with the OLT through the backup link to achieve primary / backup switching.
5. The PON protection switching method according to claim 4, wherein The step of detecting whether the message received from the primary link is a target switching message includes: After receiving a PLOAM message from the primary link, extracting the ONU ID, MESSAGE ID, and VENDOR ID in the PLOAM message; If the ONU ID is its own ONU ID and the MESSAGE ID and VENDOR ID are the information negotiated with the OLT side, it is determined that the target switching message is detected.
6. The PON protection switching method according to claim 4, wherein The step of, after detecting the target switching message, turning off the light emission of the primary PON port, turning on the light emission of the backup PON port, and switching the ONU state machine from the running state to the POP UP state includes: When detecting the target switching message, if the time difference between the current time and the latest response time is greater than the first preset duration, or there is no latest response time, it is determined to respond to the corresponding target switching message, and the current time is recorded as the latest response time; otherwise, the corresponding target switching message is discarded, where the OLT-side switching process includes continuously broadcasting multiple identical switching notification messages on the target link; After determining to respond to the target switching message, turning off the light emission of the primary PON port, turning on the light emission of the backup PON port, and switching the ONU state machine from the running state to the POP UP state.
7. The PON protection switching method according to claim 4, wherein The PON protection switching method further includes: When a target switching message is detected, record the current time as the latest response time; When a target offline message is detected, if the time difference between the current time and the latest response time is greater than a second preset duration, or the latest response time is not obtained, then determine to respond to the corresponding target offline message, otherwise discard the corresponding target offline message, where the target offline message is an offline message from the active link and containing its own ONU ID.
8. The PON protection switching method according to claim 4, wherein The PON protection switching method further includes: When a target switching message is detected, record the current time as the latest response time, and set a preset flag bit to a first value; When a target POP UP message is detected, if the preset flag bit is the first value, then set the preset flag bit to a second value, where the target POP UP message is a POP UP message from the standby link and containing its own ONU ID; When a target offline message is detected, if the preset flag bit is the first value and the time difference between the current time and the latest response time is greater than the second preset duration, then determine to respond to the corresponding target offline message and set the preset flag bit to the second value, where the target offline message is an offline message from the active link and containing its own ONU ID; When a target offline message is detected, if the preset flag bit is the first value and the time difference between the current time and the latest response time is less than or equal to the second preset duration, then discard the corresponding target offline message; When a target offline message is detected, if the preset flag bit is the second value, then determine to respond to the corresponding target offline message.
9. The PON protection switching method according to claim 8, characterized in that, The PON protection switching method further includes: When a registration interaction timeout is detected, if the preset flag bit is the first value, then set the preset flag bit to the second value.
10. An OLT device, characterized in that, The active-standby switching is implemented by the PON protection switching method according to any one of claims 1 to 3.
11. An ONU device, characterized in that, The active-standby switching is implemented by the PON protection switching method according to any one of claims 4 to 9.