CN109039711B - Hardware accelerator replacement method and device and server - Google Patents

Hardware accelerator replacement method and device and server Download PDF

Info

Publication number
CN109039711B
CN109039711B CN201810764533.5A CN201810764533A CN109039711B CN 109039711 B CN109039711 B CN 109039711B CN 201810764533 A CN201810764533 A CN 201810764533A CN 109039711 B CN109039711 B CN 109039711B
Authority
CN
China
Prior art keywords
hardware accelerator
configuration information
end server
information corresponding
virtual machine
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.)
Active
Application number
CN201810764533.5A
Other languages
Chinese (zh)
Other versions
CN109039711A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201810764533.5A priority Critical patent/CN109039711B/en
Publication of CN109039711A publication Critical patent/CN109039711A/en
Application granted granted Critical
Publication of CN109039711B publication Critical patent/CN109039711B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a hardware accelerator replacement method, a hardware accelerator replacement device and a hardware accelerator replacement server, wherein the method comprises the following steps: receiving a hardware accelerator replacement request, wherein the hardware accelerator replacement request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator; sending a notification message for replacing the first hardware accelerator to the front-end server; when a notification message indicating that the first hardware accelerator can be replaced currently is received, converting the pre-acquired virtual network service (VNF) configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator; the second hardware accelerator is configured based on configuration information corresponding to the second hardware accelerator. The dynamic replacement of the hardware accelerator can be realized, so that the hardware accelerator can be shared among a plurality of VNF virtual machines, namely the utilization rate of the hardware accelerator is greatly improved, and correspondingly, the hardware cost is greatly reduced.

Description

Hardware accelerator replacement method and device and server
Technical Field
The invention relates to the technical field of network function virtualization, in particular to a method and a device for replacing a hardware accelerator and a server.
Background
Network Function Virtualization (NFV) utilizes a Virtualization technique to divide a Network node level function into several functional blocks, which are implemented in a software manner, respectively, and are not limited to a hardware architecture. At the heart of Network Function Virtualization (NFV) is a Virtual Network Function (VNF) that provides Network functions that can only be found in hardware.
Hardware accelerators are important hardware resources in NFV that can significantly improve the performance of VNF services. However, the hardware accelerator is relatively expensive, and if the hardware accelerator can be shared among multiple VNF virtual machines, the hardware cost is greatly reduced.
If sharing of a hardware accelerator among multiple VNF virtual machines is implemented, it is necessary that the virtualization scheme of the virtual machine can dynamically replace hardware accelerators of the same type from different vendors. However, current virtualization schemes for virtual machines do not support dynamic replacement of the same type of hardware accelerator from different vendors.
Disclosure of Invention
In view of the above, the present invention provides a method, an apparatus, and a server for dynamically replacing hardware accelerators of the same type from different manufacturers without interrupting VNF services, and the technical solution is as follows:
a replacement method of a hardware accelerator is applied to a back-end server, and comprises the following steps:
receiving a hardware accelerator replacement request, wherein the hardware accelerator replacement request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator;
sending a notification message for replacing the first hardware accelerator to the front-end server;
when a notification message indicating that the first hardware accelerator can be replaced currently is received, converting pre-acquired virtual network service (VNF) configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator;
configuring the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
Preferably, the method for replacing a hardware accelerator further includes:
and updating the hardware accelerator corresponding to the target virtual machine in the corresponding relation between the hardware accelerator and the virtual machine.
Preferably, the method for replacing a hardware accelerator further includes:
after the second hardware accelerator is configured, sending indication information that the configuration of the second hardware accelerator is completed to the front-end server to indicate that the target virtual machine can use the second hardware accelerator.
Obtaining the VNF configuration information corresponding to the target virtual machine in advance includes:
when a creating request of the target virtual machine is received, creating a channel identifier;
establishing a communication channel with the front-end server based on the channel identification;
and receiving the VNF configuration information sent by the front-end server through the communication channel, wherein the VNF configuration information is sent to the back-end server by the front-end server when the target virtual machine is started.
Wherein the pre-obtaining the VNF configuration information further includes:
converting the VNF configuration information into configuration information corresponding to the first hardware accelerator;
configuring the first hardware accelerator based on the configuration information corresponding to the first hardware accelerator.
A hardware accelerator replacement method is applied to a front-end server and comprises the following steps:
receiving indication information indicating that a first hardware accelerator used by a target virtual machine on the front-end server is replaced;
when the first hardware accelerator is in an idle state, sending a notification message indicating that the first hardware accelerator can be replaced currently to a back-end server, so that the back-end server converts pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator, and configures the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
A hardware accelerator replacing device applied to a back-end server comprises: the device comprises a receiving module, a sending module, a conversion module and a configuration module;
the receiving module is used for receiving a hardware accelerator replacing request, wherein the hardware accelerator replacing request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator;
the sending module is configured to send a notification message for replacing the first hardware accelerator to the front-end server;
the conversion module is configured to, when receiving a notification message indicating that the first hardware accelerator can be currently replaced, convert the pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator;
the configuration module is configured to configure the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
A hardware accelerator replacing device applied to a front-end server comprises: the device comprises a receiving module and a sending module;
the receiving module is used for receiving indication information indicating that a first hardware accelerator used by a target virtual machine on the front-end server is replaced;
the sending module is configured to send, to a backend server, a notification message indicating that the first hardware accelerator can be currently replaced when the first hardware accelerator is in an idle state, so that the backend server converts pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator, and configures the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
A back-end server, comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program, and the program is specifically configured to:
receiving a hardware accelerator replacement request, wherein the hardware accelerator replacement request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator;
sending a notification message for replacing the first hardware accelerator to the front-end server;
when a notification message indicating that the first hardware accelerator can be replaced currently is received, converting pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator;
configuring the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
A front-end server, comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program, and the program is specifically configured to:
receiving indication information indicating that a first hardware accelerator used by a target virtual machine on the front-end server is replaced;
when the first hardware accelerator is in an idle state, sending a notification message indicating that the first hardware accelerator can be replaced currently to a back-end server, so that the back-end server converts pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator, and configures the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
The technical scheme has the following beneficial effects:
according to the hardware accelerator replacing method, the hardware accelerator replacing device and the hardware accelerator replacing server, when a request for replacing a first hardware accelerator used by a target virtual machine with a second hardware accelerator is received, a notification message for replacing the first hardware accelerator can be sent to a front-end server, when the notification message indicating that the hardware accelerator can be replaced currently is received, the configuration information of a virtual network service (VNF) acquired in advance is converted into the configuration information corresponding to the second hardware accelerator, and then the second hardware accelerator is configured on the basis of the configuration information corresponding to the second hardware accelerator, so that the purpose that the first hardware accelerator used by the target virtual machine is replaced with the second hardware accelerator is achieved. As can be seen from the above process, the method, the apparatus, and the server for replacing a hardware accelerator according to the embodiments of the present invention can implement dynamic replacement of the hardware accelerator without sensing the underlying hardware accelerator, so that the hardware accelerator can be shared among multiple VNF virtual machines, that is, the utilization rate of the hardware accelerator is greatly improved, and accordingly, the hardware cost is greatly reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart illustrating a method for replacing a hardware accelerator according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a method for replacing a hardware accelerator according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a method for replacing a hardware accelerator according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a replacement apparatus for a hardware accelerator according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for replacing a hardware accelerator according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a backend server according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a front-end server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for replacing a hardware accelerator, where the method is applied to a back-end server, and please refer to fig. 1, which shows a flow diagram of the method for replacing the hardware accelerator, where the method may include:
step S101: a hardware accelerator replacement request is received.
The hardware accelerator replacement request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator.
Illustratively, there are two virtual machines, namely virtual machine 1 and virtual machine 2, the hardware accelerators available for virtual machine 1 are hardware accelerator 1 and hardware accelerator 2, and the hardware accelerators available for virtual machine 2 are hardware accelerator 2, and assuming that virtual machine 1 is currently using hardware accelerator 2, in order to fully utilize the currently existing hardware accelerators without adding new hardware accelerators, the hardware accelerator used for virtual machine 1 can be replaced by hardware accelerator 2, and virtual machine 2 can use hardware accelerator 2.
Step S102: a notification message is sent to the front-end server to replace the first hardware accelerator.
Preferably, when receiving a notification message for replacing a hardware accelerator used by the target virtual machine, the front-end server determines whether the first hardware accelerator currently in use is idle, and if the first hardware accelerator is idle, sends a notification message indicating that the first hardware accelerator can be currently replaced to the back-end server. It can be understood that, if the current first hardware accelerator is executing a data processing task, the hardware accelerator is replaced immediately, which will inevitably interrupt the execution of the current data processing task, and further cause the data processing task to be unable to be executed and completed.
Step S103: and when a notification message indicating that the first hardware accelerator can be replaced currently is received, converting the pre-acquired virtual network service (VNF) configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator.
It should be noted that the virtual network service VNF configuration information is simple, abstract, and functionally described, so that the hardware accelerator cannot be configured directly by using the virtual network service VNF configuration information, and it needs to be converted into configuration information that conforms to configuration rules specific to the hardware accelerator vendor.
Step S104: the second hardware accelerator is configured based on configuration information corresponding to the second hardware accelerator.
Specifically, a configuration program provided by a vendor calling the second hardware accelerator configures the second hardware accelerator based on configuration information corresponding to the second hardware accelerator. At this point, the hardware accelerator replacement is complete, i.e., the hardware accelerator used by the target virtual machine is replaced with the second hardware accelerator.
In the method for replacing a hardware accelerator provided in the embodiments of the present invention, when a request for replacing a first hardware accelerator used by a target virtual machine with a second hardware accelerator is received, a notification message for replacing the first hardware accelerator may be sent to a front-end server, and when a notification message indicating that the hardware accelerator can be currently replaced is received, a piece of virtual network service VNF configuration information acquired in advance is converted into configuration information corresponding to the second hardware accelerator, and the second hardware accelerator is configured based on the configuration information corresponding to the second hardware accelerator, so that the first hardware accelerator used by the target virtual machine is replaced with the second hardware accelerator. As can be seen from the above process, the method for replacing a hardware accelerator according to the embodiment of the present invention can implement dynamic replacement of the hardware accelerator without sensing the underlying hardware accelerator, so that the hardware accelerator can be shared among multiple VNF virtual machines, that is, the utilization rate of the hardware accelerator is greatly increased, and accordingly, the hardware cost is greatly reduced.
Referring to fig. 2, a method for replacing a hardware accelerator according to an embodiment of the present invention is shown, where the method is applied to a back-end server, and referring to fig. 2, a flow chart of the method for replacing the hardware accelerator is shown, where the method may include:
step S201: a hardware accelerator replacement request is received.
The hardware accelerator replacement request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator.
In one possible implementation, the hardware accelerator replacement request may come from carrier-class cloud platform management software.
Step S202: a notification message is sent to the front-end server to replace the first hardware accelerator.
Preferably, when receiving a notification message for replacing a hardware accelerator used by the target virtual machine, the front-end server determines whether the first hardware accelerator currently in use is idle, and if the first hardware accelerator is idle, sends a notification message indicating that the first hardware accelerator can be currently replaced to the back-end server. It can be understood that, if the current first hardware accelerator is executing a data processing task, the hardware accelerator is replaced immediately, which will inevitably interrupt the execution of the current data processing task, and further cause the data processing task to be unable to be executed and completed.
Step S203: and when a notification message indicating that the first hardware accelerator can be replaced currently is received, updating the hardware accelerator corresponding to the target virtual machine in the corresponding relation between the hardware accelerator and the virtual machine.
In some cases, since the hardware accelerators used by the virtual machines need to be known, the corresponding relationship between the virtual machines and the hardware accelerators needs to be maintained, in this embodiment, since the first hardware accelerator used by the target virtual machine needs to be changed to the second hardware accelerator, the first hardware accelerator corresponding to the target virtual machine in the maintained corresponding relationship between the virtual machines and the hardware accelerators needs to be changed to the second hardware accelerator, so as to ensure the accuracy of the maintained corresponding relationship between the virtual machines and the hardware accelerators.
Step S204: and converting the VNF configuration information which is acquired in advance and corresponds to the target virtual machine into configuration information corresponding to the second hardware accelerator.
The process of obtaining VNF configuration information corresponding to the target virtual machine in advance may include: when a creation request of a target virtual machine is received, creating a channel identifier; establishing a communication channel with the front-end server based on the channel identifier; and receiving VNF configuration information sent by the front-end server through a communication channel, wherein the VNF configuration information is sent by the front-end server to the back-end server when the target virtual machine is started. In a possible implementation manner, a backend server is deployed locally, and when a creation request of a target virtual machine is received, a file descriptor FD is created, a UNIX domain socket is created based on the file descriptor FD, and the file descriptor FD is sent to the frontend server. In another possible implementation manner, if the backend server is deployed remotely, a TCP connection channel between the front-end server and the backend server may be established, and the VNF configuration information is sent to the backend server through the TCP connection channel.
Optionally, when the front-end server sends the VNF configuration information to the back-end server, the front-end server may send information of the hardware accelerator at the same time, so that the back-end server allocates the hardware accelerator for the target virtual machine based on the information of the hardware accelerator, where the information of the hardware accelerator may be one or more of a type of the hardware accelerator, vendor information of the hardware accelerator, a characteristic of the hardware accelerator, and the like, and of course, when the front-end server sends the VNF configuration information to the back-end server, the back-end server may not send the information of the hardware accelerator, and allocate the hardware accelerator for the target virtual machine by itself.
It should be noted that, after obtaining the VNF configuration information, the back-end server converts the VNF configuration information into configuration information corresponding to the first hardware accelerator, where the configuration information corresponding to the first hardware accelerator is configuration information that conforms to a configuration rule specified by a manufacturer of the first hardware accelerator; the first hardware accelerator is configured based on the configuration information corresponding to the first hardware accelerator, that is, a configurator provided by a vendor calling the first hardware accelerator configures the first hardware accelerator based on the configuration information corresponding to the first hardware accelerator, so that the target virtual machine can use the first hardware accelerator. In addition, the backend server needs to establish a correspondence between the target virtual machine and the first hardware accelerator in the correspondence between the virtual machine and the hardware accelerator maintained by the backend server.
Step S205: the second hardware accelerator is configured based on configuration information corresponding to the second hardware accelerator.
Specifically, a configuration program provided by a vendor calling the second hardware accelerator configures the second hardware accelerator based on configuration information corresponding to the second hardware accelerator. At this point, the hardware accelerator replacement is complete, i.e., the hardware accelerator used by the target virtual machine is replaced with the second hardware accelerator.
Step S206: after the second hardware accelerator is configured, sending indication information of the second hardware accelerator configuration completion to the front-end server to indicate that the target virtual machine can use the second hardware accelerator.
In the method for replacing a hardware accelerator provided in the embodiments of the present invention, when a request for replacing a first hardware accelerator used by a target virtual machine with a second hardware accelerator is received, a notification message for replacing the first hardware accelerator may be sent to a front-end server, and when a notification message indicating that the hardware accelerator can be currently replaced is received, a hardware accelerator corresponding to the target virtual machine in a correspondence between the hardware accelerator and the virtual machine is updated, and VNF configuration information obtained in advance is converted into configuration information corresponding to the second hardware accelerator, and the second hardware accelerator is configured based on the configuration information corresponding to the second hardware accelerator, thereby replacing the first hardware accelerator used by the target virtual machine with the second hardware accelerator. As can be seen from the above process, the method for replacing a hardware accelerator according to the embodiment of the present invention can implement dynamic replacement of the hardware accelerator without sensing the underlying hardware accelerator and without stopping the VNF service, so that the hardware accelerator can be shared among a plurality of VNF virtual machines, that is, the utilization rate of the hardware accelerator is greatly increased, and accordingly, the hardware cost is greatly reduced.
The embodiment of the invention also provides a method for replacing the hardware accelerator, which is applied to the front-end server and can comprise the following steps:
step S301: indication information is received indicating a replacement of a first hardware accelerator used by a target virtual machine on a front-end server.
Step S302: when the first hardware accelerator is in an idle state, sending a notification message indicating that the first hardware accelerator can be replaced currently to the back-end server, so that the back-end server converts the pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator, and configuring the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
In addition, the method provided by the embodiment may further include: receiving indication information that the second hardware accelerator configuration is complete to indicate that the target virtual machine is able to use the second hardware accelerator.
When the front-end server receives the indication information that the configuration of the second hardware accelerator is completed, the target virtual machine can use the replaced second hardware accelerator to perform data processing, which indicates that the replacement of the hardware accelerator is completed.
The method for replacing the hardware accelerator provided by the embodiment of the invention can realize the dynamic replacement of the hardware accelerator, so that the hardware accelerator can be shared among a plurality of VNF virtual machines, namely the utilization rate of the hardware accelerator is greatly improved, and correspondingly, the hardware cost is greatly reduced.
An embodiment of the present invention further provides a device for replacing a hardware accelerator, which is applied to a back-end server, please refer to fig. 4, which shows a schematic structural diagram of a device 40 for replacing a hardware accelerator, and the device may include: a receiving module 401, a first transmitting module 402, a first converting module 403 and a first configuring module 404.
The receiving module 401 is configured to receive a hardware accelerator replacement request, where the hardware accelerator replacement request is used to instruct to replace a first hardware accelerator used by a target virtual machine on a front-end server with a second hardware accelerator.
A first sending module 402, configured to send a notification message to the front-end server to replace the first hardware accelerator.
A first conversion module 403, configured to, when receiving a notification message indicating that the first hardware accelerator can be replaced currently, convert the pre-acquired virtual network service VNF configuration information into configuration information corresponding to the second hardware accelerator.
A first configuration module 404 for configuring the second hardware accelerator based on configuration information corresponding to the second hardware accelerator.
In the apparatus for replacing a hardware accelerator according to the embodiment of the present invention, when a request to replace a first hardware accelerator used by a target virtual machine with a second hardware accelerator is received, a notification message for replacing the first hardware accelerator may be sent to a front-end server, and when a notification message indicating that the hardware accelerator can be currently replaced is received, VNF configuration information obtained in advance is converted into configuration information corresponding to the second hardware accelerator, and the second hardware accelerator is configured based on the configuration information corresponding to the second hardware accelerator, thereby replacing the first hardware accelerator used by the target virtual machine with the second hardware accelerator. As can be seen from the above process, the replacement device for a hardware accelerator according to the embodiment of the present invention can implement dynamic replacement of the hardware accelerator without sensing the underlying hardware accelerator, so that the hardware accelerator can be shared among multiple VNF virtual machines, that is, the utilization rate of the hardware accelerator is greatly improved, and accordingly, the hardware cost is greatly reduced.
Preferably, the replacing device for a hardware accelerator provided in the foregoing embodiment may further include: and updating the module.
And the updating module is used for updating the hardware accelerator corresponding to the target virtual machine in the corresponding relation between the hardware accelerator and the virtual machine.
Preferably, the replacing device for a hardware accelerator provided in the foregoing embodiment may further include: and a second sending module.
A second sending module, configured to send, to the front-end server, indication information that configuration of the second hardware accelerator is completed after the configuration module 404 completes configuration of the second hardware accelerator, so as to indicate that the target virtual machine can use the second hardware accelerator.
The replacing device for the hardware accelerator provided by the above embodiment may further include: and an acquisition module.
And the acquisition module is used for acquiring VNF configuration information corresponding to the target virtual machine in advance.
Further, the acquisition module includes: the device comprises a channel identification creating module, a channel creating module and a configuration information receiving module. Wherein:
and the channel identifier creating module is used for creating the channel identifier when receiving a creating request of the target virtual machine.
And the channel creating module is used for creating a communication channel between the front-end server and the channel creating module based on the channel identification.
And the configuration information receiving module is used for receiving VNF configuration information sent by the front-end server through the communication channel, wherein the VNF configuration information is sent by the front-end server to the back-end server when the target virtual machine is started.
The replacing device for the hardware accelerator provided by the above embodiment may further include: a second conversion module and a second configuration module.
And the second conversion module is used for converting the VNF configuration information into configuration information corresponding to the first hardware accelerator.
A second configuration module to configure the first hardware accelerator based on configuration information corresponding to the first hardware accelerator.
An embodiment of the present invention further provides a device for replacing a hardware accelerator, which is applied to a front-end server, and please refer to fig. 5, which shows a schematic structural diagram of a device 50 for replacing a hardware accelerator, where the device may include: a first receiving module 501 and a sending module 502.
A first receiving module 501, configured to receive indication information indicating to replace a first hardware accelerator used by a target virtual machine on the front-end server.
A sending module 502, configured to send, when the first hardware accelerator is in an idle state, a notification message indicating that the first hardware accelerator can be currently replaced to the back-end server, so that the back-end server converts the obtained VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator, and configures the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
The apparatus provided in this embodiment may further include: and a second receiving module. And the second receiving module is used for receiving indication information of the completion of the configuration of the second hardware accelerator so as to indicate that the target virtual machine can use the second hardware accelerator.
The replacement device of the hardware accelerator provided by the embodiment of the invention can realize the dynamic replacement of the hardware accelerator, so that the hardware accelerator can be shared among a plurality of VNF virtual machines, namely, the utilization rate of the hardware accelerator is greatly improved, and correspondingly, the hardware cost is greatly reduced.
An embodiment of the present invention further provides a backend server, please refer to fig. 6, which shows a schematic structural diagram of the backend server 60, and the backend server may include: a memory 601 and a processor 602.
A memory 601 for storing programs;
a processor 602 configured to execute the program, the program specifically configured to:
receiving a hardware accelerator replacement request, wherein the hardware accelerator replacement request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator;
sending a notification message for replacing the first hardware accelerator to the front-end server;
when a notification message indicating that the first hardware accelerator can be replaced currently is received, converting pre-acquired virtual network service (VNF) configuration information into configuration information corresponding to the second hardware accelerator;
configuring the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
An embodiment of the present invention further provides a front-end server, please refer to fig. 7, which shows a schematic structural diagram of the front-end server 70, and the schematic structural diagram may include: a memory 701 and a processor 702.
A memory 701 for storing a program;
a processor 702 configured to execute the program, the program specifically configured to:
receiving indication information indicating that a first hardware accelerator used by a target virtual machine on the front-end server is replaced;
when the first hardware accelerator is in an idle state, sending a notification message indicating that the first hardware accelerator can be replaced currently to a back-end server, so that the back-end server converts VNF configuration information into configuration information corresponding to the second hardware accelerator, and configuring the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and device may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for replacing a hardware accelerator is applied to a back-end server, and comprises the following steps:
receiving a hardware accelerator replacement request, wherein the hardware accelerator replacement request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator;
sending a notification message for replacing the first hardware accelerator to the front-end server;
when a notification message indicating that the first hardware accelerator can be replaced currently is received, converting pre-acquired virtual network service (VNF) configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator, wherein the notification message indicating that the first hardware accelerator can be replaced currently represents that the first hardware accelerator is idle, and the configuration information corresponding to the second hardware accelerator conforms to a hardware configuration rule;
configuring the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
2. The method for replacing a hardware accelerator according to claim 1, further comprising:
and updating the hardware accelerator corresponding to the target virtual machine in the corresponding relation between the hardware accelerator and the virtual machine.
3. The method for replacing a hardware accelerator according to claim 1, further comprising:
after the second hardware accelerator is configured, sending indication information that the configuration of the second hardware accelerator is completed to the front-end server to indicate that the target virtual machine can use the second hardware accelerator.
4. The method for replacing a hardware accelerator according to claim 1, wherein the obtaining the VNF configuration information corresponding to the target virtual machine in advance includes:
when a creating request of the target virtual machine is received, creating a channel identifier;
establishing a communication channel with the front-end server based on the channel identification;
and receiving the VNF configuration information sent by the front-end server through the communication channel, wherein the VNF configuration information is sent to the back-end server by the front-end server when the target virtual machine is started.
5. The method of replacing a hardware accelerator according to claim 4, wherein the pre-obtaining the VNF configuration information further comprises:
converting the VNF configuration information into configuration information corresponding to the first hardware accelerator;
configuring the first hardware accelerator based on the configuration information corresponding to the first hardware accelerator.
6. A method for replacing a hardware accelerator is applied to a front-end server, and comprises the following steps:
receiving indication information indicating that a first hardware accelerator used by a target virtual machine on the front-end server is replaced;
when the first hardware accelerator is in an idle state, sending a notification message indicating that the first hardware accelerator can be replaced currently to a back-end server, so that the back-end server converts pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to a second hardware accelerator, and configures the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator, wherein the configuration information corresponding to the second hardware accelerator conforms to a hardware configuration rule.
7. A hardware accelerator replacing device, which is applied to a back-end server, comprises: the device comprises a receiving module, a sending module, a conversion module and a configuration module;
the receiving module is used for receiving a hardware accelerator replacing request, wherein the hardware accelerator replacing request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator;
the sending module is configured to send a notification message for replacing the first hardware accelerator to the front-end server;
the conversion module is configured to, when receiving a notification message indicating that the first hardware accelerator can be currently replaced, convert pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator, where the notification message indicating that the first hardware accelerator can be currently replaced indicates that the first hardware accelerator is idle, and the configuration information corresponding to the second hardware accelerator conforms to a hardware configuration rule;
the configuration module is configured to configure the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
8. A hardware accelerator replacing device, which is applied to a front-end server, comprises: the device comprises a receiving module and a sending module;
the receiving module is used for receiving indication information indicating that a first hardware accelerator used by a target virtual machine on the front-end server is replaced;
the sending module is configured to send, when the first hardware accelerator is in an idle state, a notification message indicating that the first hardware accelerator can be currently replaced to a back-end server, so that the back-end server converts pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to a second hardware accelerator, and configures the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator, where the configuration information corresponding to the second hardware accelerator conforms to a hardware configuration rule.
9. A back-end server, comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program, and the program is specifically configured to:
receiving a hardware accelerator replacement request, wherein the hardware accelerator replacement request is used for indicating that a first hardware accelerator used by a target virtual machine on a front-end server is replaced by a second hardware accelerator;
sending a notification message for replacing the first hardware accelerator to the front-end server;
when a notification message indicating that the first hardware accelerator can be replaced currently is received, converting pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to the second hardware accelerator, wherein the notification message indicating that the first hardware accelerator can be replaced currently represents that the first hardware accelerator is idle, and the configuration information corresponding to the second hardware accelerator conforms to a hardware configuration rule;
configuring the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator.
10. A front-end server, comprising: a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program, and the program is specifically configured to:
receiving indication information indicating that a first hardware accelerator used by a target virtual machine on the front-end server is replaced;
when the first hardware accelerator is in an idle state, sending a notification message indicating that the first hardware accelerator can be replaced currently to a back-end server, so that the back-end server converts pre-acquired VNF configuration information corresponding to the target virtual machine into configuration information corresponding to a second hardware accelerator, and configures the second hardware accelerator based on the configuration information corresponding to the second hardware accelerator, wherein the configuration information corresponding to the second hardware accelerator conforms to a hardware configuration rule.
CN201810764533.5A 2018-07-12 2018-07-12 Hardware accelerator replacement method and device and server Active CN109039711B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810764533.5A CN109039711B (en) 2018-07-12 2018-07-12 Hardware accelerator replacement method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810764533.5A CN109039711B (en) 2018-07-12 2018-07-12 Hardware accelerator replacement method and device and server

Publications (2)

Publication Number Publication Date
CN109039711A CN109039711A (en) 2018-12-18
CN109039711B true CN109039711B (en) 2021-01-15

Family

ID=64641135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810764533.5A Active CN109039711B (en) 2018-07-12 2018-07-12 Hardware accelerator replacement method and device and server

Country Status (1)

Country Link
CN (1) CN109039711B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976876B (en) * 2019-03-20 2021-11-16 联想(北京)有限公司 Accelerator management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104951353A (en) * 2014-03-28 2015-09-30 华为技术有限公司 VNF (virtual network function) acceleration method and device
CN105393218A (en) * 2013-06-25 2016-03-09 英派尔科技开发有限公司 Reconfiguration with virtual machine switching
CN105577801A (en) * 2014-12-31 2016-05-11 华为技术有限公司 Business acceleration method and device
CN107766146A (en) * 2016-08-23 2018-03-06 上海诺基亚贝尔股份有限公司 Method and corresponding equipment for resource reconfiguration
WO2018111987A1 (en) * 2016-12-13 2018-06-21 Amazon Technologies, Inc. Reconfigurable server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10216555B2 (en) * 2015-06-26 2019-02-26 Microsoft Technology Licensing, Llc Partially reconfiguring acceleration components
CN106817236B (en) * 2015-11-30 2020-09-18 华为技术有限公司 Configuration method and device of virtual network function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105393218A (en) * 2013-06-25 2016-03-09 英派尔科技开发有限公司 Reconfiguration with virtual machine switching
CN104951353A (en) * 2014-03-28 2015-09-30 华为技术有限公司 VNF (virtual network function) acceleration method and device
CN105577801A (en) * 2014-12-31 2016-05-11 华为技术有限公司 Business acceleration method and device
CN107766146A (en) * 2016-08-23 2018-03-06 上海诺基亚贝尔股份有限公司 Method and corresponding equipment for resource reconfiguration
WO2018111987A1 (en) * 2016-12-13 2018-06-21 Amazon Technologies, Inc. Reconfigurable server

Also Published As

Publication number Publication date
CN109039711A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
US10700947B2 (en) Life cycle management method and device for network service
CN109561171B (en) Configuration method and device of virtual private cloud service
US10764132B2 (en) Scale-out association method and apparatus, and system
CN107277029B (en) Remote procedure call method and device and computer equipment
US10924966B2 (en) Management method, management unit, and system
CN111984395B (en) Data migration method, system and computer readable storage medium
RU2687711C1 (en) Method of hardware acceleration and related device
CN101695077A (en) Method, system and equipment for deployment of operating system of virtual machine
CN107566214B (en) Performance test method and device
CN108234551B (en) Data processing method and device
CN107360633B (en) Pairing connection method and device of virtual reality system and virtual reality system
US20200233712A1 (en) Data Processing Method, Apparatus, Storage Medium, Processor, and System
CN112087401B (en) Method and device for realizing service quality in distributed storage
JP2023051930A (en) Terminal application activation method, apparatus and system
US10216664B2 (en) Remote resource access method and switching device
CN109995595B (en) RGW quota determining method, system, equipment and computer medium
CN115562757A (en) Data processing method, configuration center system, electronic device, and storage medium
CN109039711B (en) Hardware accelerator replacement method and device and server
CN108234174B (en) Management method and device of virtual network function
CN109614354B (en) Interface distribution method, board card, equipment and storage medium
CN107534678B (en) Method, device and system for establishing connection between VNFM and VIM
CN115296994A (en) Starting configuration method, device and medium for pooling heterogeneous computing resources
CN115469961A (en) Method and device for creating container group, electronic equipment and storage medium
CN110362575B (en) Method and device for generating global index of data
CN113645599A (en) Information processing method based on electronic equipment interaction and first electronic equipment

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