CN116074227B - Multi-power system testing method based on virtualization platform - Google Patents
Multi-power system testing method based on virtualization platform Download PDFInfo
- Publication number
- CN116074227B CN116074227B CN202211397383.1A CN202211397383A CN116074227B CN 116074227 B CN116074227 B CN 116074227B CN 202211397383 A CN202211397383 A CN 202211397383A CN 116074227 B CN116074227 B CN 116074227B
- Authority
- CN
- China
- Prior art keywords
- automation system
- power automation
- network
- virtual machine
- electric power
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 50
- 230000005540 biological transmission Effects 0.000 claims abstract description 17
- 238000000034 method Methods 0.000 claims description 26
- 230000003993 interaction Effects 0.000 claims description 24
- 230000000875 corresponding effect Effects 0.000 claims description 21
- 238000012790 confirmation Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 claims description 14
- 230000008569 process Effects 0.000 claims description 12
- 238000003860 storage Methods 0.000 claims description 7
- 238000004891 communication Methods 0.000 claims description 6
- 238000004088 simulation Methods 0.000 claims description 6
- 230000008878 coupling Effects 0.000 abstract description 3
- 238000010168 coupling process Methods 0.000 abstract description 3
- 238000005859 coupling reaction Methods 0.000 abstract description 3
- 238000009826 distribution Methods 0.000 description 16
- 239000002245 particle Substances 0.000 description 4
- 238000009434 installation Methods 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000009833 condensation Methods 0.000 description 1
- 230000005494 condensation Effects 0.000 description 1
- 238000005520 cutting process Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011990 functional testing Methods 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000007474 system interaction Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J13/00—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
- H02J13/00006—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
- H02J13/00028—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment involving the use of Internet protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Power Engineering (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
The invention discloses a multi-power system testing method based on a virtualization platform, which relates to the field of power automation system testing and comprises the following steps: creating a virtual machine on a virtualization platform and installing an operating system according to the operation requirements of each level of power automation system; installing a power automation system application program on an operating system of the virtual machine; configuring a network architecture of a virtualized platform; performing network configuration on each level of power automation system; establishing and debugging a data transmission channel between the multi-stage power automation systems through a three-way handshake instruction between the upper and lower power automation systems; and starting the test, and carrying out the test by the multi-stage power automation system according to the functional requirement. According to the invention, the multistage electric power automation system is uniformly built on the virtualization platform, individual configuration of entity machines for each electric power automation system is not needed, the coupling between the system and the equipment is reduced, and the utilization rate of the equipment is improved.
Description
Technical Field
The invention relates to the technical field of power automation system testing, in particular to a multi-power system testing method based on a virtualization platform.
Background
At present, various electric power automation systems (electric power systems) continuously upgrade, update and perfect various functions, and especially when the functions of an electric power terminal such as control are upgraded and updated, the correctness and stability of the functions must be tested before the system is put into operation, such as a dispatching automation system and a power distribution automation system.
The following is an illustration of a dispatch automation system:
The domestic power grid dispatching automation system is a layered dispatching management system, and the multi-stage systems can be coordinated up and down only by connecting a network during testing, and the multi-stage systems are mutually matched to realize testing before operation of various coordination interaction functions of the multi-stage systems.
Because the dispatching automation system belongs to the power grid core system, the on-site network environment is provided with an intranet special purpose. If any abnormal phenomenon occurs in the real system operation before upgrading due to the upgrading test of the functions, the operation is strictly forbidden. When the updated functions of the multi-level dispatching automation system are tested conventionally, the following means are adopted:
And according to the requirements of the automatic system with different dispatching, individuating entity machines meeting the conditions to finish the application construction of the system. Because the different dispatching automation systems have differences on the computing capacity and the storage capacity demands of the physical machines, the system and the physical machines are often tightly coupled after configuration is finished, so that the utilization rate of the physical machines is greatly reduced after the test work is finished, and the waste of material resources is caused.
When a plurality of similar dispatching automation systems need to be tested at the same time, the installation of the operating system and the configuration of the conventional system still need to be completed on the physical machine one by one, the repeated workload is large, and the time is consumed.
In order to avoid influencing the network environment where the real system is located, when the upper-level automatic system needs to perform functional test with a plurality of lower-level automatic systems at the same time, network equipment such as corresponding routers, switches and the like needs to be purchased and added, and the network environment independent of the real production system is temporarily built for the entity machine. On the one hand, the equipment is relatively expensive and consumes a great deal of funds; on the other hand, the utilization rate is reduced after the test work is finished, and the equipment is in a long-term empty state.
The message interaction between the upper and lower stages of the dispatching automation system is usually realized based on a DL476 power communication protocol, and the upper and lower stages of the system interaction in the test process needs to be manually checked to confirm whether the instruction transmitted by the system is correct or not, and the manual confirmation process consumes time to influence the instruction execution efficiency.
When the existing dispatching automation system issues the instruction to the terminal, the terminal action is realized by completing the instruction outlet at the terminal instruction outlet sub-station independently built by each subordinate dispatching automation system. Because of the slight difference of different manufacturers to the specific design of the terminal instruction output substation of the dispatching automation system, when the terminal is accessed to the dispatching automation system of different versions, corresponding configuration is required to be completed respectively according to specific requirements, when the terminal is accessed to the system to change the version, corresponding access configuration is required to be synchronously changed, and if the number of the terminals is large, the debugging workload is also increased in proportion.
In order to solve the problems, the invention provides a multi-power system testing method based on a virtualization platform.
Disclosure of Invention
The invention aims at: the multi-power system testing method based on the virtualization platform is provided, the multi-level power automation system is built on the virtualization platform uniformly, individual configuration of a physical machine for each power automation system is not needed, the problem of coupling between the system and physical equipment is solved, and the equipment utilization rate is improved.
The technical scheme adopted by the invention is as follows:
the invention relates to a multi-power system testing method based on a virtualization platform, which comprises the following steps:
creating a virtual machine on a virtualization platform and installing an operating system according to the operation requirements of each level of power automation system;
Installing a power automation system application program on an operating system of the virtual machine;
configuring a network architecture of a virtualized platform;
performing network configuration on each level of power automation system;
based on a DL476 load batch control interaction protocol, adding message types corresponding to real-time data and control instruction interaction, and establishing and debugging a data transmission channel between the multi-stage power automation systems through an instruction 'three-way handshake' between the upper and lower-stage power automation systems;
and starting the test, and carrying out the test by the multi-stage power automation system according to the functional requirement.
Further, when the virtual machine is created on the virtualization platform, if the same template is configured by the operating system and the hardware in the virtualization platform, the virtual machine can be created by using the template; if the virtualized platform does not have the templates with the same operating system and hardware configuration, the virtual machine is required to be independently created, the operating system is installed on the virtual machine, and the created virtual machine can be converted into the template for creating a plurality of similar virtual machines.
Further, when the empty virtual machine is created, resources required for building and running each electric power automation system are required to be divided from the virtualization platform, and the resources required for dividing and running comprise computing resources, storage resources and network resources.
The computing resource comprises CPU core number, the storage resource comprises disk and memory capacity, and the network resource comprises virtual network card number.
Further, a network architecture of the virtualized platform is configured, specifically: and configuring a network mode on a virtualized platform by utilizing network simulation software, and performing simulated simulation configuration on the required physical router and switch network equipment.
Further, the specific steps of the electric power automation system at each level for carrying out network configuration are as follows:
when the virtual machine is created by utilizing the virtual machine template, if the virtual machine template is provided with network cards, the number of the network cards is enough, the network cards do not need to be added manually, and if the network cards are not enough, the virtual network cards need to be added;
And configuring available ip addresses for the virtual machines by utilizing a pre-stored network configuration script, configuring the ip addresses into the same network segment, if a plurality of virtual machine ip addresses do not belong to the same network segment, configuring and enabling remote access and routing, and checking whether network communication from the virtual machines ip to the corresponding gateway is normal after the configuration is completed.
Further, a data transmission channel between the multi-stage power automation systems is established and debugged, specifically:
Based on the original DL476 load batch control interaction protocol, the message types corresponding to the interaction of the real-time data and the control instructions are increased, so that the three-time handshake of the instructions between the upper and lower electric power automation systems is realized, the real-time data and the control instructions need to be converted into the agreed JSON format byte stream for transmission, and the confirmation of the interaction instructions between the multi-stage systems in the test process is completed.
Further, the instruction "three-way handshake" between the upper and lower electric power automation systems is specifically:
the upper electric power automation system sends control request instructions to each lower electric power automation system, the lower electric power automation system receives the instructions and confirms and replies, and after receiving the control request confirmation instructions replied by the lower electric power automation system, the upper electric power automation system completes the first handshake;
The second handshake is completed after the upper electric power automation system receives the control request confirmation instruction returned by the lower electric power automation system and then continues to issue the control execution instruction;
and after receiving the control execution instruction, the lower-level electric power automation system replies the control execution instruction operation, and after receiving the control execution confirmation message fed back by the lower-level electric power automation system, the upper-level electric power automation system completes the third handshake.
Further, after the virtual machine is created on the virtualization platform and network configuration is completed, a unified terminal instruction output substation is built in the upper-level power automation system, all instructions of the lower-level power automation system output terminals are initiated through the lower-level power automation system and forwarded to the upper-level power automation system, and then the virtual machine flows to the terminal instruction output substation, and the terminal instruction output substation then issues instructions to the terminal to complete corresponding actions.
Furthermore, after the virtual machine is created on the virtualization platform and the network configuration is completed, system snapshots can be created for all levels of power automation systems on the virtualization platform, and when the function debugging is wrong, the power automation systems can return to the normal running state at the time of creating the snapshots.
In summary, due to the adoption of the technical scheme, the beneficial effects of the invention are as follows:
1. The invention relates to a multi-power system testing method based on a virtualization platform, which is characterized in that a multi-level power automation system is uniformly built on the virtualization platform, a physical machine is not required to be configured for each system in a personalized way, the coupling between the system and equipment is reduced, and the equipment utilization rate is improved. And the system is built on the virtualized platform, so that the physical server resources are integrated, and the power supply and heat dissipation cost is reduced.
2. The invention relates to a multi-power system testing method based on a virtualization platform, which is characterized in that when a plurality of power automation systems need to be tested at the same time, a plurality of similar virtual machines are quickly created by using a virtualization platform template, so that the resource allocation time of a server and the installation time of an operating system can be greatly saved, and the efficiency of building a simulation power automation system is improved.
3. The invention relates to a multi-power system testing method based on a virtualization platform, which is based on system snapshots created by the virtualization platform, and can quickly return to a normal running state when the system creates the snapshots, so that the system is prevented from being reloaded, and the system repair time is shortened.
4. The invention relates to a multi-power system testing method based on a virtualization platform, which realizes the analog simulation of network equipment such as a physical router, a switch and the like through network simulation software, greatly reduces the configuration of the physical router and the switch, and simultaneously reduces the occupied space of the network equipment and a cabinet. The excessive consumption of manpower and material resources in the preparation link of the test work caused by temporarily building a brand new network environment is reduced, and the development process of the test work is accelerated.
5. The invention relates to a multi-power system testing method based on a virtualization platform, which is characterized in that an instruction 'three-way handshake' between an upper power automation system and a lower power automation system is realized through a modified DL476 load batch control interaction protocol, data transmitted each time is monitored and checked, reliable transmission is provided for the circulation of the instruction, the accuracy of analyzing and processing the instructions of the two parties is automatically completed by a system, the manual confirmation link is reduced, and the instruction execution efficiency is improved. In addition, real-time data and control instructions need to be converted into a contracted JSON format byte stream for transmission, so that the method is easy to read and write by people, and meanwhile, the machine analysis and generation efficiency is improved.
6. The invention relates to a multi-power system testing method based on a virtualization platform, which is characterized in that a terminal command output substation construction is moved upwards from a lower-level power automation system to an upper-level power automation system, so that unified access and command unified output of all terminals are realized, time-consuming and labor-consuming configuration and debugging workload caused by accessing and changing the terminals to power automation systems of different manufacturer versions is avoided, and centralized management and monitoring of the terminals are realized, and the operation and maintenance cost of the terminals is reduced.
Drawings
For a clearer description of the technical solutions of embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and should not be considered limiting in scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art, wherein:
FIG. 1 is a flow chart of the whole technical scheme in the invention;
FIG. 2 is a flow chart of an upper and lower level power automation inter-system instruction "three-way handshake";
FIG. 3 is a flow chart of instruction issue and reply between upper and lower level power automation systems;
FIG. 4 is a flow chart of a test method according to the first embodiment;
Fig. 5 is a flow chart of a test method of the second embodiment.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the particular embodiments described herein are illustrative only and are not intended to limit the invention, i.e., the embodiments described are merely some, but not all, of the embodiments of the invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
It should be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The invention relates to a multi-power system testing method based on a virtualization platform, which is shown in figure 1 and comprises the following steps:
creating a virtual machine on a virtualization platform and installing an operating system according to the operation requirements of each level of power automation system;
Specifically, when a virtual machine is created on a virtualization platform, if the virtualization platform has a template with the same operating system and hardware configuration, the virtual machine can be created by using the template; if the virtualized platform does not have the same template of the operating system and the hardware configuration, the virtual machine is required to be independently created, the operating system is installed on the virtual machine, the created virtual machine can be converted into the template for creating a plurality of similar virtual machines, when the plurality of similar virtual machines are to be deployed, the template can be used for creating the virtual machines for a plurality of times, each virtual machine is not required to be created and configured respectively, the server resource configuration time and the operating system installation time can be saved greatly, and the efficiency of building the simulation power automation system is improved.
When the empty virtual machine is created, resources required for building and running each power automation system are required to be divided from the virtualization platform, and the resources required for dividing and running comprise computing resources, storage resources and network resources.
The computing resource comprises CPU core number, the storage resource comprises disk and memory capacity, and the network resource comprises virtual network card number.
Installing a power automation system application program on an operating system of the virtual machine;
configuring a network architecture of a virtualized platform;
the method comprises the following steps: and configuring a network mode on a virtualized platform by utilizing network simulation software, and performing simulated simulation configuration on the required physical router and switch network equipment.
Performing network configuration on each level of power automation system;
The method comprises the following specific steps:
when the virtual machine is created by utilizing the virtual machine template, if the virtual machine template is provided with network cards, the number of the network cards is enough, the network cards do not need to be added manually, and if the network cards are not enough, the virtual network cards need to be added;
And configuring available ip addresses for the virtual machines by utilizing a pre-stored network configuration script, configuring the ip addresses into the same network segment, if a plurality of virtual machine ip addresses do not belong to the same network segment, configuring and enabling remote access and routing, and checking whether network communication from the virtual machines ip to the corresponding gateway is normal after the configuration is completed.
The electric power automation systems at all levels are subjected to network configuration, so that data and instructions among the electric power automation systems can be communicated through network connection.
Based on a DL476 load batch control interaction protocol, adding message types corresponding to real-time data and control instruction interaction, and establishing and debugging a data transmission channel between the multi-stage power automation systems through an instruction 'three-way handshake' between the upper and lower-stage power automation systems;
The real-time data and the control instructions need to be converted into the agreed JSON format byte stream for transmission, the interactive instructions among the multilevel systems are confirmed in the test process, compared with the traditional XML format, the JSON format requires complicated and heavy labels, when the transmission quantity is large, the occupied network flow is not negligible, the interactive contents of the real-time data and the control instructions are converted into the lightweight JSON format byte stream form for transmission, the reading and writing of people are easy, and meanwhile, the machine analysis and generation efficiency is improved.
The instruction "three-way handshake" between the upper and lower electric power automation systems, as shown in fig. 2, specifically includes:
the upper electric power automation system sends control request instructions to each lower electric power automation system, the lower electric power automation system receives the instructions and confirms and replies, and after receiving the control request confirmation instructions replied by the lower electric power automation system, the upper electric power automation system completes the first handshake;
The second handshake is completed after the upper electric power automation system receives the control request confirmation instruction returned by the lower electric power automation system and then continues to issue the control execution instruction;
and after receiving the control execution instruction, the lower-level electric power automation system replies the control execution instruction operation, and after receiving the control execution confirmation message fed back by the lower-level electric power automation system, the upper-level electric power automation system completes the third handshake.
In the invention, optionally, a unified terminal instruction output substation is established in the upper-level power automation system, the instructions of all the lower-level power automation system output terminals are initiated by the lower-level power automation system and forwarded to the upper-level power automation system, and then the instructions are forwarded to the terminal instruction output substation, and the terminal instruction output substation then unifies the issued instructions to the terminal to complete corresponding actions, as shown in fig. 3.
In the prior art, a terminal instruction output substation is independently built in each lower-level dispatching automation system, the upper-level dispatching automation system and the lower-level dispatching automation system can initiate instructions, and the upper-level dispatching automation system instructions interact with the terminal instruction output substation through the lower-level dispatching automation system by a forwarding module; the lower-level dispatching automation system instruction is directly interacted with the terminal instruction output substation, after the improvement of the invention, the terminal instruction output substation is not independently built in each lower-level electric power automation system, only one lower-level dispatching automation system is built, and the instructions initiated by all lower-level dispatching automation systems are forwarded to the terminal instruction output substation through the upper-level dispatching automation system by the forwarding module.
In practical application, if the instruction issued by the upper system is an exercise instruction, the terminal is not required to actually act, and the instruction is not transmitted to the terminal instruction output sub-station, so that the terminal instruction output sub-station is not required to be established.
Optionally, after the virtual machine is created on the virtualization platform and the network configuration is completed, a system snapshot can be created on the virtualization platform for each level of electric power automation system, and when the function debugging is wrong, the electric power automation system can return to the normal running state at the time of creating the snapshot again.
Because of the unknown defects of the development program of the new function, uncontrollable testing process exists. If the system runs and the system still cannot normally run after the program is adjusted and modified, the normal running state of the system at the time of creating the snapshot can be quickly returned based on the system snapshot created by the virtualization platform, the system is prevented from being reloaded, and the system repair time is shortened.
And starting the test, and carrying out the test by the multi-stage power automation system according to the functional requirement.
The power automation system of the following embodiment is exemplified by a dispatching automation system and a power distribution automation system, which are both power automation systems.
The features and capabilities of the present invention are described in further detail below in connection with examples.
Example 1
As shown in fig. 4, a dispatching automation system and a distribution automation system in a certain province perform function joint test, and a similar system is built on a virtualization platform, so that the system has a proper virtual machine template and network architecture.
The multi-system testing method based on the virtualization platform comprises the following steps:
And step 1, respectively creating virtual machines for the dispatching automation system and the power distribution automation system on the virtualization platform.
Specifically, the dispatching automation system and the power distribution automation system divide resources required by system establishment and operation from the virtualization platform rapidly through the virtual machine template, and virtual machine creation is completed.
When the virtual machine is deployed according to the template, the following attributes are inherited from the template, and other attributes can be customized.
(A) The operating system type and operating system version number of the virtual machine;
(b) The number of the virtual machine CPU, the memory and the disk;
(c) Network card number of the virtual machine.
Step 11, the virtual machine template selected by the dispatching automation system is configured as follows:
(a) Operating system: kylin operating system; version number: 3.0;
(b) CPU:8 cores 2 particles; memory: 32G; magnetic disk: 500GB;
(c) Virtual machine network card number: 2.
Step 12, configuring a virtual machine template selected by the power distribution automation system as follows:
(a) Operating system: a red cap operating system; version number: 6.5;
(b) CPU:8 kernels of 1 particle; memory: 16G; magnetic disk: 200GB;
(c) Virtual machine network card number: 2.
And 2, respectively constructing a dispatching automation system and a power distribution automation system application program on the operating systems of the corresponding virtual machines.
And 3, configuring a network architecture of the virtualized platform.
The virtualization platform has utilized network simulation software to simulate a physical router and 1 switch, and can be directly used.
And 4, respectively carrying out network configuration on the dispatching automation system and the power distribution automation system to realize that data and instructions can be mutually communicated through a network.
The network configuration includes:
Step 41, the number of virtual network cards created by the virtual machine template meets the use requirement, and the virtual network cards are not required to be added; and configuring the ip addresses of the dispatching automation system and the distribution automation system into the same network segment by utilizing a pre-stored network configuration script.
And 42, the ip address configuration of the dispatching automation system and the distribution automation system belongs to the same network segment, software router configuration is not needed, and whether network communication between the ip addresses of the two virtual machines is normal is checked.
And 5, based on the transformed DL476 load batch control interaction protocol, establishing and debugging a data transmission channel between the dispatching automation system and the distribution automation system.
Based on the original DL476 load batch control interaction protocol, the message types corresponding to the interaction of the real-time data and the control instructions are increased, the three-way handshake of the instructions between the dispatching automation system and the distribution automation system is realized, the real-time data and the control instructions are converted into the agreed JSON format byte stream form for transmission, and the confirmation of the interaction instructions between the multi-stage systems in the test process is completed.
And 6, creating a system snapshot of the dispatching automation system and the distribution automation system.
Specifically, the virtualization platform is utilized to respectively create snapshots of the dispatching automation system and the distribution automation system, so that when the function debugging is in error, the system can return to the normal running state at the moment of creating the snapshots again, and the system is prevented from being reloaded.
And 7, starting the test.
Specifically, the dispatching automation system issues a load cut-off instruction to the power distribution automation system; and the distribution automation system confirms the receiving instruction, executes corresponding actions according to the instruction after three-way handshake is completed, and feeds back an execution result and real-time data to the dispatching automation system after the completion.
Example two
This example is a further illustration of the present invention.
As shown in fig. 5, the provincial dispatching automation system and the 8 local dispatching automation systems in a provincial dispatching automation system perform function joint test, and a similar system is never built on the virtualization platform, and no virtual machine template and proper network architecture exist.
And step 1, respectively creating virtual machines for the provincial dispatching automation system and the 8 local dispatching automation systems on the virtualization platform.
Specifically, the virtualization platform does not have a suitable template or virtual machine (the operating system and the hardware configuration are different), and an empty virtual machine needs to be independently created, and the operating system is installed on the empty virtual machine.
The specific operation steps are as follows:
(a) A virtual machine location is selected.
Alternatively, the process may be carried out in a single-stage,
Clustering: the system randomly selects any host under a certain cluster to create a virtual machine.
And (3) a host computer: the virtual machine is created on a designated host.
(B) Selecting computing resources
Specifically, the number of virtual machine CPUs is selected.
(C) Selecting a data store
Specifically, disk and memory capacity are selected.
(D) The operating system type and version are selected.
(E) Virtual machine configuration
Specifically, the number of network cards and the type of network cards to be added for the virtual machine are selected.
(F) And inputting the name and description information of the virtual machine.
(G) And confirming information, checking and creating virtual machine information and confirming.
The provincial dispatching automation system needs to independently create a new virtual machine; the performance requirements of the 8 ground dispatching automation systems are similar, after the first virtual machine is created, a board can be created by using the virtual machine, and the rest systems can use the template to complete the creation, so that resources required for the building and the operation of the system are rapidly divided from the virtualization platform.
The virtual machine where the provincial dispatching automation system is located is configured as follows:
(a) Operating system: kylin operating system; version number: 3.2.
(B) CPU:8 cores 2 particles; memory: 64G; magnetic disk: 1000GB
(C) Virtual machine network card number: 2.
The virtual machine where the ground dispatching automation system is located is configured as follows:
(a) Operating system: a condensation operating system; version number: 4.2.
(B) CPU:8 kernels of 1 particle; memory: 32G; magnetic disk: 500GB
(C) Virtual machine network card number: 2.
And 2, building province and local dispatching automation systems on the corresponding virtual machines respectively.
And 3, configuring a network architecture of the virtualized platform.
According to the test characteristics, 2 physical routers and 4 switches are simulated on a virtualization platform by using network simulation software.
And 4, performing network configuration on the provincial and local dispatching automation system to realize data and instruction interaction between the systems. The network configuration includes:
And step 41, configuring the ip addresses of the dispatching automation system in the virtual local area network 1 by utilizing a pre-stored network configuration script, and configuring the ip addresses of 8 dispatching automation systems in the virtual local area network 2, the virtual local area network 3 and the virtual local area network 4 respectively according to requirements.
Step 42, performing software router configuration. And configuring gateway addresses of all virtual local area networks, enabling remote access and routing, and checking whether network communication from the ip addresses of all virtual machines to the corresponding gateways is normal or not after the configuration is finished.
And 5, establishing and debugging a data transmission channel between the provincial dispatching automation system and the local dispatching automation system.
Specifically, based on the original DL476 load batch control interaction protocol, the message types corresponding to the interaction of the real-time data and the control instructions are increased, the real-time data and the control instructions are converted into the agreed JSON format byte stream form for transmission, and the confirmation of the interaction instructions among the multi-level systems in the test process is completed.
And 6, establishing a unified terminal instruction output substation in the provincial dispatching automation system.
And 7, creating a system snapshot for the provincial and local dispatching automation system.
Specifically, the virtualization platform is utilized to create snapshots for the provincial dispatching automation system and the 8 local dispatching automation systems respectively, so that when the function debugging is in error, the system can return to the normal running state at the moment of creating the snapshots again, and the system is prevented from being reloaded.
And 8, starting the test.
Specifically, the provincial dispatching automation system simultaneously issues load cutting instructions to 8 local dispatching automation systems; after each local dispatching automation system confirms the receiving instruction and completes three-way handshake confirmation with the provincial dispatching automation system, all local dispatching automation systems initiate terminal outlet action instructions, and after the instructions are forwarded to the provincial dispatching automation system based on the transformed DL476 load batch control interaction protocol, the instructions are forwarded to the terminal instruction outlet sub-station, and the terminal instruction outlet sub-station then unifies the issuing instructions and completes corresponding actions to the terminal.
The above description is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that are not creatively contemplated by those skilled in the art within the technical scope of the present invention should be included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope defined by the claims.
Claims (6)
1.A multi-power system testing method based on a virtualization platform is characterized by comprising the following steps:
creating a virtual machine on a virtualization platform and installing an operating system according to the operation requirements of each level of power automation system;
Installing a power automation system application program on an operating system of the virtual machine;
configuring a network architecture of a virtualized platform;
performing network configuration on each level of power automation system; the specific steps of network configuration of each level of power automation system are as follows:
when the virtual machine is created by utilizing the virtual machine template, if the virtual machine template is provided with network cards, the number of the network cards is enough, the network cards do not need to be added manually, and if the network cards are not enough, the virtual network cards need to be added;
Configuring available ip addresses for the virtual machines by utilizing a pre-stored network configuration script, configuring the ip addresses into the same network segment, if a plurality of virtual machine ip addresses do not belong to the same network segment, configuring and enabling remote access and routing, and checking whether network communication from the virtual machines ip to the corresponding gateway is normal after the configuration is completed;
based on a DL476 load batch control interaction protocol, adding message types corresponding to real-time data and control instruction interaction, and establishing and debugging a data transmission channel between the multi-stage power automation systems through an instruction 'three-way handshake' between the upper and lower-stage power automation systems;
starting a test, and performing the test by the multi-stage power automation system according to the functional requirement;
The method comprises the steps of establishing and debugging a data transmission channel between multi-stage power automation systems, and specifically comprises the following steps:
Based on the original DL476 load batch control interaction protocol, adding the message types corresponding to the interaction of the real-time data and the control instructions, realizing the three-time handshake of the instructions between the upper and lower electric power automation systems, converting the real-time data and the control instructions into a contracted JSON format byte stream for transmission, and completing the confirmation of the interaction instructions between the multi-stage systems in the test process; the instruction 'three-way handshake' between the upper and lower electric power automation systems is specifically as follows:
the upper electric power automation system sends control request instructions to each lower electric power automation system, the lower electric power automation system receives the instructions and confirms and replies, and after receiving the control request confirmation instructions replied by the lower electric power automation system, the upper electric power automation system completes the first handshake;
The second handshake is completed after the upper electric power automation system receives the control request confirmation instruction returned by the lower electric power automation system and then continues to issue the control execution instruction;
and after receiving the control execution instruction, the lower-level electric power automation system replies the control execution instruction operation, and after receiving the control execution confirmation message fed back by the lower-level electric power automation system, the upper-level electric power automation system completes the third handshake.
2. The method for testing the multiple power systems based on the virtualized platform according to claim 1, wherein the method comprises the following steps: when a virtual machine is created on a virtualization platform, if the virtualization platform has a template with the same operating system and hardware configuration, the template can be used for creating the virtual machine; if the virtualized platform does not have the templates with the same operating system and hardware configuration, the virtual machine is required to be independently created, the operating system is installed on the virtual machine, and the created virtual machine can be converted into the template for creating a plurality of similar virtual machines.
3. The multi-power system testing method based on the virtualized platform according to claim 2, wherein: when the virtual machine is created, resources required by building and running of each power automation system are required to be divided from a virtualization platform, wherein the resources required by dividing and running comprise computing resources, storage resources and network resources;
the computing resource comprises CPU core number, the storage resource comprises disk and memory capacity, and the network resource comprises virtual network card number.
4. The method for testing the multiple power systems based on the virtualized platform according to claim 1, wherein the method comprises the following steps: the configuration virtualization platform network architecture specifically comprises the following steps: and configuring a network mode on a virtualized platform by utilizing network simulation software, and performing simulated simulation configuration on the required physical router and switch network equipment.
5. The method for testing the multiple power systems based on the virtualized platform according to claim 1, wherein the method comprises the following steps: after the virtual machine is established on the virtualization platform and network configuration is completed, a unified terminal instruction output substation is established in the upper-level power automation system, all instructions of the lower-level power automation system output terminals are initiated through the lower-level power automation system and forwarded to the upper-level power automation system, and then the virtual machine flows to the terminal instruction output substation, and the terminal instruction output substation again issues instructions to the terminal to complete corresponding actions.
6. The method for testing the multiple power systems based on the virtualized platform according to claim 1, wherein the method comprises the following steps: after the virtual machine is established on the virtualization platform and the network configuration is completed, system snapshots can be established for all levels of power automation systems on the virtualization platform, and when the function debugging is in error, the power automation systems can return to the normal running state at the moment of establishing the snapshots.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211397383.1A CN116074227B (en) | 2022-11-09 | 2022-11-09 | Multi-power system testing method based on virtualization platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211397383.1A CN116074227B (en) | 2022-11-09 | 2022-11-09 | Multi-power system testing method based on virtualization platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116074227A CN116074227A (en) | 2023-05-05 |
CN116074227B true CN116074227B (en) | 2024-05-14 |
Family
ID=86175862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211397383.1A Active CN116074227B (en) | 2022-11-09 | 2022-11-09 | Multi-power system testing method based on virtualization platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116074227B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101387982A (en) * | 2008-09-18 | 2009-03-18 | 浙江大学 | KDWP terminal communication connecting manager method of embedded remote debugging proxy |
WO2011014145A1 (en) * | 2009-07-30 | 2011-02-03 | Thomson Licensing | Maintaining persistent connection with user level transmission control protocol |
CN105117346A (en) * | 2015-09-24 | 2015-12-02 | 上海爱数软件有限公司 | Automatic testing method and system for distributed system of virtualization platform |
CN105208072A (en) * | 2015-08-06 | 2015-12-30 | 杭州数梦工场科技有限公司 | Remote control method and device of virtual switch |
CN106786618A (en) * | 2016-12-09 | 2017-05-31 | 国电南瑞科技股份有限公司 | A kind of ground integrated load batch cooperative control method of province and system |
CN109327341A (en) * | 2018-11-16 | 2019-02-12 | 中国电力科学研究院有限公司 | A kind of distributed simulation method towards power telecom network |
WO2021062116A1 (en) * | 2019-09-27 | 2021-04-01 | Amazon Technologies, Inc. | Management of distributed endpoints |
WO2021108452A2 (en) * | 2019-11-27 | 2021-06-03 | Amazon Technologies, Inc. | Systems and methods for enabling a highly available managed failover service |
CN113760462A (en) * | 2021-09-07 | 2021-12-07 | 广东电网有限责任公司 | Method and device for constructing verification environment of dispatching automation system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10037266B2 (en) * | 2016-04-01 | 2018-07-31 | Sony Interactive Entertainment America Llc | Game stream fuzz testing and automation |
-
2022
- 2022-11-09 CN CN202211397383.1A patent/CN116074227B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101387982A (en) * | 2008-09-18 | 2009-03-18 | 浙江大学 | KDWP terminal communication connecting manager method of embedded remote debugging proxy |
WO2011014145A1 (en) * | 2009-07-30 | 2011-02-03 | Thomson Licensing | Maintaining persistent connection with user level transmission control protocol |
CN105208072A (en) * | 2015-08-06 | 2015-12-30 | 杭州数梦工场科技有限公司 | Remote control method and device of virtual switch |
CN105117346A (en) * | 2015-09-24 | 2015-12-02 | 上海爱数软件有限公司 | Automatic testing method and system for distributed system of virtualization platform |
CN106786618A (en) * | 2016-12-09 | 2017-05-31 | 国电南瑞科技股份有限公司 | A kind of ground integrated load batch cooperative control method of province and system |
CN109327341A (en) * | 2018-11-16 | 2019-02-12 | 中国电力科学研究院有限公司 | A kind of distributed simulation method towards power telecom network |
WO2021062116A1 (en) * | 2019-09-27 | 2021-04-01 | Amazon Technologies, Inc. | Management of distributed endpoints |
WO2021108452A2 (en) * | 2019-11-27 | 2021-06-03 | Amazon Technologies, Inc. | Systems and methods for enabling a highly available managed failover service |
CN113760462A (en) * | 2021-09-07 | 2021-12-07 | 广东电网有限责任公司 | Method and device for constructing verification environment of dispatching automation system |
Non-Patent Citations (2)
Title |
---|
《Bringing handshake technology to the open market》;A. Peeters;《IEEE》;20041231;全文 * |
《异构网络策略控制系统的设计》;吴湘剑;《中国优秀硕士学位论文全文数据库》;20150515;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN116074227A (en) | 2023-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110719209B (en) | Cluster network configuration method, system, equipment and readable storage medium | |
US6810294B2 (en) | Method and apparatus for automating a microelectronic manufacturing process | |
CN107566165B (en) | Method and system for discovering and deploying available resources of power cloud data center | |
CN102750301B (en) | Blueprint generating method for integrated avionic system model aiming at architecture analysis and design language (AADL) description | |
Hoogsteen et al. | Demkit: a decentralized energy management simulation and demonstration toolkit | |
CN110764036B (en) | Intelligent distribution transformer terminal test method and system | |
CN110689223B (en) | Robot batch management system based on RPA control | |
CN110008005B (en) | Cloud platform-based power grid communication resource virtual machine migration system and method | |
CN110249593A (en) | The system and method for configuring the IED process bus network switch according to substation topology specification | |
CN110018392A (en) | A kind of test macro of electrical power distribution automatization system main website | |
CN109407604A (en) | Processing module is coupled into the method and modular technology system of modular technology system | |
CN102571474B (en) | Virtualized Radius test macro and method | |
CN115051927A (en) | Data network development method and system | |
CN103152756A (en) | Automation configuration method for wireless local area network access controller (WLAN AC) | |
Lyu et al. | On automatic generation of OPC UA connections in IEC 61499 automation systems | |
CN116074227B (en) | Multi-power system testing method based on virtualization platform | |
CN111768129A (en) | Delivery method, device, equipment and storage medium of proprietary cloud product | |
KR102597248B1 (en) | Meter data unification management system | |
CN116094919A (en) | Communication network operation method, device and system and electronic equipment | |
CN114268535B (en) | Method and device for opening 5G slice product | |
CN112181726B (en) | Redundant backup measurement and control and four-unified measurement and control consistency verification test system and method | |
CN113641383A (en) | Customized development framework and development method for BMC system client | |
CN112506770A (en) | Automatic system function verification method based on virtualization framework | |
Müller et al. | Advanced configuration system for cost-effective integration of distributed energy systems | |
CN107018160A (en) | A kind of manufacturing recourses and cloud method based on stratification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |