Method for adding cloud physical host to openstack cluster VPC
By developing cloud physical host network function plug-ins and agents based on the Neutron extension architecture, the problem of cloud physical hosts being unable to be added to the VXLAN network is solved. Communication between cloud physical hosts and virtual machines is realized without modifying the existing network architecture, meeting the requirements of high scalability and flexibility.
Patent Information
- Application Number
- CN202510866003.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-26
- Publication Date
- 2025-09-12
AI Technical Summary
In existing OpenStack cluster VPCs, cloud physical hosts cannot be fully added to the VXLAN network type, resulting in deficiencies in network scalability and cross-physical network deployment.
Develop cloud physical host network function service plug-ins and agents based on Neutron's extended architecture. These plug-ins and agents collaboratively manage network communications between virtual machines and cloud physical hosts, and use VXLAN tunnels to achieve direct connections between cloud physical hosts and virtual machines, including automated configuration of virtual network card information and network mapping relationships.
Cloud physical hosts can be added to user-created VPCs of the VXLAN network type, ensuring smooth communication between cloud physical hosts and virtual machines. Deployment is simple and does not require modifying the existing network architecture. Simply load the L2gw plug-in to manage network communications.
Smart Images

Figure CN120639619A_ABST
Abstract
Description
Technical Field
[0001] The present invention discloses a method for adding a cloud physical host to an openstack cluster VPC, and relates to the technical field of cloud computing. Background Art
[0002] Cloud computing platforms are internet-based computing services that allow users to access shared computing resources such as servers, storage, databases, networks, software, analytics, and intelligence over the internet. With the rapid development of cloud computing technology in recent years, more and more users are deploying business services on virtual machines (VMs) within data centers' virtual private networks (VPCs). Similarly, user data is stored in the data centers on these cloud platforms.
[0003] Cloud physical host services are one of the services offered by cloud platforms. They are increasingly popular because they provide users with computing and network resources similar to those of traditional physical servers. Cloud physical hosts are physical server services provided in the cloud, combining the advantages of bare metal servers and cloud computing. They combine the high performance and security of physical servers with the flexibility and high availability of cloud computing, making them ideal for applications that require high performance and elastic scalability. Therefore, adding cloud physical hosts to a VPC, allowing them to reside in the same VPC as virtual machines, is an increasingly popular deployment method. From a user's perspective, cloud physical hosts are no different from virtual machines within the same VPC, and east-west and north-south network communications for cloud physical hosts are no different from those for ordinary virtual machines.
[0004] However, most cloud platforms based on OpenStack currently use VXLAN as the network type for creating VPCs for users. Neutron, the component responsible for managing virtual networks in the OpenStack project, currently only supports adding cloud physical hosts to VPCs using VLAN networks. Compared to VXLAN networks, VLAN networks have limitations in scalability, cross-physical network deployment, and application diversity. They do not fully support adding cloud physical hosts to OpenStack cluster VPCs. Summary of the Invention
[0005] In response to the problems of the prior art, the present invention provides a method for adding a cloud physical host to an OpenStack cluster VPC. The method utilizes a plug-in and a plug-in agent for managing the network functions of the cloud physical host on the extended architecture provided by Neutron. The two work together to manage the network communication between the virtual machine and the cloud physical host.
[0006] The specific scheme proposed by the present invention is:
[0007] The present invention provides a method for adding a cloud physical host to an OpenStack cluster VPC, comprising:
[0008] Step 1: Develop a cloud physical host network function service plug-in and a cloud physical host network service agent on the Neutron extension architecture, deploy the cloud physical host network function service plug-in on the control node of the cloud platform, and deploy the cloud physical host network service agent on the computing node and network node of the cloud platform.
[0009] Step 2: Use the cloud physical host network function service plug-in to automatically configure the virtual machine side of the cloud physical host.
[0010] Step 3: When creating a cloud physical host, the cloud physical host network function service plug-in senses and obtains the virtual network card update message, queries the virtual network card information, and obtains the virtual network of the virtual network card where the cloud physical host is located, as well as the virtual machines on the virtual network.
[0011] Step 4: The virtual network card information is sent to the cloud physical host network service agent of the computing node where the virtual machine is located through the cloud physical host network function service plug-in. The cloud physical host network service agent builds a VXLAN tunnel of the leaf switch directly connected to the computing node and the cloud physical host based on the virtual network card information.
[0012] Step 5: Initiate a ping operation through the virtual machine, use the ARP Request broadcast message to send through the computing node, the VTEP on the leaf switch directly connected to the cloud physical host through the VXLAN tunnel receives the ARP Request broadcast message, and forwards the ARP Request broadcast message to the cloud physical host.
[0013] Step 6: After receiving the ARP Request broadcast message through the cloud physical host, it sends an ARP Response unicast message, which is sent to the compute node through the directly connected leaf switch through the VXLAN tunnel.
[0014] Step 7: The compute node sends the ARP Response unicast message to the virtual machine. The virtual machine reconstructs it into an ICMP Request unicast message and then sends it to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host sends the ICMP Request unicast message to the cloud physical host. After receiving the ICMP Request unicast message, the cloud physical host responds, thus achieving communication after the cloud physical host is added.
[0015] Furthermore, in step 2 of the method for adding a cloud physical host to an openstack cluster VPC, automatic configuration of the virtual machine side of the cloud physical host is performed, including: configuring the network configuration on the leaf switch directly connected to the cloud physical host, and the mapping relationship between VTEP, VXLAN and VLAN.
[0016] Furthermore, in step 4 of the method for adding a cloud physical host to an openstack cluster VPC, a virtual VTEP is created on the ovs virtual bridge br-tun according to the information of the virtual network card through the cloud physical host network service agent, and the corresponding openflow flow table is issued to build a VXLAN tunnel of the leaf switch directly connecting the computing node and the cloud physical host.
[0017] Furthermore, step 5 of the method for adding a cloud physical host to an openstack cluster VPC is as follows: a ping operation is initiated through the virtual machine, an ARP Request broadcast message is transferred to the br-tun bridge through the br-int bridge of the computing node, the Arp Request message is VXLAN encapsulated, and sent from the VTEP of the computing node through the br-tun bridge. The VTEP on the leaf switch directly connected to the cloud physical host receives the ARP Request broadcast message, decapsulates the ARP Request broadcast message, and forwards the ARP Request broadcast message to the cloud physical host.
[0018] Step 6: After receiving the ARP Request broadcast message through the cloud physical host, it sends an ARP Response unicast message. The directly connected leaf switch encapsulates the ARP Response unicast message and sends it to the computing node through the VXLAN tunnel.
[0019] Step 7: The ARP Response unicast message is sent to the virtual machine through the computing node. The virtual machine reconstructs it into an ICMP Request unicast message, transfers it to the br-tun bridge through the br-int bridge, performs VXLAN encapsulation on the br-tun bridge, and then sends it to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host decapsulates the ICMP Request unicast message and sends it to the cloud physical host. The cloud physical host then responds after receiving the ICMP Request unicast message, thus realizing communication after the cloud physical host is added.
[0020] The present invention also provides a device for adding a cloud physical host to an openstack cluster VPC, comprising a cloud physical host network function service management module, a cloud physical host network service module, an agent module, a management module and a virtual machine management module.
[0021] The cloud physical host network function service management module develops cloud physical host network function service plug-ins and cloud physical host network service agents on the extended architecture of Neutron, deploys the cloud physical host network function service plug-ins on the control nodes of the cloud platform, and deploys the cloud physical host network service agents on the computing nodes and network nodes of the cloud platform.
[0022] The cloud physical host network function service plug-in performs automatic configuration of the virtual machine side of the cloud physical host through the cloud physical host network service module.
[0023] When creating a cloud physical host, the cloud physical host network function service plug-in senses and obtains the virtual network card update message through the cloud physical host network service module, queries the virtual network card information, and obtains the virtual network of the virtual network card where the cloud physical host is located, as well as the virtual machines on the virtual network.
[0024] The cloud physical host network function service plug-in sends the virtual network card information to the proxy module of the cloud physical host network service agent of the computing node where the virtual machine is located through the cloud physical host network service module. The cloud physical host network service agent uses the proxy module to build a VXLAN tunnel of the leaf switch directly connected to the computing node and the cloud physical host based on the virtual network card information.
[0025] The virtual machine initiates a ping operation through the virtual machine management module, uses an ARP Request broadcast message to be sent through the computing node, and the VTEP on the leaf switch directly connected to the cloud physical host through the VXLAN tunnel receives the ARP Request broadcast message and forwards the ARP Request broadcast message to the cloud physical host.
[0026] After receiving the ARP Request broadcast message through the management module, the cloud physical host sends an ARP Response unicast message, which is then sent to the computing node through the directly connected leaf switch via the VXLAN tunnel.
[0027] The compute node sends the ARP Response unicast message to the virtual machine. The virtual machine reconstructs it into an ICMP Request unicast message through the management module and then sends it to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host sends the ICMP Request unicast message to the cloud physical host. The management module of the cloud physical host then responds after receiving the ICMP Request unicast message, thus realizing communication after the cloud physical host is added.
[0028] Furthermore, the cloud physical host network service module of the device for adding a cloud physical host to the openstack cluster VPC performs automatic configuration of the virtual machine side of the cloud physical host, including: configuring the network configuration on the leaf switch directly connected to the cloud physical host, and the mapping relationship between VTEP, VXLAN and VLAN.
[0029] Furthermore, in step 4 of the device for adding a cloud physical host to the openstack cluster VPC, a virtual VTEP is created on the ovs virtual bridge br-tun according to the information of the virtual network card through the cloud physical host network service agent, and the corresponding openflow flow table is issued to build a VXLAN tunnel of the leaf switch directly connected to the computing node and the cloud physical host.
[0030] Furthermore, the virtual machine of the device in which the cloud physical host is added to the openstack cluster VPC initiates a ping operation through the virtual machine management module, transfers the ARP Request broadcast message through the br-int bridge of the computing node to the br-tun bridge, performs VXLAN encapsulation on the Arp Request message, and sends it from the VTEP of the computing node through the br-tun bridge. The VTEP on the leaf switch directly connected to the cloud physical host receives the ARP Request broadcast message, decapsulates the ARP Request broadcast message, and forwards the ARP Request broadcast message to the cloud physical host.
[0031] After receiving the ARP Request broadcast message through the management module, the cloud physical host sends an ARP Response unicast message. The directly connected leaf switch encapsulates the ARP Response unicast message and sends it to the computing node through the VXLAN tunnel.
[0032] The compute node sends an ARP Response unicast message to the virtual machine. The virtual machine reconstructs it into an ICMP Request unicast message through the virtual machine management module. The message is then transferred to the br-tun bridge via the br-int bridge, encapsulated in VXLAN on the br-tun bridge, and then sent to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host decapsulates the ICMP Request unicast message and sends it to the cloud physical host. The cloud physical host's management module then responds after receiving the ICMP Request unicast message, thus achieving communication after the cloud physical host is added.
[0033] The benefits of the present invention are:
[0034] After adopting the solution of the present invention, the cloud physical host can be added to the VPC of the VXLAN network type created by the user.
[0035] The present invention is easy to deploy and does not require modification to the existing network architecture of OpenStack. It only requires loading a plug-in L2gw on the extended architecture provided by Neutron. L2gw is responsible for managing the east-west network communication and north-south network communication of the cloud physical host.
[0036] The present invention has a simple structure and does not require generating a new virtual bridge on a computing node. It only requires adding a VTEP to the existing OVS bridge. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a network architecture diagram of adding cloud physical hosts to a VPC.
[0038] Figure 2 This is a diagram of network communication between cloud physical hosts and virtual machines. DETAILED DESCRIPTION
[0039] The present invention will be further described below with reference to the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention.
[0040] Example 1
[0041] The present invention provides a method for adding a cloud physical host to an OpenStack cluster VPC, comprising:
[0042] Step 1: Develop a cloud physical host network function service plug-in and a cloud physical host network service agent on the Neutron extension architecture, deploy the cloud physical host network function service plug-in on the control node of the cloud platform, and deploy the cloud physical host network service agent on the computing node and network node of the cloud platform.
[0043] Step 2: Use the cloud physical host network function service plug-in to perform automatic configuration of the virtual machine side of the cloud physical host, including: configuring the network configuration on the leaf switch directly connected to the cloud physical host, and the mapping relationship between VTEP, VXLAN and VLAN.
[0044] Step 3: When creating a cloud physical host, the cloud physical host network function service plug-in senses and obtains the virtual network card update message, queries the virtual network card information, and obtains the virtual network of the virtual network card where the cloud physical host is located, as well as the virtual machines on the virtual network.
[0045] Step 4: Send the information of the virtual network card to the cloud physical host network service agent of the computing node where the virtual machine is located through the cloud physical host network function service plug-in, and build a VXLAN tunnel of the leaf switch directly connected to the computing node and the cloud physical host through the cloud physical host network service agent according to the information of the virtual network card, wherein the cloud physical host network service agent creates a virtual VTEP on the ovs virtual bridge br-tun according to the information of the virtual network card, and sends down the corresponding openflow flow table to build a VXLAN tunnel of the leaf switch directly connected to the computing node and the cloud physical host.
[0046] Step 5: Initiate a ping operation through the virtual machine, transfer the ARP Request broadcast message through the br-int bridge of the computing node to the br-tun bridge, perform VXLAN encapsulation on the Arp Request message, send it from the VTEP of the computing node through the br-tun bridge, and the VTEP on the leaf switch directly connected to the cloud physical host receives the ARP Request broadcast message, decapsulates the ARP Request broadcast message, and forwards the ARP Request broadcast message to the cloud physical host.
[0047] Step 6: After receiving the ARP Request broadcast message through the cloud physical host, it sends an ARP Response unicast message. The directly connected leaf switch encapsulates the ARP Response unicast message and sends it to the computing node through the VXLAN tunnel.
[0048] Step 7: The ARP Response unicast message is sent to the virtual machine through the computing node. The virtual machine reconstructs it into an ICMP Request unicast message, transfers it to the br-tun bridge through the br-int bridge, performs VXLAN encapsulation on the br-tun bridge, and then sends it to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host decapsulates the ICMP Request unicast message and sends it to the cloud physical host. The cloud physical host then responds after receiving the ICMP Request unicast message, thus realizing communication after the cloud physical host is added.
[0049] For example: 1) Develop a cloud physical host network function service plug-in (l2gw_plugin) on the extended architecture provided by Neutron; 2) l2gw_plugin is deployed on the control node in the cloud platform environment; 3) Develop a cloud physical host network service agent (l2gw_agent) on the extended architecture provided by Neutron; 4) l2gw_agent is deployed on the computing nodes and network nodes of the cloud platform; 5) l2gw_plugin interacts with l2gw_agent through the RPC (remote procedure call) message mechanism; 6) There are two main messages that affect the network communication of the cloud physical host, namely the virtual network card deletion message (port_delete) and the virtual network card deletion message (port_delete). ); virtual network card update message (port_update); 7) l2gw_plguin receives and processes the RPC message sent by the l2gw_agent agent, then queries the database information related to maintaining the cloud physical host network service, and returns the processing result to the l2gw_agent agent; 8) l2gw_plugin can also additionally perceive the virtual network card deletion message (port_delete) and record the relevant content, and then send it to l2gw_agent through an RPC message; 9) l2gw_plugin can also additionally perceive the virtual network card update message (port_update) and record the relevant content, and then send it to l2gw_agent through an RPC message.
[0050] The basic implementation architecture diagram of the present invention is as follows: Figure 1 As shown in the figure, the main components are as follows: 1) computing node compute-node0 and virtual machine vm0 deployed on it; 2) computing node compute-node1 and virtual machine vm1 deployed on it; 3) cloud physical host CPS0; 4) virtual machines vm0 and vm1 as well as cloud physical host CPS0 belong to the same virtual network VPC0.
[0051] The specific implementation process is as follows: When the CPS0 cloud physical host is added to the VPC0 virtual network, the virtual machines vm0 and vm1 originally in the VPC0 virtual network should now be able to communicate with CPS0 in the east-west network. Below we simulate the communication process of pinging the cloud physical host CPS0 from the vm0 virtual machine. The specific data path is as follows: Figure 2 As shown:
[0052] Prerequisites: This solution mainly explains the automatic configuration of the VM side implemented by l2gw when a CPS cloud physical host is added to a VPC of the VXLAN network type. Therefore, we assume that the network configuration on the leaf switch directly connected to CPS0 has been configured, including the mapping relationship between VTEP, VXLAN, and VLAN, etc.
[0053] After CPS0 is created, the l2gw_plugin deployed on the controller node receives the port_update message. It then queries the information about NIC port0 and discovers that it belongs to the CPS0 cloud physical host and VPC0. The l2gw_plugin also discovers that VMs vm0 and vm1 both belong to VPC0.
[0054] The l2gw_plugin sends the port 0 information to the l2gw-agent on compute-node 0, the compute node where virtual machine vm0 resides. Similarly, the l2gw_plugin sends the port 0 information to the l2gw-agent on compute-node 2, the compute node where virtual machine vm1 resides. Here, we only analyze the processing performed by the l2gw-agent on compute-node 0.
[0055] After receiving the port0 message, the l2gw-agent agent on compute-node0 creates a virtual VTEP on the OVS virtual bridge br-tun and distributes the corresponding OpenFlow flow table. At this point, a VXLAN tunnel has been established between compute-node0 and the leaf switch directly connected to CPS0.
[0056] At this point, VM0 initiates a ping operation. However, the MAC address of port 0 of the CPS0 cloud physical host network interface card doesn't exist in the ARP table in VM0's memory. Therefore, VM0 first sends an ARP request broadcast message. This ARP request broadcast passes through the br-int bridge on compute-node0 and reaches the br-tun bridge. The ARP request message is then encapsulated in VXLAN and sent out from the VTEP via the br-tun bridge.
[0057] At this time, the nodes and network devices that establish a VXLAN tunnel with compute-node0 will receive the ARP Request broadcast message sent by vm0. The VTEP on the leaf switch directly connected to CPS0 will also receive it, decapsulate the VXLAN message, and send it to CPS0.
[0058] After receiving the ARP Request message, the CPS0 cloud physical host sends an ARP Response unicast message. The leaf switch encapsulates the ARP Reply in VXLAN and sends it to the VTEP of compute-node0 through the VXLAN tunnel.
[0059] After receiving the ARP Reply packet, the VTEP on the compute-node0 node decapsulates it and sends it to the br-int bridge through the br-tun bridge. Finally, it sends it to the vm0 virtual machine through the br-int bridge.
[0060] After receiving the ARP Response message from CPS0, vm0 reconstructs the ICMP Request unicast message and then sends it to the br-tun bridge through the br-int bridge. It is then encapsulated in VXLAN on the br-tun bridge and sent to the VTEP of the leaf switch directly connected to CPS0 through the VXLAN tunnel.
[0061] After receiving the VXLAN message, the VTEP of the leaf switch directly connected to CPS0 decapsulates it and then sends the ICMP Request message to CPS0. After receiving the ICMP Request unicast message, CPS0 replies with an ICMP Response message. The return path of the ICMP Response message is the same as the return path of the ARP Reply message, so it is not repeated here.
[0062] Example 2
[0063] The present invention also provides a device for adding a cloud physical host to an openstack cluster VPC, comprising a cloud physical host network function service management module, a cloud physical host network service module, an agent module, a management module and a virtual machine management module.
[0064] The cloud physical host network function service management module develops cloud physical host network function service plug-ins and cloud physical host network service agents on the extended architecture of Neutron, deploys the cloud physical host network function service plug-ins on the control nodes of the cloud platform, and deploys the cloud physical host network service agents on the computing nodes and network nodes of the cloud platform.
[0065] The cloud physical host network function service plug-in performs automatic configuration of the virtual machine side of the cloud physical host through the cloud physical host network service module.
[0066] When creating a cloud physical host, the cloud physical host network function service plug-in senses and obtains the virtual network card update message through the cloud physical host network service module, queries the virtual network card information, and obtains the virtual network of the virtual network card where the cloud physical host is located, as well as the virtual machines on the virtual network.
[0067] The cloud physical host network function service plug-in sends the virtual network card information to the proxy module of the cloud physical host network service agent of the computing node where the virtual machine is located through the cloud physical host network service module. The cloud physical host network service agent uses the proxy module to build a VXLAN tunnel of the leaf switch directly connected to the computing node and the cloud physical host based on the virtual network card information.
[0068] The virtual machine initiates a ping operation through the virtual machine management module, uses an ARP Request broadcast message to be sent through the computing node, and the VTEP on the leaf switch directly connected to the cloud physical host through the VXLAN tunnel receives the ARP Request broadcast message and forwards the ARP Request broadcast message to the cloud physical host.
[0069] After receiving the ARP Request broadcast message through the management module, the cloud physical host sends an ARP Response unicast message, which is then sent to the computing node through the directly connected leaf switch via the VXLAN tunnel.
[0070] The compute node sends the ARP Response unicast message to the virtual machine. The virtual machine reconstructs it into an ICMP Request unicast message through the management module and then sends it to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host sends the ICMP Request unicast message to the cloud physical host. The management module of the cloud physical host then responds after receiving the ICMP Request unicast message, thus realizing communication after the cloud physical host is added.
[0071] Since the information interaction, execution process and other contents of each module in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0072] Similarly, after the device of the present invention adopts the solution of the present invention, the cloud physical host can be added to the VPC of the VXLAN network type created by the user.
[0073] The present invention is easy to deploy and does not require modification to the existing network architecture of OpenStack. It only requires loading a plug-in L2gw on the extended architecture provided by Neutron. L2gw is responsible for managing the east-west network communication and north-south network communication of the cloud physical host.
[0074] The present invention has a simple structure and does not require generating a new virtual bridge on a computing node. It only requires adding a VTEP to the existing OVS bridge.
[0075] It should be noted that not all steps and modules in the above-mentioned processes and device structures are required, and certain steps or modules can be omitted according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or may be implemented by certain components in multiple independent devices.
[0076] The above embodiments are merely preferred embodiments for the purpose of fully illustrating the present invention, and the scope of protection of the present invention is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on the present invention are within the scope of protection of the present invention. The scope of protection of the present invention shall be subject to the claims.
Claims
1. A method for adding a cloud physical host to an openstack cluster VPC, characterized by: include: Step 1: Develop a cloud physical host network function service plug-in and a cloud physical host network service agent on the Neutron extension architecture, deploy the cloud physical host network function service plug-in on the control node of the cloud platform, and deploy the cloud physical host network service agent on the computing node and network node of the cloud platform. Step 2: Use the cloud physical host network function service plug-in to automatically configure the virtual machine side of the cloud physical host. Step 3: When creating a cloud physical host, the cloud physical host network function service plug-in senses and obtains the virtual network card update message, queries the virtual network card information, and obtains the virtual network of the virtual network card where the cloud physical host is located, as well as the virtual machines on the virtual network. Step 4: The virtual network card information is sent to the cloud physical host network service agent of the computing node where the virtual machine is located through the cloud physical host network function service plug-in. The cloud physical host network service agent builds a VXLAN tunnel of the leaf switch directly connected to the computing node and the cloud physical host based on the virtual network card information. Step 5: Initiate a ping operation through the virtual machine, use the ARP Request broadcast message to send through the computing node, the VTEP on the leaf switch directly connected to the cloud physical host through the VXLAN tunnel receives the ARP Request broadcast message, and forwards the ARP Request broadcast message to the cloud physical host. Step 6: After receiving the ARP Request broadcast message through the cloud physical host, it sends an ARP Response unicast message, which is sent to the compute node through the directly connected leaf switch through the VXLAN tunnel. Step 7: The compute node sends the ARP Response unicast message to the virtual machine. The virtual machine reconstructs it into an ICMP Request unicast message and then sends it to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host sends the ICMP Request unicast message to the cloud physical host. After receiving the ICMP Request unicast message, the cloud physical host responds, thus achieving communication after the cloud physical host is added.
2. The method of adding a cloud physical host to an openstack cluster VPC according to claim 1, characterized in that In step 2, the virtual machine side of the cloud physical host is automatically configured, including: configuring the network configuration on the leaf switch directly connected to the cloud physical host, and the mapping relationship between VTEP, VXLAN and VLAN.
3. The method of adding a cloud physical host to an openstack cluster VPC according to claim 1, wherein In step 4, the cloud physical host network service agent creates a virtual VTEP on the OVS virtual bridge br-tun based on the virtual network card information, and issues the corresponding OpenFlow flow table to establish a VXLAN tunnel between the compute node and the leaf switch directly connected to the cloud physical host.
4. The method for adding a cloud physical host to an openstack cluster VPC according to claim 1, wherein step 5 comprises: initiating a ping operation through the virtual machine, transferring the ARP Request broadcast message through the br-int bridge of the computing node to the br-tun bridge, performing VXLAN encapsulation on the Arp Request message, and sending it from the VTEP of the computing node through the br-tun bridge. The VTEP on the leaf switch directly connected to the cloud physical host receives the ARP Request broadcast message, decapsulates the ARP Request broadcast message, and forwards the ARP Request broadcast message to the cloud physical host. Step 6: After receiving the ARP Request broadcast message through the cloud physical host, it sends an ARP Response unicast message. The directly connected leaf switch encapsulates the ARP Response unicast message and sends it to the computing node through the VXLAN tunnel. Step 7: The ARP Response unicast message is sent to the virtual machine through the computing node. The virtual machine reconstructs it into an ICMP Request unicast message, transfers it to the br-tun bridge through the br-int bridge, performs VXLAN encapsulation on the br-tun bridge, and then sends it to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host decapsulates the ICMP Request unicast message and sends it to the cloud physical host. The cloud physical host then responds after receiving the ICMP Request unicast message, thus realizing communication after the cloud physical host is added.
5. A device for adding a cloud physical host to an openstack cluster VPC, characterized by It includes cloud physical host network function service management module, cloud physical host network service module, agent module, management module and virtual machine management module. The cloud physical host network function service management module develops cloud physical host network function service plug-ins and cloud physical host network service agents on the extended architecture of Neutron, deploys the cloud physical host network function service plug-ins on the control nodes of the cloud platform, and deploys the cloud physical host network service agents on the computing nodes and network nodes of the cloud platform. The cloud physical host network function service plug-in performs automatic configuration of the virtual machine side of the cloud physical host through the cloud physical host network service module. When creating a cloud physical host, the cloud physical host network function service plug-in senses and obtains the virtual network card update message through the cloud physical host network service module, queries the virtual network card information, and obtains the virtual network of the virtual network card where the cloud physical host is located, as well as the virtual machines on the virtual network. The cloud physical host network function service plug-in sends the virtual network card information to the proxy module of the cloud physical host network service agent of the computing node where the virtual machine is located through the cloud physical host network service module. The cloud physical host network service agent uses the proxy module to build a VXLAN tunnel of the leaf switch directly connected to the computing node and the cloud physical host based on the virtual network card information. The virtual machine initiates a ping operation through the virtual machine management module, uses an ARP Request broadcast message to be sent through the computing node, and the VTEP on the leaf switch directly connected to the cloud physical host through the VXLAN tunnel receives the ARP Request broadcast message and forwards the ARP Request broadcast message to the cloud physical host. After receiving the ARP Request broadcast message through the management module, the cloud physical host sends an ARP Response unicast message, which is then sent to the computing node through the directly connected leaf switch via the VXLAN tunnel. The compute node sends the ARP Response unicast message to the virtual machine. The virtual machine reconstructs it into an ICMP Request unicast message through the management module and then sends it to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host sends the ICMP Request unicast message to the cloud physical host. The management module of the cloud physical host then responds after receiving the ICMP Request unicast message, thus realizing communication after the cloud physical host is added.
6. The device for adding a cloud physical host to an openstack cluster VPC according to claim 5, wherein the cloud The physical host network service module performs automated configuration of the virtual machine side of the cloud physical host, including: configuring the network configuration on the leaf switch directly connected to the cloud physical host, and the mapping relationship between VTEP, VXLAN and VLAN.
7. The device for adding a cloud physical host to an openstack cluster VPC according to claim 5, characterized in that In step 4, the cloud physical host network service agent creates a virtual VTEP on the OVS virtual bridge br-tun based on the virtual network card information, and issues the corresponding OpenFlow flow table to establish a VXLAN tunnel between the compute node and the leaf switch directly connected to the cloud physical host.
8. The device for adding a cloud physical host to an openstack cluster VPC according to claim 5, characterized in that The virtual machine initiates a ping operation through the virtual machine management module, transfers the ARP Request broadcast message through the br-int bridge of the computing node to the br-tun bridge, performs VXLAN encapsulation on the Arp Request message, and sends it from the VTEP of the computing node through the br-tun bridge. The VTEP on the leaf switch directly connected to the cloud physical host receives the ARP Request broadcast message, decapsulates the ARP Request broadcast message, and forwards the ARP Request broadcast message to the cloud physical host. After receiving the ARP Request broadcast message through the management module, the cloud physical host sends an ARP Response unicast message. The directly connected leaf switch encapsulates the ARP Response unicast message and sends it to the computing node through the VXLAN tunnel. The compute node sends an ARP Response unicast message to the virtual machine. The virtual machine reconstructs it into an ICMP Request unicast message through the virtual machine management module. The message is then transferred to the br-tun bridge via the br-int bridge, encapsulated in VXLAN on the br-tun bridge, and then sent to the VTEP of the leaf switch directly connected to the cloud physical host through the VXLAN tunnel. The leaf switch directly connected to the cloud physical host decapsulates the ICMP Request unicast message and sends it to the cloud physical host. The cloud physical host's management module then responds after receiving the ICMP Request unicast message, thus achieving communication after the cloud physical host is added.