CN114553637A - Method for accessing distributed bare metal server to network and application - Google Patents

Method for accessing distributed bare metal server to network and application Download PDF

Info

Publication number
CN114553637A
CN114553637A CN202210182156.0A CN202210182156A CN114553637A CN 114553637 A CN114553637 A CN 114553637A CN 202210182156 A CN202210182156 A CN 202210182156A CN 114553637 A CN114553637 A CN 114553637A
Authority
CN
China
Prior art keywords
bare metal
access
endpoint
network
servers
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210182156.0A
Other languages
Chinese (zh)
Other versions
CN114553637B (en
Inventor
陈光辉
过育红
张露
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huayun Data Holding Group Co ltd
Original Assignee
Huayun Data Holding Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huayun Data Holding Group Co ltd filed Critical Huayun Data Holding Group Co ltd
Priority to CN202210182156.0A priority Critical patent/CN114553637B/en
Publication of CN114553637A publication Critical patent/CN114553637A/en
Application granted granted Critical
Publication of CN114553637B publication Critical patent/CN114553637B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for accessing a distributed bare metal server to a network and application thereof, wherein the method comprises the following steps: the method comprises the following steps: determining an end point serving as a bare metal access network port according to the states of all bare metal access end points and the number of logic interfaces, and creating a logic interface at the end point; and creating a virtual machine interface in the SDN, and adding the virtual machine interface into the logic interface, wherein the MAC address of the virtual machine interface is the MAC address of the bare metal access network port, and the IP address of the virtual machine interface is allocated in a corresponding virtual network by the SDN. The method can uniformly distribute the flow of the bare metal server network to the access end points of each bare metal server by adopting a minimum load scheduling algorithm when the logic interface is established, thereby improving the processing capacity of the whole bare metal server access network.

Description

Method for accessing distributed bare metal server to network and application
Technical Field
The invention relates to the field of cloud computing, in particular to a method for accessing a distributed bare metal server to a network and application thereof.
Background
In cloud computing systems, computing services are typically provided by virtual machines. In high performance computing scenarios, bare metal servers are typically used to improve computing performance subject to performance limitations of the virtual machines. The bare metal server is used as a supplement of the virtual machine, has the characteristics of high performance of the traditional physical server, high safety and reliability on the cloud, flexibility and quick distribution and the like, and is widely applied to key services of scenes such as databases, big data, containers, high-performance computing and AI. The bare metal server is generally deployed in a physical network, and the cloud computing system is responsible for life cycle management of the bare metal server and needs to be accessed to a virtual network of the cloud computing system.
The physical network of the bare metal server is usually a VLAN network, the network inside the cloud computing system is usually an overlay network, and at present, the VLAN network is usually accessed to the overlay network by using a tunnel encapsulation technology, such as VXLAN, GRE, MPLS, and the like. For example, (1) a centralized network node is used as a VXLAN gateway. And connecting the internal network of the cloud network and the bare metal physical network by using the general server and running a functional program with the virtual router. The virtual router has tunnel encapsulation and decapsulation capabilities and an ARP reply function. And the SDN controller maintains the mapping relation between the internal network and the physical network and issues the conversion rule to the virtual router. However, this method requires the use of additional server resources, and the centralized network node is prone to failure point concentration, failure and performance bottleneck. (2) Distributed computing nodes are used as access points. And completing the access of the bare metal server network to the cloud network by utilizing the function of the virtual router on the computing node. However, the method does not perform traffic isolation according to network granularity on the accessed network, the traffic of the bare metal network may be concentrated on a certain node, which results in the decrease of traffic processing capability, and there is no mechanism to process the fast switching of traffic channels when the node is down or the program is abnormal, which makes the reliability difficult to guarantee. (3) Hardware devices that support VXLAN gateway functionality are used. A gateway device using a dedicated VXLAN function, for example, uses a VXLAN switch to connect a bare metal server network to a cloud network. And the controller transmits the mapping configuration of the VXLAN and the VLAN to the gateway equipment. The gateway device acts as an endpoint of a tunnel and is in tunnel communication with the virtual machine. The method needs to use additional special gateway equipment, the SDN controller needs to have the capability of controlling the gateway equipment, and the type selection of the gateway equipment is limited.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide a method for accessing a distributed bare metal server to a network and application thereof, and solves the problems that the bare metal server needs an external server, a special gateway device and the traffic of the bare metal server network cannot be uniformly distributed to the access network when the bare metal server is accessed to the network.
To achieve the above object, an embodiment of the present invention provides a method for accessing a distributed bare metal server to a network.
In one or more embodiments of the invention, the method comprises: determining an end point serving as a bare metal access network port according to the states of all bare metal access end points and the number of logic interfaces, and creating a logic interface at the end point; and creating a virtual machine interface in the SDN, and adding the virtual machine interface into the logic interface, wherein the MAC address of the virtual machine interface is the MAC address of the bare metal access network port, and the IP address of the virtual machine interface is allocated in a corresponding virtual network by the SDN.
In one or more embodiments of the present invention, the determining, according to the states of all bare metal access endpoints and the number of logical interfaces, an endpoint serving as a bare metal access network port includes: judging whether the state of the bare metal access endpoint is normal or not; if yes, judging whether the number of the logic interfaces of the bare metal access endpoint is smaller than the preset minimum number of the logic interfaces; and if so, setting the minimum number of the logical interfaces as the number of the logical interfaces of the bare metal access endpoint, and setting the endpoint serving as the bare metal access network port as the bare metal access endpoint.
In one or more embodiments of the invention, the method further comprises: when the access network port of the bare metal network is down or the proxy state of the virtual router is abnormal, selecting an access endpoint in a normal state to reconstruct a logical interface, and moving the access network port of the bare metal network to the reconstructed logical interface; and refreshing the MAC address table on the switch according to the gratuitous ARP sent by the virtual machine in the computing node.
In one or more embodiments of the invention, the method further comprises: when the access endpoint with the fault recovers to be normal, migrating the logic interface of the appointed access endpoint to an appointed new access endpoint according to the API provided by the system; or automatically migrating a part of the logic interfaces on the access endpoints with more access bare metal servers to the access endpoints with less bare metal servers according to the load of the access endpoints.
In one or more embodiments of the present invention, the automatically migrating a part of a logical interface on an access endpoint with more access to a bare metal server to an access endpoint with less bare metal server according to a load of the access endpoint includes: calculating the average number of bare metal servers on each access endpoint; judging whether the number of bare metal servers of the current bare metal access endpoint is smaller than the average number of bare metal servers; if yes, calculating the difference value between the number of bare metal servers of the current bare metal access endpoint and the average number of bare metal servers, and migrating redundant logic interfaces in the bare metal access endpoint with the number of bare metal servers larger than the average number of bare metal servers to the current bare metal access endpoint, wherein the number of bare metal servers migrated to the logic interfaces of the current bare metal access endpoint is smaller than the difference value.
In another aspect of the present invention, an apparatus for a distributed bare metal server access network is provided, which includes a selection module, a creation module, and an interface module.
And the creating module is used for determining the endpoint serving as the bare metal access network port according to the states of all the bare metal access endpoints and the number of the logic interfaces and creating the logic interfaces at the endpoint.
An interface module, configured to create a virtual machine interface in an SDN, and add the virtual machine interface to the logical interface, where a MAC address of the virtual machine interface is a MAC address of the bare metal access network port, and an IP address of the virtual machine interface is allocated in a corresponding virtual network by the SDN.
In one or more embodiments of the invention, the creation module is further configured to: judging whether the state of the bare metal access endpoint is normal or not; if yes, judging whether the number of the logic interfaces of the bare metal access endpoint is smaller than the preset minimum number of the logic interfaces; and if so, setting the minimum number of the logical interfaces as the number of the logical interfaces of the bare metal access endpoint, and setting the endpoint serving as the bare metal access network port as the bare metal access endpoint.
In one or more embodiments of the invention, the apparatus further comprises: the fault processing module is used for selecting an access endpoint in a normal state to reconstruct a logical interface and moving the access network port of the bare metal network to the reconstructed logical interface when the access network port of the bare metal network is down or the proxy state of the virtual router is abnormal; and refreshing the MAC address table on the switch according to the gratuitous ARP sent by the virtual machine in the computing node.
In one or more embodiments of the invention, the apparatus further comprises: the system comprises a failure recovery module, a failure recovery module and a failure recovery module, wherein the failure recovery module is used for migrating a logic interface of a specified access endpoint to a specified new access endpoint according to an API (application program interface) provided by a system when the failed access endpoint is recovered to be normal; or automatically migrating a part of the logic interfaces on the access endpoints with more access bare metal servers to the access endpoints with less bare metal servers according to the load of the access endpoints.
In one or more embodiments of the invention, the failure recovery module is further configured to: calculating the average number of bare metal servers on each access endpoint; judging whether the number of bare metal servers of the current bare metal access endpoint is smaller than the average number of bare metal servers; if yes, calculating the difference value between the number of bare metal servers of the current bare metal access endpoint and the average number of bare metal servers, and migrating redundant logic interfaces in the bare metal access endpoint with the number of bare metal servers larger than the average number of bare metal servers to the current bare metal access endpoint, wherein the number of bare metal servers migrated to the logic interfaces of the current bare metal access endpoint is smaller than the difference value.
In another aspect of the present invention, there is provided an electronic device including: at least one processor; and a memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method of distributed bare metal server access network as described above.
In another aspect of the invention, a computer readable storage medium is provided, having stored thereon a computer program, which when executed by a processor, carries out the steps of the method of distributed bare metal server access network as described.
Compared with the prior art, according to the method for accessing the distributed bare metal server to the network and the application of the method, the flow of the bare metal server network can be uniformly distributed to the access end points of each bare metal server by adopting a minimum load scheduling algorithm when the logic interface is created, and the processing capacity of the whole bare metal server access network is improved.
According to the method for accessing the distributed bare metal server to the network and the application thereof, the states of the network card and the virtual router can be automatically detected for switching, so that higher bandwidth and network reliability are provided; the number of bare metal servers on each endpoint is balanced by rebalancing techniques and is not limited by dedicated network devices.
Drawings
FIG. 1 is a flow diagram of a method of a distributed bare metal server accessing a network according to an embodiment of the invention;
FIG. 2 is an overall architecture diagram of a method of a distributed bare metal server accessing a network, according to an embodiment of the invention;
FIG. 3 is a block diagram of a method of accessing a network by a distributed bare metal server according to an embodiment of the invention;
FIG. 4 is a scheduling flow diagram of a method of accessing a network by a distributed bare metal server according to an embodiment of the invention;
FIG. 5 is an expanded flow diagram of a method of a distributed bare metal server accessing a network according to an embodiment of the invention;
FIG. 6 is a fault structure diagram of a method of accessing a network by a distributed bare metal server according to an embodiment of the invention;
FIG. 7 is a rebalancing flowchart of a method of accessing a network by a distributed bare metal server according to an embodiment of the present invention;
FIG. 8 is a block diagram of an apparatus for a distributed bare metal server access network according to an embodiment of the present invention;
fig. 9 is a hardware block diagram of a computing device of a distributed bare metal server access network according to an embodiment of the invention.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Example 1
As shown in fig. 1 to 4, a method for accessing a network by a distributed bare metal server according to an embodiment of the present invention is described, which includes the following steps.
In step S101, an endpoint serving as a bare metal access network port is determined according to the states of all bare metal access endpoints and the number of logical interfaces, and a logical interface is created at the endpoint.
For VXLAN-type internal networks, VNI (VXLAN Network Identifier) is used for unique identification. The bare metal server is accessed in the VXLAN internal network, and the mapping relation between VXLAN and VLAN needs to be specified. And planning a VLAN pool of the bare metal physical network when the bare metal service is deployed. Unused VLANs are allocated in the VLAN pool before the VXLAN internal network accesses the bare metal server. And the SDN controller stores the mapping relation between the VXLAN and the VLAN in a database. Planning a plurality of computing nodes as access endpoints of the bare metal network, and planning a physical network port at each access endpoint as an access network port of the bare metal network. The SDN control selects an access endpoint to create a logic interface, and one logic interface corresponds to a bare metal physical network.
In order to uniformly distribute the traffic of the bare metal server network to each bare metal access endpoint, a scheduling algorithm with the minimum load is adopted when a logical interface is created.
Specifically, the minimum number of logical interfaces min _ li _ num is set to 0xFFFF, the bare metal access network port min _ pi is set to null, and the access endpoint of the bare metal server is traversed. Judging whether the state of the access endpoint is normal or not, if not, directly and continuously traversing the access endpoint of the next bare metal server; if yes, acquiring the number of logical interfaces of the current access endpoint, if the number of logical interfaces current _ li _ num of the current access endpoint is smaller than the minimum number of logical interfaces min _ li _ num, setting the minimum number of logical interfaces as the number of logical interfaces of the bare metal access endpoint (min _ li _ num is current _ li _ num), and setting the bare metal access network port as the physical network port of the current bare metal server access endpoint. And continuously traversing the access end point of the next bare metal server until all the access end points of all the bare metal servers are completely traversed, and creating a logic interface on the end point which is finally set as the bare metal access network port.
In step S102, a virtual machine interface is created in the SDN, and the virtual machine interface is added to the logical interface.
As shown in fig. 2, each virtual network accessing a bare metal server selects a compute node running a virtual router on which to create a logical interface. For each access network port of the bare metal server, a VMI (Virtual Machine Interface) is created for each bare metal server access network port in the logical Interface. The MAC address of the VMI is the MAC address of the bare metal server access portal, and the IP address is allocated by the SDN in the corresponding virtual network.
Example 2
As shown in fig. 5 to 7, a method for accessing a network by a distributed bare metal server in one embodiment of the present invention is described, which includes the following steps.
In step S201, an endpoint serving as a bare metal access network port is determined according to the states of all bare metal access endpoints and the number of logical interfaces, and a logical interface is created at the endpoint.
For VXLAN-type internal networks, VNI (VXLAN Network Identifier ) is used for unique identification. The bare metal server is accessed in the VXLAN internal network, and the mapping relation between VXLAN and VLAN needs to be specified. And planning a VLAN pool of the bare metal physical network when the bare metal service is deployed. Unused VLANs are allocated in a VLAN pool before the VXLAN internal network accesses the bare metal server. And the SDN controller stores the mapping relation between the VXLAN and the VLAN in a database. And planning a plurality of computing nodes as access endpoints of the bare metal network, and planning a physical network port at each access endpoint as an access network port of the bare metal network. The SDN control selects an access endpoint to create a logic interface, and one logic interface corresponds to a bare metal physical network.
In order to uniformly distribute the traffic of the bare metal server network to each bare metal access endpoint, a scheduling algorithm with the minimum load is adopted when a logical interface is created.
Specifically, the minimum number of logical interfaces min _ li _ num is set to 0xFFFF, the bare metal access network port min _ pi is set to null, and the access endpoint of the bare metal server is traversed. Judging whether the state of the access endpoint is normal or not, if not, directly and continuously traversing the access endpoint of the next bare metal server; if yes, acquiring the number of logical interfaces of the current access endpoint, if the number of logical interfaces current _ li _ num of the current access endpoint is smaller than the minimum number of logical interfaces min _ li _ num, setting the minimum number of logical interfaces as the number of logical interfaces of the bare metal access endpoint (min _ li _ num is current _ li _ num), and setting the bare metal access network port as the physical network port of the current bare metal server access endpoint. And continuously traversing the access end point of the next bare metal server until all the access end points of all the bare metal servers are completely traversed, and creating a logic interface on the end point which is finally set as the bare metal access network port.
In step S202, a virtual machine interface is created in the SDN, and the virtual machine interface is added to the logical interface.
Each virtual network accessing the bare metal server selects a compute node running a virtual router on which to create a logical interface. For each access network port of the bare metal server, a VMI (Virtual Machine Interface) is created for each bare metal server access network port in the logical Interface. The MAC address of the VMI is the MAC address of the bare metal server access portal, and the IP address is allocated by the SDN in the corresponding virtual network.
In step S203, when the access port of the bare metal network is down or the virtual router agent state is abnormal, the access endpoint in the normal state is selected to reconstruct the logical interface, and the access port of the bare metal network is moved to the reconstructed logical interface.
When the bare metal service is deployed, a plurality of computing nodes running the virtual router are selected as access endpoints of the bare metal server, so that higher bandwidth and network reliability are provided. And when the system detects that the network port of the access endpoint of the bare metal server is down or the proxy state of the virtual router is abnormal, performing fault switching of the access endpoint.
Specifically, according to a scheduling algorithm with the minimum load, a computing node in a normal state is selected, a logic interface is rebuilt, and an access network port of the bare metal server is migrated to the newly-built logic interface from the logic interface on the fault endpoint. For a physical network, a gratuitous ARP needs to be sent from a virtual machine in the virtual network and the MAC address table on the switch is refreshed.
In step S204, when the failed access endpoint returns to normal, a part of the logical interfaces on the access endpoint with more access bare metal servers is automatically migrated to the access endpoint with less bare metal servers according to the load of the access endpoint.
The scenarios requiring fault recovery are divided into two categories: one is that when the access endpoint with a fault recovers to normal, the traffic recovery, i.e. fault recovery, is required to be performed, so as to utilize the forwarding capability of the original access endpoint to improve the processing capability of the network traffic; another scenario is that the number of bare metal servers in different networks is different, and the traffic is also different, and balancing needs to be performed according to the number of bare metal servers on each access endpoint.
The failure recovery schemes are also divided into two types: one is migration by an administrator from a certain logical interface of a specified access endpoint to a specified new access port through a system-provided API; one is that the system automatically migrates a part of the logical interfaces on the end points with more access bare metal servers to the end points with less bare metal servers according to the load of the access end points, so as to achieve a new balance.
Specifically, the average number avg _ bm _ num of bare metal servers at the access endpoint of each bare metal server is calculated, the access endpoint of the bare metal server is traversed, the number of bare metal servers at the access endpoint is calculated, and if the number of bare metal servers at the access endpoint is greater than the average number avg _ bm _ num of bare metal servers, the access endpoint of the next bare metal server is directly traversed; if the number of the bare metal servers of the access endpoint is less than the average number of the bare metal servers avg _ bm _ num, calculating a difference delta between the number of the access endpoint and the average number of the bare metal servers, traversing the endpoints of which the number of the bare metal servers of the access endpoint is greater than the average number of the bare metal servers, and migrating redundant logic interfaces to the access endpoint from the endpoints, wherein the number of the bare metal servers migrated to the logic interface of the access endpoint is less than the difference.
Referring to fig. 8, an apparatus for accessing a network by a distributed bare metal server according to an embodiment of the present invention is described.
In an embodiment of the present invention, an apparatus for accessing a network by a distributed bare metal server includes a creation module 801 and an interface module 802.
A creating module 801, configured to determine an endpoint serving as a bare metal access network port according to states of all bare metal access endpoints and the number of logical interfaces, and create a logical interface at the endpoint.
The interface module 802 is configured to create a virtual machine interface in the SDN, and add the virtual machine interface to a logical interface, where a MAC address of the virtual machine interface is a MAC address of a bare metal access network port, and an IP address of the virtual machine interface is allocated in a corresponding virtual network by the SDN.
The creation module 801 is further configured to: judging whether the state of the bare metal access endpoint is normal or not; if yes, judging whether the number of the logic interfaces of the bare metal access endpoint is smaller than the preset minimum number of the logic interfaces; if so, setting the minimum number of the logical interfaces as the number of the logical interfaces of the bare metal access endpoint, and setting the endpoint serving as the bare metal access network port as the bare metal access endpoint.
The fault processing module 803 is configured to select an access endpoint in a normal state to reconstruct a logical interface when an access port of the bare metal network is down or the virtual router agent state is abnormal, and move the access port of the bare metal network to the reconstructed logical interface; and refreshing the MAC address table on the switch according to the gratuitous ARP sent by the virtual machine in the computing node.
A failure recovery module 804, configured to migrate a logic interface of a specified access endpoint to a specified new access endpoint according to an API provided by the system when a failed access endpoint recovers to normal; or automatically migrating a part of the logic interfaces on the access endpoints with more access bare metal servers to the access endpoints with less bare metal servers according to the load of the access endpoints.
The failure recovery module 804 is further configured to: calculating the average number of bare metal servers on each access endpoint; judging whether the number of bare metal servers of the current bare metal access endpoint is smaller than the average number of bare metal servers; if so, calculating the difference value between the number of bare metal servers of the current bare metal access endpoint and the average number of bare metal servers, and migrating redundant logic interfaces in the bare metal access endpoint with the number of bare metal servers larger than the average number of bare metal servers to the current bare metal access endpoint, wherein the number of bare metal servers migrated to the logic interfaces of the current bare metal access endpoint is smaller than the difference value.
Fig. 9 illustrates a hardware block diagram of a computing device 90 for a distributed bare metal server access network according to embodiments of the present description. As shown in fig. 9, computing device 90 may include at least one processor 901, storage 902 (e.g., non-volatile storage), memory 903, and a communication interface 904, and the at least one processor 901, storage 902, memory 903, and communication interface 904 are connected together via a bus 905. The at least one processor 901 executes at least one computer readable instruction stored or encoded in the memory 902.
It should be appreciated that the computer-executable instructions stored in the memory 902, when executed, cause the at least one processor 901 to perform the various operations and functions described above in connection with fig. 1-9 in the various embodiments of the present specification.
In embodiments of the present description, computing device 90 may include, but is not limited to: personal computers, server computers, workstations, desktop computers, laptop computers, notebook computers, mobile computing devices, smart phones, tablet computers, cellular phones, Personal Digital Assistants (PDAs), handheld devices, messaging devices, wearable computing devices, consumer electronics, and so forth.
According to one embodiment, a program product, such as a machine-readable medium, is provided. A machine-readable medium may have instructions (i.e., elements described above as being implemented in software) that, when executed by a machine, cause the machine to perform various operations and functions described above in connection with fig. 1-9 in the various embodiments of the present specification. Specifically, a system or apparatus may be provided which is provided with a readable storage medium on which software program code implementing the functions of any of the above embodiments is stored, and causes a computer or processor of the system or apparatus to read out and execute instructions stored in the readable storage medium.
According to the method for accessing the distributed bare metal server to the network and the application thereof, the flow of the bare metal server network can be uniformly distributed to the access end point of each bare metal server by adopting a minimum load scheduling algorithm when the logic interface is created, so that the processing capacity of the bare metal server integrally accessing the network is improved.
According to the method for accessing the distributed bare metal server to the network and the application thereof, the states of the network card and the virtual router can be automatically detected for switching, so that higher bandwidth and network reliability are provided; the number of bare metal servers on each endpoint is balanced by rebalancing techniques and is not limited by dedicated network devices.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing descriptions of specific exemplary embodiments of the present invention have been presented for purposes of illustration and description. It is not intended to limit the invention to the precise form disclosed, and obviously many modifications and variations are possible in light of the above teaching. The exemplary embodiments were chosen and described in order to explain certain principles of the invention and its practical application to enable one skilled in the art to make and use various exemplary embodiments of the invention and various alternatives and modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims and their equivalents.

Claims (12)

1. A method of accessing a network by a distributed bare metal server, the method comprising:
determining an end point serving as a bare metal access network port according to the states of all bare metal access end points and the number of logic interfaces, and creating a logic interface at the end point; and
creating a virtual machine interface in the SDN, and adding the virtual machine interface into the logic interface, wherein the MAC address of the virtual machine interface is the MAC address of the bare metal access network port, and the IP address of the virtual machine interface is allocated in a corresponding virtual network by the SDN.
2. The method for accessing the network by the distributed bare metal server according to claim 1, wherein the determining the endpoint as the bare metal access network port according to the states and the number of logical interfaces of all bare metal access endpoints comprises:
judging whether the state of the bare metal access endpoint is normal or not; if so,
judging whether the number of the logic interfaces of the bare metal access endpoint is less than the preset minimum number of the logic interfaces; if so,
and setting the minimum number of the logical interfaces as the number of the logical interfaces of the bare metal access endpoint, and setting the endpoint serving as the bare metal access network port as the bare metal access endpoint.
3. The method of distributed bare metal server access network of claim 1, wherein the method further comprises:
when the access network port of the bare metal network is down or the proxy state of the virtual router is abnormal, selecting an access endpoint in a normal state to reconstruct a logical interface, and moving the access network port of the bare metal network to the reconstructed logical interface; and
and refreshing the MAC address table on the switch according to the gratuitous ARP sent by the virtual machine in the computing node.
4. The method of accessing a network by a distributed bare metal server according to claim 3, wherein the method further comprises:
when the access endpoint with the fault recovers to be normal, migrating the logic interface of the appointed access endpoint to an appointed new access endpoint according to the API provided by the system; or
And automatically migrating a part of the logic interfaces on the access endpoints with more access bare metal servers to the access endpoints with less bare metal servers according to the load of the access endpoints.
5. The method of claim 4, wherein the automatically migrating a portion of logical interfaces on access endpoints with more access bare metal servers to access endpoints with fewer access bare metal servers according to load of the access endpoints comprises:
calculating the average number of bare metal servers on each access endpoint;
judging whether the number of bare metal servers of the current bare metal access endpoint is smaller than the average number of bare metal servers; if so,
calculating the difference between the number of bare metal servers of the current bare metal access endpoint and the average number of bare metal servers, and migrating redundant logic interfaces in the bare metal access endpoint, the number of which is greater than the average number of bare metal servers, to the current bare metal access endpoint, wherein the number of bare metal servers migrated to the logic interfaces of the current bare metal access endpoint is less than the difference.
6. An apparatus for accessing a network by a distributed bare metal server, the apparatus comprising:
the system comprises a creating module, a judging module and a judging module, wherein the creating module is used for determining an end point serving as a bare metal access network port according to the states of all bare metal access end points and the number of logic interfaces and creating a logic interface at the end point; and
an interface module, configured to create a virtual machine interface in an SDN, and add the virtual machine interface to the logical interface, where a MAC address of the virtual machine interface is a MAC address of the bare metal access network port, and an IP address of the virtual machine interface is allocated in a corresponding virtual network by the SDN.
7. The apparatus of the distributed bare metal server access network of claim 6, wherein the creation module is further to:
judging whether the state of the bare metal access endpoint is normal or not; if so,
judging whether the number of the logic interfaces of the bare metal access endpoint is less than the preset minimum number of the logic interfaces; if so,
and setting the minimum number of the logical interfaces as the number of the logical interfaces of the bare metal access endpoint, and setting the endpoint serving as the bare metal access network port as the bare metal access endpoint.
8. The apparatus of a distributed bare metal server access network according to claim 6, wherein the apparatus further comprises:
the fault processing module is used for selecting an access endpoint in a normal state to reconstruct a logical interface and moving the access network port of the bare metal network to the reconstructed logical interface when the access network port of the bare metal network is down or the proxy state of the virtual router is abnormal; and
and refreshing the MAC address table on the switch according to the gratuitous ARP sent by the virtual machine in the computing node.
9. The apparatus of a distributed bare metal server access network according to claim 8, wherein the apparatus further comprises:
the system comprises a failure recovery module, a failure recovery module and a failure recovery module, wherein the failure recovery module is used for migrating a logic interface of a specified access endpoint to a specified new access endpoint according to an API (application program interface) provided by a system when the failed access endpoint is recovered to be normal; or
And automatically migrating a part of the logic interfaces on the access endpoints with more access bare metal servers to the access endpoints with less bare metal servers according to the load of the access endpoints.
10. The apparatus of a distributed bare metal server access network according to claim 9, wherein the failure recovery module is further to:
calculating the average number of bare metal servers on each access endpoint;
judging whether the number of bare metal servers of the current bare metal access endpoint is smaller than the average number of bare metal servers; if so,
calculating the difference between the number of bare metal servers of the current bare metal access endpoint and the average number of bare metal servers, and migrating redundant logic interfaces in the bare metal access endpoint, of which the number of bare metal servers is greater than the average number of bare metal servers, to the current bare metal access endpoint, wherein the number of bare metal servers migrated to the logic interfaces of the current bare metal access endpoint is less than the difference.
11. An electronic device, comprising:
at least one processor; and
a memory storing instructions that, when executed by the at least one processor, cause the at least one processor to perform the method of distributed bare metal server access network of any of claims 1 to 5.
12. A computer readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of distributed bare metal server access network according to any of the claims 1 to 5.
CN202210182156.0A 2022-02-25 2022-02-25 Method for accessing distributed bare metal server to network and application Active CN114553637B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210182156.0A CN114553637B (en) 2022-02-25 2022-02-25 Method for accessing distributed bare metal server to network and application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210182156.0A CN114553637B (en) 2022-02-25 2022-02-25 Method for accessing distributed bare metal server to network and application

Publications (2)

Publication Number Publication Date
CN114553637A true CN114553637A (en) 2022-05-27
CN114553637B CN114553637B (en) 2024-03-19

Family

ID=81678633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210182156.0A Active CN114553637B (en) 2022-02-25 2022-02-25 Method for accessing distributed bare metal server to network and application

Country Status (1)

Country Link
CN (1) CN114553637B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200218561A1 (en) * 2019-01-09 2020-07-09 Vmware, Inc. Methods and apparatus to deploy a hybrid workload domain
CN113612688A (en) * 2021-07-14 2021-11-05 曙光信息产业(北京)有限公司 Distributed software defined network control system and construction method thereof
CN113783765A (en) * 2021-08-10 2021-12-10 济南浪潮数据技术有限公司 Method, system, equipment and medium for realizing intercommunication between cloud internal network and cloud external network
CN114024799A (en) * 2022-01-06 2022-02-08 杭州优云科技有限公司 Method and device for interconnecting bare metal server and virtualization network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200218561A1 (en) * 2019-01-09 2020-07-09 Vmware, Inc. Methods and apparatus to deploy a hybrid workload domain
CN113612688A (en) * 2021-07-14 2021-11-05 曙光信息产业(北京)有限公司 Distributed software defined network control system and construction method thereof
CN113783765A (en) * 2021-08-10 2021-12-10 济南浪潮数据技术有限公司 Method, system, equipment and medium for realizing intercommunication between cloud internal network and cloud external network
CN114024799A (en) * 2022-01-06 2022-02-08 杭州优云科技有限公司 Method and device for interconnecting bare metal server and virtualization network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郭进先: "云管平台裸金属分布式PXE 服务", 信息与电脑 *

Also Published As

Publication number Publication date
CN114553637B (en) 2024-03-19

Similar Documents

Publication Publication Date Title
JP6498230B2 (en) Flexible HDD / SSD storage support system and method
US10445197B1 (en) Detecting failover events at secondary nodes
US9350682B1 (en) Compute instance migrations across availability zones of a provider network
EP3239984B1 (en) Methods and systems for analyzing record and usage in post package repair
CN110417569B (en) Network link fault processing method and tunnel endpoint equipment
CN106664216B (en) VNF switching method and device
US10764119B2 (en) Link handover method for service in storage system, and storage device
JP2019513259A (en) Method and apparatus for expanding high availability server cluster
US11036535B2 (en) Data storage method and apparatus
US20150178117A1 (en) Selecting cloud computing resource based on fault tolerance and network efficiency
CN102316043B (en) Port virtualization method, switch and communication system
US9043638B1 (en) Method for enhancing memory fault tolerance
WO2019085975A1 (en) Network topology display method and network management device
CN110636036A (en) OpenStack cloud host network access control method based on SDN
CN115604272B (en) Load balancing method, device, system and system establishing method, device and medium
CN112491592B (en) Storage resource grouping method, system, terminal and storage medium
CN105354332A (en) Method and system for implementing mutual standby of database and middleware based on BCP (Batch Communications Program)
CN112073499A (en) Dynamic service method of multi-machine type cloud physical server
US9338126B2 (en) System and method for communicating in a telecommunication network via independent key routing and data locality tables
CN116016028B (en) Method, system, medium and equipment for creating multiple network interfaces for Pod based on IPvlan
CN114553637B (en) Method for accessing distributed bare metal server to network and application
US20130325984A1 (en) System and Methods for Communicating in a Telecommunication Network Using Common Key Routing and Data Locality Tables
US12069098B2 (en) Security policy enforcement for resources in bridge mode
CN113709018A (en) Vxlan-based virtualized network access method and system
CN116319354B (en) Network topology updating method based on cloud instance migration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant