Server resource acquisition method, intelligent network card and cloud data center system

By working in tandem with the cloud platform and the smart network card, server resources are automatically identified and bound, solving the problems of complex operation and low efficiency in existing technologies, and achieving efficient and accurate resource acquisition.

CN117061514BActive Publication Date: 2026-11-27MAIPU COMM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311057400.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2026-11-27
Estimated Expiration
2043-08-21

AI Technical Summary

Technical Problem

In existing technologies, the binding relationship between smart network interface cards (NICs) and server resources needs to be manually configured, which leads to complex operations, low efficiency, and low accuracy.

Method used

The cloud platform generates a BMC identification code and a random number for the server. The smart network card establishes an internal communication channel, generates and compares the identification codes to determine the binding relationship, and then the cloud platform performs the binding.

Benefits of technology

It simplifies the operation process, improves the accuracy and efficiency of binding relationships, and realizes automated resource acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117061514B_ABST
    Figure CN117061514B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of communication, and provides a server resource acquisition method, an intelligent network card and a cloud data center system. A cloud platform determines an initial binding relationship between a BMC of a server and an intelligent network card, and sends a first identification code of the BMC of the server and a random number to the intelligent network card bound therewith; the intelligent network card establishes an internal communication channel thereof and a connected server, and generates a second identification code based on system information of the connected server and the received random number; when the second identification code is the same as the received first identification code, an initial binding relationship correct message is sent to the cloud platform, and resource information of the connected server is sent to the cloud platform; and the cloud platform binds the intelligent network card, the BMC of the server and the resource information of the server corresponding to each initial binding relationship correct message to obtain a resource binding relationship. The server resource can be acquired, and the binding relationship among the intelligent network card, the BMC of the server and the server resource can be determined.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and more specifically, to a server resource acquisition method, a smart network interface card (NIC), and a cloud data center system. Background Technology

[0002] In cloud computing data center applications, cloud service providers offer public and private cloud services to customers through cloud computing centers. Users actually purchase cloud services by buying resources, and different resources have different values ​​for cloud service providers. Cloud service providers can use smart network interface cards (NICs) to create high-value resources, thereby providing users with high-value cloud services. The cloud platform presents resources to customers for selection and purchase in the form of CPU (Central Processing Unit) models, CPU core counts, and memory size. Smart NICs are bound to the servers they are installed on. Therefore, the cloud platform needs to obtain server resource information within the smart NIC environment, and also understand the binding relationships between the smart NICs and these resources, in order to work together to provide high-value services to customers. Current technologies can only collect information about smart NICs and server resources separately, and then manually configure the binding relationships between smart NICs and various resources, resulting in complex, cumbersome, inefficient, and inaccurate operations. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a server resource acquisition method, a smart network interface card, and a cloud data center system.

[0004] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0005] In a first aspect, the present invention provides a server resource acquisition method applied to a cloud data center system, the cloud data center system including a cloud platform, multiple servers and multiple smart network interface cards (NICs), each of the smart NICs being connected to one of the servers, the method comprising:

[0006] The cloud platform determines the initial binding relationship between the Baseboard Management Controller (BMC) and the smart network interface card (NIC) of each server.

[0007] The cloud platform generates a first identification code and a random number for the BMC of each server, and sends the first identification code and random number of the BMC of each server to the smart network card bound to the BMC of each server according to the initial binding relationship.

[0008] Each of the smart network interface cards establishes an internal communication channel with the connected server and obtains system information of the connected server through the internal communication channel;

[0009] Each of the smart network cards generates a second identification code based on the received random number and the system information of the connected server, and compares the second identification code with the received first identification code;

[0010] When the second identification code is the same as the received first identification code, each smart network card sends an initial binding relationship correct message to the cloud platform, obtains the resource information of the connected server, and sends it to the cloud platform.

[0011] The cloud platform binds the smart network card, the server's BMC, and the server's resource information corresponding to each initial binding relationship correct message to obtain a resource binding relationship.

[0012] In an optional implementation, the cloud platform stores the BMC address of each server and the management address of each smart NIC; the cloud platform determines the initial binding relationship between the Baseboard Management Controller (BMC) of each server and the smart NIC, including:

[0013] The cloud platform traverses the BMC address of each server and sends a power-on command to the server corresponding to each BMC address. The power-on command is used to instruct the server corresponding to the BMC address to power on and supply power to the smart network card connected to the server.

[0014] After each smart network interface card (NIC) is powered on, it will send a request message carrying its own management address and runtime to the cloud platform.

[0015] When the management address in the request message is unbound and the runtime in the request message is less than a preset threshold, the cloud platform binds the BMC address corresponding to the currently sent power-on command to the management address in the request message.

[0016] The cloud platform obtains the smart network card bound to the BMC of each server, and thus obtains the initial binding relationship.

[0017] In an optional implementation, the cloud platform stores the BMC address of each server and the management address of each smart NIC; the cloud platform determines the initial binding relationship between the Baseboard Management Controller (BMC) of each server and the smart NIC, including:

[0018] The cloud platform traverses the BMC address of each server and sends a power-on command to the server corresponding to each BMC address. The power-on command is used to instruct the server corresponding to the BMC address to power on and supply power to the smart network card connected to the server.

[0019] The cloud platform performs connectivity detection on each management address whose binding status is unbound, and binds the management address whose connectivity status changes from unconnected to connected to the BMC address corresponding to the currently sent power-on command;

[0020] The cloud platform obtains the smart network card bound to the BMC of each server, and thus obtains the initial binding relationship.

[0021] In an optional implementation, the cloud platform stores the BMC address of each server and the management address of each smart network interface card; the cloud platform generates a first identification code and a random number for the BMC of each server, including:

[0022] The cloud platform obtains the device model and device serial number of the BMC of each server through the BMC address of each server, and generates a random number for the BMC of each server;

[0023] The cloud platform calculates the first identification code of each server's BMC based on a preset algorithm, using the device model, device serial number, random number, and management address of the smart network card bound to each server's BMC.

[0024] In an optional implementation, each of the smart network interface cards establishes an internal communication channel with the connected server, including:

[0025] Each of the smart network cards establishes a communication connection between a first virtual network interface provided for the connected server and a second virtual network interface of its own CPU;

[0026] When each of the smart network interface cards receives a DHCP request message from the connected server through the first virtual network interface, it sends a DHCP response message carrying a specific IP address to the connected server, establishing an internal communication channel between itself and the connected server based on the first virtual network interface, the second virtual network interface, and the IP addresses of the first and second virtual network interfaces; and / or,

[0027] Each of the smart network interface cards (NICs) obtains system information of the connected server through the internal communication channel, including:

[0028] Each of the smart network interface cards receives a startup completion message sent by the connected server through the internal communication channel. The startup completion message is sent by the connected server using the proxy service in the operating system after the operating system starts.

[0029] Each of the smart network interface cards (NICs) sends an information retrieval request to the connected server through the internal communication channel according to the startup completion message, and receives the device model and device serial number returned by the connected server to obtain the system information of the connected server.

[0030] In an optional implementation, each smart network interface card (NIC) generates a second identification code based on a received random number and the device information of the connected server, including:

[0031] Each of the smart network cards performs calculations according to a preset algorithm based on the device model and serial number of the connected server, the received random number, and its own management address to obtain the second identification code.

[0032] In an optional implementation, the method further includes:

[0033] The cloud platform sends a power-down command to each server and sets the binding status of the management address of the smart network card bound to the BMC of each server to "bound" according to the resource binding relationship.

[0034] Secondly, the present invention provides a server resource acquisition method, applied to a smart network interface card (NIC), wherein the smart NIC is connected to a server and communicates with a cloud platform, the method comprising:

[0035] Receive the first identification code and random number of the BMC of the server that has an initial binding relationship with the smart network card, sent by the cloud platform;

[0036] Establish an internal communication channel between the smart network card and the connected server, and obtain system information of the connected server through the internal communication channel;

[0037] A second identification code is generated based on the random number and the system information of the connected server, and the second identification code is compared with the received first identification code.

[0038] If the second identification code is the same as the received first identification code, an initial binding relationship correct message is sent to the cloud platform, and the resource information of the connected server is obtained and sent to the cloud platform, so that the cloud platform binds the smart network card, the server's BMC and the server's resource information based on the initial binding relationship correct message, thereby obtaining a resource binding relationship.

[0039] In an optional implementation, establishing an internal communication channel between the smart network card and the connected server includes:

[0040] Establish a communication connection between the first virtual network interface provided by the smart network card for the connected server and the second virtual network interface of its own CPU;

[0041] When a DHCP request message is received from the connected server via the first virtual network interface, a DHCP response message carrying a specific IP address is sent to the connected server. A communication channel is established between the smart network card and the connected service based on the first virtual network interface, the second virtual network interface, and the IP addresses of the first and second virtual network interfaces; and / or,

[0042] The process of obtaining system information of the connected server through the internal communication channel includes:

[0043] Receive a startup completion message sent by the connected server through the internal communication channel. The startup completion message is sent by the connected server using the proxy service in the operating system after the operating system starts.

[0044] Based on the startup completion message, an information retrieval request is sent to the connected server through the internal communication channel, and the device model and device serial number returned by the connected server are received to obtain the system information of the connected server.

[0045] In an optional implementation, generating the second identification code based on the random number and the system information of the connected server includes:

[0046] The second identification code is obtained by performing calculations based on the device model and serial number of the connected server, the random number, and its own management address according to a preset algorithm.

[0047] Thirdly, the present invention provides a smart network interface card (NIC) including a processor and a memory, wherein the memory stores a computer program, and the processor, when executing the computer program, implements the method described in any of the foregoing embodiments.

[0048] Fourthly, the present invention provides a cloud data center system, the cloud data center system including a cloud platform, multiple servers and multiple smart network interface cards (NICs), each of the smart NICs being connected to one of the servers; the cloud platform, each of the servers and each of the smart NICs are used to perform the method as described in any of the foregoing embodiments.

[0049] The present invention provides a server resource acquisition method, a smart network interface card (NIC), and a cloud data center system. The cloud platform determines the initial binding relationship between each server's Base Management Controller (BMC) and the smart NIC, and sends a first identification code and a random number generated for each server's BMC to the smart NIC bound to that BMC. Each smart NIC establishes an internal communication channel with the connected server and generates a second identification code based on the connected server's system information and the received random number. If the second identification code matches the received first identification code, each smart NIC sends an initial binding relationship confirmation message to the cloud platform and sends the resource information of the connected server to the cloud platform. The cloud platform binds the smart NIC, the server's BMC, and the server's resource information corresponding to each initial binding relationship confirmation message to obtain the resource binding relationship. Through communication and interaction between the cloud platform and the smart NIC, it achieves both the acquisition of server resources and the determination of the binding relationship between the smart NIC, the server's BMC, and the server resources, thereby simplifying operations and improving efficiency and accuracy.

[0050] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0051] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0052] Figure 1 A schematic diagram of a cloud data center system provided in an embodiment of the present invention is shown;

[0053] Figure 2 This invention illustrates a flowchart of a server resource acquisition method for a cloud data center system, as provided in an embodiment of the present invention.

[0054] Figure 3 This invention illustrates a flowchart of a server resource acquisition method for a smart network interface card (NIC) according to an embodiment of the present invention.

[0055] Figure 4 A schematic diagram of a smart network interface card provided in an embodiment of the present invention is shown.

[0056] Icons: 110 - Processor; 120 - Memory; 130 - Communication module. Detailed Implementation

[0057] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0058] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0059] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0060] Please refer to Figure 1 This is a schematic diagram of a cloud data center system provided in an embodiment of the present invention, including a cloud platform, multiple servers, and multiple smart network interface cards (NICs). Each smart NIC is inserted into a PCI or PCI-Express socket of each server to establish a bus connection, and each server has a BMC (Baseboard Manager Controller). The cloud platform communicates with the management interface of each smart NIC and the BMC interface of each server, and the cloud platform stores a BMC address list and a management address list. The BMC address list includes the BMC address of each server, and the management address list includes the management address of each smart NIC.

[0061] The following section will use a cloud data center system as the execution subject to introduce the steps and corresponding technical effects of the various methods provided in the embodiments of the present invention.

[0062] Please see Figure 2 , Figure 2 This is a flowchart illustrating a server resource acquisition method provided in an embodiment of the present invention.

[0063] Step S202: The cloud platform determines the initial binding relationship between the Baseboard Management Controller (BMC) and the smart network interface card (NIC) of each server.

[0064] In this embodiment, the cloud platform can either communicate with the smart network interface card (NIC) or perform reachability detection on the management address of the smart NIC to initially determine the smart NIC bound to the BMC of each server, thus obtaining the initial binding relationship between the BMC and the smart NIC of each server.

[0065] Step S204: The cloud platform generates the first identification code and random number of the BMC of each server, and sends the first identification code and random number of the BMC of each server to the smart network card bound to the BMC of each server according to the initial binding relationship.

[0066] In this embodiment, the cloud platform can obtain the BMC information of the server and generate a random number for the server's BMC. Then, based on the BMC information and the random number, it generates a corresponding unique identification code, i.e., obtains the first identification code. Next, the cloud platform can use HTTP (Hypertext Transfer Protocol) or other protocols to generate a message carrying the first identification code and random number of the server's BMC, and then send the message to the smart network card bound to the server's BMC according to the initial binding relationship.

[0067] For each server's BMC, the cloud platform can generate a first identification code and a random number for each server's BMC in a similar manner, and send them to the smart network card bound to each server's BMC according to the initial binding relationship.

[0068] Step S206: Each smart network card establishes an internal communication channel with the connected server and obtains system information of the connected server through the internal communication channel;

[0069] Step S208: Each smart network card generates a second identification code based on the received random number and the system information of the connected server, and compares the second identification code with the received first identification code;

[0070] It is understood that each smart network interface card (NIC) performs similar operations. For the sake of brevity, this embodiment of the invention will use a smart NIC as an example for illustration.

[0071] In this embodiment, the smart network card extracts and saves the first identification code and random number from the message sent by the cloud platform, then establishes an internal communication channel between itself and the connected server, then obtains the system information of the connected server through this internal communication channel, and generates a second identification code based on the received random number and the system information of the connected server, and compares the generated second identification code with the received first identification code to determine whether the BMC of the server to which the smart network card is bound in the initial binding relationship is correct.

[0072] In step S210, if the second identification code is the same as the received first identification code, each smart network card sends an initial binding relationship correct message to the cloud platform, obtains the resource information of the connected server, and sends it to the cloud platform.

[0073] In this embodiment, if the smart network interface card (NIC) determines that the second identification code is the same as the received first identification code after comparison, it indicates that the first identification code and random number sent by the cloud platform to the smart NIC are the first identification code and random number of the BMC of the server to which the smart NIC is connected. This means that the BMC of the server to which the smart NIC is bound in the initial binding relationship is correct. The smart NIC will then send an initial binding relationship correct message to the cloud platform and send the obtained resource information of the connected server, such as CPU model, number of CPU cores, and memory, to the cloud platform. It should be understood that the server's resource information can be set according to actual conditions, and this embodiment of the invention does not impose any limitations.

[0074] In step S212, the cloud platform binds the smart network card, the server's BMC, and the server's resource information corresponding to each initial binding relationship correct message to obtain the resource binding relationship.

[0075] In this embodiment, the cloud platform receives each initial binding relationship correct message and its corresponding server resource information, and binds the smart network card, server BMC, and server resource information corresponding to each initial binding relationship correct message to obtain the resource binding relationship.

[0076] As can be seen from the above steps, the cloud platform determines the initial binding relationship between each server's BMC and the smart network interface card (NIC), and sends the generated first identification code and random number of each server's BMC to the smart NIC bound to that BMC. Each smart NIC establishes an internal communication channel with the connected server and generates a second identification code based on the connected server's system information and the received random number. If the second identification code matches the received first identification code, each smart NIC sends an initial binding relationship confirmation message to the cloud platform and sends the resource information of the connected server to the cloud platform. The cloud platform binds the smart NIC, the server's BMC, and the server's resource information corresponding to each initial binding relationship confirmation message, thus obtaining the resource binding relationship. Through communication and interaction between the cloud platform and the smart NIC, it is possible to both acquire server resources and determine the binding relationship between the smart NIC, the server's BMC, and the server resources, thereby simplifying operations and improving efficiency and accuracy.

[0077] Optionally, for step S202, this embodiment of the invention provides a possible implementation.

[0078] Step S202A-1: The cloud platform traverses the BMC address of each server and sends a power-on command to the server corresponding to each BMC address. The power-on command is used to instruct the server corresponding to the BMC address to power on and supply power to the smart network card connected to the server.

[0079] Step S202A-3: After each smart network interface card is powered on, it will send a request message carrying its own management address and runtime to the cloud platform;

[0080] In this embodiment, the cloud platform traverses each BMC address in the BMC address list to establish the initial binding relationship between the server's BMC and the smart network card by binding the BMC address with a certain management address.

[0081] The cloud platform sends a power-on command to the server corresponding to each BMC address. After receiving the power-on command, the server will perform the power-on operation and supply power to the smart network card connected to the server.

[0082] Upon power-on, the smart network interface card (NIC) starts up and executes a pre-installed reporting program to automatically send request messages to the cloud platform. For example, the smart NIC uses HTTP or other protocols to generate request messages carrying its own management address and runtime, and continuously sends these request messages to the cloud platform. It should be understood that the request messages may also carry other parameters, which are not limited in this embodiment of the invention.

[0083] Step S202A-5: When the management address in the request message is not bound and the runtime in the request message is less than a preset threshold, the cloud platform binds the BMC address corresponding to the currently sent power-on command to the management address in the request message.

[0084] In this embodiment, the cloud platform receives a request message sent by the smart network interface card (NIC) and extracts parameters such as the management address and runtime carried in the request message. If the management address in the request message received by the cloud platform is unbound and the runtime is less than a preset threshold, such as 5 minutes, it indicates that the smart NIC corresponding to the management address in the request message received by the cloud platform is the smart NIC connected to the server that has just been powered on. Therefore, the BMC address corresponding to the currently sent power-on command is bound to the management address in the request message. It should be understood that the preset threshold can be set according to actual conditions, and this embodiment of the invention does not impose any limitations.

[0085] Optionally, the cloud platform may also send a response message to the smart network interface card (NIC) corresponding to the management address in the request message, so that the smart NIC stops sending request messages after receiving the response message.

[0086] Step S202A-7: The cloud platform obtains the smart network card bound to the BMC of each server and obtains the initial binding relationship;

[0087] In this embodiment, the cloud platform binds the BMC address of each server to the management address of each smart network interface card in a similar manner to the above, thereby obtaining the smart network interface card bound to the BMC of each server, thus obtaining the initial binding relationship.

[0088] Alternatively, for step S202, the embodiments of the present invention provide another possible implementation.

[0089] Step S202B-1: The cloud platform traverses the BMC address of each server and sends a power-on command to the server corresponding to each BMC address. The power-on command is used to instruct the server corresponding to the BMC address to power on and supply power to the smart network card connected to the server.

[0090] Step S202B-3: The cloud platform performs connectivity detection on each management address whose binding status is unbound, and binds the management address whose connectivity status changes from unconnected to connected to the BMC address corresponding to the currently sent power-on command.

