A virtual machine network management method, device, equipment and storage medium

By simplifying the operating system image file and automatic detection program, it solves the problems of high parameter configuration error rate and long detection cycle in cloud platform virtual machine network management, achieves rapid instantiation and high-accuracy detection of virtual machine networks, and improves management Efficiency and accuracy.

CN113760439BActive Publication Date: 2024-10-29CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202010485882.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-01
Publication Date
2024-10-29
Estimated Expiration
2040-06-01

AI Technical Summary

Technical Problem

Existing cloud platform virtual machine network management requires manual input of network parameters. The parameter configuration error rate is high and the detection cycle is long, affecting efficiency and accuracy.

Method used

By obtaining the pre-designed virtual machine network topology map, create a simplified operating system image file, add detection programs, instantiate the virtual machine network, and automatically detect network performance, including network connectivity, bandwidth, latency and stability, to quickly identify And adjust abnormal configurations to reduce operational complexity and error rates.

Benefits of technology

It achieves rapid instantiation and high-accuracy detection of virtual machine networks, reduces the technical threshold and operational complexity of managers, and improves detection speed and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113760439B_ABST
    Figure CN113760439B_ABST
Patent Text Reader

Abstract

The present application discloses a virtual machine network management method, device, equipment and storage medium. The method creates a system image file of a part of the operating system functions of at least one virtual machine node and a detection program of at least one virtual machine node; adds a corresponding detection program to the system image file to obtain an instantiation file of the virtual machine; obtains an instantiation virtual machine network using the instantiation file; and detects the instantiation virtual machine network to obtain a detection result. In this way, by ignoring other operating system functions of the virtual machine and retaining only necessary operating system functions to establish the system image file of the virtual machine, the system image file of the virtual machine is greatly simplified. The simplified system image file can be used to quickly instantiate the virtual machine network. The instantiated virtual machine network is close to the real virtual machine network, and can realize the detection of multiple network performances of the virtual machine, and the detection time is short and the detection accuracy is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to computer technology, and in particular to a virtual machine network management method, device, equipment and storage medium. Background Art

[0002] Cloud computing consists of a series of resources that can be dynamically upgraded and virtualized. These resources are shared by all cloud computing users and can be easily accessed through the Internet. Users only need to rent cloud computing resources (computing, storage, network, and applications) according to their personal or group needs. The idea of ​​providing computing power to users as a public utility like water and electricity is the origin of the idea of ​​cloud computing. Virtualization technology is the main support for cloud computing.

[0003] Network Function Virtualization (NFV) was proposed by the operator alliance, which mainly uses the general x86 hardware platform and standard virtualization technology to decouple software and hardware and abstract functions. This can solve some of the problems currently encountered by operators, such as: high cost of dedicated equipment, vendor lock-in, and inflexible resource allocation, deployment, and scheduling. With the use of NFV, new services can be developed and deployed quickly, and can be automatically deployed, elastically scaled, and fault isolated based on actual business needs, saving a lot of costs and risks. In the NFV system based on cloud computing technology, virtual machines (VMs) are used as the basic resource units, and traditional network element functions run on VMs in the form of programs. In large network entities, the network function load is large, and a large number of VMs are required to be shared in the form of virtual machine groups.

[0004] During the deployment of virtual machines, the network resource management function of the cloud platform can be used to configure and manage the virtual machine network. However, the existing cloud platform virtual machine network management still requires manual participation to input relevant network parameters, the parameter configuration error rate is high, and the detection cycle is long. Summary of the invention

[0005] In order to solve the above technical problems, the present application hopes to provide a virtual machine network management method, device, equipment and storage medium.

[0006] The technical solution of this application is implemented as follows:

[0007] In a first aspect, a virtual machine network management method is provided, the method comprising:

[0008] Obtaining a pre-designed network topology diagram of a virtual machine network; wherein the network topology diagram is composed of at least one virtual machine node;

[0009] Creating a system image file of a part of the operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node;

[0010] Adding the detection program to the system image file to obtain an instantiation file of the virtual machine;

[0011] Instantiate at least one virtual machine node in the network topology diagram using the instantiation file to obtain an instantiated virtual machine network;

[0012] The instantiated virtual machine network is tested to obtain a test result.

[0013] In the above scheme, the instantiated virtual machine network is detected to obtain the detection result, including: obtaining the configuration parameters of at least one virtual machine node from the network topology map; running the detection program based on the configuration parameters of the target virtual machine node, detecting the network performance between the target virtual machine node and other nodes, and obtaining the detection result of the target virtual machine node; wherein the target virtual machine node is any virtual machine node in the instantiated virtual machine network.

[0014] In the above scheme, the other network nodes are virtual machine nodes within the instantiated virtual machine network, or network nodes outside the instantiated virtual machine network; the detection performance includes at least one of the following: network connectivity, network bandwidth, network latency, network stability, and supported network protocols.

[0015] In the above scheme, after obtaining the detection result, the method also includes: when the detection result includes an abnormal detection result, determining the abnormal virtual machine node indicated by the abnormal detection result; adjusting the configuration parameters of the abnormal virtual machine node in the network topology map; when the detection result does not include an abnormal detection result, constructing a real virtual machine network based on the network topology map.

[0016] In the above scheme, the obtaining of a pre-designed network topology diagram of a virtual machine network includes: obtaining a drawing operation instruction for drawing the network topology diagram; based on the drawing operation instruction, controlling a display unit to display the drawing process of the network topology diagram; and automatically assigning a network address to each virtual machine node in the network topology diagram to obtain a designed network topology diagram.

[0017] In the above scheme, the automatic allocation of network addresses to each virtual machine node in the network topology diagram includes: filtering out occupied network addresses from the total network address pool to obtain an unoccupied network address pool; obtaining network addresses from the unoccupied network address pool and allocating them to each virtual machine node in the network topology diagram.

[0018] In the above scheme, after obtaining the detection result, the method further includes: controlling the display unit to display the detection result; if the detection result includes an abnormal detection result, controlling the display unit to highlight the abnormal detection result.

[0019] In a second aspect, a virtual machine network management device is provided, the device comprising:

[0020] An acquisition unit is used to acquire a pre-designed network topology diagram of a virtual machine network; wherein the network topology diagram is composed of at least one virtual machine node; and to acquire a system image file of a part of the functions of the virtual machine operating system and a detection program of the virtual machine;

[0021] A creation unit, configured to create a system image file of a part of the operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node; and to add the detection program to the system image file to obtain an instantiation file of the virtual machine;

[0022] An instantiation unit, configured to instantiate at least one virtual machine node in the network topology diagram using the instantiation file to obtain an instantiated virtual machine network;

[0023] The detection unit is used to detect the instantiated virtual machine network and obtain a detection result.

[0024] According to a third aspect, a virtual machine network management device is provided, comprising: a processor and a memory configured to store a computer program that can be run on the processor, wherein the processor is configured to execute the steps of the aforementioned method when running the computer program.

[0025] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, wherein the computer program implements the steps of the aforementioned method when executed by a processor.

[0026] By adopting the above technical scheme, a network topology diagram of a pre-designed virtual machine network is obtained; wherein the network topology diagram is composed of at least one virtual machine node; a system image file of some operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node are created; the detection program is added to the system image file to obtain an instantiation file of the virtual machine; at least one virtual machine node in the network topology diagram is instantiated using the instantiation file to obtain an instantiated virtual machine network; the instantiated virtual machine network is detected to obtain a detection result. In this way, by ignoring other operating system functions of the virtual machine and retaining only necessary operating system functions to establish a system image file of the virtual machine, the system image file of the virtual machine is greatly simplified. The simplified system image file can be used to quickly instantiate the virtual machine network, and the instantiated virtual machine network is close to the real virtual machine network. Further, the detection of various network performances of the virtual machine can be realized according to the network configuration parameters of the virtual machine, and the detection time is short and the detection accuracy is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is a schematic diagram of the first process of the virtual machine network management method in an embodiment of the present application;

[0028] Figure 2 This is a second flow chart of the virtual machine network management method in an embodiment of the present application;

[0029] Figure 3 A schematic diagram of a display interface of a display unit in an embodiment of the present application;

[0030] Figure 4 This is a schematic diagram of the first component structure of the virtual machine network management device in an embodiment of the present application;

[0031] Figure 5 This is a schematic diagram of the second component structure of the virtual machine network management device in an embodiment of the present application;

[0032] Figure 6 This is a schematic diagram of the composition structure of the virtual machine network management device in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable a more detailed understanding of the features and technical contents of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0034] Embodiment 1

[0035] The present application provides a virtual machine network management method. Figure 1 FIG. 1 is a schematic diagram of a first process of a virtual machine network management method according to an embodiment of the present application. Figure 1As shown, the method may specifically include:

[0036] Step 101: Obtain a pre-designed network topology diagram of a virtual machine network; wherein the network topology diagram is composed of at least one virtual machine node;

[0037] Step 102: creating a system image file of a part of the operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node;

[0038] Step 103: Add the detection program to the system image file to obtain an instantiation file of the virtual machine;

[0039] Step 104: using the instantiation file to instantiate at least one virtual machine node in the network topology diagram to obtain an instantiated virtual machine network;

[0040] Step 105: Detect the instantiated virtual machine network to obtain a detection result.

[0041] Here, the execution subject of step 101 to step 105 may be a processor of the virtual machine network management device.

[0042] In actual applications, network administrators can use network topology design tools to pre-design a network topology for a virtual machine network. The network topology includes the connection methods of different virtual machine nodes, configuration parameters of the virtual machine nodes, etc.

[0043] Exemplarily, the network topology tool may include an input unit, a processing unit, and a display unit. Here, the input unit is used to obtain user input information, the processing unit is used to perform a topology map creation operation according to the user input information, and the display unit is used to display the network topology map creation process to the user in a graphical manner. The administrator can design the network topology on the display interface, configure the network connectivity by visual methods such as dragging nodes and connecting lines, and can design templates by themselves to speed up the network design speed.

[0044] In the prior art, when the connectivity, network stability, delay, bandwidth and other network performance of each node are detected after the network topology diagram is designed, it is necessary to perform point-to-point tests between virtual machines (short for "virtual machines") and virtual machines after the entire network deployment is completed to determine the network performance between virtual machines. Because there are many factors that affect the network: physical link unreachable, routing configuration, network parameter configuration, firewall policy, QoS policy, etc. However, if the network needs to be redesigned due to problems with the network configuration, it will take a lot of time and manpower costs to test after the virtual machine is deployed. Therefore, the present application establishes a system image file of the virtual machine by ignoring other operating system functions of the virtual machine and retaining only the necessary operating system functions, which greatly simplifies the system image file of the virtual machine. The simplified system image file can be used to quickly instantiate the virtual machine network, and the instantiated virtual machine network is close to the real virtual machine network. Further, the detection of various network performances of the virtual machine can be realized according to the network configuration parameters of the virtual machine, which can greatly reduce the operation complexity and design error rate of the management personnel, save time, reduce the technical threshold of the management personnel, and have a high detection accuracy.

[0045] This application uses a simplified operating system image file to instantiate a virtual machine, that is, a partial operating system function of at least one virtual machine node is mirrored to obtain a system image file. The system image file only has the operating system kernel and the necessary modules for implementing network functions, and there is no need to mirror other non-essential functions. The image file obtained in this way is very small, only a dozen MB, and the entire virtual machine network can be quickly instantiated.

[0046] The detection program is pre-set and used to automatically detect the network performance between the virtual machine node and other nodes. The detection program is added to the system image file to obtain the instantiation file, and the virtual machine is instantiated using the instantiation file, which not only realizes the basic network function of the virtual machine, but also adds the automatic detection function to the virtual machine.

[0047] After obtaining the instantiated virtual machine network, the detection program in the instantiated virtual machine node is run to detect the instantiated virtual machine network and obtain the detection result. For example, the detection content may include network connectivity, network bandwidth, network latency, network stability, supported network protocols, etc.

[0048] In actual applications, the system image files of different virtual machines can be the same. For example, if the same network function needs to be detected, the detection program created can also be the same; or, if the functions to be detected by different virtual machines are different, the system image files and detection programs created can also be different. The specific system image files and detection programs can be flexibly set and are not limited by the embodiments of the present application.

[0049] In some embodiments, the instantiated virtual machine network is detected to obtain the detection result, including: obtaining the configuration parameters of the at least one virtual machine node from the network topology map; running the detection program based on the configuration parameters of the target virtual machine node, detecting the network performance between the target virtual machine node and other nodes, and obtaining the detection result of the target virtual machine node; wherein the target virtual machine node is any virtual machine node in the instantiated virtual machine network.

[0050] Here, the configuration parameters are parameters set for different virtual machine nodes during the design process of the network topology diagram, such as adjacent nodes of the virtual machine nodes, supported network protocols, resource allocation, etc.

[0051] The detection program can be started automatically at boot time, receive configuration parameters passed by configuration injection, and detect network performance with other nodes based on the configuration parameters. The other nodes here can be virtual machine nodes inside the designed network or external devices, which can be configured before instantiating the image and then passed in as parameters during instantiation. After the detection program is started, it automatically connects to the other nodes indicated in the parameters in turn, detects network performance such as connectivity, network bandwidth, network stability, and network security, and obtains the detection results.

[0052] In practical applications, after obtaining the detection result, the method further includes: when the detection result includes an abnormal detection result, determining the abnormal virtual machine node indicated by the abnormal detection result; adjusting the configuration parameters of the abnormal virtual machine node in the network topology map to obtain an adjusted network topology map; and re-detecting the adjusted network topology map by executing steps 102 to 105. When the detection result does not include an abnormal detection result, constructing a real virtual machine network based on the network topology map.

[0053] By adopting the above technical scheme, a network topology diagram of a pre-designed virtual machine network is obtained; wherein the network topology diagram is composed of at least one virtual machine node; a system image file of some operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node are created; the detection program is added to the system image file to obtain an instantiation file of the virtual machine; at least one virtual machine node in the network topology diagram is instantiated using the instantiation file to obtain an instantiated virtual machine network; the instantiated virtual machine network is detected to obtain a detection result. In this way, by ignoring other operating system functions of the virtual machine and retaining only necessary operating system functions to establish the system image file of the virtual machine, the system image file of the virtual machine is greatly simplified. The simplified system image file can be used to quickly instantiate the virtual machine network, and the instantiated virtual machine network is close to the real virtual machine network. Further, the detection of various network performances of the virtual machine can be realized according to the network configuration parameters of the virtual machine, which can greatly reduce the operation complexity and design error rate of the management personnel, save time, reduce the technical threshold of the management personnel, and has a high detection accuracy.

[0054] Based on the above embodiment, a more optimized virtual machine network management method is also provided. Figure 2 This is a second flow chart of the virtual machine network management method in this application, such as Figure 2 As shown, the method includes:

[0055] Step 201: obtaining a drawing operation instruction for drawing the network topology diagram;

[0056] The operator inputs drawing operation instructions through an input unit (such as a mouse and a keyboard).

[0057] Step 202: Based on the drawing operation instruction, control the display unit to display the drawing process of the network topology map;

[0058] The display unit shows the network topology diagram. Managers can design the network topology themselves through this interface, configure the connectivity of the network by dragging nodes, connecting lines and other visual methods, and design templates themselves to speed up network design.

[0059] For example, Figure 3 is a schematic diagram of a display interface of a display unit in an embodiment of the present application, such as Figure 3 As shown, the display interface includes a component list, a property list, and a topology canvas.

[0060] Among them, the component list: Components include virtual network resources such as virtual machines, virtual machine groups, security policies, networks, subnets, and network exits in the network. Each component has its own template at the beginning. The administrator can fill in the parameters according to the template to design a custom component, and then reuse the component in subsequent operations. The component should be composed of enough parameters, and the specific parameters are not specified in this proposal.

[0061] Property list: Displays the properties of the selected component. You can configure the specific value of the property and add or delete properties. It also supports saving the current properties as a custom component and storing them in the system for quick reuse in the next design. For example, the property list can include: name, descriptor, IP address, Media Access Control (MAC) address, and IP address pool.

[0062] Topology canvas: It is the area where managers design and display network topology. When designing, drag and copy existing component templates from the component list to the canvas. In the topology canvas, each component is represented by a different topology element type. The so-called topology element type refers to the manifestation of the component, which is divided into four types: node, connection line, connection point, and shader. Virtual machines or virtual machine groups are node types, networks and subnets are connection line types, network card ports and network exits are connection point types, and security policies are shader types. When designing a network topology, first arrange the virtual machine nodes, then add connection points on the nodes as network cards on the virtual machines, use the network as a connection line to connect the connection points of each network card, and finally use the shader to configure the security group for the network; you can also skip the step of adding network card connection points and directly use the network to connect the virtual machine, which will automatically add the corresponding network card to the virtual machine.

