Server management method, server and server management system

Through the high-speed serial bus PCIE connection, the processor receives the request message and forwards the response message in the server, which solves the problem of complex network cable connection in the existing technology and realizes the simplification and efficient management of the server.

CN115277348BActive Publication Date: 2024-09-10ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210852800.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-20
Publication Date
2024-09-10
Estimated Expiration
2042-07-20

AI Technical Summary

Technical Problem

In the prior art, connecting a baseboard management controller through a network cable to manage a server is complicated. Especially in the interaction between multiple server management devices and the baseboard management controller, the out-of-band network cable connection is too complicated.

Method used

The high-speed serial bus PCIE is used for connection. The processor receives the request message from the server management device, sends it to the baseboard management controller, and forwards the response message to the server management device, simplifying the connection process through the PCIE protocol.

Benefits of technology

It simplifies the connection method of the baseboard management controller, improves the efficiency and convenience of server management, avoids the complexity of network cable connection, and supports direct connection between multiple server management devices and the baseboard management controller.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115277348B
    Figure CN115277348B
Patent Text Reader

Abstract

The present application discloses a server management method, a server and a server management system, the method comprising: a processor receives a request message sent from a server management device; the processor sends the request message to a baseboard management controller; the processor receives a response message from the baseboard management controller; the processor sends the response message to the server management device, wherein the processor and the server management device and the processor and the baseboard management controller are connected via a high-speed serial bus PCIE, and the request message and the response message are messages that support the PCIE protocol. The present application solves the problem of complex connection when managing a server by connecting a baseboard management controller via a network cable in the prior art, thereby being able to connect to the baseboard management controller via PCIE, simplifying the connection method with the baseboard management controller, and being able to better manage the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server management, and in particular, to a server management method, a server, and a server management system. Background Art

[0002] The baseboard management controller (BMC) can manage computer equipment, such as checking the operating parameters of computer equipment and performing remote upgrades. A baseboard management controller is usually not installed in a personal computer. In order to better manage the server, a baseboard management controller is generally configured in the server so that the server can be managed. The server management device (e.g., smart card and / or device) is generally connected to the baseboard management controller via an external network cable. This way of managing the server outside the server is called out-of-band management.

[0003] Figure 1 It is a schematic diagram of an out-of-band management system in the related art, such as Figure 1 As shown, in order to enhance the stability of the system, smart board and / or device 1 and smart board and / or device 2 are mutually redundant backups. The out-of-band network cables of server 1 and server 2 need to be connected to smart board and / or device 1 and smart board and / or device 2 at the same time. In this scenario, the out-of-band network cable connection is complicated, and the BMC generally only provides one network port. A server needs to be connected to two smart boards / devices at the same time with the assistance of a switch.

[0004] It can be seen that in Figure 1 Although BMC provides the ability to manage servers out-of-band, it is generally achieved through an external network cable. In the case of multi-to-multi server management of smart boards or devices, the connection of the out-of-band network cable is too complicated. Summary of the invention

[0005] The embodiments of the present application provide a server management method, a server, and a server management system to at least solve the problem of complex connection when managing a server by connecting a baseboard management controller via a network cable in the prior art.

[0006] According to one aspect of the present application, a server management method is provided, including: a processor receives a request message sent from a server management device, wherein the request message is used to manage a server, and the processor is configured in the server; the processor sends the request message to a baseboard management controller; the processor receives a response message from the baseboard management controller, wherein the response message is a response message after the baseboard management controller processes the request message; the processor sends the response message to the server management device, wherein the processor and the server management device and the processor and the baseboard management controller are connected via a high-speed serial bus PCIE, and the request message and the response message are messages that support the PCIE protocol.

[0007] According to another aspect of the present application, a server is provided, including: a processor and a baseboard management controller, wherein the processor is used to execute the above method.

[0008] According to another aspect of the present application, a server management method is also provided, including: a server management device sends a request message to a processor, wherein the request message is used to manage the server, and the processor is configured in the server; the server management receives a response message from the processor, wherein the response message is a response made by the baseboard management controller after the processor sends the request message to the baseboard management controller and the baseboard management controller processes the request message; the server management device receives the response message, wherein the processor and the server management device and the processor and the baseboard management controller are connected via a high-speed serial bus PCIE, and the request message and the response message are messages that support the PCIE protocol.

[0009] According to another aspect of the present application, a server management method is also provided, including: a server management device sends a request message to a processor, wherein the request message is used to manage the server, and the processor is configured in the server; the processor sends the request message to a baseboard management controller; the processor receives a response message from the baseboard management controller, and sends the response to the server management device, wherein the response message is a response message after the baseboard management controller processes the request message; the server management device receives the response message, wherein the processor and the server management device and the processor and the baseboard management controller are connected via a high-speed serial bus PCIE, and the request message and the response message are messages that support the PCIE protocol.

[0010] According to another aspect of the present application, a server management system is also provided, including: the above-mentioned server, and the server management device.

[0011] In an embodiment of the present application, a processor is used to receive a request message sent from a server management device, wherein the request message is used to manage the server, and the processor is configured in the server; the processor sends the request message to a baseboard management controller; the processor receives a response message from the baseboard management controller, wherein the response message is a response message after the baseboard management controller processes the request message; the processor sends the response message to the server management device, wherein the processor is connected to the server management device and the processor is connected to the baseboard management controller via a high-speed serial bus PCIE, and the request message and the response message are messages that support the PCIE protocol. This application solves the problem of complex connection when managing a server by connecting a baseboard management controller via a network cable in the prior art, so that it can be connected to the baseboard management controller via PCIE, simplifying the connection method with the baseboard management controller, and better managing the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0013] Figure 1 It is a schematic diagram of an out-of-band management system according to the related art;

[0014] Figure 2 is a flow chart of a server management method according to an embodiment of the present application;

[0015] Figure 3 It is a schematic diagram of encapsulating IPMI into a PCIE data link layer message format according to an embodiment of the present application;

[0016] Figure 4 is a schematic diagram of a server management system based on a PCIE bus according to an embodiment of the present application;

[0017] Figure 5 is a structural diagram of a processor ManagementAgent according to an embodiment of the present application; and,

[0018] Figure 6 It is a schematic diagram of the server management process according to an embodiment of the present application. DETAILED DESCRIPTION

[0019] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0020] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0021] In the following embodiments, a server management device is used to manage a server. The server management device may be an intelligent board or an intelligent device. In the following embodiments, intelligent devices and / or boards that can manage a server are referred to as server management devices.

[0022] In the following embodiments, a high-speed serial bus (Peripheral Component Interconnect Express, referred to as PCIE) is used. There are multiple versions of PCIE, and any version can be applied to the following embodiments. In the following embodiments, it is necessary to manage the server. Based on this, a baseboard management controller is configured in the server. The processor in the server (referred to as CPU) is connected to the baseboard management controller through PCIE. The processor in the server can provide multiple ports (the ports can also be called root ports) for PCIE connection. In this case, the server management device can also be connected to the port provided by the processor through PCIE. When multiple server management devices are connected to the processor, different server management devices can be connected to different PCIE ports provided by the processor.

[0023] The baseboard management controller can be understood as a separate device, which is usually a patch integrated on the server motherboard or an independent board mounted on the server motherboard. The baseboard management controller does not rely on the server's processor, BIOS or operating system to work, but is powered by normal electricity and runs independently, with a separate subsystem.

[0024] Based on the above PCIE connection mode, in this embodiment, a server management method is provided. Figure 2 is a schematic diagram of a server management method according to an embodiment of the present application, such as Figure 2 As shown, the method comprises the following steps:

[0025] Step S202, the processor receives a request message sent from a server management device, wherein the request message is used to manage the server, and the processor is configured in the server;

[0026] Step S204, the processor sends the request message to the baseboard management controller;

[0027] Step S206, the processor receives a response message from the baseboard management controller, wherein the response message is a response message after the baseboard management controller processes the request message;

[0028] Step S208: The processor sends the response message to the server management device, wherein the processor and the server management device as well as the processor and the baseboard management controller are connected via a high-speed serial bus PCIE, and the request message and the response message are messages supporting the PCIE protocol.

[0029] In the above steps, when the server management device manages the server, it will send a request message for management, and the baseboard management controller will respond to the request message, that is, the baseboard management controller will process the request message and send a response message after processing. Since the server management device and the baseboard management controller are both connected to the processor through PCIE, in the above steps, the request message and response message are generated according to the requirements of the PCIE protocol. Through such processing, the server management device can interact with the baseboard management controller based on PCIE. The PCIE protocol supports the connection of multiple devices. If there are multiple server management devices that need to manage the server, at this time, the multiple server management devices can be directly connected to the processor. Compared with the prior art, when multiple server management devices use network cables to connect to the baseboard management controller, a switch is required. When using PCIE for connection, each of the multiple server management devices is also directly connected to the PCIE port in the processor. Similarly, if there are multiple baseboard management controllers, each baseboard management controller can be directly connected to the PICE port in the processor. Therefore, the above steps solve the problem of complex connection when managing the server by connecting the baseboard management controller through a network cable in the prior art, and then the baseboard management controller can be connected through PCIE, which simplifies the connection method with the baseboard management controller and can better manage the server.

[0030] The above steps are described from the processor side in the server. Correspondingly, the interaction steps between the server management device and the processor are as follows: the server management device sends a request message to the processor; the processor sends the request message to the baseboard management controller; the processor receives a response message from the baseboard management controller and sends the response to the server management device; the server management device receives the response message. Regardless of which side is described, as long as the processor and the server management device and the processor and the baseboard management controller are connected through a high-speed serial bus PCIE, and the request message and the response message are both messages that support the PCIE protocol, the problems in the prior art can be solved. This is the technical effect brought about by PCIE.

[0031] Several types of devices are defined in the PCIE system: root complex (RC), switch, node device (Endpoint), etc. Among them, the root complex is the interface between the CPU and the PCIE bus. Since the topology supported by PCIE is a tree topology, the root complex is located at the "root" of the PCIE inverted tree topology and communicates with the rest of the system on behalf of the CPU. In a broad sense, RC can be understood as the interface between the system CPU and the PCIE topology, and the PCIE port is marked as a "root port" in the configuration space. Switch: Provides expansion or aggregation capabilities and allows more devices to be connected to a PCIE port. They act as packet routers and identify which path a given packet needs to take based on the address or other routing information. Endpoint: At the end of the PCIE bus system topology, generally acting as the initiator or terminator of the bus operation. Endpoint can only accept data packets from the upper topology or send data packets to the upper topology. Figure 2 The baseboard management controller and the server management device in the steps shown can both be understood as Endpoints in PCIE.

[0032] In an optional implementation, the function of the root complex can be implemented by a processor, that is, the processor includes a PCIE root complex, the root complex includes multiple root ports, each root port is connected to a device supporting PCIE, and the device supporting PCIE includes the server management device and the baseboard management controller; the root complex serves as a bridge connecting the devices supporting PCIE. This implementation method can directly implement the PCIE topology through the processor, making the connection simpler.

[0033] Since the root complex includes multiple root ports, in an optional implementation, the devices connected to each root port can be saved in the processor. For example, the root port connected to the baseboard management controller can be saved in the processor in the form of a mapping table, that is, the correspondence between the baseboard management controller and the root port connected to the baseboard controller is saved in the table. Through this processing method, the root port connected to the baseboard management controller can be quickly found, and then the message can be forwarded through the root port. That is, in this optional implementation, the step of the processor sending the request message to the baseboard management controller can include: the processor searches for whether there is a root port connected to the baseboard management controller; after the processor finds the root port connected to the baseboard management controller, the processor sends the request message to the baseboard management controller through the root port.

[0034] Through the above processing method, the processor can forward the request message to the baseboard management controller more quickly. There are many ways to obtain the root port where the baseboard management controller is located. For example, the processor can send an inquiry message to each port when idle, and the inquiry message is used to inquire about the type of device connected to each root port. After receiving the response message, the processor can save the device connected to each root port. Or, as another more direct processing method, after receiving the request message, if the processor does not find the root port connected to the baseboard management controller, at this time, the processor can send the request message to all root ports except the root port connected to the server management device; since the request message needs to be processed by the baseboard management controller, if the device connected to the root port is not the baseboard management controller, the device will not process the request message. In this case, only the baseboard management controller will process the request message. After the baseboard management controller processes the request message to obtain a response message, the response message is sent to the processor. When the processor receives the response message from the baseboard management controller, it establishes a mapping relationship between the root port that receives the response message and the baseboard management controller. After establishing the mapping relationship between the root port and the baseboard management controller, if the processor receives a request message, it can directly find the root port where the baseboard management controller is located according to the mapping relationship, and then forward the request message directly to the baseboard controller through the root port.

[0035] There are many root ports of the processor, which can be connected to multiple server management devices. Therefore, when multiple server management devices are connected, it is necessary to distinguish which server management device the request message comes from. There are many ways to distinguish, for example, a specific byte can be used in the request message to identify the server management device from which it comes. This processing method requires changing the format of the request message, which is somewhat cumbersome to implement.

[0036] In an optional implementation, the processor may record the root port of the source of the request message, and after receiving the response message corresponding to the request message, send the response message to the corresponding server management device according to the recorded root port of the source of the request message. That is, in this optional method, after receiving the request message, the processor saves the correspondence between the root port of the source of the request message and the identifier of the request message in a table; the processor searches the table for the root port corresponding to the identifier of the request message corresponding to the response message, and the processor sends the response message to the server management device through the root port corresponding to the identifier.

[0037] In this optional method, a table is used to record the root port of each request message source, and a response message is sent according to the root port of the request message source. That is, the processor is equivalent to performing message routing processing. In this way, the request message and the response message themselves do not need to be modified. Only a table needs to be added to the processor to record the root port of the request message source. The implementation is simple and the processing efficiency is relatively high.

[0038] Since the purpose of the request message is to obtain a response message, after obtaining the response message of the request message, the root port number corresponding to the request message can be considered to be deleted from the table. In this optional manner, after the processor sends the response message to the server management device, the processor deletes the corresponding relationship between the root port of the source of the request message and the identifier of the request message in the table.

[0039] This processing method can keep the space occupied by the table small and the content in the table small. The processor needs to consume fewer resources when searching for the corresponding root port in the table, which is conducive to improving the operating efficiency of the processor.

[0040] The above request message and response message are transmitted through PCIE, so both the request message and the response message are messages that support the PCIE protocol. A complete PCIE architecture includes the application layer, transaction layer (TransactionLayer), data link layer (Data Link Layer) and physical layer (Physical Layer), among which the application layer is defined by the user according to his own needs. The other three layers are explained below.

[0041] Transaction Layer: The transaction layer at the receiving end is responsible for decoding and checking the transaction layer packet (TLP), and the transaction layer at the sending end is responsible for creating TLP. In addition, the transaction layer also has functions such as QoS (Quality of Service), flow control, and transaction ordering.

[0042] Data Link Layer: The Data Link Layer is responsible for the creation, decoding and verification of Data Link Layer Packets (DLLPs). At the same time, this layer also implements the Ack / Nak response mechanism.

[0043] Physical Layer: The physical layer is responsible for the creation and decoding of ordered-set packets. It is also responsible for sending and receiving all types of packets. Currently, before sending, the packet needs to undergo a series of processing, such as scrambling and encoding. Correspondingly, the opposite processing needs to be performed at the receiving end. In addition, the physical layer also implements the functions of link training and link initialization, which are generally accomplished through the link training state machine (LTSSM).

[0044] The request message and the response message can be implemented by selecting the above three different layers of messages as needed. In an optional method, the PCIE data link layer message can be selected to implement the above request message and response message. The message length of the PCIE data link layer message is shorter than the message length of the transaction layer, and the PCIE data link layer message also has a corresponding transmission control function compared to the physical layer message. In addition, another important reason for selecting link layer transmission is that the transmission layer depends on the software (BIOS, etc.) configuration. For example, the software needs to configure the bus number, the base address register allocation (BaseAddress Registers, referred to as BAR) resources, etc., and the out-of-band management should be as independent as possible, so as to ensure that the CPU is hung and cannot run the software, and the out-of-band management function can still be completed (for example, the out-of-band restart recovery CPU). Therefore, using PCIE data link layer messages to transmit request messages and response messages is a better way. Using PCIE data link layer messages can improve the efficiency of message transmission between the server management device and the baseboard management controller.

[0045] The request message and response message are PCIE data link layer messages. In addition to the required field content that constitutes the PCIE data link layer message, the specific request content in the request message and the processing result obtained after processing the request message carried in the response message are relatively important to the server management device and the baseboard management controller. The server management device and the baseboard management controller can agree on the format of the request content and the processing result, so that both parties can generate the request content and processing result based on the format of the agreed number, and then encapsulate the request content and processing result into a PCIE data link layer message for transmission.

[0046] In another optional manner, the request content and processing results may also adopt an existing management protocol. In this case, the server management device and the baseboard management controller only need to generate the request content and processing results according to the format of the existing management protocol, and then encapsulate the generated request content and processing results into a PCIE data link layer message. There are many existing management protocols, and one of them can be selected for use according to actual needs. As an optional implementation method, the intelligent platform management interface IPMI protocol can be selected to generate the request content and processing results. IPMI is introduced below.

[0047] The full name of the Intelligent Platform Management Interface should be Intelligent Platform Management Interface, abbreviated as IPMI. It was jointly proposed by multiple companies and manufacturers, and has been supported by many suppliers, which has gradually made it a complete hardware management specification that includes servers and other systems (such as storage devices, networks, and communication devices). Through this specification, users can use the IPMI protocol to monitor the physical health characteristics of the server, for example, they can monitor temperature, voltage, fan working status, power status, etc. In summary, IPMI is a server-oriented management protocol that specifies the message format specification. For different transmission interfaces, the message format will be different. At the same time, in addition to the standard commands specified by the protocol, many custom (OEM) commands are reserved, and users can implement OEM commands according to actual needs.

[0048] IPMI can centrally control and monitor the server, and can be considered as the security guard of the server. The following is an example to illustrate the functions of IPMI.

[0049] 1. Remotely control server power on / off, restart and other operations.

[0050] 2. Remotely view and modify BIOS settings and view the system startup process.

[0051] 3. Remotely connect to the server, log in to the system, and solve the ssh access problem.

[0052] 4. View system fault log records Access the System Event Log (SEL) and sensor status, etc.

[0053] 5. Get SNMP alerts for the system.

[0054] 6. Remotely install the system and check for system startup failures and other issues.

[0055] 7. Make various settings for the system, etc.

[0056] The IPMI protocol is based on a command / response mechanism, in which the command can be understood as the above-mentioned request message. When working, all IPMI commands are sent to the BMC. After receiving the command, the BMC returns the result or performs the corresponding operation, and the corresponding data or operation log can be recorded on the BMC. In this embodiment, a server management device is used to interact with the BMC. The server management device sends a command to the BMC (the command is carried in the request message) and receives a response from the BMC (the response is carried in the response message), so that the server can be remotely managed. During remote management, the sensor status information of the server, the debugging information of the host (abbreviated as SOL), and the power-on and power-off restart of the server can be obtained through commands.

[0057] In this embodiment, PCIE is used between the server management device and the baseboard management controller, so when using IPMI commands and responses, the commands and responses need to be encapsulated into PCIE data link layer messages. That is, the request message is obtained by the server management device encapsulating the command in the intelligent platform management interface protocol IPMI into the PCIE data link layer message, and the response message is obtained by the baseboard management controller encapsulating the response to the command in the IPMI into the PCIE data link layer message.

[0058] Encapsulating IPMI into PCIE data link layer messages requires finding appropriate fields in the PCIE data link layer messages to place IPMI commands and responses. Figure 3 This is a schematic diagram of encapsulating IPMI into a PCIE data link layer message format according to an embodiment of the present application. Figure 3 The format of the PCIE data link layer message carrying the IPMI command and / or response is described. In the following description, the PCIE data link layer message carrying the IPMI command and / or response is referred to as an IPMIDLLP message.

[0059] Figure 3 The IPMI DLLP message format is shown in Figure 3As shown, the 0th byte is the DLLP Type, which is used to identify the message as an IPMI DLLP message; the 1st byte is a reserved byte; the 2nd byte is a sequence number (sequence num), which can be understood as an identifier for identifying the message; the 3rd byte is the IPMI DLLP message length (excluding cyclic redundancy check, referred to as CRC); the 4th byte is the IPMI DLLP Type, which is used to identify an IPMI Request DLLP (i.e., a request message) or an IPMI Response DLLP (i.e., a response message); the 5th byte to the DLLP length (Len) byte are the IPMI protocol content; the DLLP Len byte to the DLLP Len+2 byte are the CRC.

[0060] pass Figure 3 In the IPMI DLLP message shown in the figure, a predetermined byte (for example, the 4th byte) is used in the PCIE data link layer message to identify whether the PCIE data link layer message is the request message or the response message, so as to facilitate the processor to process the PCIE data link layer message. For example, after receiving the PCIE data link layer message, the processor determines whether the PCIE data link layer message is a request message or a response message based on the content in the 4th byte. If it is a request message, a corresponding relationship is established between the identifier of the request message (for example, a sequence number) and the root port of the source of the request message and stored in a table; if it is a response message, the corresponding root port is searched according to the identifier of the request message corresponding to the response message, and the response message is sent to the server management device from the root port found.

[0061] In the case where both the request message and the response message are PCIE data link layer messages, the specific request content in the request message and the processing result of the request message carried in the response message can be carried in the corresponding fields of the PCIE data link layer message as needed.

[0062] Figure 3 What is shown is an example, in which the command in the IPMI and the response in the IPMI are encapsulated between the fifth byte in the PCIE data link layer message and the byte used to indicate the length of the PCIE data link layer message. Of course, the command and response in the IPMI can also be encapsulated in other fields, which will not be described one by one here. No matter which field the command and response of the IPMI are encapsulated in, as long as they are encapsulated into a PCIE data link layer message, the interaction between the server management device and the baseboard management controller can be realized.

[0063] In the above embodiment, the server management device and the baseboard management controller interact with each other through the processor via the PICE data link layer message, and the functions implemented by the processor have been described above. According to the above description, in an optional embodiment, a server can also be provided, which includes a processor and a baseboard management controller that implement the above functions. The baseboard management controller can be integrated on the mainboard of the server, or it can be a board inserted into the mainboard of the server. No matter how the baseboard management controller is installed in the server, as long as the above functions can be implemented, the interaction between the server management device and the PCIE can be realized.

[0064] When the IPMI protocol is adopted, the above-mentioned baseboard management controller needs to be able to process IPMI commands, which are encapsulated into PCIE data link layer messages. In addition, the baseboard management controller also needs to be able to encapsulate the response to the IPMI command into a PCIE data link layer message. In an optional implementation, these functions can be divided into different models for implementation.

[0065] That is, in this optional implementation, the baseboard management controller may include: an IPMI module, an IPMI over PCIE module, and a PCIE data link layer module, wherein the IPMI module is used to generate a message based on the IPMI protocol, the IPMI over PCIE module is used to encapsulate the message based on the IPMI protocol into a PCIE data link layer message, and the PCIE data link layer module is used to transmit the PCIE data link layer message. The message based on the IPMI protocol may be an IPMI command or an IPMI response.

[0066] In another embodiment, the server management device and the above server can also be combined into a server management system. The server management system includes the above server and the server management device.

[0067] Similar to the baseboard management controller, when the IPMI protocol is adopted, the server management device also needs to encapsulate the IPMI format message (such as the command that needs to be sent to the baseboard management controller) into a PCIE data link layer message; the server management device also needs to parse the received PCIE data link layer message. In an optional embodiment, these functions can also be implemented by different modules in the server management device. For example, the server management device may include: an IPMI module, an IPMI over PCIE module and a PCIE data link layer module, wherein the IPMI module is used to generate a message based on the IPMI protocol, the IPMI over PCIE module is used to encapsulate the message based on the IPMI protocol into a PCIE data link layer message, and the PCIE data link layer module is used to transmit the PCIE data link layer message.

[0068] The server management device may be a smart board or a smart device. An optional embodiment is described below with reference to the accompanying drawings, taking the server management device being a smart board or a device as an example.

[0069] Figure 4 is a schematic diagram of a server management system based on a PCIE bus according to an embodiment of the present application, such as Figure 4 As shown, the server includes components such as a processor (CPU) and a baseboard management controller (BMC). In an optional embodiment, the CPU includes a root complex (Root Complex), and the functions implemented by the processor in the above implementation and this optional embodiment can all be implemented by the root complex. In order to more clearly describe the functions of the root complex, in this optional embodiment, the Root Complex can be divided into two functional parts, that is, the root complex can include a management agent (Management Agent) and a root port (Root Port). Figure 4 Two root ports are shown in FIG. 1 , one of which is connected to the BMC through PCIE, and the other is connected to the smart card or device through PCIE. It should be noted that the processor can have more than two ports for connecting to the BMC or smart card or device. Figure 4 In order to make the direction of the data packet clearer, only two ports are shown. Figure 4 In the structure shown, the management agent realizes the functions of the processor in the above-mentioned embodiment.

[0070] exist Figure 4 The structure of BMC and smart board or device is also shown in FIG. 1 , which are described below. Figure 4As shown, the baseboard management controller (BMC for short) may include a data link layer (Data Link Layer Packets, PCIE DLLP for short) module, an IPMI over PCIE module and an intelligent platform management interface (Intelligent Platform Management Interface, IPMI for short) processing module (or IPMI module for short). The baseboard management controller is connected to the Root Port of the CPU Root Complex via PCIE. Similar to the structure of the baseboard management controller, the smart board or device also includes: a PCIE DLLP module, an IPMI over PCIE module and an IPMI command module. The smart board or device is connected to the Root Port of the server CPU Root Complex via PCIE.

[0071] Among them, the IPMI processing module is used to generate IPMI commands or to process the commands after receiving the IPMI commands and feedback the processing results (i.e., responses), the IPMI over PCIE module encapsulates the IPMI commands or responses into PICE data link layer messages or parses the received PICE data link layer messages to obtain IPMI commands or responses, and the PCIE DLLP module is used to send or receive PCIE data link layer messages. The following describes each module in the smart board or device and the baseboard management controller.

[0072] The IPMI module (also referred to as the IPMI command module) in the smart board or device is used to generate IPMI commands (sending direction of the smart board or device) and process IPMI responses (receiving direction of the smart board or device). The IPMI over PCIE module is used to assemble the IPMI command into an IPMI Request DLLP (i.e., a request message) and hand it over to the PCIE DLLP module (sending direction of the smart board or device) and parse the IPMI Response DLLP (i.e., a response message) and hand the result over to the IPMI command module (receiving direction of the smart board or device). The PCIE DLLP module is used to send IPMI Request DLLP messages in the sending direction and to identify IPMI Response DLLP messages in the receiving direction and hand them over to the IPMI over PCIE module.

[0073] The IPMI command module of BMC is used to process IPMI commands (BMC receiving direction) and generate IPMI processing results (BMC sending direction). The IPMI over PCIE module is used to parse the IPMI Request DLLP and hand the results to the IPMI processing module (BMC receiving direction) and assemble the IPMI processing results into IPMI Response DLLP and hand it to the PCIE DLLP module (BMC sending direction). The PCIE DLLP module is used to identify the IPMI Request DLLP message in the receiving direction and hand it to the IPMI over PCIE module, and to send the IPMI Response DLLP message in the sending direction.

[0074] It can be seen that the smart board or device and the baseboard management controller both process the commands or processing results in the IPMI protocol, or encapsulate them into PCIE data link layer messages, or parse the PCIE data link layer messages to obtain response results. Regardless of encapsulation or parsing, it is necessary to determine the structure of the PCIE data link layer message. Figure 3 An optional structure is shown in FIG. Figure 3 As shown, the IPMI DLLP message format is as follows: the 0th byte is DLLP Type, used to identify IPMI DLLP; the 1st byte is a reserved byte; the 2nd byte is sequence num; the 3rd byte is DLLP length (excluding CRC); the 4th byte is IPMI DLLP Type, used to identify IPMI Request DLLP or IPMI Response DLLP; the 5th byte to DLLP Len byte are IPMI protocol content; the DLLP Len byte to DLLP Len+2 byte are CRC. It should be noted that this message structure is only an optional structure. In actual application, other message structures can also be selected as needed, which will not be repeated here.

[0075] In this optional embodiment, considering that there is no field for routing in the PCIE data link layer message, a table is used for routing in this optional embodiment. That is, the routing function is implemented by the Management Agent through two tables. The two tables are the BMC and Root Port mapping table and the sequence num and Rootport mapping table. Among them, the Management Agent searches the BMC and Root Port mapping table to see if there is a root port connected to the baseboard management controller; after finding the root port connected to the baseboard management controller, the request message is sent to the corresponding baseboard management controller through the root port. The Management Agent records the root port of the request message source in the sequence num and Rootport mapping table, and after receiving the response message corresponding to the request message, the response message is sent to the corresponding server management device according to the recorded root port of the request message source. It should be noted that the sequence num and Rootport mapping table can be a first-in-first-out (abbreviated as FIFO) table, so the sequence num and Rootport mapping table can also be called a sequence num-Root Port FIFO table.

[0076] Figure 5 is a schematic diagram of the structure of the processor Management Agent according to an embodiment of the present application, such as Figure 5 As shown, the Management Agent may include a PCIE DLLP module, a BMC-Root Port mapping table, and a sequence num-RootPort FIFO table. The PCIE DLLP module is used to identify the IPMI Request DLLP of the smart board or device, and parse the sequence num in the IPMIRequest DLLP to add its mapping relationship with the Rootport to the sequence num-RootPort FIFO table, or identify the IPMI Response DLLP of the BMC, and parse the sequence num in the IPMI Response DLLP to delete it from the sequence num-Root Port FIFO table. The PCIE DLLP module is also used to identify the IPMI Response DLLP of the BMC, and record the mapping relationship between the BMC and the Root Port in the BMC-Root Port mapping table.

[0077] Figure 6 is a schematic diagram of a server management process according to an embodiment of the present application, such as Figure 6 As shown, after the server is powered on, the smart board or device IPMI command module is used to generate IPMI commands, which are assembled into IPMI Request DLLP and sent to the CPU Root Complex. The PCIE DLLP module in the CPU Root Complex Management Agent recognizes the IPMI Request DLLP, parses the sequence num in the IPMI Request DLLP, and adds its mapping relationship with the Root Port to the sequence num-Root Port FIFO table. The Management Agent checks whether there is a BMC and Root Port mapping table. If so, it forwards the IPMI Request DLLP to the BMC. If not, it forwards the IPMI Request DLLP to all Root Ports of the CPU Root Complex (except the Root Ports connected to the smart board or device). The BMC receives the IPMI Request DLLP, parses and processes the IPMI command, and assembles the processing result into an IPMI Response DLLP, which is sent to the CPU Root Complex. The PCIE DLLP module in the CPU Root Complex ManagementAgent identifies the IPMI Response DLLP, parses the sequence num in the IPMI Response DLLP, forwards the IPMI Response DLLP to the smart board or device according to the sequence num-Root Port FIFO table, and finally deletes the mapping relationship of the sequence num-Root port from the sequence num-Root PortFIFO table.

[0078] In the above optional embodiment, the solution of the smart board or device management server BMC is implemented based on the PCIE link layer, and the BMC and the smart board or device can be distinguished by the Requset and Response types. The processing of the routing part is to find the Response DLLP routing information through the sequence num.

[0079] The following technical effects can be achieved through the above implementation: a solution for a smart board or device to manage a server BMC through PCIE is implemented. Since the above solution is implemented based on the PCIE link layer, it is free from the influence of the server BIOS.

[0080] In this embodiment, an electronic device is provided, including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the method in the above embodiment.

[0081] The above program can be run in the processor, or it can be stored in the memory (or computer-readable medium), which includes permanent and non-permanent, removable and non-removable media. Information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0082] These computer programs can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in one or more blocks can be implemented by different modules corresponding to different steps.

[0083] This embodiment provides such a processor, which includes the following modules:

[0084] A first receiving module, configured to receive a request message sent from a server management device, wherein the request message is used to manage the server, and the processor is configured in the server;

[0085] A first sending module, used to send the request message to a baseboard management controller;

[0086] A second receiving module is used to receive a response message from the baseboard management controller, wherein the response message is a response message after the baseboard management controller processes the request message;

[0087] The second sending module is used to send the response message to the server management device, wherein the processor and the server management device and the processor and the baseboard management controller are connected through a high-speed serial bus PCIE, and the request message and the response message are messages that support the PCIE protocol.

[0088] The system or device is used to implement the functions of the method in the above-mentioned embodiment. Each module in the system or device corresponds to each step in the method, which has been explained in the method and will not be repeated here.

[0089] For example, the processor includes a root complex of PCIE, the first receiving module, the first sending module, the second receiving module and the second sending module are located in the root complex, the root complex includes multiple root ports, each root port is connected to a device supporting PCIE, and the devices supporting PCIE include the server management device and the baseboard management controller; the root complex serves as a bridge connecting the devices supporting PCIE.

[0090] Optionally, the first sending module is used to search whether there is a root port connected to the baseboard management controller; after finding the root port connected to the baseboard management controller, the processor sends the request message to the baseboard management controller through the root port.

[0091] Optionally, the first sending module is also used to send the request message to all root ports except the root port connected to the server management device when the root port connected to the baseboard management controller is not found; the processor also includes a saving module for establishing a mapping relationship between the root port that receives the response message and the baseboard management controller when a response message is received from the baseboard management controller.

[0092] Optionally, the saving module is also used to save the correspondence between the root port of the source of the request message and the identifier of the request message in a table after receiving the request message; the second sending module is used to search the root port corresponding to the identifier in the table according to the identifier of the request message corresponding to the response message, and the processor sends the response message to the server management device through the root port corresponding to the identifier.

[0093] Optionally, the processor further comprises a deleting module, configured to delete, in the table, the correspondence between the root port of the source of the request message and the identifier of the request message after sending the response message to the server management device.

[0094] The above embodiments solve the problem of complex connection when managing a server by connecting a baseboard management controller via a network cable in the prior art, thereby enabling connection to the baseboard management controller via PCIE, simplifying the connection method with the baseboard management controller, and enabling better management of the server.

[0095] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A server management method, comprising: The processor receives a request message sent from a server management device, wherein the request message is used to manage the server, and the processor is configured in the server; The processor sends the request message to a baseboard management controller; The processor receives a response message from the baseboard management controller, wherein the response message is a response message after the baseboard management controller processes the request message; The processor sends the response message to the server management device, wherein the processor is connected to the server management device and the processor is connected to the baseboard management controller via a high-speed serial bus PCIE, and the request message and the response message are messages supporting the PCIE protocol; the processor includes a root complex of PCIE, the root complex includes multiple root ports, each root port is connected to a device supporting PCIE, and the devices supporting PCIE include the server management device and the baseboard management controller; the root complex serves as a bridge connecting the devices supporting PCIE; the devices connected to each root port are stored in the processor, wherein the root port connected to the baseboard management controller is stored in the processor by means of a mapping table.

2. The method according to claim 1, wherein: The processor sending the request message to the baseboard management controller includes: The processor searches for a root port connected to the baseboard management controller; After finding the root port connected to the baseboard management controller, the processor sends the request message to the baseboard management controller through the root port.

3. The method according to claim 2, wherein: Also includes: When the processor fails to find the root port connected to the baseboard management controller, the processor sends the request message to all root ports except the root port connected to the server management device; When receiving a response message from the baseboard management controller, the processor establishes a mapping relationship between the root port that receives the response message and the baseboard management controller.

4. The method according to claim 1, wherein: The method further includes: after receiving the request message, the processor saves the corresponding relationship between the root port of the request message source and the identifier of the request message in a table; The processor sending the response message to the server management device includes: the processor searching the table for a root port corresponding to an identifier of the request message corresponding to the response message, and the processor sending the response message to the server management device through the root port corresponding to the identifier.

5. The method according to claim 3, wherein: After the processor sends the response message to the server management device, the method further includes: The processor deletes the correspondence between the root port of the source of the request message and the identifier of the request message in the table.

6. The method according to any one of claims 1 to 5, wherein: The request message and the response message are both PCIE data link layer messages.

7. The method according to claim 6, wherein: The request message is obtained by the server management device encapsulating a command in the intelligent platform management interface protocol IPMI into the PCIE data link layer message, and the response message is obtained by the baseboard management controller encapsulating a response to the command in the IPMI into the PCIE data link layer message; And / or, a predetermined byte is used in the PCIE data link layer message to identify that the PCIE data link layer message is the request message or the response message.

8. The method according to claim 7, wherein: The command in the IPMI and the response in the IPMI are encapsulated between the fifth byte in the PCIE data link layer message and the byte used to indicate the length of the PCIE data link layer message.

9. A server, comprising: A processor, configured to execute the method according to any one of claims 1 to 8; as well as, The baseboard management controller.

10. The server according to claim 9, wherein: The baseboard management controller includes: an IPMI module, an IPMI over PCIE module and a PCIE data link layer module, wherein the IPMI module is used to generate a message based on the IPMI protocol, the IPMI over PCIE module is used to encapsulate the message based on the IPMI protocol into a PCIE data link layer message, and the PCIE data link layer module is used to transmit the PCIE data link layer message.

11. A server management method, comprising: The server management device sends a request message to the processor, wherein the request message is used to manage the server, the processor is configured in the server, and the server is the server according to claim 9 or 10; The server management receives a response message from the processor, wherein the response message is a response made by the baseboard management controller after the processor sends the request message to the baseboard management controller and the baseboard management controller processes the request message; The server management device receives the response message, wherein the processor and the server management device as well as the processor and the baseboard management controller are connected via a high-speed serial bus PCIE, and the request message and the response message are messages supporting the PCIE protocol.

12. A server management method, comprising: The server management device sends a request message to the processor, wherein the request message is used to manage the server, the processor is configured in the server, and the server is the server according to claim 9 or 10; The processor sends the request message to a baseboard management controller; The processor receives a response message from the baseboard management controller, and sends the response to the server management device, wherein the response message is a response message after the baseboard management controller processes the request message; The server management device receives the response message, wherein the processor and the server management device as well as the processor and the baseboard management controller are connected via a high-speed serial bus PCIE, and the request message and the response message are messages supporting the PCIE protocol.

13. A server management system, comprising: The server according to claim 9 or 10, and the server management device, wherein: The server management device includes: an IPMI module, an IPMI over PCIE module and a PCIE data link layer module, wherein the IPMI module is used to generate messages based on the IPMI protocol, the IPMI over PCIE module is used to encapsulate messages based on the IPMI protocol into PCIE data link layer messages, and the PCIE data link layer module is used to transmit the PCIE data link layer messages.