Cloud host network management method and system
By automatically processing DHCP requests in the cloud host network management system, configuring cloud host network parameters and updating routing tables, the problems of difficult configuration and slow response in a large-scale distributed virtualization environment are solved, and efficient, accurate and secure cloud host network management is achieved.
Patent Information
- Application Number
- CN202411828931.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-28
AI Technical Summary
When traditional DHCP services face large-scale distributed virtualization environments, they have problems such as configuration difficulties, address conflicts and slow response speed, which leads to complex cloud host network management and difficult to ensure security and compliance.
By creating and starting a cloud host on the server, obtaining its DHCP request, and automating responses based on the request type and the MAC address of the cloud host, including configuring the cloud host network parameters and updating the routing table, network communication is achieved.
It improves the efficiency and accuracy of cloud host network configuration, reduces the errors and complexity of manual configuration, enhances the stability and security of cloud host network, and can independently respond to different DHCP request types and quickly respond.
Smart Images

Figure CN119728646A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud computing and virtualization, and in particular to a cloud host network management method and system. Background Art
[0002] Cloud hosting is an IT infrastructure rental service that integrates computing, storage and network resources. It can provide on-demand and pay-as-you-go server rental services based on the cloud computing model. Customers can deploy the required server environment through the self-service platform of the web interface.
[0003] In recent years, the global cloud hosting market has shown a trend of rapid development. With the increasing acceptance of cloud computing technology by enterprises and the accelerated advancement of digital transformation, the demand for cloud hosting market continues to grow.
[0004] With the rapid development of cloud computing and virtualization technology, the deployment and network management of cloud hosts have become increasingly complex. Traditional DHCP (Dynamic Host Configuration Protocol) services have problems such as difficult configuration, address conflicts, and slow response speeds when facing large-scale distributed virtualization environments. As the scale of the network expands, the management of cloud host networks becomes increasingly difficult. With the continuous expansion of the cloud host market and the expansion of application scenarios, security and compliance have also become the focus of user attention. Therefore, it is necessary to develop a more convenient and automated cloud host network management method to adapt to the rapidly changing needs of the cloud environment. Summary of the invention
[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a cloud host network management method and system for improving the efficiency and accuracy of cloud host network configuration.
[0006] The purpose of the present invention can be achieved by the following technical solutions:
[0007] A cloud host network management method, the method comprising:
[0008] Create and start a cloud host on the server;
[0009] Get the DHCP request of the cloud host;
[0010] Determine whether the DHCP request is a routing request. If so, configure the cloud host network parameters and cloud host network according to the network parameters of the server corresponding to the cloud host. If not, obtain the MAC address of the cloud host that issued the DHCP request.
[0011] Determine whether the cloud host MAC address is in the list of configured cloud hosts in the database, if so, automatically respond according to the DHCP request type, if not, discard the DHCP request. Further, obtain the DHCP request of the cloud host by issuing a flow table.
[0012] Furthermore, the manner of configuring the cloud host network parameters includes manual allocation and automatic allocation, wherein the automatic allocation can automatically allocate idle cloud host network parameters to the cloud host.
[0013] Furthermore, the process of configuring the cloud host network includes:
[0014] Perform a validity check on the cloud host network parameters. If the check passes, the cloud host network parameters are stored in the database. Otherwise, an error message is returned.
[0015] According to the cloud host network parameters stored in the database, query the corresponding server network, encapsulate the routing announcement data packet according to the server network parameters, and send the routing announcement data packet to the cloud host;
[0016] The cloud host updates its own routing table based on the server network routing information in the routing announcement data packet data to achieve network communication.
[0017] Furthermore, the legitimacy check includes: detecting whether the cloud host network parameters are correct and whether the cloud host network parameters conflict with the configured cloud host network in the database.
[0018] Furthermore, the cloud host network parameters include cloud host MAC address, IP address, default gateway, static route and DNS information.
[0019] Furthermore, the DHCP request types include: routing request, discovery message, key message, request message, notification message and error message.
[0020] Furthermore, the process of performing a corresponding response according to the DHCP request type includes:
[0021] If the DHCP request type is a discovery message, a critical message, or a request message, the DHCP response message is returned to the cloud host, and the cloud host network parameters are reallocated to the cloud host or the lease of the current IP address is extended for the cloud host;
[0022] If the DHCP request type is a notification message, the cloud host is deleted from the list of configured cloud hosts in the database, releasing the IP address occupied by the cloud host;
[0023] If the DHCP request type is an error message, a warning level log of the message is recorded and the cloud host network parameters are checked for conflicts.
[0024] A cloud host network management system, the system comprising:
[0025] Cloud host module, creates and runs cloud hosts;
[0026] The network management module obtains the DHCP request of the cloud host; determines whether the DHCP request is a routing request. If so, configures the cloud host network parameters and cloud host network according to the network parameters of the server corresponding to the cloud host. If not, obtains the MAC address of the cloud host that issued the DHCP request; determines whether the cloud host MAC address is in the list of configured cloud hosts in the database. If so, automatically responds according to the DHCP request type. If not, discards the DHCP request;
[0027] The virtual switch module connects the network management module and the cloud host module, transmits the DHCP request of the cloud host to the network management module, and then transmits the corresponding response back from the network management module.
[0028] Further, the network management module includes a data storage unit, a server network management unit, a cloud host network management unit, a virtual switch control unit, a DHCP request receiving unit and a DHCP request responding unit;
[0029] Wherein, the data storage unit is used to establish a connection between the network management module and the database;
[0030] A server network management unit, used to configure and query the server network;
[0031] Cloud host network management unit, used to configure and query cloud host network;
[0032] The virtual switch control unit is used to establish a session between the network management module and the virtual switch module, and can issue flow tables, receive data from the virtual switch, or send data to the virtual switch;
[0033] A DHCP request receiving unit is used to receive a DHCP request from a cloud host, query the cloud host network parameters of the cloud host, and transfer the DHCP request to a DHCP request response unit if the cloud host is in the list of configured cloud hosts in the database, otherwise the request is discarded;
[0034] The DHCP request response unit is used to respond to the DHCP request and send the corresponding response back to the cloud host through the virtual switch.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] 1. The present invention standardizes the process of cloud host network management. When facing a large-scale distributed virtualized environment, it can autonomously respond to different DHCP request types and make responses with a fast response speed. It obtains the source MAC address according to the DHCP request and immediately discards the DHCP request issued by the cloud host that is not assigned by the system, which can prevent malicious attacks and ensure the security of the cloud host.
[0037] 2. The present invention improves the efficiency of allocating cloud host network parameters by manually or automatically setting parameters, while also reducing the errors and complexity of pure manual configuration, and the configuration method is simple;
[0038] 3. The present invention verifies the legality of the cloud host network parameters, and instantly detects whether the cloud host network parameters are correct and whether the cloud host network parameters conflict with the configured cloud host network in the database, so that the configuration of the cloud host network is more accurate and faster, and the stability of the cloud host network is also enhanced. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flow chart of the method of the present invention;
[0040] Figure 2 This is a schematic diagram of the cloud host network management service cluster of the present invention;
[0041] Figure 3 A flow chart of the server network configuration for the present invention;
[0042] Figure 4 A flow chart of configuring a cloud host network for the present invention. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0044] Example 1
[0045] This embodiment intends to disclose a cloud host network management system, including:
[0046] Cloud host module, creates and runs cloud hosts;
[0047] A network management module, including a data storage unit, a server network management unit, a cloud host network management unit, a virtual switch control unit, a DHCP request receiving unit, and a DHCP request responding unit;
[0048] Wherein, the data storage unit is used to establish a connection between the network management module and the database;
[0049] A server network management unit, used to configure and query the server network;
[0050] Cloud host network management unit, used to configure and query cloud host network;
[0051] The virtual switch control unit is used to establish a session between the network management module and the virtual switch module, and can issue flow tables, receive data from the virtual switch, or send data to the virtual switch;
[0052] A DHCP request receiving unit is used to receive a DHCP request from a cloud host, query the cloud host network parameters of the cloud host, and if the cloud host network parameters of the cloud host are in the list of configured cloud hosts in the database, transfer the DHCP request to the DHCP request response unit, otherwise discard the request;
[0053] A DHCP request response unit, used to respond to the DHCP request and send the corresponding response back to the cloud host through the virtual switch;
[0054] The network management module receives the DHCP request of the cloud host through the DHCP request receiving unit and determines whether the DHCP request is a routing request. If so, the cloud host network management unit is used to configure the cloud host network parameters and cloud host network according to the network parameters of the server corresponding to the cloud host. If not, the cloud host network management unit is used to obtain the MAC address of the cloud host that issued the DHCP request; the DHCP request receiving unit is then used to determine whether the cloud host MAC address is in the list of configured cloud hosts in the database. If so, the DHCP request is transferred to the DHCP request response unit, and the DHCP request response unit automatically responds according to the DHCP request type. If not, the DHCP request is discarded;
[0055] The virtual switch module connects the network management module and the cloud host module, transmits the DHCP request of the cloud host to the network management module, and then transmits the corresponding response back from the network management module.
[0056] The cloud host network management system is actually applied in a distributed virtualized network. This network includes the server where the cloud host is located and the database that stores all network configuration information. The physical nodes of the network are divided into two types according to their functions: computing nodes and network nodes. The cloud host runs on the computing node, and the cloud host and computing nodes are connected through a virtual switch. The network management module runs on the network node, and the network management module and network nodes are also connected through a virtual switch module. The virtual switch module forwards all DHCP requests of the cloud host to the network management module by default. The cloud host network management system supports load balancing and can quickly complete capacity expansion deployment on other nodes of the distributed virtualized network.
[0057] Multiple cloud host network management systems are physically combined into a cloud host network management service cluster, which runs on a group of physical machines, such as Figure 2 As shown, a cloud host network management system is installed on each physical machine and is connected to the database.
[0058] Before using the cloud host, you need to configure the server network. The server is a virtual server and the server network is of IPv6 type. The configured server parameters include the server's IP address, available IP address pool, DNS, default gateway, and static routing.
[0059] like Figure 3 As shown, the server network management unit of the network management module is used to configure the server network.
[0060] When there are multiple servers in a distributed virtualized network, the server network management unit can also automatically detect whether the server network configuration is correct and whether there is any conflict with the configured server network.
[0061] When the cloud host module receives user information and creates a cloud host, it will add a network card and connect it to the virtual switch module in a bridging manner, and use the virtual switch to transmit the DHCP request of the cloud host to the network management module.
[0062] In this embodiment, the virtual switch module obtains the DHCP request of the cloud host by sending a flow table.
[0063] The network management module uses the cloud host network management unit to configure the cloud host network parameters. The configuration methods include manual allocation and automatic allocation. Among them, automatic allocation actually reads the DHCP request issued when the cloud host is created, and allows the cloud host network management unit to automatically allocate a free IP address in the database to the cloud host. When the cloud host starts, its network card uses this method by default to obtain network configuration parameters such as the IP address.
[0064] Cloud host network parameters include cloud host MAC address, IP address, default gateway, static route, and DNS information.
[0065] Similarly, the cloud host network configuration is also done through the cloud host network management unit. The configuration process is as follows Figure 4 Shown include:
[0066] Perform a validity check on the cloud host network parameters. If the check passes, the cloud host network parameters are stored in the database. Otherwise, an error message is returned.
[0067] According to the cloud host network parameters stored in the database, query the corresponding server network, encapsulate the routing announcement data packet according to the server network parameters, and send the routing announcement data packet to the cloud host;
[0068] The cloud host updates its own routing table based on the server network routing information in the routing announcement data packet data to achieve network communication.
[0069] There is a many-to-one relationship between the cloud host network and the server network, that is, a cloud host network port can only be assigned one IP address, but there will be multiple cloud hosts on a server, and the cloud host network is set up based on the server network.
[0070] The validity check of the cloud host network parameters includes checking whether the cloud host network parameters are correct and whether the cloud host network parameters conflict with the configured cloud host network in the database.
[0071] DHCP request types include: RESTful (routing request), DHCP DISCOVER (discovery message), DHCPREQUEST (critical message), DHCP RENEW (request message), DHCP RELEASE (notification message) and DHCP DECLINE (error message).
[0072] The process of responding to DHCP requests according to their type includes:
[0073] If the DHCP request is a DHCP DISCOVER (discovery message), the corresponding DHCP REPLY (DHCP response message) is returned to the cloud host to reallocate the cloud host network parameters to the cloud host;
[0074] If the DHCP request is a DHCP REQUEST (critical message), the corresponding DHCP REPLY (DHCP response message) is returned to the cloud host to reallocate the cloud host network parameters or extend the lease of the current IP address for the cloud host;
[0075] If the DHCP request is a DHCP RENEW (request message), the corresponding DHCP REPLY (DHCP response message) is returned to the cloud host to extend the lease of the current IP address for the cloud host;
[0076] If the DHCP request is a DHCP RELEASE (notification message), the cloud host is deleted from the list of configured cloud hosts in the database, and the IP address occupied by the cloud host is released;
[0077] If the DHCP request is a DHCP DECLINE (error message), a warning level log of the message is recorded and the cloud host network parameters are checked for conflicts.
[0078] Example 2
[0079] This embodiment is based on a cloud host network management system of the above embodiment 1, and is intended to disclose a cloud host network management method. The method steps are as follows: Figure 1 As shown, including:
[0080] Step S1, creating and starting a cloud host on a server;
[0081] Step S2, obtaining the DHCP request of the cloud host;
[0082] Step S3, determining whether the DHCP request is a routing request, if so, configuring the cloud host network parameters and cloud host network according to the network parameters of the server corresponding to the cloud host, if not, obtaining the MAC address of the cloud host that issued the DHCP request;
[0083] Step S4, determine whether the cloud host MAC address is in the list of configured cloud hosts in the database, if so, automatically respond according to the DHCP request type, if not, discard the DHCP request.
[0084] The specific implementation details of the above method can be understood by referring to the relevant description and effects in the system of Example 1.
[0085] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A cloud host network management method, characterized in that: The method comprises: Create and start a cloud host on the server; Get the DHCP request of the cloud host; Determine whether the DHCP request is a routing request. If so, configure the cloud host network parameters and cloud host network according to the network parameters of the server corresponding to the cloud host. If not, obtain the MAC address of the cloud host that issued the DHCP request. Determine whether the cloud host MAC address is in the list of configured cloud hosts in the database. If so, automatically respond according to the DHCP request type. If not, discard the DHCP request.
2. A cloud host network management method according to claim 1, characterized in that: The DHCP request of the cloud host is obtained by sending a flow table.
3. A cloud host network management method according to claim 1, characterized in that: The manner of configuring the cloud host network parameters includes manual allocation and automatic allocation, wherein the automatic allocation can automatically allocate idle cloud host network parameters to the cloud host.
4. A cloud host network management method according to claim 1, characterized in that: The process of configuring the cloud host network includes: Perform a validity check on the cloud host network parameters. If the check passes, the cloud host network parameters are stored in the database. Otherwise, an error message is returned. According to the cloud host network parameters stored in the database, query the corresponding server network, encapsulate the routing announcement data packet according to the server network parameters, and send the routing announcement data packet to the cloud host; The cloud host updates its own routing table based on the server network routing information in the routing announcement data packet data to achieve network communication.
5. A cloud host network management method according to claim 4, characterized in that: The legitimacy check includes: detecting whether the cloud host network parameters are correct and whether the cloud host network parameters conflict with the configured cloud host network in the database.
6. A cloud host network management method according to claim 1, characterized in that: The cloud host network parameters include the cloud host MAC address, IP address, default gateway, static routing and DNS information.
7. A cloud host network management method according to claim 1, characterized in that: The DHCP request types include: routing request, discovery message, key message, request message, notification message and error message.
8. A cloud host network management method according to claim 7, characterized in that: The process of responding to the DHCP request type includes: If the DHCP request type is a discovery message, a DHCP response message is returned to the cloud host, and the cloud host network parameters are reallocated to the cloud host; If the DHCP request type is a critical message, the DHCP response message is returned to the cloud host, and the cloud host network parameters are reallocated to the cloud host or the lease of the current IP address is extended for the cloud host; If the DHCP request type is a request message, the DHCP response message is returned to the cloud host to extend the lease of the current IP address for the cloud host; If the DHCP request type is a notification message, the cloud host is deleted from the list of configured cloud hosts in the database, releasing the IP address occupied by the cloud host; If the DHCP request type is an error message, a warning level log of the message is recorded and the cloud host network parameters are checked for conflicts.
9. A cloud host network management system, characterized in that: The system comprises: Cloud host module, creates and runs cloud hosts; The network management module obtains the DHCP request of the cloud host; determines whether the DHCP request is a routing request. If so, configures the cloud host network parameters and cloud host network according to the network parameters of the server corresponding to the cloud host. If not, obtains the MAC address of the cloud host that issued the DHCP request; determines whether the cloud host MAC address is in the list of configured cloud hosts in the database. If so, automatically responds according to the DHCP request type. If not, discards the DHCP request; The virtual switch module connects the network management module and the cloud host module, transmits the DHCP request of the cloud host to the network management module, and then transmits the corresponding response back from the network management module.
10. A cloud host network management system according to claim 9, characterized in that: The network management module includes a data storage unit, a server network management unit, a cloud host network management unit, a virtual switch control unit, a DHCP request receiving unit and a DHCP request responding unit; Wherein, the data storage unit is used to establish a connection between the network management module and the database; A server network management unit, used to configure and query the server network; Cloud host network management unit, used to configure and query cloud host network; The virtual switch control unit is used to establish a session between the network management module and the virtual switch module, and can issue flow tables, receive data from the virtual switch, or send data to the virtual switch; A DHCP request receiving unit is used to receive a DHCP request from a cloud host, query the cloud host network parameters of the cloud host, and transfer the DHCP request to a DHCP request response unit if the cloud host is in the list of configured cloud hosts in the database, otherwise the request is discarded; The DHCP request response unit is used to respond to the DHCP request and send the corresponding response back to the cloud host through the virtual switch.