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
High speed development along with Power System Intelligentization; Each Electric Application and electric power data network environment become increasingly complex; Electric power data use to transmission require increasingly highly, and existing many equipment is to the special-purpose 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 power control.So how variation of emulation reality network environment; Confirm the bearing capacity of each Electric Application; The ability of clear and definite real electric power data network steady operation under situation such as Change of Data Stream, long-term transmission, critical condition is predicted contingent all kinds of incident, is related to the long-term stability of electrical network.And the emulation testing process of data network and related communication parts often needs the application data of high capacity mutual, to the tenability and the transmission performance of application-specific, and does not need strict stipulations data details with clearly.
Existing network and protocol emulation technology mainly contain the emulation of application layer pressure, flow emulation, packet emulation and stipulations emulation; These simulation means have been simulated the network data content of different aspects to a certain extent; Satisfied the network test requirement of different demands; The unicity of its emulation and detection is applicable to the detection of experimental situation, in large-scale simulation, has certain defective.The emulation of application layer pressure mainly is simulation application layer reciprocal process, the user capture that emulation is a large amount of.The emulation of the type is used for the performance test of application system and web system mostly; Typical application stressor layer emulation tool mainly contains Loadrunner, QALoad etc.; Its test and simulation process rely on puppy parc fully, to custom protocol effective support can't be provided.
Layer 2-3 network packet frame structure commonly used and frame sign are mainly simulated in flow emulation, and emulation is through the data flow of communication equipments such as exchange, route.The type emulation is used for the performance test of communication equipment and information safety devices mostly; Typical flow emulation tool mainly contains the TestCenter series of Spirent, the ethernet test external member of Xixia etc.; Measuring accuracy is stressed in its test and emulation; Simulation process is to confirm that content, flow and time are the center, and is not enough to the particular content and the dynamic change tenability of packet.
Packet emulation mainly is the mode that adopts packet intercepting and playback; A large amount of repetition simulating reality network traffic datas through the True Data bag; The emulation of the type is because precision and packet structure are numerous and diverse;, more common in safety means test and site environment analysis through rarely in general communication equipment test.Its test is done template with certain section time flow structure usually with simulation process, the dynamic change ability a little less than, can not simulate dynamic process, simultaneously the application facet of not supporting static parsing is also lacked support.Stipulations emulation is primarily aimed at the emulation and the simulation of professional agreement stipulations; Initiation and response through the Standards Code process; Special stipulations process to certain kind equipment is carried out the standardization analysis; Typical electric power stipulations emulation is the most common with the stipulations emulation series of Dutch Kema company, and is better to international standard stipulations supports such as IEC101, IEC104 and IEC61850.This class testing and emulation are equipped with to setting up, the emulation of single agreement is more, stress the analysis to protocol conformance, can't simulate on a large scale.
And be directed against the simulated environment test that true Electric Application or electric power data network are built; Particularly to the tenability test of the electric power stipulations of the EPA switch of network backbone; Need high capacity and many application of complex environment in the dynamic analog true environment; And the detail in the electric power stipulations is not had detail requirement, this just needs the emulation technology that can simulate big flow emulation electric power data network.For this reason; This patent proposes a kind of electric power data network Dynamic Simulation Technology; Through the simplification analog form of multithreading with many agencies' dynamic increase and decrease, osi model layering realization and electric power stipulations, the simulation problems of dynamic transition and electric power stipulations in the emulation of solution large scale network.
Summary of the invention
In order to overcome the deficiency of above-mentioned prior art; The present invention provides a kind of dynamic simulation system and emulation mode of electric power data network; Through the simplification analog form of multithreading with many agencies' dynamic increase and decrease, osi model layering realization and electric power stipulations, the simulation problems of dynamic transition and electric power stipulations in the emulation of solution large scale network.
In order to realize the foregoing invention purpose, the present invention takes following technical scheme:
A kind of dynamic simulation system of electric power data network, said analogue system comprises agent side and main control end; Said control end sends instruction and gives said agent side; Said agent side receives said instruction back the terminal simulation thread is carried out formation control and dynamically increase and decrease; And test data is transferred to unit under test, said test data feeds back to said main control end after unit under test is handled.
Said unit under test is physical network, service application or many applied environments.
Said main control end is carried out the generation of emulated data, in simulation process, to the dynamic control of the terminal simulation thread of said agent side, and coordinates load balancing and the coordination of said terminal simulation thread between the said agent side.
Said instruction comprises test-types, number of threads, protocol type and destination address.
The stipulations packet of said test packet includes network transmission; Said stipulations packet makes up packet according to the destination address of appointment, the protocol type that switches by instruction, by number of threads control concurrent test quantity, press cycle that test-types control sends and the data that need collection.
It is peripheral that said agent side hash is emitted on said unit under test, links to each other with unit under test through communication line.
Adopt hub-and-spoke configuration to connect between said main control end and the agent side.
A kind of dynamic emulation method of electric power data network, said emulation mode may further comprise the steps:
Step 1: said main control end is decomposed the instruction of test;
Step 2: said agent side is with in preparatory deployment of data and the different terminals simulation thread;
Step 3: carry out OSI layering emulation;
Step 4: carry out dynamic simulation;
Step 5: carry out emulation of electric power stipulations and GOOSE message emulating.
In the said step 1, said main control end is according to being decomposed test-types, number of threads, protocol type and the destination address of testing by simulated environment and demands of applications.
In the said step 2, said agent side possesses a plurality of terminal simulation threads, sets test process and test data according to the requirement of instruction.
In the said step 3; The terminal simulation thread comprises application process and layer 2-3 protocol analysis; In the data flow construction process, the application process that said main control end will be simulated is submitted to agent side, and said agent side is put into application process in the storehouse of terminal simulation thread; In case this terminal simulation thread is activated, just will extracts application process successively and carry out alternately with another corresponding terminal simulation thread; Said layer 2-3 protocol analysis is used for the parsing of emulation network interface card.
In the said step 4, be total to tertiary structure based on main control end, agent side and terminal simulation thread and carry out dynamic simulation; Said dynamic simulation carries out emulation through increase and decrease simulation thread, change simulation thread or increase and decrease agent side.
Said step 5 may further comprise the steps:
Step 5-1: the constructive simulation agreement, during the emulation electric power communication protocol, said terminal simulation thread will directly call single OSI1-3 layer protocol packet and single application process coupling, so that the support to this quasi-protocol to be provided; When Simulation Application related to the OSI2-7 layer, OSI layer 2-3 protocol analysis part recombination data bag then received the data of certain application process, and the reorganization data message, for the message interaction of the correspondence of application process provides the underlying protocol support;
Step 5-2: according to the data transfer model of GOOSE stipulations, data and applying portion are simplified processing, replace with padding data; Individual data can be reduced to OSI bottom host-host protocol part, GOOSE interaction protocol part and padding data and partly carry out emulation, and client and service end are then carried out emulation by the different terminal simulation thread respectively.
Compared with prior art, beneficial effect of the present invention is:
1. the present invention method of proposing has solved how the electric power data network carries out emulation and experiment in the laboratory problem;
2. the agent side hash is emitted on the unit under test periphery, is linked to each other with unit under test by the communication line of various required checks and prediction; Through the simulation of all kinds of routes and communication protocol, make each agent side separately emulation be independently vlan, local area network (LAN), wide area network etc.; Through the simulation of applications client, make the whole simulation environment have more interactive and authenticity with service end data stream; And distributed agent side is arranged and could be realized the peripheral network environment complicated and changeable of unit under test, the actual network data flow of electric power data network of more fitting;
3. dynamic simulation system is the 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, with dynamic control whole simulation environment, carry out overall coordinate operation, the corresponding relation of the terminal simulation thread of clear and definite agent side by main system end more comprehensively; The reciprocal process of the agreement stipulations that two terminal simulation threads that produce interconnected corresponding relation then issue according to main control end is carried out mutual interactive data flow emulation;
5. because real electric power data network environment has complicacy and changes constantly, the present invention satisfies real-time change with preset to the emulation of electric power data network, or the variation of changing each simulation application, stipulations and topology in real time;
6. the part electric power stipulations of IEC 61850 for example are not based on the TCP/UDP, but are implemented in the custom protocol of ISO layer 2-3, in some general InterWorking Equipments, are not supported, and the present invention satisfies support and the simulation to stipulations.
Description of drawings
Fig. 1 is the dynamic simulation system logic diagram of electric power data network in the embodiment of the invention;
Fig. 2 is a protocol emulation process sketch map in the embodiment of the invention;
Fig. 3 is an IEC61850 stipulations simulation protocol figure in the embodiment of the invention;
Fig. 4 is the emulation sketch map of GOOSE message in the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the present invention is done further explain.
Like Fig. 1, a kind of dynamic simulation system of electric power data network, said analogue system comprises agent side and main control end; Said control end sends instruction and gives said agent side; Said agent side receives said instruction back the terminal simulation thread is carried out formation control and dynamically increase and decrease; And test data is transferred to unit under test, said test data feeds back to said main control end after unit under test is handled.
Said unit under test is physical network, service application or many applied environments.
Said main control end is carried out the generation of emulated data, in simulation process, to the dynamic control of the terminal simulation thread of said agent side, and coordinates load balancing and the coordination of said terminal simulation thread between the said agent side.
Said instruction comprises test-types, number of threads, protocol type and destination address.
The stipulations packet of said test packet includes network transmission; Said stipulations packet makes up packet according to the destination address of appointment, the protocol type that switches by instruction, by number of threads control concurrent test quantity, press cycle that test-types control sends and the data that need collection.
It is peripheral that said agent side hash is emitted on said unit under test, links to each other with unit under test through communication line.
Adopt hub-and-spoke configuration to connect between said main control end and the agent side.
A kind of dynamic emulation method of electric power data network, said emulation mode may further comprise the steps:
Step 1: said main control end is decomposed the instruction of test;
Step 2: said agent side is with in preparatory deployment of data and the different terminals simulation thread;
Step 3: carry out OSI layering emulation;
Step 4: carry out dynamic simulation;
Step 5: carry out emulation of electric power stipulations and GOOSE message emulating.
In the said step 1, said main control end is according to test-types, number of threads, protocol type and the destination address of being decomposed test by simulated environment and demands of applications, such as IEC61850, OSPF and certificate are mutual etc.
In the said step 2, said agent side possesses a plurality of terminal simulation threads, sets test process and test data according to the requirement of instruction.
In the said step 3; The terminal simulation thread comprises application process and layer 2-3 protocol analysis; In the data flow construction process, the application process that said main control end will be simulated is submitted to agent side, and said agent side is put into application process in the storehouse of terminal simulation thread; In case this terminal simulation thread is activated, just will extracts application process successively and carry out alternately with another corresponding terminal simulation thread; Said layer 2-3 protocol analysis is used for the parsing of emulation network interface card, like Fig. 2.
In the said step 4, be total to tertiary structure based on main control end, agent side and terminal simulation thread and carry out dynamic simulation; Said dynamic simulation carries out emulation through increase and decrease simulation thread, change simulation thread or increase and decrease agent side.
1) increase and decrease simulation thread: each simulation thread reality is all simulated the mutual of an application, increases and decreases simulation thread, has then changed the quantity of the interactive application of emulation;
2) change simulation thread: through the application process of change simulation thread, change the reciprocal process of emulation, create mutual especially situation such as misoperation, abnormal operation;
3) increase and decrease agent side: agent side not only can a collection of reciprocal process of emulation, simultaneously also can catenet of emulation, and the increase and decrease agent side has increased and decreased the lots of emulation environment in fact.
Said step 5 may further comprise the steps:
Step 5-1: the constructive simulation agreement, during the emulation electric power communication protocol, said terminal simulation thread will directly call single OSI1-3 layer protocol packet and single application process coupling, so that the support to this quasi-protocol to be provided; When Simulation Application related to the OSI2-7 layer, OSI layer 2-3 protocol analysis part recombination data bag then received the data of certain application process, and the reorganization data message, for the message interaction of the correspondence of application process provides the underlying protocol support, like Fig. 3;
Step 5-2: according to the data transfer model of GOOSE stipulations, data and applying portion are simplified processing, replace with padding data; Individual data can be reduced to OSI bottom host-host protocol part, GOOSE interaction protocol part and padding data and partly carry out emulation, and client and service end are then carried out emulation by the different terminal simulation thread respectively, like Fig. 4.
In sum; The dynamic simulation system of electric power data network provided by the invention and emulation mode; Through the simplification analog form of multithreading with many agencies' dynamic increase and decrease, osi model layering realization and electric power stipulations, the simulation problems of dynamic transition and electric power stipulations in the emulation of solution large scale network.
Should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not to its restriction; Although the present invention has been carried out detailed explanation with reference to the foregoing description; Under the those of ordinary skill in field be to be understood that: still can specific embodiments of the invention make amendment or be equal to replacement; And do not break away from any modification of spirit and scope of the invention or be equal to replacement, it all should be encompassed in the middle of the claim scope of the present invention.