US-12621592-B2 - Time synchronization method for passive optical network, and electronic device and storage medium
Abstract
A time synchronization method for a passive optical network, and an electronic device and a storage medium are disclosed. The method may include acquiring a first response time from a first optical network unit (ONU); performing a ranging calculation to the first ONU to acquire a first equalization time delay; generating an equalization delay configuration message according to the first response time and the first equalization delay; and sending the equalization delay configuration message to a second ONU to configure a second equalization delay for the second ONU; where the first ONU and the second ONU access the same branch optical fiber.
Inventors
- Weiliang Zhang
Assignees
- ZTE CORPORATION
Dates
- Publication Date
- 20260505
- Application Date
- 20211207
- Priority Date
- 20210317
Claims (19)
- 1 . A method for time synchronization in a passive optical network (PON), which is applied to an optical line terminal (OLT), the method comprising, acquiring a first response time from a first optical network unit (ONU); performing a ranging calculation to the first ONU to acquire a first equalization time delay; generating an equalization delay configuration message according to the first response time and the first equalization delay; and sending the equalization delay configuration message to a second ONU to configure a second equalization delay for the second ONU; wherein, the first ONU and the second ONU access a same branch optical fiber; wherein the equalization delay configuration message comprises the first response time and the first equalization delay; and accordingly, sending the equalization delay configuration message to the second ONU to configure the second equalization delay for the second ONU comprises, sending the equalization delay configuration message to the second ONU, to instruct the second ONU to calculate the second equalization delay according to the first response time, the first equalization delay, and a second response time of the second ONU.
- 2 . The method as claimed in claim 1 , wherein the equalization delay configuration message further comprises a bit mask; and the bit mask set to a first state indicates an inclusion of both the first response time and the first equalization delay within the equalization delay configuration message.
- 3 . A method for time synchronization in a passive optical network (PON), which is applied to an optical line terminal (OLT), the method comprising, acquiring a first response time from a first optical network unit (ONU); performing a ranging calculation to the first ONU to acquire a first equalization time delay; generating an equalization delay configuration message according to the first response time and the first equalization delay; and sending the equalization delay configuration message to a second ONU to configure a second equalization delay for the second ONU; wherein, the first ONU and the second ONU access a same branch optical fiber; wherein the equalization delay configuration message comprises the second equalization delay; and accordingly, generating the equalization delay configuration message according to the first response time and the first equalization delay comprises, acquiring a second response time from the second ONU; calculating a second equalization delay for the second ONU according to the first response time, the first equalization delay, and the second response time; and generating the equalization delay configuration message according to the second equalization delay.
- 4 . The method as claimed in claim 3 , wherein the equalization delay configuration message further comprises a bit mask; and the bit mask set to a second state indicates an inclusion of the second equalization delay within the equalization delay configuration message.
- 5 . The method as claimed in claim 1 , wherein, acquiring and recording the first response time from the first ONU comprises, sending one of, an SN request, a ranging request, or a response time acquisition request to the first ONU; and receiving response information that carries the first response time from the first ONU.
- 6 . A method for time synchronization in a passive optical network (PON), which is applied to a first optical network unit (ONU), the method comprising, sending a first response time to an optical line terminal (OLT), to instruct the OLT to perform the method as claimed in claim 1 .
- 7 . The method as claimed in claim 6 , wherein before sending the first response time to the OLT, the method further comprises, acquiring one of, an SN request, a ranging request, or a response time acquisition request from the OLT; and acquiring a local response time as a first response time according to one of, the SN request, the ranging request, or the response time acquisition request from the OLT.
- 8 . A method for time synchronization in a passive optical network (PON), which is applied to a second optical network unit (ONU), the method comprising, receiving an equalization delay configuration message from an optical line terminal (OLT); and configuring a second equalization delay for the second ONU according to the equalization delay configuration message; wherein, the second equalization delay is acquired by the OLT through performing the method as claimed in claim 1 .
- 9 . The method as claimed in claim 8 , wherein the equalization delay configuration message comprises the first response time and the first equalization delay; and accordingly, configuring the second equalization delay for the second ONU according to the equalization delay configuration message comprises, acquiring a second response time of the second ONU; and calculating the second equalization delay according to the first response time, the first equalization delay, and the second response time.
- 10 . The method as claimed in claim 9 , wherein the equalization delay configuration message further comprises a bit mask; and accordingly, configuring the second equalization delay for the second ONU according to the equalization delay configuration message further comprises, determining a state of the bit mask; and determining an inclusion of both the first response time and the first equalization delay within the equalization delay configuration message, in response to a determination that the bit mask is in a first state.
- 11 . The method as claimed in claim 10 , wherein the equalization delay configuration message comprises the second equalization delay; and the method further comprises, acquiring a second response time of the second ONU; and sending the second response time to the OLT, to instruct the OLT to calculate the second equalization delay according to the first response time, the first equalization delay, and the second response time.
- 12 . The method as claimed in claim 11 , wherein the equalization delay configuration message further comprises a bit mask; and accordingly, configuring the second equalization delay for the second ONU according to the equalization delay configuration message comprises, determining a state of the bit mask; determining an inclusion of the second equalization delay within the equalization delay configuration message, in response to a determination that the bit mask is in a second state; and configuring a second equalization delay for the second ONU according to the equalization delay configuration message.
- 13 . The method as claimed in claim 11 , wherein acquiring the second response time of the second ONU comprises, acquiring one of, an SN request, a ranging request, or a response time acquisition request from the OLT; and acquiring a local response time as a second response time according to one of, the SN request, the ranging request, or the response time acquisition request from the OLT.
- 14 . A method for time synchronization in a passive optical network (PON), comprising, sending the equalization delay configuration message according to claim 1 , to the second optical network unit (ONU) to configure the second response time of the second ONU, so that the second response time of the second ONU matches the first response time of the first ONU; and wherein, the first ONU and the second ONU access the same branch optical fiber.
- 15 . A method for time synchronization in a passive optical network (PON), which is applied to a second optical network unit (ONU), the method comprising, receiving the equalization delay configuration message according to claim 1 ; and configuring the second response time of the second ONU according to the response time configuration instruction so that the second response time of the second ONU matches the first response time of the first ONU; wherein, the first ONU and the second ONU access the same branch optical fiber.
- 16 . An electronic apparatus, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor which, when executed by the processor causes the processor to carry out the method as claimed in claim 1 .
- 17 . A non-transitory computer-readable storage medium storing a computer-executable instruction which when executed by a processor, causes the processor to carry out the method as claimed in claim 1 .
- 18 . An electronic apparatus, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor which, when executed by the processor causes the processor to carry out the method as claimed in claim 3 .
- 19 . A non-transitory computer-readable storage medium storing a computer-executable instruction which when executed by a processor, causes the processor to carry out the method as claimed in claim 3 .
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a national stage filing under 35 U.S.C. § 371 of international application number PCT/CN2021/136142, filed Dec. 7, 2021, which claims priority to Chinese patent application No. 202110284376.X filed Mar. 17, 2021. The contents of these applications are incorporated herein by reference in their entirety. TECHNICAL FIELD The present disclosure relates to the technical field of communication, in particular to a method for time synchronization in a passive optical network, an electronic apparatus, and a storage medium. BACKGROUND During the deployment of passive optical networks (PONs), different optical network units (ONUs) shall be compatible, so that the uplink data of each ONU would not collide. For example, in a low-delay PON system, low delay-based ranging is supported only. The non-low-delay ONUs are not possible to carry out ranging by the traditional ranging method, nor do they support the low delay-based ranging. The ranging of the non-low-delay ONU is realized with the help of a low-delay ONU or a low-delay ranging instrument. In particular, after the low-delay ONU or the low-delay ranging instrument completes the ranging on a branch optical fiber and obtains the ranging result, the non-low-delay ONU reuses the ranging result and accesses the branch optical fiber. During time synchronization in the related schemes, OLT does not consider the local time variation parameters (such as response time) of ONUs when calculating the equalization delay (EqD). Since the local time variation parameters of different ONUs are generally different, the ranging result for one ONU is generally dedicated to that ONU. Another ONU accessing the same branch optical fiber is not possible to use the existed ranging result of the ONU, which leads to the failure in time synchronization. SUMMARY The following is a summary of the subject matter described herein. This summary is not intended to limit the scope of protection of the claims. Provided are a method for time synchronization in passive optical networks, an electronic apparatus, and a storage medium in some embodiments of the present disclosure. According to an aspect of the present disclosure, an embodiment provides a method for time synchronization in a PON, which is applied to an OLT, the method may include, acquiring a first response time from a first ONU; performing a ranging calculation to the first ONU to acquire a first equalization time delay; generating an equalization delay configuration message according to the first response time and the first equalization delay; sending the equalization delay configuration message to a second ONU to configure a second equalization delay of the second ONU; where the first ONU and the second ONU access the same branch optical fiber. According to another aspect of the present disclosure, an embodiment provides a method for time synchronization in a PON, which is applied to a first ONU, and the method may include, sending a first response time to an OLT, to instruct the OLT to carry out the method applied to the OLT as described above. According to yet another aspect of the present disclosure, an embodiment provides a method for time synchronization in a PON, which is applied to a second ONU, the method may include, receiving an equalization delay configuration message from an OLT; configuring a second equalization delay of the second ONU according to the equalization delay configuration message; and the second equalization delay is acquired by the OLT through the method applied to the OLT as described above. According to yet another embodiment of the present disclosure, an embodiment provides a method for time synchronization in a PON, which may include, sending a response time configuration instruction to a second ONU to configure the response time of the second ONU, so that the response time of the second ONU matches the response time of the first ONU; and where, the first ONU and the second ONU access the same branch optical fiber. According to yet another aspect of the present disclosure, an embodiment provides a method for time synchronization in a PON, which is applied to a second ONU, the method may include, receiving a response time configuration instruction; configuring a response time of the second ONU according to the response time configuration instruction so that the response time of the second ONU matches the response time of the first ONU; where, the first ONU and the second ONU access the same branch optical fiber. According to yet another aspect of the present disclosure, an embodiment provides a device for time synchronization in passive optical networks, the device may include, an acquisition module, which is configured to acquire a first response time from a first ONU; a calculation module, which is configured to perform ranging calculation to the first ONU to obtain a first equalization delay; a generating module, which is configured to generate a