A kind of credibility evaluation method of network message latency measurement
Technical field
The invention belongs to power system automatic fields, are related to a kind of assessment side of network message latency measurement confidence level
Method.
Background technology
As the technical standards such as IEC61850 widely apply ether between the deep application of substation, second power equipment
Net is attached, and the introducing of ethernet communication enormously simplifies the interface of second power equipment, realizes substation's internal data
It is shared, promote the realization of the advanced application function of substation.But that there are network delays is uncertain for Ethernet data transmission
Problem, this is unacceptable for the use of some power business data, for example the SV network samples data of protective device are same
The exact time that step must be based on sampling realizes that the common method for solving the problems, such as this at present is realized based on external GPS clock synchronization
Data between second power equipment synchronize.
With the progress of computer technology, microelectric technique, based on hardware technology to Ethernet message transmissions path when
Prolong measurement to become a reality.When propagation delay time of the ether network packet inside network node can use the message time of reception and send
The time difference at quarter calculates, and the propagation delay time of ether network packet between network nodes can be by text of mutually transmitting messages between node, together
The temporal information of the round-trip messages of Shi Jilu reuses certain algorithm and calculates.Has the equipment of network message latency measurement function
Appearance so that the SV network data synchronizings of second power equipment are no longer dependent on external GPS clock, reliability is obviously improved.
It is realized currently, the method that message time delay measures in real time is based on ethernet communication basic principle to derive, such as logical
Cross real-time measurement and amendment that the bottom that FPGA (field programmable gate array) technologies are communicated in data carries out time delay value.Due to warp
The modified time delay values of FPGA need to forward with same message frame, need to increase a time delay newly in message protocol and correct domain, this with
Standard ethernet protocol difference;The device node that message transmissions are passed through is more, and time delay correction value generates the possibility of mistake
Also bigger.Further, since the multi-services such as SV, GOOSE, MMS are total in port network, there may be multiple business messages to receive simultaneously
It situations such as hair, message flow instantaneous mutation and network storm, all may be accumulative to the latency measurement precision and time delay of message
Value has an adverse effect.Although message time delay Principle of surveying is increasingly ripe, the confidence level of message time delay measurement result is still
It is problem to be solved.
Invention content
Goal of the invention:The present invention is solving the problems, such as how to assess the confidence level of message time delay measurement result.
Technical solution:In order to achieve the above objectives, following technical solution can be used in the present invention:
A kind of credibility evaluation method of network message latency measurement, it is characterised in that:When network message total link is set
Prolong reasonable value and network message total link time delay relative error magnitudes;
The acquisition pattern of network message total link time delay reasonable value is that source node samples the message of fixed delay, single node
The sum of reasonable value and the time delay reasonable value in message transmissions path is forwarded to be used as network message total link time delay reasonable value;
The acquisition pattern of network message total link time delay relative error magnitudes is, to the message Forwarding Delay and node of single node
Between the relative error of the sum of transmission path delay take median, and calculation will be taken after the summation of the message time delay deviation accumulation of all nodes
Number average value is as total link time delay error value;
After mode in the statistical sample of network message total link time delay reasonable value is multiplied by threshold coefficient, when as total link
Prolong the engineering threshold value of value, and reflects the real-time status of network message transmission by the engineering threshold coefficient;
Network message total link time delay relative error magnitudes be multiplied by engineering threshold coefficient after, it is opposite accidentally as total link time delay
The engineering threshold value of difference, and pass through the measurement accuracy state of engineering threshold coefficient reflection network system itself.
Advantageous effect:1) confidence level target of message time delay measured value can be assessed in real time online.
2) network message time delay measures can be weighed with quantizating index.
3) it while ensureing that message time delay measured value is within the scope of certain measurement accuracy, in turn avoids due to practical net
The appearance of unreasonable extreme value caused by network uncertainty.
4) engineering threshold parameter can reflect the variation tendency of network flow.
Further, the total link time delay reasonable value in network message is calculated in real time based on local clock, no
Dependent on external clock.
Further, external GPS/BD is based on to measure the absolute time delay value of network message propagation delay time and calculate the total chain of measurement
The relative difference of road time delay reasonable value.
Further, total link time delay reasonable value TallIndex Formula is as follows:
Wherein, the fixed delay of intelligent IED source nodes ADC samplings is T0, the time delay of the adjacent forwarding of each single node is reasonable
Value is ti, tiIt is Forwarding Delay reasonable value t between single nodei1With the time delay reasonable value t in message transmissions pathi2Cumulative, i.e. ti=
ti1+ti2;t(n+1)2Refer to the time delay reasonable value in the message transmissions path between (n+1)th node and the n-th+2 nodes;
Total link time delay error value δallIndex Formula is as follows:
Time delay relative error δ wherein between single nodeiRefer to forwarding between single node and the measured value t of transmission link time-delayiRelatively
In the absolute error of true time delay value.
Further, it on real-time statistics total link time delay reasonable value sample basis, is determined first based on statistical method
Network message total link delay measurements TallMode value M, take engineering threshold coefficient α, β of total link time delay on this basis
Constitute the confidence interval [α * M, β * M] of total link time delay;Wherein, engineering threshold coefficient β embodies network message changes in flow rate pair
The influence that message time delay measures, that is, pass through the message flow situation in this engineering threshold coefficient sensing network;
The engineering threshold coefficient γ for taking total link time delay error value, it is γ * δ to obtain Practical Project threshold valueall;
Engineering threshold value of the confidence level that network SV message time delays measure according to total link time delay reasonable value and time delay error value
Online evaluation is carried out, if the relative error of total link time delay reasonable value is less than γ * δall, and fall at confidence interval [α * M, β * M]
It is interior, then it is assumed that total link time delay is believable.
Further, it is given with the locking of message time stamp and time delay debugging functions by global clock network in fpga chip
Special MAC module provides high-performance message sending and receiving and controls clock, this MAC module recorded according to local clock network message receipts,
Send out the time;Local clock module has punctual and anti-error function to ensure the reliability of time stamp generator function
Description of the drawings
Fig. 1 is the second power equipment network message Transmission system containing n node.
Fig. 2 is the network message latency measurement system realized using FPGA technology.
Fig. 3 is the partial enlarged view of MAC module part in Fig. 2.
Specific implementation mode
The present invention realizes a kind of real time evaluating method of message time delay measurement confidence level on second power equipment, proposes
Two assessment message time delays measure the technical indicators of confidence level, and the obtaining value method of corresponding engineering threshold value, pass through FPGA skills
Art constructs measurement assessment system, reflects the confidence level of message time delay in real time.
Second power equipment network message Transmission system containing (n+2) a node is as shown in Figure 1.When proposing total link
Prolong reasonable value and total link time delay error value two indices to weigh the confidence level of message time delay measurement.
Total link time delay reasonable value TallDefinition be:Source node samples fixed delay, the message of single node forwards reasonable value
And the sum of the time delay reasonable value in message transmissions path.
Total link time delay reasonable value TallIndex Formula is as follows:
Suitable for containing the Power Secondary of (n+2) a node (having n intermediate node between source node and purpose node)
Device network message transfer system, n are the integer more than or equal to 1.
Wherein, the fixed delay of intelligent IED source nodes ADC samplings is T0, the time delay of the adjacent forwarding of each single node is reasonable
Value is ti, tiIt is Forwarding Delay reasonable value t between single nodei1With the time delay reasonable value t in message transmissions pathi2Cumulative, i.e. ti=
ti1+ti2;t(n+1)2Refer to the time delay reasonable value in the message transmissions path between (n+1)th node and the n-th+2 nodes.
Time delay relative error δ between single nodeiRefer to forward between single node and the measured value ti of transmission link time-delay relative to
The absolute error of true time delay value.
Total link time delay error value δallDefinition be:After the accumulative summation of the message time delay relative error magnitudes of all single nodes
Arithmetic average, wherein the time delay relative error magnitudes δ of each single nodei, this patent is defined as accumulating report between single node
Median in literary time delay relative error statistics.
Total link time delay error value δallIndex Formula is as follows:
Total link time delay reasonable value TallWith total link time delay error value δallIt is calculated in real time based on equipment local clock,
It can reflect the real-time status of network message propagation delay time.
On real-time statistics total link time delay reasonable value sample basis, determine that network message is total first based on statistical method
Chain-circuit time delay measured value TallMode value M, take engineering threshold coefficient α, β of total link time delay to constitute total link on this basis
The confidence interval [α * M, β * M] of time delay.Wherein, engineering threshold coefficient β embodies network message changes in flow rate and is surveyed to message time delay
The influence of amount also can be the state of network itself with the message flow situation in sensing network by this engineering threshold coefficient
Monitoring provides reference with alarm.
The engineering threshold coefficient γ for taking total link time delay error value, it is γ * δ to obtain Practical Project threshold valueall。
Engineering threshold value of the confidence level that network SV message time delays measure according to total link time delay reasonable value and time delay error value
Online evaluation is carried out, can improve and SV network data time delays are studied and judged.
In practical engineering application, the confidence interval bound for two evaluation indexes predicted by engineering threshold coefficient is bright
The powerful and influential confidence interval values obtained than theory analysis and system measured value statistical distribution are all come wide, practical significance be compared with
Under high confidence level, the nargin of section bound prediction result is larger, and the applicable confidence level of Practical Project of latency measurement is higher,
I.e. while ensureing that time delay value is within the scope of certain measurement accuracy, in turn avoid being brought since real network is uncertain
Unreasonable extreme value appearance.
FPGA technology realization can be used in the network message latency measurement system, it is possible to use the technologies such as ASIC, SoC are realized.
FPGA technology is used to illustrate below.
The network message latency measurement system realized using FPGA technology is as shown in Figures 2 and 3.This system uses a height
Precision crystal oscillator clock source generate synchronizing clock signals, by global clock network in fpga chip give have message time stamp locking and
The special MAC module of time delay debugging functions provides high-performance message sending and receiving and controls clock, this MAC module is remembered according to local clock
Record the sending and receiving time of network message.Local clock module has punctual and anti-error function to ensure time stamp generator function
Reliability.The system supports access external GPS/BD clocks.Illustrate to realize that message time delay measures assessment by taking SV messages as an example below
Flow.
Source node records ADC sampling instants tsThe delivery time t sent with SV messagesx, then T0=tx-ts。
The MAC of SV message forward node is based on t at the time of local clock record receives SV message frame headsrx, and forwarding should
T at the time of message frame headtx, then the SV message Forwarding Delay reasonable values t of single nodei1=ttx-trx。
The time delay reasonable value t in SV message transmissions pathi2Determined by the physical pathway of message transmissions, physical pathway include PHY,
Network transformer, twisted-pair feeder, fiber optical transceiver, optical fiber etc..The time delay of transmission path can utilize IEC61588 standard recommendations
Method calculates.
The SV message Forwarding Delays of this node are transmitted to next by SV message forward node using time delay amendment domain (FTCF)
Node.FTCF is 4 byte length fields in SV message frame formats Header, this field is used for storing the chain-circuit time delay of SV messages
Reasonable value.After forward node calculates the Forwarding Delay reasonable value ti of this node, the FTCF for taking out SV messages adds up, as a result again
Write-back FTCF completes the time delay amendment of this SV message forwarding.Total link time delay reasonable value T is obtained using formula (1)all。
The MAC module of SV message forward node sends and receivees the exhausted of message using external GPS/BD (PPS) clock measurement
To time T(i-1)xAnd Tix, then single node SV messages Forwarding Delay actual time Tabs-i=Tix-T(i-1)x。
Then the message time delay relative error of single node is [Tabs-i-(ti1+ti2)]/Tabs-i, take between single node several times (such as
20000 times) message time delay relative error statistical value is ranked up according to size, and it takes and is located at median conduct in this data sequence
δi。
δ is obtained using formula (2)all。
Choosing the highest numerical value of the frequency of occurrences in the statistical sample of total link time delay reasonable value can as its mode M, α, β
To be determined according to Network status, such as engineering threshold coefficient α=0.9, β=5.0 is taken to obtain confidence interval [M*0.9, M*5.0],
The upper and lower limit of confidence interval is as engineering threshold value.
To ensure the applicability of engineer application, engineering threshold coefficient γ=5.0 is taken to obtain the engineering of total link time delay error
Threshold value 5.0* δall。
If the relative error of total link time delay reasonable value is less than 5.0* δall, and fall at confidence interval [M*0.9, M*5.0]
It is interior, then it is assumed that total link time delay is believable.
In addition, there are many concrete methods of realizing and approach of the present invention, the above is only a preferred embodiment of the present invention.
It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, can also do
Go out several improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.What is be not known in the present embodiment is each
The available prior art of component part is realized.