PON port switching method, electronic device, and storage medium
By calculating and sending the equalization delay EqD of the second PON port in the OLT, the problem of low switching efficiency in the existing PON system is solved, and fast PON port switching is achieved to meet the G.984.1 standard.
Patent Information
- Application Number
- PCT/CN2025/078096
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-03-27
- Filing Date
- 2025-02-19
- Publication Date
- 2025-10-02
AI Technical Summary
Existing PON systems struggle to complete port switching within 50ms to 150ms, failing to meet the 50ms requirement of the G.984.1 standard, resulting in low protection switching efficiency.
By setting the first PON port and the second PON port in the OLT, the first PON port is used to measure the distance of the optical network unit (ONU), and the equalization delay EqD of the second PON port is calculated and sent directly to the ONU when switching is required, reducing the ranging process and achieving fast switching.
It achieves the rapid completion of PON port switching without adding additional ranging processes, meets the performance requirements of the G.984.1 standard, and improves switching efficiency.
Smart Images

Figure CN2025078096_02102025_PF_FP_ABST
Abstract
Description
PON port switching method, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to a Chinese patent application filed with the Patent Office of China on March 27, 2024, with application number 202410360772.X and invention name “PON port switching method, electronic device and storage medium”. The entire contents of the Chinese patent application are incorporated herein by reference. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to a PON port switching method, electronic equipment, and storage medium. Background Art
[0004] Passive Optical Network (PON) is a point-to-multipoint passive optical access technology that uses broadcast for downlink data transmission and time division multiple access for uplink data transmission.
[0005] With the gradual evolution of application scenarios, PON has begun to introduce services with high reliability requirements, such as VIP customer dedicated lines and mobile backhaul. Therefore, PON protection switching has become particularly important.
[0006] PON protection switching refers to the switching between the primary and backup ports in a PON system. Type B is the mainstream PON protection switching solution. The G.984.1 standard specifies that Type B switching must be completed within 50ms. However, most commercially available PON systems take between 40ms and 150ms to complete, failing to meet the G.984.1 standard. Summary of the Invention
[0007] The purpose of the present application is to provide a PON port switching method, electronic device and storage medium, which can improve the switching speed of the PON port.
[0008] In a first aspect, a method for switching a passive optical network (PON) port is provided, which is applied to an optical line terminal (OLT). The OLT is provided with a first PON port and a second PON port that are used to switch between each other. The method includes: performing ranging on an optical network unit (ONU) based on the first PON port currently in use to obtain a ranging result corresponding to the first PON port; determining an equalization delay (EqD) of the second PON port based on the ranging result corresponding to the first PON port and a time difference between the first PON port and the second PON port receiving a return message from the ONU; and when the first PON port needs to switch to the second PON port, sending the determined EqD of the second PON port to the ONU, so that the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port.
[0009] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a processor; and a memory configured to store computer-executable instructions, wherein the computer-executable instructions, when executed, cause the processor to execute the method described in the first aspect.
[0010] According to a third aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store computer-executable instructions, and the computer-executable instructions implement the method described in the first aspect when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0012] FIG1 is a schematic diagram of the structure of a traditional gigabit passive optical network.
[0013] FIG2 is a schematic diagram of a conventional ONU registering and going online at a PON port.
[0014] FIG3 is a schematic diagram of a first flow chart of a switching method at a PON end according to an embodiment of the present application.
[0015] FIG4 is a schematic diagram of a second flow chart of the switching method at the PON end according to an embodiment of the present application.
[0016] FIG5 is a schematic structural diagram of a switching device at a PON end according to an embodiment of the present application.
[0017] FIG6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0018] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this specification.
[0019] Refer to Figure 1, which shows the structure of a traditional PON. It consists of an optical line terminal (OLT) on the central office side, an optical network unit (ONU) on the user side, and an optical distribution network (ODN). The ODN serves as the physical connection between the OLT and ONU, and its main component is the optical splitter.
[0020] In a PON system, data transmission in the downstream direction (OLT to ONU) uses broadcast. Each ONU receives all frames and then retrieves its own frame based on parameters such as the ONU ID, GPON encapsulation method, port ID, and allocation ID. Data transmission in the upstream direction (ONU to OLT) uses time division multiple access. Because each ONU needs to share the transmission medium, it should transmit upstream data within the time slot assigned to it by the OLT.
[0021] The type B protection switching scheme means that the OLT switches to the backup PON port for use after the main PON port becomes abnormal. For ease of understanding, the first PON port in Figure 1 is defined as the main port, and the second PON port is defined as the backup port. Under normal circumstances, the OLT enables the first PON port to transmit data with the ONU. Since the distance between each ONU and the first PON port is different, in order to prevent the uplink data sent by each ONU from reaching the first PON port of the OLT at the same time, the OLT needs to measure the distance of the ONU through the first PON port. The ranging result mainly includes the equalization delay (Equalization Delay, EqD) of the first PON port. Each ONU adjusts the clock for sending uplink data according to the equalization delay of the first PON port. Similarly, when the OLT switches to use the second PON port, it is also necessary to measure the distance of the ONU through the second PON port.
[0022] In the related art, an ONU is configured with the following seven states.
[0023] 1. O1 "Initial-state"
[0024] When the ONU is powered on, it enters this state, also known as the LOS / LOF state. In this initial state, the ONU has not yet received any downstream data streams and no parameters have been configured. Once the ONU receives downstream data streams, the LOS / LOF state is cleared and the ONU enters the O2 state.
[0025] 2. O2 "Standby-state"
[0026] The standby state is when the ONU is waiting to receive network parameters. In the standby state, the OLT sends the upstream overhead message Upstream_Overhead to the ONU. Upon receiving the Upstream_Overhead message, the ONU performs configuration based on the network parameters carried in the message, such as power mode and delay balancing. Once the ONU configuration is complete, it enters the O3 state.
[0027] 3. O3 "Serial Number State"
[0028] The Serial Number state is when the ONU is waiting for the OLT to assign a unique serial number. In this state, the OLT sends a serial number request (SN-Request) to the ONU, and the ONU responds with a Serial_Nmuber_ONU message. After receiving the Serial_Nmuber_ONU message, the OLT assigns a unique serial number (ONU_ID) to the ONU. Once the ONU receives the ONU_ID, it enters the O4 state.
[0029] O4 "Ranging-state"
[0030] The Ranging state is when the ONU is waiting for the OLT to send a Ranging message. In the Ranging state, the OLT sends a Ranging Request to the ONU through the current PON port. The ONU responds to the Ranging Request with a Serial_Nmuber_ONU message containing its ONU_ID. The OLT calculates the EqD of the current PON port based on the time the Serial_Nmuber_ONU message is received on the current PON port. This EqD is sent to the ONU via a Ranging_TIME message, allowing the ONU to set the compensation time for the current PON port.
[0031] 5. O5 "Operation-state"
[0032] The running state is when the ONU sends upstream data and PLOAM messages under the control of the OLT. In the running state, the OLT sends a password request (Password_Request) to the ONU. The ONU responds to the OLT's Password_Request with its own password (Password). After the password is verified, the ONU goes online normally on the current PON port.
[0033] O6-POPpup-state
[0034] When an ONU detects a loss of optical signal (LOS or LOF), it enters the POPpup state. In the POPpup state, the ONU stops sending upstream signals and only sends a POPpup message to the OLT to notify it of the LOS or LOF. Upon receiving the POPpup message from the ONU, the OLT immediately initiates a switchover process, switching the ONU to the backup PON port.
[0035] 7. O7 "Emergency-Stop-state"
[0036] When the ONU receives the Disable_Serial_Number message, it enters the emergency stop state and then switches to the O2 state.
[0037] Combining the seven states O1 to O7 described above, under the Type B protection scheme, the switching process from the first PON port to the second PON port includes the following: 1) Under normal circumstances, the ONU is registered with the first PON port, and the ONU state machine is in O5. On the OLT side, the first PON port is turned on, and the second PON port is turned off. 2) When a trunk optical path failure occurs, the ONU detects LOS / LOF, and the state machine switches from O5 to O6, stops sending upstream signals, and starts the T02 timer. 3) Before the T02 timer expires, the ONU remains in state O6, waiting for the POPpup message broadcast by the OLT. 4) The OLT senses LOS through the first PON port, turns off the first PON port, turns on the second PON port, and broadcasts the POPpup message downstream. 5) After the ONU receives the POPpup message, the state machine switches to O4. 6) The OLT sends a Ranging_Request message to each ONU. The ONU responds with a Serial_number_onu message. The OLT calculates the EqD for each ONU corresponding to the second PON port based on the time difference between the two messages. 7) The OLT returns a Ranging_Time message to each ONU to configure the EqD. 8) After the ONU receives the Ranging_Time message, the state machine switches from O4 to O5 and enters the Running state again, completing the online process for the second PON port to implement protection switching.
[0038] In addition, if the ONU does not receive the POPpup message in step 3), the ONU state machine enters O1 after waiting for T02 to time out and completes the offline process. The ONU needs to go through the complete registration process again from O1 to go online again.
[0039] As mentioned above, under the Type B protection scheme, the G.984.1 standard requires that PON port switching be completed within 50ms. If the first PON port needs to switch to the second PON port, the standard ONU registration and online process shown in Figure 2 must be followed. This primarily involves the OLT performing ONU ranging through the second PON port.
[0040] Limited by the standard process shown in FIG2 , the switching efficiency from the first PON port to the second PON port is low, typically taking 40 ms to 150 ms to complete, which fails to meet the requirements of the G.984.1 standard.
[0041] In response to the above problems, the present application aims to propose a PON port switching solution that can significantly improve the efficiency of switching from a first PON port to a second PON port.
[0042] One embodiment of the present application provides a PON port switching method, which is applied to an OLT. FIG3 is a flow chart of the switching method, which includes the following steps.
[0043] S102 : Perform ranging on the optical network unit (ONU) based on a currently used first PON port to obtain a ranging result corresponding to the first PON port.
[0044] In this embodiment, the OLT is provided with a first PON port that is used in a mutually switched manner. If the OLT currently uses the first PON port, it means that the second PON port is disabled.
[0045] It should be noted that when the OLT is in normal use of the first PON port, the ONU completes registration and online at the first PON port through the standard process shown in Figure 2. Therefore, the ranging result corresponding to the first PON port of this embodiment can be obtained normally according to the standard process shown in Figure 2, and will not be repeated here.
[0046] S104 : Determine an equalization delay EqD of the second PON port based on a ranging result corresponding to the first PON port and a time difference between when the first PON port and the second PON port receive a return message from the ONU.
[0047] In this embodiment, the loopback message is fed back to the first PON port and the second PON port by the ONU after receiving the ranging request message Ranging Request. Referring to the above description of the O4 state, the loopback message can be Serial_Nmuber_ONU carrying the ONU_ID.
[0048] In the standard process for an ONU to register and go online for the first PON port, the OLT broadcasts a Ranging Request to the ONU downstream through the first PON port, and the ONU feeds the Ranging Request back to the OLT through the optical splitter. At this point, the first PON port is open and the second PON port is closed, and the OLT only receives the return message Ranging Request through the first PON port. The OLT sends a Ranging Request downstream and measures the round trip delay (RTD) of the first PON port by calculating the time difference between the start time of the ranging request frame and the time it receives the Serial_Nmuber_ONU response. The equalization delay (EqD) of the first PON port can then be calculated using formula (1): EqD = Teqd – RTD. Teqd is the zero-distance equalization delay of the first PON port, i.e., the time difference between the OLT sending the downstream frame and the expected reception of the upstream frame.
[0049] Unlike the standard process, this embodiment turns on the light receiving function of the second PON port and turns off the light emitting function when measuring the distance of the ONU through the currently used first PON port. In this way, the OLT can also receive Serial_Nmuber_ONU through the second PON port and detect the time difference between the first PON port and the second PON port in receiving Serial_Nmuber_ONU.
[0050] It should be understood that there is a differential distance between the first PON port and the second PON port in the actual deployment on the trunk optical path. This embodiment can derive the EqD of the second PON port based on the difference between Teqd and RTD of the first PON port, and the time difference between the first PON port and the second PON port receiving the return message. For example: define T0 as the time when the first PON port receives the ONU return message, and T1 as the time when the second PON port receives the ONU return message. Because the first PON port and the second PON port are in the same OLT, the time and frequency between them can be considered to be synchronized. At this time, according to formula (2): EqD new =Teqd-RTD(n)-2×(T1-T0), calculate the EqD of the second PON port. new Used to distinguish EqD in formula (1).
[0051] S106 , when the first PON port needs to be switched to the second PON port, the determined EqD of the second PON port is sent to the ONU, so that the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port.
[0052] Returning to the switching process of the Type B protection scheme, when the first PON port is abnormal, the ONU switches to state O6, and the OLT enables the second PON port to send a downstream broadcast POPpup message to switch the ONU back to state O4. Since the EqD of the second PON port is known information, in state O4, the OLT directly sends a Ranging_Time message carrying the EqD of the second PON port to the ONU, allowing the ONU to set the compensation time for the second PON port and enter state O5, completing the online process for the second PON port and ultimately achieving protection switching. Correspondingly, the entire process of switching from the first PON port to the second PON port is shown in Figure 4. Compared with the standard process shown in Figure 2, the method of this embodiment saves a lot of information interaction processes and the process of ranging the ONU through the second PON port.
[0053] In summary, based on the method of the embodiment, when the OLT is normally using the first PON port, the time difference between the first and second PON ports receiving the ONU's return message can be measured in advance during the process of performing ranging on the optical network unit (ONU) through the first PON port. After obtaining the ranging result corresponding to the first PON port, the equalization delay (EqD) of the second PON port is derived based on the ranging result corresponding to the first PON port and the time difference between the first and second PON ports receiving the ONU's return message. When the first PON port needs to switch to the second PON port later, the OLT directly sends the derived EqD of the second PON port to the ONU, so that the ONU can quickly complete the switching from the first PON port to the second PON port without initiating ranging on the ONU through the second PON port, thereby meeting the performance requirements of the G.984.1 standard.
[0054] The method of this embodiment is described in detail below in conjunction with actual application scenarios.
[0055] In this application scenario, the first PON port in the OLT is the primary PON port, and the second PON port in the OLT is the backup PON port. The PON network structure is shown in Figure 1. The first and second PON ports are connected to the ONU via an optical splitter. Downlink data transmission (OLT to ONU) uses broadcast, while uplink data transmission (ONU to OLT) uses time division multiple access.
[0056] On the basis of the above, the following three states are configured for all PON ports: the first state (also called the semi-start state), in which the light-emitting function of the PON port is turned off and the light-receiving function is turned on; the second state (also called the fully started state), in which both the light-emitting function and the light-receiving function of the PON port are turned on; the third state (also called the shutdown state), in which both the light-emitting function and the light-receiving function of the PON port are turned off.
[0057] Under normal circumstances, the OLT interacts with the ONU using the current first PON port. This means the first PON port is fully enabled, while the second PON port is disabled. It should be understood that under normal circumstances, the OLT uses the standard process shown in Figure 2 to complete registration and online processing for the first PON port. In the standard process shown in Figure 2, the OLT can set the second PON port from the disabled state to the semi-enabled state when the ONU enters the O4 state, or before the O4 state.
[0058] After the ONU enters the O4 state, the OLT receives the return message Serial_number_onu from the ONU through the first and second PON ports simultaneously and determines the time difference T1-T0 between the first and second PON ports receiving the return message. After obtaining the ranging results Teqd and RTD corresponding to the first PON port according to the above formula (1), the OLT can derive the EqD of the second PON port according to the above formula (2) and store the EqD of the second PON port in the local port configuration file.
[0059] When an abnormality occurs on the first PON port, the OLT determines that the first PON port needs to be switched to the second PON port. It sets the first PON port to the shutdown state and the second PON port to the fully enabled state. At this point, as shown in Figure 4, the ONU enters state O6. The OLT first sends a Popup message to the ONU to control the ONU to enter state O4. The OLT then extracts the EqD of the second PON port from the local port configuration file and sends a Ranging_Time message containing the EqD of the second PON port to the ONU to control the ONU to complete the compensation time configuration for the second PON port. Following the standard process, the ONU enters state O5 after configuring the compensation time. After the ONU enters state O5, the OLT sends a Password_Request to the ONU. The ONU responds to the OLT's Password_Request with its own password. After the password is verified, the ONU completes registration and goes online for the second PON port. At this point, the first PON port officially switches to the second PON port, and data transmission between the OLT and the ONU proceeds through the second PON port.
[0060] Corresponding to the method shown in FIG3 , another embodiment of the present application further proposes a PON port switching device. FIG5 is a schematic structural diagram of the switching device, comprising: a ranging module 510, which performs ranging on the optical network unit (ONU) based on the first PON port currently in use to obtain a ranging result corresponding to the first PON port. A determination module 520, which determines the equalization delay (EqD) of the second PON port based on the ranging result corresponding to the first PON port and the time difference between the first PON port and the second PON port receiving the return message of the ONU. A switching module 530, when the first PON port needs to switch to the second PON port, sends the determined EqD of the second PON port to the ONU, so that the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port.
[0061] Based on the device of the embodiment, when the OLT is normally using the first PON port, the time difference between the first and second PON ports receiving the ONU's return message can be measured in advance during the process of performing ranging on the optical network unit (ONU) through the first PON port. After obtaining the ranging result corresponding to the first PON port, the equalization delay (EqD) of the second PON port is derived based on the ranging result corresponding to the first PON port and the time difference between the first and second PON ports receiving the ONU's return message. When the first PON port needs to switch to the second PON port later, the OLT directly sends the derived EqD of the second PON port to the ONU, so that the ONU can quickly complete the switching from the first PON port to the second PON port without initiating ranging on the ONU through the second PON port, thereby meeting the performance requirements of the G.984.1 standard.
[0062] In one example, the loopback message is fed back by the ONU to the first PON port and the second PON port after receiving the ranging request message; the ranging request message is sent to the ONU based on the first PON port when ranging is performed on the ONU.
[0063] In one example, when the ranging module 510 performs ranging on the optical network unit ONU based on the currently used first PON port, it sets the second PON port to a first state; wherein, in the first state, the light emitting function of the second PON port is turned off and the light receiving function is turned on.
[0064] In one example, the ranging result corresponding to the first PON port includes: a zero-distance equalization delay Teqd and a round-trip delay RTD of the first PON port.
[0065] In one example, the EqD of the second PON port is determined based on a difference between Teqd and RTD of the first PON port, and a time difference between the first PON port and the second PON port in receiving the loopback message.
[0066] In one example, when the first PON port needs to switch to the second PON port, the switching module 530 sends the determined EqD of the second PON port to the ONU, so that the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port. The method includes: when the first PON port needs to switch to the second PON port, setting the second PON port to a second state, sending a POPpup message to the ONU based on the second PON port, so that the ONU enters a ranging state after receiving the POPpup message; wherein the light emitting function and the light receiving function of the second PON port are turned on in the second state; after the ONU enters the ranging state, sending a Ranging_Time message carrying the EqD of the second PON port to the ONU based on the second PON port, so that after the ONU receives the Ranging_Time message, the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port in the Ranging_Time message.
[0067] In one example, when the first PON port needs to switch to the second PON port, the switching module 530 further sets the first PON port to a third state; wherein the light emitting function and the light receiving function of the first PON port are turned off in the third state.
[0068] In one instance, after determining the EqD of the second PON port, the determination module 520 also stores the EqD of the second PON port in a local port configuration file; wherein, the EqD of the second PON port sent by the switching module 530 to the ONU is obtained from the local port configuration file.
[0069] In one example, the situation where the first PON port needs to be switched to the second PON port includes an abnormality occurring in the first PON port.
[0070] It should be noted that the switching device of this embodiment can serve as the execution subject of the method shown in FIG3 , and thus can implement the steps and functions in the method shown in FIG3 .
[0071] FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Referring to FIG6 , at the hardware level, the electronic device includes a processor, an internal bus, a network interface, and a memory. Among them, the memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage, etc. Of course, the electronic device may also include hardware required for other services.
[0072] The processor, network interface, and memory can be interconnected via an internal bus, such as an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. These buses can be classified as address buses, data buses, and control buses. For ease of illustration, FIG6 shows only one bidirectional arrow, but this does not imply that there is only one bus or only one type of bus.
[0073] The memory is configured to store a computer program. The computer program may include program code, which includes computer operating instructions. The memory may include internal memory and non-volatile memory, and provides the computer program to the processor. The processor reads the corresponding computer program from the non-volatile memory into the internal memory and then executes the program, thereby forming the PON port switching device shown in FIG5 at a logical level. Accordingly, the processor executes the program stored in the memory and is configured to perform the following operations: perform ranging on an optical network unit (ONU) based on the currently used first PON port to obtain a ranging result corresponding to the first PON port; determine an equalization delay (EqD) of the second PON port based on the ranging result corresponding to the first PON port and the time difference between the first PON port and the second PON port receiving a return message from the ONU; and, if switching from the first PON port to the second PON port is required, transmit the determined EqD of the second PON port to the ONU, so that the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port.
[0074] The PON port switching method disclosed in the embodiments of this specification can be applied to and implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the method can be completed by hardware integrated logic circuits in the processor or by software instructions. The processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0075] Of course, in addition to software implementation, the electronic device in this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc. That is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0076] In addition, an embodiment of the present application further provides a computer-readable storage medium storing one or more computer programs, each of which includes instructions. When executed by a portable electronic device including multiple application programs, the instructions enable the portable electronic device to perform the steps of the method shown in FIG3 , including: performing ranging on an optical network unit (ONU) based on the first PON port currently in use to obtain a ranging result corresponding to the first PON port. Based on the ranging result corresponding to the first PON port and the time difference between the first PON port and the second PON port receiving the return message from the ONU, determining the equalization delay (EqD) of the second PON port. When the first PON port needs to switch to the second PON port, the determined EqD of the second PON port is sent to the ONU, so that the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port.
[0077] In the electronic device according to the embodiment, when the OLT is normally using the first PON port, the OLT can measure in advance the time difference between the first PON port and the second PON port receiving the ONU's return message during the process of performing ranging on the optical network unit (ONU) through the first PON port. After obtaining the ranging result corresponding to the first PON port, the OLT can derive the equalization delay (EqD) of the second PON port based on the ranging result corresponding to the first PON port and the time difference between the first PON port and the second PON port receiving the ONU's return message. When the first PON port needs to switch to the second PON port later, the OLT directly sends the derived EqD of the second PON port to the ONU, so that the ONU can quickly complete the switching from the first PON port to the second PON port without initiating ranging on the ONU through the second PON port, thereby meeting the performance requirements of the G.984.1 standard.
[0078] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0079] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0080] The above are merely examples of the present invention and are not intended to limit this specification. For those skilled in the art, various modifications and variations of this specification are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification shall be included within the scope of the claims of this specification. In addition, all other embodiments obtained by those of ordinary skill in the art without creative effort shall fall within the scope of protection of this document.
Claims
1. A method for switching a passive optical network (PON) port, applied to an optical line terminal (OLT), wherein the OLT is provided with a first PON port and a second PON port that are used interchangeably, the method comprising: Performing distance measurement on an optical network unit (ONU) based on the first PON port currently in use, and obtaining a distance measurement result corresponding to the first PON port; Determine an equalization delay EqD of the second PON port based on a ranging result corresponding to the first PON port and a time difference between when the first PON port and the second PON port receive a return message from the ONU; When the first PON port needs to be switched to the second PON port, the determined EqD of the second PON port is sent to the ONU, so that the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port.
2. The method according to claim 1, The loopback message is fed back by the ONU to the first PON port and the second PON port after receiving the ranging request message; the ranging request message is sent to the ONU based on the first PON port when ranging is performed on the ONU.
3. The method according to claim 2, further comprising: When ranging the optical network unit ONU based on the currently used first PON port, the second PON port is set to a first state; wherein, in the first state, the light emitting function of the second PON port is turned off and the light receiving function is turned on.
4. The method according to claim 1, The ranging result corresponding to the first PON port includes: The zero-distance equalization delay Teqd and the loop delay RTD of the first PON port.
5. The method according to claim 4, The EqD of the second PON port is determined based on a difference between Teqd and RTD of the first PON port, and a time difference between the first PON port and the second PON port in receiving the loopback message.
6. The method according to any one of claims 1 to 5, When the first PON port needs to be switched to the second PON port, sending the determined EqD of the second PON port to the ONU, so that the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port, including: When the first PON port needs to switch to the second PON port, the second PON port is set to a second state, so as to send a POPpup message to the ONU based on the second PON port, so that the ONU enters a ranging state after receiving the POPpup message; wherein the light emitting function and the light receiving function of the second PON port are turned on in the second state; After the ONU enters the ranging state, a Ranging_Time message carrying the EqD of the second PON port is sent to the ONU based on the second PON port, so that after receiving the Ranging_Time message, the ONU completes the switching from the first PON port to the second PON port based on the EqD of the second PON port in the Ranging_Time message.
7. The method according to claim 6, further comprising: When the first PON port needs to switch to the second PON port, the first PON port is set to a third state; wherein the light emitting function and the light receiving function of the first PON port are turned off in the third state.
8. The method according to any one of claims 1 to 5, After determining the EqD of the second PON port, the method further includes: The EqD of the second PON port is stored in a local port configuration file; wherein the EqD of the second PON port sent to the ONU is obtained from the local port configuration file.
9. The method according to any one of claims 1 to 5, The situation where the first PON port needs to be switched to the second PON port includes that an abnormality occurs in the first PON port.
10. An electronic device comprising a processor; and a memory configured to store computer-executable instructions, wherein when the computer-executable instructions are executed, the processor is caused to perform the method according to any one of claims 1 to 9.
11. A computer-readable storage medium, wherein the computer-readable storage medium is configured to store computer-executable instructions, wherein the computer-executable instructions implement the method according to any one of claims 1 to 9 when executed by a processor.
Citation Information
Patent Citations
Quick ranging method for XG-passive optical network (XGPON) system protection switching
CN104506972A
XG-PON system and re-ranging control method for channel switching of XG-PON system
CN107241138A
Passive optical network time synchronization method, electronic equipment and storage medium
CN115119083A
Optical line terminal arrangement, apparatus and methods
US6721508B1