Disclosure of Invention
In order to test the problems of data acquisition and processing capacity of a power distribution automation master station system, the invention provides a simulation test method and system for mass measurement data. The method adopts computer technology, computer network technology, power communication technology and distributed packet data management technology to develop software, and has the simulation processing capacity of simulating millions of measuring points. The technical scheme provided by the invention realizes verification of the access capability of the mass measurement data of the power distribution automation master station system through mass concurrent simulation of the measurement data.
The technical scheme provided by the invention is as follows: a simulation test method for mass measurement data comprises the following steps:
determining the number of virtual power distribution terminals to be constructed based on the number of measurement data to be generated, and connecting all the virtual power distribution terminals with a tested master station;
grouping the virtual power distribution terminals, and controlling the virtual power distribution terminals in each group to simulate the operation data of the power distribution network to generate mass measurement data;
and each virtual power distribution terminal parallelly transmits the mass measurement data to the tested master station to generate a performance analysis result of the tested master station.
Preferably, the construction of the virtual power distribution terminal includes:
setting an IP address and a port number of a virtual power distribution terminal based on communication between the power distribution terminal and a master station;
generating template data of the virtual power distribution terminal meeting a protocol format based on data content acquired by the power distribution terminal;
wherein the template data includes: state quantity data and analog quantity data.
Preferably, the controlling the virtual distribution terminals in each group to simulate the operation data of the distribution network to generate mass measurement data includes:
configuring pressure parameters for all virtual power distribution terminals, and configuring the same pressure parameters for all virtual power distribution terminals in the same group;
simulating the operation data of the power distribution network based on the pressure parameters of each virtual power distribution terminal to generate measurement data;
the pressure parameters comprise the change frequency and the change mode of the measurement data.
Preferably, the configuring the same pressure parameter for all the virtual power distribution terminals in the same group includes:
when all virtual power distribution terminals in the same group simulate the running state quantity data and analog quantity data of the power distribution network, setting the same change frequency of the state quantity data and the analog quantity data and the change modes of the state quantity data and the analog quantity data;
the changing modes of the state quantity data include odd-numbered changes, even-numbered changes and all changes,
the analog data is changed in a manner of increasing, decreasing and sawtooth wave.
Preferably, the simulating the operation data of the power distribution network based on the pressure parameters of each virtual power distribution terminal to generate measurement data includes:
and generating measurement data based on conventional measurement changes and avalanche changes of the operation data of the simulated distribution network of each virtual distribution terminal.
Preferably, the conventional measurement variation includes: each virtual power distribution terminal simulates 0.7-1.5 thousands of measurement data in 1 second and changes the measurement data within a set change frequency;
the avalanche variation, comprising: and setting the change frequency of the measurement data simulated by the part of virtual power distribution terminals to be a multiple of the conventional measurement change frequency on the basis of the conventional measurement change.
Preferably, each virtual power distribution terminal simulates 0.7-1.5 thousands of measurement data in 1 second, including:
and in the set time, uniformly dividing the measurement data change mode which needs to be simulated based on the group number of the virtual power distribution terminal, and uniformly outputting the generated measurement data.
Preferably, after the virtual distribution terminals in each group are controlled to simulate the operation data of the power distribution network to generate mass measurement data, the method further comprises:
real-time monitoring the protocol source codes corresponding to the measurement data generated by each virtual power distribution terminal, the communication state of the virtual power distribution terminal and the measurement data changing in real time;
checking the working state of each virtual power distribution terminal based on the monitored protocol source codes and the on-line state of the virtual power distribution terminal;
counting the quantity of the output measurement data based on the measurement data changing in real time;
verifying the quantity of the measured data received by the measured master station based on the quantity of the outputted measured data;
wherein the number of measurement data includes: the number of times of state quantity data transmission, the number of times of state quantity data transmission with time marks and the number of times of analog quantity data transmission.
Preferably, each virtual power distribution terminal sends the mass measurement data to the tested master station in parallel, and generates a performance analysis result of the tested master station, including:
based on the set evaluation index and the quantity of the measured data received by the measured master station, determining the average CPU load and the memory utilization rate of the server of the measured master station;
and when the average CPU load and the memory utilization rate of the server of the tested master station are greater than the threshold value, the tested master station is qualified.
Preferably, all the virtual power distribution terminals are connected with the tested master station, including:
all the virtual power distribution terminals share one IP address, and each virtual power distribution terminal is allocated with different port numbers to communicate with the tested master station, or multiple IP addresses are simulated, and each virtual power distribution terminal is allocated with different IP addresses, but the same port number is used to communicate with the tested master station.
Based on the same inventive concept, the invention also provides a simulation test system for mass measurement data, which comprises:
the communication module is used for determining the number of the constructed virtual power distribution terminals based on the number of the measurement data to be generated and connecting all the virtual power distribution terminals with the tested master station;
the generation module is used for grouping the virtual power distribution terminals and controlling the virtual power distribution terminals in each group to simulate the operation data of the power distribution network to generate mass measurement data;
and the test module is used for transmitting the mass measurement data to the tested master station in parallel by each virtual power distribution terminal to generate a performance analysis result of the tested master station.
Preferably, the system further comprises a construction module for constructing a virtual power distribution terminal;
the construction module comprises:
a communication unit is constructed and used for setting the IP address and the port number of the virtual power distribution terminal based on the communication between the power distribution terminal and the master station;
the data content constructing unit is used for generating template data of which the virtual power distribution terminal meets a protocol format based on data content acquired by the power distribution terminal;
wherein the template data includes: state quantity data and analog quantity data.
Compared with the prior art, the invention has the beneficial effects that:
according to the technical scheme provided by the invention, the number of the virtual power distribution terminals is determined and constructed based on the number of the measurement data to be generated, and all the virtual power distribution terminals are connected with a tested master station; grouping the virtual power distribution terminals, and controlling the virtual power distribution terminals in each group to simulate the operation data of the power distribution network to generate mass measurement data; and each virtual power distribution terminal parallelly transmits the mass measurement data to the tested master station to generate a performance analysis result of the tested master station, the virtual power distribution terminal is subjected to distributed packet data management to generate mass measurement data, and the tested master station is accessed in parallel through multiple threads, so that the test level and the test work efficiency of the master station system can be greatly improved, and a standard, scientific and real test result is provided for test evaluation.
The technical scheme provided by the invention adopts the communication characteristics of the simulated power distribution terminal, the simulation of the operation data of the power distribution network, the concurrent operation of a large number of virtual power distribution terminals of a single device, the parallel access of mass measurement data and the like, and has the simulation capability of simulating 70 ten thousand to 150 ten thousand measurement data.
According to the technical scheme provided by the invention, a grouping data management technology and a multithreading technology are adopted for mass virtual power distribution terminals, and the same measurement simulation change mode is adopted for the virtual power distribution terminals in the same group, so that the requirements on efficiency and indexes are ensured.
Detailed Description
For a better understanding of the present invention, reference is made to the following description, drawings and examples.
Example 1
As shown in FIG. 1, the invention provides a simulation test method for mass measurement data, which comprises the following steps:
step S1, determining the number of virtual power distribution terminals to be built based on the number of measurement data to be generated, and connecting all the virtual power distribution terminals with a tested master station;
s2, grouping the virtual power distribution terminals, and controlling the virtual power distribution terminals in each group to simulate the operation data of the power distribution network to generate mass measurement data;
and step S3, each virtual power distribution terminal parallelly transmits the mass measurement data to the tested master station to generate a performance analysis result of the tested master station.
As shown in fig. 2, the specific method for generating mass measurement data in this embodiment includes:
step S1, determining the number of constructed virtual power distribution terminals based on the number of measurement data to be generated, and connecting all the virtual power distribution terminals with a tested master station, wherein the method specifically comprises the following steps:
1) And establishing communication connection and simulating data content which is recognized by the tested master station and accords with a standard protocol format through simulating communication between the actual power distribution terminal and the tested master station, and constructing the virtual power distribution terminal.
The constructed virtual power distribution terminal can simulate 70-150 measurement data in 1 second, and the virtual power distribution terminal is generally set to simulate 100 measurement data in 1 second in engineering application.
In this embodiment, 100 tens of thousands of measurement data are required to be generated to test the tested master station, and when each virtual power distribution terminal simulates 100 measurement data within 1 second, 10 virtual power distribution terminals are required to be constructed.
2) Based on the collected data content of a typical power distribution terminal, template data of the virtual power distribution terminal are constructed, the operation data of the power distribution network are simulated according to the template data, the template data comprise state quantity data and analog quantity data, the state quantity data comprise data with discrete change characteristics, and the analog quantity data comprise data with continuous value change characteristics.
3) After the measurement setting of the single virtual power distribution terminal is completed, the configuration can be expanded to all virtual power distribution terminals in batches to generate mass data, a pressure test environment is quickly constructed, and the test of relevant performance is carried out.
4) And the grouping data management technology is adopted for all the virtual power distribution terminals, and the same measurement simulation change mode is adopted for the virtual power distribution terminals in the same group, so that the requirements on efficiency and indexes are ensured.
5) Flexibly configuring communication parameters, measurement parameters and pressure parameters of all virtual power distribution terminals;
the communication parameters comprise communication IP addresses and port numbers of the virtual power distribution terminals, two modes are realized for the communication between the virtual power distribution terminals and the tested master station, one mode is that all the virtual power distribution terminals share one IP address, and the communication with the tested master station is realized by distributing different port numbers for different virtual power distribution terminals; the other type is to virtually allocate a plurality of IP addresses on the workstation, and allocate different IP addresses for different virtual power distribution terminals, but use the same port number to realize communication with the tested master station.
The measurement parameters are the specific content of simulated remote signaling, remote measurement, remote control and other measurement data.
The pressure parameter is configured with all state quantity data and analog quantity data, namely the time of one time of change, namely the change frequency, the change mode and the like.
And establishing communication, data interaction start, pause, termination and other operation interfaces, and meeting the data requirements of the tested master station under different scenes.
Step S2, grouping the virtual power distribution terminals, and controlling the virtual power distribution terminals in each group to simulate the operation data of the power distribution network to generate mass measurement data, wherein the method specifically comprises the following steps:
6) After the virtual power distribution terminal communication is established, all or part of virtual power distribution terminals can be selected, and the change modes of state quantity data and analog quantity data can be manually set, wherein the change modes of the state quantity data comprise odd-numbered changes, even-numbered changes and all changes, the change modes of the analog quantity data comprise increment, decrement, sawtooth waves and the like, and the data change triggering mode is that the measured data to be simulated are uniformly distributed within a specified time, so that the changed data are uniformly output.
7) And simulating conventional measurement change and avalanche change (instant large data uploading in the case of grid accident) test data on the virtual power distribution terminal and outputting the test data to the tested master station in real time.
The conventional measurement change means that about 1 ten thousand measurement data are changed once in 1 second and sent to the measured master station, so that 10 power distribution terminals are selected when the conventional measurement change is simulated, 0.7-1.5 ten thousand measurement data are generated in 1 second, and the measurement data are changed in the set change frequency;
the avalanche occurrence amount is far greater than the conventional change amount, generally about 5 times of the conventional change amount, and a plurality of power distribution terminals generally appear simultaneously when the avalanche occurs, so that when the avalanche change is simulated, a part of virtual power distribution terminals, generally about 20%, can be selected on the basis of conventional measurement change, the frequency of data change is increased by N times (N is a positive integer), and in the embodiment, after the historical avalanche data analysis is combined, 2 of the virtual power distribution terminals are selected, the change frequency of the measured data is increased by 5 times, and then the simulation data is changed and transmitted.
8) The method comprises the steps of monitoring protocol source codes corresponding to simulated measurement change data of the virtual power distribution terminal, communication state of the virtual power distribution terminal and real-time measurement change data in real time, and automatically counting the output quantity of various simulation measurement data, wherein the quantity comprises state quantity transmission times, state quantity transmission times with time marks, analog quantity transmission times and the like, so that the data checking requirement is met.
Step S3, each virtual power distribution terminal transmits the mass measurement data to the tested master station in parallel, and generates a performance analysis result of the tested master station, comprising the following steps:
9) And determining the average CPU load and the memory utilization rate of the server of the tested master station based on the set evaluation index and the measurement data processed by the tested master station.
In this embodiment, when the average CPU load and memory usage rate of the server of the tested master station is less than 40% within 5 minutes, the tested master station is qualified.
The technical scheme provided by the embodiment can simulate a large number of virtual power distribution terminals to simultaneously communicate with the tested master station on line, and simulate 70-150 thousands of power distribution network operation measurement data in real time to upload to the tested master station.
The technical scheme provided by the embodiment adopts a multithreading technology for mass virtual power distribution terminals, and ensures that measurement data generated by all the virtual power distribution terminals are simultaneously sent to a tested master station.
The software provided by the embodiment adopts a single-machine hardware structure, has simple structure, is easy to build and maintain, ensures the running reliability, stability and portability of the system, and effectively ensures that the detection work of the distribution main station is carried out at any place.
The software system provided by the embodiment operates by relying on the LINUX platform, and the functional interfaces of the man-machine interaction interface module and the electric power communication library module are designed completely according to Windows style, so that the software system accords with the operation habit of users and is easy to use.
According to the configuration information of the power distribution terminals, the FTU number, the DTU collection switch number, the terminal initial IP address, the address mask and the channel number are simulated to generate the FTU and DTU equipment meeting the power distribution automation requirements.
Further, simulating the state data, the operation data, the fault action data and the like of the real-time power distribution network equipment specifically comprises the following steps:
1) The system carries out YC data simulation according to a sawtooth wave or other mathematical models, and the YC data change period can be set between 1 second and 30000 seconds;
if the system defaults that the YX data does not shift, if the YX data is set to be variable, the YX shift data simulation is carried out according to the original state reversal, and the YX data change period is set to be 1-30000 seconds;
SOE data simulation is consistent with YX deflection data simulation;
analog data are simulated and injected into the distribution automation system, so that the data processing function of the distribution automation system can be checked conveniently.
2) The system has the ability to simulate conventional metrology changes and simulate avalanche (instantaneous mass data up-feed at grid incidents) test data.
3) The system communication configuration adopts a mode of single IP and multiple ports to configure, the IP of the same workstation is adopted by the simulated virtual power distribution terminal when the virtual power distribution terminal is in communication, different virtual power distribution terminals adopt different port numbers, the port numbers are automatically configured according to an increasing rule, and the virtual power distribution terminals do not need to be configured one by one.
4) The system is based on TCP/IP protocol, the virtual distribution terminal is used as a mode of a server to communicate with the tested master station. The requirement of typical point tables corresponding to different terminals such as DTU, FTU and the like is met by flexibly configuring the corresponding remote signaling, remote measuring and remote controlling quantity in the point table of each virtual power distribution terminal.
5) The following is a typical switch data collection:
in an actual test configuration, if one DTU collects 10 switches, a virtual power distribution terminal of the corresponding analog DTU can be provided with 80 telemetry, 20 telemetry and 10 remote control.
For the FTU, 1 to 2 switches (erected on the same pole) are generally collected, and 16 telemetry, 4 telemetry and 2 remote control are arranged on the corresponding virtual power distribution terminal simulating the FTU.
However, only the quantity of the measured data sent to the tested master station is counted in the test, and the type of the power distribution terminals sending the measured data is not concerned, because the types of the sent data are the same (analog quantity data and state quantity data) although the power distribution terminals are different, the DTU and the FTU are not distinguished, and the corresponding virtual power distribution terminal quantity and the measured quantity can be directly configured according to the pressure test requirement.
After the virtual power distribution terminal and the tested master station are communicated, the system can monitor interactive protocol source codes, online states of the virtual power distribution terminal, real-time changing measurement data and statistics of output measurement data in real time.
Checking the working state of each virtual power distribution terminal based on the monitored protocol source codes and the on-line state of the virtual power distribution terminal;
counting the quantity of the output measurement data based on the measurement data changing in real time;
verifying the quantity of the measured data received by the measured master station based on the quantity of the outputted measured data;
wherein, the quantity of the measurement data includes: the number of times of state quantity data transmission, the number of times of state quantity data transmission with time marks and the number of times of analog quantity data transmission.
The mass measurement data are sent to a tested master station in parallel, and the average CPU load and the memory utilization rate of a server of the tested master station are determined based on the set evaluation index and the measurement data received by the tested master station;
and when the average CPU load and the memory utilization rate of the server of the tested master station are greater than the threshold value, the tested master station is qualified.
In a human-computer interface of the system, functions of communication establishment, data interaction start, suspension, termination and the like are supported, control requirements of all virtual power distribution terminals, a plurality of continuous virtual power distribution terminals or a single virtual power distribution terminal are supported, flexible transmission control requirements of measurement data are supported, and all information of each virtual power distribution terminal is specifically displayed in a report format.
Example 2
Based on the same inventive concept, the embodiment also provides a simulation test system for mass measurement data, which comprises:
the communication module is used for determining the number of the constructed virtual power distribution terminals based on the number of the measurement data to be generated and connecting all the virtual power distribution terminals with the tested master station;
the generation module is used for grouping the virtual power distribution terminals and controlling the virtual power distribution terminals in each group to simulate the operation data of the power distribution network to generate mass measurement data;
and the test module is used for transmitting the mass measurement data to the tested master station in parallel by each virtual power distribution terminal to generate a performance analysis result of the tested master station.
In an embodiment, the system further includes a construction module configured to construct a virtual power distribution terminal;
the construction module comprises:
a communication unit is constructed and used for setting the IP address and the port number of the virtual power distribution terminal based on the communication between the power distribution terminal and the master station;
the data content constructing unit is used for generating template data of which the virtual power distribution terminal meets a protocol format based on data content acquired by the power distribution terminal;
wherein the template data includes: state quantity data and analog quantity data.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing is illustrative of the present invention and is not to be construed as limiting thereof, but rather as providing for the use of additional embodiments and advantages of all such modifications, equivalents, improvements and similar to the present invention are intended to be included within the scope of the present invention as defined by the appended claims.