[0063] Step 203: Automatically assign a network address to each virtual machine node in the network topology diagram to obtain a designed network topology diagram;

[0064] Specifically, the occupied network addresses are filtered out from the total network address pool to obtain an unoccupied network address pool; and a network address is obtained from the unoccupied network address pool and allocated to each virtual machine node in the network topology diagram.

[0065] The so-called network address pool is a collection of all Internet Protocol (IP) addresses in a usable network segment, or a collection of IP addresses of a part of a network segment. The administrator allocates the network address pool and automatically obtains network addresses from the available address pool according to a certain strategy and allocates them to each virtual machine node. Before automatically allocating network addresses, the previously designed network topology diagrams will be stored in advance, which can be accessed at any time to check whether the network addresses conflict. Specifically, after the user has designed the network topology diagram, addresses are automatically allocated to different network nodes in the network topology diagram to avoid address conflicts.

[0066] a) Access at any time. When making a new design, display the previously stored design plan, which can be used for reference or comparison, or just as a storage backup of the plan;

[0067] b) Checking network conflicts means that since IP addresses are unique, if an IP address has been used, it should not be allowed to be reused in all the processes. In the stored historical plans, the plans that have been officially adopted will be marked as being used. When the management personnel design a new plan, the system will check whether the network parameters in it conflict with the plan in use and issue a warning.

[0068] Step 204: creating a system image file of a part of the operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node;

[0069] This application uses a simplified operating system image file to instantiate a virtual machine, that is, to image some operating system functions of at least one virtual machine node to obtain a system image file. The system image file only has the operating system kernel and the necessary modules to implement network functions, and there is no need to image other non-essential functions. The image file obtained in this way is very small, only a dozen MB. The simplified operating system image file can quickly instantiate the virtual machine network, shorten the detection time of the virtual machine network on the basis of being close to the real virtual machine network environment, and can greatly reduce the operation complexity and design error rate of managers, save time, and lower the technical threshold of managers.

[0070] The detection program is a pre-set operation for automatically detecting the network performance between the virtual machine node and other nodes.

[0071] Step 205: Add the detection program to the system image file to obtain an instantiation file of the virtual machine;

[0072] A detection program is added to the system image file to obtain an instantiation file. When the virtual machine is instantiated using the instantiation file, not only the basic network function of the virtual machine is instantiated, but also an automatic detection function is added to the virtual machine.

[0073] After obtaining the instantiated virtual machine network, the detection program in the instantiated virtual machine node is run to detect the instantiated virtual machine network and obtain the detection result. For example, the detection content may include network connectivity, network bandwidth, network latency, network stability, supported network protocols, etc.

[0074] Step 206: using the instantiation file to instantiate at least one virtual machine node in the network topology diagram to obtain an instantiated virtual machine network;

[0075] Step 207: Detect the instantiated virtual machine network to obtain a detection result.

[0076] Specifically, the configuration parameters of at least one virtual machine node are obtained from the network topology map; the detection program is run based on the configuration parameters of the target virtual machine node, the network performance between the target virtual machine node and other nodes is detected, and the detection result of the target virtual machine node is obtained; wherein the target virtual machine node is any virtual machine node in the instantiated virtual machine network.

[0077] Here, the configuration parameters are parameters set for different virtual machine nodes during the design process of the network topology diagram, such as adjacent nodes of the virtual machine nodes, supported network protocols, resource allocation, etc.

[0078] The detection program can be started automatically at boot time, receive configuration parameters passed by configuration injection, and detect network performance with other nodes based on the configuration parameters. The other nodes here can be virtual machine nodes inside the designed network or external devices, which can be configured before instantiating the image and then passed in as parameters during instantiation. After the detection program is started, it automatically connects to the other nodes indicated in the parameters in turn, detects network performance such as connectivity, network bandwidth, network stability, and network security, and obtains the detection results.

[0079] In practical applications, the detection results include normal detection results and / or abnormal detection results. Specifically, when the detection results include abnormal detection results, the abnormal virtual machine node indicated by the abnormal detection results is determined; the configuration parameters of the abnormal virtual machine node in the network topology map are adjusted to obtain the adjusted network topology map; and the adjusted network topology map is re-detected. When the detection results do not include abnormal detection results, a real virtual machine network is constructed based on the network topology map.

