CN106878095B - Network configuration method based on scenario distributed simulation - Google Patents

Network configuration method based on scenario distributed simulation Download PDF

Info

Publication number
CN106878095B
CN106878095B CN201710291005.8A CN201710291005A CN106878095B CN 106878095 B CN106878095 B CN 106878095B CN 201710291005 A CN201710291005 A CN 201710291005A CN 106878095 B CN106878095 B CN 106878095B
Authority
CN
China
Prior art keywords
network
host
entities
address
information
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
CN201710291005.8A
Other languages
Chinese (zh)
Other versions
CN106878095A (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.)
Beijing Simulation Center
Original Assignee
Beijing Simulation Center
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 Beijing Simulation Center filed Critical Beijing Simulation Center
Priority to CN201710291005.8A priority Critical patent/CN106878095B/en
Publication of CN106878095A publication Critical patent/CN106878095A/en
Application granted granted Critical
Publication of CN106878095B publication Critical patent/CN106878095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Abstract

The invention discloses a network configuration method based on thought distributed simulation, which comprises the following steps: s1: setting through XML file description; s2: inputting network physical topological structure information of a planned simulation system; s3: the invention describes the scenario through XML, and then plans the network logic topological structure according to the simulation system network physical topological structure information, so as to obtain the configuration information of the simulation system host and the network equipment, thereby efficiently, accurately and automatically completing the network configuration.

Description

Network configuration method based on scenario distributed simulation
Technical Field
The invention relates to the field of a network configuration method of a distributed simulation system. And more particularly, to a network configuration method and system based on a deliberate distributed simulation.
Background
With the increasing scale and the increasing number of entities of the distributed simulation test, the military troops involved in the simulation become more and more complex, and the number of hardware devices required by the test increases, so that the workload of the test network management is increased continuously. The configuration work of the traditional distributed simulation test network is manually completed by a network administrator. When network configuration is needed, firstly, a network logic topological structure is planned according to test requirements of a planned file, corresponding nodes of a test participating model are planned, and then a network administrator logs in network equipment such as a router and a switch and a test participating host comprising an operating system one by one. The traditional manual configuration method has three significant defects, one is that the simulation needs a large amount of sample data, and military plans to change continuously, so that the network structure changes continuously, one-time simulation test often comprises hundreds of different network logic topological structures, the manual configuration frequency is high, and the efficiency is low; secondly, the large-scale distributed simulation test involves numerous network devices and hosts, numerous nodes to be configured and extremely large workload; thirdly, for a large amount of configuration work, errors easily occur in the traditional manual configuration method, and the introduced recessive errors can cause errors in the simulation result, so that repeated error checking and correction are needed, a large amount of time is consumed, and the efficiency is further reduced.
Therefore, it is necessary to provide a network automatic configuration mechanism for a military scenario distributed simulation system, so as to achieve fast, efficient, and accurate automatic completion of network configuration.
Disclosure of Invention
The invention aims to provide a network configuration method based on the planned distributed simulation, and the invention also aims to provide a network configuration system based on the planned distributed simulation, so as to provide a network automatic configuration method and system aiming at the planned distributed simulation, rapidly, efficiently and accurately complete network configuration and realize automation of network configuration.
In order to achieve the purpose, the invention adopts the following technical scheme:
the invention discloses a network configuration method based on the thought distributed simulation, which is characterized by comprising the following steps:
s1: setting through XML file description;
s2: inputting network physical topological structure information of a planned simulation system;
s3: and planning a network logic topological structure according to the XML file and carrying out network configuration.
Preferably, the XML file is used to describe the plurality of entities and the composition relationship between the entities.
Preferably, the composition relationship among the entities is a tree structure;
in any two layers of entities of the tree structure, each parent entity of the upper layer comprises a plurality of sub-entities of the lower layer, and the entities without sub-entities are leaf entities.
Preferably, the S3 includes:
s31: each planned leaf entity corresponds to one host in the planned simulation system;
s32: dividing hosts corresponding to all leaf entities with the same parent entity into the same virtual local area network, and allocating IP addresses to the virtual local area network;
s33: allocating an IP address and a subnet mask for a host corresponding to each leaf entity, wherein the IP address of a virtual local area network to which the host belongs is a default gateway address of the host;
s34: and performing network configuration on each host and network equipment in the planned simulation system.
Preferably, the S34 includes:
s341: configuring an IP address, a subnet mask and a default gateway address for each host;
s342: appointing a virtual local area network for a switch and a router in the imagination simulation system, configuring an IP address of the virtual local area network and setting an SNMP port address.
Preferably, the network physical topology structure information includes switch information, router information, host configuration information and device connection information;
the switch information and the router information comprise equipment models, management IP addresses, SNMP community names, SNMP ports and SNMP versions;
the host configuration information comprises an IP address and a host name;
the device connection information includes a specific network port to which the device is connected.
The invention also discloses a network configuration system based on the imagination distributed simulation, which is characterized by comprising the following components: the system comprises a main control module and a sub-control module;
the main control module is used for describing and planning through an XML file, inputting network physical topological structure information of a planned simulation system, planning a network logical topological structure according to the XML file, obtaining network configuration information of each host and network equipment in the planned simulation system, transmitting the network configuration information of each host to the sub-control module, and performing network configuration of the network equipment in the system;
and the sub-control module is used for receiving the network configuration information of each host and carrying out network configuration on each host.
Preferably, the network configuration information of each host is an IP address, a subnet mask and a default gateway address of each host;
the network configuration information of the network equipment is the virtual local area network, the virtual local area network IP address and the SNMP port address of the switch and the router in the simulation system.
The invention has the following beneficial effects:
the invention describes military scenarios through XML, and plans a network logic topological structure according to the network physical topological structure information of the simulation system, so as to obtain the configuration information of the host and the network equipment of the simulation system, and each sub-control module can receive the network configuration instruction of the main control module through the configuration forms of the main control module and the sub-control modules, so as to respectively perform network configuration on the host in the simulation system, thereby realizing the efficient, accurate and automatic completion of the network configuration.
Drawings
The following describes embodiments of the present invention in further detail with reference to the accompanying drawings.
Fig. 1 shows a flow chart of a network configuration method based on scenario distributed simulation.
Fig. 2 shows a schematic diagram of a network configuration system based on a notional distributed simulation.
Detailed Description
In order to more clearly illustrate the invention, the invention is further described below with reference to preferred embodiments and the accompanying drawings. Similar parts in the figures are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and is not to be taken as limiting the scope of the invention.
As shown in fig. 1, the present invention discloses a network configuration method based on scenario distributed simulation, the method includes:
s1: the scenario is described by an extensible markup language (XML) file. The XML file may be used to describe the plurality of entities and the constituent relationships between the entities. The entity that is thought of is the entity that participates in the emulation, and its relation can be expressed by adopting the tree structure, arbitrary two-layer entity in the tree structure, the entity of upper strata is father entity, and every father entity includes the sub-entity of a plurality of lower floors, and when the sub-entity of lower floor exists the sub-entity of next floor, this sub-entity is the father entity of its next floor, and when certain entity does not exist the sub-entity of next floor, this entity is the leaf entity.
S2: and inputting the network physical topological structure information of the planned simulation system. The related information of the network device in the network physical topological structure information simulation system can comprise switch information, router information, host configuration information and device connection information. Wherein the switch information and the router information may include a device model number, a management IP address, a Simple Network Management Protocol (SNMP) community name, an SNMP port, and an SNMP version, the host configuration information may include a host IP address and a host name, and the device connection information includes a specific network port to which the device is connected.
S3: and planning a network logic topological structure according to the XML file and carrying out network configuration. Specifically, S3 may include:
s31: each planned leaf entity corresponds to one host in the planned simulation system, so that the simulation system can be planned according to the relation between the entities and the entities described in the XML.
S32: and dividing hosts corresponding to all leaf entities with the same parent entity into the same Virtual Local Area Network (VLAN), allocating a unique VLAN ID and allocating an IP address for the VLAN.
S33: and allocating an IP address and a subnet mask to a host corresponding to each leaf entity, wherein the IP address of the VLAN to which the host belongs is the default gateway address of the host. Thus, the IP addresses of the hosts corresponding to all the leaf entities and the IP addresses of the VLANs of the parent entities can be obtained.
S34: and configuring each host and network equipment in the planned simulation system to complete network configuration. Firstly, configuring an IP address, a subnet mask code and a default gateway address for each host, restarting the simulation system to enable the setting to be effective, then, appointing a VLAN for a switch and a router in the planned simulation system, configuring the VLAN IP address and setting an SNMP port address, restarting the host to complete the configuration to be effective, and completing the network configuration.
As shown in fig. 2, the present invention also discloses a network configuration system based on the scenario distributed simulation, wherein the system comprises a main control module and a sub-control module.
The main control module is used for describing and setting by an XML file, and the XML file can be used for describing the plurality of entities and the composition relation among the entities. The entity that is thought of is the entity that participates in the emulation, and its relation can be expressed by adopting the tree structure, arbitrary two-layer entity in the tree structure, the entity of upper strata is father entity, and every father entity includes the sub-entity of a plurality of lower floors, and when the sub-entity of lower floor exists the sub-entity of next floor, this sub-entity is the father entity of its next floor, and when certain entity does not exist the sub-entity of next floor, this entity is the leaf entity.
Further, the main control module is used for inputting the network physical topological structure information of the planned simulation system. The related information of the network device in the network physical topological structure information simulation system can comprise switch information, router information, host configuration information and device connection information. The switch information and the router information may include a device model, a management IP address, an SNMP community name, an SNMP port, and an SNMP version, the host configuration information may include a host IP address and a host name, and the device connection information may include a specific network port to which the device is connected.
Further, the main control module is configured to plan a network logic topology structure according to the XML file, obtain network configuration information of each host and the network device in the planned simulation system, transmit the network configuration information of each host to the sub-control module, and perform network configuration of the network device in the system after the sub-control module performs network configuration on each host, thereby completing network configuration. Specifically, the main control module may be configured to assign each of the intended leaf entities to one host in the intended simulation system, so that simulation system planning may be performed according to the relationship between the entities described in the XML, the hosts corresponding to all the same leaf entities as the parent entity are divided into the same VLAN, a unique VLAN ID is assigned and an IP address is assigned to the VLAN, an IP address and a subnet mask are assigned to the host corresponding to each leaf entity, and the IP address of the VLAN to which the host belongs is the default gateway address. Thus, the IP addresses of the hosts corresponding to all the leaf entities and the IP addresses of the VLANs of the parent entities can be obtained. The method can be further used for configuring each host and network equipment in the simulation system to complete network configuration. Firstly, the main control module can obtain the IP address, subnet mask and default gateway address of each host configuration according to the network physical topological structure information, and sends the IP address, subnet mask and default gateway address as the host configuration information in the network configuration information to the branch control module, the branch control module automatically completes the network configuration of each host and executes the host restart to enable the setting to be effective, then the main control module can sequentially configure the switch and the router in the designed simulation system and generate the network equipment configuration command according to the network physical topological structure information, the command comprises dividing the equipment port to the appointed VLAN, setting the VLAN address and setting the port address, etc., the main control module can send the SNMP message to the network equipment to execute the command, appoint the VLAN for the switch and the router, configure the virtual local area network IP address and set the SNMP port address, and can restart the host to complete the configuration to be effective, the network configuration can be completed.
The sub-control module is used for receiving the network configuration information of each host, performing network configuration on each host, configuring an IP address, a subnet mask and a default gateway address, and then restarting the host to enable the configuration to be effective.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention, and it will be obvious to those skilled in the art that other variations or modifications may be made on the basis of the above description, and all embodiments may not be exhaustive, and all obvious variations or modifications may be included within the scope of the present invention.

Claims (3)

1. A network configuration method based on scenario distributed simulation is characterized in that the network configuration method comprises the following steps:
s1: setting through XML file description; the XML file is used for describing the plurality of the entities and the composition relation among the entities, wherein the composition relation among the entities is a tree structure;
in any two layers of entities of the tree structure, each father entity of the upper layer comprises a plurality of sub-entities of the lower layer, and the entities without sub-entities are leaf entities;
s2: inputting network physical topological structure information of a planned simulation system;
s3: planning a network logic topological structure according to the XML file and carrying out network configuration;
the S3 includes:
s31: each planned leaf entity corresponds to one host in the planned simulation system;
s32: dividing hosts corresponding to all leaf entities with the same parent entity into the same virtual local area network, and allocating IP addresses to the virtual local area network;
s33: allocating an IP address and a subnet mask for a host corresponding to each leaf entity, wherein the IP address of a virtual local area network to which the host belongs is a default gateway address of the host;
s34: and performing network configuration on each host and network equipment in the planned simulation system.
2. The network configuration method according to claim 1, wherein the S34 comprises:
s341: configuring an IP address, a subnet mask and a default gateway address for each host;
s342: appointing a virtual local area network for a switch and a router in the imagination simulation system, configuring an IP address of the virtual local area network and setting an SNMP port address.
3. The network configuration method of claim 1, wherein the network physical topology information includes switch information, router information, host configuration information, and device connection information;
the switch information and the router information comprise equipment models, management IP addresses, SNMP community names, SNMP ports and SNMP versions;
the host configuration information comprises an IP address and a host name;
the device connection information includes a specific network port to which the device is connected.
CN201710291005.8A 2017-04-28 2017-04-28 Network configuration method based on scenario distributed simulation Active CN106878095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710291005.8A CN106878095B (en) 2017-04-28 2017-04-28 Network configuration method based on scenario distributed simulation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710291005.8A CN106878095B (en) 2017-04-28 2017-04-28 Network configuration method based on scenario distributed simulation

Publications (2)

Publication Number Publication Date
CN106878095A CN106878095A (en) 2017-06-20
CN106878095B true CN106878095B (en) 2020-06-02

Family

ID=59161703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710291005.8A Active CN106878095B (en) 2017-04-28 2017-04-28 Network configuration method based on scenario distributed simulation

Country Status (1)

Country Link
CN (1) CN106878095B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113705143B (en) * 2020-05-22 2024-03-26 华为技术有限公司 Automatic simulation system and automatic simulation method
US11456987B1 (en) 2021-05-07 2022-09-27 State Farm Mutual Automobile Insurance Company Systems and methods for automatic internet protocol address management
CN114553874B (en) * 2022-02-28 2023-04-18 北京理工大学 Hybrid simulation cloud platform and automatic deployment method
CN117176694B (en) * 2023-11-03 2024-02-06 烽台科技(北京)有限公司 Network construction method, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1551006A (en) * 2003-03-06 2004-12-01 微软公司 Architecture for distributed computing system and automated design, deployment, and management of distributed applications
CN103279587A (en) * 2013-04-02 2013-09-04 北京航空航天大学 Fighting simulation system based on imaginary description
CN103916378A (en) * 2012-12-28 2014-07-09 中国电信股份有限公司 System and method for automatically deploying application system in cloud resource pool

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130191185A1 (en) * 2012-01-24 2013-07-25 Brian R. Galvin System and method for conducting real-time and historical analysis of complex customer care processes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1551006A (en) * 2003-03-06 2004-12-01 微软公司 Architecture for distributed computing system and automated design, deployment, and management of distributed applications
CN103916378A (en) * 2012-12-28 2014-07-09 中国电信股份有限公司 System and method for automatically deploying application system in cloud resource pool
CN103279587A (en) * 2013-04-02 2013-09-04 北京航空航天大学 Fighting simulation system based on imaginary description

Also Published As

Publication number Publication date
CN106878095A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106878095B (en) Network configuration method based on scenario distributed simulation
US9628339B1 (en) Network testbed creation and validation
CN107135134B (en) Private network cut-in method and system based on virtual switch and SDN technology
TW201840164A (en) Method and system for simulating a network topology with a physical machine
CN110708178B (en) Network deployment method and device
CN105227344B (en) Software defined network simulation system and method based on OpenStack
US10680891B2 (en) Networking visualizations that update data model and deploy visualization
US20170315522A1 (en) Virtual simulator and building management system including the same
CN104394130B (en) A kind of multi-tenant virtual network partition method
CN110719209B (en) Cluster network configuration method, system, equipment and readable storage medium
CN104683190A (en) Webmaster managed network simulation system and webmaster managed network simulation method
CN112039682A (en) Method for application and practice of software defined data center in operator network
US10206092B1 (en) Automatic discovery
CN104158686A (en) Configuration management method and system
CN113055232B (en) Network configuration deployment method, device and equipment
CN105376101A (en) Method and system for enabling physical device to be connected into virtual network
CN108494607A (en) The design method and system of big double layer network framework based on container
CN105490826A (en) Configuration management system and method based on automatic discovery
US20160380830A1 (en) Method and system for managing multiple devices within a network system
CN103036934A (en) Wide area network clustered deployment system and method based on mirror image
CN102970376A (en) Cluster configuration method and device
DeCusatis et al. Modeling software defined networks using mininet
CN107846304A (en) A kind of automation engine of mixing cloud service architecture centralized management
CN103152756A (en) Automation configuration method for wireless local area network access controller (WLAN AC)
CN111541569A (en) Network node configuration method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant