SDN-based ovirt network management method and device

By adopting an SDN-based network management method on the oVirt platform and using an SDN controller to control the DHCP proxy to dynamically allocate network configuration, the problems of complex virtual machine network configuration and difficult batch configuration in the existing technology are solved, and unified management and efficient configuration of the oVirt virtualization platform network are realized.

CN119865426APending Publication Date: 2025-04-22AEROSPACE SCI & ENG NETWORK INFORMATION DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411941483.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The existing oVirt network management technology is simple and it is difficult to implement large-scale batch network configuration. Users need to manually configure the virtual machine network, and the threshold for writing python scripts for configuration is high.

Method used

The SDN-based Ovirt network management method and device are adopted, and the DHCP proxy is controlled to dynamically allocate Internet protocol addresses and configuration information through the SDN controller to realize unified management and batch configuration of the virtual machine network.

Benefits of technology

It has achieved the improvement of the network management functions of the oVirt virtualization platform, supported the visual management of logical networks, subnets, ports and routes, and reduced the complexity and threshold of user configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865426A_ABST
    Figure CN119865426A_ABST
Patent Text Reader

Abstract

The invention relates to an SDN (Software Defined Network)-based ovirt network management method and device, and aims to realize unified management configuration of a virtual machine network. The SDN-based ovirt network management method comprises the following steps: receiving a user instruction, and sending the user instruction to a server; the server side receives the instruction and sends the instruction to a first plug-in; the first plug-in updates a database (DB); and the first plug-in sends an information instruction issued by a user to the SDN controller through an interface REST API, and the SDN controller receives the information instruction issued by the user, controls a DHCP agent to create a distributed internet protocol address and configuration information, and sends the distributed internet protocol address and the configuration information to a client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network management, and in particular to an ovirt network management method and device based on SDN. Background Art

[0002] oVirt is based on KVM. By using oVirt to manage KVM virtual machines and networks, enterprises can quickly build a private cloud environment. oVirt manages the KVM virtualization environment in the form of a Web interface. It mainly consists of two parts: the engine and the node. The Engine is the management node in oVirt, providing a Web interface to interact with users and visualize the node management.

[0003] The current oVirt network management technology is relatively simple. For the network configuration of virtual machines, it needs to be manually configured one by one, which is not suitable for large-scale batch configuration. For this scenario, it is currently possible to call the relevant API interface by writing a python script to perform relevant network configuration, but it is not user-friendly and has a high threshold. Therefore, a new network management technology is urgently needed. Summary of the invention

[0004] Based on this, it is necessary to provide a method and device that can uniformly manage and configure a virtual machine network in response to the above technical problems.

[0005] On the one hand, a method for ovirt network management based on SDN is provided, the method comprising:

[0006] Receive user instructions and send the user instructions to the server;

[0007] The server receives the instruction and sends the instruction to the first plug-in plugin;

[0008] The first plug-in updates the database DB;

[0009] The first plug-in sends the information instruction issued by the user to the SDN controller through the interface REST API; the SDN controller receives the information instruction issued by the user, controls the DHCP agent to create an allocated Internet Protocol address and configuration information, and sends the allocated Internet Protocol address and configuration information to the client.

[0010] On the other hand, an SDN-based ovirt network management device is provided, the device comprising:

[0011] An instruction receiving unit, used to receive user instructions and send the user instructions to the server;

[0012] A server, the server is used to receive the instruction and send the instruction to the first plug-in;

[0013] A first plug-in, wherein the first plug-in is used to update the database DB and send the information instruction issued by the user to the SDN controller through the REST API interface;

[0014] The SDN controller is used to receive information instructions issued by the user, control the DHCP agent to create and allocate Internet Protocol addresses and configuration information, and send the allocated Internet Protocol addresses and configuration information to the client.

[0015] The above-mentioned SDN-based ovirt network management method and device, through the SND controller, creates an external network and creates and allocates Internet Protocol IP addresses and configuration information for customers on the external network, providing a more complete network management function for the oVirt virtualization platform, which can proxy the logical network of oVirt and visually manage the network, subnet, port and routing. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 The overall architecture diagram of an ovirt network management method based on SDN in one embodiment;

[0017] Figure 2 Specific flow chart for dynamic allocation of IP and configuration information; DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0019] In an embodiment of the present invention, in order to realize unified management and configuration of virtual machine networks, based on software-defined network technology SDN, through the oVirt network extension function, the network, subnet, port and route are abstracted, and the user creates an external network and binds the subnet according to an accessible address segment, and automatically allocates IP networks to the virtual machines divided into this subnet, thereby realizing the batch virtual machine network configuration function with a user-friendly interface.

[0020] Based on the above description, an embodiment of the present invention provides an ovirt network management method based on SDN, the method comprising:

[0021] Receive user instructions and send the user instructions to the server;

[0022] The server receives the instruction and sends the instruction to the plug-in plugin;

[0023] plugin updates the database DB;

[0024] The plugin sends the information instructions issued by the user to the SDN controller through the REST API interface;

[0025] The SDN controller receives the information instruction issued by the user, controls the DHCP-agent to create and allocate Internet Protocol IP addresses and configuration information, and sends the allocated Internet Protocol IP addresses and configuration information to the client.

[0026] In specific implementation, the SDN controller receives the information instruction issued by the user, creates and allocates the Internet Protocol IP address and configuration information, and sends the allocated Internet Protocol IP address and configuration information to the client, including: the SDN controller receives and accepts the information instruction; creates a network network labeled VLAN100; adds the VLAN100 logical network to the virtual machine; configures the network, subnet, and port information; and sends the network, subnet, and port information to the client.

[0027] Specifically, creating a network tagged with VLAN100 includes: the server receives a request to create a network, and notifies the registered Linux bridge plug-in Linux BridgePlugin through the message queue Message QueueRabbitMQ; the plug-in saves the network information to be created, including the name and VLAN ID, into the database, and sends the network information to the agent running on each node through the Message Queue; the agent receives the network information, creates a VLAN device on the physical network card on the node, and creates a bridge VLAN device.

[0028] In one embodiment, if Figure 1As shown in the figure, in the first step, the user enters instructions, such as configuration information and signals, to the network interface networking API through the horizon interface, and then sends it to the server. In the second step, the server receives the information and sends it to the plugin. In the third step, the server / plugin updates the database DB. In the fourth step, the plugin sends information instructions to the SDN controller through the REST API. In the fifth step, the SDN controller receives the message and then controls related components to work through southbound plug-ins / protocols, such as OpenFlow, OVSDB, OF-Config, etc., such as DHCP agent, L2-agent, DHCP-agent, L3-agent, etc. The server provides an application program interface API interface, and provides the API call request to the configured plug-in for subsequent processing. L2-agent is used to implement the agent of the second-layer network communication, and is used to manage the virtual LAN VLAN plug-in, and accepts the server's instructions to create VLAN. DHCP-agent is used to create subnets and automatically distribute IP addresses to subnets. L3-agent is responsible for address conversion between tenant networks and floating IPs, and implements address conversion through the network address conversion NAT function in linuxiptables.

[0029] In one embodiment, the DHCP agent component provides a dynamic host configuration protocol service DHCP, which allows the server to dynamically assign IP addresses and configuration information to clients. When the DHCP agent runs on a network node, it implements the DHCP function through dnsmasq by default. When the network is created and the DHCP service is enabled on the subnet, the DHCP agent on the network node will start a dnsmasq process to provide DHCP services for the network. dnsmasq is an open source software that provides DHCP and Domain Name System DNS services. There is a one-to-one relationship between dnsmasq and the network. One dnsmasq process can provide services for all subnets with DHCP enabled in the same network.

[0030] In one embodiment, the DHCP agent dynamically allocates IP addresses and configuration information to create a specific process, such as Figure 2 As shown, including:

[0031] The first step is to create a network with the tag VLAN100. Assuming the network provider is linuxbridge, the process is as follows:

[0032] (1) The server receives the request to create a network and notifies the registered Linux Bridge Plugin through the message queue, RabbitMQ.

[0033] (2) The plugin saves the information of the network to be created, such as name, VLAN ID, etc., into the database and notifies the Agent running on each node through the Message Queue.

[0034] (3) After receiving the message, the Agent will create a VLAN device, such as eth0.100, on the physical network card on the node, such as eth0, and create a bridge, such as brqXXX, to bridge the VLAN device.

[0035] After the network is created and the DHCP function is enabled on the subnet, the DHCP agent creates a directory / opt / stack / data / neutron / dhcp / for each network to store the dnsmasq configuration file for the network.

[0036] Step 2: Add VLAN 100 logical network to the virtual machine. [Configure a VLAN tag]

[0037] The third step is to configure network information such as network, subnet, port, etc.