[0080] In some embodiments, after obtaining the detection results, the method further includes: controlling a display unit to display the detection results; if the detection results include abnormal detection results, highlighting the abnormal detection results.

[0081] After obtaining the test results, network analysis is performed based on the test results. In addition to simple data listing and summarization, the network problem location and solution are analyzed based on the connectivity relationship between each node, reducing the technical threshold for managers. The results of the network analysis will also be displayed on the network topology map of the visual interface in the form of color or graphic annotation. If the network between two nodes is not connected, a cross will be placed on the node connection line or the connection line will be marked red. If the packet loss is serious, an exclamation mark will appear on the connection line or the connection line will be marked yellow. If the connection is smooth and the network quality meets the standard, there will be no mark or the connection line will be marked green, improving the user interaction experience.

[0082] Embodiment 2

[0083] The present application also provides a virtual machine network management device, such as Figure 4 As shown, the device comprises:

[0084] The acquisition unit 401 is used to acquire a pre-designed network topology diagram of a virtual machine network; wherein the network topology diagram is composed of at least one virtual machine node; and to acquire a system image file of a part of the functions of the virtual machine operating system and a detection program of the virtual machine;

[0085] The creation unit 402 is used to create a system image file of a part of the operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node; add the detection program to the system image file to obtain an instantiation file of the virtual machine;

[0086] An instantiation unit 403 is used to instantiate at least one virtual machine node in the network topology diagram using the instantiation file to obtain an instantiated virtual machine network;

[0087] The detection unit 404 is used to detect the instantiated virtual machine network and obtain a detection result.

[0088] In some embodiments, the detection unit 404 is specifically used to obtain the configuration parameters of at least one virtual machine node from the network topology map; run the detection program based on the configuration parameters of the target virtual machine node, detect the network performance between the target virtual machine node and other nodes, and obtain the detection result of the target virtual machine node; wherein the target virtual machine node is any virtual machine node in the instantiated virtual machine network.

[0089] In some embodiments, the other network nodes are virtual machine nodes within the instantiated virtual machine network, or network nodes outside the instantiated virtual machine network; the detection performance includes at least one of the following: network connectivity, network bandwidth, network latency, network stability, and supported network protocols.

[0090] In some embodiments, the detection unit 404 is also used to determine the abnormal virtual machine node indicated by the abnormal detection result when the detection result includes an abnormal detection result; adjust the configuration parameters of the abnormal virtual machine node in the network topology map; and build a real virtual machine network based on the network topology map when the detection result does not include an abnormal detection result.

[0091] In some embodiments, the acquisition unit 401 is specifically used to obtain a drawing operation instruction for drawing the network topology map; based on the drawing operation instruction, control the display unit to display the drawing process of the network topology map; automatically assign a network address to each virtual machine node in the network topology map to obtain a designed network topology map.

[0092] In some embodiments, the acquisition unit 401 is specifically used to filter out occupied network addresses from the total network address pool to obtain an unoccupied network address pool; obtain a network address from the unoccupied network address pool and assign it to each virtual machine node in the network topology diagram.

[0093] In some embodiments, the detection unit 404 is further used to control the display unit to display the detection result; if the detection result includes an abnormal detection result, the display unit is controlled to highlight the abnormal detection result.

[0094] This application also provides another virtual machine network management device, such as Figure 5 As shown, the device comprises:

[0095] The two units in the dotted box, the basic configuration unit 501 and the instantiation processing unit 504, are components of the original cloud platform. This application is expanded on the basis of the original cloud platform components.

[0096] The basic configuration unit 501 and the instantiation processing unit 504 are built-in components of the cloud platform. The administrator compiles the various configurations required by the virtual machine into a text file in a certain format according to certain rules, and the basic configuration unit parses it, stores the configuration in a certain data form, and converts it into interface data, which is handed over to the instantiation processing unit for instantiation. The instantiation processing unit calls the underlying function for instantiation according to the interface data sent.

[0097] The visualization interface 502 is used to configure and display network parameters, display the network topology diagram, and provide intuitive network connectivity detection results. Figure 3 shown.

[0098] The network address automatic allocation unit 503 is used to automatically configure the network. The operation and maintenance personnel do not need to care about the address of the internal network in the configuration. They only need to set the port address exposed to the outside and automatically convert the network configuration into a configuration injection file. They can directly operate through the visual interface and generate a configuration file that can be directly recognized by the cloud platform.

[0099] The network address automatic allocation unit 503 is the implementer of the specific allocation of the network address and cooperates with the visualization interface 502. In the visualization interface, the network component, subnet component and virtual machine group component have attribute parameters of the network address pool. The so-called network address pool is a collection of all IP addresses in a usable network segment, or a part of the IP addresses of the network segment. The management personnel allocate the network address pool and automatically obtain the network address from the available address pool according to a certain strategy and allocate it to each virtual machine node. Before the network address is automatically allocated, the network topology diagram scheme designed in the past will be pre-stored, which can be accessed at any time and the network address conflict can be checked. It means that after the user has designed the network topology diagram, addresses are automatically allocated to different network nodes in the network topology diagram to avoid address conflicts.

[0100] a) Access at any time. When making a new design, display the previously stored design plan, which can be used for reference or comparison, or just as a storage backup of the plan;

[0101] b) Checking network conflicts means that since IP addresses are unique, if an IP address has been used, it should not be allowed to be reused in all the processes. In the stored historical plans, the plans that have been officially adopted will be marked as being used. When the management personnel design a new plan, the system will check whether the network parameters in it conflict with the plan in use and issue a warning.

[0102] The network detection unit 505 is used to diagnose the connectivity of the configured network. The unit diagnoses the connectivity of the network by quickly instantiating a network detection virtual machine and performing automatic network tests between virtual machines. The connectivity is intuitively displayed through a visual interface.

[0103] After the administrator has designed the network through the visual interface 502, the network detection unit 505 will create the entire network according to the network design by using a system image that ignores other functions and only retains the necessary operating system and network functions. The image removes other functions and only retains the basic operating system kernel and network-related system modules, so the image file is very small, only a dozen MB. The simplified operating system image file can quickly instantiate the virtual machine network, shorten the detection time of the virtual machine network on the basis of being close to the real virtual machine network environment, and can greatly reduce the operation complexity and design error rate of the administrator, save time, and lower the technical threshold of the administrator.

[0104] The system image file also adds a network automatic detection function to detect the connectivity and network performance between virtual machine network nodes. It can also detect the connectivity and network performance of nodes and preset addresses as required. Each node is automatically detected and the results are transmitted to the network detection unit. The network detection unit will analyze the collected data and obtain a network performance report, which will be presented to the management personnel. The management personnel can know whether there are problems with the network design based on the report and correct them in time. Several important features of this module are:

[0105] a) Network diagnostic image: A specially customized operating system image that only has the operating system kernel and necessary components to run. Only the network function is complete in the image, which can be customized based on the OpenWrt system. A detection program will be built into the system, which will run automatically and report the detection results to the network detection unit through internal communication of the virtual layer.

[0106] b) Built-in detection program: This program starts automatically when the computer is turned on, and accepts parameter information passed through configuration injection. Based on the parameter information, it detects whether the network is connected with other nodes, network performance, maximum network bandwidth, supported network protocols, etc. The other nodes here can be virtual machine nodes inside the designed network, or external network addresses, which can be configured before instantiating the image, and then passed in as parameters during instantiation. The program then automatically connects to the addresses in the parameters in turn to detect connectivity, network bandwidth, network stability, network security, etc. This data is then transmitted back to the network detection unit.

[0107] The present application also provides a virtual machine network management device, such as Figure 6 As shown, the device includes: a processor 601 and a memory 602 configured to store a computer program that can be run on the processor; when the processor 601 runs the computer program in the memory 602, the steps of the above method are implemented.

[0108] Of course, in practical applications, Figure 6 As shown, the various components in the device are coupled together via a bus system 603. It is understood that the bus system 603 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 603 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 603.

[0109] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method described in any of the above embodiments are implemented.

[0110] In practical applications, the processor may be at least one of an application-specific integrated circuit (ASIC), a digital signal processing device (DSPD), a programmable logic device (PLD), a field-programmable gate array (FPGA), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and the embodiments of the present application do not specifically limit this.

