Background technology
The implication that comprises two aspects in the communication system synchronously:
Frequency: Frequency Synchronization is to avoid slip to need separately Frequency Synchronization when being processing signals such as transmission, exchange;
Time: time synchronized is that the time and the universal time of equipment is harmonious, also claims Phase synchronization.
Communication network is to all having requirement, particularly wireless device synchronously between communication system, and following table has been listed wireless device to synchronous specific requirement:
Wireless technology |
The Clock Frequency Accuracy requirement |
The time synchronized requirement |
GSM |
0.05ppm |
NA |
WCDMA |
0.05ppm |
NA |
CDMA2000 |
0.05ppm |
3us |
TD·SCDMA |
0.05ppm |
1.5us |
WiMax |
0.05ppm |
1us |
LTE |
0.05ppm |
Tend to adopt time synchronized |
EPON (PON, Passive Optical Network) technology is the light access technology of a kind of point to multiple spot, it is by OLT (the Optical Line Terminal of office's side, optical line terminal), the ONU of user side (Optical Network Unit, optical network unit) and ODN (Optical Distribution Network, Optical Distribution Network) form.EPON has polytype, roughly can be divided into wavelength-division PON, power P ON and these the two kinds mixing PON that mutually combine.Power P ON is again because of the agreement difference of link layer, be divided into APON (ATM Passive Optical Network, the EPON of asynchronous transfer mode), GPON (Gigabit Passive Optical Network, Gigabit Passive Optical Network) and EPON (Ethernet Passive Optical Network, ethernet passive optical network).
Power P ON, general its descending employing TDM (Time Division Multiplex, time division multiplexing) broadcast mode, up employing TDMA (Time Division MultipleAccess, time division multiple access inserts) mode, and can form topological structures (typical structure is a tree structure) such as tree type, star-like, bus-type neatly.
So-called mixing PON is meant in an ODN network and has a plurality of power P ON simultaneously that these power P ON adopts different wavelength.
The PON network can be used as the bearer network that inserts section, and Fig. 1 shows the schematic diagram of PON in the networking and the clock transmission of moving communicating field, is illustrated in figure 1 as the typical networking of PON in mobile communication.PON need finish the transmission of two tasks: the transmission of Business Stream and the transmission of clock synchronization have provided the transmission and the method for salary distribution of clock stream in the accompanying drawing 1.
Itself has only realized Frequency Synchronization the PON procotol, and promptly ONU is synchronized with OLT, but the phase difference of each ONU is arbitrarily, promptly can't support time synchronized, can't satisfy mobile communication or the free network application that requires synchronously.
IEEE1588 can realize the frequency and the time synchronized of LA Management Room.
1) hypothesis of characteristic symmetry Network Based adopts master-slave mode, stabs mark at the enterprising line time of Packet, the cycle clock issue, and the recipient carries out clock skew and measures and delay measurements;
2) point-to-point link can provide the highest precision, introduces boundary clock, and is irrelevant with delay jitter, can reach every jumping 10ns level time accuracy;
3) can realize frequency and time synchronized.
Its detailed realization mechanism is described below, and Fig. 2 shows the schematic diagram of IEEE1588 agreement realization mechanism.
1) supposition Master (master) and Slave (from) time difference of equipment room is Offset;
2) send the sync packet of being with timestamp to Slave equipment at T1 moment Master equipment, Slave equipment receives sync message constantly at its local T2, can set up following equation, wherein Delay is that sync message is slow to the propagation delay time of Slave equipment from Master equipment.
T2=T1+Delay+Offset-------------------(1)
3) Master equipment sends Follow_up (tracking) message to Slave equipment;
4) Slave equipment sends Delay_Req (postponing request) message to Master equipment constantly at local T3;
5) Master equipment sends Delay_Resp (delayed response) message to Slave equipment constantly at its local T4.Can set up following equation:
T4=T3+Delay-Offset----------------(2)
6) associating equation (1) and (2) can be obtained the Offset value.
7) periodically send at Master and Slave equipment room, Sync (synchronously) message, Follow_up (tracking) message, Delay_Req (postponing request) message and Delay_Resp (delayed response) message, just can dynamically upgrade the Offset value, thereby keep Slave equipment on time and frequency, to be synchronized with Master equipment.
8) Master equipment and Slave equipment room can obtain the time accuracy of 10ns level.
From top description as can be known, the IEEE1588 agreement is based on the hypothesis of network characteristic symmetry, i.e. delay and jitter from Master equipment to Salve equipment, identical with delay and jitter from Slave equipment to Master equipment, and the link flapping size has directly determined the precision of time synchronized.
The GPON network, i.e. the ITU PON network of standard G.984.1 ~ 4, the protocol stack of GPON network carrying Ethernet protocol bag as shown in Figure 3 is adopted in its carrying to Ethernet service.For improving load-carrying efficiency, cutting and reorganization that GEM can wrap the upper-layer service data flow, a message of upper layer data stream might be cut into many parts like this, each part is sent out at unfixed different time point, whether all bursts of receiving end detection packet are here, assemble after here, recover complete upper layer data message.
In realizing process of the present invention, the inventor finds that there are the following problems at least in the prior art: concerning the upper layer data message, the GPON network is a unfixed network of delay, be that its shake is very big, the IEEE1588 agreement can't directly be moved on the GPON network, therefore, in EPON, can not guarantee ONU frequency and on the time precise synchronization in OLT.
Summary of the invention
The present invention aims to provide the method for synchronous of a kind of passive optical network and frequency and time, with solve in EPON, can not guarantee ONU frequency and on the time precise synchronization in the problem of OLT.
In an embodiment of the present invention, a kind of EPON medium frequency and the method for synchronous of time are provided, comprise: carry out Frequency Synchronization at optical line terminal to optical network unit, also comprise the steps: the message of periodically mutual PLOAM (physical layer operations management maintenance) form between optical line terminal and the optical network unit; By the Time Calculation of message being obtained the time deviation between optical line terminal and optical network unit; And at the dynamic compensation of the enterprising line time deviation of optical network unit so that frequency and time synchronized between optical network unit and optical line terminal.
Preferably, according to the method for synchronous of the embodiment of the invention, also comprised before the message of optical network unit transmission PLOAM form at optical line terminal: adopt the method for IEEE1588 agreement between the higher level equipment of optical line terminal and optical line terminal, to carry out frequency and time synchronized.
Preferably, according to the method for synchronous of the embodiment of the invention, after the dynamic compensation of the enterprising line time deviation of optical network unit, also comprise: adopt the method for IEEE1588 agreement to carry out frequency and time synchronized at the second line of a couplet equipment room of optical network unit and optical network unit.
Preferably, according to the method for synchronous of the embodiment of the invention, the message of PLOAM form specifically comprises: Sync, Follow_up, Delay_Req and Delay_Resp message.
Preferably, method for synchronous according to the embodiment of the invention, the message of periodically mutual PLOAM form specifically comprises between optical line terminal and the optical network unit: optical line terminal equipment is operated in the Master pattern of clock, and optical network unit operates in the Slave pattern of clock; Optical line terminal is to the synchronous PLOAM message Sync of optical network unit transmission band timestamp constantly at T1, and optical network unit receives synchronous PLOAM message Sync constantly at T2; Optical line terminal equipment sends Follow_up PLOAM message to device of optical network unit; Device of optical network unit sends Delay_ReqPLOAM message to optical line terminal equipment constantly at T3, and optical line terminal equipment sends Delay_Resp PLOAM message to device of optical network unit constantly at T4.
Preferably, according to the method for synchronous of the embodiment of the invention, the time deviation that obtains between optical line terminal and optical network unit by the Time Calculation to message specifically comprises: set up equation group:
T2=T1+Delay+Offset----------------(1)
T4=T3+Delay-Offset----------------(2)
Wherein Delay is that the propagation delay time of synchronous PLOAM message from the optical line terminal to the optical network unit is slow, therefrom obtains the Offset value as the time difference.
Preferably, according to the method for synchronous of the embodiment of the invention, the message of PLOAM form is the message of not cutting into slices.
In an embodiment of the present invention, also provide a kind of passive optical network, comprised optical line terminal and optical network unit, optical line terminal is used for the message with the periodically mutual PLOAM form of optical network unit; Optical network unit is used for by the Time Calculation of message being obtained the time deviation between optical line terminal and optical network unit, the dynamic compensation that carries out time deviation with optical line terminal frequency and time synchronized.
Preferably, passive optical network according to the embodiment of the invention, the message of periodically mutual PLOAM form specifically comprises between optical line terminal and the optical network unit: optical line terminal equipment is operated in the Master pattern of clock, and optical network unit operates in the Slave pattern of clock; Optical line terminal is to the synchronous PLOAM message Sync of optical network unit transmission band timestamp constantly at T1, and optical network unit receives synchronous PLOAM message Sync constantly at T2; Optical line terminal equipment sends Follow_up PLOAM message to device of optical network unit; Device of optical network unit sends Delay_ReqPLOAM message to optical line terminal equipment constantly at T3, and optical line terminal equipment sends Delay_Resp PLOAM message to device of optical network unit constantly at T4.
Preferably, according to the passive optical network of the embodiment of the invention, optical network unit specifically comprises: the equation module is used to set up equation group:
T2=T1+Delay+Offset----------------(1)
T4=T3+Delay-Offset----------------(2)
Wherein Delay is that the propagation delay time of synchronous PLOAM message from the optical line terminal to the optical network unit is slow; Computing module is used for obtaining the Offset value as the time difference from equation group.
The present invention is because adopt the method for the message of periodically mutual PLOAM form between optical line terminal and the optical network unit, so overcome in EPON, can not guarantee ONU frequency and on the time precise synchronization and then reached the effect of EPON medium frequency and time synchronized in the problem of OLT.
Embodiment
Below with reference to the accompanying drawings and in conjunction with the embodiments, describe the present invention in detail.
Fig. 4 shows according to the EPON medium frequency of the embodiment of the invention and the flow chart of the method for synchronous of time, in an embodiment of the present invention, a kind of EPON medium frequency and the method for synchronous of time are provided, comprise: carry out Frequency Synchronization at optical line terminal to optical network unit, also comprise the steps:
Step S10, the message of periodically mutual PLOAM form between optical line terminal and the optical network unit;
Step S20 is by obtaining the time deviation between optical line terminal and optical network unit to the Time Calculation of message; And
Step S30, at the dynamic compensation of the enterprising line time deviation of optical network unit so that frequency and time synchronized between optical network unit and optical line terminal.
This embodiment is because adopt the method for the message of periodically mutual PLOAM form between optical line terminal and the optical network unit, so overcome in EPON, can not guarantee ONU frequency and on the time precise synchronization and then reached the effect of EPON medium frequency and time synchronized in the problem of OLT.This method for example can be suitable for G.984.1~4 EPON of standard of ITU standard.
Preferably, according to the method for synchronous of the embodiment of the invention, also comprised before the message of optical network unit transmission PLOAM form at optical line terminal: adopt the method for IEEE1588 agreement between the higher level equipment of optical line terminal and optical line terminal, to carry out frequency and time synchronized.
Preferably, according to the method for synchronous of the embodiment of the invention, after the dynamic compensation of the enterprising line time deviation of optical network unit, also comprise: adopt the method for IEEE1588 agreement to carry out frequency and time synchronized at the second line of a couplet equipment room of optical network unit and optical network unit.And then the second line of a couplet equipment that links to each other with optical network unit of assurance is with the internetwork frequency of the first line of a couplet and the time synchronized that link to each other with optical line terminal, and then the frequency and the time synchronized of the second line of a couplet equipment room that links to each other with optical network unit of realization.Realized frequency and time relay transmission in the EPON section.
Preferably, according to the method for synchronous of the embodiment of the invention, the message of PLOAM form specifically comprises: Sync, Follow_up, Delay_Req and Delay_Resp message.
Preferably, according to the method for synchronous of the embodiment of the invention, the message of PLOAM form is the message of not cutting into slices.
This embodiment is at OLT and first line of a couplet equipment room and ONU and second line of a couplet equipment room operation IEEE1588 clock protocols, and in the PON of OLT and ONU section, adopt the method for the message of periodically mutual PLOAM form between optical line terminal and the optical network unit, the transmission of realization time and frequency, this embodiment gets up the time that reaches between second line of a couplet equipment and ONU between first line of a couplet equipment and OLT in the operation of PON section to bridge joint.
This embodiment utilizes the distinctive POLAM message of GPON, realization time and frequency are in the transmission of PON section, PLOAM is not by burst in the transmission of PON section, PLOAM message is to send as an overall time to finish when being sent out, avoid the GPON network upper-layer protocol data message is postponed unfixed characteristic, the synchronous transmission of realization time and frequency on the PON network, guarantee that each ONU has identical time and frequency, if the IEEE1588 agreement of operation standard between ONU and its subordinate equipment, ONU can also accurately pass to subordinate equipment to frequency and time, guarantees that the equipment room that connects under each ONU also has identical frequency and time.
Fig. 5 shows the block diagram according to the passive optical network of the embodiment of the invention, and passive optical network comprises optical line terminal and optical network unit:
Optical line terminal 10 is used for the message with the periodically mutual PLOAM form of optical network unit;
Optical network unit 20 is used for by the Time Calculation of message being obtained the time deviation between optical line terminal and optical network unit, the dynamic compensation that carries out time deviation with the optical line terminal time synchronized.
This embodiment is because adopt the method for the message of periodically mutual PLOAM form between optical line terminal and the optical network unit, so overcome in EPON, can not guarantee ONU frequency and on the time precise synchronization and then reached the effect of EPON medium frequency and time synchronized in the problem of OLT.
Fig. 6 shows the structure chart that the OLT side realizes and the ONU side realizes according to the embodiment of the invention, example goes out the extraction and the insertion position of IEEE1588 protocol massages and PLOAM message of the present invention among the figure, and Shi Yi position is carried out the extraction of PLOAM message and IEEE1588 protocol massages and inserted the accuracy that can improve frequency and time synchronized in the drawings.
Fig. 7 shows the flow chart of EPON medium frequency and the method for synchronous of time according to the preferred embodiment of the invention, and PON network of the preferred embodiment and time synchronized mechanism implementation method specifically comprise:
In the IEEE1588 agreement of OLT and coupled equipment room operation standard, higher level equipment operates in the Master pattern, and OLT operates in the Slave pattern, OLT frequency and on the time precise synchronization in higher level equipment;
The time difference of supposing " higher level equipment " and OLT equipment room is Offset;
Send the sync message of being with timestamp in the T1 moment " higher level equipment " to OLT, OLT equipment receives sync message constantly at its local T2, sets up following equation, and wherein Delay is that the propagation delay time of sync message from " higher level equipment " to OLT is slow.
T2=T1+Delay+Offset---------------(1)
" higher level equipment " sends Follow_up message to OLT;
OLT sends Delay_Req message to " higher level equipment " constantly at local T3;
" higher level equipment,, send Delay_Resp message to OLT constantly at its local T4.Set up following equation:
T4=T3+Delay-Offset----------------(2)
The Offset value can be obtained in associating equation (1) and (2).
Periodically send between " higher level equipment " and OLT, Sync, Follow_up, Delay_Req and Delay_Resp message just can dynamically be upgraded the Offset value.
OLT carry out time deviation (Offset) dynamically, real-Time Compensation, just can realize that OLT is synchronized with " higher level equipment " in frequency with on the time.
Just can realize the active and standby of clock source if OLT connects two " higher level equipments " simultaneously, network reliability is provided, the selection in master/backup clock source realizes according to the IEEE15888 agreement.
Between OLT and ONU, do not move the IEEE1588 agreement of standard.The OLT equipment work is in the Master of clock pattern, and ONU operates in the Slave pattern, ONU frequency and on the time precise synchronization in OLT;
The time difference of supposing OLT and ONU equipment room is Offset;
OLT is to the synchronous PLOAM message Sync of ONU transmission band timestamp constantly at T1, and ONU receives synchronous PLOAM message constantly at its local T2, sets up following equation, and wherein Delay is that the propagation delay time of synchronous PLOAM message from OLT to ONU is slow.
T2=T1+Delay+Offset----------------(1)
OLT equipment sends Follow_up PLOAM message to ONU equipment;
ONU equipment sends Delay_Req PLOAM message to OLT equipment constantly at local T3;
OLT equipment sends Delay_RespPLOAM message to ONU equipment constantly at its local T4, sets up following equation:
T4=T3+Delay-Offset----------------(2)
The Offset value can be obtained in associating equation (1) and (2).
Cycle dynamics repeats a)~f) step between OLT and ONU, and ONU is dynamic with regard to energy, real-time update calculates the Offset value.
Dynamic, real-Time Compensation in the enterprising line time deviation of ONU (Offset) just can realize that ONU is synchronized with OLT in frequency with on the time.
Each ONU is synchronized with OLT, has just realized the precise synchronization of frequency and time between each ONU.
Operation standard IEEE 1588 agreements between ONU and " second line of a couplet equipment ", " second line of a couplet equipment " can frequency and on the time precise synchronization be exactly the base station in ONU at moving communicating field " second line of a couplet equipment ".
Method for synchronous according to the preferred embodiment of the invention, in order to guarantee time precision, the protocol massages of passing time is is all received and dispatched with hardware.
Structure chart with reference to Fig. 6 specific implementation of the present invention.Realization on the OLT:
1) realization on the Uplink interface:
Between last connecting port PHY and MAC, put into a slice FPGA ASIC of identical function (also), be used for the extraction and the insertion of IEEE1588 protocol massages.
Down direction: the message of receiving from the UP-link port, whether FPGA analyzes it is the IEEE1588 protocol package, if protocol massages, then extract the timestamp that comprises in this protocol massages, and write down the moment that last BIT of this protocol massages (bit) arrives, the moment of receiving this message for this locality; If not the IEEE1588 protocol massages, then give follow-up MAC (or exchange chip of master control borad) this message and further handle.
Up direction: the IEEE1588 protocol package of sending here from CPU, write in the FPGA, sent by FPGA, the timestamp that protocol package is carried is inserted when sending this message by hardware, insertion be the local zone time (send message in timestamp territory one BIT constantly local zone time) of this message when sending.FPGA also is responsible for the transmission from coupled ethernet mac (or exchange chip of master control borad) packet.
Time difference (Offset) between OLT equipment and " higher level equipment ", realize by FPGA hardware, read for CPU.
The phase locked algorithm of CPU is controlled the output of OLT system digits phase-locked loop according to Offset, system clock and control signals such as 8K, 1S pulse that the generation system needs.Because the IEEE protocol massages, the cycle sends and receives, and the time difference (Offset) between OLT equipment and " higher level equipment " also is in real time, dynamically updates, assurance OLT frequency and on the time precise synchronization in " higher level equipment ".
2) realization on the PON interface
PON MAC realizes sending and receiving with identical function Sync, Follow_up, Delay_Req and the Delay_Resp PLOAM message of IEEE 1588 protocol specifications.
CPU writes PON MAC to sync, follow_up PLOAM message, and MAC is responsible for message is sent to ONU from the PON mouth, when transmitting time is stabbed territory the one bit, the OLT local zone time is inserted into the timestamp territory of these two PLOAM message.
After OLT received the Delay_Req PLOAM message of sending from ONU, OLTMAC sent Delay_Resp PLOAM message to ONU immediately, when transmitting time is stabbed territory the one bit, the OLT local zone time was inserted into the timestamp territory of this PLOAM message.
Realization on the ONU:
1) realization on the PON interface:
PON MAC realizes sending and receiving with identical function Sync, Follow_up, Delay_Req and the Delay_Resp PLOAM message of IEEE1588 protocol specification.
Down direction: the PLOAM message of receiving from the PON interface, whether PON MAC analyzes it is sync PLOAM, if sync is PLOAM, then extract the timestamp that comprises in this protocol massages, and write down the moment that last BIT of this PLOAM arrives, the moment of receiving this sync PLOAM for this locality; If not sync PLOAM, then give follow-up functional module this PLOAM and further handle.
Down direction: the PLOAM message of receiving from the PON interface, whether PON MAC analyzes it is Follow_up PLOAM, if Follow_up is PLOAM, then respond a Delay_Req PLOAM message to OLT, and write down when sending this PLOAM message clock stamp territory the one BIT, the local time is worth constantly; If not Follow_upPLOAM, then give follow-up functional module this PLOAM and further handle.
Down direction: from the PLOAM message that the PON interface is received, whether PON MAC analyzes it is Delay_Resp PLOAM, if Delay_Resp is PLOAM, then extracts the timestamp of this PLOAM message clock zone; If not Delay_RespPLOAM PLOAM, then give follow-up functional module this PLOAM and further handle.
According to sync PLOAM, in the moment that timestamp that Delay_Req and Delay_Resp PLOAM carry and PLOAM message arrive or send, calculate the time difference (Offset) between ONU and OLT.Offset calculates by hardware and realizes, reads for CPU.
The phase locked algorithm of CPU, control the output of ONU system digits phase-locked loop according to Offset, the system clock that the generation system needs, with control signals such as 8K, 1S pulses, be used for ONU system itself and use or give " second line of a couplet equipment ", use as the base station, the base station can obtain the pulse per second (PPS) from ONU thus.Certainly this pulse per second (PPS) also may be modulated at certain expense BIT of TDM interface.
The cycle sends Sync, Follow_up, Delay_Req and Delay_Resp PLOAM message between OLT and ONU, dynamically updates the time difference (Offset) between ONU and OLT, guarantees that the ONU precise synchronization in OLT, comprises clock frequency and time.
2) realization on the uni interface
Between the PHY of uni interface and the MAC of exchange chip, put into a slice FPGA (also can be the ASIC of identical function) and realize that IEEE1588 synchronous protocol message receives and sends, operation IEEE1588 agreement between realization and ONU " second line of a couplet equipment " (base station).
Up direction: the message of receiving from uni port, whether FPGA analyzes it is the IEEE1588 protocol package, if protocol massages then extracts the timestamp that comprises in this protocol massages, and write down the moment that last BIT of this protocol massages arrives, the moment of receiving this message for this locality; If not the IEEE1588 protocol massages, then give follow-up MAC (or the exchange chip on the ONU) this message and further handle.
Down direction: the IEEE1588 protocol package of sending here from CPU, write in the FPGA, sent by FPGA, the timestamp that protocol package is carried is inserted when sending this message by hardware, insertion be the local zone time (send message in timestamp territory one BIT constantly local zone time) of this message when sending.FPGA also is responsible for the transmission from coupled ethernet mac (or exchange chip of master control borad) packet.
By operation IEEE1588 agreement on the uni interface, realize frequency and the precise synchronization of time between ONU and its " second line of a couplet equipment " (base station).
The definition of time PLOAM message:
1) Sync PLOAM message: direction OLT->ONU
2) Follow_up PLOAM message: direction OLT->ONU
3) Delay_Resp PLOAM message: direction OLT->ONU
4) Delay_Req PLOAM message: direction ONU->OLT
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the storage device and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.