CN101453371B - Simulation method and apparatus thereof for network embedded system - Google Patents

Simulation method and apparatus thereof for network embedded system Download PDF

Info

Publication number
CN101453371B
CN101453371B CN2008101156647A CN200810115664A CN101453371B CN 101453371 B CN101453371 B CN 101453371B CN 2008101156647 A CN2008101156647 A CN 2008101156647A CN 200810115664 A CN200810115664 A CN 200810115664A CN 101453371 B CN101453371 B CN 101453371B
Authority
CN
China
Prior art keywords
network
module
simulation
emulation
incident
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
Application number
CN2008101156647A
Other languages
Chinese (zh)
Other versions
CN101453371A (en
Inventor
王沁
王磊
潘光荣
何杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Science and Technology Beijing USTB
Original Assignee
University of Science and Technology Beijing USTB
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by University of Science and Technology Beijing USTB filed Critical University of Science and Technology Beijing USTB
Priority to CN2008101156647A priority Critical patent/CN101453371B/en
Publication of CN101453371A publication Critical patent/CN101453371A/en
Application granted granted Critical
Publication of CN101453371B publication Critical patent/CN101453371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a simulation method for a network embedded system and a device thereby. The simulation method comprises the following steps: reconstruction of a network, simulation of the reconstructed network, generation of simulation information, execution of simulation and post-processing of the simulation. The simulation device comprises a service end, a network simulation device and one or more object nodes. Moreover, one embodiment aiming at the network embedded system related to a wireless sensor efficiently improves network simulation efficiency of the wireless sensor, acquires more simulation information, and has significant function of further researching the network embedded system.

Description

The emulation mode of network embedded system and device thereof
Technical field
The present invention relates to communication, embedded system and network simulation field, particularly the emulation mode of network embedded system and device thereof.
Background technology
The network embedded system research field that to be network technology merge mutually with embedded system technology.In a network embedded system, network by one or more nodes by wired or wireless mode link together the institute form, be the embedded system of an independent operating on each node.Owing to involve the application of network technology and embedded system technology in this system simultaneously, difficulty and complicated so its realization becomes.Traditional network simulation instrument and embedded systems debugging method are had too many difficulties to cope with for the research network embedded system, especially can't study the relation between network behavior and the embedded system.
Network simulation software is the main tool of network field research network behavioural characteristic.It describes the various features of communication channel in the physical environment with the mode of Mathematical Modeling, and the mode with software realizes again, simulates and observe the diverse network behavior by computer run software.In conjunction with the protocol software, network simulation software can clearly reflect the performance of variety of protocol in particular network.
The embedded platform simulator is a kind of instrument of embedded system early development, and it comes the various hardware of simulated target system by software.On this analog hardware platform, the built-in system software of operation exploitation.This method embedded system early stage can effective diagnosis software functional defect.
A kind of popular research method of network embedded system is the mode that network simulation software is combined with the embedded platform simulator at present, so that the realization of test embedded system when observing network behavior, and the performance of assessing the network that the node of specific Implementation of Embedded System forms.The embedded system of software simulation has lost many genuine properties of embedded system and actual information, and this mode is difficult to the actual product of network embedded system is made assessment.
Another kind of general experiment porch is that a plurality of actual nodes are arranged to live network, by the output information on the collector node, and the operation conditions of awareness network and embedded system.This method has embodied the behavior of network embedded system more truly, but because what use is live network, only relies on the actual conditions in the output information indigestion network on the node.Lacked observability and controllability, made this instrument that very big limitation be arranged when test and debugging network embedded system network.Therefore the developing trend of network embedded system research method is the information that can obtain as much as possible in the real network embedded system.
An existing patent of invention, the patent No. are the wireless communication simulator and the emulation mode of 200510040311.1 TDMA Ad hoc network.The method has mainly proposed a kind of strategy of network simulation, with we propose not only can to network but also can to carry out emulation to embedded system different.An and existing patent of invention, the patent No. is the method for a kind of simulating moving self organization network of 200710099382.8, this invention is a kind of effective ways of mobile ad-hoc network protocol emulation, the scope of application of the network embedded system emulation mode that proposes with us and realize that thought is all inequality.
Summary of the invention
The invention provides the emulation mode of network embedded system, utilize this emulation mode can use real node to carry out network simulation, simultaneously in the network of emulation, dispose real node, thereby reach the purpose that concerns between reflection embedded system and the network behavior.
The emulation mode of network embedded system provided by the invention is characterized in that, this method comprises following step:
1) reconstruction step of a network is used for real network is divided into three relatively independent parts, specifically comprises the embedded system part of node in the network, physical communication environment in the network, and the communication device that is used for access network in the network on the node;
2) simulation process of a reconstructed network is used for reconstructed network different piece is implemented different Simulation Strategy, and this step comprises following substep:
A) an Object node constitution step is used for real node is introduced network simulation, especially keeps the authenticity of the software and hardware information of embedded system on the node in the network environment of emulation;
B) simulation process of a communication channel is used for the channel model of physical communication environment is built into the network of emulation, and this step comprises following two sub-steps:
I. a communication channel static nature calculation procedure is used for the static feature of real network topological structure and the constant of channel model are calculated the static parameter that converts communication channel emulation to;
Ii. a communication channel behavioral characteristics simulation process is used for the dynamic change of real-time simulation network topology structure, is used for the dependent variable of real-time calculating channel model, and is used for behind the real-time Object node access network dynamic effects to network behavior.
C) step of a virtual communication device is used for to the part physical layer of communication device and with the function level simulation on upper strata, and is used for connecting object node and the simulated channel of communicating by letter;
3) step that produces artificial intelligence is used for timely seizure, effectively writes down the information that simulation process produces, and this step comprises following substep:
A) a distribution incident produces step, is used for the information that simulation process produces is noted with the form of incident;
B) distribution event collection step is used for the incident unified addressing with the generation of different event source, concentrates and preserves;
C) distribution event synchronization step is used for the moment that record different event source produces incident under same clock, can unify ordering after collecting;
4) carry out simulation process for one, be used to finish artificial tasks one time, this step comprises following substep:
A) one is sent the emulation command step, is used to control simulation process, comprises unlatching emulation, suspends emulation, stops emulation and read simulation result etc.;
B) condition triggers step, is used for monitoring the generation of certain condition sequence of certain conditioned disjunction of simulation process;
C) simulation parameter configuration step is used for disposing before opening emulation and revise simulation parameter when opening emulation, and simulation parameter specifically comprises network topology structure parameter, communication channel model parameter and virtual communication device parameters;
5) emulation post-processing step is used for the incident that the one or many artificial tasks produces is processed, and reproduces simulation process according to the incident of record.
The device of network embedded system provided by the invention, can insert the real network node of multiple isomery simultaneously, can the multiple channel model of emulation, the arbitrary network topological structure can be set, and real time record and analysis artificial intelligence, make the emulation mode of network embedded system act on simulator, it is characterized in that, this device comprises with lower module:
1) cooperate described network simulation equipment (1020) work one or more participation emulation Object node (1030), be used to represent the software on the real node hardware operation actual node, produce network communication data and pass to network simulation equipment (1020), it is characterized in that: the computing module that is used to move software on the Object node, be used to finish the I/O module of other special applications I/O function on the node, and the power module that is used to provide the real node power supply.The software features of its Object node is application program on the node, protocol stack and embedded OS.The communication interface of its Object node is characterised in that provides the I/O interface that connects actual communication equipment.
2) a network simulation equipment (1020) that cooperates described Object node (1030) and described server device (1010) to work, be used for network topology structure and channel model that service of simulation end equipment is provided with, the network communication data that sends between the exchangeable object node, the information that produces in the record simulation process passes to server device, and its feature comprises following submodule:
A) a dynamics of channels emulation module (1023), according to environmental parameter (channel model) and network parameter (network topology), can the propagation delay time simulation, the judgment data that realize data between the communication device arrive certain virtual communication device through channel, give the error rate (BER) that can reach node adding appointment according to channel model, be connected with all virtual communication devices, and connecting at least one incident extraction module (1024);
B) the one or more virtual communication devices (1026) that cooperate described Object node (1010) and dynamics of channels emulation module (1023) to work, each virtual communication device is an example of realizing according to the virtual masterplate of communication device with reference to the specification of practical communication device, be connected with the dynamics of channels emulation module, and connecting at least one incident extraction module (1024);
C) be distributed in one or more incident extraction modules (1024) on described dynamics of channels emulation module (1023) and the one or more virtual communication device (1026), be used for variation in simulation process monitoring events source, for event flag length of a game stabs, the incident that all distribution event sources of buffer memory produce, and be connected to Simulation Control center module (1021);
D) the one or more condition matching modules (1025) that cooperate each incident extraction module (1024) to work, be used for match condition at one of a simulation process real time monitoring or a set condition, and feeding back to server device rapidly, each condition matching module and a corresponding incident extraction module (1024) connect;
E) parameter configuration module (1022) that cooperates described dynamics of channels emulation module (1023) and one or more virtual communication device (1026) to work, being used for will being loaded into from the virtual communication cell configuration that server device obtains before emulation described one or more virtual communication device blocks goes, before emulation and during emulation network topology structure parameter and channel model parameter be loaded in the described dynamics of channels emulation module and go, this module is connected with one or more virtual communication devices (1026) with dynamics of channels emulation module (1023);
F) Simulation Control center module (1021), cooperate described one or more incident extraction modules (1024), one or more condition matching modules (1025), a parameter configuration module (1022) and server device (1010) work, be used for controlling the operating state of dynamics of channels emulation module (1023) and one or more virtual communication device (1026) of described network simulation equipment (1020) according to the order that described server device transmission is got off, and control the event collection of the incident extraction module (1024) in the described network simulation equipment (1020), and control condition matching module (1025) in the described network simulation equipment (1020) and produce the collection of signal and upload, and the download of the parameter configuration module (1022) in the Control Network emulator (1020).
3) server device (1010) of the described network simulation equipment of cooperation (1020), be used to dispose the network topology structure and the channel model of emulation, send the Simulation Control order to network simulation equipment, and the artificial intelligence of handling the network simulation equipment records, its feature comprises following submodule:
A) a network topology structure conversion configurations parameter module (1012), be used for converting topology of networks to internodal distance matrix, use for channel static parameter generation module, be connected with channel model library module (1011) and dynamics of channels parameter generation module (1013);
B) a channel model library module (1011) of the described network topology structure conversion configurations parameter module of cooperation work is used to deposit various channel models;
C) a channel static parameter generation module (1013) that cooperates a described network topology structure conversion configurations parameter module (1012) to work draws static parameters such as channel model constant coefficient matrix in conjunction with network topology structure conversion configurations parameter module in the described server device and channel model library module;
D) cooperate the virtual template library (1017) of a communication device of one or more virtual communication devices (1026) work in the described network simulation equipment (1010), be used for the practical communication device is converted to one or more virtual communication devices of network simulation equipment;
E) cooperate described in this claim the event source definition module (1014) of incident extraction module (1024) work in the network simulation equipment, be used for information source with network embedded system and convert the event source that can be monitored by the incident extraction module of network simulation equipment to;
F) cooperate described in this claim the event analysis module (1016) of Simulation Control center module (1021) work in the network simulation equipment, be used to the processing and the understanding of the incident of simplifying, generally include the filtration, classification, ordering of incident and visual etc.;
G) a trigger condition configuration module (1015) that cooperates the submodule condition matching module (1025) in the described network simulation equipment to work, be used for when emulation, detecting the match condition of a condition sequence, the feedback data of the condition matching module in the real-time inspection network simulation equipment, and download in the condition matching module (1025) of new matching condition in the network simulation equipment.
An advantage of the invention is to adopt and remove the Object node of the real node of communication device, guaranteed the true and reliable of embedded system information on the node as emulation.
Another advantage of the present invention is when obtaining true embedded system information, can carry out emulation to physical communication environment, can see the behavior of network in detail.
Another advantage of the present invention be synchronous event with high time precision as information format, can reflect the order of occurrence of the asynchronous behavior of distribution of network embedded system, and then the causality of the behavior of analysis.
Another advantage of the present invention is that two step emulation are adopted in the emulation of physical communication environment, and dynamic simulation partly adopts complete parallel hardware to realize that simulation velocity is fast.
Description of drawings
Fig. 1 shows the surface structure of one embodiment of the invention, and wherein 101 is that MiceZ Object node, 103 is wireless network emulator, 104 service end PCs, 105 netting twines, 102 interfaces.
Fig. 2 shows the total framework of realization of one embodiment of the invention, and the module shown on the figure is respectively: 210 are service end; 211 is visual input/output interface; 212 is event database; 213 is preprocessor; 214 is the channel model warehouse; 220 is the network simulation part; 221 is wireless channel dynamic simulation module; 222 is virtual radio communication device CC2420; 223 is the Simulation Control center; 224 is outside SDRAM; 225 are distribution incident generation module; 230 is Object node.
Fig. 3 shows the Object node of one embodiment of the invention.
Fig. 4 shows the dynamics of channels emulation logic of one embodiment of the invention.
Fig. 5 shows the virtual communication device logic of one embodiment of the invention.
Fig. 6 shows the Simulation Control center logic of one embodiment of the invention.
Fig. 7 shows the incident of one embodiment of the invention and extracts and the trigger condition matching logic.
Fig. 8 shows the service end operating process of one embodiment of the invention.
Fig. 9 shows the simulation process that the present invention makes up general networking.
Figure 10 shows the structure of apparatus of the present invention, and wherein 1010 is service end; 1020 is network simulation equipment; 1030 is Object node; 1011 is the channel model library module; 1012 is network topology structure conversion configurations parameter module; 1013 is channel static parameter generation module; 1014 is the event source definition module; 1015 is the trigger condition configuration module; 1016 is event analysis module; 1017 is the virtual template library of communication device; 1021 Simulation Control center module; 1022 parameter configuration module; 1023 dynamics of channels emulation modules; 1024 incident extraction modules; 1025 condition matching modules; 1026 virtual communication devices.
Specific implementation
In order more fully to show all advantages of the network embedded system simulator that the present invention proposes, introduce a kind of embodiment of network embedded system simulator.For the implementation method of the explanation simulator that is without loss of generality, this embodiment is the realization at a kind of typical network embedded system, and this network embedded system is the wireless sensor network of being set up by MiceZ.Fig. 1 is the surface structure of embodiment, and it mainly is made up of MiceZ Object node 101, wireless network emulator 103 and service end PC 104.MicaZ Object node 101 is by access of radio network emulator 103, and interface 102 comprises that embedded system is used for debugging the UART interface and the SPI interface that is connected wireless communication devices CC2420 of output on the MicaZ Object node 101.Service end PC 104 is given wireless network emulator 103 by netting twine 105 transmitting control commands, and reads the information that wireless network emulator 103 produces by netting twine 105.
Fig. 2 is that total frame diagram is realized in inside embodiment illustrated in fig. 1.Service end PC 104 in service end 210 corresponding diagram 1 mainly is made up of several softwares, comprising: visual input/output interface 211 is used to user's fan-in network topological structure and configuration parameter and analyzes the emulation outgoing event provides graphic interface; Event database 212 is used to store, handle the incident that 103 transmission of wireless network emulator come up; Preprocessor 213 is to be used for topological structure that the user is imported and other parameters to convert the required configuration parameter of wireless network emulator 103 in visual input/output interface 211, and transfer process also relates to be selected the channel model that the user sets and calculate static constant in the model from the channel model warehouse; But channel model warehouse 214 is used to store the wireless channel model and the virtual masterplate of communication device of emulation.Wireless network emulator 103 in network simulation part 220 (ENet) corresponding diagram 1 is realized on FPGA by logical circuit.It mainly comprises: wireless channel dynamic simulation module 221, virtual radio communication device CC2420 222, Simulation Control center 223, distribution incident generation module 225.MicaZ Object node 101 among Object node 230 correspondences of access network emulation part 220 and Fig. 1, connect virtual radio communication device CC2420 222 by the SPI interface, and the UART output of embedded system is inserted the distribution incident generation module 225 of a correspondence.Virtual radio communication device CC2420 222 provides the function of access network emulation part 220 for Object node 230.Object node 230, virtual radio communication device CC2420 222 and network simulation part 220 constitute a complete artificial network, and the generation of its simulation process information is finished by distribution incident generation module 225, is focused on by event collection center 223 again.All incidents that storage was collected when the outside SDRAM 224 that is connected with event collection center 223 in the network simulation part 220 was used for emulation.
Fig. 3 has shown the MicaZ Object node structure that is used for emulation: it mainly is made of a real embedded system 313 and a virtual communication module 323.The computing module 314 of Part-1 is connected with memory module 315, and is connected with sensor assembly 311 by digital-to-analogue conversion 312.Power module 316 is computing module 314, memory module 315, sensor assembly 311 and communication module interface (node side) 321 power supplies by power circuit 317 in addition.Real embedded system 313 is connected with communication module interface (device end) 322 by communication module interface (node side) 321 with virtual communication module 323.
Fig. 4 shows the dynamics of channels emulation logic of one embodiment of the invention, and is corresponding with wireless channel dynamic simulation module 221.The emulation of the network of a n node is made up of the dynamics of channels emulation logic that n Fig. 4 provides, and wherein each is responsible for the BER injection that other all Object nodes are judged and can be reached bag to the data accessibility of an Object node of its correspondence.Parts 401 (parameter list) are a local SRAM, store other Object node data and send energy when arriving this dynamics of channels emulation module service object of institute node after energy attenuation, but the frequency of the received signal of this Object node, bit transfer rate and SNR threshold value.Parts 402 (path attenuation filter) are browsed the energy value that enters and withdraw from channel by the signal in the channel perception, and judgement reaches signal and whether can reach the service object of institute node on energy.Parts 403 (carrier frequency filter) allow the data of Object node of frequency match have the possibility that can reach the service object of institute node.Parts 404 (signal interference ratio filter) detect the SNR of this channel, if the SNR value is less than the set threshold value data service object of all unreachable institute node of any Object node then.Parts 405 (bit transfer rate filter) filter out the data that the unmatched Object node of Bit Transmission Rate is sent.Gating result after parts 406 (data strobe) filter according to parts 402,403,404,405, gating can reach data.Parts 407 (BER injector) produce logic by a hardware random number can reach the BER that the packet injection meets configuration.
Fig. 5 is the detailed design of virtual radio communication device CC2420 222 among Fig. 2.SPI interface 501 is connected with Object node 230 among Fig. 2 with I/O pin 505.SPI interface 501 is interactive interfaces of true CC2420 and node cpu, and I/O pin 505 is used for sending distinctive signal to CPU, comprises SFD, FIFO, FIFOP and CCA.The mutual data of process SPI interface 501 and CPU are handled or are produced by SPI controller 502, SPI controller 502 can be explained order and the data that CPU sends, also can organize the state and the data that send to CPU, specifically comprise: SPI controller 502 passes to register controller 503 after CPU is explained the CC2420 operation registers; Pass to state machine controller 506 after the command interpretation that the SPI controller sends CPU to CC2420; The data packet delivery that the SPI controller will send CPU is to receiving fifo controller 507; The SPI controller is from register controller 503 and receive register value and the packet that fifo controller 507 reads the CPU requirement respectively.Register controller 503 is used to simulate various status registers and the control register of CC2420, receives the reception buffering area that fifo controller 507 is used to simulate CC2420, sends the transmission buffering area that fifo controller 510 is used to simulate CC2420.State machine controller 506 is used for the state of emulation CC2420 device.State machine controller 506 receives the order that SPI controller 502 transmits, the packet that control will send 510 li of fifo controllers sends to network simulation part 220 among Fig. 2 by reflector 508, and the data that control will be passed to from the network simulation part 220 among Fig. 2 on the receiver 509 are sent in the reception fifo controller 507, and the level height of control I/O pin 505.SRAM 504 is all memory cell that are used to provide on the virtual radio communication device CC2420.
Fig. 6 is the detailed design at Simulation Control center 223 among Fig. 2.Ethernet interface 601 is used for Fig. 1 service end PC 104 and is connected with wireless network emulator 103.The data download packet protocol that agreement parse module 602 is used for according to Fig. 1 service end PC 104 is that packet unpacks.After unpacking, packet is delivered to decoder module 603.Decoder module 603 can be controlled emulation controller 604 and send control command to the whole simulation platform, and can dispose simulation parameters by Control Parameter download module 605, and transmission module 606 takes out the incident of storage by sdram interface 607 on can control event, and the pattern of giving out a contract for a project that can control protocol group bag module 608.Protocol groups bag module 608 is operated in incident, and transmission module 606 transmits on the permission incident when giving out a contract for a project pattern incident is delivered to service end PC 104 among Fig. 1, is operated in to allow the condition frazzle of trigger module 610 transmission to be sent to service end PC 104 among Fig. 1 when giving out a contract for a project pattern.Distribution incident generation module polling circuit 609 is used for storing among the outside SDRAM 224 being distributed in the event set of all distribution incident generation module 225 buffer memorys in Fig. 2 network simulation part 220.
Fig. 7 shows the incident of one embodiment of the invention and extracts and the trigger condition matching logic, 225 corresponding with among Fig. 2.Parts 701 (switching circuit) are switching logic, and by the configuration of host computer, 4 in 32 probes in left side will be linked into 4 702 (arithmetic element, triggering constant, comparator and old value) parts.Each 702 parts divides two parts logic, and a part is used for event detection, by the new and old value trigger event of certain probe of comparison, thereby with incident input block 703 (incident flow control); Another part is used for to parts 223 transmission match notifications, and when the value of certain probe was followed the value of configuration to equate or passed through other computing unanimity, the transmission match notifications can be suspended whole simulation to parts 223 as required to be used for host computer.Parts 703 are used to the incident of releiving and produce the access speed that incident when intensive produces speed and event buffer.Parts 704 (incident FIFO) are event buffer, are a circuit based on dual port FIFO, and an end is used for the incident storage port, and the other end is used for event collection center 223 and extracts event data.705 (writing fifo interface) and 706 (reading fifo interface) are respectively write port and the read port of incident FIFO.Arithmetic element is the unit that probe probe value and system configuration values are carried out computing; Trigger constant storage system configuration value, this is worth by the host computer setting; The history value that old value storage probe is surveyed; Comparator is new value of probe and history value comparator.
Understand the working mechanism of embodiment shown in Figure 1 for convenience, Fig. 8 shows a kind of typical operating process.Finish emulation in the operation box 808 and begin preceding initial work.The step that specifically comprises Fig. 8 the right.The user is input to service end PC 104 among Fig. 1 with the network topology structure of design by visualization interface in operation box 801, comprises static geographical position and dynamic situation of movement in the topological structure.User's wireless channel model that channel model warehouse 214 selects artificial network to adopt from Fig. 2 in operation box 802.In operation box 803, need the event source observed and the trigger condition sequence of wait in the user definition simulation process.Behind the complete operation frame 801,802 and 803, user-defined simulation parameter is delivered to preprocessor 213 among Fig. 2, and the User Defined parameter is converted into Downloadable parameter in the operation box 804.In operation box 805, the software of node is programmed on the Object node in the real network.In operation box 806, select the corresponding virtual wireless communication devices according to the wireless communication devices that actual node uses.In operation box 807, the virtual radio communication device that obtains in the binding operation frame 805 generates the logical circuit of network simulation part 220 among Fig. 2.
After operation box 808 beginning emulation are finished, forward in the operation box 809 and send starting command to wireless network emulator 103, in operation box 810, open MicaZ Object node 101 then, when whole afterwards device enters simulation run by service end PC 104 among Fig. 1.
Owing to have a plurality of parallel steps during simulation run, in described embodiment, can realize this characteristic with hardware logic.In operation box 811, the incident that operation box 803 user-defined event sources produce will be by recording occurring continuously, and the trigger condition that the user is provided with can be sent to service end PC 104 among Fig. 1 in real time.If there is mobile node in the network, then has the download of dynamic network topology structural parameters in the operation box 812 and enter network simulation part 220 among Fig. 2, when continuing simulation run then.If the trigger condition sequence is set, the match condition of trigger module 610 in the meeting surveillance map 6 in operation box 813 after each trigger condition coupling, downloads to network simulation part 220 among Fig. 2 with new trigger condition, when continuing simulation run then.
In operation box 814, shut down that trigger condition is mated fully or the user sends halt command, make that network simulation part 220 stops emulation among Fig. 2.Afterwards, in operation box 815, service end PC 104 takes out all incidents of 224 li storages of outside SDRAM among Fig. 2 among Fig. 1, enters that event database 212 sorts, classification and reproduction processes, does simulation analysis for the user.
Although the explanation that one embodiment of the present of invention are detailed the each side of network embedded system emulation mode realize principle and advantage, but range of application of the present invention is not limited to the specific embodiment of the described processing of specification, machine, goods, material composition, device, software and step, be not limited to the specific embodiment in the described MicaZ wireless sensor network of the specification field, be not limited to the described embodiment that is used for the emulation purpose.As according to disclosure, the present invention can be implemented as other processing, machine, goods, material composition, device, software and step easily and use essentially identical function or reach essentially identical effect, other all-network communications fields can be applied to easily, other application purposes such as test, debugging of network embedded system can be reached easily.So claims are wished these processing, machine, goods, material composition, device, software and step, and these network communication field, and these application purposes are included in the scope.
Fig. 9 shows the step of implementing the network embedded system emulation mode of the present invention's proposition at general networking.In operation box 901, a general networking is divided into the physical communication environment of network, the embedded system of network node and the communication device of network node.In the operation box 902 reconstructed network different piece is implemented different Simulation Strategy, the network physical communication environment is used channel simulator, utilize the embedded system structure Object node of real node, the communication device of network node is used virtual device.Partly provide a kind of mechanism to different emulation in the operation box 903, can catch and effectively write down the information that produces in the simulation process.Finish artificial tasks in the operation box 904 one time.The incident that in the operation box 905 the one or many artificial tasks is produced processes, and reproduces simulation process according to the incident of record.

Claims (2)

1. the emulation mode of a network embedded system is characterized in that: the reconstruction step, the simulation process of reconstructed network, generation artificial intelligence step, the emulation post-processing step that comprise network;
A) reconstruction step of a network (901), be used for real network is divided into three relatively independent parts, the embedded system part that specifically comprises node in the network, physical communication environment in the network, and the communication device that is used for access network in the network on the node;
B) simulation process of a reconstructed network (902) is used for reconstructed network different piece is implemented different Simulation Strategy;
C) step (903) that produces artificial intelligence is used for timely seizure, effectively writes down the information that simulation process produces;
D) carry out simulation process (904) for one, be used to finish artificial tasks one time;
E) an emulation post-processing step (905) is used for the incident that the one or many artificial tasks produces is processed, and reproduces simulation process according to the incident of record;
The simulation process of described reconstructed network (902) comprises structure Object node, simulation communication channel, virtual communication device;
A) the structure Object node is used for real node is introduced network simulation, keeps the authenticity of the software and hardware information of embedded system on the node in the network environment of emulation;
B) simulation communication channel is used for the channel model of physical communication environment is built into the network of emulation;
C) virtual communication device is used for to the part physical layer of communication device and with the function level simulation on upper strata, and is used for connecting object node and the simulated channel of communicating by letter; The step of described generation artificial intelligence (903) comprises the generation of distribution incident, distribution event collection, distribution event synchronization;
A) the distribution incident produces, and is used for the information that simulation process produces is noted with the form of incident;
B) distribution event collection is used for the incident unified addressing with the generation of different event source, concentrates and preserves;
C) distribution event synchronization is used for the moment that record different event source produces incident under same clock, unified ordering after collecting;
Described execution simulation process (904) comprises that emulation command generation and transmission, condition trigger, the simulation parameter configuration;
A) emulation command generates and sends, and is used to control simulation process, comprises unlatching emulation, suspends emulation, stops emulation and read simulation result;
B) condition triggers, and is used for monitoring the generation of certain condition sequence of certain conditioned disjunction of simulation process;
C) simulation parameter configuration is used for disposing before opening emulation and revise simulation parameter when opening emulation, and simulation parameter specifically comprises network topology structure parameter, communication channel model parameter and virtual communication device parameters.
2. the simulator of a network embedded system, it is characterized in that: the Object node (1030) that comprises server device (1010), network simulation equipment (1020), one or more participation emulation, described simulator inserts the real network node of multiple isomery simultaneously, the multiple channel model of emulation, the arbitrary network topological structure is set, and real time record and analysis artificial intelligence make the emulation mode of network embedded system act on simulator; Each parts connected mode is as follows:
A) Object node (1030) of one or more participation emulation of the described network simulation equipment of cooperation (1020) work is used to represent the software on the real node hardware operation actual node, produces network communication data and also passes to network simulation equipment (1020);
B) a network simulation equipment (1020) that cooperates described Object node (1030) and described server device (1010) to work, be used for network topology structure and channel model that service of simulation end equipment is provided with, the network communication data that sends between the exchangeable object node, the information that produces in the record simulation process also passes to server device;
C) server device (1010) of the described network simulation equipment of cooperation (1020) is used to dispose the network topology structure and the channel model of emulation, sends the Simulation Control order to network simulation equipment, and the artificial intelligence of handling the network simulation equipment records;
The hardware of described Object node (1030) comprises the computing module that is used to move software on the Object node, is used to finish the I/O module of other special applications I/O function on the node, and the power module that is used to provide the real node power supply; The software features of Object node is application program on the node, protocol stack and embedded OS, and the communication interface of Object node is characterised in that provides the I/O interface that connects actual communication equipment;
Described network simulation equipment (1020) comprises a dynamics of channels emulation module (1023), one or more virtual communication device (1026), one or more incident extraction module (1024), condition matching module (1025), a parameter configuration module (1022) and Simulation Control center module (1021);
A) a dynamics of channels emulation module (1023), according to channel model and network topology, can the propagation delay time simulation, the judgment data that realize data between the communication device arrive certain virtual communication device through channel, give the error rate (BER) that can reach node adding appointment according to channel model, be connected with all virtual communication devices, and connecting at least one incident extraction module (1024);
B) the one or more virtual communication devices (1026) that cooperate described Object node (1030) and dynamics of channels emulation module (1023) to work, each virtual communication device is an example of realizing according to the virtual masterplate of communication device with reference to the specification of practical communication device, be connected with the dynamics of channels emulation module, and connecting at least one incident extraction module (1024);
C) be distributed in one or more incident extraction modules (1024) on described dynamics of channels emulation module (1023) and the one or more virtual communication device (1026), be used for variation in simulation process monitoring events source, for event flag length of a game stabs, the incident that all distribution event sources of buffer memory produce, and be connected to Simulation Control center module (1021);
D) the one or more condition matching modules (1025) that cooperate each incident extraction module (1024) to work, be used for match condition at one of a simulation process real time monitoring or a set condition, and feeding back to server device rapidly, each condition matching module and a corresponding incident extraction module (1024) connect;
E) parameter configuration module (1022) that cooperates described dynamics of channels emulation module (1023) and one or more virtual communication device (1026) to work, being used for will being loaded into from the virtual communication cell configuration that server device obtains before emulation described one or more virtual communication devices goes, before emulation and during emulation network topology structure parameter and channel model parameter be loaded in the described dynamics of channels emulation module and go, this module is connected with one or more virtual communication devices (1026) with dynamics of channels emulation module (1023);
F) Simulation Control center module (1021), cooperate described one or more incident extraction modules (1024), one or more condition matching modules (1025), a parameter configuration module (1022) and server device (1010) work, be used for controlling the operating state of dynamics of channels emulation module (1023) and one or more virtual communication device (1026) of described network simulation equipment (1020) according to the order that described server device transmission is got off, and control the event collection of the incident extraction module (1024) in the described network simulation equipment (1020), and control condition matching module (1025) in the described network simulation equipment (1020) and produce the collection of signal and upload, and the download of the parameter configuration module (1022) in the Control Network emulator (1020);
Described server device (1010) comprises virtual template library (1017), an event source definition module (1014), an event analysis module (1016) and a trigger condition configuration module (1015) of a network topology structure conversion configurations parameter module (1012), a channel model library module (1011), a channel static parameter generation module (1013), a communication device;
A) a network topology structure conversion configurations parameter module (1012), be used for converting topology of networks to internodal distance matrix, use for channel static parameter generation module, be connected with channel model library module (1011) and dynamics of channels parameter generation module (1013);
B) a channel model library module (1011) of the described network topology structure conversion configurations parameter module of cooperation work is used to deposit various channel models;
C) a channel static parameter generation module (1013) that cooperates a described network topology structure conversion configurations parameter module (1012) to work draws channel model constant coefficient matrix as static parameter in conjunction with network topology structure conversion configurations parameter module in the described server device and channel model library module;
D) cooperate the virtual template library (1017) of a communication device of one or more virtual communication devices (1026) work in the described network simulation equipment (1010), be used for the practical communication device is converted to one or more virtual communication devices of network simulation equipment;
E) cooperate the event source definition module (1014) of incident extraction module (1024) work in the described network simulation equipment, be used for information source with network embedded system and convert the event source that can be monitored by the incident extraction module of network simulation equipment to;
F) cooperate the event analysis module (1016) that Simulation Control center module (1021) is worked in the described network simulation equipment, be used to the processing and the understanding of the incident of simplifying, generally include filtration, classification, the ordering and visual of incident;
G) a trigger condition configuration module (1015) that cooperates the condition matching module (1025) in the described network simulation equipment to work, be used for when emulation, detecting the match condition of a condition sequence, the feedback data of the condition matching module in the real-time inspection network simulation equipment, and download in the condition matching module (1025) of new matching condition in the network simulation equipment.
CN2008101156647A 2008-06-26 2008-06-26 Simulation method and apparatus thereof for network embedded system Active CN101453371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101156647A CN101453371B (en) 2008-06-26 2008-06-26 Simulation method and apparatus thereof for network embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101156647A CN101453371B (en) 2008-06-26 2008-06-26 Simulation method and apparatus thereof for network embedded system