[0038] Network types include: local, flat, VLAN, VxLAN and GRE. A subnet is an IPv4 or IPv6 address segment. The IP of an instance is allocated from the subnet. Each subnet needs to define the IP address range and mask. A port can be seen as a port on a virtual machine switch. The port defines the MAC address and IP address. When the virtual network card VIF of an instance is bound to the port, the port will assign the MAC and IP to the VIF (virtual network card).

[0039] In summary, according to the embodiment of the present invention, the network of virtual machines is configured in batches through the oVirt network extension function, the virtual machine network can be managed uniformly, and the virtual machine Internet interconnection protocol IP can be configured and managed more conveniently and intuitively.

[0040] Based on the same technical concept, an embodiment of the present invention provides an SDN-based ovirt network management device, the device comprising:

[0041] An instruction receiving unit, used to receive user instructions and send the user instructions to the server;

[0042] A server, the server is used to receive the instruction and send the instruction to the first plug-in;

[0043] A first plug-in, wherein the first plug-in is used to update the database DB and send the information instruction issued by the user to the SDN controller through the REST API interface;

[0044] The SDN controller is used to receive information instructions issued by the user, control the DHCP agent to create and allocate Internet Protocol addresses and configuration information, and send the allocated Internet Protocol addresses and configuration information to the client.

[0045] In one embodiment, the SDN controller is specifically used for: the SDN controller receives the information instruction; creates a network network with a label of VLAN100; adds the VLAN100 logical network to the virtual machine; configures the network, subnet, and port information; and sends the network, subnet, and port information to the client.

[0046] In one embodiment, the controller receives a request to create a network, and notifies a registered Linux Bridge Plugin through the message queue MessageQueueRabbitMQ; the bridge plug-in saves the network information to be created, including the name and tag VLANID, into a database, and sends the network information to the agent running on each node through the message queue; the agent receives the network information, creates a device tagged with VLAN on the physical network card on the node, and creates a bridge to bridge the VLAN device.

[0047] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. An ovirt network management method based on SDN, the method comprising: Receive user instructions and send the user instructions to the server; The server receives the instruction and sends the instruction to the first plug-in plugin; The first plug-in updates the database DB; The first plug-in sends the information instruction issued by the user to the SDN controller through the interface REST API; The SDN controller receives the information instruction issued by the user, controls the DHCP agent to create and allocate Internet Protocol addresses and configuration information, and sends the allocated Internet Protocol addresses and configuration information to the client.

2. The method according to claim 1, characterized in that The SDN controller receives the information instruction issued by the user, creates the allocated Internet protocol and configuration information, and sends the allocated Internet protocol address and configuration information to the client, including: The SDN controller receives and accepts the information instruction; Create a network tagged VLAN100; Add VLAN100 logical network to the virtual machine; Configure network, subnet, and port information; The network, subnet, and port information are sent to the client.

3. The method according to claim 2, characterized in that The creation of a network tagged with VLAN 100 includes: The controller receives the request to create a network and notifies the registered Linux Bridge Plugin through the Message Queue RabbitMQ. The bridge plug-in saves the network information to be created, including the name and the tag VLANID, into a database, and sends the network information to the agent running on each node through a message queue; The agent receives the network information, creates a device tagged as VLAN on a physical network card on the node, and creates a bridge to bridge the VLAN device.

4. An ovirt network management device based on SDN, the device comprising: An instruction receiving unit, used to receive user instructions and send the user instructions to the server; A server, the server is used to receive the instruction and send the instruction to the first plug-in; A first plug-in, wherein the first plug-in is used to update the database DB and send the information instruction issued by the user to the SDN controller through the REST API interface; The SDN controller is used to receive information instructions issued by the user, control the DHCP agent to create and allocate Internet Protocol addresses and configuration information, and send the allocated Internet Protocol addresses and configuration information to the client.

5. The device according to claim 4, characterized in that The SDN controller is specifically used for: The SDN controller receives and accepts the information instruction; Create a network tagged VLAN100; Add VLAN100 logical network to the virtual machine; Configure network, subnet, and port information; The network, subnet, and port information are sent to the client.

6. The device according to claim 5, characterized in that The creation of a network tagged with VLAN 100 includes: The controller receives the request to create a network and notifies the registered Linux Bridge Plugin through the Message Queue RabbitMQ. The bridge plug-in saves the network information to be created, including the name and the tag VLANID, into a database, and sends the network information to the agent running on each node through a message queue; The agent receives the network information, creates a device tagged as VLAN on a physical network card on the node, and creates a bridge to bridge the VLAN device.