Fast transmission method and related equipment of IPMI protocol

By dividing the out-of-band communication channel between the master control end and the slave control end, the SPI module is used to realize the rapid transmission of IPMI protocol data, which solves the problem of IPMI protocol data transmission rate and distance limitations, and improves the efficiency of the remote management and monitoring system. and reliability, applicable to a variety of hardware platforms.

CN118413583BActive Publication Date: 2024-10-18RIVAI TECH (SHENZHEN) CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410878442.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-18
Estimated Expiration
2044-07-02

AI Technical Summary

Technical Problem

The existing IPMI protocol data transmission rate is slow and the communication distance is limited, which limits the performance and efficiency of remote management and monitoring systems. It is especially difficult to meet the needs for efficient and stable data transmission in large-scale server clusters or distributed network environments.

Method used

By dividing the out-of-band communication channel between the master control end and the slave control end, the SPI module is used to realize the rapid transmission of IPMI protocol data. The data packet is encoded into a command message and transmitted through the out-of-band channel. The data length is supported to be larger than the single transmission length. splitting and multiple transmissions, combined with the intermediate conversion of the eSPI protocol, to achieve efficient data transmission.

Benefits of technology

It improves the efficiency and reliability of IPMI protocol data transmission, reduces hardware interface requirements, is suitable for different IPMI protocol hardware, has high flexibility, and can achieve fast and reliable data transmission on different hardware platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118413583B_ABST
    Figure CN118413583B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the field of computer remote control technology, and in particular, relates to a fast transmission method of IPMI protocol and related equipment. The present invention encapsulates IPMI protocol data according to certain rules for ordinary SPI data, and uses a universal SPI interface without a special eSPI module to complete the transmission of IPMI protocol data, thereby reducing hardware interface requirements, and compared with existing low-speed peripherals, it can also improve data transmission efficiency, has strong reliability, can be applied to different IPMI protocol hardware, and has high flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention is applicable to the technical field of computer remote control, and in particular relates to a fast transmission method of an IPMI protocol and related equipment. Background Art

[0002] IPMI (Intelligent Platform Management Interface) is a standard protocol for remote management and monitoring of computer systems. The protocol allows system administrators to remotely control and monitor systems such as servers and network devices over the network, including access and operation of hardware status, sensor monitoring, power management, event logging, etc.

[0003] The BMC (Baseboard Management Controller) chip is the main processor of the IPMI protocol. This chip is mainly used on the motherboard of a server or network device and is responsible for processing the sending and receiving of IPMI commands and data. The BMC chip communicates with the host processor and other components to achieve remote control and monitoring functions.

[0004] In the related art, the BMC chip usually uses the I2C (Inter-Integrated Circuit) or SMBus (System Management Bus) interface on the motherboard to communicate with other devices and transmit data based on the IPMI protocol. However, this method has some problems: first, since the I2C and SMBus interfaces on the motherboard are universal serial bus interfaces, their data transmission rate is slow, which becomes a bottleneck for the timely transmission and processing of remote control data; second, the communication distance of the I2C and SMBus interfaces is limited, generally within a few meters, and cannot meet the needs of remote management and monitoring in long-distance environments.

[0005] There is also IPMI protocol data transmission achieved through Ethernet and fiber optic communication, but the network configuration of Ethernet is more complex, and fiber optic communication relies on fiber optic transmission equipment and optical module components outside the motherboard. The cost and configuration complexity will also increase accordingly, and the use conditions of both are more stringent.

[0006] In general, the existing IPMI protocol has slow data transmission rate and limited communication distance, which limits the performance and efficiency of remote management and monitoring systems. With the development of Internet technology, in large-scale server clusters or distributed network environments, efficient and stable data transmission is required to achieve fast response and accurate data processing.

[0007] Therefore, a new technology and method is urgently needed to improve the data transmission rate and communication distance of the IPMI protocol to meet the needs of remote management and monitoring systems. Summary of the invention

[0008] The invention provides a fast transmission method of IPMI protocol and related equipment, aiming to solve the technical problems of slow data transmission rate and limited communication distance of the existing IPMI protocol.

[0009] In order to solve the above technical problems, in a first aspect, the present invention provides a fast transmission method of the IPMI protocol, wherein the fast transmission method is used for a master control end including an SPI module to send IPMI protocol data to a slave control end including an eSPI module, and the fast transmission method comprises the following steps:

[0010] S101, dividing an out-of-band communication channel based on the communication bus used by the eSPI protocol;

[0011] S102, generating an IPMI data packet for sending to the slave control terminal;

[0012] S103, encoding the IPMI data packet into a command message for transmission via the out-of-band communication channel;

[0013] S104: Transmit the command message to the slave control end through the out-of-band communication channel.

[0014] Furthermore, the IPMI data packet includes a data length sub-packet and an IPMI data sub-packet, and the data length sub-packet includes a data transmission status field and a data length field for identifying the data length of the IPMI data sub-packet;

[0015] The command message includes a command field, a header field, a data field and a check field. The header field is used to encode the data content of the data length sub-packet, and the data field is used to encode the data content of the IPMI data sub-packet.

[0016] Furthermore, in step S103, when the data length of the IPMI data packet is greater than the length limit of the command message of the out-of-band communication channel, the IPMI data packet is split into a plurality of IPMI sub-data packets which are continuously marked by the data transmission status field, and the plurality of command messages are correspondingly encoded.

[0017] In a second aspect, the present invention further provides a fast transmission method of the IPMI protocol, wherein the fast transmission method is used for a master control end including an SPI module to receive IPMI protocol data transmitted by a slave control end including an eSPI module, and the fast transmission method comprises the following steps:

[0018] S201, dividing an out-of-band communication channel based on the communication bus used by the eSPI protocol;

[0019] S202, receiving a response message through the out-of-band communication channel, wherein the response message is generated by the slave end after receiving the IPMI command message sent by the master end and undergoing an intermediate conversion stage of the eSPI protocol;

[0020] S203, performing field analysis on the response message, and reading to obtain an IPMI data packet.

[0021] Furthermore, the IPMI data packet includes a data length sub-packet and an IPMI data sub-packet, and the data length sub-packet includes a data transmission status field and a data length field for identifying the data length of the IPMI data sub-packet;

[0022] The response message includes a response field, a header field, a data field, an STS field and a check field. The header field is used to encode the data content of the data length sub-packet, and the data field is used to encode the data content of the IPMI data sub-packet.

[0023] Furthermore, the data lengths of the response field, the header field, the STS field, and the check field are 1 byte, 3 bytes, 2 bytes, and 1 byte, respectively.

[0024] Furthermore, in step S202, the total data length of the IPMI data packet is defined as M bytes, and the total data length M is agreed upon by the master end and the slave end before IPMI data transmission. When the response message is received through the out-of-band communication channel, the data length of the response message is M+7 bytes.

[0025] Furthermore, in step S202, the total data length of the IPMI data packet is defined as M bytes, and the total data length M is obtained by the main control end receiving the response message in real time and parsing the header file field in real time. When the response message is received through the out-of-band communication channel, the data length received after completing the real-time parsing of the header file field is M+3 bytes.

[0026] In a third aspect, the present invention further provides a computer device, comprising: a memory, a processor, and a fast transmission program of the IPMI protocol stored in the memory and executable on the processor, wherein when the processor executes the fast transmission program of the IPMI protocol, the processor implements the steps in the fast transmission method of the IPMI protocol as described in any one of the above embodiments.

[0027] In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a fast transmission program of the IPMI protocol is stored. When the fast transmission program of the IPMI protocol is executed by a processor, the steps in the fast transmission method of the IPMI protocol as described in any one of the above embodiments are implemented.

[0028] The beneficial effect achieved by the present invention is that a fast transmission method of the IPMI protocol that can be implemented based on a universal SPI interface module is proposed. The method uses a universal SPI interface without the need for a special eSPI module to complete the transmission of IPMI protocol data, thereby reducing hardware interface requirements. Compared with existing low-speed peripherals, the method can also improve data transmission efficiency, has strong reliability, can be applied to different IPMI protocol hardware, and has high flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic diagram of signal connection between a master control end and a slave control end provided by an embodiment of the present invention;

[0030] Figure 2 It is a flowchart of the steps of the fast transmission method of the IPMI protocol provided by an embodiment of the present invention;

[0031] Figure 3 It is a schematic diagram of data transmission of the eSPI protocol provided in an embodiment of the present invention;

[0032] Figure 4 It is a schematic diagram of data transmission waveform of a common SPI protocol provided by an embodiment of the present invention;

[0033] Figure 5 It is a schematic diagram of the format of a data packet transmitted by an out-of-band communication channel provided by an embodiment of the present invention;

[0034] Figure 6 is a schematic diagram of the format of a command message provided by an embodiment of the present invention;

[0035] Figure 7 It is a schematic diagram of the IPMI data packet format provided by an embodiment of the present invention;

[0036] Figure 8 This is a flowchart of another fast transmission method of the IPMI protocol provided by an embodiment of the present invention.

[0037] Fig. 9 is a schematic diagram of the format of a response message provided by an embodiment of the present invention;

[0038] Fig.10 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0040] The fast transmission method of the IPMI protocol in the embodiment of the present invention is based on a platform including a BMC chip. The BMC chip communicates with the host processor and other components to achieve remote control and monitoring functions. The eSPI (Enhanced Serial Peripheral Interface) is an enhanced serial peripheral interface that can be set on the BMC chip hardware. Correspondingly, SPI is a common type of serial peripheral interface, and the eSPI communication bus standard is modified according to the SPI communication bus standard. From the physical layer point of view, the eSPI bus has two more signals, Rset and Alert, than the SPI bus. These two signals are used to meet the needs of the host (Host) resetting the slave (Slave) and the slave sending a communication request to the host; while other signals Data-IO, CLK, CS# are the same. Therefore, the physical layer of the eSPI bus and the SPI bus are basically the same. Figure 1 As shown, Figure 1 This is a signal connection diagram of a master (SPI Master) and a slave (SPI Slave). It can be seen that in terms of physical connection, ordinary SPI can be used as the master to connect the slave eSPI module, but there are no Alert and Reset signals.

[0041] In the embodiment of the present invention, the master control end may be a remote monitoring client, and the slave control end may be a remote monitoring server, both of which are implemented based on the RISC-V instruction set architecture. The step flow of the fast transmission method described in the embodiment of the present invention is explained through such a usage scenario.

[0042] Embodiment 1

[0043] Please refer to Figure 2 , Figure 2 The invention provides a fast transmission method of the IPMI protocol provided by an embodiment of the present invention. The fast transmission method is used for a master control end including an SPI module to send IPMI protocol data to a slave control end including an eSPI module. The fast transmission method comprises the following steps:

[0044] S101, dividing an out-of-band communication channel based on the communication bus used by the eSPI protocol;

[0045] S102, generating an IPMI data packet for sending to the slave control terminal;

[0046] S103, encoding the IPMI data packet into a command message for transmission via the out-of-band communication channel;

[0047] S104: Transmit the command message to the slave control end through the out-of-band communication channel.

[0048] The out-of-band communication channel (OOB Channel) in step S101 can be logically divided by an eSPI custom command set. During implementation, the out-of-band communication channel is used to carry data transmission of protocols such as SMBus.

[0049] Specifically, in order to illustrate the specific communication principle of the embodiment of the present invention, the embodiment of the present invention describes the transmission process of the eSPI basic protocol, please refer to Figure 3 ,like Figure 3 As shown, the data of the eSPI protocol mainly consists of three parts:

[0050] Command: Data sent from the master to the slave, including a 1-byte CMD field, a 1-byte CRC field, and optional header and data fields.

[0051] TAR (Turn-Around): The intermediate conversion stage, between Command and Response, requires 2 clocks.

[0052] Response: Data sent from the control end to the master end, including a 1-byte RSP field, a 2-byte STS field (token field), a 1-byte CRC field, and optional header and data fields.

[0053] In the embodiment of the present invention, the master control end is implemented based on the SPI module. The ordinary SPI module does not have the capabilities of the eSPI module and cannot directly complete the parsing and sending and receiving of basic data. Therefore, during the data transmission process, it is necessary to simulate the eSPI communication according to the characteristics of the ordinary SPI module.

[0054] Specifically, the IPMI data packet includes a data length sub-packet and an IPMI data sub-packet, and the data length sub-packet includes a data transmission status field and a data length field for identifying the data length of the IPMI data sub-packet;

[0055] The command message includes a command field, a header field, a data field and a check field. The header field is used to encode the data content of the data length sub-packet, and the data field is used to encode the data content of the IPMI data sub-packet.

[0056] Specifically, the data transmission waveform of the common SPI protocol is as follows Figure 4As shown in FIG. 1 , during the data transmission process, the common SPI protocol implements intermediate conversion based on the "wait cycle (WAIT CYCLES)", so data can only be carried through the two fields of instruction (INSTRUCTION) and address (ADDRESS). In actual use, these two fields have length restrictions; and the format of a command data packet that can be transmitted in the out-of-band communication channel is as follows Figure 5 As shown, to send a complete command message, for ordinary SPI, the bytes of the instruction and address fields must be greater than 5 bytes.

[0057] Exemplarily, the embodiment of the present invention encodes the IPMI data packet into a command message format for transmission through the out-of-band communication channel as follows: Figure 6 As shown, Byte 0 (Byte0, the same below) needs to fill in the command field, Bytes 1 to Byte 3 fill in the header field (including the content of the intermediate conversion stage), Bytes 4 to Byte N-2 fill in the content of the IPMI data packet, and finally fill in the CRC check field.

[0058] In step S103, when the data length of the IPMI data packet is greater than the length limit of the command message of the out-of-band communication channel, the IPMI data packet is split into a plurality of IPMI sub-data packets which are continuously marked by the data transmission status field, and the plurality of command messages are correspondingly encoded.

[0059] In the implementation process, the encoding and encapsulation of the data packet in step S103 belongs to the scope of the physical layer, and step S104 is the scope of the communication protocol layer that directly implements the interaction of IPMI data packets. In order to achieve normal transmission of data packets, it is necessary to define a mechanism that an IPMI data packet may be larger than the length of the data field that can be transmitted in a single time by the physical layer. In the embodiment of the present invention, the IPMI data packet is split and transmitted multiple times based on the data transmission status field. Specifically, the data transmission field includes two parts: a 1 / 2 byte transmission status and a 3 / 2 byte data length, such as Figure 7 As shown, the transmission status can be set using the data in Table 1 below;

[0060] Table 1 Example of data usage in transmission status

[0061]

[0062] Figure 7 Length[11:0] (including [11:8] and [7:0]) uses 3 / 2 bytes to indicate the length of the data transmitted this time.

[0063] Embodiment 2

[0064] like Figure 8 As shown, the present invention also provides another fast transmission method of the IPMI protocol, the fast transmission method is used for a master control end including an SPI module to receive IPMI protocol data transmitted by a slave control end including an eSPI module, and the fast transmission method includes the following steps:

[0065] S201, dividing an out-of-band communication channel based on the communication bus used by the eSPI protocol;

[0066] S202, receiving a response message through the out-of-band communication channel, wherein the response message is generated by the slave end after receiving the IPMI command message sent by the master end and undergoing an intermediate conversion stage of the eSPI protocol;

[0067] S203, performing field analysis on the response message, and reading to obtain an IPMI data packet.

[0068] Furthermore, the IPMI data packet includes a data length sub-packet and an IPMI data sub-packet, and the data length sub-packet includes a data transmission status field and a data length field for identifying the data length of the IPMI data sub-packet;

[0069] The response message includes a response field, a header field, a data field, an STS field and a check field. The header field is used to encode the data content of the data length sub-packet, and the data field is used to encode the data content of the IPMI data sub-packet.

[0070] For the common SPI protocol, Figure 4 The waveform diagram shows that after the waiting cycle, the response message fed back from the slave end can be received. Different from the command message sent by the master end, the data length of the response message is not limited.

[0071] For the out-of-band communication channel under the eSPI protocol, the format of the response message is as follows Fig. 9 As shown, the data lengths of the response field, the header field, the STS field, and the check field are 1 byte, 3 bytes, 2 bytes, and 1 byte, respectively.

[0072] Since the data length of the response message is not fixed, the host needs a mechanism to determine the data length of the entire response message when receiving the response message. In the embodiment of the present invention, a data length field is designed to identify the data length of the IPMI data sub-packet, but for the host, this data can only be determined after receiving the content of this data length field.

[0073] In step S202, the embodiment of the present invention uses the following two methods for the master control end to determine the data length of the response message:

[0074] The first method defines the total data length of the IPMI data packet as M bytes, and the total data length M is agreed upon by the master end and the slave end before IPMI data transmission. In step S103, when the response message is received through the out-of-band communication channel, the data length of the response message is M+7 bytes, and these 7 bytes are the fixed lengths of the response field, the header field, the STS field, and the checksum field.

[0075] The second method defines the total data length of the IPMI data packet as M bytes, and the total data length M is obtained by the main control end receiving the response message in real time and parsing the header file field in real time. When the response message is received through the out-of-band communication channel, the data length received after the real-time parsing of the header file field is M+3 bytes. These 3 bytes are the fixed length of the STS field and the check field at the end of the file after the parsing of the header file field is completed.

[0076] Based on the fast transmission method of the IPMI protocol proposed in the above embodiment, the embodiment of the present invention illustrates the transmission process by means of the following data examples:

[0077] Assume that a command packet containing IPMI protocol data is: {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88}, and the length is 0x0009. Figure 7 , the data sequence to be transmitted this time should be: {0x00, 0x09, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88}. If the maximum transmission length of the IPMI data packet carried in the out-of-band transmission channel is 5 bytes each time, the actual data encoding and sending order is as follows:

[0078] 1. {0x00, 0x03, 0x00, 0x0A, 0x00}, starts the first data packet;

[0079] 2. {0x10, 0x03, 0x11, 0x22, 0x33}, continue to transmit data packets;

[0080] 3. {0x10, 0x03, 0x44, 0x55, 0x66}, continue to transmit data packets;

[0081] 4. {0xF0, 0x02, 0x77, 0x88}, end of data packet transmission.

[0082] Assume that an IPMI command data packet is: {0x00}, length is 0x0001, then according to Figure 7 , the data sequence to be transmitted this time should be: {0x00, 0x01, 0x00}. If the maximum transmission length of the IPMI data packet carried in the out-of-band transmission channel is 5 bytes each time, the actual data encoding and sending order is as follows:

[0083] 1. {0xF0, 0x03, 0x00, 0x01, 0x00}, only one transmission is required to complete.

[0084] The beneficial effect achieved by the present invention is that a fast transmission method of the IPMI protocol that can be implemented based on a universal SPI interface module is proposed. The method uses a universal SPI interface without the need for a special eSPI module to complete the transmission of IPMI protocol data, thereby reducing hardware interface requirements. Compared with existing low-speed peripherals, the method can also improve data transmission efficiency, has strong reliability, can be applied to different IPMI protocol hardware, and has high flexibility.

[0085] Embodiment 3

[0086] The embodiment of the present invention further provides a fast transmission system of the IPMI protocol, wherein the fast transmission system is used for a master control subsystem including an SPI module to send IPMI protocol data to a slave control subsystem including an eSPI module, wherein the master control subsystem includes:

[0087] A channel division module is used to divide out-of-band communication channels based on the communication bus used by the eSPI protocol;

[0088] A data generation module, used for generating an IPMI data packet for sending to the slave control terminal;

[0089] A data encoding module, used for encoding the IPMI data packet into a command message for transmission via the out-of-band communication channel;

[0090] A data transmission module is used to transmit the command message to the slave control end through the out-of-band communication channel.

[0091] The fast transmission system of the IPMI protocol can implement the relevant steps of the fast transmission method of the IPMI protocol in the above-mentioned embodiment 1, and can achieve the same technical effects. Please refer to the description in the above-mentioned embodiment, which will not be repeated here.

[0092] Embodiment 4

[0093] The embodiment of the present invention also provides another fast transmission system of IPMI protocol, wherein the fast transmission system includes a master control subsystem of an SPI module receiving IPMI protocol data transmitted by a slave control subsystem including an eSPI module, and the master control subsystem includes:

[0094] A channel division module is used to divide out-of-band communication channels based on the communication bus used by the eSPI protocol;

[0095] A data receiving module, used for receiving a response message through the out-of-band communication channel, wherein the response message is generated by the slave control subsystem after receiving the IPMI command message sent by the master control subsystem and undergoing an intermediate conversion stage of the eSPI protocol;

[0096] The data parsing module is used to parse the fields of the response message and read the IPMI data packet.

[0097] The IPMI protocol fast transmission system can implement the relevant steps of the IPMI protocol fast transmission method of the above-mentioned embodiment 2, and can achieve the same technical effects. Please refer to the description in the above-mentioned embodiment, which will not be repeated here.

[0098] Embodiment 5

[0099] The embodiment of the present invention also provides a computer device, please refer to Fig.10 , Fig.10 3 is a schematic diagram of the structure of a computer device provided in an embodiment of the present invention. The computer device 300 includes: a memory 302, a processor 301, and a fast transmission program of the IPMI protocol stored in the memory 302 and executable on the processor 301.

[0100] The processor 301 calls the fast transmission program of the IPMI protocol stored in the memory 302 to execute the steps of the fast transmission method of the IPMI protocol provided by the embodiment of the present invention. Figure 1 or Figure 8 , specifically including the following steps:

[0101] S101, dividing an out-of-band communication channel based on the communication bus used by the eSPI protocol;

[0102] S102, generating an IPMI data packet for sending to the slave control terminal;

[0103] S103, encoding the IPMI data packet into a command message for transmission via the out-of-band communication channel;

[0104] S104: Transmit the command message to the slave control end through the out-of-band communication channel.

[0105] The IPMI data packet includes a data length sub-packet and an IPMI data sub-packet, wherein the data length sub-packet includes a data transmission status field and a data length field for identifying the data length of the IPMI data sub-packet;

[0106] The command message includes a command field, a header field, a data field and a check field. The header field is used to encode the data content of the data length sub-packet, and the data field is used to encode the data content of the IPMI data sub-packet.

[0107] In step S103, when the data length of the IPMI data packet is greater than the length limit of the command message of the out-of-band communication channel, the IPMI data packet is split into a plurality of IPMI sub-data packets which are continuously marked by the data transmission status field, and the plurality of command messages are correspondingly encoded.

[0108] or,

[0109] S201, dividing an out-of-band communication channel based on the communication bus used by the eSPI protocol;

[0110] S202, receiving a response message through the out-of-band communication channel, wherein the response message is generated by the slave end after receiving the IPMI command message sent by the master end and undergoing an intermediate conversion stage of the eSPI protocol;

[0111] S203, performing field analysis on the response message, and reading to obtain an IPMI data packet.

[0112] Furthermore, the IPMI data packet includes a data length sub-packet and an IPMI data sub-packet, and the data length sub-packet includes a data transmission status field and a data length field for identifying a data length of the IPMI data sub-packet;

[0113] The response message includes a response field, a header field, a data field, an STS field and a check field. The header field is used to encode the data content of the data length sub-packet, and the data field is used to encode the data content of the IPMI data sub-packet.

[0114] The data lengths of the response field, the header field, the STS field, and the check field are 1 byte, 3 bytes, 2 bytes, and 1 byte, respectively.

[0115] In step S202, the total data length of the IPMI data packet is defined as M bytes, and the total data length M is agreed upon by the master end and the slave end before IPMI data transmission. When the response message is received through the out-of-band communication channel, the data length of the response message is M+7 bytes.

[0116] In step S202, the total data length of the IPMI data packet is defined as M bytes, and the total data length M is obtained by the main control end receiving the response message in real time and parsing the header file field in real time. When the response message is received through the out-of-band communication channel, the data length received after completing the real-time parsing of the header file field is M+3 bytes.

[0117] The computer device 300 provided in the embodiment of the present invention can implement the steps in the fast transmission method of the IPMI protocol in the above embodiment, and can achieve the same technical effect. Please refer to the description in the above embodiment and will not be repeated here.

[0118] Embodiment 6

[0119] An embodiment of the present invention further provides a computer-readable storage medium, on which a fast transmission program of the IPMI protocol is stored. When the fast transmission program of the IPMI protocol is executed by a processor, the various processes and steps in the fast transmission method of the IPMI protocol provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0120] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0121] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0122] The embodiments of the present invention are described above in conjunction with the accompanying drawings. What is disclosed is only the preferred embodiment of the present invention. However, the present invention is not limited to the above-mentioned specific implementation manner. The above-mentioned specific implementation manner is only illustrative rather than restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms and equivalent changes without departing from the scope of protection of the purpose of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A fast transmission method of IPMI protocol, characterized in that: The fast transmission method is used for a master control end including an SPI module to send IPMI protocol data to a slave control end including an eSPI module, and the fast transmission method comprises the following steps: S101, dividing an out-of-band communication channel based on the communication bus used by the eSPI protocol; S102, generating an IPMI data packet for sending to the slave control terminal; S103, encoding the IPMI data packet into a command message for transmission via the out-of-band communication channel; S104, transmitting the command message to the slave control end through the out-of-band communication channel; Wherein, the IPMI data packet includes a data length sub-packet and an IPMI data sub-packet, and the data length sub-packet includes a data transmission status field and a data length field for identifying the data length of the IPMI data sub-packet; The command message includes a command field, a header field, a data field and a check field, wherein the header field is used to encode the data content of the data length sub-packet, and the data field is used to encode the data content of the IPMI data sub-packet; In step S103, when the data length of the data packet is greater than the length limit of the command message of the out-of-band communication channel, the IPMI data packet is split into a plurality of IPMI sub-data packets which are continuously marked by the data transmission status field, and the plurality of command messages are correspondingly encoded.

2. A fast transmission method of IPMI protocol, characterized in that: The fast transmission method is used for a master control end including an SPI module to receive IPMI protocol data transmitted by a slave control end including an eSPI module, and the fast transmission method includes the following steps: S201, dividing an out-of-band communication channel based on the communication bus used by the eSPI protocol; S202, receiving a response message through the out-of-band communication channel, wherein the response message is generated by the slave end after receiving the IPMI command message sent by the master end and undergoing an intermediate conversion stage of the eSPI protocol; S203, performing field analysis on the response message, and reading and obtaining an IPMI data packet; Wherein, the IPMI data packet includes a data length sub-packet and an IPMI data sub-packet, and the data length sub-packet includes a data transmission status field and a data length field for identifying the data length of the IPMI data sub-packet; The response message includes a response field, a header field, a data field, an STS field and a check field. The header field is used to encode the data content of the data length sub-packet, and the data field is used to encode the data content of the IPMI data sub-packet; the data lengths of the response field, the header field, the STS field, and the check field are 1 byte, 3 bytes, 2 bytes, and 1 byte, respectively.

3. The fast transmission method of the IPMI protocol as claimed in claim 2, characterized in that: In step S202, the total data length of the IPMI data packet is defined as M bytes, and the total data length M is agreed upon by the master end and the slave end before IPMI data transmission. When the response message is received through the out-of-band communication channel, the data length of the response message is M+7 bytes.

4. The fast transmission method of the IPMI protocol as claimed in claim 2, characterized in that: In step S202, the total data length of the IPMI data packet is defined as M bytes, and the total data length M is obtained by the main control end receiving the response message in real time and parsing the header file field in real time. When the response message is received through the out-of-band communication channel, the data length received after completing the real-time parsing of the header file field is M+3 bytes.

5. A computer device, characterized in that: include: A memory, a processor, and a fast transmission program of the IPMI protocol stored in the memory and executable on the processor, wherein when the processor executes the fast transmission program of the IPMI protocol, the steps in the fast transmission method of the IPMI protocol as described in any one of claims 1 or 2-4 are implemented.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a fast transmission program of the IPMI protocol, and when the fast transmission program of the IPMI protocol is executed by the processor, the steps in the fast transmission method of the IPMI protocol as described in any one of claims 1 or 2-4 are implemented.

Citation Information

Patent Citations

  • Method, system and device for realizing eSPI communication based on FPGA and medium

    CN115827543A