[0091] In this embodiment, the cloud platform traverses each BMC address in the BMC address list to establish an initial binding relationship between the server's BMC and the smart network card by performing reachability detection on the management addresses in the management address list after a specified server is powered on and binding the server's BMC address with the management address whose status has changed.

[0092] The cloud platform sends a power-on command to the server corresponding to each BMC address. After receiving the power-on command, the server will perform the power-on operation and supply power to the smart network card connected to the server.

[0093] Then, the cloud platform performs reachability detection, i.e. connectivity detection, for each management address that is not bound. If a management address changes from unreachable to reachable, i.e., the connectivity status changes from unconnected to connected, it means that the smart network card corresponding to the management address is the smart network card connected to the server that has just been powered on. Then, the BMC address corresponding to the current power-on command is bound to this management address.

[0094] In step S202B-5, the cloud platform obtains the smart network card bound to the BMC of each server and obtains the initial binding relationship.

[0095] In this embodiment, the cloud platform binds the BMC address of each server to the management address of each smart network interface card in a similar manner to the above, thereby obtaining the smart network interface card bound to the BMC of each server, thus obtaining the initial binding relationship.

[0096] Optionally, for the process of the cloud platform generating the first identification code and random number of the BMC for each server in step S204, this embodiment of the invention provides a possible implementation.

[0097] Step S204-1: The cloud platform obtains the device model and device serial number of the BMC of each server through the BMC address of each server, and generates a random number for the BMC of each server.

[0098] In step S204-3, the cloud platform performs calculations based on the device model, device serial number, random number, and management address of the smart network card bound to each server's BMC according to a preset algorithm to obtain the first identification code of each server's BMC.

[0099] Understandably, the cloud platform generates the first identifier of each server's BMC in a similar way to a random number. For simplicity, the following explanation uses the BMC of a single server as an example.

[0100] In this embodiment, the cloud platform generates a random number, RAND_Num, for the server's BMC and obtains the server's BMC information, such as the device model (BMC_Type) and device serial number (BMC_Serial), through the server's BMC address.

[0101] Then, the cloud platform uses a preset algorithm to calculate the server's first identification code (H1) based on the server's BMC device model (BMC_Type), device serial number (BMC_Serial), random number (RAND_Num), and the management address of the smart network interface card bound to the server's BMC (NIC_Mgmt). This process generates the first identification code and random number for each server's BMC in a similar manner.

[0102] It should be understood that the preset algorithm can be MD5 (Message-Digest 5 Algorithm), or other algorithms set according to the actual situation. This embodiment of the invention does not limit the algorithm.

[0103] Optionally, for the process of each smart network card establishing its internal communication channel with the connected server in step S206, this embodiment of the invention provides a possible implementation.

[0104] Step S206-1: Each smart network card establishes a communication connection between the first virtual network interface provided for the connected server and the second virtual network interface of its own CPU.

[0105] Step S206-3: When each smart network card receives a DHCP request message from the connected server through the first virtual network interface, it sends a DHCP response message carrying a specific IP address to the connected server, and establishes an internal communication channel between itself and the connected server based on the first virtual network interface, the second virtual network interface, the IP address of the first virtual network interface, and the IP address of the second virtual network interface.

[0106] In this embodiment, the smart network card can establish an internal communication channel with the connected server and obtain server resources and report them to the cloud platform through a pre-installed resource acquisition program or through a resource acquisition command issued by the cloud platform.

[0107] Smart network interface cards (NICs) can establish communication connections between their first virtual network interface (vnet1) provided to the connected server and their own CPU's second virtual network interface (vnet2) through table configuration via a forwarding module. This enables communication between the first virtual network interface (vnet1) and the second virtual network interface (vnet2). It's important to understand that both the first virtual network interface and the second virtual network interface refer to logical interfaces in network communication.

[0108] Then, the smart network card sets up DHCP (Dynamic Host Configuration Protocol) entries through the forwarding module so that when it receives a DHCP request message from the connected server through the first virtual network interface (vnet1), it sends a DHCP response message carrying a specific IP address to the connected server. Based on the first virtual network interface and the second virtual network interface, as well as the IP addresses of the first and second virtual network interfaces, it establishes an internal communication channel between itself and the connected server.

[0109] Optionally, for the process in step S206 where each smart network card obtains system information of the connected server through the internal communication channel, this embodiment of the invention provides a possible implementation.

[0110] Step S206-5: Each smart network card receives a startup completion message sent by the connected server through the internal communication channel. The startup completion message is sent by the connected server using the proxy service in the operating system after the operating system starts.

[0111] In steps S206-7, each smart network interface card (NIC) sends an information retrieval request to the connected server through the internal communication channel based on the startup completion message, and receives the device model and device serial number returned by the connected server to obtain the system information of the connected server.

[0112] In this embodiment, the server can boot the operating system through a cloud disk system mounted on its connected smart network card, or it can boot the operating system in other ways. This embodiment of the invention will be described using a cloud disk system mounted on a smart network card to boot the operating system.

[0113] After the server completes the boot of the operating system through the cloud disk system mounted on its connected smart network card, it can use the proxy service in the operating system to send a boot completion message to the connected smart network card through the internal communication channel.

[0114] Based on the startup completion message, the smart network card sends an information retrieval request to the connected server through the internal communication channel, and receives the device model and device serial number returned by the connected server, thus obtaining the system information of the connected server.

[0115] Optionally, for the process in step S208 where each smart network card generates a second identification code based on the received random number and the system information of the connected server, this embodiment of the invention provides a possible implementation method, namely: each smart network card performs calculations according to a preset algorithm based on the device model and device serial number of the connected server, the received random number, and its own management address to obtain the second identification code.

[0116] In this embodiment, the smart network card uses the same algorithm as the cloud platform to calculate the second identification code, H2, based on the device model (HOST_Type), device serial number (HOST_Serial), received random number (RAND_Num), and its own management address (NIC_Self_Mgmt) of the connected server.

[0117] Optionally, after step S210, this embodiment of the invention also provides a possible implementation method, namely: the cloud platform sends a power-off command to each server, and sets the binding status of the management address of the smart network card bound to the BMC of each server to "bound" according to the resource binding relationship.

[0118] In this embodiment, after obtaining the resource binding relationship, the cloud platform sends a power-down command to each server so that the server performs a power-down operation upon receiving the command, and sets the binding status of the management address of the smart network card bound to the BMC of each server to "bound" according to the resource binding relationship.

[0119] Optionally, embodiments of the present invention also provide a method for acquiring server resources applied to smart network interface cards (NICs). Please refer to [link to relevant documentation]. Figure 3 .

[0120] Step S302: Receive the first identification code and random number of the BMC of the server that has an initial binding relationship with the smart network card, sent by the cloud platform;

[0121] Step S304: Establish an internal communication channel between the smart network card and the connected server, and obtain system information of the connected server through the internal communication channel;

[0122] Step S306: Generate a second identification code based on a random number and the system information of the connected server, and compare the second identification code with the received first identification code;

[0123] In step S308, if the second identification code is the same as the received first identification code, an initial binding relationship correct message is sent to the cloud platform, and the resource information of the connected server is obtained and sent to the cloud platform, so that the cloud platform binds the smart network card, the server's BMC and the server's resource information based on the initial binding relationship correct message, and obtains the resource binding relationship.

[0124] It is understood that in the above embodiment with the cloud data center system as the execution subject, the implementation process of steps S202 to S210 is similar to that of steps S302 to S308 in this embodiment. The basic principles and technical effects of both are the same. For a brief description, please refer to the content of steps S202 to S210 in the above embodiment.

[0125] Optionally, for the process of establishing an internal communication channel between the smart network card and the connected server in step S304, this embodiment of the invention provides a possible implementation.

[0126] Step S304-1: Establish a communication connection between the first virtual network interface provided by the smart network card for the connected server and the second virtual network interface of its own CPU;

[0127] Step S304-3: When a DHCP request message is received from the connected server through the first virtual network interface, a DHCP response message carrying a specific IP address is sent to the connected server. A communication channel between the smart network card and the connected service is established based on the first virtual network interface, the second virtual network interface, the IP address of the first virtual network interface, and the IP address of the second virtual network interface.

[0128] It is understood that in the above embodiment with the cloud data center system as the execution subject, the implementation process of steps S206-1 to S206-3 is similar to that of steps S304-1 to S304-3 in this embodiment. The basic principles and technical effects of both are the same. For a brief description, please refer to the content of steps S206-1 to S206-3 in the above embodiment.

[0129] Optionally, for the process of obtaining system information of the connected server through the internal communication channel in step S304, this embodiment of the invention provides a possible implementation.

[0130] Step S304-5: Receive a startup completion message sent by the connected server through the internal communication channel. The startup completion message is sent by the connected server using the proxy service in the operating system after the operating system starts.

[0131] Step S304-7: Based on the startup completion message, send an information acquisition request to the connected server through the internal communication channel, and receive the device model and device serial number returned by the connected server to obtain the system information of the connected server.

[0132] It is understood that in the above embodiment with the cloud data center system as the execution subject, steps S206-5 to S206-7 are similar to steps S304-5 to S304-7 in this embodiment. The basic principles and technical effects of both are the same. For a brief description, please refer to the content of steps S206-5 to S206-7 in the above embodiment.

[0133] Optionally, for the process of generating the second identification code based on the random number and the system information of the connected server in step S306, the present invention provides a possible implementation method, namely: according to a preset algorithm, the second identification code is obtained by performing calculations based on the device model and device serial number of the connected server, the random number and its own management address.

[0134] It is understood that in the above embodiments where the cloud data center system is the execution subject, step S208 is similar to step S306 in this embodiment. The basic principles and technical effects of both are the same. For a brief description, please refer to the content of step S208 in the above embodiments.

