Virtualized network implementation method, device, electronic device and storage medium

By generating the target format of the to-be-virtualized file outside the network simulation simulator and calling the instance interface, the problem of low efficiency in topology drawing and configuration in the existing technology is solved, and an efficient solution for quickly obtaining the topology map of the network simulation experiment is realized.

CN115794310BActive Publication Date: 2025-09-19BEIJING ANTIY NETWORK SAFETY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211576871.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2025-09-19
Estimated Expiration
2042-12-02

AI Technical Summary

Technical Problem

When conducting multiple network simulation experiments, existing network simulation simulators require a lot of time to draw topology maps and perform manual configuration, which is inefficient.

Method used

The topology drawing and device configuration process is transferred to the outside of the network simulation simulator, the target format of the virtualized file is generated, and the network simulation experiment topology map is generated by calling the instance interface of the target network simulation simulator.

Benefits of technology

There is no need to draw topology maps and manually configure them in the network simulation simulator. Multiple network simulation experiment topology maps can be quickly obtained, which improves the efficiency of network simulation experiments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115794310B_ABST
    Figure CN115794310B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, electronic device and storage medium for realizing a virtualized network, wherein the method comprises: obtaining a file to be virtualized in a target format; the file to be virtualized stores the corresponding field content configured for each device in the network topology diagram to be virtualized; the target format is the corresponding data format when the target network simulation simulator draws and stores the network topology diagram; based on the file to be virtualized, the instance interface of the target network simulation simulator is called, and the network simulation experiment topology diagram generated by the target network simulation simulator using the file to be virtualized is obtained. With this solution, there is no need to perform the topology drawing process and manual configuration process in the network simulation simulator. Even if multiple network simulation experiments need to be carried out, the network simulation experiment topology diagram can be quickly obtained by simply calling the instance interface of the network simulation simulator, thereby improving the efficiency of the network simulation experiment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to a method, device, electronic device, and storage medium for implementing a virtualized network. Background Art

[0002] Currently, network simulation experiments for scenarios like shooting range event drills and attack simulations require the construction of a corresponding computer network. By utilizing virtualization simulation technology, the required computer network can be converted into a corresponding network model, and then the network simulation experiment can be conducted using computer software. Furthermore, virtualization simulation technology can quickly obtain the required parameter information by calculating the relevant network model, thereby improving the simulation efficiency of network simulation experiments.

[0003] However, when conducting a network simulation experiment in existing network simulators, one must first manually draw a network topology diagram within the simulator's interface and manually configure each device in the topology diagram before conducting the network simulation experiment. Switching to another network simulation experiment requires the same topology drawing and manual configuration process. This process is time-consuming and inefficient when conducting multiple network simulation experiments. Summary of the Invention

[0004] The embodiments of the present invention provide a method, device, electronic device and storage medium for realizing a virtualized network, which can improve the efficiency of a network simulation experiment.

[0005] In a first aspect, an embodiment of the present invention provides a method for implementing a virtualized network, including:

[0006] Obtaining a file to be virtualized in a target format; the file to be virtualized stores the corresponding field content configured for each device in the network topology diagram to be virtualized; the target format is the data format corresponding to when the target network simulation simulator draws and stores the network topology diagram;

[0007] An instance interface of the target network simulation simulator is called based on the file to be virtualized, and a network simulation experiment topology diagram generated by the target network simulation simulator using the file to be virtualized is obtained.

[0008] In a possible implementation, the corresponding field content configured for each device in the network topology diagram is configured according to the field information required for virtualization, and the field content at least includes virtual machine information corresponding to the device when virtualized.

[0009] In a possible implementation, the virtual machine information includes: network bridge information, virtual machine template, virtual machine version, virtual machine startup parameters, and virtual image.

[0010] In a possible implementation, the target network simulation simulator generates a network simulation experiment topology diagram using the file to be virtualized, including:

[0011] Determine a virtual image for each device based on the file to be virtualized;

[0012] For each device's virtual image, obtain the device's virtual image from the virtual image library, and virtualize the device using the obtained virtual image and other virtual machine information;

[0013] Based on the other field contents of each device in the to-be-virtualized file, a network simulation experiment topology diagram is generated for each virtualized device.