Publications (2)

Publication Number Publication Date
CN101453371A CN101453371A (en) 2009-06-10
CN101453371B true CN101453371B (en) 2010-10-27

Family

ID=40735404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101156647A Active CN101453371B (en) 2008-06-26 2008-06-26 Simulation method and apparatus thereof for network embedded system

Country Status (1)

Country Link
CN (1) CN101453371B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307369B (en) * 2011-09-13 2013-11-27 北京科技大学 Device and method for supporting parallel simulation and physical simulation of wireless sensor network
CN102595434A (en) * 2012-02-08 2012-07-18 中国科学院上海微系统与信息技术研究所 Simulation system of wireless sensor network
CN103442249B (en) * 2013-09-09 2015-09-23 国家电网公司 Video conferencing system emulation mode and platform
CN107515724B (en) * 2016-06-16 2021-04-02 伊姆西Ip控股有限责任公司 Method and apparatus for reproducing input and output of storage system
CN106445640B (en) * 2016-10-20 2019-06-18 南京南瑞继保电气有限公司 A kind of embedded type virtual device operation method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1687902A (en) * 2005-04-22 2005-10-26 上海海事大学 Embedded real-time simulation platform

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1687902A (en) * 2005-04-22 2005-10-26 上海海事大学 Embedded real-time simulation platform

