CN111866209A - Method and equipment for distributing network card for cloud host - Google Patents

Method and equipment for distributing network card for cloud host Download PDF

Info

Publication number
CN111866209A
CN111866209A CN202010648650.2A CN202010648650A CN111866209A CN 111866209 A CN111866209 A CN 111866209A CN 202010648650 A CN202010648650 A CN 202010648650A CN 111866209 A CN111866209 A CN 111866209A
Authority
CN
China
Prior art keywords
network card
host
cloud
network
cloud host
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.)
Pending
Application number
CN202010648650.2A
Other languages
Chinese (zh)
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.)
Shanghai Zstack Information Technology Co ltd
Original Assignee
Shanghai Zstack Information Technology 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 Shanghai Zstack Information Technology Co ltd filed Critical Shanghai Zstack Information Technology Co ltd
Priority to CN202010648650.2A priority Critical patent/CN111866209A/en
Publication of CN111866209A publication Critical patent/CN111866209A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses

Abstract

The application aims to provide a scheme for distributing a network card for a cloud host. According to the scheme, network card information of all hosts in a cloud platform is collected and recorded, segmentation operation is carried out on physical network cards supporting SR-IOV in the cloud platform to generate a plurality of VF network cards, the network card information of all the hosts in the cloud platform is collected and recorded again after segmentation is finished, meanwhile, a plurality of virtual network cards are created based on the physical network cards in the cloud platform, a mixed network of the VF network cards and the virtual network cards is built, and then the VF network cards or the virtual network cards are distributed to the cloud hosts according to the requirements of the cloud hosts. Compared with the prior art, the method and the device have the advantages that the user can be liberated from complicated details, so that the use and maintenance cost is reduced; the virtual network card can be created by using the PF while the SR-IOV network card is segmented, so that the problem of insufficient VF quantity is solved; when the resources of the host machine are in shortage or have faults, the cloud host machine can automatically recover on other host machines.

Description

Method and equipment for distributing network card for cloud host
Technical Field
The application relates to the technical field of information, in particular to a technology for distributing a network card for a cloud host.
Background
When the virtual network card equipped in the cloud host can not meet the network performance requirement, the physical network card on the host can be transmitted to the cloud host, so that the cloud host can obtain the network performance close to the physical network card. However, the number of the expansion slot positions of the host board is limited, and the number of the physical network card devices on the host machine is limited. If direct transparent transmission is selected, the requirements of a small number of cloud hosts can be met, and therefore, a network card supporting an SR-IOV (Single-root I/O virtualization) function is generally configured in a host. The network card supporting the SR-IOV function is called PF (physical function), and 8 or more VFs (virtual function) can be cut off under the drive support. The VFs can be transmitted to the cloud host computer in a transparent mode like a physical network card, and network performance higher than that of a virtual network card is provided for the cloud host computer, so that the problem that the number of the physical network cards of the host computer is insufficient is relieved to a certain extent.
The existing transparent transmission implementation scheme of the SR-IOV network card is generally as follows: (1) logging in a host where the cloud host is located; (2) installing a PF driver in a host machine, inquiring the maximum segmentation quantity of the PF driver, and executing segmentation operation; (3) selecting an available VF and acquiring the PCI address of the VF; (4) transparently transmitting the selected VF to the cloud host; (5) installing a VF driver in a cloud host; (6) and unloading the VF from the cloud host after use. However, this solution has the following drawbacks: (1) the details of a single PF and VF need to be known, and the use and maintenance cost is high when the cloud platform is large in scale; (2) an available VF needs to be manually searched for the cloud host, and similarly, the use and maintenance cost is very high when the cloud platform is large in scale; (3) after the VF is manually transmitted through, the cloud host is bound with the host, and when the host has insufficient resources or fails, the cloud host cannot automatically recover on other hosts; (4) the number of VFs that the SR-IOV network card can split is still relatively limited in some cases.
Disclosure of Invention
One object of the present application is to provide a method and device for allocating a network card to a cloud host.
According to an aspect of the present application, there is provided a method for allocating a network card to a cloud host, wherein the method includes:
collecting and recording network card information of all host machines in the cloud platform;
performing segmentation operation on the physical network card supporting the SR-IOV in the cloud platform to generate a plurality of VF network cards, and collecting and recording network card information of all host machines in the cloud platform again after segmentation is completed;
creating a plurality of virtual network cards based on the physical network card in the cloud platform, and constructing a mixed network of the VF network card and the virtual network card;
and distributing the VF network card or the virtual network card for the cloud host according to the requirement of the cloud host.
According to another aspect of the present application, there is also provided an apparatus for allocating a network card to a cloud host, where the apparatus includes:
the network card information collection module is used for collecting and recording network card information of all host machines in the cloud platform;
the network card segmentation module is used for executing segmentation operation on the physical network card supporting the SR-IOV in the cloud platform to generate a plurality of VF network cards, and collecting and recording network card information of all host machines in the cloud platform again after segmentation is finished;
The network card network construction module is used for creating a plurality of virtual network cards based on the physical network cards in the cloud platform and constructing a mixed network of the VF network card and the virtual network card;
and the network card distribution module is used for distributing the VF network card or the virtual network card for the cloud host according to the requirement of the cloud host.
According to yet another aspect of the present application, there is also provided a computing device, wherein the device comprises a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the method for allocating a network card for a cloud host.
According to yet another aspect of the present application, there is also provided a computer readable medium having stored thereon computer program instructions executable by a processor to implement the method for allocating a network card to a cloud host.
In the scheme provided by the application, network card information of all hosts in a cloud platform is collected and recorded firstly, segmentation operation is carried out on a physical network card supporting SR-IOV in the cloud platform, a plurality of VF network cards are generated, the network card information of all hosts in the cloud platform is collected and recorded again after segmentation is completed, meanwhile, a plurality of virtual network cards are created based on the physical network card in the cloud platform, a mixed network of the VF network cards and the virtual network cards is built, and then the VF network cards or the virtual network cards are distributed to the cloud hosts according to the requirements of the cloud hosts. Compared with the prior art, the method and the device have the advantages that the user can be liberated from complicated details, so that the use and maintenance cost is reduced; the VF resource pool and the host machine screening algorithm can be combined, and when the host machine resources are in shortage or have faults, the cloud host machine automatically recovers on other host machines; and the virtual network card can be created by using the PF while the SR-IOV network card is cut, so that the problem of insufficient VF number is solved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a method for allocating a network card to a cloud host according to an embodiment of the present application;
fig. 2 is a schematic diagram of a network card information table of a host according to an embodiment of the present application;
fig. 3 is a schematic diagram of a hybrid network of a VF network card and a virtual network card according to an embodiment of the present application;
fig. 4 is a schematic diagram of a device for allocating a network card to a cloud host according to an embodiment of the present application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, which include both non-transitory and non-transitory, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, program means, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
The embodiment of the application provides a method for distributing a network card for a cloud host in a cloud platform, which comprises the steps of collecting and sorting network card information in the cloud platform, identifying the network card supporting an SR-IOV function, constructing a VF (variable frequency) resource pool after one-key segmentation, and distributing an available VF network card for the cloud host through a distribution algorithm; on one hand, the use and maintenance cost is reduced, and on the other hand, the binding relationship between the cloud host and the host is released. In addition, the embodiment of the application utilizes PF to establish a virtual network card while cutting; and selecting the VF network card when the cloud host has higher performance requirements, selecting the virtual network card if the VF network card is insufficient or the cloud host has low performance requirements, and communicating the VF network card with the virtual network card, thereby balancing the network performance and the flexibility.
In a practical scenario, the device performing the method may be a user equipment, a network device, or a device formed by integrating the user equipment and the network device through a network. The user equipment includes, but is not limited to, a terminal device such as a smartphone, a tablet computer, a Personal Computer (PC), and the like, and the network device includes, but is not limited to, a network host, a single network server, multiple network server sets, or a cloud computing-based computer set. Here, the cloud is made up of a large number of hosts or network servers based on cloud computing (CloudComputing), which is a type of distributed computing, one virtual computer consisting of a collection of loosely coupled computers.
Fig. 1 is a flowchart of a method for allocating a network card to a cloud host according to an embodiment of the present application, where the method includes step S101, step S102, step S103, and step S104.
And S101, collecting and recording network card information of all host machines in the cloud platform.
For example, network card information on all hosts in the cloud platform is automatically collected and sorted and recorded in a database, and preparation can be made for one-key segmentation and dynamic allocation of network cards in the future. The expense for manually acquiring the network card information of the host machine by a user is saved, and the use and maintenance cost is reduced. As shown in fig. 2, the network card information may include a device name, a host where the device is located, a PCI address of the device, whether PF (physical function) or VF (virtual function) is present, a PF address corresponding to the VF, a maximum split amount of the PF, and the like.
Step S102, performing segmentation operation on the physical network cards supporting the SR-IOV in the cloud platform to generate a plurality of VF network cards, and collecting and recording network card information of all host machines in the cloud platform again after segmentation is completed.
For example, if the network card of a host supports the SR-IOV function, a number may be selected within the maximum splitting number range of the PF, and the number is handed to the cloud platform to execute the splitting operation. After the segmentation is completed, the network card information of all the host machines is collected again, so that a plurality of available VF records appear in the database.
In some embodiments, the step S102 includes: and judging whether the physical network cards of all host machines in the cloud platform support SR-IOV, and executing segmentation operation on the physical network cards supporting SR-IOV in the cloud platform to generate a plurality of VF network cards. For example, after the network card information of the host is collected, whether the network card of the host supports the SR-IOV function may be determined by whether the maximum split number of the PF network card of the host is empty.
Step S103, a plurality of virtual network cards are created based on the physical network cards in the cloud platform, and a mixed network of the VF network card and the virtual network cards is constructed.
For example, as shown in fig. 3, it is assumed that there are a plurality of hosts in the cloud platform, and each host has a physical network card connected through a switch. Common network creation methods in cloud platforms include: a network bridge is created on each host machine, and a physical network card and a virtual network card (VNIC) distributed to the cloud host machine are connected to the network bridge, so that the cloud host machine is communicated with the outside. In addition, it can be known through the collected network card information that some of the physical network cards support SR-IOV functions, so that one-key splitting can be performed on the physical network cards to generate a plurality of VF network cards and form a VF resource pool.
In some embodiments, the VF network cards form a VF resource pool; in the mixed network of the VF network card and the virtual network card, the VF network card and the VF network card, the virtual network card and the VF network card and the virtual network card are communicated with each other. For example, there is typically an internal switch in the physical network card that supports the SR-IOV function, through which communication between VFs and PFs and between VFs may be implemented. As shown in fig. 3, in the present solution, a VF network card and a virtual network card (VNIC) are mixed in the same network, VNICs distributed in the network are connected to each other, and VF is also connected to VF, and VF is also connected to VNICs.
And step S104, distributing the VF network card or the virtual network card for the cloud host according to the requirement of the cloud host.
For example, when a network card is allocated to a cloud host from a hybrid network of the VF network card and a virtual network card (VNIC), one of the VF network card and the VNIC may be selected according to the requirement of the cloud host.
In some embodiments, the step S104 includes: if the performance requirement of the cloud host is higher than a preset threshold value, distributing the VF network card for the cloud host; and if the performance requirement of the cloud host is lower than a preset threshold value, distributing the virtual network card for the cloud host. For example, compared with the difference in network performance, there is basically no difference in the operation experience of selecting a VF network card or a virtual network card; when the cloud host has a high performance requirement, the VF network card can be selected, if the VF network card is insufficient or the cloud host has a low performance requirement, the virtual network card is selected, and the VF network card and the virtual network card are communicated with each other, so that balance can be obtained among network performance, usability and flexibility.
In some embodiments, the step S104 includes: and distributing the VF network card or the virtual network card for the cloud host according to the requirements of the cloud host and a host screening algorithm.
For example, the cloud host filters and screens hosts in the starting process, and hosts which cannot meet the resource requirements of the cloud host on a CPU, a memory, a storage space, a network and the like are filtered one by one. Here, the host screening algorithm may be expanded, and the requirement of the cloud host for the VF network card is also used as a filtering condition, so as to implement automatic allocation of the VF network card.
Assume that the cloud host was previously running on host a and has assigned a VF network card therein. And then the cloud host is shut down, and the VF network card is automatically released. When the cloud host is started again, the available hosts are screened again, and the screening result may be host B, because host A may have been allocated to run other cloud hosts during the screening.
Assume that the cloud host is running on host a and has some VF network card assigned to it. When the host machine A has a fault, the VF can be automatically unloaded, then a host machine screening algorithm is operated, a host machine which can simultaneously meet all resource requirements (including VF network card requirements) is reselected and started, and the VF network card in the new host machine is automatically transmitted to the cloud host machine.
When the cloud host is shut down, the VF network card is automatically released and returned to the VF resource pool for other required cloud hosts to use, so that the resource utilization rate is improved.
In summary, a VF resource pool is constructed, and the host screening algorithm is matched, so that the cloud host is no longer bound to a specific VF network card, the host screening algorithm can be executed at any time, and other hosts are selected to run.
In some embodiments, the VF network card may be allocated to the cloud host only when the cloud host runs on a host that meets the VF allocation condition. For example, no matter which host computer the cloud host runs on, a virtual network card can be mounted for the cloud host at any time, so that the virtual network card is basically unlimited, but certain distribution algorithm support is required for distribution of the VF network card.
In some embodiments, the VF allocation conditions include: the physical network card in the host machine supports SR-IOV; the physical network card in the host machine is executed with the segmentation operation; an unallocated VF network card exists in the host machine; and the hardware configuration of the host machine meets the performance requirement of the cloud host machine. The performance requirement of the cloud host may include a requirement for hardware configuration of a CPU, a memory, and the like of the host.
Fig. 4 is a schematic diagram of a device for allocating a network card to a cloud host according to an embodiment of the present application, where the device includes a network card information collection module 401, a network card segmentation module 402, a network card network construction module 403, and a network card allocation module 404.
The network card information collection module 401 collects and records network card information of all hosts in the cloud platform.
For example, network card information on all hosts in the cloud platform is automatically collected and sorted and recorded in a database, and preparation can be made for one-key segmentation and dynamic allocation of network cards in the future. The expense for manually acquiring the network card information of the host machine by a user is saved, and the use and maintenance cost is reduced. As shown in fig. 2, the network card information may include a device name, a host where the device is located, a PCI address of the device, whether PF (physical function) or VF (virtual function) is present, a PF address corresponding to the VF, a maximum split amount of the PF, and the like.
The network card segmentation module 402 executes segmentation operation on the physical network card supporting SR-IOV in the cloud platform to generate a plurality of VF network cards, and collects and records network card information of all hosts in the cloud platform again after segmentation is completed.
For example, if the network card of a host supports the SR-IOV function, a number may be selected within the maximum splitting number range of the PF, and the number is handed to the cloud platform to execute the splitting operation. After the segmentation is completed, the network card information of all the host machines is collected again, so that a plurality of available VF records appear in the database.
In some embodiments, the network card splitting module 402 is configured to: and judging whether the physical network cards of all host machines in the cloud platform support SR-IOV, and executing segmentation operation on the physical network cards supporting SR-IOV in the cloud platform to generate a plurality of VF network cards. For example, after the network card information of the host is collected, whether the network card of the host supports the SR-IOV function may be determined by whether the maximum split number of the PF network card of the host is empty.
The network card network construction module 403 creates a plurality of virtual network cards based on the physical network cards in the cloud platform, and constructs a mixed network of the VF network card and the virtual network card.
For example, as shown in fig. 3, it is assumed that there are a plurality of hosts in the cloud platform, and each host has a physical network card connected through a switch. Common network creation methods in cloud platforms include: a network bridge is created on each host machine, and a physical network card and a virtual network card (VNIC) distributed to the cloud host machine are connected to the network bridge, so that the cloud host machine is communicated with the outside. In addition, it can be known through the collected network card information that some of the physical network cards support SR-IOV functions, so that one-key splitting can be performed on the physical network cards to generate a plurality of VF network cards and form a VF resource pool.
In some embodiments, the VF network cards form a VF resource pool; in the mixed network of the VF network card and the virtual network card, the VF network card and the VF network card, the virtual network card and the VF network card and the virtual network card are communicated with each other. For example, there is typically an internal switch in the physical network card that supports the SR-IOV function, through which communication between VFs and PFs and between VFs may be implemented. As shown in fig. 3, in the present solution, a VF network card and a virtual network card (VNIC) are mixed in the same network, VNICs distributed in the network are connected to each other, and VF is also connected to VF, and VF is also connected to VNICs.
A network card allocation module 404, configured to allocate the VF network card or the virtual network card to the cloud host according to a requirement of the cloud host.
For example, when a network card is allocated to a cloud host from a hybrid network of the VF network card and a virtual network card (VNIC), one of the VF network card and the VNIC may be selected according to the requirement of the cloud host.
In some embodiments, the network card allocation module 404 is configured to: if the performance requirement of the cloud host is higher than a preset threshold value, distributing the VF network card for the cloud host; and if the performance requirement of the cloud host is lower than a preset threshold value, distributing the virtual network card for the cloud host. For example, compared with the difference in network performance, there is basically no difference in the operation experience of selecting a VF network card or a virtual network card; when the cloud host has a high performance requirement, the VF network card can be selected, if the VF network card is insufficient or the cloud host has a low performance requirement, the virtual network card is selected, and the VF network card and the virtual network card are communicated with each other, so that balance can be obtained among network performance, usability and flexibility.
In some embodiments, the network card allocation module 404 is configured to: and distributing the VF network card or the virtual network card for the cloud host according to the requirements of the cloud host and a host screening algorithm.
For example, the cloud host filters and screens hosts in the starting process, and hosts which cannot meet the resource requirements of the cloud host on a CPU, a memory, a storage space, a network and the like are filtered one by one. Here, the host screening algorithm may be expanded, and the requirement of the cloud host for the VF network card is also used as a filtering condition, so as to implement automatic allocation of the VF network card.
Assume that the cloud host was previously running on host a and has assigned a VF network card therein. And then the cloud host is shut down, and the VF network card is automatically released. When the cloud host is started again, the available hosts are screened again, and the screening result may be host B, because host A may have been allocated to run other cloud hosts during the screening.
Assume that the cloud host is running on host a and has some VF network card assigned to it. When the host machine A has a fault, the VF can be automatically unloaded, then a host machine screening algorithm is operated, a host machine which can simultaneously meet all resource requirements (including VF network card requirements) is reselected and started, and the VF network card in the new host machine is automatically transmitted to the cloud host machine.
When the cloud host is shut down, the VF network card is automatically released and returned to the VF resource pool for other required cloud hosts to use, so that the resource utilization rate is improved.
In summary, a VF resource pool is constructed, and the host screening algorithm is matched, so that the cloud host is no longer bound to a specific VF network card, the host screening algorithm can be executed at any time, and other hosts are selected to run.
In some embodiments, the VF network card may be allocated to the cloud host only when the cloud host runs on a host that meets the VF allocation condition. For example, no matter which host computer the cloud host runs on, a virtual network card can be mounted for the cloud host at any time, so that the virtual network card is basically unlimited, but certain distribution algorithm support is required for distribution of the VF network card.
In some embodiments, the VF allocation conditions include: the physical network card in the host machine supports SR-IOV; the physical network card in the host machine is executed with the segmentation operation; an unallocated VF network card exists in the host machine; and the hardware configuration of the host machine meets the performance requirement of the cloud host machine. The performance requirement of the cloud host may include a requirement for hardware configuration of a CPU, a memory, and the like of the host.
To sum up, the network card information of the host machine can be automatically collected, the network card supporting the SR-IOV function is identified, a one-key segmentation function is provided, and a user is liberated from complicated details, so that the use and maintenance cost is reduced; the VF network cards in a plurality of host machines can be abstracted into a VF resource pool, and the available VF network cards are automatically screened out for the cloud host machines through the VF distribution conditions; the VF resource pool and the host machine screening algorithm can be combined, and when the resources of the host machine are in shortage or have faults, the cloud host machine automatically recovers on other host machines; and the virtual network card can be created by using the PF while the SR-IOV network card is cut, so that the problem of insufficient VF number is solved.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Program instructions which invoke the methods of the present application may be stored on a fixed or removable recording medium and/or transmitted via a data stream on a broadcast or other signal-bearing medium and/or stored within a working memory of a computer device operating in accordance with the program instructions. Herein, some embodiments of the present application provide a computing device comprising a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the methods and/or aspects of the embodiments of the present application as described above.
Furthermore, some embodiments of the present application also provide a computer readable medium, on which computer program instructions are stored, the computer readable instructions being executable by a processor to implement the methods and/or aspects of the foregoing embodiments of the present application.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In some embodiments, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (10)

1. A method for distributing a network card for a cloud host, wherein the method comprises the following steps:
collecting and recording network card information of all host machines in the cloud platform;
performing segmentation operation on the physical network card supporting the SR-IOV in the cloud platform to generate a plurality of VF network cards, and collecting and recording network card information of all host machines in the cloud platform again after segmentation is completed;
creating a plurality of virtual network cards based on the physical network card in the cloud platform, and constructing a mixed network of the VF network card and the virtual network card;
and distributing the VF network card or the virtual network card for the cloud host according to the requirement of the cloud host.
2. The method of claim 1, wherein the step of performing a slicing operation on the physical network cards supporting SR-IOV in the cloud platform to generate a plurality of VF network cards comprises:
and judging whether the physical network cards of all host machines in the cloud platform support SR-IOV, and executing segmentation operation on the physical network cards supporting SR-IOV in the cloud platform to generate a plurality of VF network cards.
3. The method of claim 1, wherein the VF network cards form a VF resource pool;
in the mixed network of the VF network card and the virtual network card, the VF network card and the VF network card, the virtual network card and the VF network card and the virtual network card are communicated with each other.
4. The method according to any one of claims 1 to 3, wherein allocating the VF network card or the virtual network card to a cloud host according to the demand of the cloud host comprises:
if the performance requirement of the cloud host is higher than a preset threshold value, distributing the VF network card for the cloud host;
and if the performance requirement of the cloud host is lower than a preset threshold value, distributing the virtual network card for the cloud host.
5. The method according to any one of claims 1 to 3, wherein allocating the VF network card or the virtual network card to a cloud host according to the demand of the cloud host comprises:
and distributing the VF network card or the virtual network card for the cloud host according to the requirements of the cloud host and a host screening algorithm.
6. The method of claim 5, wherein the host screening algorithm comprises:
when the cloud host runs on a host meeting the VF allocation condition, the VF network card can be allocated to the cloud host.
7. The method of claim 6, wherein the VF assignment conditions comprise:
the physical network card in the host machine supports SR-IOV;
the physical network card in the host machine is executed with the segmentation operation;
An unallocated VF network card exists in the host machine;
and the hardware configuration of the host machine meets the performance requirement of the cloud host machine.
8. An apparatus for allocating a network card to a cloud host, wherein the apparatus comprises:
the network card information collection module is used for collecting and recording network card information of all host machines in the cloud platform;
the network card segmentation module is used for executing segmentation operation on the physical network card supporting the SR-IOV in the cloud platform to generate a plurality of VF network cards, and collecting and recording network card information of all host machines in the cloud platform again after segmentation is finished;
the network card network construction module is used for creating a plurality of virtual network cards based on the physical network cards in the cloud platform and constructing a mixed network of the VF network card and the virtual network card;
and the network card distribution module is used for distributing the VF network card or the virtual network card for the cloud host according to the requirement of the cloud host.
9. A computing device, wherein the device comprises a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the device to perform the method of any of claims 1 to 7.
10. A computer readable medium having stored thereon computer program instructions executable by a processor to implement the method of any one of claims 1 to 7.
CN202010648650.2A 2020-07-07 2020-07-07 Method and equipment for distributing network card for cloud host Pending CN111866209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010648650.2A CN111866209A (en) 2020-07-07 2020-07-07 Method and equipment for distributing network card for cloud host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010648650.2A CN111866209A (en) 2020-07-07 2020-07-07 Method and equipment for distributing network card for cloud host

Publications (1)

Publication Number Publication Date
CN111866209A true CN111866209A (en) 2020-10-30

Family

ID=73153103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010648650.2A Pending CN111866209A (en) 2020-07-07 2020-07-07 Method and equipment for distributing network card for cloud host

Country Status (1)

Country Link
CN (1) CN111866209A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491980A (en) * 2020-11-13 2021-03-12 苏州浪潮智能科技有限公司 Cloud host service management method, system, terminal and storage medium
CN112671561A (en) * 2020-12-11 2021-04-16 苏州浪潮智能科技有限公司 Network card configuration method and equipment of cloud host
CN113037563A (en) * 2021-03-26 2021-06-25 山东英信计算机技术有限公司 Cloud platform network optimization method, device and system and readable storage medium
CN113630265A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Virtual network redundancy backup method and device based on intelligent network card
CN113656176A (en) * 2021-08-19 2021-11-16 北京百度网讯科技有限公司 Cloud equipment distribution method, device, system, electronic equipment, medium and product
CN113806021A (en) * 2021-09-23 2021-12-17 上海德拓信息技术股份有限公司 Method and system for transparent transmission of physical equipment by virtual machine
CN114465902A (en) * 2022-01-07 2022-05-10 苏州浪潮智能科技有限公司 Method, system, equipment and medium for cloud host multi-network card management bond

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339955A1 (en) * 2012-06-08 2013-12-19 Jeff Prawer Sr-iov failover & aggregation control system to ensure within-physical-port veb loopback
CN104168135A (en) * 2014-08-06 2014-11-26 中国船舶重工集团公司第七0九研究所 Network card resource pooling management method and system
CN105119724A (en) * 2015-07-20 2015-12-02 山东超越数控电子有限公司 Network virtualization implementation method based on Loongson platform
CN106557444A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 The method and apparatus for realizing SR-IOV network interface cards is, the method and apparatus for realizing dynamic migration
CN107544841A (en) * 2016-06-29 2018-01-05 中兴通讯股份有限公司 Live migration of virtual machine method and system
CN109525515A (en) * 2018-10-23 2019-03-26 郑州云海信息技术有限公司 The management method and device of network interface card in a kind of cloud platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130339955A1 (en) * 2012-06-08 2013-12-19 Jeff Prawer Sr-iov failover & aggregation control system to ensure within-physical-port veb loopback
CN104168135A (en) * 2014-08-06 2014-11-26 中国船舶重工集团公司第七0九研究所 Network card resource pooling management method and system
CN105119724A (en) * 2015-07-20 2015-12-02 山东超越数控电子有限公司 Network virtualization implementation method based on Loongson platform
CN106557444A (en) * 2015-09-30 2017-04-05 中兴通讯股份有限公司 The method and apparatus for realizing SR-IOV network interface cards is, the method and apparatus for realizing dynamic migration
CN107544841A (en) * 2016-06-29 2018-01-05 中兴通讯股份有限公司 Live migration of virtual machine method and system
CN109525515A (en) * 2018-10-23 2019-03-26 郑州云海信息技术有限公司 The management method and device of network interface card in a kind of cloud platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张驰等: "SR-IOV技术在OpenStack中的应用", 《计算机系统应用》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491980A (en) * 2020-11-13 2021-03-12 苏州浪潮智能科技有限公司 Cloud host service management method, system, terminal and storage medium
CN112491980B (en) * 2020-11-13 2022-12-27 苏州浪潮智能科技有限公司 Cloud host service management method, system, terminal and storage medium
CN112671561B (en) * 2020-12-11 2022-05-17 苏州浪潮智能科技有限公司 Network card configuration method and equipment of cloud host
CN112671561A (en) * 2020-12-11 2021-04-16 苏州浪潮智能科技有限公司 Network card configuration method and equipment of cloud host
CN113037563A (en) * 2021-03-26 2021-06-25 山东英信计算机技术有限公司 Cloud platform network optimization method, device and system and readable storage medium
CN113630265A (en) * 2021-06-30 2021-11-09 济南浪潮数据技术有限公司 Virtual network redundancy backup method and device based on intelligent network card
CN113630265B (en) * 2021-06-30 2023-04-07 济南浪潮数据技术有限公司 Virtual network redundancy backup method and device based on intelligent network card
CN113656176B (en) * 2021-08-19 2022-08-23 北京百度网讯科技有限公司 Cloud equipment distribution method, device and system, electronic equipment, medium and product
CN113656176A (en) * 2021-08-19 2021-11-16 北京百度网讯科技有限公司 Cloud equipment distribution method, device, system, electronic equipment, medium and product
CN113806021A (en) * 2021-09-23 2021-12-17 上海德拓信息技术股份有限公司 Method and system for transparent transmission of physical equipment by virtual machine
CN113806021B (en) * 2021-09-23 2023-12-15 上海德拓信息技术股份有限公司 Method and system for transmitting physical equipment through virtual machine
CN114465902A (en) * 2022-01-07 2022-05-10 苏州浪潮智能科技有限公司 Method, system, equipment and medium for cloud host multi-network card management bond
CN114465902B (en) * 2022-01-07 2023-09-08 苏州浪潮智能科技有限公司 Method, system, equipment and medium for managing bond by cloud host multi-network card

Similar Documents

Publication Publication Date Title
CN111866209A (en) Method and equipment for distributing network card for cloud host
US10545781B2 (en) Dynamically deployed virtual machine
US20230138736A1 (en) Cluster file system-based data backup method and apparatus, and readable storage medium
US9547605B2 (en) Method for data backup, device and system
CN107783734B (en) Resource allocation method, device and terminal based on super-fusion storage system
CN107506145B (en) Physical storage scheduling method and cloud host creation method
CN106790744B (en) IP scheduling method and system
US10282120B2 (en) Method, apparatus and system for inserting disk
CN111061752B (en) Data processing method and device and electronic equipment
CN105095103A (en) Storage device management method and device used for cloud environment
EP3786802A1 (en) Method and device for failover in hbase system
CN114511235A (en) Process evaluation method and system
US8527565B2 (en) Selecting and reassigning a blade for a logical partition for service scheduling of a blade server
US20220206836A1 (en) Method and Apparatus for Processing Virtual Machine Migration, Method and Apparatus for Generating Virtual Machine Migration Strategy, Device and Storage Medium
CN109976870A (en) Creation method, device, equipment and the medium of virtual machine
CN109960569B (en) Virtualization processing method and device
CN104461779A (en) Distributed data storage method, device and system
CN106250082A (en) A kind of terminal control method and terminal
US7039733B2 (en) Method, system, and apparatus for eliminating bus renumbering in a computer system
CN115756726A (en) Container local storage intelligent scheduling and distributing method applied to cloud platform
CN109344032A (en) A kind of monitoring method and device
CN115150268A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN109445908B (en) Virtual machine backup method and system
CN111722783B (en) Data storage method and device
CN109189339B (en) Automatic configuration cache acceleration method under storage system

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