CN106508103B - A kind of dynamic control method of communication network simulation - Google Patents
A kind of dynamic control method of communication network simulationInfo
- Publication number
- CN106508103B CN106508103B CN201010050653.2A CN201010050653A CN106508103B CN 106508103 B CN106508103 B CN 106508103B CN 201010050653 A CN201010050653 A CN 201010050653A CN 106508103 B CN106508103 B CN 106508103B
- Authority
- CN
- China
- Prior art keywords
- parameter
- simulation
- actual
- actual parameter
- parameters
- 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.)
- Expired - Fee Related
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 116
- 238000004891 communication Methods 0.000 title claims abstract description 25
- 238000000034 method Methods 0.000 title claims abstract description 20
- 230000004048 modification Effects 0.000 claims abstract description 55
- 238000012986 modification Methods 0.000 claims abstract description 47
- 238000012545 processing Methods 0.000 claims abstract description 38
- 230000008859 change Effects 0.000 claims abstract description 7
- 238000013461 design Methods 0.000 claims description 6
- 230000001360 synchronised effect Effects 0.000 claims description 5
- 238000009795 derivation Methods 0.000 claims description 3
- 230000003993 interaction Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 4
- 238000007726 management method Methods 0.000 description 13
- 230000011218 segmentation Effects 0.000 description 3
- 238000007792 addition Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention relates to a kind of dynamic control method of communication network simulation, includes initial configuration generation step, simulation initialisation step, dynamic parameter management process, parameter deriving step successively.Dynamic parameter is managed, including:(1) artificial network is run;(2) actual parameter value is modified with external program modification by GUI modifications;(3) phantom provides parameter modification Processing Interface;(4) by the method for synchronization and asynchronous system, phantom obtains amended actual parameter value, updates simulation status.The present invention realizes the dynamic parameter modification during communication simulation, simulation parameter can be modified, realize the quadratic programming of artificial network in the case where emulation is not interrupted.The invention enables communicatrion emulator can damage that more preferably simulation live network is faced in running, failure, operational factor the characteristic such as change.The present invention uses two kinds of different parameter management modes so that the change of more effectively response parameter is capable of in communication.
Description
Technical Field
The present invention relates to a dynamic control method for communication network simulation, and more particularly, to a dynamic control method for communication network simulation with dynamic parameter modification capability.
Background
With the rapid development of computer information networks, the network simulation has more and more prominent effect in various fields. The communication network simulation is realized through computer assistance, and researchers and designers of the network can be helped to better master the operating state of the communication network. And a new networking mode and technology can be researched more conveniently, efficiently and at low cost. Most of the existing communication network simulators are constructed based on discrete event simulation, and are focused on simulating various communication protocols, communication equipment and networks, so that the communication network simulators are widely applied. The applications of communication network simulations are gradually penetrating into various application scenarios, requiring the simulator itself to be able to implement customized functions and to be able to operate in a more flexible manner. The communication network simulator used at present adopts a closed operation loop, can only plan the network before the simulation starts, and cannot dynamically respond to external instructions. Therefore, there is a need for a communication network simulation system that can implement dynamic control to meet the requirement of network quadratic programming in the simulation process, and implement functions of replay after parameter modification, addition and deletion of basic network elements, links, and simulation scenarios.
Disclosure of Invention
The invention aims to provide a dynamic control method for communication network simulation with dynamic parameter modification capability.
In order to solve the above technical problem, the dynamic control method for communication network simulation of the present invention sequentially comprises the following steps:
the first step, initial configuration, include sequentially:
(1) acquiring a network structure, equipment parameters, service flow parameters and wireless environment parameters of an actual network;
(2) the simulation kernel assigns values to actual parameters of each basic network element through GUI (graphical user interface) configuration and/or background batch configuration according to a network structure, equipment parameters, service flow parameters and wireless environment parameters to obtain an initial parameter configuration result and construct an initial simulation parameter system;
(3) generating an initial parameter management entity, which sequentially comprises:
A. importing the initial parameter configuration result;
B. importing a network structure, generating basic network elements, wherein each type of basic network element corresponds to a simulation model;
C. performing initial parameter matching, and corresponding the basic network elements to the initial parameter configuration result, wherein the actual parameters of each basic network element generate a management entity;
D. generating actual parameter values including values of the fixed value parameters and values of the random value parameters, and storing a change rule of the variable random value parameters;
the second step, emulation initialization, include in proper order:
(1) performing initialization for each basic network element;
(2) reading the initialization round setting of the basic network elements;
(3) calling an initialization function provided by a user;
(4) calling a parameter query interface provided by the simulation kernel, and reading an initial actual parameter value;
thirdly, dynamic parameter management, comprising:
(1) operating a simulation network;
(2) modifying the actual parameter values, including GUI modification and external program modification;
wherein, the GUI modification mode comprises the following steps in sequence:
A. suspending the simulation;
B. selecting a basic network element on the GUI for modifying the parameter;
C. matching the type and unit of the modified actual parameter value;
D. submitting the modification to the GUI;
E. the GUI captures the modification of the actual parameter value, reads the name of the affiliated basic network element, the name of the actual parameter and the modified actual parameter value from the actual parameter value, and transmits the modified actual parameter value to the simulation kernel;
F. finding out a parameter management entity by using the name of the basic network element and the name of the actual parameter provided in the E, and changing the parameter value stored in the parameter management entity into the actual parameter value provided in the E;
wherein, the external program modification mode includes in sequence:
A. establishing an external program which works in cooperation with the simulation program;
B. simultaneously operating a simulation program and an external program, and establishing a program interaction channel;
C. the external program receives modification instructions of an operator, instruction control software and management software;
D. reading an actual parameter value, and matching the type and unit of the actual parameter value;
E. acquiring the name of a module to which an actual parameter to be modified belongs and the name of the actual parameter;
F. the external program informs the simulation kernel to modify the corresponding parameter entity value into the set actual parameter value;
(3) the simulation model provides a parameter modification processing interface, and comprises the following two modes:
A. in the simulation kernel supporting multiple states, providing a parameter modification processing interface for each simulation model through a uniform interface, and realizing the processing flow of the parameter modification processing interface according to the specific design of the simulation model; or,
B. in the simulation kernel which does not support the polymorphism, a parameter modification processing interface is designated by a function pointer, and the processing flow of the parameter modification processing interface is realized according to the specific design of a simulation model;
(4) the simulation model obtains the modified actual parameter value, updates the simulation state, and sequentially comprises:
A. modifying the stored value of the parameter management entity;
B. informing the actual parameter values modified in the third step (3) to the simulation model in a synchronous mode and an asynchronous mode;
and fourthly, parameter derivation.
The synchronization mode in the third step (4) sequentially comprises that a corresponding simulation model is found through the name of the basic network element to which the actual parameter belongs, and the parameter modification processing interface is called; reading the modified actual parameter value; resetting the simulation state of the simulation model according to the modified actual parameter value; and processing subsequent simulation according to the new model simulation state.
The asynchronous mode in the third step (4) sequentially comprises the steps of determining actual parameter values to be read according to the operation of the simulation program; calling a parameter query interface of the simulation kernel, and providing a name of a basic network element and a name of an actual parameter to be queried; reading an actual parameter value according to the name of the basic network element and the name of the actual parameter; updating the current simulation state; and processing subsequent simulation events.
The invention realizes the dynamic parameter modification capability in the communication simulation process, and can modify the simulation parameters under the condition of not interrupting the simulation, thereby realizing the quadratic planning of the simulation network.
The invention enables the communication simulation system to better simulate the characteristics of damage, failure, operation parameter change and the like of a real network in the operation process.
The invention enables the communication simulation system to be used in other systems through external program modification in the step three (2) to realize joint operation with other systems.
According to the invention, through the synchronous mode in the step three (4), the simulation system can respond to the parameter modification instruction of the external program or the third-party control platform in real time, and the unattended operation capability of the communication simulation system is realized.
The invention enables the communication to respond to the parameter change more effectively by using two different parameter management modes in the step three (4).
Drawings
Fig. 1 is a schematic flow chart of a dynamic control method for communication network simulation according to the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
The invention comprises the following steps in sequence:
the first step, initial configuration, include sequentially:
(1) acquiring a network structure, equipment parameters, service flow parameters and wireless environment parameters of an actual network;
(2) the simulation kernel assigns values to actual parameters of each basic network element through GUI (graphical user interface) configuration and/or background batch configuration according to a network structure, equipment parameters, service flow parameters and wireless environment parameters to obtain an initial parameter configuration result and construct an initial simulation parameter system;
the GUI configuration comprises the steps that a needed network and needed equipment are set up by utilizing the GUI, the network and the needed equipment are composed of basic network elements, and each basic network element corresponds to one entity in the GUI; selecting actual parameters of basic network elements needing to be configured on a GUI (graphical user interface), and setting;
the background batch configuration comprises the steps of configuring simulation parameters by using an INI file and configuring actual parameters of specific basic network elements by using a hierarchical section mode, wherein the mode is as follows:
simulation network, sub-network, node, module and parameter as set value
Batch setup with wildcards, using ". X" to match multiple characters that do not include a segmentation symbol ". The use". X "to match multiple characters that include a segmentation symbol". The method of using ". X" to match multiple characters that do not include a segmentation symbol ". The method of using a" full-page "to match multiple characters
The parameter A is a specific value
Simulation network a, subnet 1
*. subnet 1, node [ 1-10 ]. parameter A ═ set value
Node [1, 2, 5-10 ] parameter a is a set value.
(3) Generating an initial parameter management entity, which sequentially comprises:
A. importing the initial parameter configuration result;
B. importing a network structure, generating basic network elements, wherein each type of basic network element corresponds to a simulation model;
C. performing initial parameter matching, and corresponding the basic network elements to the initial parameter configuration result, wherein the actual parameters of each basic network element generate a management entity;
D. generating actual parameter values including values of the fixed value parameters and values of the random value parameters, and storing a change rule of the variable random value parameters;
the second step, emulation initialization, include in proper order:
(1) performing initialization for each basic network element;
(2) reading the initialization round setting of the basic network elements;
(3) calling an initialization function provided by a user;
(4) calling a parameter query interface provided by the simulation kernel, and reading an initial actual parameter value;
thirdly, dynamic parameter management, comprising:
(1) operating a simulation network;
(2) modifying the actual parameter values, including GUI modification and external program modification;
wherein, the GUI modification mode comprises the following steps in sequence:
A. suspending the simulation;
B. selecting a basic network element on the GUI for modifying the parameter;
C. matching the type and unit of the modified actual parameter value;
D. submitting the modification to the GUI;
E. the GUI captures the modification of the actual parameter value, reads the name of the affiliated basic network element, the name of the actual parameter and the modified actual parameter value from the actual parameter value, and transmits the modified actual parameter value to the simulation kernel;
F. finding out a parameter management entity by using the name of the basic network element and the name of the actual parameter provided in the E, and changing the parameter value stored in the parameter management entity into the actual parameter value provided in the E;
wherein, the external program modification mode includes in sequence:
A. establishing an external program which works in cooperation with the simulation program;
B. simultaneously operating a simulation program and an external program, and establishing a program interaction channel;
C. the external program receives modification instructions of an operator, instruction control software and management software;
D. reading an actual parameter value, and matching the type and unit of the actual parameter value;
E. acquiring the name of a module to which an actual parameter to be modified belongs and the name of the actual parameter;
F. the external program informs the simulation kernel to modify the corresponding parameter entity value into the set actual parameter value;
(3) the simulation model provides a parameter modification processing interface, and comprises the following two modes:
A. in the simulation kernel supporting multiple states, providing a parameter modification processing interface for each simulation model through a uniform interface, and realizing the processing flow of the parameter modification processing interface according to the specific design of the simulation model; or,
B. in the simulation kernel which does not support the polymorphism, a parameter modification processing interface is designated by a function pointer, and the processing flow of the parameter modification processing interface is realized according to the specific design of a simulation model;
(4) the simulation model obtains the modified actual parameter value, updates the simulation state, and sequentially comprises:
A. modifying the stored value of the parameter management entity;
B. informing the actual parameter values modified in the third step (3) to the simulation model in a synchronous mode and an asynchronous mode;
the synchronization mode sequentially comprises the steps of finding out a corresponding simulation model through the name of the basic network element to which the actual parameter belongs, and calling the parameter modification processing interface; reading the modified actual parameter value; resetting the simulation state of the simulation model according to the modified actual parameter value; and processing subsequent simulation according to the new model simulation state.
The asynchronous mode sequentially comprises the steps of determining actual parameter values to be read according to the operation of a simulation program; calling a parameter query interface of the simulation kernel, and providing a name of a basic network element and a name of an actual parameter to be queried; reading an actual parameter value according to the name of the basic network element and the name of the actual parameter; updating the current simulation state; and processing subsequent simulation events.
For calling the parameter modification processing interface in the synchronous mode, the following steps are preferred, and the steps sequentially comprise:
(1) acquiring a parameter entity of the modified actual parameter;
(2) acquiring a simulation model pointer of a basic network element to which the parameter entity belongs from the parameter entity;
(3) calling the parameter modification processing interface, wherein the parameter modification processing interface comprises two processing modes of a polymorphic mode and a non-polymorphic mode:
in a polymorphic mode: converting the simulation model into a basic type predefined by a simulation kernel; calling a public interface of the basic type;
in a non-polymorphic manner:
inquiring a function pointer of a parameter modification processing function of the simulation model; reading a parameter modification processing function stored in a function pointer; and calling the parameter modification processing function.
Fourthly, parameter derivation, including parameter configuration used in optimization simulation; circularly simulating and verifying; parameter configurations used in the simulation are derived.
Claims (5)
1. A dynamic control method for communication network simulation sequentially comprises the following steps:
the first step, initial configuration, include sequentially:
(1) acquiring a network structure, equipment parameters, service flow parameters and wireless environment parameters of an actual network;
(2) the simulation kernel assigns values to actual parameters of each basic network element through GUI (graphical user interface) configuration and/or background batch configuration according to a network structure, equipment parameters, service flow parameters and wireless environment parameters to obtain an initial parameter configuration result and construct an initial simulation parameter system;
(3) generating an initial parameter management entity, which sequentially comprises:
A. importing the initial parameter configuration result;
B. importing a network structure, generating basic network elements, wherein each type of basic network element corresponds to a simulation model;
C. performing initial parameter matching, and corresponding the basic network elements to the initial parameter configuration result, wherein the actual parameters of each basic network element generate a parameter management entity;
D. generating actual parameter values including values of the fixed value parameters and values of the random value parameters, and storing a change rule of the variable random value parameters;
the second step, emulation initialization, include in proper order:
(1) performing initialization for each basic network element;
(2) reading the initialization round setting of the basic network elements;
(3) calling an initialization function provided by a user;
(4) calling a parameter query interface provided by the simulation kernel, and reading an initial actual parameter value;
thirdly, dynamic parameter management, comprising:
(1) operating a simulation network;
(2) modifying the actual parameter values, including GUI modification and external program modification;
wherein, the GUI modification mode comprises the following steps in sequence:
A. suspending the simulation;
B. selecting a basic network element on the GUI for modifying the parameter;
C. matching the type and unit of the modified actual parameter value;
D. submitting the modification to the GUI;
E. the GUI captures the modification of the actual parameter value, reads the name of the affiliated basic network element, the name of the actual parameter and the modified actual parameter value from the actual parameter value, and transmits the modified actual parameter value to the simulation kernel;
F. finding out a parameter management entity by using the name of the basic network element and the name of the actual parameter provided in the E, and changing the parameter value stored in the parameter management entity into the actual parameter value provided in the E;
wherein, the external program modification mode includes in sequence:
A. establishing an external program which works in cooperation with the simulation program;
B. simultaneously operating a simulation program and an external program, and establishing a program interaction channel;
C. the external program receives modification instructions of an operator, instruction control software and management software;
D. reading an actual parameter value, and matching the type and unit of the actual parameter value;
E. acquiring the name of a module to which an actual parameter to be modified belongs and the name of the actual parameter;
F. the external program informs the simulation kernel to modify the corresponding parameters and assigns the parameters to the set actual parameter values;
(3) the simulation model provides a parameter modification processing interface, and comprises the following two modes:
A. in the simulation kernel supporting multiple states, providing a parameter modification processing interface for each simulation model through a uniform interface, and realizing the processing flow of the parameter modification processing interface according to the specific design of the simulation model; or,
B. in the simulation kernel which does not support the polymorphism, a parameter modification processing interface is designated by a function pointer, and the processing flow of the parameter modification processing interface is realized according to the specific design of a simulation model;
(4) the simulation model obtains the modified actual parameter value, updates the simulation state, and sequentially comprises:
A. modifying the stored value of the parameter management entity;
B. informing the actual parameter values modified in the third step (3) to the simulation model in a synchronous mode and an asynchronous mode;
and fourthly, parameter derivation.
2. The method of claim 1, further comprising: the synchronization mode in the third step (4) sequentially comprises that a corresponding simulation model is found through the name of the basic network element to which the actual parameter belongs, and the parameter modification processing interface is called; reading the modified actual parameter value; resetting the simulation state of the simulation model according to the modified actual parameter value; and processing subsequent simulation according to the new model simulation state.
3. The method of claim 1, further comprising: the asynchronous mode in the third step (4) sequentially comprises the steps of determining actual parameter values to be read according to the operation of a simulation program; calling a parameter query interface of the simulation kernel, and providing a name of a basic network element and a name of an actual parameter to be queried; reading an actual parameter value according to the name of the basic network element and the name of the actual parameter; updating the current simulation state; and processing subsequent simulation events.
4. The method of claim 1, further comprising: the GUI configuration of the first step (2) comprises the steps of constructing required networks and equipment by utilizing a GUI, wherein the networks and the equipment are composed of basic network elements, and each basic network element corresponds to one entity in the GUI; and selecting actual parameters of basic network elements needing to be configured on the GUI for setting.
5. The method of claim 1, further comprising: the fourth step comprises optimizing the parameter configuration used in the simulation; circularly simulating and verifying; parameter configurations used in the simulation are derived.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010050653.2A CN106508103B (en) | 2010-11-01 | 2010-11-01 | A kind of dynamic control method of communication network simulation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010050653.2A CN106508103B (en) | 2010-11-01 | 2010-11-01 | A kind of dynamic control method of communication network simulation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106508103B true CN106508103B (en) | 2014-07-23 |
Family
ID=58359189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010050653.2A Expired - Fee Related CN106508103B (en) | 2010-11-01 | 2010-11-01 | A kind of dynamic control method of communication network simulation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106508103B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113315647A (en) * | 2020-09-14 | 2021-08-27 | 阿里巴巴集团控股有限公司 | Network simulation method and device |
CN113904946A (en) * | 2021-10-20 | 2022-01-07 | 中国人民解放军海军航空大学岸防兵学院 | Communication simulation interrupt control method and system |
-
2010
- 2010-11-01 CN CN201010050653.2A patent/CN106508103B/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113315647A (en) * | 2020-09-14 | 2021-08-27 | 阿里巴巴集团控股有限公司 | Network simulation method and device |
CN113904946A (en) * | 2021-10-20 | 2022-01-07 | 中国人民解放军海军航空大学岸防兵学院 | Communication simulation interrupt control method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105045970B (en) | Analogue system and its implementation based on Unity dynamic generation three-dimensional scenic | |
CN105006017B (en) | Three-dimensional scenic emulation mode is generated based on Unity dynamic techniques | |
CN104954166A (en) | Hardware based network simulation system and method | |
CN106168993B (en) | Real-time simulation analysis system for power grid | |
CN111934908A (en) | Internet of things simulation method, device and system and storage medium | |
CN111555915A (en) | Dynamic network element control system based on plug-in configuration | |
CN111522727A (en) | Simulation object test method, device and system | |
CN111949365A (en) | Off-line simulation method and computer storage medium | |
CN109828840A (en) | Resource method of combination, device, storage medium and electronic equipment | |
CN115114219A (en) | PCI-E topological method, device, equipment and storage medium | |
CN106508103B (en) | A kind of dynamic control method of communication network simulation | |
CN114564882A (en) | Construction and application of edge deep learning simulator based on discrete events | |
CN108737134A (en) | A kind of analogue web element testing method and device | |
CN111901155B (en) | Internet of things debugging method, device and system and storage medium | |
CN110297756B (en) | Intelligent test system based on logic simulation model | |
CN104917633A (en) | Method and device simulating FOTA upgrade | |
CN115622899A (en) | Multi-mode intelligent network simulator architecture and simulation test method | |
CN106155722A (en) | A kind of software method for updating pages and terminal | |
CN113779806B (en) | Electric power stability control simulation model construction method, device and simulation system | |
CN104504000A (en) | Remote transmission method, device and system for mirror image file | |
KR20130044700A (en) | Simulator system for power plant | |
CN113904946A (en) | Communication simulation interrupt control method and system | |
CN107015787A (en) | A kind of method and device of interactive application Frame Design | |
CN108614447B (en) | Joint simulation method, device, equipment and storage medium for wind turbine generator | |
CN108829050B (en) | Heterogeneous DCS (distributed control System) simulation system for multiple power stations and construction method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR03 | Grant of secret patent right | ||
GRSP | Grant of secret patent right | ||
DC01 | Secret patent status has been lifted | ||
DCSP | Declassification of secret patent | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140723 Termination date: 20171101 |
|
CF01 | Termination of patent right due to non-payment of annual fee |