A kind of dynamic simulation system of electric power data network and emulation mode
Technical field
The invention belongs to power system automatic field, be specifically related to a kind of dynamic simulation system and emulation mode of electric power data network.
Background technology
Along with the high speed development of Power System Intelligent, each electric power application and electric power data network environment become increasingly complex, the requirement of electric power data application to transmission is more and more higher, and existing many equipment is to the special stipulations of electric power, particularly based on the real-time stipulations of multicast, transmission performance not enough, be directly connected to the stable of Electric control.Therefore how to emulate the change of real network environment, determine the bearing capacity that each electric power is applied, specify the ability of real electric power data network steady operation in the situations such as Change of Data Stream, long-term delivery, critical condition, predict contingent all kinds of event, be related to the long-term stability of electrical network.And the emulation testing process of data network and associated communication components, often need the application data of high capacity mutual, with clearly to tenability and the transmission performance of application-specific, and do not need strict conventions data details.
Existing network and protocol emulation technology mainly contain application layer Pressure Simulation, Traffic simulation, packet emulates and stipulations emulate, these simulation means simulate the network data content of different aspects to a certain extent, meet the network test requirements of different demand, its emulation and the unicity detected are applicable to the detection of experimental situation, in large-scale simulation, there is certain defect.Application layer Pressure Simulation is simulation application layer reciprocal process mainly, emulates a large amount of user's access.The emulation of the type is used for greatly the performance test of application system and web system, typical application layer Pressure Simulation instrument mainly contains Loadrunner, QALoad etc., its testing and emulation process relies on puppy parc completely, cannot provide effective support to custom protocol.
Traffic simulation main analog layer 2-3 network packet commonly uses frame structure and frame sign, emulates the data flow by communication equipments such as exchange, routes.The type emulation is used for greatly the performance test of communication equipment and information safety devices, typical Traffic simulation instrument mainly contains the TestCenter series of Spirent, the ethernet test external member etc. of Xixia, its testing and emulation emphasizes measuring accuracy, simulation process to determine content, flow and centered by the time, to the particular content of packet and dynamic change tenability not enough.
Packet emulation mainly adopts packet to intercept and the mode of playback, by a large amount of repetition simulating reality network traffic datas of True Data bag, the emulation of the type due to precision and packet structure numerous and diverse, by rare in the test of general communication equipment, more common in safety means test and site environment are analyzed.Its testing and emulation process does template with certain section of time flow structure usually, and dynamic change ability is more weak, can not simulate dynamic process, simultaneously to not supporting that static application aspect of resolving also lacks support.Stipulations emulation is mainly for the emulation of professional protocols stipulations and simulation, by initiation and the response of Standards Code process, normalized analysis is carried out specially for the stipulations process of certain kind equipment, typical electric power stipulations emulation is the most common with the stipulations of Dutch Kema company emulation series, better to international standard stipulations supports such as IEC101, IEC104 and IEC61850.Such testing and emulation is more for the emulation setting up standby, single agreement, stresses the analysis to protocol conformance, cannot simulate on a large scale.
And the simulated environment test of building for real power application or electric power data network, tenability particularly for the electric power stipulations of the industrial ethernet switch of network backbone is tested, need the high capacity in dynamic analog true environment and apply complex environment more, and detail requirement is not had to the detail in electric power stipulations, this just needs an emulation technology can simulating large discharge emulation electric power data network.For this reason, this patent proposes a kind of electric power data network Dynamic Simulation Technology, by the simplification analog form of the dynamic increase and decrease of multithreading and many agencies, osi model layering realization and electric power stipulations, solve the simulation problems of Dynamic Changes and electric power stipulations in large scale network emulation.
Summary of the invention
In order to overcome above-mentioned the deficiencies in the prior art, the invention provides a kind of dynamic simulation system and emulation mode of electric power data network, by the simplification analog form of the dynamic increase and decrease of multithreading and many agencies, osi model layering realization and electric power stipulations, solve the simulation problems of Dynamic Changes and electric power stipulations in large scale network emulation.
In order to realize foregoing invention object, the present invention takes following technical scheme:
A dynamic simulation system for electric power data network, described analogue system comprises agent side and main control end; Described control end sends instruction to described agent side, after described agent side receives described instruction, control of queue and dynamically increase and decrease are carried out to terminal simulation thread, and test data is transferred to unit under test, described test data feeds back to described main control end after unit under test process.
Described unit under test is physical network, service application or many applied environments.
Described main control end carries out the generation of emulated data, to the Dynamic controlling of the terminal simulation thread of described agent side in simulation process, and the coordination of the load balancing coordinated between described agent side and described terminal simulation thread.
Described instruction comprises test-types, number of threads, protocol type and destination address.
The conventions data bag of described test packet includes network transmission, described conventions data bag builds packet according to the destination address of specifying, and the protocol type switched, to control concurrent test quantity, controls the cycle sent and the data that need gather by test-types by number of threads by instruction.
It is peripheral that described agent side hash is emitted on described unit under test, is connected with unit under test by communication line.
Hub-and-spoke configuration is adopted to connect between described main control end and agent side.
A dynamic emulation method for electric power data network, described emulation mode comprises the following steps:
Step 1: described main control end decomposes the instruction of test;
Step 2: data are disposed with different terminals simulation thread by described agent side in advance;
Step 3: carry out OSI layering emulation;
Step 4: carry out dynamic simulation;
Step 5: carry out the emulation of electric power stipulations and GOOSE message emulation.
In described step 1, described main control end is according to test-types, number of threads, protocol type and the destination address of being tested by the Requirement Decomposition of simulated environment and application.
In described step 2, described agent side possesses multiple terminal simulation thread, according to requirement setting test process and the test data of instruction.
In described step 3, terminal simulation thread comprises application process and layer 2-3 protocol analysis, in data flow construction process, described main control end submits to agent side by needing the application process of simulation, application process is put into the storehouse of terminal simulation thread by described agent side, once this terminal simulation thread is activated, just carry out alternately by extracting application process successively with another corresponding terminal simulation thread; Described layer 2-3 protocol analysis is for emulating the parsing of network interface card.
In described step 4, be total to tertiary structure based on main control end, agent side and terminal simulation thread and carry out dynamic simulation; Described dynamic simulation is emulated by increase and decrease simulation thread, change simulation thread or increase and decrease agent side.
Described step 5 comprises the following steps:
Step 5-1: constructive simulation agreement, during emulation electric power communication protocol, described terminal simulation thread mates directly calling single OSI1-3 layer protocol packet with single application process, to provide the support to this quasi-protocol; When Simulation Application relates to OSI2-7 layer, then OSI layer 2-3 protocol analysis part recombination data bag, receives the data of certain application process, and data message of recombinating, the message interaction for the correspondence of application process provides underlying protocol support;
Step 5-2: according to the data transfer model of GOOSE stipulations, by data and applying portion simplify processes, replace with padding data; Individual data can be reduced to OSI bottom host-host protocol part, GOOSE interaction protocol part and padding data part and emulate, and client and service end are then emulated by different terminal simulation threads respectively.
Compared with prior art, beneficial effect of the present invention is:
1. the method that the present invention proposes solves the problem how electric power data network carries out in laboratory emulating and testing;
2. agent side hash is emitted on unit under test periphery, is connected with the communication line of prediction by various required inspection with unit under test; By the simulation of all kinds of route and communication protocol, each agent side is made to emulate as independently vlan, local area network (LAN), wide area network etc. separately; By applications client and the simulation of serving end data stream, whole simulated environment is made to have more interactive and authenticity; And distributed agent side arrangement could realize the peripheral network environment complicated and changeable of unit under test, the network data flow of electric power data network reality of more fitting;
3. dynamic simulation system is network simulation platform, the deployment of root agent end and change, and the network environment of emulation also can change thereupon;
4. control end and agent side adopt hub-and-spoke configuration, control whole simulated environment more comprehensively and dynamically, are held and carry out overall coordinate operation, specify the corresponding relation of the terminal simulation thread of agent side by main system; The reciprocal process of the agreement stipulations that two the terminal simulation threads producing interconnected corresponding relation then issue according to main control end, carries out mutual interactive data flow emulation;
5. because real electric power data network environment has complexity, the moment changes, and the emulation of the present invention to electric power data network meets real-time change and presets, or changes the change of each simulation application, stipulations and topology in real time;
6. the some electrical power stipulations of for example IEC 61850, not based on TCP/UDP, but are implemented in the custom protocol of ISO layer 2-3, are not supported in some general InterWorking Equipments, and the present invention meets support to stipulations and simulation.
Accompanying drawing explanation
Fig. 1 is the dynamic simulation system logic diagram of electric power data network in the embodiment of the present invention;
Fig. 2 is protocol emulation process schematic in the embodiment of the present invention;
Fig. 3 is IEC61850 stipulations simulation protocol figure in the embodiment of the present invention;
Fig. 4 is the emulation schematic diagram of GOOSE message in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail.
As Fig. 1, a kind of dynamic simulation system of electric power data network, described analogue system comprises agent side and main control end; Described control end sends instruction to described agent side, after described agent side receives described instruction, control of queue and dynamically increase and decrease are carried out to terminal simulation thread, and test data is transferred to unit under test, described test data feeds back to described main control end after unit under test process.
Described unit under test is physical network, service application or many applied environments.
Described main control end carries out the generation of emulated data, to the Dynamic controlling of the terminal simulation thread of described agent side in simulation process, and the coordination of the load balancing coordinated between described agent side and described terminal simulation thread.
Described instruction comprises test-types, number of threads, protocol type and destination address.
The conventions data bag of described test packet includes network transmission, described conventions data bag builds packet according to the destination address of specifying, and the protocol type switched, to control concurrent test quantity, controls the cycle sent and the data that need gather by test-types by number of threads by instruction.
It is peripheral that described agent side hash is emitted on described unit under test, is connected with unit under test by communication line.
Hub-and-spoke configuration is adopted to connect between described main control end and agent side.
A dynamic emulation method for electric power data network, described emulation mode comprises the following steps:
Step 1: described main control end decomposes the instruction of test;
Step 2: data are disposed with different terminals simulation thread by described agent side in advance;
Step 3: carry out OSI layering emulation;
Step 4: carry out dynamic simulation;
Step 5: carry out the emulation of electric power stipulations and GOOSE message emulation.
In described step 1, described main control end according to test-types, number of threads, protocol type and the destination address of being tested by the Requirement Decomposition of simulated environment and application, such as IEC61850, OSPF and certificate mutual etc.
In described step 2, described agent side possesses multiple terminal simulation thread, according to requirement setting test process and the test data of instruction.
In described step 3, terminal simulation thread comprises application process and layer 2-3 protocol analysis, in data flow construction process, described main control end submits to agent side by needing the application process of simulation, application process is put into the storehouse of terminal simulation thread by described agent side, once this terminal simulation thread is activated, just carry out alternately by extracting application process successively with another corresponding terminal simulation thread; Described layer 2-3 protocol analysis for emulating the parsing of network interface card, as Fig. 2.
In described step 4, be total to tertiary structure based on main control end, agent side and terminal simulation thread and carry out dynamic simulation; Described dynamic simulation is emulated by increase and decrease simulation thread, change simulation thread or increase and decrease agent side.
1) simulation thread is increased and decreased: each simulation thread is actual all simulates the mutual of an application, and increase and decrease simulation thread, then change the quantity of the interactive application of emulation;
2) changing simulation thread: by changing the application process of simulation thread, change the reciprocal process of emulation, creating the special interaction scenario such as misoperation, abnormal operation;
3) increase and decrease agent side: agent side not only can emulate a collection of reciprocal process, also can emulate a catenet simultaneously, increase and decrease agent side, has increased and decreased in fact a large amount of simulated environment.
Described step 5 comprises the following steps:
Step 5-1: constructive simulation agreement, during emulation electric power communication protocol, described terminal simulation thread mates directly calling single OSI1-3 layer protocol packet with single application process, to provide the support to this quasi-protocol; When Simulation Application relates to OSI2-7 layer, then OSI layer 2-3 protocol analysis part recombination data bag, receives the data of certain application process, and data message of recombinating, the message interaction for the correspondence of application process provides underlying protocol support, as Fig. 3;
Step 5-2: according to the data transfer model of GOOSE stipulations, by data and applying portion simplify processes, replace with padding data; Individual data can be reduced to OSI bottom host-host protocol part, GOOSE interaction protocol part and padding data part and emulate, and client and service end are then emulated, as Fig. 4 by different terminal simulation threads respectively.
In sum, the dynamic simulation system of electric power data network provided by the invention and emulation mode, by the simplification analog form of the dynamic increase and decrease of multithreading and many agencies, osi model layering realization and electric power stipulations, solve the simulation problems of Dynamic Changes and electric power stipulations in large scale network emulation.
Finally should be noted that: above embodiment is only in order to illustrate that technical scheme of the present invention is not intended to limit, although with reference to above-described embodiment to invention has been detailed description, those of ordinary skill in the field are to be understood that: still can modify to the specific embodiment of the present invention or equivalent replacement, and not departing from any amendment of spirit and scope of the invention or equivalent replacement, it all should be encompassed in the middle of right of the present invention.