CN104598195A - Method and system for improving clock stability analysis - Google Patents

Method and system for improving clock stability analysis Download PDF

Info

Publication number
CN104598195A
CN104598195A CN201410797540.7A CN201410797540A CN104598195A CN 104598195 A CN104598195 A CN 104598195A CN 201410797540 A CN201410797540 A CN 201410797540A CN 104598195 A CN104598195 A CN 104598195A
Authority
CN
China
Prior art keywords
sum
arithmetic unit
central arithmetic
accumulated value
data
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.)
Pending
Application number
CN201410797540.7A
Other languages
Chinese (zh)
Inventor
朱天全
鲍胜青
陈立仓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing OPWILL Technologies Co Ltd
Original Assignee
Beijing OPWILL Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing OPWILL Technologies Co Ltd filed Critical Beijing OPWILL Technologies Co Ltd
Priority to CN201410797540.7A priority Critical patent/CN104598195A/en
Publication of CN104598195A publication Critical patent/CN104598195A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

The invention discloses a method for improving clock stability analysis. The method includes the steps that 1, N sampled data are acquired and sent to a center arithmetic unit; 2, the center arithmetic unit receives the N sampled data, calculates a first accumulated value Sum(j) and sends the first accumulated value Sum(j) to a data storage unit; 3, the data storage unit receives the Sum(j) sent by the center arithmetic unit and stores the Sum(j); 4, the center arithmetic unit calls the Sum(j) form the data storage unit, calculates Sum(j+1), and sends the Sum(j+1) to the data storage unit; 5, the data storage unit stores the Sum(j+1); 6, the step 4 and the step 5 are repeated, after the center arithmetic unit calculates all Sums from Sum(1) to Sum(N-3n+1), the center arithmetic unit calculates the value (please see the formula in the specifications); 7, the center arithmetic unit calculates time deviation TDEV(ntao0), and sends the time deviation to a data display unit; 8, the data display unit receives and displays the time deviation TDEV(ntao0). The invention further discloses a system for improving clock stability analysis. An algorithm is simple, and previous calculation results can be repeatedly used.

Description

A kind of method and system improving clock stability and analyze
Technical field
The present invention relates to technical field of data processing, specifically, relate to a kind of method and system improving clock stability and analyze.
Background technology
In clock test field, MTIE (MTIE) and time deviation (TDEV) two indices are all the degree of stability representing that clock is long-term, and this two indices is extremely important in PTN and IPRAN transmission network popular now.
MTIE (MTIE) refers within a measuring period, in a given window, maximum phase change is called MTIE, is used to the peak-peak value of phase place change and a technical indicator of frequency cancellation in constraint network interface.Time deviation (TDEV) is the index of the specific composition scope using phase place on network interface.TDEV and MTIE is the two kinds of methods characterizing clock phase variation characteristic, and within same observing time, both MTIE are identical, but TDEV value just may have very big difference, and TDEV reflects this characteristic of clock signal just.Instrument calculates MTIE and TDEV after carrying out long-time clock accuracy test to testing apparatus, to judge whether this testing apparatus clock meets the standards such as ITUG.811.Wherein the algorithmic formula of TDEV is:
TDEV ( nτ 0 ) = 1 6 n 2 ( N - 3 n + 1 ) Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2
Wherein: n is the sampling number in observing time, N is the sum of data from the sample survey, τ 0for the time interval between adjacent sampled value.
There is following shortcoming in the Time warp used when analyzing clock stability in prior art:
Very complicated by the formula of TDEV its algorithm visible, when sampling point data are large, operand is very large, low at cpu frequency, memory size is little, in the embedded OS that various software and hardware condition is all very limited, it is very painstaking that calculating TDEV shows, and tester usually needs to wait the result just seeing TDEV for a long time.
Summary of the invention
For solving the problems of the technologies described above, the invention provides a kind of method improving clock stability and analyze, comprising step:
Step 1): data acquisition unit acquires amounts to N number of sampled data, and sampled value is X 1, X 2x n, the time interval between adjacent sample values is τ 0, the sampled data in one of them watch window is n, and described N number of sampling data transmitting is delivered to central arithmetic unit;
Step 2): described central arithmetic unit receives N number of sampled data that described data acquisition unit sends, and calculates n τ according to the following equation 0the first accumulated value Sum (j) in watch window:
Sum ( j ) = Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ,
Wherein, X ibe i-th sampled value,
Described first accumulated value Sum (j) is sent to data storage cell by described central arithmetic unit;
Step 3): described data storage cell, receives the first accumulated value Sum (j) that described central arithmetic unit sends, and stores;
Step 4): calculate Sum (j+1), described central arithmetic unit transfers the first accumulated value Sum (j) from described data storage cell, utilizes following formula to carry out calculating Sum (j+1):
Sum(j+1)=[Sum(j)-(X j+2n-2X j+n+X j)+(X (n+j)+2n-2X (N+j)+n+X (n+j))] 2
First accumulated value Sum (j+1) is sent to described data storage cell and stores by described central arithmetic unit;
Step 5): described data storage cell, the first accumulated value Sum (j+1) receiving the transmission of described central arithmetic unit stores;
Step 6): repeat step 4) and 5), described central arithmetic unit calculates the second accumulated value after all being calculated by Sum (1) to Sum (N-3n+1) described second accumulated value calculate according to the following equation:
Σ j = 1 N - 3 n + 1 [ Sum ( j ) ] 2 = [ Sum ( 1 ) ] 2 + [ Sum ( 2 ) ] 2 + . . . + [ Sum ( N - 3 n + 1 ) ] 2
Step 7): described central arithmetic unit calculates n τ according to the following equation 0time deviation TDEV (n τ in watch window 0):
TDEV ( nτ 0 ) = 1 6 n 2 ( N - 3 n + 1 ) Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2
Time deviation TDEV (the n τ that described central arithmetic unit will calculate 0) value, be sent to data display unit display;
Step 8): described data display unit, receives time deviation TDEV (the n τ that described central arithmetic unit sends 0) value, show.
Preferably, described sampled data, further for clock drift signal, described sampled value represents that moment that present clock arrives should arrive relative to it mistiming in moment.
Preferably, described method, carries out further in OTM2800 time tester.
Preferably, embedded system is established in described OTM2800 time tester.
Improve the system that clock stability is analyzed, this system comprises: data acquisition unit, central arithmetic unit, storage unit and data display unit, wherein,
Described data acquisition unit, couples mutually with described central arithmetic unit, and amount to N number of sampled data for gathering, sampled value is X 1, X 2x n, the time interval between adjacent sample values is τ 0, the sampled data in one of them watch window is n, and described N number of sampling data transmitting is delivered to central arithmetic unit;
Described central arithmetic unit, couple mutually with described data acquisition unit, data storage cell and data display unit respectively, for receiving N number of sampled data that described data acquisition unit sends, receiving N number of sampled data that described data acquisition unit sends, calculating n τ according to the following equation 0the first accumulated value Sum (j) in watch window:
Sum ( j ) = Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ,
Wherein, X ibe i-th sampled value,
Described central arithmetic unit, also for described first accumulated value Sum (j) is sent to described data storage cell;
Described data storage cell, for receiving the first accumulated value Sum (j) that described central arithmetic unit sends, and stores;
Described central arithmetic unit, also for transferring the first accumulated value Sum (j) from described data storage cell, utilizes following formula to carry out calculating first accumulated value Sum (j+1):
Sum(j+1)=[Sum(j)-(X j+2n-2X j+n+X j)+(X (n+j)+2n-2X (N+j)+n+X (n+j))] 2
Described central arithmetic unit, also stores for the first accumulated value Sum (j+1) is sent to described data storage cell;
Described data storage cell, the first accumulated value Sum (j+1) also sent for receiving described central arithmetic unit stores;
Described central arithmetic unit, after also all being calculated by Sum (1) to Sum (N-3n+1) for the process of Sum described in double counting (j+1), calculates the second accumulated value described second accumulated value calculate according to the following equation:
Σ j = 1 N - 3 n + 1 [ Sum ( j ) ] 2 = [ Sum ( 1 ) ] 2 + [ Sum ( 2 ) ] 2 + . . . + [ Sum ( N - 3 n + 1 ) ] 2 ;
Described central arithmetic unit, also for calculating n τ according to the following equation 0time deviation TDEV (n τ in watch window 0):
TDEV ( nτ 0 ) = 1 6 n 2 ( N - 3 n + 1 ) Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2
Described central arithmetic unit, time deviation TDEV (the n τ also for calculating 0) value, be sent to data display unit display;
Described data display unit, for receiving time deviation TDEV (the n τ that described central arithmetic unit sends 0) value, show.
Preferably, described sampled data, further for clock drift signal, described sampled value represents that moment that present clock arrives should arrive relative to it mistiming in moment.
Preferably, the system that described raising clock stability is analyzed, is, OTM2800 time tester further
Preferably, embedded system is established in described OTM2800 time tester.
Compared with prior art, the method and system that raising clock stability of the present invention is analyzed, reach following effect:
Algorithm is simple, and can reuse former result of calculation: the analytical approach in the present invention, compared with the key algorithm part of the TDEV of prior art, greatly reduces computational complexity, in the method for prior art Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2 Carry out dual cumulative process, but the method for this patent needs except first time computing the computing carrying out one-accumulate, preserve lower Sum (x), later computational complexity is each time by being then reduced to Sum (x) * (X (x)+2n-2X (x)+n+ X (x))+(X (n+x)+2n-2X (N+x)+n+ X (n+x)), in the computing of big data quantity, this algorithm can reduce algorithm complex greatly, saves CPU time, thus accomplishes the result of calculation providing TDEV faster.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the method flow diagram that prior art clock signal is analyzed;
Fig. 2 is the method flow diagram that the raising clock stability of the present embodiment one is analyzed;
Fig. 3 is the system construction drawing that the raising clock stability of the present embodiment one is analyzed.
Embodiment
As employed some vocabulary to censure specific components in the middle of instructions and claim.Those skilled in the art should understand, and hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of title the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " as mentioned in the middle of instructions and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to "." roughly " refer to that in receivable error range, those skilled in the art can solve the technical problem within the scope of certain error, reach described technique effect substantially.In addition, " couple " word and comprise directly any and indirectly electric property coupling means at this.Therefore, if describe a first device in literary composition to be coupled to one second device, then represent described first device and directly can be electrically coupled to described second device, or be indirectly electrically coupled to described second device by other devices or the means that couple.Instructions subsequent descriptions is for implementing better embodiment of the present invention, and right described description is to illustrate for the purpose of rule of the present invention, and is not used to limit scope of the present invention.Protection scope of the present invention is when being as the criterion depending on the claims person of defining.
Below in conjunction with accompanying drawing, the present invention is described in further detail, but not as a limitation of the invention.
Embodiment one:
Composition graphs 2 and Fig. 3, present embodiments provide a kind of method improving clock stability and analyze, comprise the following steps:
Step 1): data acquisition unit acquires amounts to N number of sampled data, and sampled value is X 1, X 2x n, the time interval between adjacent sample values is τ 0, the sampled data in one of them watch window is n, and described N number of sampling data transmitting is delivered to central arithmetic unit;
Data acquisition unit is arranged in OTM2800 time tester of the present invention.Here budget of the Central Committee unit can be the dominant frequency 400Mhz of CPU, CPU further, can be also other arithmetical unit, be not specifically limited here.X in this step 1, X 2x nbe the sampled value of clock signal data, sampled value can for being more than or equal to 100000 signal datas, and also can be less than or equal to 100000 signal datas, in the present invention, data be more, and the time of saving is also more.
Step 2): described central arithmetic unit receives N number of sampled data that described data acquisition unit sends, and calculates n τ according to the following equation 0the first accumulated value Sum (j) in watch window:
Sum ( j ) = Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ,
Wherein, X ibe i-th sampled value,
Described first accumulated value Sum (j) is sent to data storage cell and stores by described central arithmetic unit;
Step 3): described data storage cell, receives the first accumulated value Sum (j) that described central arithmetic unit sends, and stores;
It should be noted that: here data storage cell the first accumulated value Sum (j) is stored be conveniently subsequent calls time use, such as first time computing calculates Sum (1), so needs according to Sum (j+1)=[Sum (j)-(X when calculating Sum (2) j+2n-2X j+n+ X j)+(X (n+j)+2n-2X (N+j)+n+ X (n+j))] 2calculate, computation process just can call Sum (j) here, reduces CPU operation times.
Step 4): calculate Sum (j+1), described central arithmetic unit transfers the first accumulated value Sum (j) from described data storage cell, and Sum (j+1) utilizes following formula to calculate:
Sum(j+1)=[Sum(j)-(X j+2n-2X j+n+X j)+(X (n+j)+2n-2X (N+j)+n+X (n+j))] 2
First accumulated value Sum (j+1) is sent to described data storage cell and stores by described central arithmetic unit;
Step 5): described data storage cell, the first accumulated value Sum (j+1) receiving the transmission of described central arithmetic unit stores;
Step 6): repeat step 4) and 5), described central arithmetic unit calculates the second accumulated value after all being calculated by Sum (1) to Sum (N-3n+1) described second accumulated value calculate according to the following equation:
Σ j = 1 N - 3 n + 1 [ Sum ( j ) ] 2 = [ Sum ( 1 ) ] 2 + [ Sum ( 2 ) ] 2 + . . . + [ Sum ( N - 3 n + 1 ) ] 2
Step 7): described central arithmetic unit calculates n τ according to the following equation 0time deviation TDEV (n τ in watch window 0):
TDEV ( nτ 0 ) = 1 6 n 2 ( N - 3 n + 1 ) Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2
Time deviation TDEV (the n τ that described central arithmetic unit will calculate 0) value, be sent to data display unit display;
Step 8): described data display unit, receives time deviation TDEV (the n τ that described central arithmetic unit sends 0) value, show.
It should be noted that, the described sampled data of data acquisition unit acquires in the present invention, further for clock drift signal, described sampled value represents that moment that present clock arrives should arrive relative to it mistiming in moment.
Said method, all carries out in OTM2800 time tester of the present invention, and can also arrange embedded system in this OTM2800 time tester.
As can be known from Fig. 3, the present invention is a kind of system improving clock stability and analyze also, and this system comprises: data acquisition unit 301, central arithmetic unit 302, storage unit 303 and data display unit 304, wherein,
Described data acquisition unit 301, couples mutually with described central arithmetic unit 302, and amount to N number of sampled data for gathering, sampled value is X 1, X 2x n, the time interval between adjacent sample values is τ 0, the sampled data in one of them watch window is n, and described N number of sampling data transmitting is delivered to central arithmetic unit 302;
Described central arithmetic unit 302, couples mutually with described data acquisition unit 301, storage unit 303 and data display unit 304 respectively, for receiving N number of sampled data that described data acquisition unit 301 sends, calculates n τ according to the following equation 0the first accumulated value Sum (j) in watch window:
Sum ( j ) = Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ,
Wherein, X ibe i-th sampled value,
Described central arithmetic unit 302, also for described first accumulated value Sum (j) is sent to described data storage cell 303;
Described data storage cell 303, for receiving the first accumulated value Sum (j) that described central arithmetic unit 302 sends, and stores;
Described central arithmetic unit 302, also for transferring the first accumulated value Sum (j) from described data storage cell, utilizes following formula to carry out calculating Sum (j+1):
Sum(j+1)=[Sum(j)-(X j+2n-2X j+n+X j)+(X (n+j)+2n-2X (N+j)+n+X (n+j))] 2
Described central arithmetic unit 302, also for the first accumulated value Sum (j+1) is sent to described data storage cell 303;
Described data storage cell 303, the first accumulated value Sum (j+1) sent for receiving described central arithmetic unit 302 stores;
Described central arithmetic unit 302, after also all being calculated by Sum (1) to Sum (N-3n+1) for the process of Sum described in double counting (j+1), calculates the second accumulated value described second accumulated value calculate according to the following equation:
Σ j = 1 N - 3 n + 1 [ Sum ( j ) ] 2 = [ Sum ( 1 ) ] 2 + [ Sum ( 2 ) ] 2 + . . . + [ Sum ( N - 3 n + 1 ) ] 2 ;
Here be exactly repeat " described central arithmetic unit 302, also for transferring the first accumulated value Sum (j) from described data storage cell, utilizes following formula to carry out calculating Sum (j+1):
Sum (j+1)=[Sum (j)-(X j+2n-2X j+n+ X j)+(X (n+j)+2n-2X (N+j)+n+ X (n+j))] 2, described central arithmetic unit 302, also for the first accumulated value Sum (j+1) is sent to described data storage cell 303; Described data storage cell 303, the first accumulated value Sum (j+1) sent for receiving described central arithmetic unit 302 stores; " these functions, by Sum (1), Sum (2),, Sum (N-3n+1) all calculates, here compared to prior art, save a lot of calculating process, decrease repetitive operation.
Described central arithmetic unit 302, also for calculating n τ according to the following equation 0time deviation TDEV (n τ in watch window 0):
TDEV ( nτ 0 ) = 1 6 n 2 ( N - 3 n + 1 ) Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2
Described central arithmetic unit 302, time deviation TDEV (the n τ also for calculating 0) value, be sent to data display unit 304 and show;
Described data display unit 304, for receiving time deviation TDEV (the n τ that described central arithmetic unit 302 sends 0) value, show.
The system that raising clock stability provided by the invention is analyzed be OTM2800 time tester further, and this OTM2800 time tester can also be provided with embedded system.
Sampled data described in the present invention is clock drift signal, and sampled value represents that moment that present clock arrives should arrive relative to it mistiming in moment.Such as present clock should arrive in the 5th second, but the true time arrived is 5.1 seconds, and sampled value is then 5.1-5=0.1 second.
Technical scheme of the present invention realizes based on following formula:
As can be seen from the formula of TDEV, the part that operand is larger is
Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2 , Need to carry out the secondary (X of (N-3n+1) * (n+j-1) i+2n-2X i+n+ X i) computing.Wherein contain a large amount of repetitive operations, waste CPU time and internal memory, so do following derivation to this formula:
As j=x, definition Square ( x ) = [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2
= [ Σ i = x n + x - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2 = [ ( X ( x ) + 2 n - 2 X ( x ) + n + X ( x ) ) + ( X ( x + 1 ) + 2 - 2 X ( x + 1 ) + n + X ( x + 1 ) ) + ( X ( x + 2 ) + 2 n - 2 X ( x + 2 ) + n + X ( x + 2 ) ) + . . . + ( X ( n + x - 1 - 1 ) + 2 n - 2 X ( N + x - 1 - 1 ) + n + X ( n + x - 1 - 1 ) ) + ( X ( n + x - 1 ) + 2 n - 2 X ( x + x - 1 ) + n + X ( n + x - 1 ) ) ] 2 = [ ( X ( x ) + 2 n - 2 X ( x ) + n + X ( x ) + ( X ( x + 1 ) + 2 n - 2 X ( x + 1 ) + n + X ( x + 1 ) ) + ( X ( x + 2 ) + 2 n - 2 X ( x + 2 ) + n + X ( x + 2 ) ) + . . . + ( X ( n + 2 - 2 ) + 2 n - 2 X ( N + x - 2 ) + n + X ( n + x - 2 ) ) + ( X ( n + x - 1 ) + 2 n - 2 X ( N + x - 1 ) + n + X ( n + x - 1 ) ) ] 2
Definition Sum (x)=(X (x)+2n-2X (x)+n+ X (x))+(X (x+1)+2n-2X (x+1)+n+
X (x+1))+(X (x+2)+2n-2X (x+2)+n+X (x+2))+…+(X (n+x-2)+2n-
2X (N+x-2)+n+X (n+x-2))+(X (n+x-1)+2n-2X (N+x-1)+n+X (n+x-1))
Then: Square (x)=[Sum (x)] 2
As j=x+1, definition Square ( x + 1 ) = [ Σ i = j n + j - 1 ( X i + 2 n - 2 x i + n + X i ) ] 2
= [ Σ i = x + 1 n + x + 1 - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2 = [ ( X ( x + 1 ) + 2 n - 2 X ( x + 1 ) + n + X ( x + 1 ) ) + ( X ( x + 1 + 1 ) + 2 n - 2 X ( x + 1 + 1 ) + n + X ( x + 1 + 1 ) ) + . . . + ( X ( n + x + 1 - 1 - 1 ) + 2 n - 2 X ( N + x + 1 - 1 - 1 ) + n + X ( n + x + 1 - 1 - 1 ) ) + ( X ( n + x + 1 - 1 ) + 2 n - 2 X ( N + x + 1 - 1 ) + n + X ( n + x + 1 - 1 ) ) ] 2
= [ ( X ( x + 1 ) + 2 n - 2 X ( x + 1 ) + n + X ( x + 1 ) ) + ( X ( x + 2 ) + 2 n - 2 X ( x + 2 ) + n + X ( x + 2 ) ) + . . . + ( X ( n + x - 1 ) + 2 n - 2 X ( N + x - 1 ) + n + X ( n + x - 1 ) ) + ( X ( n + x ) + 2 n - 2 X ( N + x ) + n + X ( n + x ) ) ] 2
Definition Sum (x+1)=(X (x+1)+2n-2X (x+1)+n+ X (x+1))+(X (x+2)+2n-
2X (x+2)+n+X (x+2))+…+(X (n+x-1)+2n-2X (N+x-1)+n+X (n+x-1))+
(X (n+x)+2n-2X (N+x)+n+X (n+x))
Then: Square (x+1)=[Sum (x+1)] 2
So derive formula below:
Square(x+1)=[Sum(x)-(X (x)+2n-2X (x)+n+X (x))+(X (n+x)+2n-
2X (N+x)+n+X (n+x))] 2
This shows each time computing can utilize last Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) Result.
Embodiment two:
On the basis of embodiment one, carry out analytical calculation according to the clock signal analytical approach of embodiment one and system:
In the present embodiment, utilize the system that this raising clock stability of OTM2800 time tester is analyzed, with 100000 signal datas for radix carries out computing, i.e. N=100000, n=100, τ 0=1, the deadline is general 80ms, and method and system of the present invention has saved the time completing computing greatly, and wherein N or n is larger, and the time of saving is more.
Contrast test
Method in this contrast test is the method that in prior art, clock signal is analyzed, and step is as follows:
1, data acquisition unit acquires amounts to N number of sampled data, and sampled value is X 1, X 2x n, the time interval between adjacent sample values is τ 0, the sampled data in one of them watch window is n, and described N number of sampling data transmitting is delivered to central arithmetic unit;
2, described central arithmetic unit receives N number of sampled data that described data acquisition unit sends, and calculates a n τ 0time deviation TDEV (n τ in watch window 0), calculate according to the following equation:
TDEV ( nτ 0 ) = 1 6 n 2 ( N - 3 n + 1 ) Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2 ;
Central arithmetic unit carries out repeatedly multiple accumulating operation, then after being multiplied by coefficient again evolution obtain the n τ of N number of data 0time deviation TDEV (n τ in watch window 0), be sent to described data display unit;
3, data display unit receives the n τ that central arithmetic unit sends 0time deviation TDEV (n τ in watch window 0), and show.
With 100000 signal datas for radix carries out computing, i.e. N=100000, n=100, τ 0=1, the time of contrast test deadline deviation is 3260ms, but according to method provided by the invention, the deadline is general 80ms, and found by time contrast, the present invention has saved the deadline greatly, and wherein N or n is larger, and the time of saving is more.
Compared with prior art, the method and system that raising clock stability of the present invention is analyzed, reach following effect:
Algorithm is simple, and can reuse former result of calculation: the analytical approach in the present invention, compared with the key algorithm part of the TDEV of prior art, greatly reduces computational complexity, in the method for prior art Σ j = 1 N - 3 n + 1 [ Σ i = j n + j - 1 ( X i + 2 n - 2 X i + n + X i ) ] 2 Carry out multiple accumulating operation, but method of the present invention needs to carry out one-accumulate calculating process except first time computing, preserve lower Sum (x), later computational complexity each time reduces Sum (x)-(X (x)+2n-2X (x)+n+ X (x))+(X (n+x)+2n-2X (N+x)+n+ X (n+x)), in the computing of big data quantity, this algorithm can reduce algorithm complex greatly, saves CPU time, thus accomplishes the result of calculation providing TDEV faster.
Above-mentioned explanation illustrate and describes some preferred embodiments of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.

Claims (8)

1. improve the method that clock stability is analyzed, it is characterized in that, comprise step:
Step 1): data acquisition unit acquires amounts to N number of sampled data, and sampled value is X 1, X 2x n, the time interval between adjacent sample values is τ 0, the sampled data in one of them watch window is n, and described N number of sampling data transmitting is delivered to central arithmetic unit;
Step 2): described central arithmetic unit receives N number of sampled data that described data acquisition unit sends, and calculates n τ according to the following equation 0the first accumulated value Sum (j) in watch window:
Wherein, X ibe i-th sampled value,
Described first accumulated value Sum (j) is sent to data storage cell by described central arithmetic unit;
Step 3): described data storage cell, receives the first accumulated value Sum (j) that described central arithmetic unit sends, and stores;
Step 4): calculate Sum (j+1), described central arithmetic unit transfers the first accumulated value Sum (j) from described data storage cell, utilizes following formula to carry out calculating Sum (j+1):
Sum(j+1)=[Sum(j)-(X j+2n-2X j+n+X j)+(X (n+j)+2n-2X (N+j)+n+X (n+j))] 2
First accumulated value Sum (j+1) is sent to described data storage cell and stores by described central arithmetic unit;
Step 5): described data storage cell, the first accumulated value Sum (j+1) receiving the transmission of described central arithmetic unit stores;
Step 6): repeat step 4) and 5), described central arithmetic unit calculates the second accumulated value after all being calculated by Sum (1) to Sum (N-3n+1) described second accumulated value calculate according to the following equation:
Step 7): described central arithmetic unit calculates n τ according to the following equation 0time deviation TDEV (n τ in watch window 0):
Time deviation TDEV (the n τ that described central arithmetic unit will calculate 0) value, be sent to data display unit display;
Step 8): described data display unit, receives time deviation TDEV (the n τ that described central arithmetic unit sends 0) value, show.
2. the method analyzed of raising clock stability according to claim 1, it is characterized in that, described sampled data, is clock drift signal further, and described sampled value represents that moment that present clock arrives should arrive relative to it mistiming in moment.
3. the method for raising clock stability analysis according to claim 1 and 2, is characterized in that described method is carried out further in OTM2800 time tester.
4. the method for raising clock stability analysis according to claim 1, is characterized in that, establish embedded system in described OTM2800 time tester.
5. improve the system that clock stability is analyzed, it is characterized in that, this system comprises: data acquisition unit, central arithmetic unit, storage unit and data display unit, wherein,
Described data acquisition unit, couples mutually with described central arithmetic unit, and amount to N number of sampled data for gathering, sampled value is X 1, X 2x n, the time interval between adjacent sample values is τ 0, the sampled data in one of them watch window is n, and described N number of sampling data transmitting is delivered to central arithmetic unit;
Described central arithmetic unit, couple mutually with described data acquisition unit, data storage cell and data display unit respectively, for receiving N number of sampled data that described data acquisition unit sends, receiving N number of sampled data that described data acquisition unit sends, calculating n τ according to the following equation 0the first accumulated value Sum (j) in watch window:
Wherein, X ibe i-th sampled value,
Described central arithmetic unit, also for described first accumulated value Sum (j) is sent to described data storage cell;
Described data storage cell, for receiving the first accumulated value Sum (j) that described central arithmetic unit sends, and stores;
Described central arithmetic unit, also for transferring the first accumulated value Sum (j) from described data storage cell, utilizes following formula to carry out calculating first accumulated value Sum (j+1):
Sum(j+1)=[Sum(j)-(X j+2n-2X j+n+X j)+(X (n+j)+2n-2X (N+j)+n+X (n+j))] 2
Described central arithmetic unit, also stores for the first accumulated value Sum (j+1) is sent to described data storage cell;
Described data storage cell, the first accumulated value Sum (j+1) also sent for receiving described central arithmetic unit stores;
Described central arithmetic unit, after also all being calculated by Sum (1) to Sum (N-3n+1) for the process of Sum described in double counting (j+1), calculates the second accumulated value described second accumulated value calculate according to the following equation:
Described central arithmetic unit, also for calculating n τ according to the following equation 0time deviation TDEV (n τ in watch window 0):
Described central arithmetic unit, time deviation TDEV (the n τ also for calculating 0) value, be sent to data display unit display;
Described data display unit, for receiving time deviation TDEV (the n τ that described central arithmetic unit sends 0) value, show.
6. the system analyzed of raising clock stability according to claim 5, it is characterized in that, described sampled data, is clock drift signal further, and described sampled value represents that moment that present clock arrives should arrive relative to it mistiming in moment.
7. the system that the raising clock stability according to claim 5 or 6 is analyzed, is characterized in that, the system that described raising clock stability is analyzed is, OTM2800 time tester further.
8. the system of raising clock stability analysis according to claim 7, is characterized in that, establish embedded system in described OTM2800 time tester.
CN201410797540.7A 2014-12-18 2014-12-18 Method and system for improving clock stability analysis Pending CN104598195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410797540.7A CN104598195A (en) 2014-12-18 2014-12-18 Method and system for improving clock stability analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410797540.7A CN104598195A (en) 2014-12-18 2014-12-18 Method and system for improving clock stability analysis

Publications (1)

Publication Number Publication Date
CN104598195A true CN104598195A (en) 2015-05-06

Family

ID=53124020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410797540.7A Pending CN104598195A (en) 2014-12-18 2014-12-18 Method and system for improving clock stability analysis

Country Status (1)

Country Link
CN (1) CN104598195A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106788851A (en) * 2017-01-10 2017-05-31 国家电网公司 The alarm method and device of clock failure

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484410A (en) * 2003-08-13 2004-03-24 中国科学院计算技术研究所 Clock synchronous method for terminal to terminal of internet
CN1609628A (en) * 2004-10-20 2005-04-27 清华大学 'Beidou No.1' satellite navigation system and GPS mutually preparing time service method and apparatus
CN101442360A (en) * 2007-11-21 2009-05-27 华为技术有限公司 Time synchronization method and apparatus
CN103763055A (en) * 2013-10-18 2014-04-30 杭州联汇数字科技有限公司 Method for precise time synchronization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484410A (en) * 2003-08-13 2004-03-24 中国科学院计算技术研究所 Clock synchronous method for terminal to terminal of internet
CN1609628A (en) * 2004-10-20 2005-04-27 清华大学 'Beidou No.1' satellite navigation system and GPS mutually preparing time service method and apparatus
CN101442360A (en) * 2007-11-21 2009-05-27 华为技术有限公司 Time synchronization method and apparatus
CN103763055A (en) * 2013-10-18 2014-04-30 杭州联汇数字科技有限公司 Method for precise time synchronization

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
CHIA SHULIAO ETAL: ""design of gps remote calibration system"", 《IEEE INTERNATIONAL FREQUENCY CONTROL SYMPOSIUM JOINT WITH EUROPEAN FREQUENCY & TIME FORUM》 *
张杰: ""卫星钟性能分析及钟差预报"", 《中国优秀硕士论文学位论文全文数据库 基础科学辑》 *
韦乐平: "《光同步数字传送网(修订本)》", 31 December 1998 *
韦乐平: "《光同步数字传送网》", 31 August 1998 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106788851A (en) * 2017-01-10 2017-05-31 国家电网公司 The alarm method and device of clock failure

Similar Documents

Publication Publication Date Title
Spurio Mancini et al. KiDS+ GAMA: constraints on horndeski gravity from combined large-scale structure probes
Oppermann et al. Estimating extragalactic Faraday rotation
Samushia et al. Interpreting large-scale redshift-space distortion measurements
CN103983931B (en) The defining method of vector network analyzer S parameter uncertainty of measurement
Wolz et al. The effect of foreground subtraction on cosmological measurements from intensity mapping
US20170214476A1 (en) Time domain reflectometry step to s-parameter conversion
CN105181200A (en) Accurate algorithm for measuring cable force by using frequency method
CN113777552B (en) Method and system for predicting metering error of capacitive voltage transformer
Paranjape et al. Bias deconstructed: unravelling the scale dependence of halo bias using real-space measurements
US20160252562A1 (en) Performance analysis of power grid monitors
Dai et al. Modelling radar-rainfall estimation uncertainties using elliptical and Archimedean copulas with different marginal distributions
CN115560743A (en) Error analysis and elimination method and device of fiber-optic gyroscope
CN108459087A (en) A kind of multi-modal Lamb wave modal separation method applied to harden structure damage check
Brieden et al. PT challenge: validation of ShapeFit on large-volume, high-resolution mocks
CN104181392B (en) Two-port network phase shift method of testing based on vector network analyzer
CN105259398A (en) Method for analyzing random error characteristic of optical fiber current transformer based on total variance
CN104598195A (en) Method and system for improving clock stability analysis
CN106770155A (en) A kind of content of material analysis method
CN105388512A (en) Calibration method and device of seismic data acquisition and exploration time
Thiery et al. Note about the statistical background of the methods used in ISO/DIS 9612 to estimate the uncertainty of occupational noise exposure measurements
US10033554B1 (en) System and method of analyzing crosstalk and intersymbol interference for serial data signals
Tong et al. Covariance-matrix-based uncertainty propagation analysis for complex-valued quantities throughout VNA S-parameter measurements and power-meter calibration
CN111291862A (en) Method and apparatus for model compression
US7444259B2 (en) Automatic acquisition of data referenced in user equation
Boizot et al. On the stability of a differential Riccati equation for continuous-discrete observers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150506

RJ01 Rejection of invention patent application after publication