[0111] The above-mentioned memory can be a volatile memory (volatile memory), such as a random access memory (RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above-mentioned types of memory, and provide instructions and data to the processor.

[0112] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0113] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0114] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0115] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0116] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A virtual machine network management method, characterized in that: The method comprises: Obtaining a pre-designed network topology diagram of a virtual machine network; wherein the network topology diagram is composed of at least one virtual machine node; Creating a system image file of a part of the operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node; wherein different detection programs correspond to virtual machine nodes with different functions to be detected; Adding the detection program to the system image file to obtain an instantiation file of the virtual machine; Instantiate at least one virtual machine node in the network topology diagram using the instantiation file to obtain an instantiated virtual machine network; Detecting the instantiated virtual machine network to obtain a detection result; The detecting of the instantiated virtual machine network to obtain the detection result includes: The detection program detects the network performance between at least one virtual machine node in the instantiated virtual machine network and other nodes according to the configuration parameters of at least one virtual machine node in the instantiated virtual machine network, and obtains the detection result.

2. The method according to claim 1, characterized in that The detecting the instantiated virtual machine network to obtain the detection result includes: Acquire configuration parameters of the at least one virtual machine node from the network topology map; Running the detection program based on the configuration parameters of the target virtual machine node, detecting the network performance between the target virtual machine node and other nodes, and obtaining the detection result of the target virtual machine node; The target virtual machine node is any virtual machine node in the instantiated virtual machine network.

3. The method according to claim 2, characterized in that The other network nodes are virtual machine nodes within the instantiated virtual machine network, or network nodes outside the instantiated virtual machine network; The network performance includes at least one of the following: network connectivity, network bandwidth, network latency, network stability, and supported network protocols.

4. The method according to claim 2, characterized in that: After obtaining the detection result, the method further includes: When the detection result includes an abnormal detection result, determining an abnormal virtual machine node indicated by the abnormal detection result; Adjusting configuration parameters of abnormal virtual machine nodes in the network topology diagram; When the detection result does not include an abnormal detection result, a real virtual machine network is constructed based on the network topology diagram.

5. The method according to claim 1, characterized in that The obtaining of a pre-designed network topology diagram of a virtual machine network includes: Obtaining a drawing operation instruction for drawing the network topology diagram; Based on the drawing operation instruction, controlling the display unit to display the drawing process of the network topology diagram; A network address is automatically assigned to each virtual machine node in the network topology diagram to obtain a designed network topology diagram.

6. The method according to claim 5, characterized in that The automatically allocating a network address to each virtual machine node in the network topology diagram includes: Filter out the occupied network addresses from the total network address pool to obtain an unoccupied network address pool; A network address is obtained from the unoccupied network address pool and allocated to each virtual machine node in the network topology diagram.

7. The method according to any one of claims 1 to 6, characterized in that: After obtaining the detection result, the method further includes: Controlling the display unit to display the detection result; If the detection results include abnormal detection results, the control display unit will highlight the abnormal detection results.

8. A virtual machine network management device, characterized in that: The device comprises: An acquisition unit is used to acquire a pre-designed network topology diagram of a virtual machine network; wherein the network topology diagram is composed of at least one virtual machine node; and to acquire a system image file of a part of the functions of the virtual machine operating system and a detection program of the virtual machine; A creation unit, used to create a system image file of a part of the operating system functions of the at least one virtual machine node and a detection program of the at least one virtual machine node; add the detection program to the system image file to obtain an instantiation file of the virtual machine; wherein different detection programs correspond to virtual machine nodes with different functions to be detected; An instantiation unit, configured to instantiate at least one virtual machine node in the network topology diagram using the instantiation file to obtain an instantiated virtual machine network; The detection unit is used to detect the network performance between at least one virtual machine node in the instantiated virtual machine network and other nodes through the detection program and obtain a detection result according to the configuration parameters of at least one virtual machine node in the instantiated virtual machine network.

9. A virtual machine network management device, characterized in that: The device comprises: a processor and a memory configured to store a computer program capable of being executed on the processor, Wherein, the processor is configured to execute the steps of the method according to any one of claims 1 to 7 when running the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and system for running virtual machine mirror image

    CN102033755A

  • Attack and defense exercise system based on virtual environment

    CN104900102A

  • Virtual machine creation method and apparatus

    CN107077379A

  • Detection method and apparatus for virtual machine business network port

    CN107544835A

  • Cloud platform detection method and detection platform

    CN109962820A