US11979307B2ActiveUtilityA1

Network switching method and apparatus, electronic device, and storage medium

Assignee: INSPUR SUZHOU INTELLIGENT TECHNOLOGY CO LTDPriority: Jul 23, 2021Filed: Feb 28, 2022Granted: May 7, 2024
Est. expiryJul 23, 2041(~15 yrs left)· nominal 20-yr term from priority
Inventors:Yuanfeng Liu
H04L 43/20H04L 41/0816H04L 41/40H04L 41/082H04L 41/0806H04L 41/0823H04L 67/1001Y02D30/50H04L 41/0813H04L 41/0895H04L 43/08
44
PatentIndex Score
0
Cited by
13
References
20
Claims

Abstract

The present disclosure discloses a network switching method and apparatus, an electronic device, and a computer-read-able storage medium, the method including: creating a smart monitor used for monitoring port changes; if the smart monitor monitors that a smart port for deploying a network is created, performing network deployment of a bare metal server (bms) node by using the smart port, wherein a smart network interface card is installed in the bms node, and the smart network interface card generates a first bare metal port at the bms node and generates a second bare metal port corresponding to the first bare metal port in an operating system of the smart network interface card; if the smart monitor monitors that a neutron port of a neutron network is updated, adding the second bare metal port into a network bridge of the bms node.

Claims

exact text as granted — not AI-modified
The invention claimed is: 
     
       1. A network switching method, comprising:
 creating a smart monitor configured to monitor port changes in an operating system of a smart network interface card; 
 in a case that the smart monitor monitors that a smart port of a deployed network is created, performing network deployment of a bare metal server node by using the smart port, wherein the smart network interface card is installed on the bare metal server node, and the smart network interface card generates a first bare metal port at the bare metal server node and generates a second bare metal port corresponding to the first bare metal port in the operating system of the smart network interface card; 
 in a case that the smart monitor monitors that a neutron port of a neutron network is updated, adding the second bare metal port into a network bridge of the bare metal server node, and binding the second bare metal port in the network bridge to the neutron port, wherein the neutron port is located in a neutron; and 
 issuing a flow table of the neutron network to an open virtual switch bare of the bare metal server node to perform switching from the deployed network of a bare metal service to the neutron network. 
 
     
     
       2. The network switching method according to  claim 1 , wherein performing the network deployment of the bare metal server node by using the smart port comprises:
 adding the second bare metal port into the network bridge of the bare metal server node, and binding the second bare metal port in the network bridge to the smart port; 
 issuing a flow table of the deployed network to the open virtual switch bare of the bare metal server node to perform the network deployment of the bare metal service; and 
 after the network deployment is completed, deleting the smart port, and deleting the second bare metal port from the network bridge of the bare metal server node. 
 
     
     
       3. The network switching method according to  claim 2 , wherein after the smart port of the deployed network is created, the method further comprises:
 synchronizing port information of the smart port and a binding attribute of the smart port to a port-binding table; and 
 after the neutron port of the neutron network is updated, the method further comprises: 
 synchronizing port information of the neutron port and a binding attribute of the neutron port to the port-binding table. 
 
     
     
       4. The network switching method according to  claim 3 , wherein synchronizing the port information of the smart port and the binding attribute of the smart port to the port-binding table comprises:
 synchronizing the port information of the smart port and the binding attribute of the smart port to a port-binding table of a southbound database of an open virtual network through a northbound database of the open virtual network; and 
 correspondingly, synchronizing the port information of the neutron port and the binding attribute of the neutron port to the port-binding table comprises: 
 synchronizing the port information of the neutron port and the binding attribute of the neutron port to the port-binding table of the southbound database of the open virtual network through the northbound database of the open virtual network. 
 
     
     
       5. The network switching method according to  claim 3 , wherein the smart monitor is configured to monitor changes of the port-binding table;
 when the smart monitor monitors that the smart port is newly added in the port-binding table, the step of adding the second bare metal port into the network bridge of the bare metal server node, and binding the second bare metal port in the network bridge to the smart port is executed; 
 when the smart monitor monitors that the smart port in the port-binding table is deleted, the step of deleting the second bare metal port from the network bridge of the bare metal server node is executed; and 
 when the smart monitor monitors that the neutron port is newly added in the port-binding table, the step of adding the second bare metal port into the network bridge of the bare metal server node, and binding the second bare metal port in the network bridge to the neutron port is executed. 
 
     
     
       6. The network switching method according to  claim 2 , wherein before adding the second bare metal port into the network bridge of the bare metal server node, the method further comprises:
 obtaining a hostname in a creating instruction of the smart port, and determining whether the hostname in the creating instruction is consistent with a hostname of the bare metal server node; and 
 in a case that the hostname in the creating instruction is consistent with the hostname of the bare metal server node, executing the step of adding the second bare metal port into the network bridge of the bare metal server node. 
 
     
     
       7. The network switching method according to  claim 2 , wherein after the network deployment is completed, deleting the smart port comprises:
 in a case that it is detected that a user mirror image is copied into a hard disk of the bare metal server node, determining that the network deployment is completed, and deleting the smart port. 
 
     
     
       8. The network switching method according to  claim 1 , wherein before creating the smart monitor configured to monitor the port changes, the method further comprises:
 deploying Openstack on a deployment node, and installing the smart network interface card at the bare metal server node; and 
 configuring internet protocol (IP) addresses for the deployment node and the bare metal server node, respectively, to achieve communication between the deployment node and the bare metal server node. 
 
     
     
       9. An electronic device, comprising a communication interface and a bus system, wherein the electronic device further comprises:
 a memory, configured to store a computer program; and 
 a processor, configured to implement, when the processor executes the computer program, the steps of the network switching method according to  claim 1 ; 
 wherein the communication interface, the memory and the processor are coupled together through the bus system. 
 
     
     
       10. The electronic device according to  claim 9 , wherein before creating the smart monitor configured to monitor the port changes, the method further comprises:
 deploying Openstack on a deployment node, and installing the smart network interface card at the bare metal server node; and 
 configuring internet protocol (IP) addresses for the deployment node and the bare metal server node, respectively, to achieve communication between the deployment node and the bare metal server node. 
 
     
     
       11. A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program; and when the computer program is executed by a processor, the steps of the network switching method according to  claim 1  are implemented. 
     
     
       12. The network switching method according to  claim 1 , wherein in the case that the smart monitor monitors that a smart port of a deployed network is created, performing network deployment of the bare metal server node by using the smart port, wherein the smart network interface card is installed on the bare metal server node, and the smart network interface card generates a first bare metal port at the bare metal server node and generates the second bare metal port corresponding to the first bare metal port in the operating system of the smart network interface card comprises:
 by deploying the network, a bare metal obtaining a memory file system of a deployment mirror image. 
 
     
     
       13. The network switching method according to  claim 12 , wherein after the bare metal obtains the memory file system of the deployment mirror image, the method further comprises:
 after the memory file system is powered on, copying a user mirror image to a bare metal system. 
 
     
     
       14. The network switching method according to  claim 8 , wherein the Openstack comprises a neutron ironic nova component. 
     
     
       15. The electronic device according to  claim 9 , wherein performing the network deployment of the bare metal server node by using the smart port comprises:
 adding the second bare metal port into the network bridge of the bare metal server node, and binding the second bare metal port in the network bridge to the smart port; 
 issuing a flow table of the deployed network to the open virtual switch bare of the bare metal server node to perform the network deployment of the bare metal service; and 
 after the network deployment is completed, deleting the smart port, and deleting the second bare metal port from the network bridge of the bare metal server node. 
 
     
     
       16. The electronic device according to  claim 15 , wherein after the smart port of the deployed network is created, the method further comprises:
 synchronizing port information of the smart port and a binding attribute of the smart port to a port-binding table; and 
 after the neutron port of the neutron network is updated, the method further comprises: 
 synchronizing port information of the neutron port and a binding attribute of the neutron port to the port-binding table. 
 
     
     
       17. The electronic device according to  claim 16 , wherein synchronizing the port information of the smart port and the binding attribute of the smart port to the port-binding table comprises:
 synchronizing the port information of the smart port and the binding attribute of the smart port to a port-binding table of a southbound database of an open virtual network through a northbound database of the open virtual network; and 
 correspondingly, synchronizing the port information of the neutron port and the binding attribute of the neutron port to the port-binding table comprises: 
 synchronizing the port information of the neutron port and the binding attribute of the neutron port to the port-binding table of the southbound database of the open virtual network through the northbound database of the open virtual network. 
 
     
     
       18. The electronic device according to  claim 16 , wherein the smart monitor is configured to monitor changes of the port-binding table;
 when the smart monitor monitors that the smart port is newly added in the port-binding table, the step of adding the second bare metal port into the network bridge of the bare metal server node, and binding the second bare metal port in the network bridge to the smart port is executed; 
 when the smart monitor monitors that the smart port in the port-binding table is deleted, the step of deleting the second bare metal port from the network bridge of the bare metal server node is executed; and 
 when the smart monitor monitors that the neutron port is newly added in the port-binding table, the step of adding the second bare metal port into the network bridge of the bare metal server node, and binding the second bare metal port in the network bridge to the neutron port is executed. 
 
     
     
       19. The electronic device according to  claim 15 , wherein before adding the second bare metal port into the network bridge of the bare metal server node, the method further comprises:
 obtaining a hostname in a creating instruction of the smart port, and determining whether the hostname in the creating instruction is consistent with a hostname of the bare metal server node; and 
 in a case that the hostname in the creating instruction is consistent with the hostname of the bare metal server node, executing the step of adding the second bare metal port into the network bridge of the bare metal server node. 
 
     
     
       20. The electronic device according to  claim 15 , wherein after the network deployment is completed, deleting the smart port comprises:
 in a case that it is detected that a user mirror image is copied into a hard disk of the bare metal server node, determining that the network deployment is completed, and deleting the smart port.

Join the waitlist — get patent alerts

Track US11979307B2 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.