CN105790874B - A kind of substation network setting means based on adaptive algorithm - Google Patents

A kind of substation network setting means based on adaptive algorithm Download PDF

Info

Publication number
CN105790874B
CN105790874B CN201610109862.7A CN201610109862A CN105790874B CN 105790874 B CN105790874 B CN 105790874B CN 201610109862 A CN201610109862 A CN 201610109862A CN 105790874 B CN105790874 B CN 105790874B
Authority
CN
China
Prior art keywords
time
clock
delay
local clock
information
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.)
Active
Application number
CN201610109862.7A
Other languages
Chinese (zh)
Other versions
CN105790874A (en
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.)
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
Maintenance Branch of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Jiangsu Electric Power Co Ltd
Maintenance Branch of State Grid Jiangsu Electric Power 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 State Grid Corp of China SGCC, State Grid Jiangsu Electric Power Co Ltd, Maintenance Branch of State Grid Jiangsu Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201610109862.7A priority Critical patent/CN105790874B/en
Publication of CN105790874A publication Critical patent/CN105790874A/en
Application granted granted Critical
Publication of CN105790874B publication Critical patent/CN105790874B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation

Abstract

The invention discloses a kind of substation network setting means based on adaptive algorithm, master clock and local clock once pair when, n times information exchange is carried out, by by information exchange times N, αBLUE、βBLUESubstitute intoTo judge that skew Φ values use φMLEOr φBLUE, phase offset compensation is carried out to local clock;After compensation, then pass throughFrequency deviation compensation is carried out to local clock.For intelligent substation network load it is heavier when, network transmission round trip delay time is asymmetric, traditional accurate clock synchronization protocol (Precision Time Protocol, PTP) error is larger in the correction of local clock during single pair, a kind of substation network setting means based on adaptive algorithm provided by the invention, by statistical method at multiple pair after calculate the optimal solution of local clock frequency deviation and skew error to compensate.

Description

Substation network time synchronization method based on adaptive algorithm
Technical Field
The invention relates to a substation network time synchronization method based on a self-adaptive algorithm, and belongs to the technical field of substation network time synchronization.
Background
The modern transformer substation automatically completes basic functions such as information acquisition, measurement, control, protection, monitoring and metering by taking total-station information digitization, communication platform networking and information sharing standardization as basic requirements. However, the calculation processing of the measurement and control device, the protection device and the metering device requires that the sampling data should be collected at the same time point, so as to prevent errors of the phase and the amplitude. For protection such as overcurrent protection, the short-term stability of the local crystal oscillator clock protected by the microcomputer is very high, and the action precision of the protection cannot be influenced. However, for differential protection and metering, because the local crystal oscillator clock protected by the microcomputer is not very accurate, phase errors and amplitude errors of different sampling data across compartments can be gradually enlarged after long-time error accumulation, and false operation of differential protection and serious errors of metering are caused, so that the local clock needs to be corrected by a time synchronization technology.
IEEE1588 defines a Protocol that can implement high Precision clock synchronization in a measurement and control system, namely Precision Time Protocol (PTP). The basic principle of the PTP protocol is to transmit a synchronization packet between a master clock and a local clock, record the transmission time and reception time information of the packet, and tag a timestamp on each packet. The PTP protocol defines four multicast packets for using and describing time information, namely a synchronization packet Sync, a following packet Follow _ Up following the synchronization packet, a Delay measurement packet Delay _ Req, and a Delay measurement response packet Delay _ Resp.
The mechanism for transmitting the synchronization packet is a 'delay-request response mechanism', as shown in fig. 1, the master clock periodically transmits Sync packets containing clock quality, and then transmits Follow-up packets to inform the actual transmission time T of the last packet of the local clock m1 (ii) a Local clock records arrival time T of Sync information packet s1 Subsequently at T s3 Sending Delay _ Req information at any momentPackaging; the main clock records the arrival time T of the Delay _ Req information packet m3 And sends a packet Delay _ Resp to send T m3 Tells the local clock. The local clock calculates the offset and the transmission delay of the clock based on the four pieces of time information. T in FIG. 1 assuming that the round-trip delay of a packet is considered equal in the communication of information by a clock m1 、T s1 、T s3 、T m3 The line of the four points is an isosceles trapezoid.
The local clock can calculate the information exchange delay T between itself and the main clock delay Is composed of
T delay =[(T m3 ﹣T m1 )﹣(T s3 ﹣T s1 )]/2 (1.1)
Clock phase offset T of local clock and master clock offset Is composed of
T offset =[(T s1 ﹣T m1 )+(T s3 ﹣T m3 )]/2 (1.2)
The local clock modifies the local time in accordance with the calculated phase offset to achieve synchronization with the master clock.
The PTP eliminates the influence of the processing delay of the physical layer through the delay-request response mechanism, thereby further improving the time setting precision. Although IEEE1588 eliminates the influence of the upper layer processing delay and the physical layer processing delay through the PTP protocol, it has the same limitation as that of all network time synchronization algorithms, and four measurements performed by the PTP protocol to calculate the clock phase offset are based on the same transmission delay of the time synchronization information in the transmission direction, but in actual use, it is impossible to absolutely satisfy this premise. Although the IEEE1588 protocol introduces a transparent clock and a boundary clock, it needs a switch to support the IEEE1588 clock mechanism, and at the same time, the randomness and the lower frequency of the network transmission delay measurement are the same, but when the network load changes suddenly, the delay difference of the packet in the transmission direction becomes large, so the assumption that the formula (1.1) and the formula (1.2) are satisfied — the round-trip delay of packet exchange is not the same, and T in fig. 1 is the assumption that T is equal m1 、T s1 、T s3 、T m3 A line connecting four points will be one unequalThe waist trapezoid gives a large error in the correction of the local clock if the local clock phase offset is simply calculated by the formula (1.2).
The method only compensates the phase offset of the local clock and does not compensate the frequency offset of the local clock. The fundamental reason for the phase shift is that the local crystal oscillator clock frequency is not very accurate, and has an error compared with the main clock frequency, and the phase shift is caused by long-time error accumulation.
Disclosure of Invention
The purpose is as follows: in order to overcome the defects in the prior art, the invention provides a substation network time synchronization method based on an adaptive algorithm.
The technical scheme is as follows: in order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a transformer substation network time synchronization method based on an adaptive algorithm comprises the following steps:
the method comprises the following steps: when the main clock and the local clock are synchronized once, N times of information exchange is carried out, and the processing delay of the physical layer is set to be a fixed value d; in the kth information exchange, T 1,k The actual sending time of the kth information packet of the master clock; t is 2,k The time when the kth information packet is received by the local clock; t is 3,k Actual transmission time for transmitting the kth packet for the local clock; t is 4,k The time when the kth information packet is received by the master clock; setting the network transmission delay of information from the main clock to the local clock as a random variable X k Setting the network transmission delay from the local clock to the main clock as a random variable Y k Assuming network delayAndrespectively obeying exponential distributions with mean values of alpha and beta;
step two: maximum likelihood estimation of phase-offset computation, assuming round-trip delay symmetry of network transmissionPreferably, the network transmission delay X k And Y k Subject to the exponential distribution of the same parameters, the mean of these two exponential functions can be made equal, with α = β = λ; meanwhile, because the randomness of network transmission delay causes the uncertainty of information exchange delay, the round-trip delay data of the information exchange obtained after N times of time synchronization can be obtainedAndcounting the numerical values from small to large in sequence, and rearranging the numerical values to obtain the numerical valuesAndthe likelihood function can be constructed as:
considering equations (2.3) and (2.4), the round-trip delays for N exchanges of time tick are summed, as
And
is determined by the average value of (a) of (b),average value of (d);
the two formulas (2.6) and (2.7) are added to obtainCan be substituted by formula (2.5)
By using the likelihood function L of equation (2.8) R (d, phi) obtaining the maximum value to obtain the maximum likelihood estimation value of the parameter;
the maximum likelihood estimate of d and Φ is solved as:
U (1) to representMiddle rank first, V (1) To representThe middle sequence is first;
step three: the optimal linear unbiased estimation of the phase deviation calculation firstly makes the round-trip delay data of the information exchange obtained after N times of time settingAndcounting the numerical values from small to large in sequence, and rearranging the numerical values to obtain the numerical valuesAnd
defining the unknown variable matrix to be solved as delta' = [ d phi alpha beta ]] T Then there is
P' in the matrix is a matrix determined by the length N of the time tick information sample;
because the information exchange delay data is subjected to sequential statistics, a linear model is established, and the optimal linear unbiased estimation of delta' is as follows:
wherein Q' W Is the covariance matrix of W; round-trip delay due to information exchangeAndfor two independent exponential random distributions, we can obtain:
q is information exchange delay data U (k) And V (k) The NxN order symmetric positive definite covariance matrix;
the observed information exchange delay data is:
W=[U 1 V 1 U 2 V 2 …U N V N ] T
the optimal linear unbiased estimate of δ' can be solved as:
wherein the content of the first and second substances,andround-trip delay data for information exchange respectivelyAndis also after sequential statisticsAndthe sample average of (a);
step four: number of information exchanges N, alpha BLUE 、β BLUE Into formula (2.16) where BLUE Optimal linear unbiased estimation, beta, of network transmission delay representing information from master clock to local clock BLUE An optimal linear unbiased estimate of network transmission delay of the representative information from the local clock to the master clock;
if equation (2.16) holds, the phase shift φ value is taken as φ in equation (2.9) MLE
If the formula (2.16) does not hold, the phase deviation phi value adopts phi in the formula (2.13) BLUE
Step five: let the local clock output time at this time be C i (t) actual output time C 'after phase offset compensation' i (t) is:
C’ i (t)=C i (t)+Φ (3.5)
step six: the optimal estimation of the local clock frequency deviation assumes that the clock phase deviation monotonically increases due to the influence of the frequency deviation eta between the local clock and the main clockThat is, the frequency offset eta is not changed, and the time synchronization information is exchanged for N times in one time, wherein the time synchronization information is exchanged for the k time 2,k And T 3,k Are the local time of the local clock each,andthe local time of the master clock, the physical layer processing delay is a fixed value d, and the network transmission delay of the information from the master clock to the local clock is a random variable X k The network transmission delay of the information from the local clock to the master clock is a random variable Y k (ii) a Selection of T 1,1 Is a reference time, i.e. T 1,1 Is the actual local time of the master clockTime zero; thenAndrespectively the actual local time of the master clockAndrelative time of (d);is shown inPhase shift of reference clock of time of day, where r Represents the actual phase offset of the local clock; the relative observation time when the local clock receives the kth time setting information is T 2,k The relative observation time when the kth time setting information is sent is T 3,k The method comprises the following steps:
is provided with
In the same way have T 3,k =(T 4,k -d-Y k )(1+η)+φ (3.2)
When the network transmission delay symmetry is good, it is assumed that the round-trip average delay α and β of the network transmission have α = β, and the local clock phase offset Φ has been compensated by calculation, and the physical layer processing delay d is determined by the device, and is a known value, the likelihood function can be constructed as
X k &gt, 0 and Y k &gt, 0, available Domain
Due to d&gt, 0 and 1+ eta&gt, 0, can be derived from the domain of definitionWhile (T) in the formula (3.3) is observed 2,k ﹣T 3,k ) Always negative, network transmission delay beta&0, so if the likelihood function L (eta, beta) has the maximum value, the value of eta should be as small as possible; the maximum likelihood estimate of η is at its minimum, i.e.
Wherein
Step seven: and (3) setting the natural frequency of the local clock crystal oscillator as f, and after the natural frequency is compensated, setting the actual frequency f' as:
f’=f×(1+η min ) (3.6)。
preferably, the number of times of information exchange N is set to 16.
Has the beneficial effects that: aiming at the problems that when the network load of the intelligent substation is heavy, the network transmission round-trip delay is asymmetric, and the error of the correction of a local clock is larger in single Time comparison of the traditional Precision Time Protocol (PTP).
Drawings
FIG. 1 is a schematic diagram of a latency-request response mechanism;
FIG. 2 is a simplified model of a clock for multiple time tick message exchanges;
FIG. 3 is a clock model of clock phase offset and frequency offset time tick information exchange;
fig. 4 is a flow chart of local clock frequency offset and phase offset compensation.
Detailed Description
The present invention will be further described with reference to the accompanying drawings.
The following packet and the delay measurement response packet in the single time tick message exchange of the PTP protocol are mainly used to make the local clock obtain the precise sending and receiving time of the master clock, as shown by the solid line part in fig. 1, the actual single time tick needs to be T m1 、T s1 、T s3 、T m3 Time of four key points. Therefore, it can be considered that each time setting information exchange, the local clock can obtain the time of the four key points, the dotted line part in fig. 1 is omitted, and meanwhile, the influence of the frequency offset of the local clock is not considered, and then a clock simplified model of the PTP protocol for N times of time setting information exchange is shown in fig. 2. T is 1,k Actual transmission time of kth information packet of the master clock; t is 2,k The time when the kth information packet is received by the local clock; t is 3,k Transmitting kth for local clockActual transmission time of the packet; t is 4,k The time when the kth packet is received for the master clock.
In fig. 2, because the information exchange delay between the master clock and the local clock is asymmetric, N times of time-setting information exchange are required in total to perform mathematical statistics estimation on the phase offset Φ of the local clock, where N is the number of samples required for statistical calculation. Through the analysis, in the PTP time synchronization protocol, the upper layer processing time delay can be ignored through a hardware time stamping method; the physical layer processing delay can be set to a fixed value d; in the kth information exchange, the network transmission delay from the main clock to the local clock of the information is set as a random variable X k Setting the network transmission delay from the local clock to the main clock as a random variable Y k Assuming network delayAndobeying an exponential distribution with mean values α and β, respectively. Thus, the packet time stamp T 2,k And T 4,k Can be expressed as:
T 2,k =T 1,k +d+φ+X k (2.1)
T 4,k =T 3,k +d-φ+Y k (2.2)
in the kth exchange of time ticks, the round-trip delay of the exchange of time ticks between the local clock and the master clock can be defined as:
U k =T 2,k -T 1,k =d+φ+X k (2.3)
and V k =T 4,k -T 3,k =d-φ+Y k (2.4)
1. Optimal estimation of local clock phase offset
When the background flow in the network transmission is smaller, the network transmission delay is smaller, the randomness of the network transmission delay is also smaller, so the round-trip delay X of the network transmission is smaller k And Y k Can be considered symmetrical; however, when the background flow in the network transmission is larger, the network transmission delay becomes larger, and the networkThe randomness of the transmission delay increases, at which time the round-trip delay X of the network transmission k And Y k Is asymmetric, and the round-trip average delay alpha of network transmission is not equal to beta.
1.1. Maximum likelihood estimation of phase-offset computation
When the phase offset is calculated by adopting a maximum likelihood estimation method, the round-trip delay symmetry of network transmission is assumed to be good, and the network transmission delay X is assumed to be k And Y k The mean of these two exponential functions can be made equal, with α = β = λ, subject to an exponential distribution of the same parameters. Meanwhile, because the randomness of network transmission delay causes the uncertainty of information exchange delay, the round-trip delay data of the information exchange obtained after N times of time synchronization can be obtainedAndcounting the numerical values from small to large in sequence, and rearranging the numerical values to obtain the numerical valuesAnd
the likelihood function can be constructed as:
considering equations (2.3) and (2.4), the round-trip delays for N exchanges of time tick are summed, as
And
is determined by the average value of (a) of (b),average value of (a).
The two formulas (2.6) and (2.7) are added to obtainCan be substituted by formula (2.5)
By using the likelihood function L of equation (2.8) R (d, Φ) the maximum value is obtained, and the maximum likelihood estimation value of the parameter can be obtained.
The maximum likelihood estimate of d and Φ is solved as:
U (1) to representMiddle rank first, V (1) To representRank one in the middle.
1.2. Optimal linear unbiased estimation of phase-bias computation
Firstly, the round-trip delay data of information exchange obtained after N times of time synchronizationAndcounting the numerical values from small to large in sequenceAfter new arrangement becomeAnd
defining the unknown variable matrix to be solved as delta' = [ d phi alpha beta ]] T Then there is
P' in the matrix is a matrix determined by the length N of the time tick information samples.
Because the information exchange delay data is subjected to sequential statistics, a linear model is established, and the optimal linear unbiased estimation of delta' is as follows:
wherein Q' W Is the covariance matrix of W. Round-trip delay due to information exchangeAndfor two independent exponential random distributions, we can obtain:
q is information exchange delay data U (k) And V (k) N × N order symmetric positive definite covariance matrix.
Observed information exchange delay data of
W=[U 1 V 1 U 2 V 2 … U N V N ] T
The optimal linear unbiased estimate of δ' can be solved as:
wherein the content of the first and second substances,andround-trip delay data for information exchangeAndis also after sequential statisticsAndthe sample average of (2).
1.3. Optimal estimation of local clock phase offset
Comparing the mean square error of the maximum likelihood estimation of the formula (2.9) and the linear unbiased estimation of the formula (2.13) to obtain:
it can be seen from the equations (2.14) and (2.15) that although the maximum likelihood estimation of the local clock phase offset is biased in the case of asymmetric network transmission delay, under certain conditions it has better performance than the linear unbiased estimation, with
MSE(φ BLUE )>MSE(φ MLE )
Namely that
It can be seen from the above equation that, when the number of times N of switching packets is fixed, i.e. the number of samples required for phase offset calculation is fixed, the larger the round-trip average delay α and β of network transmission, and the smaller the asymmetry degree | α - β | are, the smaller the mean-square error of the maximum likelihood estimation will be compared with the linear unbiased estimation.
When the network transmission delay is only slightly asymmetric, the maximum likelihood estimation has a better estimation effect around α = β.
When the asymmetry of the network transmission delay gradually increases, the | alpha-beta | gradually deviates from 0, and the linear unbiased estimation is gradually superior to the maximum likelihood estimation.
As shown in fig. 4, considering the amount of calculation of the microcomputer chip, N is preferably 16 in the present design. In order to realize the optimal estimation of the phase deviation calculation, self-adaptive selection is required according to network delay. Firstly, the network transmission delays alpha and beta are estimated through an equation (2.13), and then are substituted into an equation (2.16), and whether the inequality is established or not is checked. If the inequality is true, selecting the maximum likelihood estimation to carry out phase deviation calculation, and if the inequality is false, selecting the linear unbiased estimation to carry out the phase deviation calculation.
2. Optimal estimation of local clock frequency offset
Assuming that the phase deviation of the clock monotonically increases due to the influence of the frequency deviation η between the local clock and the master clock, that is, the frequency deviation η does not change, a clock model for exchanging the time synchronization information of the phase deviation and the frequency deviation of the clock is constructed, as shown in fig. 3. The time synchronization information is exchanged for N times in one time synchronization, wherein the T of the k time synchronization information exchange 2,k And T 3,k Are the local time of the local clock each,andis the local time of the master clock. Neglecting the upper layer processing delay, the physical layer processing delay is a fixed value d, and the network transmission delay of the information from the main clock to the local clock is a random variable X k The network transmission delay of the information from the local clock to the master clock is a random variable Y k . Selection of T 1,1 Is a reference time, i.e. T 1,1 Is the actual local time of the master clockTime zero. ThenAndrespectively the actual local time of the master clockAndrelative time of (d);is shown inPhase shift of reference clock of time of day, where r Representing the actual phase offset of the local clock. The relative observation time when the local clock receives the kth time setting information is T 2,k The relative observation time when the kth time setting information is sent is T 3,k The method comprises the following steps:
is provided with
In the same way, there is T 3,k =(T 4,k -d-Y k )(1+η)+φ (3.2)
It can be seen from the equations (3.1) and (3.2) that the relative observation time of the local clock is affected by the frequency offset and is represented by (T) in the equations 1,k +d+X k ) The term of η and (T) 4,k -d-Y k ) The influence of the term η.
When the network transmission delay symmetry is good, it is assumed that the round-trip average delay α and β of the network transmission have α = β, and the local clock phase offset Φ has been compensated by calculation, and the physical layer processing delay d is determined by the device, and is a known value, the likelihood function can be constructed as
X k &gt, 0 and Y k &gt 0, available Domain
Due to d&gt, 0 and 1+ eta&gt, 0, can be derived from the domain of definitionWhile (T) in the formula (3.3) is observed 2,k ﹣T 3,k ) Always negative, network transmission delay beta&And gt, 0, so that if the likelihood function L (eta, beta) is to have a maximum value, the value of eta should be as small as possible. The maximum likelihood estimate of η is at its minimum, i.e.
Wherein
3. Calculation of local clock frequency offset and phase offset
Let the local clock output time at this time be C i (t) compensating the time difference to actually output the time C' i (t) is
C’ i (t)=C i (t)+Φ (3.5)
The natural frequency f of the local clock crystal oscillator is set as f, and after the natural frequency f is compensated, the actual frequency f' is set as
f’=f×(1+η min ) (3.6)
The algorithm can perform prior calculation estimation according to the round-trip delay of network transmission, select a proper phase deviation calculation method, and meanwhile, because the local clock frequency deviation calculation needs to compensate the phase deviation first, the total calculation flow is shown in fig. 4.
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.

