CN106506225B - Electric power data network Hardware In The Loop Simulation Method - Google Patents
Electric power data network Hardware In The Loop Simulation Method Download PDFInfo
- Publication number
- CN106506225B CN106506225B CN201611070042.8A CN201611070042A CN106506225B CN 106506225 B CN106506225 B CN 106506225B CN 201611070042 A CN201611070042 A CN 201611070042A CN 106506225 B CN106506225 B CN 106506225B
- Authority
- CN
- China
- Prior art keywords
- data packet
- virtual
- network
- simulation
- layer
- 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
Classifications
-
- 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
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of electric power data network Hardware In The Loop Simulation Method, include the following steps: that (1), semi-matter simulating system framework are made of an artificial network and multiple actual nodes;(2), artificial network operates on a host, and with each layer protocol of network of the entire simulating scenes of ICP/IP protocol structural simulation, artificial network is built by each layer virtual protocol stack, and each layer protocol is connected by virtual data packet stream;Virtual data packet is generated by application layer, from top to bottom followed by each layer structure;When data packet stream completes certain layer protocol relevant operation, i.e. initiation lower-layer protocols receive response, finally realize transmission of the virtual service from server to destination node.The Hardware In The Loop Simulation Method that this method is proposed has been dissolved into virtual network simulation result in actual transmissions, simulation result confidence level with higher.The HWIL simulation network packet mapping method complexity that this method is proposed is lower, has preferable scalability.
Description
Technical field
The present invention relates to the data management of electric system, specially a kind of electric power data network Hardware In The Loop Simulation Method.
Background technique
HWIL simulation is that one kind intervenes material object in analogue system, to replace the emulation of the mathematical model of corresponding portion.
HWIL simulation emulates a part of hardware device embedded software, and a part of network node is simulated using software to be participated in imitating together
Very, it is ensured that the scale and real-time of network simulation, and by the cost control of emulation within the scope of acceptable.Data
The HWIL simulation of network needs to solve at 3 points: (1) realizing that virtual network and the connection of half network in kind merge;(2) it realizes real
The transmitting-receiving of border data packet and the mapping of virtual network packet;(3) realize the simulation software based on discrete event method for counting in real time
According to the support or extension of emulation.
Summary of the invention
The purpose of the present invention is the network application emulation for electric power system data, propose that a kind of electric power data network half is real
Object emulation mode.
The present invention is achieved by the following technical scheme:
A kind of electric power data network Hardware In The Loop Simulation Method, includes the following steps:
(1), semi-matter simulating system framework is made of an artificial network and multiple actual nodes;
(2), artificial network operates on a host, each with the network of the entire simulating scenes of ICP/IP protocol structural simulation
Layer protocol, artificial network are built by each layer virtual protocol stack, and each layer protocol is connected by virtual data packet stream;Virtual number
It is generated according to packet by application layer, from top to bottom followed by each layer structure;When data packet stream completes certain layer protocol relevant operation, i.e.,
It initiates lower-layer protocols and receives response, finally realize transmission of the virtual service from server to destination node;
(3), in real network, start node generates real-time stream and sends to destination node;Wherein, real-time stream
It is sent to by start node by intermediate nodeAfterwards, it completes to intercept and capture real-time stream by HWIL simulation interface module;It should be partly real
Object simulation interface module is connected with the application layer of artificial network and routing layer respectively, and maps close with actual physics network interface card simultaneously
Connection, after real time business flow data is received by actual physics network interface card, actual data packet will be reflected by HWIL simulation interface module
Analogue system interior joint application layer is mapped to generate virtual data packet;When virtual data packet passes through simulation virtual network finally by it
After destination node routing layer receives, then by HWIL simulation interface module control actual physics network interface card mapped actual number
It is forwarded according to packet, passes through intermediate nodeThe data packet after analog simulation is obtained, destination node is sent to.
Preferably, it in step (3), can first be put onto cache after the arrival of real time business stream packets, then partly
Matter emulation interface module can read a packet size information from buffer queue, while the application layer of analogue system generates therewith
An equal amount of virtual data packet is emulated into virtual network, and it is dynamic that the application layer generation data packet of analogue system joined front end
State slot synchronization mechanism, to complete the real-time synchronization mapping of virtual package and actual data packet;When destination node road in virtual network
After receiving the virtual package by layer, HWIL simulation interface module generates control signal in turn, controls actual data packet from caching
In send;If virtual data packet loss, corresponding actual data packet in buffer queue is abandoned;The transmission of buffer queue
Port and virtual package sending port be separately added into Time Synchronization Mechanism, to complete the synchronization and actual data packet of actual situation data packet
Delay Synchronization.
Preferably, the front end dynamic slot synchronization mechanism keeps practical business stream packets and virtual data packet one a pair of
It answers, which has used the method for assigning null event and add-on system suspend mode to analogue system, allows practical business transmission performance
Situation is synchronous to be shown in simulation analysis result;Specifically, setting practical moment T1Actual data packet is captured, then artificial network
Before this with Δ T1Virtual time interval initiate virtual package send event, and listen to receive data buffer storage queue, Zhi Daofa
Corresponding virtual data packet is generated after existing actual data packet;Due to Δ T1It is to be connect with tiny time with allowing virtual application layer to listen to
Data buffer storage queue is received, virtual package, which sends event, only will increase response events quantity, will not generate virtual data packet;Once emulation
Network system is generated virtual package and is determined the transmission interval delta T of virtual package with this then using the received data packet size listened to2;
Allow computer CPU dormancy time Δ T at this timeS , to allow the system emulation time to stop and consume the real time, to make simulation time
It is synchronous with the real time.
The method that the present invention uses multi-threaded parallel emulation, has the advantage that
1, the Hardware In The Loop Simulation Method that this method is proposed has been dissolved into virtual network simulation result in actual transmissions, imitates
True result confidence level with higher.
2, the HWIL simulation network packet mapping method complexity that this method is proposed is lower, and having can preferably expand
Malleability.
The method of the present invention design rationally, by constructing HWIL simulation network system to existing electric power data network, improves
Intuitive, validity and the authenticity of simulated effect.It therefore, is that high reliability network is supported to plan using HWIL simulation
Important technical has highly important application value.
Detailed description of the invention
Fig. 1 shows data network semi-matter simulating system configuration diagrams.
The data packet mapping principle schematic diagram of Fig. 2 expression data network HWIL simulation.
Specific embodiment
Specific embodiments of the present invention are described in detail below.
A kind of electric power data network Hardware In The Loop Simulation Method, specific as follows:
1, semi-matter simulating system framework
The system architecture of HWIL simulation network an artificial network and multiple actual nodes as shown in Figure 1, be made of.
Artificial network operates on a host, with each level of network of the entire simulating scenes of ICP/IP protocol structural simulation
Agreement, artificial network are built by each layer virtual protocol stack, and each layer protocol is connected by virtual data packet stream.Virtual data packet
It is generated by application layer, from top to bottom followed by each layer structure.When data packet stream completes certain layer protocol relevant operation, that is, initiate
Lower-layer protocols receive response.Finally realize transmission of the virtual service from server to destination node.
In real network, node _ 1(is as start node) generate real-time stream and to node _ 6(node as a purpose)
It sends.Wherein, by node _ 3(intermediate node) it is transmitted to artificial network, HWIL simulation interface module is completed to real time data
Stream is intercepted and captured and forwarding, and by data packet mapping mechanism, truthful data stream is mapped in artificial network.By in node _ 4(
Intermediate node ) data packet after analog simulation is obtained, it is transmitted to node _ 6.
Shown in Fig. 1, node _ 2 and node _ 5 are also true network node, effect and node _ 1 and node _ 6 phases
Together, start node and destination node be can be used as.
2, the mapping of virtual package and actual data packet
For the direct communication of data simulation network and real network, this method proposes that the HWIL simulation based on API connects
Mouth mold block, connect with physical internet ports.The semi-matter simulating system by interface module respectively with the application layer of artificial network and road
Be connected by layer, and simultaneously with actual physics network interface card mapping association.It is real after real time business flow data is received by actual physics network interface card
Border data packet will be mapped to analogue system interior joint application layer by HWIL simulation interface module to generate virtual data packet.When
Virtual data packet is after simulation virtual network is finally received by destination node routing layer, then passes through HWIL simulation interface mould
Block control actual physics network interface card forwards mapped actual data packet.
Specifically, workflow is as shown in Fig. 2, can first be put onto cache after the arrival of real time business stream packets
In, then interface module can read a packet size information from buffer queue, while the application layer of artificial network generates therewith
An equal amount of virtual data packet is emulated into virtual network.It is dynamic that the application layer generation data packet of analogue system joined front end
State slot synchronization mechanism, to complete the real-time synchronization mapping of virtual package and actual data packet.When destination node is received in virtual network
To after the virtual package, HWIL simulation interface module generates control signal in turn, and control actual data packet is sent from caching
It goes out.If virtual data packet loss, corresponding actual data packet in buffer queue is abandoned.The sending port of buffer queue and
Virtual package sending port is separately added into Time Synchronization Mechanism, with complete actual situation data packet synchronization and actual data packet time delay it is same
Step.
3, Time Synchronization Mechanism
The synchronous stationary problem for solving practical Packet capturing and virtual package transmission of front end dynamic slot, makes practical business flow data
Packet and virtual data packet correspond.For this purpose, which, which has used, assigns null event to analogue system and adds
The method of adding system suspend mode can allow practical business transmission performance situation is synchronous to be shown in simulation analysis result in this way.
Specifically, setting practical moment T1Actual data packet is captured, then artificial network is before this with Δ T1Virtual time
Interval initiates virtual package and sends event, and listens to and receive data buffer storage queue, generates correspondence after discovery has actual data packet
Virtual data packet.Due to Δ T1It is that data buffer storage queue is received to allow virtual application layer to listen to tiny time, virtual package hair
It send event only and will increase response events quantity, virtual data packet will not be generated.Once artificial network system generates virtual package, then make
With the received data packet size listened to, the transmission interval delta T of virtual package is determined with this2.Allow computer CPU dormancy time at this time
ΔTS, to allow the system emulation time to stop and consume the real time, to keep simulation time synchronous with the real time.
It should be noted last that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although ginseng
It is described in detail according to the embodiment of the present invention, those skilled in the art should understand that, to technical solution of the present invention
It is modified or replaced equivalently, without departure from the spirit and scope of technical solution of the present invention, claim should all be covered
In protection scope.
Claims (1)
1. a kind of electric power data network Hardware In The Loop Simulation Method, characterized by the following steps:
(1), semi-matter simulating system framework is made of an artificial network and multiple actual nodes;
(2), artificial network operates on a host, with each level of network of the entire simulating scenes of ICP/IP protocol structural simulation
Agreement, artificial network are built by each layer virtual protocol stack, and each layer protocol is connected by virtual data packet stream;Virtual data packet
It is generated by application layer, from top to bottom followed by each layer structure;When data packet stream completes certain layer protocol relevant operation, that is, initiate
Lower-layer protocols receive response, finally realize transmission of the virtual service from server to destination node;
(3), in real network, start node generates real-time stream and sends to destination node;Wherein, real-time stream is by
Beginning node is sent to by completing to intercept and capture real-time stream by HWIL simulation interface module after intermediate node I;It should be partly in kind imitative
True interface module is connected with the application layer of artificial network and routing layer respectively, and simultaneously with actual physics network interface card mapping association, when
After real time business flow data is received by actual physics network interface card, actual data packet will be mapped to imitative by HWIL simulation interface module
True system interior joint application layer is to generate virtual data packet;When virtual data packet passes through simulation virtual network finally by its purpose section
After point routing layer receives, then actual physics network interface card is controlled by HWIL simulation interface module, mapped actual data packet is turned
It sends out, the data packet after analog simulation is obtained by intermediate node II, is sent to destination node;
It can first be put onto cache after the arrival of real time business stream packets, then HWIL simulation interface module can postpone
One packet size information of reading in queue is deposited, while the application layer of analogue system generates an equal amount of virtual data packet therewith,
It is emulated into virtual network, the application layer of analogue system, which generates data packet, joined front end dynamic slot synchronization mechanism, to complete
The mapping of the real-time synchronization of virtual package and actual data packet;After destination node routing layer receives the virtual package in virtual network, half
Matter emulation interface module generates control signal in turn, and control actual data packet is sent from caching;If virtual number
According to packet loss, then corresponding actual data packet in buffer queue is abandoned;The sending port and virtual package sending port of buffer queue
It is separately added into Time Synchronization Mechanism, to complete the synchronization of actual situation data packet and the Delay Synchronization of actual data packet;
The front end dynamic slot synchronization mechanism corresponds practical business stream packets and virtual data packet, which uses
The method for assigning null event and add-on system suspend mode to analogue system, the display for making practical business transmission performance situation synchronous
In simulation analysis result;Specifically, setting practical moment T1Actual data packet is captured, then artificial network is before this with Δ T1
Virtual time interval initiate virtual package send event, and listen to receive data buffer storage queue, until discovery have actual data packet
After generate corresponding virtual data packet;Due to Δ T1It is that data buffer storage team is received to allow virtual application layer to listen to tiny time
Column, virtual package, which sends event, only will increase response events quantity, will not generate virtual data packet;Once artificial network system generates
Virtual package determines the transmission interval delta T of virtual package with this then using the received data packet size listened to2;Allow computer at this time
CPU dormancy time Δ TS , to allow the system emulation time to stop and consume the real time, to keep simulation time and real time same
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611070042.8A CN106506225B (en) | 2016-11-29 | 2016-11-29 | Electric power data network Hardware In The Loop Simulation Method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611070042.8A CN106506225B (en) | 2016-11-29 | 2016-11-29 | Electric power data network Hardware In The Loop Simulation Method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106506225A CN106506225A (en) | 2017-03-15 |
CN106506225B true CN106506225B (en) | 2019-09-13 |
Family
ID=58328971
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611070042.8A Active CN106506225B (en) | 2016-11-29 | 2016-11-29 | Electric power data network Hardware In The Loop Simulation Method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106506225B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105634902B (en) * | 2015-12-28 | 2019-01-04 | 北京经纬恒润科技有限公司 | A kind of semi-matter simulating system and its communication means |
CN108694259B (en) * | 2017-04-10 | 2021-07-16 | 中国石油化工股份有限公司 | Drilling underground simulation engine and method based on real-time data driving |
CN107689884A (en) * | 2017-07-10 | 2018-02-13 | 中国电力科学研究院 | A kind of method of half network plan simulation in kind of power communication |
CN108255070A (en) * | 2017-12-28 | 2018-07-06 | 国电南瑞科技股份有限公司 | Towards the HWIL simulation communication means of electric power stability control device |
CN108183826B (en) * | 2017-12-29 | 2020-09-01 | 江南大学 | Multi-scale fusion network simulation task mapping method under heterogeneous environment |
CN108650147A (en) * | 2018-04-09 | 2018-10-12 | 中国电力科学研究院有限公司 | Optical Transmission Network OTN semi-physical real-time simulation system and method |
CN109921947B (en) * | 2019-03-26 | 2022-02-11 | 东软集团股份有限公司 | Network flow simulation method, device, equipment and network equipment test system |
CN110912735B (en) * | 2019-11-13 | 2023-03-24 | 中国联合网络通信集团有限公司 | Simulation method and device for data packet transmission network |
CN114448538B (en) * | 2020-11-03 | 2024-01-26 | 中国兵器科学研究院 | Communication simulation system and simulation method for radio station series-parallel connection |
CN114745285A (en) * | 2022-04-11 | 2022-07-12 | 电子科技大学 | Large-scale distributed virtual network simulation method based on virtual container |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101567818A (en) * | 2008-12-25 | 2009-10-28 | 中国人民解放军总参谋部第五十四研究所 | Large-scale network routing simulation method based on hardware |
CN101645813A (en) * | 2009-09-07 | 2010-02-10 | 中国电子科技集团公司第三十研究所 | Distributed semi-physical network simulation system and controlling method of semi-physical port thereof |
CN105392155A (en) * | 2015-10-19 | 2016-03-09 | 中国人民解放军国防信息学院 | Virtual/real Internet gateway suitable for mobile network system simulation and simulation realizing method thereof |
CN105634902A (en) * | 2015-12-28 | 2016-06-01 | 北京经纬恒润科技有限公司 | Hardware In The Loop simulation system and communication method therefor |
-
2016
- 2016-11-29 CN CN201611070042.8A patent/CN106506225B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101567818A (en) * | 2008-12-25 | 2009-10-28 | 中国人民解放军总参谋部第五十四研究所 | Large-scale network routing simulation method based on hardware |
CN101645813A (en) * | 2009-09-07 | 2010-02-10 | 中国电子科技集团公司第三十研究所 | Distributed semi-physical network simulation system and controlling method of semi-physical port thereof |
CN105392155A (en) * | 2015-10-19 | 2016-03-09 | 中国人民解放军国防信息学院 | Virtual/real Internet gateway suitable for mobile network system simulation and simulation realizing method thereof |
CN105634902A (en) * | 2015-12-28 | 2016-06-01 | 北京经纬恒润科技有限公司 | Hardware In The Loop simulation system and communication method therefor |
Also Published As
Publication number | Publication date |
---|---|
CN106506225A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106506225B (en) | Electric power data network Hardware In The Loop Simulation Method | |
CN104954166B (en) | A kind of hardware based network (WSN) emulation system and emulation mode | |
CN105763570A (en) | Virtualization-technology-based distributed real-time network simulation system | |
CN104601665B (en) | A kind of system and method that high in the clouds real-time simulation is carried out to Internet of Things awareness apparatus | |
CN103051737B (en) | The method and system of the network capabilities merged on interconnection architecture is provided | |
CN108768685A (en) | Extensive communication network real-time analog simulation system | |
CN104901832B (en) | A kind of aeronautical Ad hoc networks half-practicality network simulation system | |
WO2005086850A8 (en) | Methods, systems, and computer program products for modeling and simulating application-level traffic characteristics in a network based on transport and network layer header information | |
CN103259735A (en) | Communication method of programmable virtualized router based on NetFPGA | |
CN105681101B (en) | A kind of data package processing method and device | |
CN109828843A (en) | Method, system and the electronic equipment that data are transmitted between a kind of calculate node | |
CN101567818A (en) | Large-scale network routing simulation method based on hardware | |
CN105959347A (en) | All-digital collaborative simulation system communication method based on P2P network | |
CN108234187A (en) | A kind of height link simulation method true to nature of data-oriented message forwarding | |
CN103414612A (en) | Communication network real-time simulation method based on OPNET | |
CN104618237A (en) | TCP/UDP (Transmission Control Protocol/User Datagram Protocol)-based wide area network acceleration system and method | |
CN111443990A (en) | Edge calculation task migration simulation system | |
CN105978817A (en) | Method for transmitting data, storage, and network adapter | |
CN105357039A (en) | Simulation method and device for delay tolerant network | |
CN110532208A (en) | A kind of data processing method, interface conversion structure and equipment | |
WO2009152721A1 (en) | A system for supporting large-scale distributed p2p simulation and a realization method and apparatus | |
CN102760114B (en) | Communication emulation method, engine and system for multi-processor system | |
CN109039709A (en) | A kind of mobile wireless network emulation and experiment porch based on virtualization | |
CN107483284A (en) | The method of testing and device of the network equipment | |
CN110351199A (en) | Flow smoothing method, server and forwarding device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |