CN105281860A - Data synchronous acquisition method based on Ethernet passive optical network - Google Patents
Data synchronous acquisition method based on Ethernet passive optical network Download PDFInfo
- Publication number
- CN105281860A CN105281860A CN201510333121.2A CN201510333121A CN105281860A CN 105281860 A CN105281860 A CN 105281860A CN 201510333121 A CN201510333121 A CN 201510333121A CN 105281860 A CN105281860 A CN 105281860A
- Authority
- CN
- China
- Prior art keywords
- onu
- sampling
- olt
- time delay
- synchronized sampling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention provides a data synchronous acquisition method based on an Ethernet passive optical network. The method comprises the steps that: an OLT carries out distance measurement on an ONU and obtains a return path time delay, and based on the return path time delay, a down path time delay is obtained; the OLT generates first synchronous sampling information and issue the first synchronous sampling information to the corresponding ONU; the ONU generates a first periodic sampling pulse according to the received first synchronous sampling information; according to second synchronous sampling information issued by the OLT, the ONU corrects the first periodic sampling pulse and generates a second periodic sampling pulse; and a data acquisition system carries out synchronous data acquisition according to the first periodic sampling pulse or the second periodic sampling pulse sent by the ONU, synchronous data and synchronous sampling time are packaged and uploaded to the OLT, and the synchronous data is obtained. According to the invention, the synchronous sampling information is added in filling fields of periodically issued GATE messages for transmission, the system broadband is saved, and the system is also simplified.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of synchronous data sampling method.
Background technology
Ethernet passive optical network refers in optical distribution not containing any electronic device and electronic power supply, a kind of prefect dielectric network be all made up of passive devices such as optical branching devices, there is many advantages such as bandwidth resources are shared, propagation delay time is short and stable, upgradability is good, technology maturation, saving cable resource, networking speed is fast, cost is low, thus having the various applications of synchronous data sampling requirement to be used widely.
In existing ethernet passive optical network technology, OLT (OpticalLineTerminal, optical line terminal) and ONU (OpticalNetworkUnit, optical network unit) inner 32 digit counters that all there is unit 16 nanosecond, as respective local time stamp counter.When needs realize synchronous data collection, as a rule local timestamp value is included in MPCP (Multi-PointControlProtocol by OLT, Multi-point Control Protocol) in message, each ONU is handed down to by down going channel, after ONU receives MPCP message, therefrom extract timestamp value, and directly upgrade the local time stamp counter of ONU by this timestamp value, so that all ONU realize with OLT one " synchronous ".But this " synchronously " is not considered to there is different downlink path time delays between different ONU and OLT, therefore can find out in existing ethernet passive optical network system, between all ONU and unrealized Complete Synchronization, so existing ethernet passive optical network system directly cannot realize the function of the whole network ONU synchronous data sampling.
In addition, ethernet passive optical network realizes synchronous data sampling, existing technical scheme is: at a kind of clock synchronization protocol being similar to IEEE1588 of EPON internal operation, OLT is periodically to the message of ONU transmit band trip path time delay RTT (Round-TripTime) information and the clock synchronous message of band local time information, ONU, according to the message received, realizes and OLT clock Complete Synchronization; Clock information is exported to data acquisition system and is carried out synchronous data sampling by the ONU after clock synchronous.
In existing technical scheme, there is following deficiency: 1). the message of band RTT information in the path delay of time is handed down to ONU by OAM Extended Protocol frame or other upper layer application protocol frame; Clock synchronous message is by self-defining ethernet data frame, or adopts similar IEEE1588Sync message, and OLT local clock information is handed down to ONU.But, OLT periodically issue these two kinds of messages need take the network bandwidth, issue frequency faster, take networking bandwidth larger, result in the network bandwidth waste; 2). take system bandwidth because clock synchronous message issues, therefore in prior art, the frequency that OLT is handed down to the clock synchronous message of ONU can not too soon (common transmission per second clock synchronous message), cause clock synchronization accuracy between OLT and ONU not high.
Consider the frequency deviation of clock that the factors such as the precision of OLT and ONU equipment inside local crystal oscillator cause, synchronous timing system, the frequency issuing clock synchronous message is faster, and clock synchronization accuracy is higher.
Such as, in existing technical scheme, per secondly issue a clock synchronous message, OLT and ONU inside all adopts the common crystals of common ± 25PPM precision, 125MHz, before when can calculate school next time, maximum clock jitter Toffset:(supposes that OLT crystal oscillator be 125MHz+25PPM, ONU crystal oscillator is 125MHz-25PPM)
Toffset=125MHz*50PPM*8nS*1S=50000nS=50uS。
Therefore in prior art, if need to improve synchronization accuracy, hardware needs select more high-precision crystal oscillator, or increase the tracking of phase-locked loop realization to frequency departure in internal system, but these two kinds of modes will cause the deficiencies such as cost increase, system complex.
Summary of the invention
For the problems referred to above, the invention provides a kind of synchronous data sampling method based on ethernet passive optical network, during its synchronous school, mechanism does not take the network bandwidth, and synchronization accuracy is high, and system cost is low.
Technical scheme provided by the invention is as follows:
Based on a synchronous data sampling method for ethernet passive optical network, comprise the following steps:
S1OLT finds range to ONU and obtains trip path time delay, obtains downlink path time delay with this;
OLT described in S2 generates the first synchronized sampling information comprising described trip path time delay, and described first synchronized sampling information is issued to corresponding ONU;
ONU described in S3, according to the described first synchronized sampling information received, produces period 1 property sampling pulse after compensating the path delay of time;
ONU described in S4 carries out correction according to the second synchronized sampling information that described OLT issues to described period 1 property sampling pulse and produces Secondary periodicity sampling pulse;
The described period 1 property sampling pulse that S5 data acquisition system sends according to ONU or described Secondary periodicity sampling pulse carry out synchronous data collection, and described synchrodata are packed together with the synchronized sampling moment and be uploaded to described OLT, to obtain synchrodata.
Before the technical program, OLT is connected with ONU with optical fiber by passive optical splitter, and ONU is connected with data acquisition system.
Preferably, described trip path time delay comprises up path time delay and downlink path time delay; Wherein,
Described up path time delay comprises OLT up processing time, ONU up processing time and uplink optical fibers channel transfer time;
Described downlink path time delay comprises OLT downlink processing time, ONU downlink processing time and downlink optical fiber channel transfer time.
Preferably, in step sl, described OLT obtains described downlink path time delay according to the described trip path time delay obtained or described ONU obtains described downlink path time delay according to the described trip path time delay received, and specifically comprises:
S11 obtains OLT up processing time, ONU up processing time and uplink optical fibers channel transfer time respectively;
S12 obtains OLT downlink processing time, ONU downlink processing time and downlink optical fiber channel transfer time respectively;
S13 obtains the corrected parameter in processing time between described OLT and described ONU according to described OLT up processing time, ONU up processing time, OLT downlink processing time and ONU downlink processing time;
S14 obtains described downlink path time delay according to described trip path time delay and described corrected parameter.
Preferably, in step s 2, described OLT generates the first synchronized sampling information comprising described trip path time delay, and the filling field inside that described first synchronized sampling information is attached to GATE message by described OLT is issued to corresponding ONU.
Preferably, in step S2, described OLT generates the first synchronized sampling information comprising described trip path time delay, and the filling field inside that described first synchronized sampling information is attached to GATE message by described OLT is issued to corresponding ONU, specifically comprises:
OLT described in S21, according to local clock or time counter, produces a sampling pulse sequence according to a sampling period;
OLT described in S22 obtains current OLT local timestamp value according to the rising edge edge of sampling pulse in described sampling pulse sequence, and obtained for the first synchronized sampling moment according to described OLT local timestamp value, and the described first synchronized sampling moment is received the moment of GATE message as described ONU;
OLT described in S23 generates described first synchronized sampling information in conjunction with described first synchronized sampling moment, described sampling period and described trip path time delay and/or described downlink path time delay;
The filling field inside that described first synchronized sampling information is attached to GATE message is issued to ONU by OLT described in S24.
Preferably, in step s3, described ONU, according to the described first synchronized sampling information received, produces period 1 property sampling pulse, specifically comprises after compensating the path delay of time:
Described ONU receives described first synchronized sampling information, and obtain according to the described first synchronized sampling moment in described first synchronized sampling information and described downlink path time delay the ONU synchronized sampling moment that described ONU produces periodic samples pulse, and generate local period 1 property sampling pulse according to a described ONU synchronized sampling moment.
Preferably, in step s 4 which, described second synchronized sampling information comprises: the second synchronized sampling moment, described sampling period and described trip path time delay and/or described downlink path time delay.
Preferably, in step s 4 which, the second synchronized sampling information that described ONU issues according to described OLT corrects described period 1 property sampling pulse, specifically comprises:
ONU described in S41 receives described second synchronized sampling information, and obtains according to the described second synchronized sampling moment in described second synchronized sampling information and described downlink path time delay the 2nd ONU synchronized sampling moment that described ONU produces recurrent pulses;
ONU described in S42 finds a local sampling pulse within a sampling period in a described ONU synchronized sampling moment, and judges whether the sampling instant that described local sampling pulse is corresponding is carved with deviation with during described 2nd ONU synchronized sampling;
If S43 has deviation, then using the described 2nd ONU synchronized sampling moment as the new synchronized sampling moment, the Secondary periodicity sampling pulse produced according to the described 2nd ONU synchronized sampling moment is replaced the period 1 property sampling pulse produced in step s3 simultaneously, complete the correction to described period 1 property sampling pulse.
Preferably, in step s 5, data acquisition system sends period 1 property sampling pulse according to ONU or described Secondary periodicity sampling pulse carries out synchronous data collection, and described synchrodata and described first synchronized sampling moment or described second synchronized sampling moment are packed together be uploaded to described OLT, to obtain synchrodata.
By the synchronous data sampling method based on ethernet passive optical network provided by the invention, following at least one beneficial effect can be brought:
1. ethernet passive optical network is the network of a bandwidth sharing, in the process of communication, the present invention utilizes OLT periodically to issue the characteristic of the mandate GATE message of Dynamic Bandwidth Allocation to ONU, filling field synchronized sampling information (comprising the first synchronized sampling information and the second synchronized sampling information) being attached to GATE message is originally inner, GATE message length due to appended synchronization information is still minimum Ethernet message length 64 byte, do not take grid bandwidth, the self-defined ethernet frame or IEEE1588Sync message frame that simultaneously also do not need OLT periodically to issue to comprise clock information,
2., in existing technical scheme, be all per secondly issue a clock synchronous message substantially, consider local crystal oscillator trueness error, clock jitter Toffset maximum between during ONU twice school reaches 50uS.And the precision of synchronized sampling depends in the present invention: " synchronously " error between the local time stamp counter of OLT and ONU and trip path latency measurement error.In Ethernet passive optical network system, synchronized sampling information is attached in GATE message, and each DBA of GATE message (DynamicBandwidthAllocation, the Dynamic Bandwidth Allocation) cycle at least issues once.If now the DBA cycle is 500uS, OLT and ONU inside all adopts the common crystals of common ± 25PPM precision, 125MHz, can calculate next time school time before maximum clock jitter Toffset:(OLT crystal oscillator be 125MHz+25PPM, ONU crystal oscillator be 125MHz-25PPM) Toffset=125MHz*50PPM*8ns*0.0005s=25nS; Can find out, in the present invention, OLT and ONU uses prevailing crystal oscillator, and can greatly improve synchronous precision, this precision reaches nanosecond; Enormously simplify the framework of system simultaneously, reduce the cost of system.
Accompanying drawing explanation
Below by clearly understandable mode, accompanying drawings preferred implementation, is further described above-mentioned characteristic, technical characteristic, advantage and implementation thereof.
Fig. 1 is the synchronous data sampling method flow schematic diagram based on ethernet passive optical network in the present invention;
Fig. 2 is the synchronous schematic diagram of the sampling instant of 2 ONU in the present invention.
Embodiment
Be illustrated in figure 1 the synchronous data sampling method flow schematic diagram based on ethernet passive optical network provided by the invention, it is in existing ethernet passive optical network technical foundation, by in the filling field that respectively synchronized sampling information (comprising the first synchronized sampling information and the second synchronized sampling information) is attached to the GATE message periodically issued, (Ethernet specifies that minimum message length is 64 bytes, message length carries out polishing less than filling " 0 " field during 64 byte) transmit, ONU is according to the synchronized sampling information extracted in GATE message subsequently, to realize the synchronous data sampling of the whole network ONU terminal room.
Synchronous data sampling method based on ethernet passive optical network provided by the invention, comprises the following steps:
S1OLT finds range to ONU and obtains trip path time delay, obtains downlink path time delay with this;
S2OLT generates the first synchronized sampling information comprising trip path time delay, and the first synchronized sampling information is issued to corresponding ONU;
S3ONU, according to the first synchronized sampling information received, produces period 1 property sampling pulse after compensating the path delay of time;
S4ONU carries out correction according to the second synchronized sampling information that OLT issues to period 1 property sampling pulse and produces Secondary periodicity sampling pulse;
The period 1 property sampling pulse that S5 data acquisition system sends according to ONU or Secondary periodicity sampling pulse carry out synchronous data collection, and synchrodata are packed together with the synchronized sampling moment and be uploaded to OLT, to obtain synchrodata.
Specifically, in step sl, trip path time delay RTT comprises up path time delay Tup and downlink path time delay Tdown; Wherein, up path time delay comprise the OLT up processing time (OLT receives the light signal that comprises ONU local timestamp value to this light signal being converted to the signal of telecommunication and extracting the time delay between ONU local timestamp value), the ONU up processing time (ONU local timestamp value is stamped GATE message so far GATE message transmit by the signal of telecommunication is converted to light signal between time delay) and uplink optical fibers channel transfer time; Downlink path time delay comprise the OLT downlink processing time (in ranging process OLT local timestamp value is stamped GATE message so far GATE message transmit by the signal of telecommunication is converted to light signal between time delay), ONU downlink processing time (ONU receives the light signal that comprises OLT local timestamp value to this light signal being converted to the signal of telecommunication and extracting the time delay between OLT local timestamp value) and downlink optical fiber channel transfer time.
Based on the above description to trip path time delay RTT, we are described the downlink path time delay Tdown obtaining ONU below: first, obtain the OLT up processing time respectively, the ONU up processing time, the uplink optical fibers channel transfer time, the OLT up processing time, ONU up processing time and downlink optical fiber channel transfer time, wherein, RTT (coming and going loop time delay)=Tdown (downlink path time delay)+Tup (up path time delay), Tdown (downlink path time delay)=T1 (OLT downlink processing time+ONU downlink processing time)+T2 (downlink optical fiber transmission time), Tup (up path time delay)=T3 (OLT+ONU of up processing time up processing time)+T4 (uplink optical fibers transmission time).Secondly, consider that between OLT and ONU, up processing time and downlink processing time exist asymmetric, thus between downlink path time delay Tdown and trip path time delay RTT/2, have a very little difference, therefore we are revised this difference by corrected parameter Tcor in the present invention, and obtain this corrected parameter by formula Tcor=(T1-T3)/2, and then obtain downlink path time delay Tdown=RTT/2+Tcor.Be noted that in the present invention, OLT uplink/downlink processing time and ONU uplink/downlink processing time will be determined according to the situation of reality; Again because up-downgoing optical fiber transmission path is consistent, therefore downlink optical fiber transmission time T2 and uplink optical fibers transmission time T4 approximately equal, therefore, namely can obtain downlink path time delay Tdown by describing above.And in a particular embodiment, OLT obtains described downlink path time delay Tdown or described ONU according to the described trip path time delay RTT obtained and obtains described downlink path time delay Tdown according to the described trip path time delay RTT received, namely after having recorded trip path time delay RTT, no matter can obtain downlink path time delay Tdown according to said process at OLT or in ONU end, specifically calculate in the olt or in ONU, can select according to actual conditions.
In step s 2, OLT generates the first synchronized sampling information comprising trip path time delay, and the filling field inside that the first synchronized sampling information is attached to GATE message by OLT is issued to corresponding ONU.Specifically comprise the following steps:
S21OLT, according to local clock or time counter, produces a sampling pulse sequence according to a sampling period T;
S22OLT obtains current OLT local timestamp value Tsa according to the rising edge edge of sampling pulse in sampling pulse sequence, and obtain the first synchronized sampling moment Ts according to OLT local timestamp value Tsa, and the first synchronized sampling moment Ts is received the moment of GATE message as ONU.In the present invention, be in after ONU receives the GATE message moment in order to ensure the first synchronized sampling moment Ts, need for ONU retains certain pretreatment time before sampling, thus, the following condition of the first synchronized sampling moment Ts demand fulfillment: Ts=Tsa+ (N+1) * T, wherein, N is 1,2......, Ts was the first synchronized sampling moment, and T is the sampling period; N*T >=RTT+1024, wherein, N gets the minimum value meeting this formula, and RTT is trip path time delay.
S23OLT generates the first synchronized sampling information in conjunction with the first synchronized sampling moment, sampling period and trip path time delay and/or downlink path time delay.Be noted that and include the first synchronized sampling moment, sampling period and trip path time delay in the first synchronized sampling information; Or comprise in the first synchronized sampling information and include the first synchronized sampling moment, sampling period and downlink path time delay; Or comprise in the first synchronized sampling information and include the first synchronized sampling moment, sampling period, downlink path time delay and trip path time delay.If include trip path time delay in the first synchronized sampling information, then in ONU, first calculate downlink path time delay by the description in step S1.
S24OLT is issued to ONU with the first synchronized sampling information being attached to the filling field intercycle property of GATE message, and table 1 is the GATE message that addition of the first synchronized sampling information, and in table, thick lines square internal information is the first additional synchronized sampling information.ONU produces the pulse of period 1 property according to the first synchronized sampling information received.
Table 1: the GATE message that addition of the first synchronized sampling information
As an embodiment, we are to obtaining trip path time delay RTT in OLT and the process obtaining downlink path time delay Tdown is described in detail:
First, OLT carries out initialization, produces the sampling instant sequence that one-period is T based on local time stamp counter by a sampled reference time simultaneously; Suppose, the sampled reference time in local time stamp counter is Tinit, then first sampling instant is Tinit+T, and second sampling instant is Tinit+2T, the like.
Subsequently, OLT wait-receiving mode effective ONU registration request (REGISTER_REQ) message, or receive effective ONU report (REPORT) message;
Finally, after OLT have received above-mentioned message, analytic message is started immediately.The timestamp comprised in extraction message carries out range finding and obtains trip path time delay RTT, calculate downlink path time delay Tdown=RTT/2+Tcor, calculate an effective synchronized sampling moment simultaneously, and these synchronized sampling information (as synchronous sampling instant, downlink path time delay Tdown and sampling period T) are added in the PAD/Reserved field of mandate (GATE) message.
In step s3, ONU according to have received the first synchronized sampling information (as, comprise the first synchronized sampling moment Ts, sampling period T and downlink path time delay Tdown) after, obtain according to the first synchronized sampling moment Ts and downlink path time delay Tdown in this first synchronized sampling information the ONU synchronized sampling moment (Ts-Tdown) that ONU produces periodic samples pulse immediately, and generate local period 1 property sampling pulse according to an ONU synchronized sampling moment (Ts-Tdown).
In step s 4 which, the second synchronized sampling information comprises: the second synchronized sampling moment Ts2, sampling period T and trip path time delay RTT and/or downlink path time delay Tdown.Here we are noted that, in the present invention, in theory, second synchronized sampling information is the same with the content comprised in the first synchronized sampling information, comprising for the second synchronized sampling moment is all identical with the first synchronized sampling moment, uniquely unlike, it is different with the time of the second synchronized sampling information that ONU receives the first synchronized sampling information, in order to be distinguished, therefore we define the second synchronized sampling information.Specifically, ONU carries out correction according to the second synchronized sampling information that OLT issues to period 1 property sampling pulse and comprises the following steps:
S41ONU receives the second synchronized sampling information, and obtains according to the second synchronized sampling moment Ts2 and downlink path time delay Tdown in the second synchronized sampling information the 2nd ONU synchronized sampling moment (Ts2-Tdown) that ONU produces recurrent pulses;
S42ONU ((Ts-Tdown-T/2)≤t < (Ts-Tdown+T/2)) within a sampling period in an ONU synchronized sampling moment (Ts-Tdown) finds a local sampling pulse Ts1, and judges whether the sampling instant Ts1 that local sampling pulse is corresponding has deviation with the 2nd ONU synchronized sampling moment (Ts2-Tdown);
If S43 has deviation, then using the 2nd ONU synchronized sampling moment (Ts2-Tdown) as the new synchronized sampling moment, the Secondary periodicity sampling pulse produced according to the 2nd ONU synchronized sampling moment (Ts2-Tdown) is replaced the period 1 property sampling pulse produced in step s3 simultaneously, complete the correction to period 1 property sampling pulse.If there is no deviation, then illustrate that period 1 property sampling pulse does not need to correct.
In step s 5, the period 1 property sampling pulse that data acquisition system sends according to ONU or Secondary periodicity sampling pulse carry out synchronous data collection, and synchrodata and the first synchronized sampling moment Ts or the second synchronized sampling moment Ts2 are packed together be uploaded to OLT, to obtain synchrodata.Be noted that, in the present invention, except the first synchronized sampling moment Ts or the second synchronized sampling moment Ts2 is sent to except OLT as the variable packing being used for distinguishing sampled point, can also use in other embodiments if SmpCnt in IEC61850-9-2 message is as the variable distinguishing sampled point, be not specifically limited in the present invention.After OLT receives the synchrodata that ONU sends, by distinguishing SmpCnt in synchronized sampling moment Ts in the image data bag uploaded of ONU or IEC61850-9-2 message or other is used for distinguishing the variable of sampled point, obtain synchrodata.
As a complete embodiment, we generate period 1 property sampling pulse process after receiving the first synchronized sampling information to ONU is described in detail:
First, ONU receives one and comprises effective first synchronized sampling authorizing information (GATE) message.
And then, ONU determines whether this synchronized sampling information that first time receives, if, then ONU starts to resolve this entitlement message, extract comprising the first synchronized sampling information, produce a local period 1 property sampling pulse (cycle is T), wherein, in this period 1 property sampling pulse, first ONU synchronized sampling moment is (Ts-Tdown), second ONU synchronized sampling moment is (Ts-Tdown+T), the like, be noted that, in the present invention, an ONU synchronized sampling moment is above-mentioned first ONU synchronized sampling moment, contrary, if not first time receives synchronized sampling information, then analytic message, extract the second synchronized sampling information, calculate the 2nd ONU synchronized sampling moment (Ts2-Tdown) made new advances, and find a local sampling pulse Ts1 within (Ts-Tdown-T/2)≤t < (Ts-Tdown+T/2) period, judge whether Ts1 has deviation with the new synchronized sampling moment (Ts2-Tdown) simultaneously, if there is deviation, then by with the new synchronized sampling moment (Ts2-Tdown) for starting point, produce Secondary periodicity sampling pulse, and this locality period 1 property sampling pulse and Secondary periodicity sampling pulse are replaced.
Finally, carry out synchronous data sampling by the sampling pulse control data acquisition system of above-mentioned generation, and the data after gathering are packed and uploaded together with sampling instant Ts.
Because system comprises multiple ONU, therefore, we are described the sample-synchronous in the present invention between 2 ONU (being specially following ONU-A and ONU-B) below, specifically comprise:
First, OLT, in the T1 moment, issues a GATE1 message to ONU-A, comprises the first synchronized sampling moment Ts, downlink path time delay TdownA, sampling period T; OLT, in the T2 moment, issues a GATE2 message to ONU-B, comprises the first synchronized sampling moment Ts, downlink path time delay TdownB, sampling period T;
Then, when ONU-A receives GATE1 message, local time stamp counter is updated to T1, and according to the synchronized sampling information in message, calculates the synchronized sampling moment TsA=Ts-TdownA after compensating the path delay of time.
When ONU-B receives GATE2 message, local time stamp counter is updated to T2, and according to the synchronized sampling information in message, calculates the synchronized sampling moment TsB=Ts-TdownB after compensating the path delay of time.
As shown in Figure 2, Ts, TsA, TsB tri-sampling instants are Complete Synchronizations on absolute time countershaft, and therefore ONU-A and ONU-B sampled data also Complete Synchronization, achieves the Complete Synchronization between two ONU with this, and multiple ONU by that analogy.。
It should be noted that above-described embodiment all can independent assortment as required.The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (9)
1., based on a synchronous data sampling method for ethernet passive optical network, it is characterized in that, comprise the following steps:
S1OLT finds range to ONU and obtains trip path time delay, obtains downlink path time delay with this;
OLT described in S2 generates the first synchronized sampling information comprising described trip path time delay, and described first synchronized sampling information is issued to corresponding ONU;
ONU described in S3, according to the described first synchronized sampling information received, produces period 1 property sampling pulse after compensating the path delay of time;
ONU described in S4 carries out correction according to the second synchronized sampling information that described OLT issues to described period 1 property sampling pulse and produces Secondary periodicity sampling pulse;
The described period 1 property sampling pulse that S5 data acquisition system sends according to ONU or described Secondary periodicity sampling pulse carry out synchronous data collection, and described synchrodata are packed together with the synchronized sampling moment and be uploaded to described OLT, to obtain synchrodata.
2., as claimed in claim 1 based on the synchronous data sampling method of ethernet passive optical network, it is characterized in that: described trip path time delay comprises up path time delay and downlink path time delay; Wherein,
Described up path time delay comprises OLT up processing time, ONU up processing time and uplink optical fibers channel transfer time;
Described downlink path time delay comprises OLT downlink processing time, ONU downlink processing time and downlink optical fiber channel transfer time.
3. as claimed in claim 2 based on the synchronous data sampling method of ethernet passive optical network, it is characterized in that, in step sl, described OLT obtains described downlink path time delay according to the described trip path time delay obtained or described ONU obtains described downlink path time delay according to the described trip path time delay received, and specifically comprises:
S11 obtains OLT up processing time, ONU up processing time and uplink optical fibers channel transfer time respectively;
S12 obtains OLT downlink processing time, ONU downlink processing time and downlink optical fiber channel transfer time respectively;
S13 obtains the corrected parameter in processing time between described OLT and described ONU according to described OLT up processing time, ONU up processing time, OLT downlink processing time and ONU downlink processing time;
S14 obtains described downlink path time delay according to described trip path time delay and described corrected parameter.
4. the synchronous data sampling method based on ethernet passive optical network as described in claim 1-3 any one, it is characterized in that, in step s 2, described OLT generates the first synchronized sampling information comprising described trip path time delay, and the filling field inside that described first synchronized sampling information is attached to GATE message by described OLT is issued to corresponding ONU.
5. as claimed in claim 4 based on the synchronous data sampling method of ethernet passive optical network, it is characterized in that: in step S2, described OLT generates the first synchronized sampling information comprising described trip path time delay, and the filling field inside that described first synchronized sampling information is attached to GATE message by described OLT is issued to corresponding ONU, specifically comprises:
OLT described in S21, according to local clock or time counter, produces a sampling pulse sequence according to a sampling period;
OLT described in S22 obtains current OLT local timestamp value according to the rising edge edge of sampling pulse in described sampling pulse sequence, and obtained for the first synchronized sampling moment according to described OLT local timestamp value, and the described first synchronized sampling moment is received the moment of GATE message as described ONU;
OLT described in S23 generates described first synchronized sampling information in conjunction with described first synchronized sampling moment, described sampling period and described trip path time delay and/or described downlink path time delay;
The filling field inside that described first synchronized sampling information is attached to GATE message is issued to ONU by OLT described in S24.
6. as claimed in claim 5 based on the synchronous data sampling method of ethernet passive optical network, it is characterized in that: in step s3, described ONU, according to the described first synchronized sampling information received, produces period 1 property sampling pulse, specifically comprises after compensating the path delay of time:
Described ONU receives described first synchronized sampling information, and obtain according to the described first synchronized sampling moment in described first synchronized sampling information and described downlink path time delay the ONU synchronized sampling moment that described ONU produces periodic samples pulse, and generate local period 1 property sampling pulse according to a described ONU synchronized sampling moment.
7. as claimed in claim 6 based on the synchronous data sampling method of ethernet passive optical network, it is characterized in that, in step s 4 which, described second synchronized sampling information comprises: the second synchronized sampling moment, described sampling period and described trip path time delay and/or described downlink path time delay.
8., as claimed in claim 7 based on the synchronous data sampling method of ethernet passive optical network, it is characterized in that:
In step s 4 which, the second synchronized sampling information that described ONU issues according to described OLT corrects described period 1 property sampling pulse, specifically comprises:
ONU described in S41 receives described second synchronized sampling information, and obtains according to the described second synchronized sampling moment in described second synchronized sampling information and described downlink path time delay the 2nd ONU synchronized sampling moment that described ONU produces recurrent pulses;
ONU described in S42 finds a local sampling pulse within a sampling period in a described ONU synchronized sampling moment, and judges whether the sampling instant that described local sampling pulse is corresponding is carved with deviation with during described 2nd ONU synchronized sampling;
If S43 has deviation, then using the described 2nd ONU synchronized sampling moment as the new synchronized sampling moment, the Secondary periodicity sampling pulse produced according to the described 2nd ONU synchronized sampling moment is replaced the period 1 property sampling pulse produced in step s3 simultaneously, complete the correction to described period 1 property sampling pulse.
9. as claimed in claim 8 based on the synchronous data sampling method of ethernet passive optical network, it is characterized in that: in step s 5, data acquisition system sends period 1 property sampling pulse according to ONU or described Secondary periodicity sampling pulse carries out synchronous data collection, and described synchrodata and described first synchronized sampling moment or described second synchronized sampling moment are packed together be uploaded to described OLT, to obtain synchrodata.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510333121.2A CN105281860B (en) | 2015-06-16 | 2015-06-16 | A kind of synchronous data sampling method based on ethernet passive optical network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510333121.2A CN105281860B (en) | 2015-06-16 | 2015-06-16 | A kind of synchronous data sampling method based on ethernet passive optical network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105281860A true CN105281860A (en) | 2016-01-27 |
CN105281860B CN105281860B (en) | 2018-01-16 |
Family
ID=55150271
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510333121.2A Active CN105281860B (en) | 2015-06-16 | 2015-06-16 | A kind of synchronous data sampling method based on ethernet passive optical network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105281860B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341744A (en) * | 2016-11-09 | 2017-01-18 | 云南电网有限责任公司昆明供电局 | System and method for testing synchronization feature of synchronous passive optical network |
WO2018120549A1 (en) * | 2016-12-29 | 2018-07-05 | 深圳市中兴微电子技术有限公司 | Method and device for processing time stamp in ethernet passive optical network, and storage medium |
CN110855758A (en) * | 2019-10-28 | 2020-02-28 | 湖南文理学院 | Oil-immersed intelligent power transformer data processing system |
CN111327445A (en) * | 2018-12-17 | 2020-06-23 | 中兴通讯股份有限公司 | Message sampling method, decapsulation method, node, system and storage medium |
TWI747311B (en) * | 2020-04-20 | 2021-11-21 | 英華達股份有限公司 | Sampling rate correction method, system, apparatus and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101431385A (en) * | 2008-08-26 | 2009-05-13 | 中兴通讯股份有限公司 | Frequency and time synchronization method for passive optical network |
US20090162063A1 (en) * | 2007-12-21 | 2009-06-25 | Masahiko Mizutani | Network system, optical network unit and optical line terminal |
CN103905933A (en) * | 2014-04-25 | 2014-07-02 | 国家电网公司 | Time synchronization method and system for Ethernet passive optical network and related device |
CN104506269A (en) * | 2014-12-22 | 2015-04-08 | 上海交通大学 | High-precision optical fiber two-way time transmission method and system based on loopback method |
-
2015
- 2015-06-16 CN CN201510333121.2A patent/CN105281860B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090162063A1 (en) * | 2007-12-21 | 2009-06-25 | Masahiko Mizutani | Network system, optical network unit and optical line terminal |
CN101431385A (en) * | 2008-08-26 | 2009-05-13 | 中兴通讯股份有限公司 | Frequency and time synchronization method for passive optical network |
CN103905933A (en) * | 2014-04-25 | 2014-07-02 | 国家电网公司 | Time synchronization method and system for Ethernet passive optical network and related device |
CN104506269A (en) * | 2014-12-22 | 2015-04-08 | 上海交通大学 | High-precision optical fiber two-way time transmission method and system based on loopback method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341744A (en) * | 2016-11-09 | 2017-01-18 | 云南电网有限责任公司昆明供电局 | System and method for testing synchronization feature of synchronous passive optical network |
CN106341744B (en) * | 2016-11-09 | 2019-10-22 | 云南电网有限责任公司昆明供电局 | A kind of system and method for testing synchronous passive optical network synchronizing characteristics |
WO2018120549A1 (en) * | 2016-12-29 | 2018-07-05 | 深圳市中兴微电子技术有限公司 | Method and device for processing time stamp in ethernet passive optical network, and storage medium |
CN108259106A (en) * | 2016-12-29 | 2018-07-06 | 深圳市中兴微电子技术有限公司 | A kind of time stamp treating method and apparatus in Ethernet passive optical network |
CN111327445A (en) * | 2018-12-17 | 2020-06-23 | 中兴通讯股份有限公司 | Message sampling method, decapsulation method, node, system and storage medium |
CN111327445B (en) * | 2018-12-17 | 2023-09-12 | 中兴通讯股份有限公司 | Message sampling method, message unpacking method, node, system and storage medium |
CN110855758A (en) * | 2019-10-28 | 2020-02-28 | 湖南文理学院 | Oil-immersed intelligent power transformer data processing system |
TWI747311B (en) * | 2020-04-20 | 2021-11-21 | 英華達股份有限公司 | Sampling rate correction method, system, apparatus and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105281860B (en) | 2018-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102136900B (en) | Time synchronization method for passive optical network, device and system | |
CN107294634B (en) | The centralized approach of 1588 time synchronizations is realized in a kind of distributed system | |
CN104836630B (en) | IEEE1588 clock synchronization system and implementation method therefor | |
CN105281860A (en) | Data synchronous acquisition method based on Ethernet passive optical network | |
TWI485996B (en) | Apparatus and method for enabling a passive optical network on supporting time synchronization | |
CN102332973B (en) | Real-time communication and clock synchronization method of chain network | |
JP5811794B2 (en) | Communication device | |
CN101577600B (en) | Time synchronization method, system and optical network equipment for passive optical network system | |
CN103532652B (en) | A kind of time synchronism apparatus and method | |
CN108650051A (en) | The clock synchronization apparatus and method of general devices at full hardware single step 1588 | |
US20200195363A1 (en) | Packet Processing Method and Network Device | |
CN102244603B (en) | Method, equipment and system for transmitting message bearing time | |
CN106027193B (en) | For the clock synchronizing method of time calibration in network system, module, equipment and system | |
WO2012151808A1 (en) | Method and system for improving synchronization precision based on precision time protocol | |
CN101834712A (en) | Method for realizing accurate time synchronization by utilizing IEEE1588 protocol | |
CN103368137B (en) | Multi-terminal self-repairing data synchronization differential protection method based on network self-repairing | |
CN102315985A (en) | Time synchronization precision test method for intelligent device adopting IEEE1588 protocols | |
WO2012065334A1 (en) | Method, device and system for realizing time synchronization in time division multiplexing network | |
CN101425865A (en) | Method and system for synchronizing clock of transmission network as well as subordinate clock side entity | |
CN102932083A (en) | Microwave time synchronization method and device | |
CN104468014A (en) | Method for improving time synchronization precision under complex network environment | |
CN109756290A (en) | A kind of signal system accurate time synchronization method based on 1588 agreement of IEEE | |
CN109921871A (en) | A kind of method for synchronizing time, device and network system | |
CN102916758A (en) | Ethernet time synchronization device and network equipment | |
CN103199950B (en) | A kind of E1 of employing special line carries out the method for split-second precision transmission |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |