Simulation method and system based on virtualized resources, medium and processor
Through the hybrid simulation technology of virtualized resources, the unified management of virtual and real resources and the rapid construction of network topology are realized, which solves the problems of excessive hardware resource requirements and operating system simulation distortion in traditional simulation technology, and realizes the rapid construction and expansion of complex simulation scenarios. .
Patent Information
- Application Number
- CN202410684835.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-30
AI Technical Summary
Traditional single-type virtualization resources cannot meet the needs of complex simulation scenarios, resulting in excessive hardware resource requirements and inability to support a full range of operating system simulations, making it difficult to build simulation scenarios.
Using hybrid simulation technology based on virtualized resources, through real-to-virtual mapping, unified abstraction and SDN simulation, unified management of virtual and real resources and rapid construction of network topology are achieved, and the access and expansion of multiple simulation resources are supported.
It solves the problems of excessive hardware resource requirements and operating system simulation distortion, realizes the rapid construction and expansion of target simulation scenarios, and meets the needs of complex business simulation scenarios.
Smart Images

Figure CN118567786A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual simulation technology, and in particular to a simulation method, system, medium and processor based on virtualized resources. Background Art
[0002] Internationally, the United States and European countries have developed many advanced virtualization technologies to create realistic virtual environments. Many universities, research institutes and enterprises are developing virtualization technology security training platforms to cultivate the skills of network security professionals. Other countries also use virtualization technology-based attack and defense training platforms for military purposes to train military network experts to conduct network warfare and network reconnaissance.
[0003] At present, the main domestic research is in Chinese universities and research institutions, which are actively involved in the development of attack and defense training platforms based on virtualization technology. Some domestic network security companies are also developing attack and defense training platforms based on virtualization technology to meet the needs of enterprises and organizations for network security training. These platforms usually provide customized training programs to help enterprise employees improve their network security awareness and skills.
[0004] As the current network scale continues to expand and the complexity of network equipment increases, the business scenarios that need to be simulated are becoming more and more complex. A single type of virtualized resources can no longer meet the needs of building simulation scenarios. When the simulation scenario is too complex, the problem of high hardware resource requirements of traditional full virtualization node simulation technology becomes prominent; lightweight virtualization node simulation technology cannot support the simulation of a full range of operating systems, and there is a certain degree of environmental distortion. It is also unable to complete some simulations that require simulation devices to implement, and simulation needs to be achieved by connecting to physical devices. Therefore, traditional simulation technology cannot quickly build complex business simulation scenarios.
[0005] In view of this, a simulation method, system, medium and processor based on virtualized resources are needed. Summary of the invention
[0006] In view of the problem that complex business simulation scenarios cannot be quickly constructed in the prior art, the present invention provides a simulation method, system, medium and processor based on virtualized resources. By using a hybrid simulation technology that uniformly virtualizes and manages virtual and real resources, it can solve the problem of excessive hardware resource requirements caused by a single simulation resource or distortion caused by the inability to support the simulation of a full range of operating systems. It is also convenient for the expansion of various business simulation scenarios and can achieve rapid construction and expansion of target simulation scenarios. The specific technical solution is as follows:
[0007] A simulation method based on virtualized resources specifically comprises the following steps:
[0008] Through real-to-virtual mapping technology, physical devices are mapped into programmable simulation resources without any difference;
[0009] Unify and abstract virtual-reality simulation resources to form standardized definitions and descriptions, so that all simulation resources can be managed in a unified manner;
[0010] Develop corresponding drivers for each simulation resource, and drive each simulation resource to perform actions by calling the driver;
[0011] Through SDN, the simulation of the other six layers of OSI seven-layer protocols except the physical layer is completed to achieve the rapid construction and expansion of the network topology connecting various simulation resources, so as to flexibly meet the construction of network topology in network simulation scenarios;
[0012] Simulate and model the network information, protocol traffic, behavior data, physical equipment, and personnel behavior in real scenarios, and draw the simulation scenario topology in a graphical drag-and-drop manner to achieve complete virtualization of real business scenarios;
[0013] Hybrid simulation technology, which unifies virtual and real resources for virtualization management, can solve the problems of excessive hardware resource requirements caused by a single simulation resource or distortion caused by the inability to support the simulation of a full range of operating systems. It also facilitates the expansion of various business simulation scenarios and can achieve rapid construction and expansion of target simulation scenarios.
[0014] Furthermore, the driver development specification needs to be followed when developing the corresponding driver.
[0015] Furthermore, the specification stipulates that the driver must provide type information, state machine model, node data structure and specific action implementation interface.
[0016] Furthermore, the method further comprises the following steps:
[0017] The simulation scene topology is saved as a template to facilitate subsequent repeated calls, or the templates can be combined and connected to form a new simulation scene topology.
[0018] Furthermore, the simulation resources include virtual terminals, virtual network devices, virtual security devices and physical access devices.
[0019] Furthermore, the method further comprises the following steps:
[0020] Monitor and manage each simulation resource in real time, and perform load balancing when allocating virtual machines based on the resource occupancy of each simulation resource.
[0021] Furthermore, the following steps are included: supporting characteristic simulation of scene links, supporting the selection of links between simulation resources when drawing topology, and realizing simulation configuration of optical fiber and twisted pair types or configuring custom parameters.
[0022] A simulation system based on virtualized resources, applied to the method as described above, comprises:
[0023] A mapping module, which is used to map physical devices into configurable simulation resources without any difference through real-to-virtual mapping technology;
[0024] The management module is used to uniformly abstract virtual and real simulation resources and form standardized definitions and descriptions, so that various simulation resources can be uniformly managed;
[0025] A driver module is used to develop corresponding drivers for each simulation resource and drive each simulation resource to perform actions by calling the driver mode;
[0026] The network topology module is used to complete the simulation of the other six layers of OSI seven-layer protocols except the physical layer through SDN, so as to realize the rapid construction and expansion of the network topology connecting various simulation resources, so as to flexibly meet the construction of network topology of network simulation scenarios;
[0027] The scenario construction module is used to simulate and model the network information, protocol traffic, behavior data, physical devices, and personnel behavior in real scenarios, and draw the simulation scenario topology in a graphical drag-and-drop manner to achieve complete virtualization of real business scenarios;
[0028] Hybrid simulation technology, which unifies virtual and real resources for virtualization management, can solve the problems of excessive hardware resource requirements caused by a single simulation resource or distortion caused by the inability to support the simulation of a full range of operating systems. It also facilitates the expansion of various business simulation scenarios and can achieve rapid construction and expansion of target simulation scenarios.
[0029] A computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned simulation method based on virtualized resources.
[0030] A processor is used to run a program, wherein the program executes the above-mentioned simulation method based on virtualized resources when running.
[0031] Compared with the prior art, the present invention has the following beneficial effects:
[0032] 1. It can solve the problem of excessive hardware resource requirements or inability to support a full range of operating system simulation and environmental distortion caused by a single simulation resource, and can meet the needs of building a training target environment.
[0033] 2. This method is used to achieve hybrid construction of simulation resources, and more types of simulation resources can be connected for construction support by adding drivers. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0035] Figure 1 The present invention is a flow chart of a simulation method based on virtualized resources. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0038] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0039] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0040] Embodiment 1
[0041] like Figure 1 The figure shows a flow chart of a simulation method based on virtualized resources, which specifically includes the following steps:
[0042] Through real-to-virtual mapping technology, physical devices are mapped into programmable simulation resources without any difference;
[0043] Unify and abstract virtual-reality simulation resources to form standardized definitions and descriptions, so that all simulation resources can be managed in a unified manner;
[0044] Develop corresponding drivers for each simulation resource, and drive each simulation resource to perform actions by calling the driver;
[0045] Through SDN, the simulation of the other six layers of OSI seven-layer protocols except the physical layer is completed to achieve the rapid construction and expansion of the network topology connecting various simulation resources, so as to flexibly meet the construction of network topology in network simulation scenarios;
[0046] Simulate and model the network information, protocol traffic, behavior data, physical equipment, and personnel behavior in real scenarios, encapsulate each simulation resource into a graph, and draw the simulation scenario topology in a graphical drag-and-drop manner to achieve complete virtualization of real business scenarios;
[0047] Hybrid simulation technology, which unifies virtual and real resources for virtualization management, can solve the problems of excessive hardware resource requirements caused by a single simulation resource or distortion caused by the inability to support the simulation of a full range of operating systems. It also facilitates the expansion of various business simulation scenarios and can achieve rapid construction and expansion of target simulation scenarios.
[0048] The encapsulation of each simulation resource into a graphic form to support the graphical drag-and-drop method for drawing the simulation scene topology can realize the transparent interaction of protocol data between virtual and real simulation nodes; at the same time, it supports searching for specific simulation nodes by name retrieval and dragging them for use, and supports the configuration of the properties of the simulation nodes and links in the topology.
[0049] The core technology of hybrid construction of virtual and real resources is to solve the problem of unified management and construction of virtual and real resources. In this regard, since there are obvious differences in the operations supported by virtual and real resources and the parameter requirements corresponding to the same operations, in order to integrate the operations of virtual and real resources into the same framework system, the driver design mode is adopted in the overall architecture design, and the driver is used to solve the problem of heterogeneous differences, while keeping the overall upper framework (scene construction layer, control layer) consistent. This method realizes hybrid construction of heterogeneous simulation nodes composed of virtual and real resources, and by adding drivers, more types of virtual and real resources can be connected to expand the simulation scene.
[0050] In the specific implementation, the driver development specification must be followed when developing the corresponding driver. Further, the specification stipulates that the driver must provide type information, state machine model, node data structure and specific action implementation interface.
[0051] In the specific implementation, each simulation resource includes a virtual terminal, a virtual network device, a virtual security device, and a physical access device. Specifically, the virtual terminal type includes two categories: windows and linux, including windows7, windows10, windows xp, windows server 2003, windows server 2008, windows server 2012, windows server 2016, centos6, centos7, ubuntu12, ubuntu14, ubuntu16, ubuntu18, Debain8, Kali2.0, Kali2017 and other operating system types. The virtual network device type includes switches, routers, etc. The virtual security device type includes log auditing, database auditing, APT, host security, WAF, bastion host, firewall, etc. The physical access device type, as a physical device, includes computing terminals, routers, switches, security protection devices and other types. The physical device of the access platform can realize the ability of physical and virtual simulation node network interconnection with the virtual device through dragging and dropping, and can realize transparent interaction of protocol data between virtual and real nodes. The scenario construction layer supports the registration and deletion of physical devices, can set the access mode of physical devices, supports the access of physical devices through single device access and network access, and can provide network option configuration according to the access mode, supports L2 access and L3 access, L2 mode access does not limit the VLAN used by the physical device itself, and L3 mode supports NAT access and router access. The physical device access scenario adopts an exclusive form, that is, a single physical device is limited to be referenced by the same set of scenarios at the same time. The switch supports subnet division, DHCP, VLAN division, VLAN trunk, ACL configuration and other related settings, and supports three-layer switching function, which can realize intercommunication across VLANs and subnets, and supports port mirroring, which can mirror the traffic of the entire switch to a specific switch port; the router supports static routing table, dynamic routing protocol configuration, NAT address mapping configuration; the virtual firewall supports rule control based on protocol type, IP, TCP port, and UDP port.
[0052] In a specific implementation, the simulation method also includes the following steps: simulating the characteristics of the scene link support, supporting the selection of links between simulation resources when drawing the topology, realizing the simulation configuration of optical fiber and twisted pair types or configuring custom parameters, and supporting the configuration of bandwidth, packet loss rate, delay and other characteristics; being able to provide high-performance link characteristics, and the maximum link bandwidth under the node is not less than 1Gbps.
[0053] In a specific implementation, the simulation method further includes the following steps: saving the simulation scene topology as a template for subsequent repeated calls, or combining and connecting the templates to form a new simulation scene topology to achieve rapid construction of complex scenes.
[0054] In a specific implementation, the simulation method further includes the following steps:
[0055] Monitor and manage each simulation resource in real time, and perform load balancing when allocating virtual machines based on the resource occupancy of each simulation resource. Further, the following monitoring and management steps are specifically included:
[0056] Monitor and manage computing resources. Monitor and manage each server that provides computing resources in real time. Collect information such as the CPU and memory status of the server, the status of each virtual machine running on it, and the status of the scene instantiation agent. Unified scheduling and evaluation of each computing resource. Computing resource management can control the shutdown, restart, and expansion of computing nodes, monitor the resource usage of computing nodes, and perform load balancing when allocating virtual machines based on the resource usage of each node.
[0057] Monitor and manage network resources, manage and monitor various virtual switches, routers, firewalls and other network resources in the entire virtualized cloud environment. Manage physical and virtual networks to implement traffic monitoring, traffic load, network isolation and other functions. Manage the network status and isolation between each scenario.
[0058] Storage resource monitoring and management: real-time monitoring and management of each server node that provides storage resources, and collection of server disk usage and buffer usage. Storage resource cluster management monitors the growth of shared storage disk capacity, current file storage, etc., and verifies the health of each server node that makes up the shared storage. At the same time, load balancing is performed when allocating virtual machine storage based on the resource usage of each node.
[0059] Monitor and manage virtual machine resources, and monitor and manage KVM virtual machine resources and container-type virtual resources in the cloud system. Provide general management functions for virtual resources, including creation, deletion, viewing, restart, and shutdown; conduct statistics and monitoring on the CPU usage, memory status, and traffic generation of virtual machines; and have the ability to snapshot and migrate virtual resources, including creating snapshots, restoring snapshots, online migration, offline migration, etc.
[0060] Monitor and manage virtual images, and provide centralized management services for RAW images, QCOW2 images, and container image resources, to implement functions such as image registration, image format conversion, image migration, image export, and virtual machine image generation.
[0061] For VPC resource monitoring and management, subnet technology is used to support virtual network isolation, providing security for virtual machines located in different subnets. VPC resource management includes subnet pool maintenance, subnet resource scheduling and allocation, subnet resource monitoring, and subnet resource early warning.
[0062] It provides cloud control monitoring and management, monitoring and configuration capabilities for various system resources (CPU inventory, memory inventory, primary storage inventory, secondary storage inventory, virtual machine inventory, container inventory, VLAN inventory, and IP inventory, etc.), as well as solution-level batch management of computing resources and storage resources, and can display and control system background tasks.
[0063] Embodiment 2
[0064] A simulation system based on virtualized resources, applied to the method as described above, comprises:
[0065] A mapping module, which is used to map physical devices into configurable simulation resources without any difference through real-to-virtual mapping technology;
[0066] The management module is used to uniformly abstract virtual and real simulation resources and form standardized definitions and descriptions, so that various simulation resources can be uniformly managed;
[0067] A driver module is used to develop corresponding drivers for each simulation resource and drive each simulation resource to perform actions by calling the driver mode;
[0068] The network topology module is used to complete the simulation of the other six layers of OSI seven-layer protocols except the physical layer through SDN, so as to realize the rapid construction and expansion of the network topology connecting various simulation resources, so as to flexibly meet the construction of network topology of network simulation scenarios;
[0069] The scenario construction module is used to simulate and model the network information, protocol traffic, behavior data, physical devices, and personnel behavior in real scenarios, and draw the simulation scenario topology in a graphical drag-and-drop manner to achieve complete virtualization of real business scenarios;
[0070] Hybrid simulation technology, which unifies virtual and real resources for virtualization management, can solve the problems of excessive hardware resource requirements caused by a single simulation resource or distortion caused by the inability to support the simulation of a full range of operating systems. It also facilitates the expansion of various business simulation scenarios and can achieve rapid construction and expansion of target simulation scenarios.
[0071] Embodiment 3
[0072] A computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned simulation method based on virtualized resources.
[0073] Embodiment 4
[0074] A processor is used to run a program, wherein the program executes the above-mentioned simulation method based on virtualized resources when running.
[0075] The present application provides a simulation method based on virtualized resources, which specifically includes the following steps: mapping physical devices into choreographed simulation resources without difference through real-to-virtual mapping technology; abstracting virtual and real simulation resources in a unified manner to form standardized definitions and descriptions, so that each simulation resource is managed in a unified manner; developing corresponding drivers for each simulation resource, and driving each simulation resource to execute actions by calling the driver; completing the simulation of the other 6 layers of OSI seven-layer protocol except the physical layer through SDN, so as to realize the rapid construction and expansion of the network topology connecting each simulation resource, so as to flexibly meet the construction of the network topology of the network simulation scenario; simulating and modeling the network information, protocol traffic, behavior data, physical equipment, and personnel behavior in the real scene, encapsulating each simulation resource into a graphic to draw the simulation scene topology in a graphical drag-and-drop manner, and realizing the complete virtualization of the real business scene; by using the hybrid simulation technology for unified virtualization management of virtual and real resources, the problem of excessive hardware resource demand caused by a single simulation resource or distortion caused by the inability to support the simulation of a full range of operating systems can be solved, and it is also convenient for the expansion of various business simulation scenarios, and can realize the rapid construction and expansion of the target simulation scenario.
[0076] Those of ordinary skill in the art will appreciate that the units of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition of each example has been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0077] In the embodiments provided by the present invention, it should be understood that the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units can be combined into one unit, one unit can be split into multiple units, or some features can be ignored, etc.
[0078] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0079] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-0nlyMemory), random access memory (RAM, RandomAccessMemory), mobile hard disk, magnetic disk or optical disk, etc., which can store program code.
[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.
Claims
1. A simulation method based on virtualized resources, characterized in that: The specific steps include: Through real-to-virtual mapping technology, physical devices are mapped into programmable simulation resources without any difference; Unify and abstract virtual-reality simulation resources to form standardized definitions and descriptions, so that all simulation resources can be managed in a unified manner; Develop corresponding drivers for each simulation resource, and drive each simulation resource to perform actions by calling the driver; Through SDN, the simulation of the other six layers of OSI seven-layer protocols except the physical layer is completed to achieve the rapid construction and expansion of the network topology connecting various simulation resources, so as to flexibly meet the construction of network topology in network simulation scenarios; Simulate and model the network information, protocol traffic, behavior data, physical equipment, and personnel behavior in real scenarios, and draw the simulation scenario topology in a graphical drag-and-drop manner to achieve complete virtualization of real business scenarios; Hybrid simulation technology, which unifies virtual and real resources for virtualization management, can solve the problems of excessive hardware resource requirements caused by a single simulation resource or distortion caused by the inability to support the simulation of a full range of operating systems. It also facilitates the expansion of various business simulation scenarios and can achieve rapid construction and expansion of target simulation scenarios.
2. The simulation method based on virtualized resources according to claim 1, characterized in that: When developing the corresponding driver, the driver development specification needs to be followed.
3. The simulation method based on virtualized resources according to claim 2, characterized in that: The specification stipulates that the driver must provide type information, state machine model, node data structure and specific action implementation interface.
4. The simulation method based on virtualized resources according to claim 1, characterized in that: The following steps are also included: The simulation scene topology is saved as a template to facilitate subsequent repeated calls, or the templates can be combined and connected to form a new simulation scene topology.
5. The simulation method based on virtualized resources according to claim 1, characterized in that: The simulation resources include virtual terminals, virtual network devices, virtual security devices and physical access devices.
6. The simulation method based on virtualized resources according to claim 1, characterized in that: The following steps are also included: Monitor and manage each simulation resource in real time, and perform load balancing when allocating virtual machines based on the resource occupancy of each simulation resource.
7. The simulation method based on virtualized resources according to claim 1, characterized in that: The following steps are also included: It supports feature simulation for scene links, supports selecting links between simulation resources when drawing topology, and implements simulation configuration of optical fiber and twisted pair types or configuration with custom parameters.
8. A simulation system based on virtualized resources, characterized in that: The method applied to any one of claims 1 to 7, comprising: A mapping module, which is used to map physical devices into configurable simulation resources without any difference through real-to-virtual mapping technology; The management module is used to uniformly abstract virtual and real simulation resources and form standardized definitions and descriptions, so that various simulation resources can be uniformly managed; A driver module is used to develop corresponding drivers for each simulation resource and drive each simulation resource to perform actions by calling the driver mode; The network topology module is used to complete the simulation of the other six layers of OSI seven-layer protocols except the physical layer through SDN, so as to realize the rapid construction and expansion of the network topology connecting various simulation resources, so as to flexibly meet the construction of network topology of network simulation scenarios; The scenario construction module is used to simulate and model the network information, protocol traffic, behavior data, physical devices, and personnel behavior in real scenarios, and draw the simulation scenario topology in a graphical drag-and-drop manner to achieve complete virtualization of real business scenarios; Hybrid simulation technology, which unifies virtual and real resources for virtualization management, can solve the problems of excessive hardware resource requirements caused by a single simulation resource or distortion caused by the inability to support the simulation of a full range of operating systems. It also facilitates the expansion of various business simulation scenarios and can achieve rapid construction and expansion of target simulation scenarios.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the simulation method based on virtualized resources according to any one of claims 1 to 7.
10. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the simulation method based on virtualized resources as described in any one of claims 1 to 7.
