Credibility evaluation method for network message time delay measurement
Technical Field
The invention belongs to the field of power system automation, and relates to an evaluation method for network message delay measurement reliability.
Background
With the deep application of the technical standards such as IEC61850 and the like in the transformer substation, a large amount of Ethernet is applied to the connection between the electric power secondary equipment, the introduction of Ethernet communication greatly simplifies the interface of the electric power secondary equipment, realizes the sharing of data in the transformer substation, and promotes the realization of the high-level application function of the transformer substation. However, ethernet data transmission has a problem of uncertain network delay, which is not acceptable for some power service data, for example, SV network sampling data synchronization of a protection device must be realized based on accurate sampling time, and a common solution to this problem at present is to realize data synchronization between power secondary devices based on external GPS time.
With the progress of computer technology and microelectronic technology, the time delay measurement of an Ethernet message transmission path based on hardware technology becomes practical. The transmission delay of the Ethernet message in the network nodes can be calculated by using the time difference between the message receiving time and the message sending time, the transmission delay of the Ethernet message between the network nodes can be calculated by mutually sending the message between the nodes, simultaneously recording the time information of the round-trip message, and then calculating by using a certain algorithm. The occurrence of the equipment with the network message time delay measurement function ensures that SV network data synchronization of the power secondary equipment does not depend on an external GPS clock any more, and the reliability is obviously improved.
Currently, the method for measuring the message delay in real time is derived and implemented based on the basic principle of ethernet communication, for example, the real-time measurement and correction of the delay value are performed on the bottom layer of data communication by the FPGA (field programmable gate array) technology. Because the delay value corrected by the FPGA needs to be forwarded along with a message frame, a delay correction domain needs to be added in the message protocol, which is different from the standard Ethernet protocol; the more device nodes the message passes through, the higher the possibility that the delay correction value is wrong. In addition, due to the fact that multiple service messages may be simultaneously transmitted and received, the message flow rate may suddenly change, and a network storm may exist in the multi-service common port network such as SV, GOOSE, MMS, etc., the delay measurement accuracy and the delay accumulated value of the messages may be adversely affected. Although the principle of the message delay measurement technology is becoming mature, the reliability of the message delay measurement result is still a problem to be solved.
Disclosure of Invention
The purpose of the invention is as follows: the method and the device are used for solving the problem of how to evaluate the credibility of the message time delay measurement result.
The technical scheme is as follows: in order to achieve the purpose, the invention can adopt the following technical scheme:
a reliability evaluation method for network message delay measurement is characterized in that: setting a reasonable value of the total link delay of the network message and a relative error value of the total link delay of the network message;
the reasonable value of the total link time delay of the network message is obtained by taking the sum of the fixed time delay of the sampling of the source node, the reasonable value of the message forwarding of the single node and the reasonable value of the time delay of the message transmission path as the reasonable value of the total link time delay of the network message;
the method for obtaining the relative error value of the total link time delay of the network message comprises the steps of taking a median of the relative errors of the sum of the message forwarding time delay of a single node and the time delay of a transmission path between nodes, and taking an arithmetic mean value as the total link time delay error value after the message time delay errors of all the nodes are accumulated and summed;
multiplying a mode in a statistical sample of the reasonable value of the network message total link time delay by a threshold coefficient to serve as an engineering threshold of the total link time delay value, and reflecting the real-time state of network message transmission through the engineering threshold coefficient;
and multiplying the relative error value of the total link time delay of the network message by an engineering threshold coefficient to serve as an engineering threshold of the relative error of the total link time delay, and reflecting the measurement precision state of the network system through the engineering threshold coefficient.
Has the advantages that: 1) the credibility index of the message delay measurement value can be evaluated online in real time.
2) The network message time delay measurement result can be measured by a quantitative index.
3) The method and the device can ensure that the message delay measurement value is within a certain measurement precision range, and simultaneously avoid unreasonable extreme values caused by actual network uncertainty.
4) The engineering threshold parameter can reflect the variation trend of the network flow.
Furthermore, the reasonable value of the total link delay in the network message is calculated in real time based on the local clock and does not depend on the external clock.
Furthermore, an absolute time delay value of network message transmission time delay is measured based on an external GPS/BD, and a relative difference value of a reasonable value of the total link time delay is calculated and measured.
Furthermore, the reasonable value T of the total link time delayallThe index formula is as follows:
the fixed time delay of ADC sampling of the source node of the intelligent IED is T0The reasonable time delay value of adjacent forwarding of each single node is ti,tiIs a reasonable value t of forwarding delay between single nodesi1Time delay reasonable value t of message transmission pathi2Of (a), i.e. ti=ti1+ti2;t(n+1)2The time delay reasonable value of a message transmission path between the (n + 1) th node and the (n +2) th node is indicated;
total link delay error value deltaallThe index formula is as follows:
in which the relative error delta of time delay between single nodesiIs the measured value t of the time delay of the forwarding and transmission link between single nodesiAbsolute error with respect to the true delay value.
Further, on the basis of real-time statistics of a reasonable value sample of the total link delay, a measurement value T of the total link delay of the network message is firstly determined based on a statistical methodallOn the basis, engineering threshold coefficients alpha and beta of the total link delay are taken to form a confidence interval [ alpha, beta, M ] of the total link delay](ii) a The engineering threshold coefficient beta reflects the influence of network message flow change on message delay measurement, namely the message flow situation in the network is sensed through the engineering threshold coefficient;
obtaining an engineering threshold coefficient gamma of the total link time delay error value to obtain an actual engineering threshold value gamma deltaall;
The reliability of network SV message time delay measurement is evaluated on line according to the engineering threshold value of the total link time delay reasonable value and the time delay error value, if the relative error of the total link time delay reasonable value is less than gamma, delta and the likeallAnd falls within a confidence interval [ α M, β M]Interior, then, identifyThe total link delay is trusted.
Furthermore, a high-performance message receiving and sending control clock is provided for a special MAC module with message timestamp locking and delay correction functions through a global clock network in the FPGA chip, and the MAC module records the receiving and sending time of network messages according to a local clock; the local clock module has the functions of keeping watch and preventing error to ensure the reliability of the function of the timestamp generator
Drawings
Fig. 1 is a network message transmission system of a power secondary device having n nodes.
Fig. 2 is a network message delay measurement system implemented by using the FPGA technology.
Fig. 3 is a partially enlarged view of a portion of the MAC module of fig. 2.
Detailed Description
The invention realizes a real-time evaluation method for the message delay measurement reliability on the power secondary equipment, provides two technical indexes for evaluating the message delay measurement reliability and a value taking method of a corresponding engineering threshold value, constructs a measurement evaluation system through an FPGA technology, and reflects the message delay reliability in real time.
Fig. 1 shows a network message transmission system for a power secondary device having (n +2) nodes. Two indexes of a reasonable total link delay value and a total link delay error value are provided to measure the reliability of message delay measurement.
Reasonable value T of total link time delayallThe definition of (A) is: and the sum of the fixed time delay of the source node sampling, the reasonable value of the message forwarding of the single node and the reasonable value of the time delay of the message transmission path.
Reasonable value T of total link time delayallThe index formula is as follows:
the method is suitable for the power secondary equipment network message transmission system containing (n +2) nodes (namely n intermediate nodes are arranged between a source node and a destination node), wherein n is an integer greater than or equal to 1.
The fixed time delay of ADC sampling of the source node of the intelligent IED is T0The reasonable time delay value of adjacent forwarding of each single node is ti,tiIs a reasonable value t of forwarding delay between single nodesi1Time delay reasonable value t of message transmission pathi2Of (a), i.e. ti=ti1+ti2;t(n+1)2The time delay of the message transmission path between the (n + 1) th node and the (n +2) th node is a reasonable value.
Relative delay error delta between single nodesiIs the measured value t of the time delay of the forwarding and transmission link between single nodesiAbsolute error with respect to the true delay value.
Total link delay error value deltaallThe definition of (A) is: the arithmetic mean value after the cumulative summation of the message time delay relative error values of all the single nodes, wherein the time delay relative error value delta of each single nodeiThe method is defined as a median in statistics of relative errors of accumulated message time delay among single nodes.
Total link delay error value deltaallThe index formula is as follows:
reasonable value T of total link time delayallAnd the total link delay error value deltaallThe real-time state of the network message transmission delay can be reflected by real-time calculation based on the local clock of the equipment.
On the basis of real-time statistics of a reasonable value sample of the total link delay, firstly, a measured value T of the total link delay of a network message is determined based on a statistical methodallOn the basis, engineering threshold coefficients alpha and beta of the total link delay are taken to form a confidence interval [ alpha, beta, M ] of the total link delay]. The engineering threshold coefficient beta reflects the influence of network message flow change on message delay measurement, namely, the message flow situation in the network can be sensed through the engineering threshold coefficient, and reference is provided for state monitoring and alarming of the network.
Taking total link delay error valuesThe engineering threshold coefficient gamma is obtained, and the actual engineering threshold value is gamma deltaall。
The reliability of network SV message time delay measurement is evaluated on line according to the reasonable value of the total link time delay and the engineering threshold value of the time delay error value, so that the study and judgment on SV network data time delay can be improved.
In practical engineering application, the upper and lower bounds of the confidence interval of two evaluation indexes predicted by the engineering threshold coefficient are obviously wider than the statistical distribution of the confidence interval value and the system measured value obtained by theoretical analysis, and the practical significance lies in that under a higher confidence level, the margin of the prediction result of the upper and lower bounds of the interval is larger, the practical engineering application reliability of time delay measurement is higher, namely the time delay value is ensured within a certain measurement precision range, and the occurrence of unreasonable extreme values caused by the uncertainty of a practical network is avoided.
The network message time delay measuring system can be realized by adopting an FPGA technology, and can also be realized by adopting technologies such as ASIC (application specific integrated circuit), SoC (system on chip) and the like. The following takes the example of FPGA technology.
Fig. 2 and 3 show a network message delay measurement system implemented by using the FPGA technology. The system uses a high-precision crystal oscillator clock source to generate a synchronous clock signal, a high-performance message receiving and sending control clock is provided for a special MAC module with message timestamp locking and delay correction functions through a global clock network in an FPGA chip, and the MAC module records the receiving and sending time of network messages according to a local clock. The local clock module has time keeping and error preventing functions to ensure the reliability of the timestamp generator function. The system supports access to an external GPS/BD clock. The following describes a procedure for implementing measurement and evaluation of message delay by using SV messages as an example.
The source node records the ADC sampling time tsAnd the sending time t of SV message sendingxThen T is0=tx-ts。
The MAC of the SV message forwarding node records the time t of receiving the SV message frame header based on the local clockrxAnd the time t for forwarding the header of the message frametxIf the SV message of the single node is forwarded with the reasonable delay value ti1=ttx-trx。
Reasonable time delay value t of SV message transmission pathi2The physical path of the message transmission is determined, and the physical path comprises PHY, network transformer, twisted pair, optical fiber transceiver, optical fiber and the like. The delay of the transmission path can be calculated by using the method recommended by the IEC61588 standard.
And the SV message forwarding node transmits the SV message forwarding delay of the node to the next node by using a delay correction domain (FTCF). The FTCF is a 4-byte length field in the SV message frame format Header, and the field is used for storing a reasonable value of the link delay of the SV message. And after the forwarding node calculates the reasonable forwarding delay value ti of the node, the FTCF of the SV message is taken out for accumulation, the result is written back to the FTCF, and the time delay correction of the SV message forwarding is completed. Obtaining a reasonable value T of the total link time delay by using a formula (1)all。
The MAC module of the SV message forwarding node measures the absolute time T of receiving and sending messages by using an external GPS/BD (PPS) clock(i-1)xAnd TixIf the real time T of the single-node SV message forwarding delay is zeroabs-i=Tix-T(i-1)x。
The relative error of the message delay of the single node is Tabs-i-(ti1+ti2)]/Tabs-iSorting the statistics of relative errors of time delay of messages for several times (for example 20000 times) among single nodes according to their sizes, and taking the median in the data sequence as deltai。
Obtaining delta using equation (2)all。
The value with the highest occurrence frequency is selected from the statistical sample of the reasonable value of the total link delay as the mode M, α and β can be determined according to the network condition, for example, the engineering threshold coefficient α is 0.9, β is 5.0, to obtain the confidence interval [ M × 0.9, M × 5.0], and the upper and lower limits of the confidence interval are used as the engineering threshold.
In order to ensure the applicability of engineering application, an engineering threshold coefficient gamma is 5.0 to obtain an engineering threshold 5.0 delta of the total link time delay errorall。
If the relative error of the reasonable value of the total link time delay is less than 5.0 deltaallAnd falls within a confidence interval [ M0.9, M5.0]If not, then the overall link is consideredThe delay is trusted.
In addition, the present invention has many specific implementations and ways, and the above description is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be construed as the protection scope of the present invention. All the components not specified in the present embodiment can be realized by the prior art.