The present invention relates to the field of the communications technologies, and in particular, to a method, a system, and an apparatus for time synchronization on a passive optical network.
The passive optical network (PON) technology is a point to multi-point optical access technology. As shown in
To ensure that optical signals from each ONU reach the OLT at the same time, a ToD (Time of Day, Time of Day) transmission scheme is generally adopted for the existing PON. As shown in
The present invention provides a method, an apparatus, and a system for time synchronization on a passive optical network. The method, apparatus, and system support high synchronization precision and save network resources.
Technical solutions of the present invention:
A method for time synchronization on a passive optical network, including the following steps:
An optical line terminal (OLT), including:
A passive optical network system, including:
Benefits provided by the present invention is: An OLT in an embodiment of the present invention obtains clock information from an ONU on a PON network; the OLT transmits the clock information to other ONUs; the OLT does not need to obtain clock signals from an upper network, and the clock information does not need to be transmitted in a multi-level mode over a packet network, so that precision of a ToD can be greatly increase, the clock information of several ONUs in a system can be fully used by the OLT, and meanwhile bandwidth resources of a upstream interface of the OLT can be saved.
To make technical solutions of embodiments of the present invention clearer, the following outlines the accompanying drawings for describing the embodiments of the present invention.
To make the purposes, technical solutions, and advantages of the present invention clearer, the technical solutions of embodiments of the present invention are illustrated in detail with reference to the accompanying drawing and the embodiments of the present invention.
Embodiment 1 of the present invention uses a GPON as an example to describe the technical solutions of the present invention. As shown in
The time T2 subtracts a transmission delay Td that is from an OLT to an ONU (a downstream transmission delay may be measured by using an existing ranging mechanism of the GPON), and then sending time Ts2 of sending any frame X2 by the OLT can be obtained.
Therefore, the method of obtaining a ToD by an OLT from an ONU is as follows:
Through an OMCI message, a PLOAM message, or a data package, the ONU notifies in advance the OLT of the time when a certain downstream frame reaches the ONU. The message carries a super frame number and a ToD, and then the OLT can obtain, according to the preceding formula, ToD information of sending any frame, so as to complete time synchronization with the ONU. As shown in
Step 1: The ONU calculates time T1 that is when a multiframe with the multiframe number X1 reaches the ONU.
Step 2: The ONU sends the mapping relationship (Xl, T1) to the OLT through an OMCI message (or a PLOAM message or a data packet).
Step 3: After receiving the message, the OLT subtracts the downstream transmission delay Td that is from the OLT to the ONU from T1, to obtain the sending time Tsl of the OLT sending a downstream frame X1.
Step 4: If time synchronization is required, the sending time Ts2 of sending any downstream frame X2 is calculated: Ts2=Ts1+(X2−X1)×125 μs.
Step 5: When a downstream frame X2 is sent, local time of the OLT is set to Ts2 to implement synchronization between the OLT and the ONU; or the difference between the local time of the OLT and the ONU is calculated, and the local time of the OLT is adjusted according to the difference, to implement synchronization between the OLT and the ONU.
Step 6: After the OLT synchronizes the time with that of the ONU, the OLT can transmit the ToD information to other ONUs or transmit the information to other devices.
In step 3 of the embodiment, after the OLT receives the message, the OLT subtracts the downstream transmission delay Td from T1 to obtain the sending time Tsl of the OLT sending the downstream frame X1; it can be understood that: according to requirements, persons of ordinary skill in the art can enable the ONU to subtract Td before step 2.
Embodiment 2 of the present invention uses an EPON as an example to describe the technical solutions of the present invention. As shown in
ONU accumulates the value of the time stamp correspondingly through natural oscillation of a local clock, to keep the time stamp synchronized with a corresponding time stamp of the OLT.
With the mechanism, the difference between the time stamp of the ONU and the time stamp of the OLT constantly remains to be RTT/2 (to be more accurate, Td, the downstream transmission delay). If a ToD corresponding to a time stamp at an ONU side is learned, a ToD corresponding to an OLT can be calculated through the type of relationship, so as to implement time synchronization between the OLT and the ONU.
Similar to the time synchronization method of the GPON, the method of time synchronization on the EPON is as follows:
The ONU notifies the OLT of ToD information corresponding to a certain time stamp through an extended OAM message, an MPCP message, or a data packet. The content of the message includes a Timestamp and a ToD, and then the ONU can synchronize the time with that of the OLT according to the preceding relationship.
As shown in
Step 1: The ONU obtains a ToD corresponding to any local time stamp X1, and records the ToD as T1.
Step 2: The ONU sends the mapping relationship (X1, T1) to the OLT through an extended OAM message (or an MPCP message or a data packet).
Step 3: After receiving the message, the OLT subtracts the downstream transmission delay Td that is from the OLT to the ONU from T1, to obtain a value T1′ of a ToD corresponding to the time stamp X1 of the OLT.
Step 4: The OLT synchronizes the time with that of the ONU according to ToD information that corresponds to the time stamp of the OLT.
Step 5: After the OLT synchronizes the time with that of the ONU, the OLT can transmit the ToD information to other ONUs or transmit the information to other devices.
In the embodiment of the present invention, an OLT obtains clock information from an ONU on a PON network, the OLT transmits the clock information to other ONUs, the OLT does not need to obtain clock signals from an upper network, and the clock information does not need to be transmitted in a multi-level mode over a packet network, so that precision of a ToD can be greatly increased, the clock information of several ONUs in a system can be fully used by an OLT, and meanwhile bandwidth resources of a upstream interface of the OLT can be saved.
The above describes exemplary embodiments of the present invention, and during specific implementation process, persons skilled in the art can make various modifications and variations to the technical solutions of the present invention according to requirements in specific scenarios. Therefore, the exemplary embodiments of the present invention are merely illustrative, but not intended to limit the protection scope of the present invention.
Number | Date | Country | Kind |
---|---|---|---|
201010103233.6 | Jan 2010 | CN | national |
This application is a continuation of International Application No. PCT/CN2010/080426, filed on Dec. 29, 2010, which claims priority to Chinese Patent Application No. 201010103233.6, filed on Jan. 22, 2010, both of which are hereby incorporated by reference in their entireties.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2010/080426 | Dec 2010 | US |
Child | 13554360 | US |