Communication method and device for BMC and BIOS

By using distributed virtual channel technology in the server to divide the PCIe 5.0 bus channel and build multiple parallel virtual channels, the problem of low communication rate between BMC and BIOS is solved, and efficient data transmission and communication efficiency are improved.

CN118796749AActive Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202410865568.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-18
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

When the BMC and BIOS communicate through the I2C bus in existing servers, the communication rate is low and it is difficult to meet the performance requirements for transmitting large-capacity data or high-speed applications.

Method used

Distributed virtual channel technology is used to divide the PCIe 5.0 bus channel, build multiple parallel virtual communication channels, and perform initialization and status management through multi-channel communication protocols and link training state machines to achieve high-speed data between BMC and BIOS transmission.

Benefits of technology

It improves the communication efficiency between BMC and BIOS, achieves higher bandwidth, lower latency and stronger signal integrity, and supports high-speed data transmission, low-latency communication and hardware standardization compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796749A_ABST
    Figure CN118796749A_ABST
Patent Text Reader

Abstract

The invention provides a communication method and device for a BMC (baseboard management controller) and a BIOS (basic input output system), and the method comprises the steps that the BMC sends a request message to the BIOS based on a target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message; the construction process of the target data channel comprises the steps that the BMC divides a PCIe 5.0 bus channel constructed between the BMC and the BIOS based on a distributed virtual channel technology to obtain a plurality of parallel virtual communication channels, and the target data channel is constructed based on the plurality of parallel virtual communication channels. According to the communication method and device for the BMC and the BIOS, the multiple advantages of high-speed data transmission, low-delay communication, stability, reliability, hardware standardization compatibility and the like can be achieved, and the communication efficiency between the BMC and the BIOS is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a communication method and device between a BMC and a BIOS. Background Art

[0002] With the development and complexity of AI server systems, the communication between the BMC and BIOS in the server has become increasingly important. The BMC and BIOS in existing servers communicate through the I2C bus. The BMC controls the I2C bus as a master device, and the BIOS responds to the BMC's request as a slave device. The host sends a start signal to activate the bus, and specifies the slave address and transmission direction with one byte of data, and the slave responds with an acknowledgement signal; then the transmitter sends a byte of data, and the receiver also confirms the receipt with an acknowledgement signal, realizing system communication interaction.

[0003] In existing servers, the BMC and BIOS communicate via the I2C bus. However, due to the relatively low I2C communication rate (usually in the range of hundreds of kHz), the performance may be insufficient in applications that transmit large amounts of data or have high speed requirements. Summary of the invention

[0004] The present invention provides a communication method and device between a BMC and a BIOS, so as to improve the communication efficiency between the BMC and the BIOS.

[0005] The present invention provides a communication method between a BMC and a BIOS, comprising:

[0006] The baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message;

[0007] The process of constructing the target data channel includes:

[0008] The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

[0009] According to a communication method between a BMC and a BIOS provided by the present invention, before the baseboard management controller BMC sends a request message to a basic input and output BIOS system based on a target data channel, the method further includes:

[0010] The BMC initializes a PCIe 5.0 bus channel between the BMC and the BIOS;

[0011] The initialization includes:

[0012] The BMC identifies the device where the BIOS is located based on a PCIe 5.0 bus channel between the BMC and the BIOS;

[0013] The BMC configures the plurality of parallel virtual communication channels based on a multi-channel communication protocol, wherein the multi-channel communication protocol is used to manage the plurality of parallel virtual communication channels, define data packet formats in the plurality of parallel virtual communication channels, define error handling mechanisms for the plurality of parallel virtual communication channels, and determine adaptation of the plurality of parallel virtual communication channels to an underlying protocol;

[0014] The BMC performs link state training on the PCIe 5.0 bus channel between the BMC and the BIOS based on a link training state machine, so as to perform state management on the PCIe 5.0 bus channel between the BMC and the BIOS.

[0015] A communication method between a BMC and a BIOS provided by the present invention further includes:

[0016] The BMC determines a historical communication load of each virtual communication channel based on historical communication data of the plurality of virtual communication channels;

[0017] Based on the historical communication load, resource scheduling of multiple virtual communication channels in the target data channel is adjusted in real time.

[0018] According to a method for communicating between a BMC and a BIOS provided by the present invention, the sending of a request message to a basic input and output BIOS system further comprises:

[0019] In the case that the request message is a plurality of messages, the BMC sends the plurality of messages in parallel to the BIOS system based on a plurality of parallel virtual communication channels in the target data channel.

[0020] A communication method between a BMC and a BIOS provided by the present invention further includes:

[0021] The BMC divides the bandwidth of the PCIe 5.0 bus channel between the BMC and the BIOS based on the characteristics of data transmitted in the multiple parallel virtual communication channels and the priority of each virtual communication channel, so as to allocate bandwidth to each virtual communication channel.

[0022] A communication method between a BMC and a BIOS provided by the present invention further includes:

[0023] The BMC adjusts the quality of service (QoS) policy of each virtual channel based on the software defined network (SDN) controller, and adjusts the bandwidth allocation and priority of each virtual channel according to the real-time network status and application requirements.

[0024] A communication method between a BMC and a BIOS provided by the present invention further includes:

[0025] Acquire error data of the target data channel during transmission based on the BMC;

[0026] The error data is classified based on the error type, and the priority of the error data processing is determined based on the category of the error data.

[0027] The present invention also provides a communication device between BMC and BIOS, comprising:

[0028] A data transmission module, used for a baseboard management controller BMC to send a request message to a basic input and output BIOS system based on a target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message;

[0029] The process of constructing the target data channel includes:

[0030] The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned communication methods between BMC and BIOS when executing the computer program.

[0032] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for communicating between a BMC and a BIOS.

[0033] The communication method and device between BMC and BIOS provided by the present invention divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS to obtain multiple parallel virtual communication channels, thereby realizing the construction of a data transmission channel between the BMC and the BIOS. The multiple parallel virtual communication channels constructed after dividing the PCIe 5.0 bus channel have higher bandwidth, lower latency and stronger signal integrity, and can achieve multiple advantages such as high-speed data transmission, low-latency communication, stable reliability and hardware standardization compatibility, thereby improving the communication efficiency between the BMC and the BIOS. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 It is a flow chart of the communication method between BMC and BIOS provided by the present invention;

[0036] Figure 2 It is a schematic diagram of the data transmission process provided by the present invention;

[0037] Figure 3 It is a structural schematic diagram of a communication device between BMC and BIOS provided by the present invention;

[0038] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] The present invention provides a communication method between BMC and BIOS. Figure 1 The flow chart of the communication method between BMC and BIOS provided by the present invention is shown in FIG. Figure 1 The communication method between BMC and BIOS provided by the present invention may include:

[0041] Step 110, the baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message;

[0042] The process of constructing the target data channel includes:

[0043] The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

[0044] The following takes the BMC executing the communication method between the BMC and the BIOS provided by the present invention as an example to describe the technical solution of the present invention in detail.

[0045] Specifically, in step 110, the baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, so that after the BIOS receives the request message, it executes a corresponding response based on the request message.

[0046] The communication between BMC and BIOS plays an important role in the operation of computer systems. Specifically, BIOS can send control instructions to BMC to adjust the settings and behaviors of hardware devices; BMC can also send monitoring information to BIOS to help BIOS perform system management and fault diagnosis.

[0047] Before data transmission between the BMC and the BIOS is performed, a target data channel for data transmission between the BMC and the BIOS needs to be established.

[0048] Specifically, the construction process can be:

[0049] Build the target data channel hardware configuration: Ensure that the server hardware supports the PCIe 5.0 interface and that both the BMC and BIOS modules are able to communicate with the PCIe 5.0 interface.

[0050] Among them, PCIe 5.0 refers to the fifth-generation PCI Express (Peripheral Component Interconnect Express) interface, which is a high-speed, low-latency computer bus standard. The maximum transfer rate of PCIe 5.0 reaches 32GT / s, which is twice the 16GT / s of PCIe 4.0. This improvement is achieved by improving signal encoding, increasing channel bandwidth and optimizing hardware design. PCIe 5.0 has a significant improvement in transfer rate, bandwidth, latency, power efficiency, error detection and correction capabilities compared to PCIe 4.0, bringing significant improvements to the overall performance and efficiency of the server.

[0051] Establishing a communication link between BMC and BIOS, different from the communication methods in related methods, BMC uses distributed virtual channel technology DVC when establishing a communication link with the device where BIOS is located. By dividing the PCIe 5.0 bus channel into multiple virtual channels, BMC can establish multiple parallel communication channels with BIOS, thereby realizing parallel data transmission and improving communication efficiency.

[0052] Develop BMC: Develop the communication protocol and data transmission software drivers between BMC and BIOS. These drivers are responsible for data encoding, decoding, data transmission and clock synchronization through the PCIe 5.0 interface within the BMC.

[0053] Testing and verification: Perform BMC integration testing to ensure that the communication and data transmission between BMC and BIOS can work stably and reliably. This includes testing the correctness of the communication protocol, the accuracy of data transmission, and the stability of clock synchronization.

[0054] Deployment and maintenance: Deploy the tested BMC version to the actual server environment and regularly maintain and update the BMC version. This includes BMC monitoring system operation status, handling abnormal situations, and regularly updating the driver and firmware in the BMC.

[0055] Specifically, the communication process between BMC and BIOS is as follows:

[0056] When the system starts, the BMC is initialized through the PCIe Gen5 bus;

[0057] Establish a communication link between BMC and BIOS;

[0058] The interaction between response and reply, BMC sends a request message to BIOS based on the pre-built target data channel. After receiving the data sent by BMC, BIOS performs corresponding processing and generates response or reply data. Through distributed virtual channel technology, BIOS can process multiple data streams in parallel and send multiple response or reply data to BMC at the same time, which improves communication efficiency;

[0059] Error handling and retry,During the communication process, if data transmission error or loss occurs, the BMC will perform error detection and processing according to the PCIe5.0 protocol specification.

[0060] After building the target data channel, BMC and BIOS can transmit data based on the target data channel. The specific data transmission process diagram can be shown as follows: Figure 2 The data transmission process provided by the present invention is shown in the schematic diagram.

[0061] The process of BMC sending data to BIOS:

[0062] Data encoding: BMC first encodes the data to be sent, expressed as (S_{encoded}=f(S_{original})), where (S_{original}) is the original data and (f()) is the encoding function. The encoded data (S_{encoded}) is ready to be sent to BIOS.

[0063] Differential signal transmission: The encoded data is transmitted to the BIOS in the form of differential signals through the PCIe 5 interface. During the transmission process, the voltage difference of the differential signal represents the logical state of the data, that is, (V_{diff}=V_{P}-V_{N}), where (V_{diff}) is the differential signal, (V_{P}) and (V_{N}) are the voltage values ​​on the positive and negative signal lines.

[0064] Clock synchronization: To ensure synchronous data transmission, the clock signals (t_{BMC}) and (t_{BIOS}) between BMC and BIOS need to be synchronized, that is, (t_{BMC} = t_{BIOS}).

[0065] BIOS receives data and returns the process:

[0066] Data decoding: After receiving the data received through PCIe 5.0, BIOS first decodes the data, which is expressed as (S_{decoded}=g(S_{received})), where (S_{received}) is the received data, (S_{decoded}) is the decoded data, and (g()) is the decoding function.

[0067] Process data and return: BIOS processes the decoded data, which may include updating the system status, responding to BMC commands, etc. After processing the data, BIOS can send the data back to BMC through the same process, realizing two-way communication between BMC and BIOS.

[0068] Optionally, the specific communication process based on the target data channel may be:

[0069] When the system starts, the BMC negotiates with the BIOS to establish the required virtual channels, allocate resources for each channel, and record related parameters. Example: The BMC has negotiated with the BIOS and established two virtual channels: one for the emergency alarm channel and the other for the firmware update channel, and the emergency alarm channel has a higher priority.

[0070] When the BMC detects that the CPU temperature exceeds the preset threshold, it generates an emergency alarm message and encapsulates it into a protocol data packet with an emergency alarm channel identifier.

[0071] The BMC sends the data packet to the BIOS through the emergency alarm channel. Since this channel has a high priority, even if the firmware update is in progress, it will be interrupted immediately and the alarm information will be transmitted first. After receiving the data packet with the emergency alarm channel logo, the BIOS immediately unpacks and identifies it as a CPU temperature alarm, and then quickly adjusts the system status, such as reducing the frequency and temperature. The BIOS returns a response to the BMC to confirm receipt, indicating that the alarm has been properly handled. After ensuring that the alarm information has been successfully sent, the BMC starts sending new firmware data packets through the firmware update channel.

[0072] BMC and BIOS use data block verification and confirmation mechanisms to ensure the integrity of firmware data during transmission.

[0073] If packet loss or errors are detected during firmware transmission, the BMC will resend the lost part according to the error retransmission strategy in the protocol.

[0074] BMC needs to send temperature sensor data to BIOS: After BMC completes its internal data collection, it encapsulates the data into a protocol packet with a "sensor data channel" ID. BMC sends the protocol packet to BIOS through the established "sensor data channel". After receiving the data packet, BIOS parses the data according to the channel ID and updates its internal system status.

[0075] Exception handling:

[0076] If errors occur during transmission, such as packet loss or corruption, they can be handled accordingly based on the retransmission strategy configured for the channel. See Adaptive Error Handling Strategy above.

[0077] Channel maintenance and closure: When a function no longer needs communication, the resources of the virtual channel can be released. For example, after the system runs stably, some temporarily used diagnostic channels can be closed. During the whole process, BMC and BIOS exchange system status and progress information in real time through another channel with lower priority (such as system status channel).

[0078] The communication between BIOS and BMC is usually based on specific embedded management interfaces, such as IPMI (Intelligent Platform Management Interface) and other proprietary low-level communication protocols, rather than directly using the native protocol of PCIe. Therefore, by properly encapsulating and mapping the DVC technology, and abstracting and encapsulating the DVC technology, a sub-protocol (BMC-DVC) suitable for communication between BMC and BIOS can be created.

[0079] BMC-DVC multi-channel communication protocol, where each channel corresponds to a specific function or data type, such as system event channel, firmware update channel, sensor data channel, etc.

[0080] Each virtual channel has its own identifier (ID) and priority, allowing the BMC and BIOS to manage channel allocation and data transfer at their respective software levels.

[0081] This protocol clearly describes how to divide and manage virtual channels, and defines the data packet format, error handling mechanism, and flow control rules to adapt them to the characteristics of IPMI or other underlying protocols. In this way, the DVC mechanism on the original PCIe bus can be mapped to the communication link between BIOS and BMC, allowing the two to efficiently transmit different types of data through independent virtual channels.

[0082] The communication stack between BMC and BIOS should include a BMC-DVC management layer for creating, deleting, activating and deactivating virtual channels.

[0083] When creating a channel, specify the channel properties, such as maximum transmission rate, buffer size, error retransmission strategy, etc.

[0084] Before transmission, the data will be encapsulated into a protocol packet with a channel identifier so that the sender and receiver can distinguish different types of communication content.

[0085] Information with high real-time requirements (such as system alarms) can be quickly transmitted through high-priority channels; non-urgent information is transmitted through ordinary priority channels.

[0086] The communication between BMC and BIOS often involves sensitive system management and configuration information, which requires additional security measures, such as encrypted transmission and access control mechanisms, which are not provided by default in the DVC standard. Encryption and authentication mechanisms are added to ensure that all data transmitted through virtual channels are protected. Data transmission for each channel can be encrypted using a specific key, accompanied by a message authentication code (MAC) or digital signature to ensure data confidentiality and integrity. Only authenticated entities are allowed to access specific virtual channels.

[0087] The communication between BIOS and BMC may occur in various states such as system startup, sleep, and wake-up. This requires DVC to fully consider the requirements of energy saving and fast response when designing, especially to be able to operate effectively under low power consumption conditions. Virtual channels can be dynamically enabled or disabled according to actual conditions to save power. For example, when the system is in sleep mode, only the necessary alarm channels and wake-up channels are kept open, and the rest of the channels are closed.

[0088] Optimize the scheduling algorithm to ensure that high-priority management information and key commands are transmitted first under limited hardware resources, thereby ensuring rapid system response.

[0089] It is understandable that by utilizing the high-speed transmission characteristics of the PCIe 5.0 standard, multiple advantages such as high-speed data transmission, low-latency communication, stable reliability, and hardware standardization compatibility can be achieved. First, PCIe 5.0 provides a high-speed transmission rate of 16GT / s per channel, which greatly improves data transmission efficiency and throughput, and can meet the needs of modern data centers and enterprise applications for large-scale data transmission. Secondly, PCIe 5.0 has low communication latency, can achieve fast response and real-time data exchange, and is suitable for application scenarios with strict requirements on communication timing. In addition, the maturity and popularity of the PCIe 5.0 communication standard brings the advantages of hardware compatibility and standardization, and can be compatible with various hardware devices and system platforms, reducing the complexity of system design and integration, and improving the maintainability and scalability of the system.

[0090] Efficiency: The PCIe 5.0 interface has the characteristics of high bandwidth and low latency, which enables fast data transmission, thereby improving the efficiency and response speed of communication between BMC and BIOS.

[0091] Reliability: The PCIe 5.0 interface uses differential signal transmission and clock synchronization mechanisms to ensure the stability and reliability of data transmission, reducing the bit error rate and loss rate during data transmission.

[0092] Flexibility: The solution using the PCIe 5.0 interface to achieve communication is highly flexible and can support multiple data formats and communication protocols to adapt to different application scenarios and needs.

[0093] Scalability: The PCIe 5.0 interface has high scalability and can support the connection and data transmission of multiple devices, providing convenience for system expansion and upgrade.

[0094] Compatibility: The PCIe 5.0 interface is an industry standard interface that is compatible with existing hardware and software environments. It can be seamlessly integrated with existing systems, reducing the cost and risk of system upgrades and migrations.

[0095] The communication method between BMC and BIOS provided in the embodiment of the present invention divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS to obtain multiple parallel virtual communication channels, thereby realizing the construction of a data transmission channel between the BMC and the BIOS. The multiple parallel virtual communication channels constructed after dividing the PCIe 5.0 bus channel have higher bandwidth, lower latency and stronger signal integrity, and can achieve multiple advantages such as high-speed data transmission, low-latency communication, stable reliability and hardware standardization compatibility, thereby improving the communication efficiency between the BMC and the BIOS.

[0096] In one embodiment, before the baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, it also includes: the BMC initializes the PCIe 5.0 bus channel between the BMC and the BIOS; the initialization includes: the BMC identifies the device where the BIOS is located based on the PCIe 5.0 bus channel between the BMC and the BIOS; the BMC configures the multiple parallel virtual communication channels based on a multi-channel communication protocol, and the multi-channel communication protocol is used to manage the multiple parallel virtual communication channels, define the data packet format in the multiple parallel virtual communication channels, define the error handling mechanism of the multiple parallel virtual communication channels, and determine the adaptation of the multiple parallel virtual communication channels to the underlying protocol; the BMC performs link state training on the PCIe 5.0 bus channel between the BMC and the BIOS based on a link training state machine to perform state management on the PCIe5.0 bus channel between the BMC and the BIOS.

[0097] The BMC initializes the PCIe 5.0 bus channel before sending a request message to the BIOS. Specifically:

[0098] The BMC first identifies the device where the BIOS is located through the PCIe 5.0 bus channel. This usually involves enumerating and probing the devices on the bus to determine the specific location and identity of the BIOS system.

[0099] BMC configures multiple parallel virtual communication channels based on the multi-channel communication protocol. This step aims to create multiple independent logical channels on the PCIe 5.0 physical channel through software to improve the flexibility and efficiency of communication. The multi-channel communication protocol is responsible for managing these virtual channels, defining the packet format, error handling mechanism, and determining how they adapt to the underlying PCIe protocol.

[0100] In multi-channel communication protocols, the data packet format is the basis of communication. BMC and BIOS need to follow the same data packet format specification to ensure the correctness and integrity of data during transmission.

[0101] The multi-channel communication protocol also defines an error handling mechanism for detecting and handling possible errors during the communication process.

[0102] The multi-channel communication protocol needs to determine the adaptation method with the underlying PCIe 5.0 protocol to adapt it to the characteristics of IPMI or other underlying protocols. In this way, the DVC mechanism on the original PCIe bus can be mapped to the communication link between BIOS and BMC, so that the two can efficiently transmit different types of data through independent virtual channels.

[0103] After completing the configuration of the virtual channel, the BMC will perform link state training on the PCIe5.0 bus channel based on the link training state machine. Link training is an important part of the PCIe protocol, used to ensure the quality and stability of the communication link. The link training state machine defines the various stages and processes of training, including physical layer training, data link layer training, etc. Through this process, the BMC can detect and fix potential problems in the link and improve the reliability and stability of communication.

[0104] After link training is completed, the BMC can manage the status of the PCIe 5.0 bus channel. This includes monitoring the operating status of the channel, handling abnormal situations, optimizing performance, etc. Through continuous status management, the BMC can ensure that the communication with the BIOS is always in the best state.

[0105] In one embodiment, the method further includes: the BMC determining a historical communication load of each virtual communication channel based on historical communication data of the multiple virtual communication channels; and adjusting resource scheduling of the multiple virtual communication channels in the target data channel in real time based on the historical communication load.

[0106] BMC continuously monitors and records the data transmitted through each virtual communication channel. These data include key indicators such as data transmission volume, transmission frequency, transmission delay, error rate, etc. By collecting and analyzing these historical communication data, BMC can understand the communication load of each virtual communication channel.

[0107] Based on the collected historical communication data, BMC can calculate the historical communication load of each virtual communication channel. The historical communication load can be a comprehensive indicator that reflects the average data transmission volume, maximum data transmission volume, data transmission fluctuation and other dimensions of the channel over a period of time.

[0108] BMC not only determines the current communication load based on historical data, but also uses advanced algorithms (such as machine learning algorithms) to predict future communication loads. This real-time evaluation and prediction capability enables BMC to make adjustments in advance to adapt to possible changes.

[0109] Specifically, BMC can predict future communication loads based on time series prediction.

[0110] BMC needs to collect historical communication load data, which usually includes communication load values ​​at different time points to form time series data. The collected data is cleaned, missing value filled, outlier processed and other pre-processing steps are performed to ensure the accuracy and consistency of the data.

[0111] You can choose the Autoregressive Moving Average Model (ARMA): suitable for predicting stationary time series data. Model and predict time series by selecting appropriate autoregressive and moving average terms.

[0112] Divide the preprocessed data into training set, validation set and test set. Use the training set data to train the selected time series prediction model. Evaluate the performance of the model on the validation set and adjust the model parameters to achieve the best prediction effect. Use the test set to test the model and verify its generalization ability.

[0113] The trained model is deployed to the BMC to predict the future communication load in real time. According to the actual application situation, the model is continuously optimized, such as adjusting model parameters and adding new features, to improve the prediction accuracy.

[0114] Based on the real-time evaluation and prediction of historical communication load, BMC can adjust the resource scheduling of multiple virtual communication channels in the target data channel in real time. Resource scheduling optimization can include the following aspects:

[0115] Bandwidth allocation: Dynamically adjust the bandwidth allocation of each channel according to the load of each channel to ensure that high-load channels can obtain sufficient bandwidth resources and low-load channels will not waste bandwidth.

[0116] Priority setting: Allocate more resources, such as higher bandwidth, lower latency, etc., to high-priority data transmission to ensure timely transmission of important data.

[0117] Fault recovery: When a channel fails or the load is abnormal, data transmission can be quickly switched to other channels to ensure the continuity and reliability of communication.

[0118] Load balancing: By balancing the load of each channel, we can avoid the situation where one channel is overloaded while other channels are idle, and improve the overall communication efficiency.

[0119] In one embodiment, sending a request message to a basic input and output BIOS system further includes: when the request message is multiple messages, the BMC sends the multiple messages in parallel to the BIOS system based on multiple parallel virtual communication channels in the target data channel.

[0120] It is understandable that multiple messages are often transmitted simultaneously between the BMC and the BIOS. When the request message is multiple messages, the BMC can transmit multiple messages to the BIOS system in parallel based on multiple parallel virtual communication channels, thereby improving data transmission efficiency.

[0121] In one embodiment, the method further includes: the BMC dividing the bandwidth of the PCIe 5.0 bus channel between the BMC and the BIOS based on the characteristics of data transmission in the multiple parallel virtual communication channels and the priority of each virtual communication channel to allocate bandwidth to each virtual communication channel.

[0122] The BMC will first analyze the characteristics of the data transmitted through each virtual communication channel. These characteristics may include data type, data size, transmission frequency, real-time requirements, etc. The multiple virtual channels obtained can be: firmware update channel, monitoring channel, emergency alarm channel, sensor data channel, etc.

[0123] BMC sets the priority for each virtual communication channel based on business needs and application scenarios. The priority may be based on factors such as the importance of the data, real-time requirements, and sensitivity of the application. For example, real-time control data may require a higher priority to ensure the timeliness and accuracy of its transmission.

[0124] Based on the characteristics of the transmitted data and the channel priority, the BMC will formulate a bandwidth allocation strategy. This strategy is designed to meet the transmission requirements of each channel while ensuring efficient use of the overall bandwidth.

[0125] BMC will divide the bandwidth of PCIe 5.0 bus channels according to the established bandwidth allocation strategy, and allocate corresponding bandwidth resources to each virtual communication channel. At the same time, BMC will continuously monitor the bandwidth usage of each virtual communication channel and dynamically adjust it according to the actual situation. For example, when the transmission demand of a channel increases, BMC can dynamically increase its bandwidth allocation; when the transmission demand of a channel decreases, its excess bandwidth can be allocated to other channels in need.

[0126] In one embodiment, the BMC further includes adjusting the quality of service (QoS) policy of each virtual channel based on a software defined network (SDN) controller, and adjusting the bandwidth allocation and priority of each virtual channel according to the real-time network status and application requirements.

[0127] Based on virtual channel isolation, the concept of Software Defined Networking (SDN) is integrated to achieve software-defined traffic management. The SDN controller is used to dynamically adjust the quality of service (QoS) policy of each virtual channel, automatically optimize bandwidth allocation and priority according to real-time network conditions and application requirements, and ensure that key services can maintain the lowest latency and highest stability in a highly dynamic environment.

[0128] Based on the SDN automation strategy, the system automatically releases the additional resources previously expanded to the firmware update channel, including restoring the previously merged monitoring channel for daily monitoring. During the resource adjustment process, ensure that non-essential channels are in a low-power state to reduce the overall energy consumption of the system. After resource reallocation, the BMC and BIOS exchange information through the low-priority system status channel to confirm their respective states and prepare for the next task (such as system health check or daily maintenance) to ensure continuous and efficient operation of the system.

[0129] In one embodiment, the method further includes: acquiring error data of the target data channel during transmission based on the BMC; classifying the error data based on the error type, and determining the priority of error data processing based on the category of the error data.

[0130] Optionally, add the following mechanisms to ensure data transmission reliability and handle exceptions:

[0131] Adaptive error handling strategy:

[0132] Error type classification,First, it is necessary to classify and summarize the possible error types,that may occur in communication.,Common error types include transmission errors, packet loss errors,,timing errors, etc. According to the different error types,,develop corresponding error handling strategies.

[0133] In this process, we will perform maintenance on each iteration version, record the problems encountered, and when encountering a qualified problem, trigger a solution to the problem, and put the time, process, and result of this problem triggering into the corresponding MAINTENCE log. For example: During the interactive transmission between BMC and BIOS, it is found that the data of the device components on the machine received by BMC from BIOS is missing. The missing information will cause the components installed on the machine to be displayed as missing on the BMC web. When BMC detects that there is data missing in the returned information, it will switch to the adaptive error handling process, and according to the data loss strategy, it will switch to the relevant thread through data comparison and resend the missing data signal to BIOS at the same time, and wait for the bios data to return. After the information is returned, it will be compared again to end this processing flow.

[0134] Strategy formulation and priority determination: For each error type, formulate a corresponding error handling strategy and determine the processing priority (warning / critical). For example, for serious transmission errors (critical), you can adopt a strategy of immediately interrupting communication and performing error recovery; for minor packet loss errors (warning), you can adopt a strategy of delayed processing or automatic retry.

[0135] Dynamically adjust parameters. During the communication process, according to the real-time communication situation and error feedback, dynamically adjust the parameters of the error handling strategy. According to factors such as communication load, communication environment, and system status, the execution mode and priority of the error handling strategy can be adjusted in real time to maximize the stability and reliability of communication.

[0136] Figure 3 The structure diagram of the communication device between BMC and BIOS provided by the present invention is as follows: Figure 3 As shown, the device comprises:

[0137] The data transmission module 310 is used for the baseboard management controller BMC to send a request message to the basic input and output BIOS system based on the target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message;

[0138] The process of constructing the target data channel includes:

[0139] The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

[0140] The communication device between BMC and BIOS provided by the present invention divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS to obtain multiple parallel virtual communication channels, thereby realizing the construction of a data transmission channel between the BMC and the BIOS. The multiple parallel virtual communication channels constructed after dividing the PCIe 5.0 bus channel have higher bandwidth, lower latency and stronger signal integrity, can achieve multiple advantages such as high-speed data transmission, low-latency communication, stable reliability and hardware standardization compatibility, and improve the communication efficiency between the BMC and the BIOS.

[0141] In one embodiment, the data transmission module 310 is specifically used for:

[0142] Before the baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, the baseboard management controller BMC also includes:

[0143] The BMC initializes a PCIe 5.0 bus channel between the BMC and the BIOS;

[0144] The initialization includes:

[0145] The BMC identifies the device where the BIOS is located based on a PCIe 5.0 bus channel between the BMC and the BIOS;

[0146] The BMC configures the plurality of parallel virtual communication channels based on a multi-channel communication protocol, wherein the multi-channel communication protocol is used to manage the plurality of parallel virtual communication channels, define data packet formats in the plurality of parallel virtual communication channels, define error handling mechanisms for the plurality of parallel virtual communication channels, and determine adaptation of the plurality of parallel virtual communication channels to an underlying protocol;

[0147] The BMC performs link state training on the PCIe 5.0 bus channel between the BMC and the BIOS based on a link training state machine, so as to perform state management on the PCIe 5.0 bus channel between the BMC and the BIOS.

[0148] In one embodiment, the data transmission module 310 is further specifically configured to:

[0149] Also includes:

[0150] The BMC determines a historical communication load of each virtual communication channel based on the historical communication data of the plurality of virtual communication channels;

[0151] Based on the historical communication load, resource scheduling of multiple virtual communication channels in the target data channel is adjusted in real time.

[0152] In one embodiment, the data transmission module 310 is further specifically configured to:

[0153] The sending of the request message to the basic input and output BIOS system further comprises:

[0154] In the case that the request message is a plurality of messages, the BMC sends the plurality of messages in parallel to the BIOS system based on a plurality of parallel virtual communication channels in the target data channel.

[0155] In one embodiment, the data transmission module 310 is further specifically configured to:

[0156] Also includes:

[0157] The BMC divides the bandwidth of the PCIe 5.0 bus channel between the BMC and the BIOS based on the characteristics of data transmitted in the multiple parallel virtual communication channels and the priority of each virtual communication channel, so as to allocate bandwidth to each virtual communication channel.

[0158] In one embodiment, the data transmission module 310 is further specifically configured to:

[0159] Also includes:

[0160] The BMC adjusts the quality of service (QoS) policy of each virtual channel based on the software defined network (SDN) controller, and adjusts the bandwidth allocation and priority of each virtual channel according to the real-time network status and application requirements.

[0161] In one embodiment, the data transmission module 310 is further specifically configured to:

[0162] Also includes:

[0163] Acquire error data of the target data channel during transmission based on the BMC;

[0164] The error data is classified based on the error type, and the priority of the error data processing is determined based on the category of the error data.

[0165] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the communication method between the BMC and the BIOS, and the method includes:

[0166] The baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message;

[0167] The process of constructing the target data channel includes:

[0168] The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

[0169] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0170] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the communication method between the BMC and the BIOS provided by the above methods, the method comprising:

[0171] The baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message;

[0172] The process of constructing the target data channel includes:

[0173] The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

[0174] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for communicating between the BMC and the BIOS provided by the above methods is implemented, and the method includes:

[0175] The baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message;

[0176] The process of constructing the target data channel includes:

[0177] The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

[0178] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0179] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0180] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A communication method between BMC and BIOS, characterized in that: The method comprises: The baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message; The process of constructing the target data channel includes: The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

2. The method for communication between BMC and BIOS according to claim 1, characterized in that: Before the baseboard management controller BMC sends a request message to the basic input and output BIOS system based on the target data channel, the baseboard management controller BMC also includes: The BMC initializes a PCIe 5.0 bus channel between the BMC and the BIOS; The initialization includes: The BMC identifies the device where the BIOS is located based on a PCIe 5.0 bus channel between the BMC and the BIOS; The BMC configures the plurality of parallel virtual communication channels based on a multi-channel communication protocol, wherein the multi-channel communication protocol is used to manage the plurality of parallel virtual communication channels, define data packet formats in the plurality of parallel virtual communication channels, define error handling mechanisms for the plurality of parallel virtual communication channels, and determine adaptation of the plurality of parallel virtual communication channels to an underlying protocol; The BMC performs link state training on the PCIe 5.0 bus channel between the BMC and the BIOS based on a link training state machine, so as to perform state management on the PCIe 5.0 bus channel between the BMC and the BIOS.

3. The method for communication between BMC and BIOS according to claim 1, characterized in that: Also includes: The BMC determines a historical communication load of each virtual communication channel based on historical communication data of the plurality of virtual communication channels; Based on the historical communication load, resource scheduling of multiple virtual communication channels in the target data channel is adjusted in real time.

4. The method for communication between BMC and BIOS according to claim 1, characterized in that: The sending of the request message to the basic input and output BIOS system further comprises: In the case that the request message is a plurality of messages, the BMC sends the plurality of messages in parallel to the BIOS system based on a plurality of parallel virtual communication channels in the target data channel.

5. The method for communication between BMC and BIOS according to claim 1, characterized in that: Also includes: The BMC divides the bandwidth of the PCIe 5.0 bus channel between the BMC and the BIOS based on the characteristics of data transmitted in the multiple parallel virtual communication channels and the priority of each virtual communication channel, so as to allocate bandwidth to each virtual communication channel.

6. The method for communication between BMC and BIOS according to claim 1, characterized in that: Also includes: The BMC adjusts the quality of service (QoS) policy of each virtual channel based on the software defined network (SDN) controller, and adjusts the bandwidth allocation and priority of each virtual channel according to the real-time network status and application requirements.

7. The method for communication between BMC and BIOS according to claim 1, characterized in that: Also includes: Acquire error data of the target data channel during transmission based on the BMC; The error data is classified based on the error type, and the priority of the error data processing is determined based on the category of the error data.

8. A communication device between BMC and BIOS, characterized in that: include: A data transmission module, used for a baseboard management controller BMC to send a request message to a basic input and output BIOS system based on a target data channel, so that the BIOS executes a corresponding response based on the request message after receiving the request message; The process of constructing the target data channel includes: The BMC divides the PCIe 5.0 bus channel constructed between the BMC and the BIOS based on the distributed virtual channel technology to obtain multiple parallel virtual communication channels, and constructs the target data channel based on the multiple parallel virtual communication channels.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the communication method between the BMC and the BIOS is implemented as claimed in any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the communication method between the BMC and the BIOS is implemented according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Creation and application method of dynamic virtual channel based on remote display protocol

    CN101909061A

  • Data interaction method and calculation equipment

    CN108021518A

  • BIOS (Basic Input / Output System) data interaction method and device and medium

    CN114153780A

  • System and method for supporting runtime SMM update and telemetry for bare computer deployment

    CN115955394A

  • Cable connection detection method, configuration method and computing device

    CN116112391A

Cited By

  • Multichannel data transmission control method based on bus network

    CN120034504A

  • System and method for simulation and testing of multiple virtual ECUs

    US12683884B2

  • System and method for simulation and testing of multiple virtual ecus

    US20230261961A1