Baseboard management controller cluster firmware upgrade method, product, equipment and medium

By using blockchain and smart contract technology in BMC clusters, the problems of insufficient security and poor reliability in firmware upgrades in BMC clusters are solved, and an efficient and secure automated upgrade process is achieved.

CN118484219BActive Publication Date: 2024-11-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410684506.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-11-08
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

The existing technology has problems such as insufficient security, low efficiency and poor reliability in the firmware upgrade of the substrate management controller (BMC) cluster. Especially in remote upgrades and version management, firmware tampering, data leakage and upgrade failure are prone to failure. .

Method used

Using blockchain technology and smart contracts to upgrade firmware in BMC clusters, ensure information security and integrity through the immutable and decentralized characteristics of blockchain, and realize automated upgrade processes through smart contracts to reduce human intervention and operation errors.

Benefits of technology

It improves the security, reliability and efficiency of firmware upgrades, ensures transparency and traceability of the upgrade process, reduces the risk of single point failure, and realizes an automated firmware upgrade process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118484219B_ABST
    Figure CN118484219B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a baseboard management controller cluster firmware upgrade method, product, device and medium, which relates to the field of server technology. The method includes: receiving a firmware upgrade request sent by a baseboard management controller node to be upgraded, the firmware upgrade request carries the node identification, target firmware version information and authentication information of the baseboard management controller node to be upgraded; after verifying the firmware upgrade request based on a preset smart contract, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded performs firmware upgrade based on the digitally signed firmware upgrade package after the digital signature of the digitally signed firmware upgrade package is authenticated. The embodiment of the present invention applies blockchain technology to a baseboard management controller cluster, so that the firmware upgrade process can be automated, reducing human intervention and operational errors, and improving the efficiency, security, integrity and reliability of firmware upgrades.
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 baseboard management controller (BMC) cluster firmware upgrade method, a computer program product, an electronic device and a computer-readable storage medium. Background Art

[0002] Baseboard Management Controller (BMC) cluster firmware upgrade and management is a key link in server cluster management. Upgrading the BMC firmware can improve server performance, functionality, and security.

[0003] Currently, in the field of BMC cluster firmware upgrade, remote management tools are usually used for batch upgrades, which require manual intervention and long waiting times, are inefficient, and have errors caused by human intervention. The use of traditional security verification and encryption mechanisms has certain security deficiencies, which may lead to firmware tampering or malicious injection, and there are risks such as data leakage and tampering. Firmware upgrades involve the update of server core components, so security is extremely important. In addition, various failures or unexpected situations may occur during the firmware upgrade process, such as upgrade failures and system crashes. Traditional methods cannot solve these failures or unexpected situations, resulting in poor upgrade reliability. Summary of the invention

[0004] In view of the above problems, embodiments of the present invention are proposed to provide a baseboard management controller cluster firmware upgrade method, product, device and medium that overcome the above problems or at least partially solve the above problems.

[0005] In a first aspect, an embodiment of the present invention discloses a baseboard management controller cluster firmware upgrade method, wherein a blockchain is deployed in the baseboard management controller cluster, and the method is applied to the blockchain, and the method includes:

[0006] Receive a firmware upgrade request sent by a baseboard management controller node to be upgraded, wherein the firmware upgrade request carries a node identifier, target firmware version information, and authentication information of the baseboard management controller node to be upgraded;

[0007] After the firmware upgrade request is verified based on the preset smart contract, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package is passed.

[0008] As in the above method, optionally, the verification of the firmware upgrade request based on a preset smart contract includes:

[0009] Verifying whether the firmware upgrade request is legal based on a preset smart contract;

[0010] Verify whether the baseboard management controller node to be upgraded has upgrade operation authority based on a preset smart contract;

[0011] Verify whether the target firmware version information exists in the recorded firmware version list based on a preset smart contract;

[0012] Verify whether the authentication information matches the stored authentication information based on a preset smart contract.

[0013] As in the above method, optionally, the authentication information includes a digital signature of a baseboard management controller node, and the verification based on a preset smart contract whether the authentication information matches the stored authentication information includes:

[0014] Determine whether the digital signature of the baseboard management controller node to be upgraded matches the digital signature of the node registered in the preset smart contract.

[0015] As in the above method, optionally, the digitally signed firmware upgrade package includes a firmware checksum, and the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded performs a firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package is passed, including:

[0016] The digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package and the firmware checksum verification are passed.

[0017] As the above method, optionally, it also includes:

[0018] The upgrade log information fed back by the baseboard management controller node to be upgraded during the firmware upgrade process is received and stored.

[0019] As the above method, optionally, it also includes:

[0020] Based on the stored upgrade log information, the baseboard management controller upgrade process is audited and compliance checked.

[0021] As the above method, optionally, it also includes:

[0022] Receiving an upgrade result fed back by the baseboard management controller node to be upgraded after the firmware upgrade is completed;

[0023] Based on the upgrade result, it is determined whether the baseboard management controller node to be upgraded is successfully upgraded.

[0024] As the above method, optionally, it also includes:

[0025] If the baseboard management controller node to be upgraded is upgraded successfully, the recorded firmware version information of the baseboard management controller node to be upgraded is updated.

[0026] As the above method, optionally, it also includes:

[0027] If the baseboard management controller node to be upgraded fails to be upgraded, the failure information is recorded and a rollback mechanism is triggered so that the baseboard management controller node to be upgraded is rolled back to the corresponding recorded firmware version information state.

[0028] As the above method, optionally, it also includes:

[0029] When a new firmware version is detected, determining the improvement information and repair content corresponding to the new firmware version;

[0030] Determine a firmware upgrade package based on the firmware binary file, firmware checksum, and version information corresponding to the new firmware version;

[0031] The firmware upgrade package is digitally signed and then stored;

[0032] The version information is recorded in the firmware version list.

[0033] As in the above method, optionally, before receiving the firmware upgrade request sent by the baseboard management controller node to be upgraded, it also includes:

[0034] Allocating a node identifier for each baseboard management controller node in the baseboard management controller cluster, and setting node permissions for each baseboard management controller node;

[0035] Based on the privacy protection mechanism, setting a node access policy for each baseboard management controller node to be upgraded;

[0036] The digital signature of each baseboard management controller node is set and stored in the registered node digital signature.

[0037] As the above method, optionally, it also includes:

[0038] Monitor and record the node status and node performance of each baseboard management controller node in the baseboard management controller cluster in real time;

[0039] When it is determined that a baseboard management controller node is abnormal according to the recorded node status and node performance, alarm information of the baseboard management controller node is generated.

[0040] As the above method, optionally, it also includes:

[0041] The data integrity of the data to be verified stored in the blockchain and the security of the blockchain system are verified according to the preset period.

[0042] As in the above method, optionally, the preset smart contract includes:

[0043] Event trigger contract and firmware upgrade contract;

[0044] The receiving a firmware upgrade request sent by a baseboard management controller node to be upgraded includes:

[0045] Receive a request sent by a baseboard management controller node to be upgraded, determine that the request is a firmware upgrade request based on the event triggering contract, and send the firmware upgrade request to the firmware upgrade contract;

[0046] After the firmware upgrade request is verified based on the preset smart contract, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, including:

[0047] Verifying the firmware upgrade request based on the firmware upgrade contract;

[0048] If the firmware upgrade request is verified to be successful, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded based on the firmware upgrade contract.

[0049] In a second aspect, an embodiment of the present invention discloses a computer program product, which is applied to a blockchain, and the blockchain is deployed in a baseboard management controller cluster, and the computer program product includes:

[0050] A receiving module, configured to receive a firmware upgrade request sent by a baseboard management controller node to be upgraded, wherein the firmware upgrade request carries a node identifier, target firmware version information, and authentication information of the baseboard management controller node to be upgraded;

[0051] The verification and upgrade module is used to send the digitally signed firmware upgrade package corresponding to the stored target firmware version information to the baseboard management controller node to be upgraded after verifying the firmware upgrade request based on a preset smart contract, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package is passed.

[0052] In a third aspect, the present invention further discloses an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the baseboard management controller cluster firmware upgrade method as described above are implemented.

[0053] In a fourth aspect, the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the baseboard management controller cluster firmware upgrade method as described above are implemented.

[0054] The embodiments of the present invention include the following advantages:

[0055] In the embodiment of the present invention, blockchain technology is applied to the baseboard management controller cluster, combining the core advantages of blockchain technology, introducing a new security mechanism for the baseboard management controller firmware upgrade, and realizing chain storage and verification of firmware upgrade information through blockchain technology. The tamper-proof nature of blockchain ensures the security, integrity and authenticity of firmware information; the upgrade request verification and firmware upgrade package digital signature mechanism ensure the security and authenticity of the upgrade process; the decentralized distributed ledger of blockchain reduces the risk of single point failure and improves the stability and reliability of the entire baseboard management controller cluster system; the introduction of smart contracts makes the firmware upgrade process automated, reduces human intervention and operational errors, and improves the efficiency of firmware upgrades. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 It is a flowchart of the steps of a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention;

[0057] Figure 2 It is a schematic diagram of a blockchain network construction and initialization process in a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention;

[0058] Figure 3 It is a schematic diagram of a process flow of deploying and configuring baseboard management controller nodes in a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention;

[0059] Figure 4It is a structural block diagram of a baseboard management controller cluster firmware upgrade system provided by an embodiment of the present invention;

[0060] Figure 5 It is a schematic diagram of a blockchain network layer architecture in a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention;

[0061] Figure 6 It is a schematic diagram of the smart contract layer architecture in a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention;

[0062] Figure 7 It is a flowchart of another baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention;

[0063] Figure 8 is a structural block diagram of a computer program product provided by an embodiment of the present invention;

[0064] Fig. 9 is a structural block diagram of an electronic device provided by an embodiment of the present invention;

[0065] Fig.10 It is a structural block diagram of a computer-readable storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0066] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0067] At present, in the field of baseboard management controller BMC cluster firmware upgrade, remote management tools are usually used to upgrade batches, which mainly has the following problems:

[0068] Insufficient security: During the BMC firmware upgrade process, the traditional security verification and encryption mechanism is used, which has certain security deficiencies. Therefore, ensuring the security, reliability and integrity of the firmware upgrade is an issue that needs to be addressed urgently to prevent firmware tampering or malicious injection.

[0069] Remote upgrade: With the popularity of cloud computing and remote management, remote BMC firmware upgrades have become more important. It is a challenge to ensure that server clusters in different locations can perform firmware upgrades conveniently and securely.

[0070] Version management: Effective version management is crucial for BMC firmware upgrades. Managing different firmware versions on multiple servers and ensuring timely firmware updates and unified management is a challenge.

[0071] Fault recovery: During the BMC firmware upgrade process, failures or unexpected situations may occur. Therefore, an effective fault recovery mechanism is required to ensure the stability and reliability of the firmware upgrade process.

[0072] Difficult to track and audit: Traditional methods usually lack detailed upgrade records and audit mechanisms, making it difficult to track and verify the integrity and compliance of the upgrade process.

[0073] Therefore, ensuring the security, reliability and integrity of BMC cluster firmware upgrades is an issue that needs to be addressed urgently.

[0074] One of the core concepts of the embodiment of the present invention is to deploy blockchain in the BMC cluster, store the firmware upgrade package in the blockchain, apply blockchain technology to the BMC cluster, combine the core advantages of blockchain technology, introduce a new security mechanism for BMC firmware upgrade, realize chain storage and verification of firmware upgrade information through blockchain technology, and the immutability of blockchain ensures the security, integrity and authenticity of firmware information; after receiving the upgrade request, verify the upgrade request, and implement a digital signature mechanism for the firmware upgrade package to ensure the security and authenticity of the upgrade process; the decentralized distributed ledger of blockchain reduces the risk of single point failure and can improve the stability and reliability of the entire BMC cluster system; at the same time, the introduction of smart contracts makes the firmware upgrade process automatic and has an exception handling mechanism, which reduces human intervention and operation errors and improves the efficiency of firmware upgrade.

[0075] like Figure 1 , a flowchart of a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention is shown, wherein a blockchain is deployed in the baseboard management controller cluster, the blockchain includes multiple blockchain nodes, and the multiple blockchain nodes store a firmware upgrade package for baseboard management controller upgrade. The method is applied to the blockchain, and the method may include the following steps:

[0076] Step 101, receiving a firmware upgrade request sent by a baseboard management controller node to be upgraded, wherein the firmware upgrade request carries a node identifier, target firmware version information and authentication information of the baseboard management controller node to be upgraded;

[0077] Specifically, in view of the current status and challenges of BMC firmware upgrade, the emerging blockchain technology is used to improve the BMC firmware upgrade method to improve efficiency, security and reliability. Blockchain technology is a decentralized distributed database technology that saves data through a series of data blocks arranged in chronological order and uses cryptography to ensure the security of data transmission and access. Blockchain has the characteristics of decentralization, immutability, transparency and anonymity, making it widely used in data security, trust mechanism and other fields. The firmware upgrade package files available for each BMC node in the BMC cluster are stored in the blockchain, and the chain storage and verification of firmware upgrade information are realized through blockchain technology to ensure the integrity and authenticity of the upgrade information.

[0078] First, you need to build and initialize the blockchain network. Figure 2 : is a schematic diagram of a blockchain network construction and initialization process in a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention, such as Figure 2 As shown, the blockchain network construction and initialization process includes blockchain network construction and blockchain network initialization. Blockchain network construction includes steps S201 to S203, and blockchain network initialization includes steps S204 to S207:

[0079] Step S201, determine the blockchain architecture: Considering that the BMC cluster is usually deployed in a trusted environment, the blockchain architecture is selected to select the alliance chain, and the blockchain improved consensus mechanism deployed is based on proof of stake (PoS) or sharding technology to improve throughput and response speed. The performance of the blockchain network directly affects the efficiency of the firmware upgrade. The lightweight node verification method, compression and sharding storage technology, and fast full synchronization protocol are used to optimize the network architecture, reduce network latency, and improve throughput, effectively reducing the burden on nodes, improving the scalability of the BMC cluster firmware upgrade system, and improving network performance.

[0080] Step S202, configure network parameters: including network topology, inter-node communication protocol, port number, etc.;

[0081] Step S203, generating a genesis block: i.e., the starting point for creating a blockchain network. The genesis block contains the basic information, rules and initial status of the network and is the cornerstone of the entire network;

[0082] Step S204, start the nodes: start the nodes deployed on the server or virtual machine to make them join the blockchain network.

[0083] Step S205, synchronizing data: After the nodes are started, they will automatically synchronize data from the network, including existing blocks and transaction information. This process ensures the consistency of data of all nodes in the network.

[0084] Step S206, verification and confirmation: During the process of synchronizing data, the node will verify and confirm the received information to ensure the authenticity and integrity of the data.

[0085] Step S207, configure security policies: In order to ensure the security of the blockchain network, it is necessary to configure corresponding security policies, such as setting access control, encrypting communications, preventing malicious attacks, etc., to ensure that only authorized users can access and operate the network, and prevent data leakage and illegal tampering.

[0086] After that, deploy and configure the BMC node. Figure 3 The present invention provides a schematic diagram of a process of deploying and configuring baseboard management controller nodes in a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention.

[0087] Step S301, formulate a node deployment plan: formulate a detailed BMC node deployment plan according to the scale of the BMC cluster, network topology and business requirements, including determining the node type (lightweight node), quantity, geographical distribution and integration method with other systems.

[0088] Step S302, network configuration: configure the network parameters of the BMC nodes, including IP address, port number, communication protocol, etc., to ensure that the BMC nodes can communicate normally.

[0089] Step S303, identity and authority configuration: assign a unique identity and corresponding authority to each BMC node, including the role of the BMC node in the blockchain network (such as verification node, accounting node, etc.) and the operations that can be performed (such as initiating transactions, participating in consensus, etc.).

[0090] Step S304, data storage configuration: configure the data storage path and parameters of the BMC node to ensure that blocks and transaction data can be stored and accessed safely and efficiently.

[0091] Step S305, security configuration: setting the security policy of the BMC node, including access control, data encryption, firewall, etc., to prevent unauthorized access and malicious attacks.

[0092] Step S306, node startup and verification: After completing the configuration, start each BMC node and verify its operating status. For example, check whether the node has successfully joined the network, whether it can receive and send data normally, whether it can participate in the consensus process, etc. At the same time, it is also necessary to monitor the performance indicators of the BMC node, such as CPU usage, memory occupancy, network bandwidth, etc., to ensure that the BMC node runs stably and efficiently.

[0093] After that, you need to configure the blockchain sharing mechanism, including:

[0094] Define data structures: Identify the types of data that need to be shared, such as firmware version information, update logs, secure hashes, etc.

[0095] Sharing rules: define which data can be shared, which data needs to be kept confidential, and the conditions and restrictions for data sharing.

[0096] In order to solve the problem of manual intervention and long waiting time required in the traditional BMC cluster firmware upgrade process, in the embodiment of the present invention, a smart contract layer is added to the blockchain network. The smart contract is the key to realize the automatic and intelligent upgrade of the baseboard management controller cluster system. The smart contract layer defines various smart contract rules, conditions and process information, including at least firmware upgrade contracts and event trigger contracts.

[0097] The firmware upgrade contract is used to define the specific rules, conditions and processes for firmware upgrades, and manage the status of firmware upgrades, including the release of upgrade files, verification results, execution status, etc. The event trigger contract is used to monitor preset events or conditions, such as version update notifications, scheduled tasks, etc. When the event trigger contract determines that the preset conditions are met, it automatically triggers the firmware upgrade process.

[0098] In actual applications, the firmware upgrade contract can also include an access control contract to manage the access rights of different users or roles, such as the right to publish and execute upgrade files, etc. It is responsible for verifying the identity of the user and ensuring that only authorized users can perform related operations.

[0099] Figure 4 is a structural block diagram of a baseboard management controller cluster firmware upgrade system provided by an embodiment of the present invention, such as Figure 4As shown, the baseboard management controller cluster firmware upgrade system includes a cloud storage platform, a baseboard management controller cluster, a user console and a blockchain network. The baseboard management controller cluster includes n baseboard management controller nodes, namely baseboard management controller node 1 to baseboard management controller node n, which store baseboard management controller cluster data. Each baseboard management controller node communicates with the central processing unit (CPU) through the platform controller hub (Platform Controller Hub, PCH), and communicates with the blockchain network through the CPU. The blockchain network includes m blockchain nodes, and each blockchain node stores blockchain data, including but not limited to files such as firmware upgrade packages for baseboard management controller upgrades. The blockchain provides a blockchain interface for receiving messages sent from the baseboard management controller node. Smart contracts are added to the blockchain. Smart contracts can be deployed in nodes specified by the blockchain or in blockchain node clusters. After analyzing the baseboard management controller node message through the smart contract, data is obtained from the blockchain node and returned to the baseboard management controller node through the blockchain interface.

[0100] After the above preparations are completed, when a baseboard management controller node in the baseboard management controller cluster needs to update the firmware, a firmware upgrade request is sent to the blockchain based on the smart contract. The firmware upgrade request carries the node identifier of the baseboard management controller node to be upgraded, which is used to distinguish which node needs to be upgraded. The firmware upgrade request also carries the target firmware version information, which is used to inform the blockchain of the firmware version information to be sent. The firmware upgrade request also carries authentication information to facilitate the blockchain to verify the baseboard management controller node request.

[0101] Step 102, after the firmware upgrade request is verified based on the preset smart contract, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package is passed.

[0102] Specifically, after the blockchain receives the firmware upgrade request sent by the baseboard management controller node to be upgraded, it first verifies the firmware upgrade request based on the smart contract to determine whether the firmware upgrade request complies with relevant regulations, that is, whether the firmware upgrade request is legal. After the verification is passed, the smart contract will trigger the firmware distribution mechanism. The firmware upgrade package corresponding to the version information stored in the blockchain is found in the blockchain, where the firmware upgrade package stored in the blockchain is digitally signed to ensure the security of the firmware upgrade package. The firmware upgrade package can be broadcast to the designated node in the network to inform the baseboard management controller node to be upgraded, and the baseboard management controller node to be upgraded can obtain it from the designated node according to the address link. In addition, the firmware upgrade package image can be obtained from the blockchain node storing the firmware upgrade package and sent directly to the baseboard management controller node to be upgraded. Point-to-point firmware distribution makes firmware distribution faster and safer, while reducing the pressure on centralized servers.

[0103] After the node to be upgraded receives the firmware upgrade package, it first verifies its digital signature to ensure the integrity of the upgrade package file and the authenticity of the source. After the verification is passed, the baseboard management controller node starts to perform the firmware upgrade operation, including writing the new firmware to the flash memory, updating the system configuration, and completing the node firmware upgrade.

[0104] The baseboard management controller cluster firmware upgrade method provided in an embodiment of the present invention receives a firmware upgrade request sent by a baseboard management controller node to be upgraded, wherein the firmware upgrade request carries the node identification, target firmware version information and authentication information of the baseboard management controller node to be upgraded; after verifying the firmware upgrade request based on a preset smart contract, a digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature of the digitally signed firmware upgrade package is authenticated. It can be seen from this that in the embodiment of the present invention, blockchain technology is applied to the baseboard management controller cluster, combining the core advantages of blockchain technology, and introducing a new security mechanism for the baseboard management controller firmware upgrade. The chain storage and verification of firmware upgrade information are realized through blockchain technology. The tamper-proof nature of blockchain ensures the security, integrity and authenticity of firmware information; the upgrade request verification and firmware upgrade package digital signature mechanism ensure the security and authenticity of the upgrade process; the decentralized distributed ledger of blockchain reduces the risk of single point failure and improves the stability and reliability of the entire baseboard management controller cluster system; the introduction of smart contracts allows the firmware upgrade process to be automated, reduces human intervention and operational errors, and improves the efficiency of firmware upgrades.

[0105] On the basis of the above embodiment, further, the verification of the firmware upgrade request based on a preset smart contract includes:

[0106] Verifying whether the firmware upgrade request is legal based on a preset smart contract;

[0107] Verify whether the baseboard management controller node to be upgraded has upgrade operation authority based on a preset smart contract;

[0108] Verify whether the target firmware version information exists in the recorded firmware version list based on a preset smart contract;

[0109] Verify whether the authentication information matches the stored authentication information based on a preset smart contract.

[0110] Specifically, Figure 5 : is a schematic diagram of a blockchain network layer in a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention, such as Figure 5 As shown in the figure, the smart contract layer includes the following modules:

[0111] Firmware upgrade management module: responsible for communicating with the baseboard management controller cluster nodes, receiving and executing upgrade instructions from smart contracts. This module also has functions such as firmware version management, upgrade progress monitoring and upgrade result verification to ensure the accuracy and effectiveness of the upgrade operation. The firmware upgrade management module includes a cluster management module, an interface module, a firmware upgrade execution module and a security verification module. The cluster management module is responsible for the monitoring and configuration management of the baseboard management controller cluster, including node status, resource usage, etc. The interface module provides the necessary interfaces and protocols to interact and communicate with the blockchain network. The firmware upgrade execution module receives upgrade instructions and related data from the blockchain network, executes firmware upgrade operations, including downloading upgrade files, executing upgrade programs, etc., and returns upgrade results. The security verification module performs security verification on the received upgrade files, including integrity checks, signature verification, etc., checks whether the environment of the baseboard management controller cluster meets the upgrade requirements, and ensures the security and reliability of the upgrade process.

[0112] Node monitoring and logging module: The node monitoring and logging module is responsible for real-time monitoring of the status of the baseboard management controller cluster nodes and recording key information and logs during the upgrade process. These log information can be used for subsequent audits and troubleshooting to improve the maintainability and reliability of the system.

[0113] Data storage, backup and interaction module: The data storage and backup module is responsible for storing and managing all key data in the system, including firmware version information, upgrade records, node status, etc. This module uses distributed storage and backup technology to ensure data reliability and security. The data interface provides a data interaction interface with external systems or applications, such as an application programming interface (API) or a data synchronization mechanism to achieve data sharing and synchronization between the baseboard management controller cluster and the blockchain network.

[0114] based on Figure 5 The smart contract shown, when receiving a firmware upgrade request sent by the baseboard management controller node to be upgraded, the firmware upgrade management module processing flow verifies the legitimacy of the upgrade request, and checks whether the node has the authority to perform the upgrade operation according to the node's authority level. If so, it verifies whether the target firmware version exists in the version list recorded in the contract. The baseboard management controller nodes of the baseboard management controller cluster system can only be upgraded to the firmware version in the version list recorded in the contract. If it exists, it confirms whether the requester's authentication information matches the stored authentication information. If it matches, it means that the firmware upgrade request verification is passed. For example, the baseboard management controller node can calculate the node encryption information based on a preset encryption algorithm and use it as authentication information. The smart contract also stores the authentication information of each legitimate baseboard management controller node calculated based on the encryption algorithm. By matching whether the sent information is the same as the stored information, it is determined whether the authentication information matches.

[0115] The introduction of smart contracts in the embodiments of the present invention enables the firmware upgrade process to be automated, reduces human intervention and operational errors, and realizes an automated and intelligent upgrade process. The firmware upgrade request is multiplexed and verified through the smart contract to ensure the legitimacy of the firmware upgrade request, thereby improving the upgrade security and efficiency.

[0116] On the basis of the above embodiments, further, the authentication information includes a digital signature of the baseboard management controller node, and the verification based on the preset smart contract whether the authentication information matches the stored authentication information includes:

[0117] Determine whether the digital signature of the baseboard management controller node to be upgraded matches the digital signature of the node registered in the preset smart contract.

[0118] Specifically, in addition to digitally signing the firmware upgrade package to ensure the security of the firmware upgrade package, the baseboard management controller node can also be digitally signed as the node's authentication information. The digital signature of each legitimate baseboard management controller node is pre-registered in the contract. If the digital signature carried in the firmware upgrade request sent by the baseboard management controller node to be upgraded matches the signature registered in the contract, it means that the authentication information in the firmware upgrade request has been verified.

[0119] In the embodiment of the present invention, the security of firmware information is guaranteed by the tamper-proof nature of the blockchain, and the digital signature and multi-signature mechanism of the firmware upgrade package ensures the authorization and authenticity of the upgrade process.

[0120] On the basis of the above embodiments, further, the digitally signed firmware upgrade package includes a firmware checksum, and the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded performs firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package is passed, including:

[0121] The digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package and the firmware checksum verification are passed.

[0122] Specifically, the digitally signed firmware upgrade package contains the checksum set by the smart contract for the firmware upgrade package, where the checksum is used to verify the sum of a set of data items at the destination in the field of data processing and data communication, ensuring the integrity and accuracy of the data in long-distance communication. After receiving the firmware upgrade package, the baseboard management controller node first verifies its digital signature to ensure the integrity of the file and the authenticity of the source. After that, the baseboard management controller node will also compare the checksum of the firmware package to further ensure that the file has not been tampered with during the transmission process.

[0123] After the verification is passed, the baseboard management controller node starts to perform the firmware upgrade operation.

[0124] In the embodiment of the present invention, by verifying the checksum of the firmware upgrade package, it is ensured that the firmware upgrade file has not been tampered with during the transmission process, thereby further improving the security of the firmware upgrade.

[0125] On the basis of the above embodiments, further comprising:

[0126] The upgrade log information fed back by the baseboard management controller node to be upgraded during the firmware upgrade process is received and stored.

[0127] Specifically, during the upgrade process, the baseboard management controller records the log information of the upgrade progress and status based on the smart contract. Figure 5 The node monitoring and logging module shown saves the log information, which solves the problem that the traditional firmware upgrade process lacks transparency and traceability, and is difficult to audit and troubleshoot. The system based on blockchain technology realizes chain storage and verification of upgrade information. By storing log information during the firmware upgrade process, it ensures that each upgrade operation has a complete record, which is convenient for subsequent auditing and troubleshooting.

[0128] In the embodiment of the present invention, the upgrade operation is recorded on the blockchain through log information, providing complete transparency and good traceability of the firmware upgrade operation.

[0129] On the basis of the above embodiments, further comprising:

[0130] Based on the stored upgrade log information, the baseboard management controller upgrade process is audited and compliance checked.

[0131] Specifically, the traditional firmware upgrade process lacks transparency and traceability, making it difficult to audit and troubleshoot problems. The chain storage and verification of upgrade information based on blockchain technology ensures that each upgrade operation has a complete record, which is convenient for subsequent audits and troubleshooting. Specifically, the node monitoring and logging module audits the baseboard management controller cluster firmware upgrade system operations regularly or irregularly to verify compliance with preset security policies and procedures, such as checking the allocation of user access rights, data modification records, etc. In addition, compliance checks can be performed through upgrade log information to ensure that the operation and management of the system comply with relevant laws, regulations and industry standards. Through smart contracts and blockchain technology, the compliance of the system can be easily tracked and verified.

[0132] Audit logs are generated through auditing. All access and operations to the system will be recorded as audit logs and stored on the blockchain. These logs can be used to track potential security vulnerabilities and illegal access. When a security incident occurs, the audit logs on the blockchain can be used for rapid response and evidence collection. The audit logs provide tamper-proof evidence, which helps to determine the cause and responsible party of the incident.

[0133] In the embodiment of the present invention, subsequent auditing and troubleshooting are performed through log information, thereby improving the maintainability and reliability of the system.

[0134] On the basis of the above embodiments, further comprising:

[0135] Receiving an upgrade result fed back by the baseboard management controller node to be upgraded after the firmware upgrade is completed;

[0136] Based on the upgrade result, it is determined whether the baseboard management controller node to be upgraded is successfully upgraded.

[0137] On the basis of the above embodiments, further comprising:

[0138] If the baseboard management controller node to be upgraded is upgraded successfully, the recorded firmware version information of the baseboard management controller node to be upgraded is updated.

[0139] On the basis of the above embodiments, further comprising:

[0140] If the baseboard management controller node to be upgraded fails to be upgraded, the failure information is recorded and a rollback mechanism is triggered so that the baseboard management controller node to be upgraded is rolled back to the corresponding recorded firmware version information state.

[0141] Specifically, after the upgrade is completed, the baseboard management controller node reports the upgrade results to the node monitoring and logging module in the smart contract. The smart contract first verifies the upgrade results reported by the node, for example, by checking the firmware version information of the node to verify whether the upgrade report is legal. After the verification is passed, the upgrade result is used to determine whether the upgrade is successful.

[0142] If the upgrade is successful, the smart contract will update the firmware status of the node and record the new firmware version information to ensure the real-time nature of the recorded firmware version information. Various unexpected situations may occur during the firmware upgrade process, such as upgrade failure, system crash, etc. If the upgrade fails, the smart contract will record the failure information and trigger recovery measures. Specifically, the smart contract triggers the rollback mechanism to notify the baseboard management controller node to roll back to the firmware version status saved when the upgrade was successful.

[0143] In the embodiment of the present invention, the firmware version information of the node can be updated in time through the feedback of the upgrade result, and the stability and reliability of the upgrade operation can be ensured through the failure rollback mechanism, so that the integrity of the data and the availability of the system can be guaranteed even in abnormal circumstances.

[0144] On the basis of the above embodiments, further comprising:

[0145] When a new firmware version is detected, determining the improvement information and repair content corresponding to the new firmware version;

[0146] Determine a firmware upgrade package based on the firmware binary file, firmware checksum, and version information corresponding to the new firmware version;

[0147] The firmware upgrade package is digitally signed and then stored;

[0148] The version information is recorded in the firmware version list.

[0149] Specifically, after blockchain is deployed in the BMC cluster, it is necessary to prepare the storage of firmware upgrade packages, determine the firmware versions that can be upgraded for each BMC node in the BMC cluster, and the improvements and repairs corresponding to each version, prepare firmware upgrade packages for each version, including firmware binary files, firmware checksums, version information, etc., and digitally sign each firmware upgrade package to ensure its integrity and authenticity. Figure 5 As shown in , the data storage backup and interaction module in the smart contract stores the digitally verified firmware upgrade package in the blockchain node. Finally, the version information is recorded in the firmware version list.

[0150] After deployment, when the smart contract detects that a new firmware version has been released, it determines the improvements and fixes corresponding to the new version, prepares a firmware upgrade package for the new version, including the firmware binary file, firmware checksum, version information, etc., and digitally signs the firmware upgrade package to ensure its integrity and authenticity. The digitally verified firmware upgrade package is stored in the blockchain node, and finally, the version information is updated to the firmware version list. Only the firmware version that exists in the firmware version list can be used in the BMC node upgrade operation.

[0151] By recording the firmware version list, the BMC cluster firmware upgrade system can be compatible with different models and versions of BMC and firmware versions. At the same time, it has good scalability and can adapt to the growing number of servers and complex upgrade requirements, solving system compatibility and scalability issues.

[0152] On the basis of the above embodiments, further, before receiving the firmware upgrade request sent by the baseboard management controller node to be upgraded, the method further includes:

[0153] Allocating a node identifier for each baseboard management controller node in the baseboard management controller cluster, and setting node permissions for each baseboard management controller node;

[0154] Based on the privacy protection mechanism, setting a node access policy for each baseboard management controller node to be upgraded;

[0155] The digital signature of each baseboard management controller node is set and stored in the registered node digital signature.

[0156] Specifically, before the upgrade, the smart contract assigns a node ID to each BMC node in the BMC cluster and sets the node permissions for each BMC node. The permissions determine which resources a user can access or which operations they can perform. Strict access control policies are implemented through smart contracts to ensure that only authorized users or nodes can access sensitive data and perform key operations.

[0157] Then, based on the privacy protection mechanism, the node access policy of each BMC node to be upgraded is set. The node access policy refers to the part of each node that can be accessed. Since the firmware upgrade process involves a large amount of sensitive data, such as node status, firmware version, etc. In order to protect the privacy of this data, more advanced encryption technologies such as zero-knowledge proof, homomorphic encryption and privacy protection mechanisms are introduced to ensure the security of data during transmission and storage.

[0158] In addition, in order to ensure the legitimacy of the BMC node, the smart contract can also set the digital signature of each BMC node and store it in the registered node digital signature. When receiving various requests sent by the BMC node, the digital signature can be verified to determine whether the request is legal. If it is legal, the request will be processed and illegal requests will be discarded.

[0159] In the embodiment of the present invention, the firmware upgrade involves the update of the core components of the server, and security is of vital importance. Traditional methods may have risks such as data leakage and tampering. The integrity, authenticity and non-tamperability of the upgrade data are ensured based on blockchain technology, and privacy protection technology is used to protect user sensitive information in the baseboard management controller node.

[0160] On the basis of the above embodiments, further comprising:

[0161] Monitor and record the node status and node performance of each baseboard management controller node in the baseboard management controller cluster in real time;

[0162] When it is determined that a baseboard management controller node is abnormal according to the recorded node status and node performance, alarm information of the baseboard management controller node is generated.

[0163] Specifically, smart contracts can also monitor the status of each node in the baseboard management controller cluster in real time, including firmware version, hardware health, network connection status, etc. This information can be recorded and updated in real time through blockchain technology to ensure the transparency and consistency of all node status.

[0164] Through smart contracts and data analysis on the blockchain, potential failures or abnormal behaviors can be automatically detected and early warnings can be issued in a timely manner. For example, when the firmware version of a node is too low or the hardware temperature is too high, an alarm message for the node is generated and an alarm is automatically triggered.

[0165] In addition, smart contracts can also monitor the performance indicators of the BMC cluster, such as response time, throughput, etc., to ensure that the system runs efficiently. These data can also be recorded on the blockchain for subsequent analysis and optimization.

[0166] In the embodiment of the present invention, the status of the BMC cluster nodes is monitored and recorded in real time, which is convenient for subsequent troubleshooting and improves the maintainability and reliability of the system.

[0167] On the basis of the above embodiments, further comprising:

[0168] The data integrity of the data to be verified stored in the blockchain and the security of the blockchain system are verified according to the preset period.

[0169] Specifically, the integrity of the data on the chain is verified regularly or in real time by taking advantage of the tamper-proof nature of the blockchain. Any modification to the data will leave a trace on the blockchain, thereby ensuring the authenticity and credibility of the data. For example, regularly performing security checks on stored firmware upgrade packages can further improve the security of firmware upgrades.

[0170] At the same time, smart contracts can also perform security checks on blockchain systems, such as vulnerability detection, to ensure the correct execution of contracts and prevent potential security risks.

[0171] On the basis of the above embodiments, further, the preset smart contract includes:

[0172] Event trigger contract and firmware upgrade contract;

[0173] The receiving a firmware upgrade request sent by a baseboard management controller node to be upgraded includes:

[0174] Receive a request sent by a baseboard management controller node to be upgraded, determine that the request is a firmware upgrade request based on the event triggering contract, and send the firmware upgrade request to the firmware upgrade contract;

[0175] After the firmware upgrade request is verified based on the preset smart contract, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, including:

[0176] Verifying the firmware upgrade request based on the firmware upgrade contract;

[0177] If the firmware upgrade request is verified to be successful, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded based on the firmware upgrade contract.

[0178] Specifically, smart contracts are one of the important applications of blockchain technology. They can automatically execute predefined rules to realize the automation and intelligence of firmware upgrades. In order to enhance the functionality and security of smart contracts, the embodiments of the present invention introduce complex logical judgment and error handling mechanisms, while strengthening the security audit and vulnerability detection of contracts to ensure the correct execution of contracts and prevent potential security risks.

[0179] Figure 6 is a schematic diagram of the smart contract layer architecture in a baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention, such as Figure 6 As shown, the smart contract layer includes:

[0180] (1) Firmware upgrade contract

[0181] a) Version management and verification: The contract maintains a firmware version list or registry to record the currently available firmware version information, including version number, release date, checksum, etc. When a new firmware version is released, the version number is updated and verified through the contract, and the contract provides an interface for the BMC node to query and request the latest firmware version.

[0182] b) Upgrade request processing: The BMC node initiates a firmware upgrade request through a smart contract function, and the request should contain information such as the target firmware version and node ID. The contract verifies the validity of the request, such as checking the identity and authority of the requester.

[0183] c) Firmware distribution and verification: Once the upgrade request is verified, the contract will trigger the firmware distribution mechanism, which can transfer the firmware image to the node requesting the upgrade, or provide a download link, etc. After receiving the firmware, the node will perform integrity verification to ensure that the firmware has not been tampered with during transmission.

[0184] d) Upgrade process monitoring: The contract tracks the progress of the firmware upgrade and records the upgrade status of each BMC node. During the upgrade process, if there is a problem, the contract can trigger a rollback mechanism to ensure the stability of the system.

[0185] e) Verification of upgrade results: After the node completes the upgrade, it will report the upgrade results to the contract. The contract verifies the correctness of the upgrade results, for example, by comparing the firmware version and checksum information reported by the node. If the upgrade is successful, the contract will update the firmware version information of the node; if the upgrade fails, the contract will record the reason for the failure and may provide further guidance or support.

[0186] (2) Access Control Contract

[0187] a) User role and permission definition: Define different user roles in the system, such as administrator, operator, ordinary user, etc., and assign corresponding permission levels to each role. Permissions determine which resources a user can access or which operations they can perform.

[0188] b) Access policy formulation: Set up a role-based access control (RBAC) policy to clarify the scope of data that each role can access and the operations that can be performed. In the specific implementation, you can also set up more fine-grained access control, such as attribute-based access control (ABAC), to set access restrictions based on user attributes (such as department, position, etc.).

[0189] c) Authentication and authorization: Implement authentication mechanisms, such as using public / private key pairs, digital signatures and other technologies to verify user identities. The authorization process ensures that only authenticated users with corresponding permissions can access system resources.

[0190] d) Access request processing: Receive and process user access requests, determine whether the request is legal based on the access control policy, and if the request is legal, grant access rights; otherwise, deny access and record relevant information.

[0191] e) Logging and monitoring: Record all access requests and responses, including the identity of the requester, request time, request content, processing results and other information, and provide monitoring functions to detect abnormal access behavior or potential security threats in real time.

[0192] f) Dynamic permission adjustment: Allows administrators to dynamically adjust user permissions based on actual conditions and, when necessary, revoke or change user access rights.

[0193] (3) Event triggering contract

[0194] a) Event definition and monitoring: Determine the specific events to be monitored, including firmware upgrade requests, upgrade success / failure, security threat detection, node failure, etc. Set up event listeners to continuously monitor the system status so that you can respond quickly when relevant events occur.

[0195] b) Trigger condition setting: Define clear trigger conditions for each event. For example, when a new firmware version is detected, or when a node requests an upgrade, the corresponding firmware upgrade operation in the contract is triggered. The trigger conditions can be flexibly set and adjusted according to business needs.

[0196] c) Automatic response mechanism: Once the trigger conditions are met, the contract will automatically execute predefined operations. These operations may include automatically distributing new firmware, recording logs, sending notifications, adjusting system status, etc. Through the automatic execution of smart contracts, it can be ensured that the system can respond quickly and accurately when an event occurs.

[0197] d) Exception handling and rollback: During the event triggering process, if an abnormal situation occurs (such as upgrade failure, network interruption, etc.), a corresponding exception handling mechanism should be in place. When necessary, the contract can trigger a rollback operation to ensure the consistency and stability of the system status.

[0198] e) Logging and Auditing: The contract records all triggering events and their processing for subsequent auditing and tracking.

[0199] The smart contract receives the request sent by the BMC node to be upgraded, determines that the request is a firmware upgrade request based on the event triggering contract, determines that the requesting BMC node is eligible for upgrade based on the access control contract, and sends the firmware upgrade request to the firmware upgrade contract, which verifies the firmware upgrade request;

[0200] If the firmware upgrade request is verified to be successful, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the BMC node to be upgraded based on the firmware upgrade contract.

[0201] Figure 7 FIG. 1 is a flowchart of another baseboard management controller cluster firmware upgrade method provided by an embodiment of the present invention. Figure 7 As shown, including:

[0202] Step S701: receiving an upgrade request;

[0203] Before receiving the upgrade request, the version management and verification process in the smart contract determines the firmware version that needs to be upgraded, as well as the improvements and fixes corresponding to that version, prepares the firmware upgrade package, including the firmware binary file, firmware checksum, version information, etc., and digitally signs the firmware upgrade package to ensure its integrity and authenticity.

[0204] The BMC node initiates a firmware upgrade request to the chain system through a smart contract. The request contains the BMC node's identifier, the target firmware version number, and necessary authentication information.

[0205] Step S702: request verification;

[0206] The upgrade request processing process in the smart contract verifies the legitimacy of the upgrade request and checks whether the node has the authority to perform the upgrade operation. The firmware distribution and verification process verifies whether the target firmware version exists in the version list recorded in the contract and confirms that the requester's digital signature matches the signature pre-registered in the contract.

[0207] Step S703: firmware distribution;

[0208] Once the request is verified, the firmware distribution and verification process in the smart contract will trigger the firmware distribution mechanism. The firmware upgrade package may be broadcast to designated nodes in the network, or directly provided to the BMC node requesting the upgrade.

[0209] Step S704, firmware reception and verification;

[0210] After receiving the firmware upgrade package, the BMC node first verifies its digital signature to ensure the integrity of the file and the authenticity of the source. The BMC node also compares the checksum of the firmware package to further ensure that the file has not been tampered with during transmission.

[0211] Step S705: Firmware upgrade;

[0212] After verification, the BMC node starts to perform firmware upgrade operations, including writing new firmware to flash memory, updating system configuration, etc. During the upgrade process, the BMC node monitors and logs the upgrade progress and status through the upgrade process monitoring and logging in the smart contract.

[0213] Step S706: feedback of upgrade results;

[0214] After the upgrade is completed, the BMC node reports the upgrade result to the smart contract. The upgrade result verification process will verify the upgrade result reported by the node, such as by checking the node's firmware version information. If the upgrade is successful, the smart contract will update the node's firmware status; if the upgrade fails, the exception handling and rollback in the smart contract will record the failure information and may trigger recovery measures, such as a rollback mechanism.

[0215] The embodiment of the present invention applies blockchain technology to the upgrade and management of baseboard management controller firmware, adopts improved blockchain technology, and significantly improves blockchain technology by optimizing consensus mechanism, strengthening data privacy protection, improving network performance, and enhancing smart contract functions, thereby improving the efficiency, security, and reliability of firmware upgrades, and can better meet the needs of baseboard management controller cluster firmware upgrades. Compared with the traditional upgrade method, the embodiment of the present invention has the following beneficial effects:

[0216] Security: The immutability of blockchain ensures the security of firmware information, and the digital signature and multi-signature mechanism ensures the authorization and authenticity of the upgrade process.

[0217] Transparency and traceability: All operations are recorded on the blockchain, providing full transparency and good traceability of firmware upgrade operations.

[0218] Decentralization: Decentralized distributed ledgers reduce the risk of single point failure and improve the stability and reliability of the entire system.

[0219] Automation: The introduction of smart contracts enables the firmware upgrade process to be automated, reducing human intervention and operational errors.

[0220] Peer-to-peer: Peer-to-peer networks make firmware distribution faster and more secure while reducing the pressure on centralized servers.

[0221] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0222] like Figure 8 , showing a block diagram of a computer program product provided by an embodiment of the present invention, a blockchain is deployed in a baseboard management controller cluster, the blockchain includes multiple blockchain nodes, the multiple blockchain nodes store a firmware upgrade package for upgrading the baseboard management controller, the product is applied in the blockchain, and the product includes:

[0223] The receiving module 801 is used to receive a firmware upgrade request sent by a baseboard management controller node to be upgraded, wherein the firmware upgrade request carries a node identifier, target firmware version information and authentication information of the baseboard management controller node to be upgraded;

[0224] The verification and upgrade module 802 is used to send the digitally signed firmware upgrade package corresponding to the stored target firmware version information to the baseboard management controller node to be upgraded after verifying the firmware upgrade request based on the preset smart contract, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package is passed.

[0225] As in the above computer program product, optionally, the verification upgrade module 802 is specifically used for:

[0226] Verifying whether the firmware upgrade request is legal based on a preset smart contract;

[0227] Verify whether the baseboard management controller node to be upgraded has upgrade operation authority based on a preset smart contract;

[0228] Verify whether the target firmware version information exists in the recorded firmware version list based on a preset smart contract;

[0229] Verify whether the authentication information matches the stored authentication information based on a preset smart contract.

[0230] As in the above computer program product, optionally, the verification upgrade module 802 is specifically used for:

[0231] Determine whether the digital signature of the baseboard management controller node to be upgraded matches the digital signature of the node registered in the preset smart contract.

[0232] As in the above computer program product, optionally, the verification upgrade module 802 is specifically used for:

[0233] The digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package and the firmware checksum verification are passed.

[0234] As in the above computer program product, optionally, the receiving module 801 is further used for:

[0235] The upgrade log information fed back by the baseboard management controller node to be upgraded during the firmware upgrade process is received and stored.

[0236] As the above computer program product, optionally, further comprises:

[0237] The audit module is used to audit and check the compliance of the baseboard management controller upgrade process based on the stored upgrade log information.

[0238] As in the above computer program product, optionally, the receiving module 801 is further used for:

[0239] Receiving an upgrade result fed back by the baseboard management controller node to be upgraded after the firmware upgrade is completed;

[0240] Accordingly, the computer program product further comprises:

[0241] The judgment module is used to judge whether the baseboard management controller node to be upgraded is upgraded successfully based on the upgrade result.

[0242] As the above computer program product, optionally, further comprises:

[0243] The updating module is used for updating the recorded firmware version information of the baseboard management controller node to be upgraded if the baseboard management controller node to be upgraded is upgraded successfully.

[0244] As the above computer program product, optionally, further comprises:

[0245] The exception handling module is used to record failure information and trigger a rollback mechanism if the baseboard management controller node to be upgraded fails to be upgraded, so that the baseboard management controller node to be upgraded rolls back to the corresponding recorded firmware version information state.

[0246] As the above computer program product, optionally, further comprises: a storage module, wherein the storage module is used to:

[0247] When a new firmware version is detected, determining the improvement information and repair content corresponding to the new firmware version;

[0248] Determine a firmware upgrade package based on the firmware binary file, firmware checksum, and version information corresponding to the new firmware version;

[0249] The firmware upgrade package is digitally signed and then stored;

[0250] The version information is recorded in the firmware version list.

[0251] As the above computer program product, optionally, further comprises: an initialization module, wherein the initialization module is used to:

[0252] Allocating a node identifier for each baseboard management controller node in the baseboard management controller cluster, and setting node permissions for each baseboard management controller node;

[0253] Based on the privacy protection mechanism, setting a node access policy for each baseboard management controller node to be upgraded;

[0254] The digital signature of each baseboard management controller node is set and stored in the registered node digital signature.

[0255] As the above computer program product, optionally, further comprises: a monitoring module, wherein the monitoring module is used to:

[0256] Monitor and record the node status and node performance of each baseboard management controller node in the baseboard management controller cluster in real time;

[0257] When it is determined that a baseboard management controller node is abnormal according to the recorded node status and node performance, alarm information of the baseboard management controller node is generated.

[0258] As the above computer program product, optionally, further comprises: a verification module, wherein the verification module is used to:

[0259] The data integrity of the data to be verified stored in the blockchain and the security of the blockchain system are verified according to the preset period.

[0260] As in the above computer program product, optionally, the preset smart contract includes:

[0261] Event trigger contract and firmware upgrade contract;

[0262] The receiving module 801 is specifically used for:

[0263] Receive a request sent by a baseboard management controller node to be upgraded, determine that the request is a firmware upgrade request based on the event triggering contract, and send the firmware upgrade request to the firmware upgrade contract;

[0264] The verification upgrade module 802 is specifically used for:

[0265] Verifying the firmware upgrade request based on the firmware upgrade contract;

[0266] If the firmware upgrade request is verified to be successful, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded based on the firmware upgrade contract.

[0267] The computer program product provided by the embodiment of the present invention applies blockchain technology to a baseboard management controller cluster, combines the core advantages of blockchain technology, and introduces a new security mechanism for baseboard management controller firmware upgrades. The chain storage and verification of firmware upgrade information are realized through blockchain technology. The tamper-proof nature of blockchain ensures the security, integrity and authenticity of firmware information; the upgrade request verification and firmware upgrade package digital signature mechanism ensure the security and authenticity of the upgrade process; the decentralized distributed ledger of blockchain reduces the risk of single point failure and improves the stability and reliability of the entire baseboard management controller cluster system; the introduction of smart contracts allows the firmware upgrade process to be automated, reduces human intervention and operational errors, and improves the efficiency of firmware upgrades.

[0268] As for the product embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0269] like Fig. 9 , showing a structural block diagram of an electronic device 90 provided in an embodiment of the present invention, including:

[0270] A processor 901, a memory 902, and a computer program 9021 stored in the memory 902 and capable of running on the processor 901. When the computer program 9021 is executed by the processor 901, each process of the above-mentioned baseboard management controller cluster firmware upgrade method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0271] like Fig.10 , shows a structural block diagram of a computer-readable storage medium 1000 provided in an embodiment of the present invention. A computer program 1001 is stored on the computer-readable storage medium 1000. When the computer program 901 is executed by the processor, each process of the above-mentioned baseboard management controller cluster firmware upgrade method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0272] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0273] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0274] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0275] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0276] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0277] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0278] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0279] The above is a detailed introduction to the baseboard management controller cluster firmware upgrade method, product, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A baseboard management controller cluster firmware upgrade method, characterized in that: The blockchain is deployed in the baseboard management controller cluster, and the method is applied to the blockchain, and the method includes: Assign a node identifier to each baseboard management controller node in the baseboard management controller cluster, and set the node authority of each baseboard management controller node; set the node access policy of each baseboard management controller node to be upgraded based on the privacy protection mechanism; set the digital signature of each baseboard management controller node, and store it in the registered node digital signature; Receive a firmware upgrade request sent by a baseboard management controller node to be upgraded, the firmware upgrade request carrying a node identifier, target firmware version information and authentication information of the baseboard management controller node to be upgraded; the authentication information includes a digital signature of the baseboard management controller node; Verify whether the firmware upgrade request is legal based on a preset smart contract; verify whether the baseboard management controller node to be upgraded has upgrade operation authority based on a preset smart contract; verify whether the target firmware version information exists in the recorded firmware version list based on a preset smart contract; determine whether the digital signature of the baseboard management controller node to be upgraded matches the digital signature of the node registered in the preset smart contract; after the verification is passed, send the digitally signed firmware upgrade package corresponding to the stored target firmware version information to the baseboard management controller node to be upgraded, the digitally signed firmware upgrade package includes a firmware checksum, so that the baseboard management controller node to be upgraded can perform firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package and the firmware checksum verification are passed; Verifying the data integrity of the data to be verified stored in the blockchain according to a preset period, wherein the data to be verified includes the digitally signed firmware upgrade package; Receive and store the upgrade log information fed back by the baseboard management controller node to be upgraded during the firmware upgrade process; Based on the stored upgrade log information, the baseboard management controller upgrade process is audited and compliance checked.

2. The method according to claim 1, characterized in that Also includes: Receiving an upgrade result fed back by the baseboard management controller node to be upgraded after the firmware upgrade is completed; Based on the upgrade result, it is determined whether the baseboard management controller node to be upgraded is successfully upgraded.

3. The method according to claim 2, characterized in that Also includes: If the baseboard management controller node to be upgraded is upgraded successfully, the recorded firmware version information of the baseboard management controller node to be upgraded is updated.

4. The method according to claim 3, characterized in that Also includes: If the baseboard management controller node to be upgraded fails to be upgraded, the failure information is recorded and a rollback mechanism is triggered so that the baseboard management controller node to be upgraded is rolled back to the corresponding recorded firmware version information state.

5. The method according to any one of claims 1 to 4, characterized in that: Also includes: When a new firmware version is detected, determining the improvement information and repair content corresponding to the new firmware version; Determine a firmware upgrade package based on the firmware binary file, firmware checksum, and version information corresponding to the new firmware version; The firmware upgrade package is digitally signed and then stored; The version information is recorded in the firmware version list.

6. The method according to any one of claims 1 to 4, characterized in that: Also includes: Monitor and record the node status and node performance of each baseboard management controller node in the baseboard management controller cluster in real time; When it is determined according to the recorded node status and node performance that a baseboard management controller node is abnormal, alarm information of the baseboard management controller node is generated.

7. The method according to any one of claims 1 to 4, characterized in that: Also includes: Verify the security of the blockchain system according to the preset period.

8. The method according to any one of claims 1 to 4, characterized in that: The preset smart contract includes: Event trigger contract and firmware upgrade contract; The receiving a firmware upgrade request sent by a baseboard management controller node to be upgraded includes: Receive a request sent by a baseboard management controller node to be upgraded, determine that the request is a firmware upgrade request based on the event triggering contract, and send the firmware upgrade request to the firmware upgrade contract; After the verification is passed, sending the digitally signed firmware upgrade package corresponding to the stored target firmware version information to the baseboard management controller node to be upgraded includes: Verifying the firmware upgrade request based on the firmware upgrade contract; If the firmware upgrade request is verified to be successful, the digitally signed firmware upgrade package corresponding to the stored target firmware version information is sent to the baseboard management controller node to be upgraded based on the firmware upgrade contract.

9. A computer program product, characterized in that The computer program product is applied to a blockchain, the blockchain is deployed in a baseboard management controller cluster, and the computer program product includes: An initialization module is used to assign a node identifier to each baseboard management controller node in the baseboard management controller cluster and set the node authority of each baseboard management controller node; based on the privacy protection mechanism, set the node access policy of each baseboard management controller node to be upgraded; set the digital signature of each baseboard management controller node and store it in the registered node digital signature; A receiving module, configured to receive a firmware upgrade request sent by a baseboard management controller node to be upgraded, wherein the firmware upgrade request carries a node identifier, target firmware version information, and authentication information of the baseboard management controller node to be upgraded; the authentication information includes a digital signature of the baseboard management controller node; A verification and upgrade module, used to verify whether the firmware upgrade request is legal based on a preset smart contract; verify whether the baseboard management controller node to be upgraded has the upgrade operation authority based on a preset smart contract; verify whether the target firmware version information exists in the recorded firmware version list based on a preset smart contract; determine whether the digital signature of the baseboard management controller node to be upgraded matches the digital signature of the node registered in the preset smart contract; after the verification is passed, send the digitally signed firmware upgrade package corresponding to the stored target firmware version information to the baseboard management controller node to be upgraded, the digitally signed firmware upgrade package includes a firmware checksum, so that the baseboard management controller node to be upgraded can perform a firmware upgrade based on the digitally signed firmware upgrade package after the digital signature authentication of the digitally signed firmware upgrade package and the firmware checksum verification are passed; A verification module, used to verify the data integrity of the data to be verified stored in the blockchain according to a preset period, wherein the data to be verified includes the digitally signed firmware upgrade package; The receiving module is also used to: receive and store the upgrade log information fed back by the baseboard management controller node to be upgraded during the firmware upgrade process; The audit module is used to audit and check the compliance of the baseboard management controller upgrade process based on the stored upgrade log information.

10. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the baseboard management controller cluster firmware upgrade method according to any one of claims 1 to 8 are implemented.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the baseboard management controller cluster firmware upgrade method according to any one of claims 1 to 8 are implemented.