[0135] This invention also provides a smart network interface card (NIC). Please refer to [link / reference]. Figure 4 This is a schematic diagram of a smart network interface card (NIC) provided in an embodiment of the present invention. The smart NIC includes a processor 110, a memory 120, and a communication module 130. The components are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0136] The processor 110 is used to read / write data or programs stored in the memory 120 and perform corresponding functions. It can be a general-purpose processor, including CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be a DSP digital signal processor, ASIC application-specific integrated circuit, FPGA off-the-shelf programmable gate array or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0137] The memory 120 is used to store programs or data. The memory 120 can be RAM (Random Access Memory), ROM (Read Only Memory), PROM (Programmable Read-Only Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electric Erasable Programmable Read-Only Memory), etc.

[0138] The communication module 130 is used for signaling or data communication with other devices.

[0139] Understandable Figure 4 The structure shown is only a schematic diagram of a smart network interface card (NIC). A smart NIC may also include components that are more advanced than those shown. Figure 4 The more or fewer components shown, or having the same Figure 4 The different configurations shown. Figure 4 The components shown can be implemented using hardware, software, or a combination thereof.

[0140] The memory in the smart network card stores a computer program. When the processor executes the computer program, it implements the server resource acquisition method disclosed in the embodiments of the present invention.

[0141] This invention also provides a cloud data center system, which includes a cloud platform, multiple servers, and multiple smart network interface cards (NICs), with each smart NIC connected to one of the servers; the cloud platform, each server, and each smart NIC are used to execute the server resource acquisition method disclosed in this invention.

[0142] In summary, compared with the prior art, the server resource acquisition method, smart network card, and cloud data center system provided by the present invention have the following beneficial effects: (1) By comparing the identification codes generated by the cloud platform and the smart network card respectively, the initial binding relationship between the BMC of the server and the smart network card is checked, thereby obtaining an accurate binding relationship. (2) An internal communication channel is established between the smart network card and the connected server, so that the server's resource information can be obtained without borrowing an external network. (3) DHCP is used to allocate IP addresses to the server's interface, eliminating the need to deploy a cumbersome DHCP service. This can be completed within the smart network card, making the operation simple and convenient. (4) The communication process between the smart network card and the server ensures that the address is not exposed to the outside world, allowing for batch replication and simultaneous deployment without address conflicts. (5) The entire process of acquiring server resources and establishing a binding relationship is executed automatically without human intervention. (6) The server resource acquisition method provided by the present invention has strong universality and replicability, with no incompatibility issues. It is independent of server manufacturers and server models, and can be deployed on a large scale.

[0143] In the several embodiments provided by this invention, it should be understood that each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those shown in the figures. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0144] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0145] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0146] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for acquiring server resources, characterized in that, Applied to a cloud data center system, the cloud data center system including a cloud platform, multiple servers, and multiple smart network interface cards (NICs), each of the smart NICs being connected to one of the servers, the method includes: The cloud platform determines the initial binding relationship between the Baseboard Management Controller (BMC) and the smart network interface card (NIC) of each server. The cloud platform generates a first identification code and a random number for the BMC of each server, and sends the first identification code and random number of the BMC of each server to the smart network card bound to the BMC of each server according to the initial binding relationship. Each of the smart network interface cards establishes an internal communication channel with the connected server and obtains system information of the connected server through the internal communication channel; Each of the smart network cards generates a second identification code based on the received random number and the system information of the connected server, and compares the second identification code with the received first identification code; When the second identification code is the same as the received first identification code, each smart network card sends an initial binding relationship correct message to the cloud platform, obtains the resource information of the connected server, and sends it to the cloud platform. The cloud platform binds the smart network card, the server's BMC, and the server's resource information corresponding to each initial binding relationship correct message to obtain a resource binding relationship.

2. The method according to claim 1, characterized in that, The cloud platform stores the BMC address of each of the servers and the management address of each of the smart network cards; The cloud platform determines the initial binding relationship between the Baseboard Management Controller (BMC) and the smart network interface card (NIC) of each server, including: The cloud platform traverses the BMC address of each server and sends a power-on command to the server corresponding to each BMC address. The power-on command is used to instruct the server corresponding to the BMC address to power on and supply power to the smart network card connected to the server. After each smart network interface card (NIC) is powered on, it will send a request message carrying its own management address and runtime to the cloud platform. When the management address in the request message is unbound and the runtime in the request message is less than a preset threshold, the cloud platform binds the BMC address corresponding to the currently sent power-on command to the management address in the request message. The cloud platform obtains the smart network card bound to the BMC of each server, and thus obtains the initial binding relationship.