Also Published As

Publication number Publication date
CN101453371A (en) 2009-06-10

Similar Documents

Publication Publication Date Title
CN106774223B (en) A kind of production line three-view diagram intelligent linkage method, system
CN101453371B (en) Simulation method and apparatus thereof for network embedded system
CN106154865B (en) A kind of vehicle bus simulation model self-generating method and system
CN102306223B (en) High level architecture (HLA) technology-based ship gas turbine device integrated simulation platform and implementation method thereof
CN103970032B (en) Satellite platform and mechanical arm collaborative simulation simulator
CN102523030B (en) Communication satellite effective load test system simulation platform
CN108427776A (en) Distributed all digital combined simulation system and method
CN114338418B (en) Virtual-real combined information network verification platform
Baldassari et al. An environment for object-oriented conceptual programming based on PROT nets
CN106452850A (en) SDN controller performance testing method and system
CN112327745B (en) PLC program design method based on testable digital twin body
CN113518012B (en) Distributed cooperative flow simulation environment construction method and system
CN106161117A (en) The analogue system of a kind of AFDX network and emulation mode
Rolle et al. Digitalization of manufacturing processes: proposal and experimental results
CN116431707A (en) Agent technology-based virtual-actual integrated management and control system and method
Iqbal et al. Meta-simulation of large WSN on multi-core computers
Nielebock et al. From discrete event simulation to virtual reality environments
Wainer et al. A framework for remote execution and visualization of Cell-DEVS models
Fu et al. On wireless sensor networks formal modeling based on petri nets
Pieber et al. SystemC test case generation with the gazebo simulator
Xia et al. Liveness and Boundedness Preservations of Sharing Synthesis of Petri Net Based Representation for Embedded Systems.
Hosking et al. Testability of a swarm robot using a system of systems approach and discrete event simulation
CN110046456A (en) A kind of colony intelligence building simulation model simulation run implementation method
Gorton et al. Engineering high quality parallel software using PARSE
Alexakos et al. Iot integration in the manufacturing environment towards industry 4.0 applications

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20090610

Assignee: Beijing Beike-masic Automation Engineering Limited Company

Assignor: University of Science and Technology Beijing

Contract record no.: 2013990000369

Denomination of invention: Simulation method and apparatus thereof for network embedded system

Granted publication date: 20101027

License type: Exclusive License

Record date: 20130702

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model