A kind of emulation test method and system of magnanimity metric data
Technical field
The present invention relates to power distribution automation main station detection fields, and in particular to a kind of emulation testing side of magnanimity metric data
Method and system.
Background technique
Recently as the continuous development of electric power networks, the sustainable growth of power load, various novel loads are continued to bring out,
User focuses more on power quality problem, while also proposed more strict requirements to energy-saving and emission-reduction.Control centre needs more
Add effective power monitoring rwan management solution RWAN to cope with above-mentioned variation bring challenge, with realize distribution system continue it is reliable,
Efficiently, the operation of low consumption.Electrical power distribution automatization system (DAS) is that one kind can make distribution enterprise in the case of remote, with reality
When mode monitor, coordinate and operate the automated system of controller switching equipment;Electrical power distribution automatization system include electric distribution network data collection with
Monitor (SCADA system), distribution GIS-Geographic Information System (GIS) and demand side management (DSM).Electrical power distribution automatization system is using modern
Mechanics of communication and computer technology are realized to every analysis of distribution system and management function, and the effect of distribution system management is improved
Rate ensures the reliable and secure operation of distribution system, helps user to realize electric energy consumption reduction target, to create value for user.
With the rapid development that power distribution automation works, more and more areas implement power distribution automation main station system
Construction, to ensure engineering construction quality, the test job of power distribution automation main station system is one of important process.For power distribution network
Feature multi-point and wide-ranging, operation data amount is big, simulation distribution terminal generate magnanimity power distribution network operation data and access power distribution automation
Main station system is the key that test power distribution automation main station system data acquisition and processing capacity.
Summary of the invention
The problem of in order to test power distribution automation main station system data acquisition and processing capacity, the present invention provide a kind of magnanimity
The emulation test method and system of metric data.Mass data is generated by simulation distribution terminal, and uses packet data management
Method is managed the virtual distribution terminal of building, realizes the survey of the limit processing capacity to power distribution automation main station system
Examination, the technical solution use computer technology, computer networking technology, power system telecommunications technology and distributed packet data management
Technology carries out the development of software, has the simulation process ability for simulating millions of a measuring points.Technical solution provided by the invention
It is emulated by the massive concurrent of metric data, realizes the verifying of power distribution automation main station system magnanimity metric data access capability.
Present invention provide the technical scheme that a kind of emulation test method of magnanimity metric data, comprising:
Based on the quantity of metric data to be generated, the quantity for constructing virtual distribution terminal is determined and by all virtual distribution
Terminal is connect with tested main website;
Each virtual distribution terminal is grouped, and control the virtual distribution terminal in each group to power distribution network operation data into
Row emulation generates magnanimity metric data;
Each virtual distribution terminal by the magnanimity metric data it is parallel on be sent to tested main website, generate the performance of tested main website
Analyze result.
Preferably, the building of the virtual distribution terminal, comprising:
Based on the communication between distribution terminal and main website, the IP address and port numbers of virtual distribution terminal are set;
Based on the data content of distribution terminal acquisition, the template data that virtual distribution terminal meets rule schemata is generated;
Wherein, the template data includes: state quantity data and analog data.
Preferably, the virtual distribution terminal in the control each group carries out emulation to power distribution network operation data and generates magnanimity amount
Measured data, comprising:
Pressure parameter is configured to all virtual distribution terminals, and is that virtual distribution terminal configuration all in same group is identical
Pressure parameter;
Based on the pressure parameter of each virtual distribution terminal, emulation is carried out to power distribution network operation data and generates metric data;
Wherein, the pressure parameter includes the change frequency and variation pattern of metric data.
Preferably, described is that virtual distribution terminal all in same group configures identical pressure parameter, comprising:
When virtual distribution terminal all in same group imitates distribution Running State amount data and analog data
When true, the change of identical state quantity data and analog data change frequency and state quantity data and analog data is set
Change mode;
The variation pattern of the state quantity data includes that odd number becomes, even number becomes and all becomes,
The variation pattern of the analog data includes being incremented by, successively decreasing and sawtooth wave.
Preferably, the pressure parameter based on each virtual distribution terminal, carries out emulation generation to power distribution network operation data
Metric data, comprising:
Variation and snowslide variation are measured based on each the conventional of virtual distribution terminal emulation power distribution network operation data, generates and measures
Data.
Preferably, conventional measure changes, comprising: each virtual distribution terminal simulates 0.7-1.5 ten thousand measurements in 1 second
Data simultaneously change metric data in the change frequency of setting;
Snowslide variation, comprising: on the basis of routinely measuring variation, measurement that partial virtual distribution terminal is simulated
The change frequency of data is set as the conventional multiple for measuring change frequency.
Preferably, each virtual distribution terminal simulates ten thousand metric data of 0.7-1.5 in 1 second, comprising:
Within the time of setting, the metric data variation pattern that the group number based on virtual distribution terminal respectively needs to emulate,
And the metric data of generation is uniformly exported.
Preferably, virtual distribution terminal carries out emulation to power distribution network operation data and generates magnanimity measurement in the control each group
After data, further includes:
Each virtual distribution terminal of real-time monitoring generates the communication shape of the corresponding specification source code of metric data, virtual distribution terminal
The metric data of state and real-time change;
Presence based on the specification source code and virtual distribution terminal that monitor checks the work of each virtual distribution terminal
State;
The metric data quantity of metric data statistics output based on real-time change;
Metric data quantity validation based on output is tested the received metric data quantity of main website;
Wherein, the quantity of the metric data includes: state quantity data transmission times, the transmission with markers state quantity data
Number and analog data transmission times.
Preferably, each virtual distribution terminal by the magnanimity metric data it is parallel on be sent to tested main website, generate quilt
Survey the results of performance analysis of main website, comprising:
The received metric data quantity of evaluation index and tested main website based on setting determines that the server of tested main website is flat
Equal cpu load and memory usage;
When the server average CPU load and memory usage > threshold value of tested main website, it is qualified to be tested main website.
Preferably, all virtual distribution terminals are connect with tested main website, comprising:
All virtual distribution terminals share an IP address, by distributing different port numbers for each virtual distribution terminal
It is communicated with tested main website, or the multiple IP address of simulation, distributes different IP address for each virtual distribution terminal, but use phase
Same port numbers are communicated with tested main website.
Based on the same inventive concept, the present invention also provides a kind of emulation test systems of magnanimity metric data, comprising:
Communication module determines the quantity of the virtual distribution terminal of building simultaneously for the quantity based on metric data to be generated
All virtual distribution terminals are connect with tested main website;
Generation module for being grouped to each virtual distribution terminal, and controls the virtual distribution terminal in each group to matching
Grid operation data carries out emulation and generates magnanimity metric data;
Test module, for each virtual distribution terminal by the magnanimity metric data it is parallel on be sent to tested main website, generate
The results of performance analysis of tested main website.
Preferably, the system also includes building modules, for constructing virtual distribution terminal;
The building module includes:
Communication unit is constructed, for based on the communication between distribution terminal and main website, the IP of virtual distribution terminal is set
Location and port numbers;
Data content unit is constructed, the data content for being acquired based on distribution terminal is generated virtual distribution terminal and met
The template data of rule schemata;
Wherein, the template data includes: state quantity data and analog data.
Compared with prior art, the invention has the benefit that
Technical solution provided by the invention is determined based on the quantity of metric data to be generated and is constructed virtual distribution terminal
Quantity and all virtual distribution terminals are connect with tested main website;Each virtual distribution terminal is grouped, and controls each group
Interior virtual distribution terminal carries out emulation to power distribution network operation data and generates magnanimity metric data;Each virtual distribution terminal will be described
It is sent to tested main website on magnanimity metric data is parallel, generates the results of performance analysis of tested main website, virtual distribution terminal is used
Distributed packet data management, generates the metric data of magnanimity, accesses tested main website by multi-threaded parallel, can mention significantly
Height provides specification, science and true test result to the testing level and test job efficiency of main station system for test evaluation.
Technical solution provided by the invention uses simulation distribution terminal communication feature, power distribution network operation data emulation, list
Largely virtual distribution terminal is concurrently run and magnanimity metric data concurrent access etc. device, which has simulation 70
The simulation capacity of ten thousand -150 ten thousand metric data.
Technical solution provided by the invention uses packet data management technology and multithreading skill to the virtual distribution terminal of magnanimity
Art emulates changing pattern using same measurement to the virtual distribution terminal in same group, ensure that and want to efficiency and index
It asks.
Detailed description of the invention
Fig. 1 is the emulation test method flow chart of magnanimity metric data of the present invention;
Fig. 2 is the detail flowchart of distribution terminal metric data massive concurrent emulation in the embodiment of the present invention.
Specific embodiment
For a better understanding of the present invention, the contents of the present invention are done further with example with reference to the accompanying drawings of the specification
Explanation.
Embodiment 1
As shown in Figure 1, the present invention provides a kind of emulation test methods of magnanimity metric data, comprising:
Step S1, the quantity based on metric data to be generated determines the quantity for constructing virtual distribution terminal and will own
Virtual distribution terminal is connect with tested main website;
Step S2, each virtual distribution terminal is grouped, and controls the virtual distribution terminal in each group and power distribution network is transported
Row data carry out emulation and generate magnanimity metric data;
Step S3, each virtual distribution terminal by the magnanimity metric data it is parallel on be sent to tested main website, generate tested master
The results of performance analysis stood.
As shown in Fig. 2, the present embodiment generates the specific method of magnanimity metric data, comprising:
Step S1, the quantity based on metric data to be generated determines the quantity for constructing virtual distribution terminal and will own
Virtual distribution terminal is connect with tested main website, is specifically included:
1) it by simulating the communication between practical distribution terminal and tested main website, establishes and communicates to connect and simulate tested main website
What is identified complies with standard the data content of rule schemata, carries out the building of virtual distribution terminal.
70-150 metric data can be emulated in virtual distribution terminal 1 second of building, usually setting is empty in engineer application
Quasi- distribution terminal emulates 100 metric data in 1 second.
It needs to generate 1,000,000 metric data in the present embodiment to test tested main website, when each virtual distribution is whole
When end emulates 100 metric data in 1 second, need to construct 10 virtual distribution terminals.
2) based on typical distribution data acquisition of terminal content, the template data of virtual distribution terminal is constructed, according to mould
Send tested main website in plate data simulation power distribution network operation data, template data includes state quantity data and analog data, described
State quantity data includes having the data of Discrete Change feature, and the analog data includes the number with successive value variation characteristic
According to.
3) after the measurement of single virtual distribution terminal is provided with, it is raw configuration can be expanded into all virtual distribution terminals in batches
At mass data, rapid build pressure test environment carries out the test of correlated performance.
4) packet data management technology is used to all virtual distribution terminals, the virtual distribution terminal in same group is adopted
Changing pattern is emulated with same measurement, ensure that the requirement to efficiency and index.
5) messaging parameter, measurement parameters and the pressure parameter of all virtual distribution terminals of flexible configuration;
The messaging parameter includes the communication IP address and port numbers of virtual distribution terminal, realizes virtual distribution terminal and quilt
The communication of main website is surveyed there are two types of mode, one kind is that all virtual distribution terminals share an IP address, by virtually matching for difference
Electric terminals distribute different port numbers, realize the communication with tested main website;Another kind of is virtual multiple IP address on a workstation,
Different IP address is distributed for different virtual distribution terminals, but uses identical port numbers, realizes the communication with tested main website.
The measurement parameters are the metric data particular contents such as remote signalling, telemetering, the remote control of simulation.
The pressure parameter is the time for configuring whole state quantity datas and analog data variation one time, i.e. variation frequency
The contents such as rate and variation pattern.
The operation interfaces such as foundation communicates, data interaction starts, suspends and terminates meet and are tested main website under different scenes
Data requirements.
Step S2, each virtual distribution terminal is grouped, and controls the virtual distribution terminal in each group and power distribution network is transported
Row data carry out emulation and generate magnanimity metric data, specifically include:
6) after establishing virtual distribution terminal communication, all or part of virtual distribution terminal may be selected, carry out manual setting shape
The variation pattern of state amount data and analog data, the variation pattern of the state quantity data include that odd number becomes, even number becomes and complete
Portion becomes, the variation pattern of the analog data include be incremented by, successively decrease, sawtooth wave etc., it is to provide that data variation, which triggers mode,
Time in, respectively need metric data to be simulated to change, export delta data uniformly.
7) simulated on virtual distribution terminal convention amount survey variation and simulation snowslide variation (when power grid accident it is instantaneous greatly
Sent in amount data) it test data and is output in tested main website in real time.
Wherein, it is conventional measure variation refer to simulated in 1 second 10,000 or so metric data all variation it is primary and on send by
Main website is surveyed, therefore the present embodiment simulation conventional measure selects 10 distribution terminals when changing, 0.7-1.5 ten thousand are generated in 1 second
Metric data, and metric data is changed in the change frequency of setting;
Snowslide occurrence quantity is much larger than conventional variable quantity, is in general equivalent to 5 times of conventional variable quantity or so, and occur
Can generally occur simultaneously with more station power distribution terminals when snowslide, therefore, when simulating snowslide variation, can become routinely measuring
On the basis of change, a portion is selected, usually 20% or so virtual distribution terminal improves the frequency of its data variation
N times (N is positive integer), after the analysis of the present embodiment combination history snowslide data, wherein 2 virtual distribution terminals is selected, will be measured
After the change frequency of data improves 5 times, the variation of emulation data and transmission are carried out.
8) the virtual distribution terminal of real-time monitoring, which is simulated, measures delta data corresponding specification source code, virtual distribution terminal
Communications status, real-time measurement delta data, the quantity of all kinds of simulating measuring data outputs of programming count, including quantity of state send secondary
Number, band markers quantity of state transmission times and analog quantity transmission times etc., meet data and check requirement.
Step S3, each virtual distribution terminal by the magnanimity metric data it is parallel on be sent to tested main website, generate tested master
The results of performance analysis stood, comprising:
9) metric data of the evaluation index based on setting and the processing of tested main website determines that the server of tested main website is average
Cpu load and memory usage.
In the present embodiment, when the server of tested main website runs average CPU load and memory usage < 40% in 5 minutes,
It is qualified to be then tested main website.
In technical solution scale provided in this embodiment can by simulate a large amount of virtual distribution terminals simultaneously with tested master
It stands online communication, send tested main website on 700,000-150 ten thousand power distribution networks operation metric data of real-time simulation.
Technical solution provided in this embodiment uses multithreading to the virtual distribution terminal of magnanimity, guarantees all virtual
The metric data that distribution terminal generates is sent in tested main website on simultaneously.
The software provided in this embodiment uses standalone hardware structure, simple for structure, Yi Jian, easy to maintain, guarantee system fortune
Row reliability and stability, portability are effectively ensured anywhere and carry out the detection work of distribution main website.
The software systems provided in this embodiment rely on the operation of LINUX platform, and human-computer interaction interface module and electric power are logical
The function interface of letter library module is designed fully according to Windows style, meets user of service's operating habit, easy to use.
Configuration information of the present embodiment according to distribution terminal, FTU quantity, DTU quantity, DTU acquisition number of switches and end
Start ip address, address mask, channel number are held, simulation generates FTU the and DTU equipment for meeting power distribution automation requirement.
Further, real-time distribution network equipment state data, operation data and fault actions data etc. are emulated, it is specific to wrap
It includes:
1) system carries out YC data simulation, 1 second YC data variation period according to the mathematical model of sawtooth wave or other means
~30000 seconds settable;
System default YX data do not conjugate, if setting YX data variable bit, negates progress according to original state
YX conjugates data simulation, and the YX data variation period 1 second~30000 seconds settable;
SOE data simulation is consistent with YX displacement data simulation;
Electrical power distribution automatization system is simulated and be injected into analog data, convenient for checking that distribution automation system data handles function
Energy.
2) system has conventional measure of simulation and changes and simulate snowslide (sending in instantaneous mass data when power grid accident)
The ability of test data.
3) system communication configuration is configured using the mode of list IP and multiport, is simulated on same work station virtual
IP of the distribution terminal when being communicated uses the IP of this work station, and different virtual distribution terminals use different port numbers,
Port numbers are automatically configured according to progressive law, are not required to configure one by one for virtual distribution terminal.
4) system is based on ICP/IP protocol, mode of the virtual distribution terminal as server-side, with tested master station communication.Pass through
Flexible configuration each corresponds to remote signalling, telemetry and telecommand quantity in the point table of virtual distribution terminal, to meet corresponding DTU, FTU etc. no
With the requirement of the representative point table of terminal.
5) the following are the data collection capacities of a typical switch:
Single switch is remotely controlled comprising 8 telemeterings, 2 remote signalling and 1, in actual test configurations, if a DTU acquisition 10
A switch, then settable 80 telemeterings of virtual distribution terminal, 20 remote signalling, 10 remote controls of corresponding simulation DTU.
It is general to acquire 1 to 2 (joint using) a switches to FTU, then the virtual distribution terminal setting of corresponding simulation FTU
16 telemeterings, 4 remote signalling, 2 remote controls.
But it is statistically only sent to the quantity of metric data in tested main website in testing, and is not concerned with which class metric data is
What distribution terminal issued, because while distribution terminal is different, but the data type sent be it is identical (analog data with
State quantity data), therefore DTU, FTU can not also be distinguished, directly corresponding virtual distribution terminal is configured according to pressure testing requirement
Quantity and measurement quantity.
After virtual distribution terminal communicate with tested main website foundation, system is capable of the specification source code that real-time monitoring interacts, virtually
The statistic of distribution terminal presence, the metric data of real-time change and output metric data.
Presence based on the specification source code and virtual distribution terminal that monitor checks the work of each virtual distribution terminal
State;
The metric data quantity of metric data statistics output based on real-time change;
Metric data quantity validation based on output is tested the received metric data quantity of main website;
Wherein, the quantity of metric data includes: state quantity data transmission times, the transmission times with markers state quantity data
With analog data transmission times.
By the magnanimity metric data it is parallel on be sent to tested main website, evaluation index based on setting and tested main website receive
Metric data, determine the server average CPU load and memory usage of tested main website;
When the server average CPU load and memory usage > threshold value of tested main website, it is qualified to be tested main website.
In the man-machine interface of system, supports the functions such as foundation communicates, data interaction starts, suspends and terminates, support
All control requirements of virtual distribution terminal, continuous multiple virtual distribution terminals or single virtual distribution terminal, support to measure
The flexible transmission of data, which controls, to be required, and all information of each virtual distribution terminal are specifically shown with statement form.
Embodiment 2
Based on the same inventive concept, the present embodiment additionally provides a kind of emulation test system of magnanimity metric data, comprising:
Communication module determines the quantity of the virtual distribution terminal of building simultaneously for the quantity based on metric data to be generated
All virtual distribution terminals are connect with tested main website;
Generation module for being grouped to each virtual distribution terminal, and controls the virtual distribution terminal in each group to matching
Grid operation data carries out emulation and generates magnanimity metric data;
Test module, for each virtual distribution terminal by the magnanimity metric data it is parallel on be sent to tested main website, generate
The results of performance analysis of tested main website.
In embodiment, the system also includes building modules, for constructing virtual distribution terminal;
The building module includes:
Communication unit is constructed, for based on the communication between distribution terminal and main website, the IP of virtual distribution terminal is set
Location and port numbers;
Data content unit is constructed, the data content for being acquired based on distribution terminal is generated virtual distribution terminal and met
The template data of rule schemata;
Wherein, the template data includes: state quantity data and analog data.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The above is only the embodiment of the present invention, are not intended to restrict the invention, all in the spirit and principles in the present invention
Within, any modification, equivalent substitution, improvement and etc. done, be all contained in apply pending scope of the presently claimed invention it
It is interior.