Claims (2)

1. A transformer substation network time synchronization method based on an adaptive algorithm is characterized in that: the method comprises the following steps:
the method comprises the following steps: when the main clock and the local clock are synchronized once, N times of information exchange is carried out, and the processing delay of the physical layer is set to be a fixed value d; in the kth information exchange, T 1,k The actual sending time of the kth information packet of the master clock; t is 2,k The time when the kth information packet is received by the local clock; t is 3,k Actual transmission time for transmitting the kth packet for the local clock; t is a unit of 4,k The time when the kth information packet is received by the master clock; setting network transmission delay of information from main clock to local clock as random variable X k Setting the network transmission delay from the local clock to the main clock as a random variable Y k Assuming network delayAndrespectively obeying exponential distributions with mean values of alpha and beta;
step two: phase deviation meterThe maximum likelihood estimation of calculation, supposing that the round-trip delay symmetry of network transmission is better, and the network transmission delay X k And Y k Subject to the exponential distribution of the same parameters, the mean of these two exponential functions can be made equal, with α = β = λ; meanwhile, because of the random nature of network transmission delay, the uncertainty of information exchange delay is caused, and the round-trip delay data of information exchange obtained after N times of time synchronization can be obtainedAndcounting the numerical values from small to large, and rearranging the numerical values to obtain the numerical valuesAndthe likelihood function can be constructed as:
considering U k =T 2,k -T 1,k =d+Φ+X k And V k =T 4,k -T 3,k =d-Φ+Y k Accumulating the round-trip delay of N time tick information exchanges, including
And with
Is thatIs determined by the average value of (a) of (b),is thatAverage value of (a);
the two formulas (2.6) and (2.7) are added to obtainCan be substituted by formula (2.5)
By using the likelihood function L of equation (2.8) R (d, phi) obtaining the maximum value to obtain the maximum likelihood estimation value of the parameter;
the maximum likelihood estimate of d and Φ is solved as:
U (1) to representMiddle rank first, V (1) To representThe middle sequence is first;
step three: the optimal linear unbiased estimation of the phase deviation calculation firstly makes the round-trip delay data of the information exchange obtained after N times of time settingAndcounting the numerical values from small to large in sequence, and rearranging the numerical values to obtain the numerical valuesAnd
defining the unknown variable matrix to be solved as delta' = [ d phi alpha beta ]] T Then there is
P' in the matrix is a matrix determined by the length N of the time tick information sample;
because the information exchange delay data is subjected to sequential statistics, a linear model is established, and the optimal linear unbiased estimation of delta' is as follows:
wherein Q' W Is the covariance matrix of W; round-trip delay due to information exchangeAndfor two independent exponential random distributions, we can obtain:
q is information exchange delay data U (k) And V (k) Nxn order symmetric positive definite covariance matrix of (1);
the observed information exchange delay data is:
W=[U 1 V 1 U 2 V 2 …U N V N ] T
the optimal linear unbiased estimate of δ' can be solved as:
wherein the content of the first and second substances,andround-trip delay data for information exchange respectivelyAndis also after sequential statisticsAndthe sample average of (a);
step four: number of information exchanges N, alpha BLUE 、β BLUE Into formula (2.16), where α BLUE Optimal linear unbiased estimation, beta, of network transmission delay representing information from master clock to local clock BLUE Optimal linear unbiased estimation of network transmission delay of representative information from a local clock to a master clock;
if the formula (2.16) is true, the phase deviation phi value adopts phi in the formula (2.9) MLE
If the formula (2.16) does not hold, the phase deviation phi value adopts phi in the formula (2.13) BLUE
Step five: let the local clock output time at this time be C i (t) after performing phase offset compensation, the actual output time C' i (t) is:
C’ i (t)=C i (t)+Φ (3.5)
step six: the optimal estimation of the local clock frequency deviation is that, assuming that the local clock and the main clock are influenced by the frequency deviation eta, the clock phase deviation monotonically increases, namely the frequency deviation eta is unchanged, and the time synchronization information is exchanged for N times in one time, wherein T of the k-th time synchronization information exchange 2,k And T 3,k Are the local time of the local clock each,and withThe local time of the master clock, the physical layer processing delay is a fixed value d, and the network transmission delay of the information from the master clock to the local clock is a random variable X k The network transmission delay of the information from the local clock to the master clock is a random variable Y k (ii) a Selection of T 1,1 Is a reference time, i.e. T 1,1 Is the actual local time of the master clockTime zero; thenAndrespectively actual local time of master clockAndrelative time of (d);is shown inPhase shift of reference clock of time of day, where r Represents the actual phase offset of the local clock; the relative observation time when the local clock receives the kth time setting information is T 2,k The relative observation time when the kth time setting information is sent is T 3,k The method comprises the following steps:
is provided with
In the same way, there is T 3,k =(T 4,k -d-Y k )(1+η)+Φ (3.2)
When the network transmission delay symmetry is good, it is assumed that the round-trip average delay α and β of the network transmission have α = β, and the local clock phase offset Φ is compensated by calculation, and the physical layer processing delay d is determined by the device, and for a known value, a likelihood function can be constructed as
X k &gt, 0 and Y k &gt, 0, available Domain
Due to d&gt, 0 and 1+ eta&gt, 0, derivable from the domain of definitionWhile (T) in the formula (3.3) is observed 2,k ﹣T 3,k ) Always negative, network transmission delay beta&0, so if the likelihood function L (eta, beta) has the maximum value, the value of eta should be as small as possible; the maximum likelihood estimate of η is at its minimum, i.e.
Wherein
Step seven: setting the natural frequency of a local clock crystal oscillator as f, and after compensating the natural frequency f, the actual frequency f' is as follows:
f’=f×(1+η min ) (3.6)。
2. the substation network time synchronization method based on the adaptive algorithm according to claim 1, characterized in that: the number of information exchanges N is set to 16.
CN201610109862.7A 2016-02-26 2016-02-26 A kind of substation network setting means based on adaptive algorithm Active CN105790874B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610109862.7A CN105790874B (en) 2016-02-26 2016-02-26 A kind of substation network setting means based on adaptive algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610109862.7A CN105790874B (en) 2016-02-26 2016-02-26 A kind of substation network setting means based on adaptive algorithm

Publications (2)

Publication Number Publication Date
CN105790874A CN105790874A (en) 2016-07-20
CN105790874B true CN105790874B (en) 2018-03-02

Family

ID=56403081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610109862.7A Active CN105790874B (en) 2016-02-26 2016-02-26 A kind of substation network setting means based on adaptive algorithm

Country Status (1)

Country Link
CN (1) CN105790874B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108023723B (en) * 2016-11-04 2021-07-09 华为技术有限公司 Method for frequency synchronization and slave clock

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626357B (en) * 2009-09-22 2012-05-09 北京理工大学 Carrier synchronization method of MPSK system based on maximum likelihood estimation
EP2429105B1 (en) * 2010-09-13 2013-03-27 Ntt Docomo, Inc. Node in a wireless system with time and clock frequency synchronizing and corresponding method
CN103178917B (en) * 2011-12-26 2015-11-11 中国移动通信集团公司 A kind of clock synchronizing method of collaboration communication, system and information taken node

Also Published As

Publication number Publication date
CN105790874A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
CN111585683B (en) High-reliability clock synchronization system and method for time-sensitive network
EP2254267B1 (en) Multi input timing recovery over packet networks
CN101675614A (en) Method for synchronizing a clock of a network component with a clock of further network component and network component therefor
EP2434673B1 (en) Network synchronization method and apparatus for performing time synchronization between nodes
WO2018006686A1 (en) Method, apparatus and device for optimizing time synchronization between communication network devices
EP2174397A1 (en) Estimating a time offset between stationary clocks
CN108449791A (en) A kind of auto-adaptive time synchronous method based on temperature-compensating
CN105721095B (en) A kind of synchronous improved method of substation equipment clock
EP2359510A1 (en) Method and device for packet network synchronization
US6647026B1 (en) Frame phase synchronous system and a method thereof
CN106850116B (en) A kind of method for synchronizing time based on linear weighted function least square method
CN105790874B (en) A kind of substation network setting means based on adaptive algorithm
Du et al. An enhanced end-to-end transparent clock mechanism with a fixed delay ratio
CN102006136A (en) Method and device for improving clock synchronization precision in EPON
CN114157377B (en) Power distribution terminal real-time clock synchronization method, synchronization system and power distribution terminal
CN109525349B (en) Distributed time synchronization method based on noise estimation and trust weighting
KR101315593B1 (en) Method for synchronizing a client clock frequency with a server clock frequency
Giorgi et al. Precision packet-based frequency transfer based on oversampling
Li et al. A high-accuracy clock synchronization method in distributed real-time system
Qi et al. A clock synchronization method for ad hoc networks
Park et al. Learning-based Frequency Synchronization with NTP for Low-cost Phasor Measurement Units
Smith et al. ARTT: A scalable approach for monitoring the quality of time in distributed systems
Liu et al. Time synchronization scheme based on broadcast gossip algorithm for wireless sensor networks
Ou et al. The one-way delay measurement algorithm on to time synchronization of NTP
Coviello et al. Implementation Strategies and Issues for a Low-power Synchronized Timer in a Distributed Wireless Sensing Domain

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 210000, Jiangsu, Jiangning Development Zone, Nanjing, the source of the road, No. 58, -5