[0014] In a possible implementation, the method further includes: if the virtual image of the device does not exist in the virtual image library, creating a virtual image of the device and storing it in the virtual image library.

[0015] In a possible implementation, the method further includes:

[0016] The network simulation experiment topology diagram generated by the target network simulation simulator is stored in a local system;

[0017] When it is necessary to switch to a network simulation experiment topology diagram corresponding to another network topology diagram, if the network simulation experiment topology diagram corresponding to the other network topology diagram is stored in the local system, it is directly called from the local system.

[0018] In a possible implementation, the target network simulation simulator is EVE-NG; and the target format is XML format.

[0019] In a second aspect, an embodiment of the present invention further provides a virtualized network implementation device, including:

[0020] A file acquisition unit is configured to acquire a file to be virtualized in a target format; the file to be virtualized stores the corresponding field contents configured for each device in the network topology diagram to be virtualized; the target format is the data format corresponding to when the target network simulation simulator draws and stores the network topology diagram;

[0021] A virtualization unit is used to call the instance interface of the target network simulation simulator based on the file to be virtualized, and obtain the network simulation experiment topology map generated by the target network simulation simulator using the file to be virtualized.

[0022] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in any embodiment of this specification is implemented.

[0023] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the method described in any embodiment of this specification.

[0024] The embodiment of the present invention provides a virtualized network implementation method, device, electronic device and storage medium. By transferring the topology drawing process and the device configuration process from the inside of the target network simulation simulator to the outside, a corresponding file to be virtualized is generated for the desired virtualized network topology. It is only necessary to make the format of the file to be virtualized the same as the data format when the target network simulation simulator draws and stores the network topology. In this way, by calling the instance interface of the target network simulation simulator, the target network simulation simulator can identify and parse the file to be virtualized, and then generate a network simulation experiment topology corresponding to the desired virtualized network topology. It can be seen that in this solution, there is no need to perform the topology drawing process and the manual configuration process in the network simulation simulator. Even if multiple network simulation experiments are required, the network simulation experiment topology can be quickly obtained by calling the instance interface of the network simulation simulator, thereby improving the efficiency of the network simulation experiment. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0026] Figure 1 This is a flow chart of a method for implementing a virtualized network provided by one embodiment of the present invention;

[0027] Figure 2 This is a hardware architecture diagram of an electronic device provided by one embodiment of the present invention;

[0028] Figure 3 This is a structural diagram of a virtualized network implementation device provided by one embodiment of the present invention;

[0029] Figure 4 This is a structural diagram of another virtualized network implementation device provided by an embodiment of the present invention;

[0030] Figure 5This is a structural diagram of another virtualized network implementation device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0032] As mentioned above, the existing network simulation simulator can only conduct a single network simulation experiment at a time. Each time you switch to another network simulation experiment, you need to go through the topology drawing and manual configuration process. If you want to use the network simulation simulator to conduct multiple network simulation experiments, it will take a lot of time and the efficiency is poor.

[0033] Based on this, the inventive concept of the present invention is to transfer the topology drawing and manual configuration process to the outside of the network simulation simulator, draw the topology map in the local system and manually configure each device in the topology map to form a network topology map that can be used for network simulation, and then call the instance interface of the network simulation simulator, and let the network simulation simulator perform a network simulation experiment on the network topology map, and output the network simulation experiment results to the local system. In this way, when multiple network simulation experiments are required, these topology maps can be drawn and configured in advance. When switching between different network simulation experiments, only the instance interface of the network simulation simulator needs to be called to quickly obtain the simulation experiment results, thereby improving the efficiency of network simulation.

[0034] The specific implementation of the above concept is described below.

[0035] Please refer to Figure 1 , an embodiment of the present invention provides a method for implementing a virtualized network, the method comprising:

[0036] Step 100: Obtain a file to be virtualized in a target format; the file to be virtualized stores the corresponding field content configured for each device in the network topology diagram to be virtualized; the target format is the data format corresponding to when the target network simulation simulator draws and stores the network topology diagram;

[0037] Step 102: calling the instance interface of the target network simulation simulator based on the file to be virtualized, and obtaining a network simulation experiment topology map generated by the target network simulation simulator using the file to be virtualized.

[0038] In an embodiment of the present invention, by transferring the topology drawing process and the device configuration process from the inside of the target network simulation simulator to the outside, a corresponding file to be virtualized is generated for the desired virtualized network topology. It is only necessary to make the format of the file to be virtualized the same as the data format when the target network simulation simulator draws and stores the network topology. In this way, by calling the instance interface of the target network simulation simulator, the target network simulation simulator can identify and parse the file to be virtualized, and then generate a network simulation experiment topology corresponding to the desired virtualized network topology. It can be seen that in this solution, there is no need to perform the topology drawing process and the manual configuration process in the network simulation simulator. Even if multiple network simulation experiments are required, the network simulation experiment topology can be quickly obtained by calling the instance interface of the network simulation simulator, thereby improving the efficiency of the network simulation experiment.

[0039] Described below Figure 1 How to perform the steps shown.

[0040] First, for step 100, obtain the target format of the file to be virtualized; the file to be virtualized stores the corresponding field content configured for each device in the network topology diagram to be virtualized; the target format is the corresponding data format when the target network simulation simulator draws and stores the network topology diagram.

[0041] In an embodiment of the present invention, the file to be virtualized can be generated from the network topology diagram to be virtualized, or the file to be virtualized can be generated by directly editing the data content. When the file to be virtualized is generated from the network topology diagram to be virtualized, specifically: in the local system interface, the network topology diagram and the field content of the configured device can be directly drawn, or the field content of the configured device can be configured in the local system interface after the drawn network topology diagram is imported, or the field content of the configured device can be configured after the drawn network topology diagram is imported and configured, and then the local system stores the drawn and configured network topology diagram as the file to be virtualized in the target format.

[0042] Network topology Figure 1 It is generally used for shooting range event drills, attack event simulations, etc. For example, the network topology diagram of the **intranet penetration shooting range, the network topology diagram of the **digital currency exchange intrusion incident, the network topology diagram of the **attack shooting range, etc.

[0043] Virtualizing each device in a network topology diagram involves creating a virtual machine for each device. In embodiments of the present invention, to utilize the network topology diagram to virtualize each device in the diagram, it is necessary to configure corresponding field content for each device in the diagram. The corresponding field content configured for each device in the diagram is configured according to the field information required for virtualization, and the field content includes at least the virtual machine information corresponding to the device when virtualized.

[0044] The virtual machine information may include: network bridge information, virtual machine template, virtual machine version, virtual machine startup parameters and virtual image. Based on this virtual machine information, a virtual machine can be cloned for the device, so this virtual machine information must be configured in the device.

[0045] In addition to the above-mentioned virtual machine information, in order to enable the network simulation simulator to virtualize each device in the network topology diagram and output the network simulation experiment topology diagram, in an embodiment of the present invention, the field content of the device configuration may also include: device name, device ID, device type, device ID in the topology diagram, memory, Arch operating system version, device location, device icon, device network status, number of CPUs and at least one of bridge information.

[0046] In summary, the field contents of the device configuration may include the following Table 1:

[0047] Table 1:

[0048]

[0049] The bridge information may further include: device port name, device port number, bridge name, and bridge number.

[0050] After the network topology diagram to be virtualized is obtained, it can be stored as a file to be virtualized in a target format.

[0051] In an embodiment of the present invention, common network simulation simulators include eNSP, EVE-NG, GNS3, Cisco Packet Tracer, H3C HCL, etc. Different network simulation simulators have different data formats when drawing and storing network topology maps. In order to enable the network simulation simulator to simulate the externally drawn network topology map, it is necessary to store the data format of the externally drawn network topology map as the data format of the network simulation simulator to be called.

[0052] Considering that the EVE-NG network emulator can not only simulate network devices but also run virtual machines of all image types, theoretically, as long as the virtual disk format of the virtual machine can be converted to qcow2, the virtual machine can run on EVE-NG. Therefore, in the embodiment of the present invention, the target network emulator can be the EVE-NG network emulator.

[0053] EVE-NG is currently the most powerful network emulator for the X86 instruction set. It utilizes a client / server architecture, with the environment packaged on the GNU-Linux distribution Ubuntu as the server. The machine conducting the network simulation experiment is the client. Once the client connects to the server via the web, the EVE-NG experimental environment and topology are presented in a web-based format. Once the virtual image is uploaded and the network topology diagram is available, network simulation experiments can be conducted.

[0054] Correspondingly, when the target network simulation simulator is an EVE-NG network simulation simulator, the corresponding data format when the target network simulation simulator draws and stores the network topology diagram is the XML format.

[0055] When exporting a network topology map to a file, it is typically stored in JSON format. This means that the device information in the network topology map is stored as a JSON string. Specifically, the JSON string storing the device information in the network topology map needs to be converted to XML format to obtain the XML file to be virtualized.

[0056] For example, for a device in the network topology to be virtualized, the content in the XML file to be virtualized can be:

[0057] <nodes>

[0058] <nodename="Win"id="1178"type="qemu"uuid="b6a4c514-e871-47fe-af49-7f5209c3813b"top="395"

[0059] template="win"ram="4096" qemu_version="4.1.0" qemu_options="-machine type="pc,accel="kvm-cpu" host,+pcid,+kvm_pv_unhalt,+kvm_pv_eoi,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,

[0060] -vga std-usbdevice tablet-boot order=cd-drive file= / opt / qemu / share / qemu / virtio-win-

[0061] drivers.img,index=1,if=floppy,readonly"qemu_arch="x86_64"left="590"image="win-7-lite-u4"

[0062] icon="Desktop.

[0063] png"firstmac="00:0:2:9a:00:10"ethernet="1"cpulimit="1"cpu="1"console="vnc" config="0">

[0064] <interface name="E0"id="0"type="ethernet"network_id="1082" / >

[0065]

[0066] As you can see, the XML file contains all the device configuration information, allowing the target network simulator to accurately virtualize the device based on this XML file. Furthermore, if you need to modify the device configuration, you can do so directly on the local system or by modifying the XML file. This makes changes convenient and also facilitates device maintenance.

[0067] Step 102: calling the instance interface of the target network simulation simulator based on the file to be virtualized, and obtaining a network simulation experiment topology map generated by the target network simulation simulator using the file to be virtualized.

[0068] By calling the instance interface of the target network simulation simulator, the file to be virtualized is input into the target network simulation simulator. Since the format of the file to be virtualized is the same as the data format of the network topology map drawn and stored by the target network simulation simulator, the target network simulation simulator can parse and identify the field content required for virtualization of each device in the network topology map to be virtualized.

[0069] Specifically, in an embodiment of the present invention, the target network simulation simulator uses the file to be virtualized to generate a network simulation experiment topology diagram, which may include: determining the virtual image of each device based on the file to be virtualized; for each virtual image of a device, obtaining the virtual image of the device in the virtual image library, and virtualizing the device using the obtained virtual image and other virtual machine information; generating a network simulation experiment topology diagram for each virtualized device based on the other field contents of each device in the file to be virtualized.

[0070] For example, the device fields in the preceding XML file contain the following bridge information: device port name "E0", device port number "0", bridge name "ethernet", and bridge number "1082". The device's virtual image is "win-7-lite-u4", which can be obtained from the virtual image library. The device can be virtualized using the virtual machine template, virtual machine version, virtual machine startup parameters, and the "win-7-lite-u4" virtual image. The virtualized device is a device instance that emulates the resources and functions of the corresponding physical device.

[0071] After all devices in the network topology are virtualized, since the field content of the device also includes information such as the location of the device in the network topology, a network simulation experiment topology corresponding to the network topology can be generated based on these field contents.

[0072] Among them, the virtual images in the virtual image library of the target network simulation simulator are pre-made. If the virtual image of the device does not exist in the virtual image library, a virtual image of the device needs to be made and stored in the virtual image library, so that the virtual images in the virtual image library have a wider coverage, can meet the virtualization of different devices, and improve the efficiency of network simulation experiments.

[0073] After generating the network simulation experiment topology diagram, the target network simulation simulator can output it to the local system, and then the network simulation experiment topology diagram can be displayed in the local system.

[0074] Furthermore, the network simulation experiment topology map generated by the target network simulation simulator can also be stored in the local system; when it is necessary to switch to the network simulation experiment topology map corresponding to other network topology maps, if the network simulation experiment topology map corresponding to the other network topology map is stored in the local system, it can be called directly from the local system.

[0075] In the prior art, when switching to other network simulation experiments, not only is it necessary to draw a topology map and manually configure the process in the network simulation simulator, but it is also necessary to launch the current network topology interface, and one account cannot be logged in to multiple terminals at the same time. In this embodiment, not only can it switch quickly, but it can also support multiple terminals to log in to one account at the same time, thereby improving the user experience.

[0076] For example, the local system stores the network simulation experiment topology map of the **intranet penetration target range, the network simulation experiment topology map of the **digital currency exchange intrusion incident, and the network simulation experiment topology map of the **attack target range. If the network simulation experiment is completed for the network simulation experiment topology map of the **intranet penetration target range, and it is necessary to perform a network simulation experiment on the network simulation experiment topology map of the **digital currency exchange intrusion incident, the network simulation experiment topology map of the **digital currency exchange intrusion incident stored can be directly called from the local system, and then the network simulation experiment of the **digital currency exchange intrusion incident can be performed.

[0077] It should be noted that when performing network simulation on the network simulation experiment topology diagram, it is necessary to call the interface of the target network simulation simulator to perform simulation by the target network simulation simulator.

[0078] like Figure 2 、 Figure 3 As shown, the embodiment of the present invention provides a virtualized network implementation device. The device embodiment can be implemented by software, hardware, or a combination of software and hardware. From the hardware level, such as Figure 2 As shown in FIG. 1 , a hardware architecture diagram of an electronic device where a virtualized network implementation device is provided in an embodiment of the present invention is provided. Figure 2 In addition to the processor, memory, network interface, and non-volatile memory shown, the electronic device in the embodiment may also include other hardware, such as a forwarding chip responsible for processing messages, etc. Taking software implementation as an example, Figure 3 As shown, as a device in a logical sense, the CPU of the electronic device in which it is located reads the corresponding computer program in the non-volatile memory into the memory and runs it. This embodiment provides a virtualized network implementation device, including:

[0079] The file acquisition unit 301 is used to acquire a file to be virtualized in a target format; the file to be virtualized stores the corresponding field content configured for each device in the network topology diagram to be virtualized; the target format is the data format corresponding to the target network simulation simulator when drawing and storing the network topology diagram;

[0080] The virtualization unit 302 is configured to call the instance interface of the target network simulation simulator based on the file to be virtualized, and obtain a network simulation experiment topology map generated by the target network simulation simulator using the file to be virtualized.

[0081] In one embodiment of the present invention, the corresponding field content configured for each device in the network topology diagram is configured according to the field information required for virtualization, and the field content at least includes the virtual machine information corresponding to the device when virtualized.

[0082] In one embodiment of the present invention, the virtual machine information includes: network bridge information, virtual machine template, virtual machine version, virtual machine startup parameters and virtual image.

[0083] In one embodiment of the present invention, when the target network simulation simulator uses the file to be virtualized to generate a network simulation experiment topology diagram, it specifically includes: determining the virtual image of each device based on the file to be virtualized; for each virtual image of the device, obtaining the virtual image of the device in the virtual image library, and virtualizing the device using the obtained virtual image and other virtual machine information; generating a network simulation experiment topology diagram for each virtualized device based on the other field contents of each device in the file to be virtualized.

[0084] In one embodiment of the present invention, please refer to Figure 4 The virtualized network implementation device may further include: an image creation unit 303, configured to create a virtual image for the device and store it in the virtual image library if the virtual image for the device does not exist in the virtual image library.

[0085] In one embodiment of the present invention, please refer to Figure 5 , the virtualized network implementation device may further include: a storage unit 304, for storing the network simulation experiment topology map generated by the target network simulation simulator;

[0086] The virtualization unit is also used for directly calling from the local system when it is necessary to switch to the network simulation experiment topology corresponding to other network topology maps, if the network simulation experiment topology corresponding to the other network topology maps is stored in the local system.

[0087] In one embodiment of the present invention, the target network simulation simulator is EVE-NG; and the target format is XML format.

[0088] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on a virtualized network implementation device. In other embodiments of the present invention, a virtualized network implementation device may include more or fewer components than illustrated, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0089] The information interaction, execution process, etc. between the modules in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For specific contents, please refer to the description in the embodiment of the method of the present invention and will not be repeated here.

[0090] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, a virtualized network implementation method in any embodiment of the present invention is implemented.

[0091] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the processor executes a virtualized network implementation method according to any embodiment of the present invention.

[0092] Specifically, a system or device equipped with a storage medium can be provided, on which software program codes that implement the functions of any of the above-mentioned embodiments are stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program codes stored in the storage medium.

[0093] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute part of the present invention.

[0094] Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), magnetic tapes, non-volatile memory cards, and ROMs. Alternatively, the program code can be downloaded from a server computer via a communication network.

[0095] In addition, it should be clear that the functions of any of the above embodiments can be achieved not only by executing the program code read by the computer, but also by enabling the operating system operating on the computer to complete part or all of the actual operations based on the instructions of the program code.

[0096] In addition, it can be understood that the program code read from the storage medium is written into a memory provided in an expansion board inserted into the computer or into a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above embodiments.

[0097] It should be noted that, in this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprise," "include," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical factors in the process, method, article, or device comprising the element.

[0098] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk, etc. Various media that can store program codes.

[0099] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.< / nodes>

Claims

1. A method for implementing a virtualized network, characterized in that: include: Obtain the file to be virtualized in the target format; The file to be virtualized stores the corresponding field content configured for each device in the network topology diagram to be virtualized; The target format is the data format corresponding to when the target network simulation simulator draws and stores the network topology diagram; Calling an instance interface of the target network simulation simulator based on the file to be virtualized, and obtaining a network simulation experiment topology map generated by the target network simulation simulator using the file to be virtualized; The corresponding field content configured for each device in the network topology diagram is configured according to the field information required for virtualization, and the field content at least includes the virtual machine information corresponding to the device when virtualizing; the virtual machine information includes: bridge information, virtual machine template, virtual machine version, virtual machine startup parameters and virtual image; The target network simulation simulator uses the file to be virtualized to generate a network simulation experiment topology diagram, including: determining the virtual image of each device based on the file to be virtualized; for each virtual image of a device, obtaining the virtual image of the device in the virtual image library, and virtualizing the device using the obtained virtual image and other virtual machine information; generating a network simulation experiment topology diagram for each virtualized device based on other field contents of each device in the file to be virtualized.

2. The method according to claim 1, characterized in that Also includes: If the virtual image of the device does not exist in the virtual image library, a virtual image of the device needs to be created and stored in the virtual image library.

3. The method according to any one of claims 1-2, characterized in that Also includes: The network simulation experiment topology diagram generated by the target network simulation simulator is stored in a local system; When it is necessary to switch to a network simulation experiment topology diagram corresponding to another network topology diagram, if the network simulation experiment topology diagram corresponding to the other network topology diagram is stored in the local system, it is directly called from the local system.

4. The method according to any one of claims 1-2, characterized in that The target network simulation simulator is EVE-NG; the target format is XML format.

5. A virtualized network implementation device, characterized in that: include: A file acquisition unit, used for acquiring a file to be virtualized in a target format; The file to be virtualized stores the corresponding field contents configured for each device in the network topology diagram to be virtualized; the target format is the data format corresponding to when the target network simulation simulator draws and stores the network topology diagram; A virtualization unit, configured to call an instance interface of the target network simulation simulator based on the file to be virtualized, and obtain a network simulation experiment topology map generated by the target network simulation simulator using the file to be virtualized; The corresponding field content configured for each device in the network topology diagram is configured according to the field information required for virtualization, and the field content at least includes the virtual machine information corresponding to the device when virtualizing; the virtual machine information includes: bridge information, virtual machine template, virtual machine version, virtual machine startup parameters and virtual image; The target network simulation simulator uses the file to be virtualized to generate a network simulation experiment topology diagram, including: determining the virtual image of each device based on the file to be virtualized; for each virtual image of a device, obtaining the virtual image of the device in the virtual image library, and virtualizing the device using the obtained virtual image and other virtual machine information; generating a network simulation experiment topology diagram for each virtualized device based on other field contents of each device in the file to be virtualized.

6. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Network verification method and device for data center

    CN112988336A

  • Construction method and device of target 5G security network of target range, terminal and medium

    CN115334698A