3. The method according to claim 1, characterized in that, The cloud platform stores the BMC address of each of the servers and the management address of each of the smart network cards; The cloud platform determines the initial binding relationship between the Baseboard Management Controller (BMC) and the smart network interface card (NIC) of each server, including: The cloud platform traverses the BMC address of each server and sends a power-on command to the server corresponding to each BMC address. The power-on command is used to instruct the server corresponding to the BMC address to power on and supply power to the smart network card connected to the server. The cloud platform performs connectivity detection on each management address whose binding status is unbound, and binds the management address whose connectivity status changes from unconnected to connected to the BMC address corresponding to the currently sent power-on command; The cloud platform obtains the smart network card bound to the BMC of each server, and thus obtains the initial binding relationship.

4. The method according to claim 1, characterized in that, The cloud platform stores the BMC address of each server and the management address of each smart network interface card; the cloud platform generates a first identification code and a random number for the BMC of each server, including: The cloud platform obtains the device model and device serial number of the BMC of each server through the BMC address of each server, and generates a random number for the BMC of each server; The cloud platform calculates the first identification code of each server's BMC based on a preset algorithm, using the device model, device serial number, random number, and management address of the smart network card bound to each server's BMC.

5. The method according to claim 1, characterized in that, Each of the smart network interface cards establishes an internal communication channel with the connected server, including: Each of the smart network cards establishes a communication connection between a first virtual network interface provided for the connected server and a second virtual network interface of its own CPU; When each of the smart network interface cards receives a DHCP request message from the connected server through the first virtual network interface, it sends a DHCP response message carrying a specific IP address to the connected server, establishing an internal communication channel between itself and the connected server based on the first virtual network interface, the second virtual network interface, and the IP addresses of the first and second virtual network interfaces; and / or, Each of the smart network interface cards (NICs) obtains system information of the connected server through the internal communication channel, including: Each of the smart network interface cards receives a startup completion message sent by the connected server through the internal communication channel. The startup completion message is sent by the connected server using the proxy service in the operating system after the operating system starts. Each of the smart network interface cards (NICs) sends an information retrieval request to the connected server through the internal communication channel according to the startup completion message, and receives the device model and device serial number returned by the connected server to obtain the system information of the connected server.

6. The method according to claim 1, characterized in that, Each of the smart network interface cards (NICs) generates a second identification code based on a received random number and the system information of the connected server, including: Each of the smart network cards performs calculations according to a preset algorithm based on the device model and serial number of the connected server, the received random number, and its own management address to obtain the second identification code.

7. The method according to claim 2 or 3, characterized in that, The method further includes: The cloud platform sends a power-down command to each server and sets the binding status of the management address of the smart network card bound to the BMC of each server to "bound" according to the resource binding relationship.

8. A method for acquiring server resources, characterized in that, The method, applied to a smart network interface card (NIC) connected to a server and communicating with a cloud platform, includes: Receive the first identification code and random number of the BMC of the server that has an initial binding relationship with the smart network card, sent by the cloud platform; Establish an internal communication channel between the smart network card and the connected server, and obtain system information of the connected server through the internal communication channel; A second identification code is generated based on the random number and the system information of the connected server, and the second identification code is compared with the received first identification code. If the second identification code is the same as the received first identification code, an initial binding relationship correct message is sent to the cloud platform, and the resource information of the connected server is obtained and sent to the cloud platform, so that the cloud platform binds the smart network card, the server's BMC and the server's resource information based on the initial binding relationship correct message, thereby obtaining a resource binding relationship.

9. The method according to claim 8, characterized in that, Establishing an internal communication channel between the smart network card and the connected server includes: Establish a communication connection between the first virtual network interface provided by the smart network card for the connected server and the second virtual network interface of its own CPU; When a DHCP request message is received from the connected server via the first virtual network interface, a DHCP response message carrying a specific IP address is sent to the connected server. A communication channel is established between the smart network card and the connected service based on the first virtual network interface, the second virtual network interface, and the IP addresses of the first and second virtual network interfaces; and / or, The process of obtaining system information of the connected server through the internal communication channel includes: Receive a startup completion message sent by the connected server through the internal communication channel. The startup completion message is sent by the connected server using the proxy service in the operating system after the operating system starts. Based on the startup completion message, an information retrieval request is sent to the connected server through the internal communication channel, and the device model and device serial number returned by the connected server are received to obtain the system information of the connected server.

10. The method according to claim 8, characterized in that, The generation of the second identification code based on the random number and the system information of the connected server includes: The second identification code is obtained by performing calculations based on the device model and serial number of the connected server, the random number, and its own management address according to a preset algorithm.

11. A smart network interface card, characterized in that, It includes a processor and a memory, the memory storing a computer program, and the processor, when executing the computer program, implements the method according to any one of claims 8-10.

12. A cloud data center system, characterized in that, The cloud data center system includes a cloud platform, multiple servers, and multiple smart network interface cards (NICs), with each smart NIC connected to one of the servers; the cloud platform, each server, and each smart NIC are used to perform the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Remote-end-based server batch starting method and device, equipment and medium

    CN114205208A

  • Server and network card association registration method and device, electronic equipment and storage medium

    CN115834531A