Applicant after: STATE GRID JIANGSU ELECTRIC POWER Co.,Ltd. MAINTENANCE BRANCH

Applicant after: State Grid Corporation of China

Applicant after: STATE GRID JIANGSU ELECTRIC POWER Co.

Address before: 210000, Jiangsu, Jiangning Development Zone, Nanjing, the source of the road, No. 58, -5

Applicant before: MAINTENANCE DIVISION OF STATE GRID JIANGSU ELECTRIC POWER Co.

Applicant before: State Grid Corporation of China

Applicant before: STATE GRID JIANGSU ELECTRIC POWER Co.

Address after: 210000, Jiangsu, Jiangning Development Zone, Nanjing, the source of the road, No. 58, -5

Applicant after: MAINTENANCE DIVISION OF STATE GRID JIANGSU ELECTRIC POWER Co.

Applicant after: State Grid Corporation of China

Applicant after: STATE GRID JIANGSU ELECTRIC POWER Co.

Address before: 210000, Jiangsu, Jiangning Development Zone, Nanjing, the source of the road, No. 58, -5

Applicant before: JIANGSU ELECTRIC POWER COMPANY MAINTENANCE BRANCH

Applicant before: State Grid Corporation of China

Applicant before: STATE GRID JIANGSU ELECTRIC POWER Co.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant