CN111338676B - BMC (baseboard management controller) firmware upgrading system and method with in-band mode and out-of-band mode - Google Patents
BMC (baseboard management controller) firmware upgrading system and method with in-band mode and out-of-band mode Download PDFInfo
- Publication number
- CN111338676B CN111338676B CN202010125197.7A CN202010125197A CN111338676B CN 111338676 B CN111338676 B CN 111338676B CN 202010125197 A CN202010125197 A CN 202010125197A CN 111338676 B CN111338676 B CN 111338676B
- Authority
- CN
- China
- Prior art keywords
- bmc
- module
- band
- firmware upgrade
- bmc firmware
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000005540 biological transmission Effects 0.000 claims description 51
- 238000013467 fragmentation Methods 0.000 claims description 27
- 238000006062 fragmentation reaction Methods 0.000 claims description 27
- 238000004891 communication Methods 0.000 claims description 9
- 239000012634 fragment Substances 0.000 claims description 6
- 230000003993 interaction Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本发明涉及服务器技术领域,提供一种兼具带内和带外两种方式的BMC固件升级系统及方法,系统包括BMC模块、扩展模块和专用网口;专用网口为BMC模块提供常规的BMC固件带外方式的升级;扩展模块接收主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给BMC模块;BMC模块接收扩展模块转发或透传的BMC固件升级包,同时对接收到的BMC固件升级包进行解析,并执行BMC固件带内升级动作,从而实现兼容带内和带外两种升级BMC固件的方式,并且针对存储系统提供更多可靠性策略,可以使搭载BMC的存储扩展系统同时应用于统一存储系统和服务器系统等,大大提高了设备部署和管理的可靠性和灵活性。
The invention relates to the technical field of servers, and provides a BMC firmware upgrade system and method with both in-band and out-of-band modes. The system includes a BMC module, an expansion module and a dedicated network port; the dedicated network port provides the BMC module with a conventional BMC The firmware is upgraded in out-of-band mode; the extension module receives the BMC firmware upgrade package sent by the host, and forwards or transparently transmits the received BMC firmware upgrade package to the BMC module; the BMC module receives the BMC firmware upgrade package forwarded or transparently transmitted by the extension module At the same time, it analyzes the received BMC firmware upgrade package, and executes the BMC firmware in-band upgrade action, so as to achieve compatibility with in-band and out-of-band upgrade methods for BMC firmware, and provide more reliability policies for the storage system, which can The storage expansion system equipped with BMC is applied to the unified storage system and server system at the same time, which greatly improves the reliability and flexibility of device deployment and management.
Description
技术领域technical field
本发明属于服务器技术领域,尤其涉及一种兼具带内和带外两种方式的BMC固件升级系统及方法。The invention belongs to the technical field of servers, and in particular relates to a BMC firmware upgrade system and method with both in-band and out-of-band modes.
背景技术Background technique
服务器系统中一般应用BMC的专用网口进行FW升级,这种方式为常见的管理和业务分离的带外升级方式。在存储系统中,因存储host端定制OS的原因,更多的采用带内的方式进行设备FW升级。随着服务器和存储业务的发展,两者间的界限越发模糊,特别是存储扩展柜系统,不论是存储主机端还是服务器端都可以应用,这就需要对BMC的FW升级方式提出更多的要求。In the server system, the dedicated network port of the BMC is generally used for FW upgrade. This method is a common out-of-band upgrade method that separates management and services. In the storage system, due to the reason of storing the customized OS on the host side, the device FW upgrade is more often performed in an in-band manner. With the development of server and storage business, the boundaries between the two are becoming more and more blurred, especially the storage expansion cabinet system, which can be applied on both the storage host side and the server side, which requires more requirements for the FW upgrade method of BMC .
目前,盘控一体的存储系统下,BMC挂接在PCH下,作为PCH的一个end point设备,上层OS通过PCH和BMC之间PCIE链路进行带内BMC FW升级。但是在盘控分离场景下,控制柜通过高速线缆(中间只能跑高速SAS或者PCIE)连接存储扩展柜,控制柜的OS只能通过PCIE/SAS链路连接到扩展柜上的SAS Expander、PCIE Switch等扩展器件,无法直接链接扩展柜中的BMC,也无法实现对扩展柜上BMC的带内升级。At present, in the storage system with integrated disk and control, the BMC is attached to the PCH as an end point device of the PCH. The upper-layer OS performs in-band BMC FW upgrade through the PCIE link between the PCH and the BMC. However, in the scenario of disk control separation, the control cabinet is connected to the storage expansion cabinet through high-speed cables (only high-speed SAS or PCIE can run in the middle), and the OS of the control cabinet can only be connected to the SAS Expander and PCIE on the expansion cabinet through the PCIE/SAS link. Expansion devices such as the Switch cannot directly link the BMC in the expansion cabinet, nor can the in-band upgrade of the BMC on the expansion cabinet be implemented.
发明内容SUMMARY OF THE INVENTION
针对现有技术中的缺陷,本发明提供了一种兼具带内和带外两种方式的BMC固件升级系统,旨在解决现有技术中盘控分离的情形下,无法实现BMC固件带内升级的问题。Aiming at the defects in the prior art, the present invention provides a BMC firmware upgrade system with both in-band and out-of-band modes, aiming to solve the problem that the in-band BMC firmware cannot be implemented in the case of disk control separation in the prior art. upgrade problem.
本发明所提供的技术方案是:一种兼具带内和带外两种方式的BMC固件升级系统,包括BMC模块、扩展模块和专用网口;The technical solution provided by the present invention is: a BMC firmware upgrade system with both in-band and out-of-band modes, including a BMC module, an expansion module and a dedicated network port;
所述专用网口,与所述BMC模块连接,用于为所述BMC模块提供常规的BMC固件带外方式的升级;The dedicated network port is connected to the BMC module, and is used to provide the BMC module with a conventional BMC firmware out-of-band mode upgrade;
所述扩展模块,设置在存储系统的板卡上,与主机端host以及所述BMC模块连接,用于接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块;Described expansion module, is arranged on the board card of storage system, is connected with host end host and described BMC module, is used for receiving the BMC firmware upgrade package sent by described host end, and the BMC firmware upgrade package that receives is forwarded or transparently transmitted to the BMC module;
所述BMC模块,设置在存储系统的板卡上,用于接收所述扩展模块转发或透传的BMC固件升级包,同时对接收到的所述BMC固件升级包进行解析,并执行BMC固件带内升级动作;The BMC module is arranged on the board card of the storage system and is used to receive the BMC firmware upgrade package forwarded or transparently transmitted by the expansion module, parse the received BMC firmware upgrade package, and execute the BMC firmware upgrade package. Internal upgrade action;
其中,在所述扩展模块与所述主机端建立带内升级通讯交互前,所述主机端通过所述扩展模块控制关闭所述专用网口,当所述BMC模块执行BMC固件带内升级动作结束时,所述主机端通过所述扩展模块打开所述专用网口,同时,当所述BMC模块执行BMC固件带内升级动作失败时,所述主机端通过所述扩展模块打开所述专用网口的同时,配合所述BMC模块执行BMC固件带外升级动作。Wherein, before the expansion module and the host side establish an in-band upgrade communication interaction, the host side controls and closes the dedicated network port through the expansion module, and when the BMC module executes the BMC firmware in-band upgrade action ends When the host side opens the dedicated network port through the expansion module, and at the same time, when the BMC module fails to perform an in-band upgrade of the BMC firmware, the host side opens the dedicated network port through the expansion module At the same time, the BMC firmware out-of-band upgrade action is performed in cooperation with the BMC module.
作为一种改进的方案,所述扩展模块具体包括:As an improved solution, the expansion module specifically includes:
升级包接收模块,与所述主机端连接,用于接收所述主机端发送的BMC固件升级包;an upgrade package receiving module, connected with the host end, for receiving the BMC firmware upgrade package sent by the host end;
转发模块,与所述升级包接收模块连接,用于将所述升级包接收模块接收到的BMC固件升级包转发给所述BMC模块;a forwarding module, connected with the upgrade package receiving module, for forwarding the BMC firmware upgrade package received by the upgrade package receiving module to the BMC module;
透传模块,与所述升级包接收模块连接,用于将所述升级包接收模块接收到的BMC固件升级包透传给所述BMC模块。The transparent transmission module is connected to the upgrade package receiving module, and is used for transparently transmitting the BMC firmware upgrade package received by the upgrade package receiving module to the BMC module.
作为一种改进的方案,所述扩展模块还包括:As an improved solution, the expansion module further includes:
升级包传输方式确定模块,用于根据所述扩展模块的RAM的空间大小,与所述主机端确定升级包的传输方式,所述传输方式包括一次性传输方式和分片传输方式;an upgrade package transmission mode determination module, configured to determine a transmission mode of the upgrade package with the host according to the size of the RAM of the expansion module, and the transmission mode includes a one-time transmission mode and a fragmented transmission mode;
当采用所述分片传输方式进行BMC固件升级包的传输时,所述主机端还包括一数据包分片模块;When using the fragmentation transmission mode to transmit the BMC firmware upgrade package, the host side further includes a data packet fragmentation module;
所述数据包分片模块,用于根据所述扩展模块的RAM的空间大小,对BMC固件升级包进行分片,生成若干个BMC固件升级分片包。The data packet fragmentation module is configured to fragment the BMC firmware upgrade package according to the space size of the RAM of the expansion module, and generate several BMC firmware upgrade fragmentation packages.
作为一种改进的方案,当所述主机端与所述扩展模块之间采用分片传输方式传输所述BMC固件升级包时,所述BMC模块还包括一分片包拼装模块;As an improved solution, when the BMC firmware upgrade package is transmitted between the host and the expansion module in a fragmented transmission mode, the BMC module further includes a fragmented package assembly module;
所述分片包拼装模块,用于对所述扩展模块转发或透传的若干个所述BMC固件升级分片包进行拼装,生成完整的BMC固件升级包。The fragmentation package assembling module is configured to assemble several of the BMC firmware upgrade fragmentation packages forwarded or transparently transmitted by the expansion module to generate a complete BMC firmware upgrade package.
作为一种改进的方案,所述存储系统的多存储节点的对应的扩展模块之间相互通讯连接;As an improved solution, the corresponding expansion modules of the multiple storage nodes of the storage system are connected in communication with each other;
当其中一个存储节点的带内数据链路出现故障时,正常运行的扩展模块向出现故障的带内数据链路所对应的BMC模块转发BMC固件升级包,出现故障的带内数据链路所对应的BMC模块执行BMC固件升级动作。When the in-band data link of one of the storage nodes fails, the normally running expansion module forwards the BMC firmware upgrade package to the BMC module corresponding to the faulty in-band data link, and the faulty in-band data link corresponds to the BMC firmware upgrade package. The BMC module executes the BMC firmware upgrade action.
本发明的另一目的在于提供一种基于兼具带内和带外两种方式的BMC固件升级系统的兼具带内和带外两种方式的BMC固件升级方法,所述方法包括下述步骤:Another object of the present invention is to provide a BMC firmware upgrade method with both in-band and out-of-band modes based on a BMC firmware upgrade system with both in-band and out-of-band modes, the method comprising the following steps :
主机端通过扩展模块控制关闭所述专用网口;The host side controls and closes the dedicated network port through the expansion module;
扩展模块接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块;The expansion module receives the BMC firmware upgrade package sent by the host, and forwards or transparently transmits the received BMC firmware upgrade package to the BMC module;
BMC模块接收所述扩展模块转发或透传的BMC固件升级包,同时对接收到的所述BMC固件升级包进行解析,并执行BMC固件带内升级动作;The BMC module receives the BMC firmware upgrade package forwarded or transparently transmitted by the expansion module, parses the received BMC firmware upgrade package, and executes the BMC firmware in-band upgrade action;
当所述BMC模块执行BMC固件带内升级动作结束时,所述主机端通过所述扩展模块打开所述专用网口;When the BMC firmware in-band upgrade action performed by the BMC module ends, the host side opens the dedicated network port through the expansion module;
当所述BMC模块执行BMC固件带内升级动作失败时,所述主机端通过所述扩展模块打开所述专用网口的同时,配合所述BMC模块执行BMC固件带外升级动作。When the BMC module fails to perform an in-band upgrade of the BMC firmware, the host side cooperates with the BMC module to perform an out-of-band upgrade of the BMC firmware while opening the dedicated network port through the expansion module.
作为一种改进的方案,所述扩展模块接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块的步骤具体包括下述步骤:As an improved solution, the step of receiving the BMC firmware upgrade package sent by the host side by the expansion module, and forwarding or transparently transmitting the received BMC firmware upgrade package to the BMC module specifically includes the following steps:
升级包接收模块接收所述主机端发送的BMC固件升级包;The upgrade package receiving module receives the BMC firmware upgrade package sent by the host;
转发模块将所述升级包接收模块接收到的BMC固件升级包转发给所述BMC模块;The forwarding module forwards the BMC firmware upgrade package received by the upgrade package receiving module to the BMC module;
透传模块将所述升级包接收模块接收到的BMC固件升级包透传给所述BMC模块。The transparent transmission module transparently transmits the BMC firmware upgrade package received by the upgrade package receiving module to the BMC module.
作为一种改进的方案,所述方法还包括下述步骤:As a kind of improved scheme, described method also comprises the following steps:
根据所述扩展模块的RAM的空间大小,升级包传输方式确定模块与所述主机端确定升级包的传输方式,所述传输方式包括一次性传输方式和分片传输方式;According to the space size of the RAM of the expansion module, the upgrade package transmission mode determination module and the host side determine the upgrade package transmission mode, and the transmission mode includes a one-time transmission mode and a fragmented transmission mode;
当采用所述分片传输方式进行BMC固件升级包的传输时,所述主机端还的数据包分片模块根据所述扩展模块的RAM的空间大小,对BMC固件升级包进行分片,生成若干个BMC固件升级分片包。When the BMC firmware upgrade package is transmitted in the fragmented transmission mode, the data packet fragmentation module on the host side fragments the BMC firmware upgrade package according to the size of the RAM of the expansion module, and generates several A BMC firmware upgrade shard package.
作为一种改进的方案,当所述主机端与所述扩展模块之间采用分片传输方式传输所述BMC固件升级包时,所述方法还包括下述步骤:As an improved solution, when the BMC firmware upgrade package is transmitted between the host and the expansion module in a fragmented transmission mode, the method further includes the following steps:
分片包拼装模块对所述扩展模块转发或透传的若干个所述BMC固件升级分片包进行拼装,生成完整的BMC固件升级包。The fragmentation package assembling module assembles several of the BMC firmware upgrade fragmentation packages forwarded or transparently transmitted by the expansion module to generate a complete BMC firmware upgrade package.
作为一种改进的方案,所述方法还包括下述步骤:As a kind of improved scheme, described method also comprises the following steps:
所述存储系统的多存储节点的对应的扩展模块之间相互通讯连接,当其中一个存储节点的带内数据链路出现故障时,正常运行的扩展模块向出现故障的带内数据链路所对应的BMC模块转发BMC固件升级包,出现故障的带内数据链路所对应的BMC模块执行BMC固件升级动作。Corresponding expansion modules of the multiple storage nodes of the storage system are connected to each other for communication, and when the in-band data link of one of the storage nodes fails, the expansion module that operates normally corresponds to the failed in-band data link. The BMC module forwards the BMC firmware upgrade package, and the BMC module corresponding to the faulty in-band data link executes the BMC firmware upgrade action.
在本发明实施例中,兼具带内和带外两种方式的BMC固件升级系统包括BMC模块、扩展模块和专用网口;所述专用网口,与所述BMC模块连接,用于为所述BMC模块提供常规的BMC固件带外方式的升级;所述扩展模块,设置在存储系统的板卡上,与主机端host以及所述BMC模块连接,用于接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块;所述BMC模块,设置在存储系统的板卡上,用于接收所述扩展模块转发或透传的BMC固件升级包,同时对接收到的所述BMC固件升级包进行解析,并执行BMC固件带内升级动作,从而实现兼容带内和带外两种升级BMC固件的方式,并且针对存储系统提供更多可靠性策略,可以使搭载BMC的存储扩展系统同时应用于统一存储系统和服务器系统等,大大提高了设备部署和管理的可靠性和灵活性。In the embodiment of the present invention, the BMC firmware upgrade system with both in-band and out-of-band modes includes a BMC module, an extension module, and a dedicated network port; the dedicated network port is connected to the BMC module and is used for all Described BMC module provides the upgrade of conventional BMC firmware out-of-band mode; Described expansion module, is arranged on the board card of storage system, is connected with host end host and described BMC module, is used for receiving the BMC firmware that described host end sends upgrade package, and forward or transparently transmit the received BMC firmware upgrade package to the BMC module; the BMC module is set on the board card of the storage system and is used to receive the BMC firmware forwarded or transparently transmitted by the expansion module upgrade package, parse the received BMC firmware upgrade package at the same time, and execute the BMC firmware in-band upgrade action, so as to be compatible with both in-band and out-of-band upgrade methods of BMC firmware, and provide more reliable and reliable storage systems. It can make the storage expansion system equipped with BMC apply to the unified storage system and server system at the same time, which greatly improves the reliability and flexibility of device deployment and management.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍。在所有附图中,类似的元件或部分一般由类似的附图标记标识。附图中,各元件或部分并不一定按照实际的比例绘制。In order to illustrate the specific embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that are required to be used in the description of the specific embodiments or the prior art. Similar elements or parts are generally identified by similar reference numerals throughout the drawings. In the drawings, each element or section is not necessarily drawn to actual scale.
图1是本发明提供的兼具带内和带外两种方式的BMC固件升级系统的结构框图;Fig. 1 is the structural block diagram of the BMC firmware upgrade system of both in-band and out-of-band modes provided by the present invention;
图2是本发明提供的扩展模块的结构框图;Fig. 2 is the structural block diagram of the expansion module provided by the present invention;
图3是本发明提供的兼具带内和带外两种方式的BMC固件升级方法的实现流程图;Fig. 3 is the realization flow chart of the BMC firmware upgrade method of both in-band and out-of-band modes provided by the present invention;
图4是本发明提供的扩展模块接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块的实现流程图。Fig. 4 is the realization flow chart that the expansion module provided by the present invention receives the BMC firmware upgrade package sent by the host, and forwards or transparently transmits the received BMC firmware upgrade package to the BMC module.
具体实施方式Detailed ways
下面将结合附图对本发明技术方案的实施例进行详细的描述。以下实施例仅用于更加清楚地说明本发明的、技术方案,因此只作为示例,而不能以此来限制本发明的保护范围。Embodiments of the technical solutions of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are only used to more clearly illustrate the technical solutions of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.
图1是本发明提供的兼具带内和带外两种方式的BMC固件升级系统的结构框图,为了便于说明,图中仅给出了与本发明实施例相关的部分。FIG. 1 is a structural block diagram of a BMC firmware upgrade system with both in-band and out-of-band modes provided by the present invention. For convenience of description, only the parts related to the embodiments of the present invention are shown in the figure.
兼具带内和带外两种方式的BMC固件升级系统包括包括BMC模块、扩展模块和专用网口;The BMC firmware upgrade system with both in-band and out-of-band modes includes BMC modules, expansion modules and dedicated network ports;
所述专用网口,与所述BMC模块连接,用于为所述BMC模块提供常规的BMC固件带外方式的升级;The dedicated network port is connected to the BMC module, and is used to provide the BMC module with a conventional BMC firmware out-of-band mode upgrade;
所述扩展模块,设置在存储系统的板卡上,与主机端host以及所述BMC模块连接,用于接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块;Described expansion module, is arranged on the board card of storage system, is connected with host end host and described BMC module, is used for receiving the BMC firmware upgrade package sent by described host end, and the BMC firmware upgrade package that receives is forwarded or transparently transmitted to the BMC module;
所述BMC模块,设置在存储系统的板卡上,用于接收所述扩展模块转发或透传的BMC固件升级包,同时对接收到的所述BMC固件升级包进行解析,并执行BMC固件带内升级动作;The BMC module is arranged on the board card of the storage system and is used to receive the BMC firmware upgrade package forwarded or transparently transmitted by the expansion module, parse the received BMC firmware upgrade package, and execute the BMC firmware upgrade package. Internal upgrade action;
其中,在所述扩展模块与所述主机端建立带内升级通讯交互前,所述主机端通过所述扩展模块控制关闭所述专用网口,当所述BMC模块执行BMC固件带内升级动作结束时,所述主机端通过所述扩展模块打开所述专用网口,同时,当所述BMC模块执行BMC固件带内升级动作失败时,所述主机端通过所述扩展模块打开所述专用网口的同时,配合所述BMC模块执行BMC固件带外升级动作。Wherein, before the expansion module and the host side establish an in-band upgrade communication interaction, the host side controls and closes the dedicated network port through the expansion module, and when the BMC module executes the BMC firmware in-band upgrade action ends When the host side opens the dedicated network port through the expansion module, and at the same time, when the BMC module fails to perform an in-band upgrade of the BMC firmware, the host side opens the dedicated network port through the expansion module At the same time, the BMC firmware out-of-band upgrade action is performed in cooperation with the BMC module.
在该实施例中,主机端与该扩展模块之间通过SAS或PCIE高速链路进行交互通讯,BMC模块与扩展模块之间通过GE、I2C或URAT链路进行通讯交互,包括BMC固件升级包的转发或透传等,该通讯交互的数据包括管理数据和业务数据。In this embodiment, the host side communicates with the expansion module through a SAS or PCIE high-speed link, and the BMC module and the expansion module communicate through a GE, I2C or URAT link, including the BMC firmware upgrade package. Forwarding or transparent transmission, etc., the data exchanged in this communication includes management data and business data.
在本发明实施例中,如图2所示,扩展模块具体包括:In the embodiment of the present invention, as shown in FIG. 2 , the expansion module specifically includes:
升级包接收模块,与所述主机端连接,用于接收所述主机端发送的BMC固件升级包;an upgrade package receiving module, connected with the host end, for receiving the BMC firmware upgrade package sent by the host end;
转发模块,与所述升级包接收模块连接,用于将所述升级包接收模块接收到的BMC固件升级包转发给所述BMC模块;a forwarding module, connected with the upgrade package receiving module, for forwarding the BMC firmware upgrade package received by the upgrade package receiving module to the BMC module;
透传模块,与所述升级包接收模块连接,用于将所述升级包接收模块接收到的BMC固件升级包透传给所述BMC模块;a transparent transmission module, connected to the upgrade package receiving module, for transparently transmitting the BMC firmware upgrade package received by the upgrade package receiving module to the BMC module;
在该实施例中,该转发模块和透传模块两个功能兼具,择其一进行BMC固件升级包的传输,在此不再赘述。In this embodiment, the forwarding module and the transparent transmission module have both functions, and one of them is selected to transmit the BMC firmware upgrade package, which will not be repeated here.
在该实施例中,结合图2所示,扩展模块还包括:In this embodiment, as shown in FIG. 2 , the expansion module further includes:
升级包传输方式确定模块,用于根据所述扩展模块的RAM的空间大小,与所述主机端确定升级包的传输方式,所述传输方式包括一次性传输方式和分片传输方式;an upgrade package transmission mode determination module, configured to determine a transmission mode of the upgrade package with the host according to the size of the RAM of the expansion module, and the transmission mode includes a one-time transmission mode and a fragmented transmission mode;
当采用所述分片传输方式进行BMC固件升级包的传输时,所述主机端还包括一数据包分片模块;When using the fragmentation transmission mode to transmit the BMC firmware upgrade package, the host side further includes a data packet fragmentation module;
所述数据包分片模块,用于根据所述扩展模块的RAM的空间大小,对BMC固件升级包进行分片,生成若干个BMC固件升级分片包。The data packet fragmentation module is configured to fragment the BMC firmware upgrade package according to the space size of the RAM of the expansion module, and generate several BMC firmware upgrade fragmentation packages.
在该实施例中,当所述主机端与所述扩展模块之间采用分片传输方式传输所述BMC固件升级包时,所述BMC模块还包括一分片包拼装模块;In this embodiment, when the BMC firmware upgrade package is transmitted between the host and the expansion module in a fragmented transmission mode, the BMC module further includes a fragmented package assembly module;
所述分片包拼装模块,用于对所述扩展模块转发或透传的若干个所述BMC固件升级分片包进行拼装,生成完整的BMC固件升级包。The fragmentation package assembling module is configured to assemble several of the BMC firmware upgrade fragmentation packages forwarded or transparently transmitted by the expansion module to generate a complete BMC firmware upgrade package.
其中,BMC固件升级包的大小一般是32MB左右,该扩展模块视自身RAM大小决定是否与主机HOST端进行BMC FW升级包的分片传输:若扩展模块RAM太小,则将BMC FW升级包分片传输给BMC模块,BMC模块接收到所有分片包后首先进行数据包拼接再进行自身FW升级;若扩展模块RAM足够大,则扩展模块一次性接收主机HOST端的BMC FW升级包后发送给BMC进行自身FW升级。Among them, the size of the BMC firmware upgrade package is generally about 32MB. The expansion module decides whether to perform fragmented transmission of the BMC FW upgrade package with the host HOST according to its own RAM size: if the expansion module RAM is too small, the BMC FW upgrade package will be divided into The slices are transmitted to the BMC module. After the BMC module receives all the sliced packets, it first performs data packet splicing and then upgrades its own FW; if the expansion module RAM is large enough, the expansion module receives the BMC FW upgrade package from the host HOST at one time and sends it to the BMC Upgrade your own FW.
在本发明实施例中,扩展模块与主机端的交互,实现BMC固件的带内升级,而专用网口的设置实现BMC固件的带外升级,为用户提供便利,提升产品品质,也提升服务器运行稳定性和可靠性。In the embodiment of the present invention, the interaction between the expansion module and the host side realizes the in-band upgrade of the BMC firmware, and the setting of the dedicated network port realizes the out-of-band upgrade of the BMC firmware, which provides convenience for users, improves product quality, and improves the stability of server operation. sturdiness and reliability.
在本发明实施例中,存储系统的多存储节点的对应的扩展模块之间相互通讯连接;In the embodiment of the present invention, the corresponding expansion modules of the multiple storage nodes of the storage system are connected in communication with each other;
当其中一个存储节点的带内数据链路出现故障时,正常运行的扩展模块向出现故障的带内数据链路所对应的BMC模块转发BMC固件升级包,出现故障的带内数据链路所对应的BMC模块执行BMC固件升级动作;When the in-band data link of one of the storage nodes fails, the normally running expansion module forwards the BMC firmware upgrade package to the BMC module corresponding to the faulty in-band data link, and the faulty in-band data link corresponds to the BMC firmware upgrade package. The BMC module executes the BMC firmware upgrade action;
该存储节点的扩展模块之间通过GE、NTB等链路进行相互交互通讯,该设置可以在其中一个存储节点的扩展模块与BMC模块间出现数据链路异常或其他异常时,扩展模块之间进行BMC FW升级包转发,提高了升级BMC FW的可靠性。The expansion modules of the storage node communicate with each other through GE, NTB and other links. This setting can be used when a data link abnormality or other abnormality occurs between the expansion module of one of the storage nodes and the BMC module. BMC FW upgrade package forwarding improves the reliability of BMC FW upgrade.
在本发明实施例中,结合图1所示,该兼具带内和带外两种方式的BMC固件升级系统还包括串口模块、无线模块和指示模块,其中:In the embodiment of the present invention, as shown in FIG. 1 , the BMC firmware upgrade system with both in-band and out-of-band modes also includes a serial port module, a wireless module and an indication module, wherein:
串口模块,用于实现BMC模块与外界设备之间的信息交互;The serial port module is used to realize the information exchange between the BMC module and external devices;
无线模块,与所述串口模块连接,用于可将串口模块信号转换成WIFI等无线信号,外界设备不用实体串口线就可与BMC模块进行信息交互,当然,多存储节点间的BMC模块也可通过该无线模块进行数据互联,在此不再赘述;The wireless module is connected to the serial port module, and is used to convert the serial port module signal into wireless signals such as WIFI. External devices can exchange information with the BMC module without a physical serial port cable. Of course, the BMC module between multiple storage nodes can also be used. Data interconnection is carried out through the wireless module, which will not be repeated here;
指示模块:设置在板卡上,受串口模块的直接控制,对外指示当前BMC模块的FW升级状态。Indication module: set on the board, directly controlled by the serial port module, and externally indicates the FW upgrade status of the current BMC module.
当然,该兼具带内和带外两种方式的BMC固件升级系统还包括其他模块结构,在此不再赘述。Of course, the BMC firmware upgrade system with both in-band and out-of-band modes also includes other module structures, which will not be repeated here.
图3示出了本发明提供的兼具带内和带外两种方式的BMC固件升级方法的实现流程图,其具体包括下述步骤:Fig. 3 shows the realization flow chart of the BMC firmware upgrade method with both in-band and out-of-band modes provided by the present invention, which specifically includes the following steps:
在步骤S101中,主机端通过扩展模块控制关闭所述专用网口;In step S101, the host side controls and closes the dedicated network port through the expansion module;
在步骤S102中,扩展模块接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块;In step S102, the expansion module receives the BMC firmware upgrade package sent by the host, and forwards or transparently transmits the received BMC firmware upgrade package to the BMC module;
在步骤S103中,BMC模块接收所述扩展模块转发或透传的BMC固件升级包,同时对接收到的所述BMC固件升级包进行解析,并执行BMC固件带内升级动作;In step S103, the BMC module receives the BMC firmware upgrade package forwarded or transparently transmitted by the expansion module, parses the received BMC firmware upgrade package, and executes the BMC firmware in-band upgrade action;
在步骤S104中,当所述BMC模块执行BMC固件带内升级动作结束时,所述主机端通过所述扩展模块打开所述专用网口;In step S104, when the BMC firmware in-band upgrade action performed by the BMC module ends, the host side opens the dedicated network port through the expansion module;
在步骤S105中,当所述BMC模块执行BMC固件带内升级动作失败时,所述主机端通过所述扩展模块打开所述专用网口的同时,配合所述BMC模块执行BMC固件带外升级动作。In step S105, when the BMC module fails to perform an in-band upgrade of the BMC firmware, the host side cooperates with the BMC module to perform an out-of-band upgrade of the BMC firmware while opening the dedicated network port through the expansion module. .
在该实施例中,如图4所示,扩展模块接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块的步骤具体包括下述步骤:In this embodiment, as shown in FIG. 4 , the step of the expansion module receiving the BMC firmware upgrade package sent by the host, and forwarding or transparently transmitting the received BMC firmware upgrade package to the BMC module specifically includes the following steps: step:
在步骤S201中,升级包接收模块接收所述主机端发送的BMC固件升级包;In step S201, the upgrade package receiving module receives the BMC firmware upgrade package sent by the host;
在步骤S202中,转发模块将所述升级包接收模块接收到的BMC固件升级包转发给所述BMC模块;In step S202, the forwarding module forwards the BMC firmware upgrade package received by the upgrade package receiving module to the BMC module;
在步骤S203中,透传模块将所述升级包接收模块接收到的BMC固件升级包透传给所述BMC模块。In step S203, the transparent transmission module transparently transmits the BMC firmware upgrade package received by the upgrade package receiving module to the BMC module.
在该实施例中,根据所述扩展模块的RAM的空间大小,升级包传输方式确定模块与所述主机端确定升级包的传输方式,所述传输方式包括一次性传输方式和分片传输方式;In this embodiment, according to the space size of the RAM of the expansion module, the upgrade package transmission mode determination module and the host side determine the upgrade package transmission mode, and the transmission mode includes a one-time transmission mode and a fragmented transmission mode;
当采用所述分片传输方式进行BMC固件升级包的传输时,所述主机端还的数据包分片模块根据所述扩展模块的RAM的空间大小,对BMC固件升级包进行分片,生成若干个BMC固件升级分片包。When the BMC firmware upgrade package is transmitted in the fragmented transmission mode, the data packet fragmentation module on the host side fragments the BMC firmware upgrade package according to the size of the RAM of the expansion module, and generates several A BMC firmware upgrade shard package.
在本发明实施例中,当所述主机端与所述扩展模块之间采用分片传输方式传输所述BMC固件升级包时,所述方法还包括下述步骤:In the embodiment of the present invention, when the BMC firmware upgrade package is transmitted between the host and the expansion module in a fragmented transmission mode, the method further includes the following steps:
分片包拼装模块对所述扩展模块转发或透传的若干个所述BMC固件升级分片包进行拼装,生成完整的BMC固件升级包。The fragmentation package assembling module assembles several of the BMC firmware upgrade fragmentation packages forwarded or transparently transmitted by the expansion module to generate a complete BMC firmware upgrade package.
在本发明实施例中,所述存储系统的多存储节点的对应的扩展模块之间相互通讯连接,当其中一个存储节点的带内数据链路出现故障时,正常运行的扩展模块向出现故障的带内数据链路所对应的BMC模块转发BMC固件升级包,出现故障的带内数据链路所对应的BMC模块执行BMC固件升级动作。In the embodiment of the present invention, the corresponding expansion modules of the multiple storage nodes of the storage system are connected to each other for communication, and when the in-band data link of one of the storage nodes fails, the expansion module that is running normally will be sent to the faulty expansion module. The BMC module corresponding to the in-band data link forwards the BMC firmware upgrade package, and the BMC module corresponding to the faulty in-band data link executes the BMC firmware upgrade action.
在本发明实施例中,兼具带内和带外两种方式的BMC固件升级系统包括BMC模块、扩展模块和专用网口;所述专用网口,与所述BMC模块连接,用于为所述BMC模块提供常规的BMC固件带外方式的升级;所述扩展模块,设置在存储系统的板卡上,与主机端host以及所述BMC模块连接,用于接收所述主机端发送的BMC固件升级包,并将接收到的BMC固件升级包转发或透传给所述BMC模块;所述BMC模块,设置在存储系统的板卡上,用于接收所述扩展模块转发或透传的BMC固件升级包,同时对接收到的所述BMC固件升级包进行解析,并执行BMC固件带内升级动作,从而实现兼容带内和带外两种升级BMC固件的方式,并且针对存储系统提供更多可靠性策略,可以使搭载BMC的存储扩展系统同时应用于统一存储系统和服务器系统等,大大提高了设备部署和管理的可靠性和灵活性。In the embodiment of the present invention, the BMC firmware upgrade system with both in-band and out-of-band modes includes a BMC module, an extension module, and a dedicated network port; the dedicated network port is connected to the BMC module and is used for all Described BMC module provides the upgrade of conventional BMC firmware out-of-band mode; Described expansion module, is arranged on the board card of storage system, is connected with host end host and described BMC module, is used for receiving the BMC firmware that described host end sends upgrade package, and forward or transparently transmit the received BMC firmware upgrade package to the BMC module; the BMC module is set on the board card of the storage system and is used to receive the BMC firmware forwarded or transparently transmitted by the expansion module upgrade package, parse the received BMC firmware upgrade package at the same time, and execute the BMC firmware in-band upgrade action, so as to be compatible with both in-band and out-of-band upgrade methods of BMC firmware, and provide more reliable and reliable storage systems. It can make the storage expansion system equipped with BMC apply to the unified storage system and server system at the same time, which greatly improves the reliability and flexibility of device deployment and management.
以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围,其均应涵盖在本发明的权利要求和说明书的范围当中。The above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that the foregoing embodiments can still be used for The technical solutions described in the examples are modified, or some or all of the technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and all of them should cover within the scope of the claims and description of the invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010125197.7A CN111338676B (en) | 2020-02-27 | 2020-02-27 | BMC (baseboard management controller) firmware upgrading system and method with in-band mode and out-of-band mode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010125197.7A CN111338676B (en) | 2020-02-27 | 2020-02-27 | BMC (baseboard management controller) firmware upgrading system and method with in-band mode and out-of-band mode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111338676A CN111338676A (en) | 2020-06-26 |
CN111338676B true CN111338676B (en) | 2022-08-02 |
Family
ID=71181961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010125197.7A Active CN111338676B (en) | 2020-02-27 | 2020-02-27 | BMC (baseboard management controller) firmware upgrading system and method with in-band mode and out-of-band mode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111338676B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US12332831B2 (en) | 2020-06-18 | 2025-06-17 | Samsung Electronics Co., Ltd. | Systems and methods for communications within a storage chassis using in-band data and out-of-band data |
CN112256300B (en) * | 2020-10-19 | 2024-09-17 | 曙光信息产业(北京)有限公司 | Method and device for managing server in band, electronic equipment and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105094916A (en) * | 2015-08-10 | 2015-11-25 | 深圳市中兴物联科技有限公司 | Method and device for wireless firmware upgrading expansion based on module |
CN109992287A (en) * | 2019-04-11 | 2019-07-09 | 苏州浪潮智能科技有限公司 | A kind of firmware upgrade method, system, equipment and medium |
CN110474791A (en) * | 2018-05-11 | 2019-11-19 | 上海智峥科技有限公司 | Multi-core network device firmware upgrade method and its device |
-
2020
- 2020-02-27 CN CN202010125197.7A patent/CN111338676B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105094916A (en) * | 2015-08-10 | 2015-11-25 | 深圳市中兴物联科技有限公司 | Method and device for wireless firmware upgrading expansion based on module |
CN110474791A (en) * | 2018-05-11 | 2019-11-19 | 上海智峥科技有限公司 | Multi-core network device firmware upgrade method and its device |
CN109992287A (en) * | 2019-04-11 | 2019-07-09 | 苏州浪潮智能科技有限公司 | A kind of firmware upgrade method, system, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN111338676A (en) | 2020-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10983731B2 (en) | Packet forwarding method, device, and system in non-volatile memory express over fabric | |
US7904744B2 (en) | Data storage using multiple protocols | |
US7827442B2 (en) | Shelf management controller with hardware/software implemented dual redundant configuration | |
US9331870B2 (en) | Switch, information processing apparatus, and information processing system | |
US7525957B2 (en) | Input/output router for storage networks | |
CN111309659B (en) | A LoRa multi-channel communication expansion method based on pluggable modules | |
US8953438B2 (en) | Multiple source virtual link reversion in safety critical switched networks | |
CN111919402B (en) | Optical communication device, optical line terminal and optical communication processing method | |
US9742698B2 (en) | Switch and setting method | |
CN111338676B (en) | BMC (baseboard management controller) firmware upgrading system and method with in-band mode and out-of-band mode | |
CN115277348B (en) | Server management method, server and server management system | |
CN102571450A (en) | Port configuration method and device of network interface module and frame communication device | |
KR20190068633A (en) | Mobile device external controller module | |
CN102820986A (en) | Self-adaptation method, device and network equipment for working mode of fiber channel interface | |
US9755892B2 (en) | Integrated device managment over Ethernet network | |
CN111431668B (en) | Baud rate switching method based on multi-node UART communication, air conditioning system and processor | |
US10235045B2 (en) | Storage system and control apparatus | |
CN119402304B (en) | Communication board card and storage system | |
CN119402367B (en) | Topology network updating method and device, storage medium and electronic device | |
US11876555B2 (en) | Failure determination system and failure determination method | |
WO2016204777A1 (en) | Network communications | |
CN107038079B (en) | Communication control system | |
CN116016326A (en) | Switch traffic transmission method, device, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |