A link failure early warning method and server for a Fibre Channel bus adapter

By introducing an in-band and out-of-band processor communication mechanism into the server, the link data of the Fibre Channel bus adapter is acquired and analyzed, solving the problem of failure to monitor Fibre Channel bus adapter link faults in real time, and achieving efficient fault early warning and resource saving.

CN117896238BActive Publication Date: 2026-11-17XFUSION DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410122836.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-29
Publication Date
2026-11-17
Estimated Expiration
2044-01-29

AI Technical Summary

Technical Problem

In existing technologies, link failures in Fibre Channel bus adapters cannot be effectively monitored in real time or given early warning of sub-health conditions, resulting in significant impacts and losses on core business operations.

Method used

By acquiring link data transmission information from the Fibre Channel bus adapter in the server's in-band processor and sending it to the out-of-band processor for analysis, the consumption of server CPU and memory resources is reduced, enabling early warning of link failures.

Benefits of technology

It enables real-time monitoring and sub-health warning of Fibre Channel bus adapter links, reducing the consumption of server resources and improving the stability and reliability of services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117896238B_ABST
    Figure CN117896238B_ABST
Patent Text Reader

Abstract

A method for predicting link failures in a Fibre Channel bus adapter, applied to a server, includes: an in-band processor of the server acquiring data transmission information of the Fibre Channel bus adapter link within the operating system; the data transmission information including the amount of data transmitted by the Fibre Channel bus adapter and the amount of data experiencing data transmission failures; the in-band processor sending the data transmission information of the Fibre Channel bus adapter link to an out-of-band processor of the server; and the out-of-band processor determining link failure prediction information of the Fibre Channel bus adapter based on the data transmission information of the Fibre Channel bus adapter link. Sending the parameter information of the FC HBA card link acquired in the in-band OS to the out-of-band processor for processing reduces the consumption of server in-band processor and memory resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of server technology, and in particular to a link failure early warning method and server for a Fibre Channel bus adapter. Background Technology

[0002] Storage Area Network (SAN) is a network that connects network storage devices and servers to provide data transmission between computers and storage devices. Fibre Channel (FC) SAN storage architecture is increasingly widely used due to its high transmission efficiency, high security, extremely low transmission latency, low host resource consumption, and mature technology. The FC bus adapter (HBA) on the server is a key component in the FC SAN network architecture.

[0003] As more and more services demand higher bandwidth and lower I / O latency, the need for real-time monitoring and early warning of sub-health issues in FC SAN network links is increasing. Key database services frequently experience problems such as excessively rapid increases in HBA card link errors or packet corruption, and optical module attenuation, which impact core operations. Often, these issues occur without prior warning, leading to significant losses. Summary of the Invention

[0004] This application provides a link fault early warning method and server for a Fibre Channel bus adapter, which sends the data transmission information of the FC HBA card link obtained from the in-band OS to the BMC for processing, thereby reducing the consumption of server CPU and memory resources.

[0005] In a first aspect, embodiments of this application provide a link fault early warning method for a Fibre Channel bus adapter, applied to a server. The method includes: an in-band processor of the server acquiring data transmission information of the Fibre Channel bus adapter link within the operating system; the data transmission information includes the amount of data transmitted by the Fibre Channel bus adapter and the amount of data in which a data transmission fault has occurred; the in-band processor sending the data transmission information of the Fibre Channel bus adapter link to an out-of-band processor of the server; and the out-of-band processor determining link fault early warning information of the Fibre Channel bus adapter based on the data transmission information of the Fibre Channel bus adapter link.

[0006] In this solution, data transmission information of the Fibre Channel bus adapter links is acquired within the OS and then sent to the out-of-band processor. Upon receiving this data transmission information, the out-of-band processor analyzes the received link parameters and provides link fault warnings, facilitating unified management of the Fibre Channel bus adapters. Furthermore, sending the data transmission information from the in-band OS to the out-of-band processor reduces the consumption of server in-band processor and memory resources.

[0007] In one possible example, the server's in-band processor obtains the Fibre Channel bus adapter's link data transmission information within the operating system, including: the server's in-band processor obtains the Fibre Channel bus adapter's link data transmission information in the first directory of the operating system; the first directory stores information about the device nodes on the Fibre Channel bus in the server host.

[0008] In other words, the link data information of the Fibre Channel bus adapter is stored in the server's memory. When retrieving the link data information of the Fibre Channel bus adapter, it can be obtained by accessing the storage directory (first directory) of the Fibre Channel bus adapter in the server's operating system.

[0009] In one possible example, before the in-band processor of the server obtains the link data transmission information of the Fibre Channel bus adapter within the operating system, the method further includes: an out-of-band processor receiving parameter configuration information, the parameter configuration information being used to instruct the in-band processor on the rules for obtaining the link data transmission information of the Fibre Channel bus adapter; and the out-of-band processor sending the parameter configuration information to the in-band processor so that the in-band processor obtains the link data transmission information of the Fibre Channel bus adapter according to the parameter configuration information.

[0010] In other words, before the server's in-band processor obtains the Fibre Channel bus adapter's link data transmission information within the operating system, the operations and maintenance personnel can configure the Fibre Channel bus adapter's link parameter configuration information and send it to the in-band processor through the out-of-band processor, thus realizing the dynamic configuration of the Fibre Channel bus adapter's link parameter configuration information.

[0011] In one possible example, the parameter information includes one or more of the following: the period for acquiring data transmission information, the time interval for acquiring data transmission information, and the method for acquiring data transmission information.

[0012] In other words, when configuring the link parameters of the Fibre Channel bus adapter, information such as the period for obtaining data transmission information, the time interval for obtaining data transmission information, and the method for obtaining data transmission information can be configured.

[0013] In one possible implementation, the in-band processor of the server obtains data transmission information of the Fibre Channel bus adapter link within the operating system, including: the in-band processor receiving first information sent by the out-of-band processor, the first information indicating the acquisition of data transmission information of the Fibre Channel bus adapter link; and the in-band processor acquiring the data transmission information of the Fibre Channel bus adapter link in response to the received first information.

[0014] In other words, when it is necessary to obtain data transmission information of the Fibre Channel bus adapter link, the out-of-band processor can send information to the in-band processor to obtain the data transmission information of the Fibre Channel bus adapter link from the in-band processor.

[0015] In one possible implementation, the server's in-band processor acquires data transmission information of the Fibre Channel bus adapter link within the operating system, including: the in-band processor receiving second information sent by the out-of-band processor, the second information carrying a second time; and the in-band processor acquiring the data transmission information of the Fibre Channel bus adapter link at a period of the second time.

[0016] In other words, the period for the in-band processor to obtain the data transmission information of the Fibre Channel bus adapter link can be preset by the out-of-band processor, and the preset period can be sent to the in-band processor so that the in-band processor can periodically obtain the data transmission information of the Fibre Channel bus adapter link according to the preset period.

[0017] In one possible implementation, the amount of data transmitted by the Fibre Channel bus adapter includes: the number of bytes sent and the number of bytes received; based on the data transmission information of the Fibre Channel bus adapter link, the out-of-band processor determines the Fibre Channel bus adapter link fault warning information, including: the out-of-band processor determines the average traffic of data packets sent by the Fibre Channel bus adapter port in the first time period according to the number of bytes sent by the Fibre Channel bus adapter port in the first time period, compares the average traffic of sent data packets with a preset first traffic threshold, and generates a first alarm message if the average traffic of sent data packets is greater than the first traffic threshold, the first alarm message indicating that the port traffic of the Fibre Channel bus adapter is too high; or, the out-of-band processor determines the average traffic of data packets received by the Fibre Channel bus adapter port in the first time period according to the number of bytes received by the Fibre Channel bus adapter port in the first time period, compares the average traffic of received data packets with a preset second traffic threshold, and generates a first alarm message if the average traffic of sent data packets is greater than the second traffic threshold.

[0018] In other words, the out-of-band processor can analyze the amount of data transmitted by the Fibre Channel bus adapter to obtain the port traffic information of the Fibre Channel bus adapter. By comparing the obtained port traffic information with a preset port traffic threshold, it can determine whether the port traffic of the Fibre Channel bus adapter is too high. If the port traffic of the Fibre Channel bus adapter is too high, the out-of-band processor can generate an alarm message to monitor the port traffic of the Fibre Channel bus adapter.

[0019] In one possible implementation, the amount of data transmitted by the Fibre Channel bus adapter includes: the number of received frames; the amount of data where the Fibre Channel bus adapter experiences data transmission failures includes: the number of error frames, the number of cyclic redundancy check (CRC) error frames, and the number of decoding error frames; based on the data transmission information of the Fibre Channel bus adapter link, the out-of-band processor determines the Fibre Channel bus adapter link failure warning information, including: the out-of-band processor determines a first bit error rate (BER) of the Fibre Channel bus adapter port based on the number of received frames and error frames received by the Fibre Channel bus adapter port within a first time period, compares the first BER with a first BER threshold, and generates a second alarm message if the first BER is greater than the first BER threshold. The second alarm message is used... The out-of-band processor determines the second bit error rate (BER) of the Fibre Channel bus adapter port based on the number of received frames and CRC error frames received by the port within a first time period. It then compares the second BER with a second BER threshold and generates a second alarm message if the second BER exceeds the threshold. Alternatively, the out-of-band processor determines the third BER of the Fibre Channel bus adapter port based on the number of received frames and decoded error frames received by the port within a first time period. It then compares the third BER with a third BER threshold and generates a second alarm message if the third BER exceeds the threshold.

[0020] In other words, the out-of-band processor can statistically analyze the amount of data transmitted by the Fibre Channel bus adapter and the amount of data transmission failures that occur in the Fibre Channel bus adapter, obtaining the bit error rate (BER) caused by erroneous frames, the BER caused by the number of CRC error frames, the BER caused by decoding error frames, and the BER caused by frame loss due to insufficient trust between ports. The BER of each dimension is compared with a set BER threshold. If any BER threshold exceeds the set threshold, an alarm message is generated, thus realizing fault monitoring of the Fibre Channel bus adapter link.

[0021] In one possible implementation, the amount of data transmitted by the Fibre Channel bus adapter includes: the number of received frames; the amount of data where the Fibre Channel bus adapter experiences data transmission failures includes: the number of lost signals and the number of lost frames due to insufficient trust between ports; based on the data transmission information of the Fibre Channel bus adapter link, the out-of-band processor determines the Fibre Channel bus adapter link failure warning information, including: the out-of-band processor determines the number of optical power loss events of the Fibre Channel bus adapter link based on the number of lost signals at the ports of the Fibre Channel bus adapter in a first time period, compares the number of optical power loss events with a set optical power loss threshold, and generates a third alarm message when the number of optical power loss events exceeds the optical power loss threshold. The information is used to indicate that the received optical power of the Fibre Channel bus adapter port is too low; or, the out-of-band processor determines the packet loss rate of the Fibre Channel bus adapter port based on the number of received frames received by the port in the first time period and the number of frames lost due to insufficient credit between ports, compares the packet loss rate with a packet loss rate threshold, and generates a fourth alarm message if the packet loss rate is greater than the packet loss rate threshold. The fourth alarm message is used to indicate that the Fibre Channel bus adapter port has too many packets lost; or, the out-of-band processor compares the number of frames lost due to insufficient credit obtained by the Fibre Channel bus adapter port in the first time period with a generated frame loss number threshold, and generates a fourth alarm message if the number of frames lost is greater than the frame loss number threshold.

[0022] In other words, the external processor can statistically analyze the amount of data transmission failures detected by the Fibre Channel bus adapter, obtain the number of optical power loss events on the Fibre Channel bus adapter link, and compare the obtained number of optical power loss events with a set threshold. If the number of optical power loss events exceeds the set threshold, an alarm message is generated. Alternatively, the external processor can statistically analyze the amount of data transmitted by the Fibre Channel bus adapter and the amount of data transmission failures, obtain the number of packet losses and the packet loss rate of the Fibre Channel bus adapter link. The obtained number of packet losses is compared with a set threshold, or the obtained packet loss rate is compared with a set threshold, and an alarm message is generated based on the comparison result, thus realizing fault monitoring of the Fibre Channel bus adapter link.

[0023] In one possible implementation, the in-band processor sends data transmission information of the Fibre Channel bus adapter link to the out-of-band processor of the server, including: the in-band processor sending the data transmission information to the out-of-band processor through the communication interface between the in-band processor and the out-of-band processor.

[0024] In other words, a communication interface is set up between the in-band processor and the out-of-band processor, through which data communication between the in-band processor and the out-of-band processor can be realized.

[0025] In one possible implementation, the in-band processor sends data transmission information to the out-of-band processor through the communication interface between the in-band processor and the out-of-band processor. This includes: the in-band processor encapsulating the data transmission information according to the transmission channel between the in-band processor and the out-of-band processor, and sending the encapsulated transmission information to the out-of-band processor through the communication interface of the in-band processing side.

[0026] In other words, when transmitting data through the communication interface between the in-band processor and the out-of-band processor, the in-band processor can encapsulate the data transmission information according to the transmission protocol corresponding to the transmission channel between the in-band processor and the out-of-band processor, so that the encapsulated data transmission information can be transmitted through the transmission channel between the in-band processor and the out-of-band processor.

[0027] In one possible implementation, the in-band processor sends transmission data to the out-of-band processor through the communication interface between the in-band processor and the out-of-band processor. This includes: the in-band processor sending data transmission information to the out-of-band processor through the network protocol address of the out-of-band processor and the communication interface on the out-of-band processor side; the network protocol address and communication interface of the out-of-band processor are pre-mapped with the network protocol address of the operating system.

[0028] In other words, before transmitting data through the communication interface between the in-band processor and the out-of-band processor, the IP address of the out-of-band processor, the communication interface of the in-band processor, and the IP address of the operating system can be mapped in advance, so that the in-band processor can send data transmission information to the out-of-band processor through the IP address of the in-band processor and the communication interface of the in-band processor.

[0029] Secondly, embodiments of this application provide a server, characterized in that it includes:

[0030] At least one memory for storing programs;

[0031] At least one processor is configured to execute a program stored in memory, wherein, when the program stored in memory is executed, the processor is configured to perform the method described in the first aspect or any possible implementation thereof.

[0032] Thirdly, embodiments of this application provide an early warning system, including:

[0033] The data acquisition module is used to acquire data transmission information of the Fibre Channel bus adapter link within the operating system; the data transmission information includes the amount of data transmitted by the Fibre Channel bus adapter, as well as the amount of data that has experienced data transmission failures;

[0034] The first transmission module is used to send the data transmission information of the Fibre Channel bus adapter link to the second transmission module.

[0035] The second transmission module is used to receive data transmission information of the Fibre Channel bus adapter link sent by the first transmission module;

[0036] The processing module, based on the data transmission information of the Fibre Channel bus adapter link, uses an out-of-band processor to determine the Fibre Channel bus adapter link fault warning information.

[0037] Fourthly, embodiments of this application provide a computer storage medium storing instructions that, when executed on a computer, cause the computer to perform the method described in the first aspect or any possible implementation thereof.

[0038] Fifthly, embodiments of this application provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the method described in the first aspect or any possible implementation thereof. Attached Figure Description

[0039] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0040] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;

[0041] Figure 2 This is a schematic diagram of the internal structure of a server provided in an embodiment of this application;

[0042] Figure 3 A system architecture diagram of a server provided in an embodiment of this application;

[0043] Figure 4 This is a schematic diagram of the structure of a dynamic sliding window provided in an embodiment of this application;

[0044] Figure 5 A flowchart illustrating an FC HBA card link fault early warning method provided in this application embodiment;

[0045] Figure 6 A flowchart of an FC HBA card link fault early warning method provided in an embodiment of this application. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be described below with reference to the accompanying drawings.

[0047] In the description of the embodiments in this application, any embodiment or design that is “exemplary,” “for example,” or “by way of example” should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as “exemplary,” “for example,” or “by way of example” is intended to present the relevant concepts in a concrete manner.

[0048] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and their variations all mean "including but not limited to," unless otherwise specifically emphasized.

[0049] A SAN (Storage Area Network) is a storage architecture that connects storage devices and servers via a network connection. SAN networks are dedicated to access between servers and storage devices. When there is a need for data storage, data can be transferred at high speed between servers and storage devices through the SAN network. FC (Fibre Channel) technology can be used in SAN networks to connect storage devices and servers through Fibre Channel switches, establishing a dedicated area network (FC-SAN) for data storage. When using an FC SAN network, an FC HBA (Fibre Channel Interface Card) is required. The FC HBA can convert between the server's internal communication protocol and the FC protocol.

[0050] As more and more services demand higher bandwidth and lower I / O latency, the need for real-time monitoring and early warning of sub-health conditions in FC SAN network links is increasing. Typically, users can monitor FC HBA card links using scripts deployed within the operating system (OS) and send the monitoring results to a third-party platform for centralized management. However, OS-based monitoring requires data collection and processing within the OS, consuming significant CPU and memory resources. Furthermore, using OS-based software for monitoring and early warning of FC HBA links presents challenges in software deployment and flexibility in adjusting monitoring parameters.

[0051] In view of this, this application provides an FC HBA card link early warning method. By establishing a communication channel between the server's in-band processor and the out-of-band processor (management software), the out-of-band processor can flexibly adjust the monitoring parameters of the in-band FC HBA card link. The method also involves acquiring FC HBA card link parameter information within the OS and sending this information to the out-of-band processor. Upon receiving the FC HBA card link parameter information, the out-of-band processor analyzes and processes the information and issues an alarm, facilitating unified management of the FC HBA card by the user.

[0052] In one possible example, the in-band processor of the server could be the central processing unit (CPU) in the server, and the out-of-band processor could be the baseboard management controller (BMC) in the server.

[0053] For example, Figure 1 A schematic diagram illustrating an application scenario provided by an embodiment of this application is shown. For example... Figure 1 The system includes: server 110, storage device 120, and SAN network 130. Server 110 and storage device 120 can be connected via SAN network 130.

[0054] Specifically, server 110 may include at least one CPU (CPU1 and CPU2), an HBA card, a PCH chip, and a BMC. The at least one CPU can be interconnected via Ultra Path Interconnect (UPI). The CPU and PCH chip can be connected via a Direct Media Interface (DMI) or an Uplink interface. The BMC and PCH chip can be interconnected. Server 110 can be connected to the SAN network via the HBA card to enable data communication between server 110 and storage device 130.

[0055] Storage device 120 can be a remote storage device, such as a disk array, tape library, optical disc library, etc.

[0056] An HBA (Host Adapter) is the physical connection between the server's internal I / O channels and the storage system's I / O channels. Specifically, the HBA card connects the internal bus of server 110 to storage device 120. For example, the HBA card can connect to the CPU (including CPU1 and CPU2) via a PCI or S-Bus channel, and to storage device 120 via Fibre Channel. When server 110 sends information to storage device 120, the HBA card receives the information via the PCI or S-Bus channel. Since the information received by the HBA card is encapsulated using the PCI or S-Bus protocol, the HBA card needs to decapsulate the received information according to the PCI or S-Bus protocol and then encapsulate the decapsulated information using the Fibre Channel protocol. Finally, the HBA card sends the Fibre Channel-encapsulated information to storage device 120 via Fibre Channel.

[0057] When server 110 needs to read data from storage device, the HBA card on server 110 receives information sent by storage device 120 through the Fibre Channel between server 110 and storage device 120. Since the information sent by storage device is encapsulated using the Fibre Channel protocol, after receiving the information, the HBA card needs to decapsulate the received information according to the Fibre Channel protocol, and then encapsulate the decapsulated information using the PCI or Sbus protocol. Then, the HBA card sends the encapsulated information via the PCI or Sbus protocol to the CPU through the PCI or Sbus channel.

[0058] As is understandable, an HBA card is a circuit board or integrated circuit adapter used to provide input / output (I / O) processing and physical connection between a server and storage devices. It can reduce the burden on the main processor in data storage and retrieval tasks, greatly improving server performance. When the HBA card sends information to storage device 120, the HBA card driver in the operating system records information such as the number of bytes (tx_words) and frames (tx_frames) sent by the HBA card in memory. When the HBA card receives information from storage device 120, it encapsulates and verifies the received information. During the HBA card's information reception and decapsulation process, the HBA card driver in the operating system records information such as the number of bytes received (rx_words), the number of received frames (rx_frames), the number of error frames (error_frames), the number of cyclic redundancy check (CRC) error frames (invalid_crc_count), the number of decoding error frames (invalid_tx_word_count), the number of lost signals (loss_of_signal_count), the link initialization count (lip_count), and the number of frames lost due to insufficient trust between ports (dumped_frames) in memory. Among these, tx_words, tx_frames, rx_words, and rx_frames represent the amount of data transmitted by the FC HBA card link, while error_frames, invalid_crc_count, invalid_tx_word_count, loss_of_signal_count, lip_count, and dumped_frames represent the amount of data that experienced data transmission failures in the FC HBA card link.

[0059] For example, Figure 2 A schematic diagram of the internal structure of a server according to an embodiment of this application is shown. Figure 2 As shown, the computing device may include a power supply 121 and a motherboard 110. The power supply 121 is electrically connected to the motherboard 110 and is used to supply power to the devices on the motherboard 110. The motherboard 110 includes a central processing unit (CPU) 111, memory 112, a programmable logic device (PLD) 113, a baseboard management controller (BMC) 114, a PCIe slot 115, a network card 122, a hard disk 123, and a fan 124.

[0060] Memory 112 is inserted into a memory slot and serves as an external cache. Exemplarily, memory 112 can be random access memory (RAM). By way of example, but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DRRAM).

[0061] PCIe slot 115 is suitable for expanding at least one of the following: graphics processing unit (GPU) card, network card, video capture card, HBA (Host Bus Adapter) card, RAID (redundant arrays of independent disks) card, and SSD (solid state disk or solid state drive). It can also support the expansion of various adapter cards.

[0062] Among them, the programmable logic device 113 can be a complex programmable logic device (CPLD, which is a digital integrated circuit in which the user constructs logic functions according to their own needs) or a field programmable gate array (FPGA).

[0063] The BMC114 has a BMC interface and is responsible for core functions such as server hardware status management, operating system management, health status management, and function consumption management.

[0064] Hard drives can be categorized by interface protocol (SAS, SATA, NVMe) and by media type (HDDs and SSDs). HDDs commonly use SATA or SAS interfaces. SSDs consist of a control unit and storage units (FLASH chips and DRAM chips) and can use SATA, SAS, PCIe, and M.2 interfaces. The M.2 interface primarily uses the NVMe protocol.

[0065] Next, a system architecture for a server provided in an embodiment of this application will be described, wherein the server can be... Figure 1 Server 110 in the example. Figure 3 A system architecture diagram of a server is shown, with reference to... Figure 3 It includes: a data acquisition module 1101, a first transmission module 1102, a second transmission module 1103, a processing module 1104, and an early warning module 1105. The data acquisition module 1101 and the first transmission module 1102 can be deployed within the server's OS and implemented by the server's CPU. The second transmission module 1103, the processing module 1104, and the early warning module 1105 can be deployed outside the server's OS and implemented by the BMC.

[0066] The data acquisition module 1101 can collect parameter information of the FC HBA card link on the server according to the preset data acquisition mode, and send the collected data to the first transmission module 1102.

[0067] In one possible example, maintenance personnel can configure the FC HBA card link parameters out-of-band via the BMC to the data acquisition module 1101. These parameters instruct the data acquisition module on the rules for acquiring data transmission information from the FC HBA card link. For instance, maintenance personnel can configure the FC HBA card link parameters via command line or through a graphical interface provided by the BMC's web interface. Regardless of whether the maintenance personnel configure the FC HBA card link parameters via command line or graphical interface, the configured parameters will be sent to the processing module 1104. After receiving the FC HBA card link parameters configured by the maintenance personnel, the processing module 1104 can transmit the configured parameters to the first transmission module 1102 via the second transmission module 1103. Upon receiving the FC HBA card link parameters, the first transmission module 1102 then transmits the configured parameters to the data acquisition module 1101.

[0068] When configuring the parameters of the FC HBA card link, maintenance personnel need to set the types of data transmission information to be acquired, the acquisition period, and the acquisition method. The types of data transmission information acquired from the FC HBA card link include: the number of bytes received, the number of frames sent, and the number of frames received. The acquisition period refers to the preset time interval for acquiring data transmission information from the FC HBA card link. The acquisition methods include: event-triggered acquisition of data transmission information from the FC HBA card link, and periodic acquisition of data transmission information from the FC HBA card link. Periodic acquisition of data transmission information from the FC HBA card link includes: acquiring data transmission information from the FC HBA card link using a sliding window. Event-triggered acquisition of data transmission information from the FC HBA card link can refer to maintenance personnel manually triggering the acquisition of data transmission information from the FC HBA card link on the BMC.

[0069] In one possible example, acquiring data transmission information of the FC HBA card link via an event-triggered method can specifically include: the BMC responding to a triggering operation by maintenance personnel by sending a first message to the CPU, wherein the first message indicates the acquisition of data transmission information of the Fibre Channel bus adapter link. The CPU, in response to the received first message, acquires the data transmission information of the Fibre Channel bus adapter link.

[0070] In one possible example, periodically acquiring data transmission information of the FC HBA card link specifically includes: the CPU receiving second information sent by the BMC, the second information carrying a first time; and the CPU responding to the received second information by acquiring data transmission information of the Fibre Channel bus adapter link at a period of the first time.

[0071] In one possible example, the data acquisition module 1101 can obtain information such as tx_words, rx_words, tx_frames, rx_frames, error_frames, invalid_crc_count, invalid_tx_word_count, loss_of_signal_count, lip_count, and dumped_frames from the / sys / class / fc_host / host* / statistics directory or / sys / class / scsi_host / host* / device / fc_host / host* / statistics / directory of the FC HBA card.

[0072] Here, tx_words represents the number of bytes sent by the FC HBA card link (one word represents 4 bytes).

[0073] rx_words represents the number of bytes received by the FC HBA card link (one word represents 4 bytes).

[0074] tx_frames represents the number of frames sent by the FC HBA card link.

[0075] rx_frames is the number of frames received by the FC HBA card link.

[0076] error_frames represents the number of error frames on the FC HBA card link; an error frame refers to a received frame that is correctly decoded and CRC checked, but whose content cannot be interpreted by the FC protocol and is therefore marked as an error frame.

[0077] invalid_crc_count indicates the number of CRC error frames on the FC HBA card link; where a CRC error frame refers to a frame that is correctly decoded but fails the CRC check during CRC verification.

[0078] `invalid_tx_word_count` represents the number of frames that were decoded incorrectly. Specifically, it refers to frames that were directly decoded incorrectly. The received frames go through a process of decoding, CRC check, and protocol matching / reading. `invalid_tx_word_count` corresponds to the number of frames that encountered errors in these three stages.

[0079] loss_of_signal_count represents the number of signals lost on the FC HBA card link; typically, low received optical power will cause the statistical loss_of_signal_count value to increase.

[0080] lip_count represents the initial count of the FC HBA card link; generally, changes in the FC topology or the issuance of lip commands will cause the lip_count value to increase.

[0081] dumped_frames represents the number of frames dropped due to insufficient trust between ports.

[0082] It is understood that the data transmission information of the FC HBA card link acquired by the data acquisition module 1101 may include not only the data information illustrated in the above embodiments, but also other data information. This application embodiment does not limit this.

[0083] After receiving the data transmission information of the FC HBA card link sent by the data acquisition module 1101, the first transmission module 1102 can send the acquired data transmission information of the FC HBA card link to the second transmission module 1103.

[0084] After receiving the data transmission information of the FC HBA card link sent by the first transmission module 1102, the second transmission module 1103 sends the received data transmission information of the FC HBA card link to the processing module 1104 for processing. At the same time, the second transmission module 1103 also needs to store the data transmission information of the FC HBA card link received from the first transmission module 1102 into the storage device in the BMC.

[0085] The first transmission module 1102 and the second transmission module 1103 are located within the OS band and the BMC, respectively, and are mainly used to realize communication between the OS band and the BMC band. For example, communication interfaces can be set in the first transmission module 1102 and the second transmission module 1103, and communication between the first transmission module 1102 and the second transmission module 1103 can be realized based on the set communication interfaces.

[0086] Understandably, on a server motherboard, the BMC (Band Control Center) connects to the Southbridge (Platform Controller Hub, PCH) via the PCIe bus within the BMC chip. The PCH then connects to the CPU via the DMI bus, meaning there's a physical channel between the in-band CPU and the out-of-band BMC. When the CPU needs to communicate with the BMC, the communication protocol between the CPU and BMC can be configured at the software level in the communication interface to ensure real-time communication between them. For example, communication can be achieved through the General-Purpose Input / Output Ports (GPIO) on both the CPU and the BMC, or through the Universal Asynchronous Receiver / Transmitter (UART) interface on both the CPU and the BMC.

[0087] When the CPU needs to send information to the BMC, the CPU can encapsulate the information according to a preset protocol based on the transmission channel between the CPU and the BMC, and then transmit the encapsulated information through the communication interface between the CPU and the BMC. For example, the CPU can encapsulate the information to be sent using a serial asynchronous transceiver protocol and send the encapsulated information to the BMC through the UART interface.

[0088] In this embodiment of the application, the communication interface between the CPU and the BMC is not limited. The operation and maintenance personnel can realize the communication between the CPU and the BMC through other custom software methods or by using hardware interface methods.

[0089] In one possible example, the bob function can be enabled within the server. After enabling bob, the BMC's IP address and port number can be mapped to the OS's IP address, allowing the in-band CPU to access the BMC via its IP address and port number. Essentially, bob is a forwarding tool for network communication between the server's in-band and the BMC on the server, and it can be integrated into the server's in-band management agent software installation package, depending on the in-band management agent software process.

[0090] When the processing module 1104 receives data transmission information from the FC HBA card link, it can analyze the received data transmission information based on its type. For example, the processing module 1104 can monitor the FC HBA card link's traffic, bit error rate, link signal loss, link reset count, and packet loss count based on the received data transmission information.

[0091] For example, the processing module 1104 can monitor the traffic of the FC HBA card link. Specifically, the processing module 1104 can use a dynamic sliding window method to count the parameter values ​​of tx_words and rx_words within a certain period of time (a sliding window) to determine the number of packets sent and received by the FC HBA card link, and calculate the average traffic of the FC HBA port within a sliding window based on the obtained number of packets sent and received by the FC HBA card link.

[0092] Processing module 1104 can monitor the bit error rate of the FC HBA card link. Specifically, processing module 1104 can use a dynamic sliding window method to count the parameter values ​​of rx_frames, error_frames, invalid_crc_count, invalid_tx_word_count, and dump_frames within a certain period (a sliding window), and calculate the number of received frames, protocol error frames, CRC error frames, decoding error frames, and the number of frames lost due to insufficient credit within the period as the dimension. Then, processing module 1104 calculates the bit error rate for each dimension respectively. For example, processing module 1104 can determine the bit error rate of protocol error frames based on the number of received frames and the number of protocol error frames acquired within the period; processing module 1104 can determine the bit error rate of CRC error frames based on the number of received frames and the number of CRC error frames acquired within the period; processing module 1104 can determine the bit error rate of decoding error frames based on the number of received frames and the number of decoding error frames acquired within the period; and processing module 1104 can determine the bit error rate of lost frames based on the number of received frames and the number of lost frames due to insufficient credit within the period.

[0093] Processing module 1104 can monitor the link reset status of the FC HBA card link. Specifically, processing module 1104 can use a dynamic sliding window method to count the lip_count within a time period (a sliding window). Then, using the time period for obtaining lip_count as the dimension, it calculates the number of times the HBA card link initializes and resets within that period. Processing module 1104 can also use a periodic statistical method to continuously count the lip_count parameter value.

[0094] The processing module 1104 can also monitor the packet loss rate of the FC HBA card link. Specifically, the processing module 1104 can use a dynamic sliding window method to count the parameter values ​​of rx_frames and dump_frames over a period of time (a sliding window) to determine the number of lost packets and the packet loss rate within a period. The processing module 1104 can also use a periodic statistical method to continuously count the dump_frames parameter value and the packet loss rate within a period.

[0095] It is understandable that the processing module 1104 will receive the FC HBA card link data transmission information from the OS in the same way that the data acquisition module 1101 acquires the data transmission information of the FC HBA card link. For example, if the data acquisition module 1101 acquires the FC HBA card link data transmission information using a sliding window method, then the processing module 1104 will also receive the FC HBA card link data transmission information from the OS in a sliding window method.

[0096] Next, taking the sliding window as an example, we will introduce the analysis process of the processing module 1104 on the acquired HBA data transmission information.

[0097] For example, Figure 4 A schematic diagram of a dynamic sliding window structure is shown. Figure 4 In the sliding window shown, the window moves continuously to the right as the received data is processed. The window can be fixed (the default value) or its size can be customized. For example, by setting the window size, you can determine the time period for dynamically monitoring whether the FC HBA card link is functioning correctly. The time interval is the time interval between two consecutive samples. The window time period divided by the interval is the number of data samples collected within the sampling period.

[0098] In one possible example, the sliding window size can be preset to 10, the sampling interval for each element in the sliding window can be 1 second, and the time period for all data in the sliding window can be 10 seconds. The processing module 1104 can determine the operating status of the FC HBA card link by analyzing the data collected within the preset sliding window time period and at the preset interval.

[0099] Reference Figure 4 , Figure 4 A schematic diagram illustrates the data transmission information of the FC HBA card link acquired via a sliding window from the 13th to the 17th second. Figure 4 As shown, at the 12th second, the sliding window includes the data collected from the 3rd to the 12th second; at the 13th second, the sliding window includes the data collected from the 4th to the 13th second; at the 14th second, the sliding window includes the data collected from the 5th to the 14th second; at the 15th second, the sliding window includes the data collected from the 6th to the 15th second; at the 16th second, the sliding window includes the data collected from the 7th to the 16th second; and at the 17th second, the sliding window includes the data collected from the 8th to the 17th second. The data collected every second can be obtained from the FC HBA card's tx_words, rx_words, tx_frames, rx_frames, error_frames, invalid_crc_count, invalid_tx_word_count, loss_of_signal_count, lip_count, dumped_frames, etc., obtained from the server OS's / sys / class / fc_host / host* / statistics or / sys / class / scsi_host / host* / device / fc_host / host* / statistics / directories.

[0100] After the processing module 1104 receives the data collected by the data acquisition module in a sliding window manner, it can monitor the status of the FC HBA card link based on the received data. For example, at the 12th second, the processing module 1104 can determine the traffic of the FC HBA port in the 12th second based on the tx_words and rx_words parameter values ​​collected from the 3rd to the 12th second within the sliding window. Specifically, at the 12th second, the number of packets sent by the HBA port, tx_words_12, is...

[0101]

[0102] At the 12th second, the number of packets received by the HBA port, rx_words_12, is...

[0103]

[0104] For example, at the 13th second, the processing module 1104 can determine the bit error rate (BER) of protocol-erroneous frames in the data frames acquired by the FC HBA port within a sliding window, based on the rx_frames and error_frames parameter values ​​collected from the 4th to the 13th second within the sliding window. The BER P of protocol-erroneous frames is... error_frames_13 for,

[0105]

[0106] Similarly, the processing module 1104 can calculate, within a sliding window, the bit error rate of CRC error frames, the bit error rate of decoding error frames, and the bit error rate of frame loss in the data frames acquired by the FC HBA port.

[0107] For example, at the 13th second, the processing module 1104 can determine the number of signal loss events of the FC HBA card link within a sliding window based on the `loss_of_signal_count` parameter value collected by the sliding window from the 4th to the 13th second. Here, the number N of signal loss events of the FC HBA card link within a sliding window is... loss_of_signal_count for,

[0108] N loss_of_signal_count =loss_of_signal_count_13-loss_of_signal_count_3

[0109] For example, at the 13th second, the processing module 1104 can determine the number of initialization resets of the FC HBA card link within a sliding window based on the lip_count parameter value collected by the sliding window from the 4th to the 13th second. Wherein, the number of initialization resets N of the FC HBA card link within a sliding window... lip_count for,

[0110] N lip_count =lip_count_13-lip_count_3

[0111] For example, at the 13th second, the processing module 1104 can determine the number of packet losses and the packet loss rate of the FC HBA card link within a sliding window based on the rx_frames and dump_frames parameter values ​​collected by the sliding window from the 4th to the 13th second. Wherein, the number of packet losses N of the FC HBA card link within a sliding window... dump_frames for,

[0112] N dump_frames=dump_frames_13-dump_frames_3

[0113] The packet loss rate P of the HBA card link within a sliding window dump_frames for,

[0114]

[0115] The processing module 1104 calculates abnormal information such as the FC HBA card link traffic, bit error rate, number of lost signals, number of resets, number of lost packets, and packet loss rate based on the received data transmission information of the FC HBA card link. The processing module 1104 then sends the calculated abnormal information of the FC HBA card link to the early warning module 1105.

[0116] The early warning module 1105 monitors and issues early warnings for the FC HBA card link based on the abnormal information of the FC HBA card link calculated by the processing module 1104 and the pre-set monitoring threshold. For example, when the abnormal value in the abnormal information of the FC HBA card link in any dimension calculated within the detection period reaches the monitoring threshold, the early warning module 1105 can issue an early warning or alarm. The alarm level can be set to minor, major, or critical according to actual needs.

[0117] For example, after acquiring the port traffic of the FC HBA card link, the early warning module 1105 can compare the acquired port traffic with the nominal maximum traffic of the FC HBA card link port. The port traffic of the FC HBA card link can be the received traffic, the transmitted traffic, or the total traffic (interface traffic + transmitted traffic). When the port traffic of the FC HBA card link acquired by the early warning module 1105 reaches 70% of the nominal maximum traffic of the FC HBA card link port, the early warning module 1105 can generate a port traffic overload warning. The nominal maximum traffic of the FC HBA card link port can be 8GB or 16GB.

[0118] After acquiring the bit error rate (BER) of different dimensions of the HBA card link (including BER of protocol error frames, BER of CRC error frames, BER of decoding error frames, and BER of lost frames), the early warning module 1105 compares the received BER of each dimension with a preset threshold. If the BER is higher than the preset threshold, the early warning module 1105 can issue a sub-health warning for the FC HBA card link. Simultaneously, the early warning module 1105 can also generate relevant suggestions, such as recommending troubleshooting the FC HBA card, FC HBA card optical module, fiber optic cable, and peer port.

[0119] After acquiring the number of lost signals on the FC HBA card link, the early warning module 1105 compares this number with a preset threshold. If the number of lost signals exceeds the threshold, the alarm module 1105 generates an alarm indicating low received optical power at the FC HBA port. Simultaneously, the early warning module 1105 can also generate suggestions, such as recommending checking the fiber optic cable and the peer optical module corresponding to the FC HBA port.

[0120] After obtaining the number of initialization resets of the FC HBA card link, the early warning module 1105 compares the obtained number of link initialization resets with a preset threshold. If the number of link initialization resets obtained by the early warning module 1105 exceeds the preset threshold, the alarm module 1105 can generate an alarm indicating excessive FC HBA port initializations. Simultaneously, the alarm module 1105 can also generate suggestion information, such as suggesting investigating the OS's operations on the HBA card's `issue_lip` operation. The `issue_lip` operation resets the FC HBA port, affecting its I / O.

[0121] After acquiring the number of lost packets and the packet loss rate of the FC HBA card link, the early warning module 1105 can compare the acquired number of lost packets or the packet loss rate with a preset threshold. If the number of lost packets acquired by the early warning module 1105 exceeds the preset threshold, or the acquired packet loss rate exceeds the preset threshold, the alarm module 1105 can generate an alarm indicating that the port is experiencing excessive packet loss due to insufficient credit. Simultaneously, the alarm module 1105 can also generate suggested information, such as recommending checking for bugs in the FC HBA card firmware or identifying any anomalies on the FC HBA card link that could lead to the loss of credit frames, thus causing packet loss.

[0122] After generating alarm and suggestion information, the early warning module 1105 can report the alarm and suggestion information to a third-party monitoring platform using the standard interface in the BMC. For example, the early warning module 1105 can send alarm and suggestion information to the third-party monitoring platform through the local area network (LAN) interface on the BMC.

[0123] It is understandable that the early warning module 1105 is not only used to provide early warnings for link errors, excessive port traffic, excessive port initialization times, low port optical power, and packet loss due to insufficient port credit in the above embodiments. The early warning module 1105 can also be used to provide early warnings for other anomalies related to the FC HBA card link. For example, it can provide early warnings for abnormal registration messages and abnormal driver printing.

[0124] In this embodiment, a communication channel is established between the in-band OS and the out-of-band BMC. Then, the data transmission information of the FC HBA card link is acquired in the in-band OS and sent to the BMC for processing. Alarm information is generated based on the processing results. Sending the data transmission information of the FC HBA card link acquired in the in-band OS to the BMC for processing reduces the consumption of server CPU and memory resources. Simultaneously, the parameter configuration information for acquiring the data transmission information of the FC HBA card within the in-band can be configured through the BMC or its web-based visual operation interface, improving the product's usability.

[0125] Next, based on the above description, an early warning method for an FC HBA card link provided in this application embodiment will be introduced. This method can be applied to... Figure 3 The server shown is an example. Figure 5 The flowchart illustrates a link fault early warning method for an FC HBA card provided in an embodiment of this application. In this embodiment, the in-band processor can be implemented by the CPU in the server, and the out-of-band processor can be implemented by the BMC in the server. See also... Figure 5 The method includes steps 501-503.

[0126] Step 501: The server's in-band processor obtains the data transmission information of the Fibre Channel bus adapter link within the operating system.

[0127] In this embodiment, a data acquisition module and a first transmission module can be established within the OS. These modules can be implemented by the CPU on the server. The data acquisition module can acquire data transmission information of the FC HBA card link according to pre-saved parameter configuration information. This data transmission information includes the amount of data transmitted by the Fibre Channel bus adapter and the amount of data experiencing data transmission failures.

[0128] In one possible example, the data acquisition module can dynamically slide windows to obtain information such as tx_words, rx_words, tx_frames, rx_frames, error_frames, invalid_crc_count, invalid_tx_word_count, loss_of_signal_count, lip_count, and dumped_frames from the FC HBA card's / sys / class / fc_host / host* / statistics or / sys / class / scsi_host / host* / device / fc_host / host* / statistics / directories of the server OS.

[0129] In one possible example, operations and maintenance personnel can configure the parameter configuration information for obtaining FC HBA card link parameters through the BMC. For instance, they can configure the parameter configuration information for obtaining FC HBA card link parameters through the standard command interface. Alternatively, they can configure the parameter configuration information for obtaining FC HBA card link parameters through the BMC's web interface.

[0130] When configuring the parameter settings for obtaining FC HBA card link parameters, maintenance personnel need to set the type of data transmission information to be obtained, the period for obtaining data transmission information, and the method for obtaining data transmission information. The type of data transmission information to be obtained from the FC HBA card link includes: the number of bytes received, the number of frames sent, and the number of frames received by the FC HBA card link. The data acquisition period refers to the time interval for obtaining data transmission information from the FC HBA card that can be preset. The methods for obtaining data transmission information include: obtaining data transmission information from the FC HBA card link by event triggering, periodically obtaining data transmission information from the FC HBA card link, and obtaining data transmission information from the FC HBA card link by sliding window. Among these, obtaining data transmission information from the FC HBA card link by event triggering can mean that maintenance personnel manually trigger the acquisition of data transmission information from the FC HBA card link on the BMC.

[0131] The first transmission module receives parameter configuration information sent by the BMC through the second transmission module on the BMC. This parameter configuration information contains configuration information for obtaining FC HBA link parameters. After receiving the parameter configuration information, the first transmission module can send it to the data acquisition module, so that the data acquisition module can obtain the data transmission information of the FC HBA link based on the received parameter configuration information.

[0132] It is understandable that the first transmission module and the second transmission module are respectively located in the OS band and in the BMC, mainly for realizing communication between the OS band and the BMC.

[0133] Step 502: The in-band processor sends the data transmission information of the Fibre Channel bus adapter link to the out-of-band processor of the server for data transmission information.

[0134] In this embodiment, the CPU can transmit data transmission information of the FC HBA card link to the second transmission module on the BMC side via the first transmission module on the CPU side. After receiving the data transmission information of the FC HBA card, the second transmission module sends it to the processing module on the BMC side, where the processing module further analyzes and processes the received data transmission information of the FC HBA card link. The first and second transmission modules function as a communication interface between the CPU and the BMC.

[0135] In one possible example, the CPU can encapsulate the information to be sent according to the protocol based on the transmission channel between the CPU and the BMC, and then transmit the encapsulated information through the communication interface between the CPU and the BMC. For example, the CPU can encapsulate the information to be sent using a serial asynchronous transceiver protocol and send the encapsulated information to the BMC through the UART interface.

[0136] In one possible example, the bob function can be enabled within the server. After enabling bob, the BMC's IP address and port number can be mapped to the OS's IP address using relevant commands, allowing the in-band CPU to access the BMC via its IP address and port number. It's understood that bob is a forwarding tool for network communication between the server's in-band and the BMC on the server. It can be integrated into the server's in-band management agent software installation package and depends on the in-band management agent software process; it does not support independent deployment or operation.

[0137] In this embodiment of the application, the communication interface between the CPU and the BMC is not limited. The operation and maintenance personnel can realize the communication between the CPU and the BMC through other custom software methods or by using hardware interface methods.

[0138] In one possible example, after receiving the data transmission information from the FC HBA card link, the second transmission module can also store the received data transmission information from the FC HBA card link in the database on the BMC.

[0139] Step 503: Based on the data transmission information of the Fibre Channel bus adapter link, the out-of-band processor determines the data transmission information of the Fibre Channel bus adapter link fault warning information.

[0140] In this embodiment, after receiving the data transmission information of the FC HBA card link, the processing module on the BMC side can perform statistics on the FC HBA card's traffic, bit error rate, link signal loss, link reset count, and packet loss count. The analysis process of the processing module on the data such as FC HBA card traffic, bit error rate, link signal loss, link reset count, and packet loss count based on the received FC HBA card data transmission information can be referred to the description of processing module 1104 in the above embodiment, and will not be repeated here.

[0141] After calculating information such as FC HBA card traffic, FC HBA card bit error rate, number of lost signals on the FC HBA card link, number of FC HBA card link resets, number of lost packets, and packet loss rate based on the received data transmission information of the FC HBA card link, the processing module needs to send the calculated information to the early warning module on the BMC and store the calculated information in the database on the BMC.

[0142] The early warning module monitors and issues early warnings for the FC HBA card based on information calculated by the processing module, including the number of received frames, protocol error frames, CRC error frames, decoding error frames, and frame loss due to insufficient credit, as well as pre-set monitoring thresholds. For example, when the calculated link data transmission information of the FC HBA card reaches the monitoring threshold within the detection period, the early warning module can issue an early warning or alarm. The alarm level can be set to minor, major, or critical, depending on actual needs.

[0143] In one possible example, the processing module determines the average traffic of data packets sent by the FC HBA card port within a first time period based on the number of bytes sent by the FC HBA card port within that time period. The early warning module compares the average traffic of data packets sent with a pre-set first traffic threshold. If the average traffic of data packets sent exceeds the first traffic threshold, the early warning module generates a first alarm message, which indicates that the FC HBA card port traffic is too high.

[0144] The processing module determines the average data packet flow rate of the FC HBA card port during the first time period based on the number of bytes received by the port. The early warning module compares the average data packet flow rate with a pre-set second flow threshold. If the average data packet flow rate exceeds the second flow threshold, the early warning module generates a first alarm message.

[0145] The processing module determines the first bit error rate (BER) of the FC HBA card port based on the number of received frames and erroneous frames received within the first time period. The early warning module compares the first BER with a first BER threshold. If the first BER exceeds the first BER threshold, a second alarm message is generated to indicate that the FC HBA card port's BER is too high.

[0146] The processing module determines the second bit error rate of the FC HBA card port based on the number of received frames and the number of CRC error frames received by the FC HBA card port within the first time period. The early warning module compares the second bit error rate with a second bit error rate threshold, and generates a second alarm message if the second bit error rate is greater than the second bit error rate threshold.

[0147] The processing module determines the third bit error rate (BER) of the FC HBA card port based on the number of received frames and decoded error frames received by the FC HBA card port within the first time period. The early warning module compares the third BER with a third BER threshold, and generates a second alarm message if the third BER exceeds the third BER threshold.

[0148] The processing module determines the number of optical power losses in the Fibre Channel bus adapter link based on the number of lost signals at the FC HBA card port within the first time period. The early warning module compares the number of optical power losses with a set optical power loss threshold. When the number of optical power losses exceeds the optical power loss threshold, a third alarm message is generated to indicate that the received optical power at the FC HBA card port is too low.

[0149] The processing module determines the packet loss rate of the FC HBA card port based on the number of received frames and the number of lost frames due to insufficient trust between ports within the first time period. The early warning module compares the packet loss rate with a packet loss rate threshold. If the packet loss rate exceeds the threshold, a fourth alarm is generated to indicate that the FC HBA card port is experiencing excessive packet loss.

[0150] The processing module obtains the number of frames lost due to insufficient credit at the FC HBA card port within the first time period. The early warning module compares the number of frames lost due to insufficient credit with a generated frame loss threshold. If the number of frames lost exceeds the threshold, a fourth alarm message is generated.

[0151] In one possible example, after generating alarm and suggestion information, the early warning module can report the alarm and suggestion information to a third-party monitoring platform using the standard interface in the BMC. For instance, the early warning module can send a first message to the terminal device (which could be a third-party monitoring platform) through the local area network (LAN) interface on the BMC. This first message carries alarm and suggestion information for the FC HBA card link and instructs the terminal device to display the alarm information.

[0152] In this embodiment, data transmission information of the FC HBA card link is obtained in the in-band OS and sent to the BMC for processing. Alarm information is then generated based on the processing results. Sending the data transmission information of the FC HBA card link obtained in the in-band OS to the BMC for processing reduces the consumption of server CPU and memory resources. Furthermore, the parameter configuration information for obtaining the data transmission information of the FC HBA card link in the in-band can be configured through the BMC or its web-based visual interface, improving the product's usability.

[0153] Next, a specific example will be used to describe an FC HBA card link early warning method provided in this application embodiment. This method can be applied to... Figure 3 The server shown is an example. Figure 6 A flowchart of an FC HBA card link failure early warning method provided in an embodiment of this application is shown. See also... Figure 6 The method includes steps 601-609.

[0154] Step 601: The in-band processor obtains the parameter configuration information of the FC HBA card link. This parameter configuration information is used to instruct the data acquisition module on the rules for obtaining data transmission information of the FC HBA card link.

[0155] In this embodiment, a data acquisition module and a first transmission module are configured within the OS of the server. The data acquisition module and the first transmission module can be implemented by the in-band CPU of the server. The data acquisition module is used to acquire data transmission information of the FC HBA card link. Before acquiring the data transmission information of the FC HBA card link, the data acquisition module also needs to acquire the parameter configuration information of the FC HBA card link. This parameter configuration information is used to instruct the data acquisition module on the rules for acquiring the data transmission information of the FC HBA card link.

[0156] In one possible example, operations and maintenance personnel can configure the parameter configuration information of the FC HBA card link through the BMC. For instance, they can configure the parameter configuration information of the FC HBA card link through the standard command interface. Alternatively, they can configure the parameter configuration information of the FC HBA card link through the BMC's web interface.

[0157] When configuring the parameters of the FC HBA card link, maintenance personnel need to set the types of data transmission information to be acquired, the acquisition period, and the acquisition method. The types of data transmission information acquired from the FC HBA card link include: the number of bytes received, the number of frames sent, and the number of frames received. The acquisition period refers to the preset time interval for acquiring data transmission information from the FC HBA card. The acquisition methods include: event-triggered acquisition, periodic acquisition, and sliding window acquisition. Event-triggered acquisition refers to maintenance personnel manually triggering the acquisition of data transmission information from the FC HBA card link on the BMC.

[0158] When maintenance personnel configure the parameter configuration information of the FC HBA card link through the BMC, the data acquisition module can obtain the parameter configuration information from the BMC through the first transmission module.

[0159] If the maintenance personnel do not configure the FC HBA card link parameters through the BMC, the data acquisition module can obtain the pre-saved default parameter configuration information from the server system.

[0160] Step 602: The in-band processor obtains the data transmission information of the FC HBA card link within the operating system band.

[0161] In this embodiment, after obtaining the parameter configuration information, the data module can obtain the data transmission information of the FC HBA card link based on the obtained parameter configuration information. The data transmission information of the FC HBA card link includes: the amount of data transmitted by the FC HBA card link and the amount of data that experienced data transmission failure.

[0162] In one possible example, the data acquisition module can dynamically slide windows to retrieve information such as tx_words, rx_words, tx_frames, rx_frames, error_frames, invalid_crc_count, invalid_tx_word_count, loss_of_signal_count, lip_count, and dumped_frames from the server OS's / sys / class / fc_host / host* / statistics or / sys / class / scsi_host / host* / device / fc_host / host* / statistics / directories. Among these, tx_words, tx_frames, rx_words, and rx_frames represent the amount of data transmitted via the FC HBA card link, while error_frames, invalid_crc_count, invalid_tx_word_count, loss_of_signal_count, lip_count, and dumped_frames represent the amount of data where data transmission failures occurred on the FC HBA card link.

[0163] Step 603: The in-band processor sends the data transmission information of the FC HBA card link to the out-of-band processor.

[0164] In this embodiment, a second transmission module, a processing module, and an early warning module can be set in the out-of-band processor (BMC) to process the received FC HBA card link data transmission information. After acquiring the FC HBA card link data transmission information, the data acquisition module also needs to send the acquired FC HBA card link data transmission information to the first transmission module. The first transmission module then sends the acquired FC HBA card link data transmission information to the second transmission module in the BMC. The first and second transmission modules can function as a communication interface between the CPU and the BMC.

[0165] In one possible example, the CPU can encapsulate the information to be sent according to the protocol based on the transmission channel between the CPU and the BMC, and then transmit the encapsulated information through the communication interface between the CPU and the BMC. For example, the CPU can encapsulate the information to be sent using a serial asynchronous transceiver protocol and send the encapsulated information to the BMC through the UART interface.

[0166] In one possible example, the bob function can be enabled within the server. After enabling bob, the BMC's IP address and port number can be mapped to the OS's IP address using relevant commands, allowing the in-band CPU to access the BMC via its IP address and port number. It's understood that bob is a forwarding tool for network communication between the server's in-band and the BMC on the server. It can be integrated into the server's in-band management agent software installation package and depends on the in-band management agent software process; it does not support independent deployment or operation.

[0167] Step 604: Perform statistical analysis on the data transmission information of the FC HBA card link in the BMC to obtain abnormal information of the FC HBA card link.

[0168] In this embodiment, after receiving the data transmission information of the FC HBA card link, the second transmission module can send the received data transmission information of the FC HBA card link to the processing module for processing. The second transmission module can also store the data transmission information of the FC HBA card link in the database of the BMC for later use.

[0169] After receiving the data transmission information from the FC HBA card link, the processing module can analyze the received data transmission information based on its type to obtain abnormal information about the FC HBA card link. For example, it can perform statistical analysis on FC HBA card traffic, bit error rate, link signal loss, link reset count, and packet loss count. The analysis process for these data based on the received data transmission information can be referred to step 503 in the above embodiment, and will not be repeated here.

[0170] Step 605: Compare the obtained abnormal information of the FC HBA card link with the set threshold. If the abnormal value in the abnormal information is greater than the set threshold, proceed to step 606; otherwise, proceed to step 607.

[0171] In this embodiment, after the processing module calculates abnormal information such as FC HBA card traffic, FC HBA card bit error rate, number of lost signals on the FC HBA card link, number of FC HBA card link resets, number of lost packets, and packet loss rate based on the received data transmission information of the FC HBA card link, the processing module needs to send the calculated abnormal information to the early warning module on the BMC and store the calculated abnormal information in the database on the BMC for later use.

[0172] After receiving the abnormal information of the FC HBA card link sent by the processing module, the early warning module can compare the abnormal values ​​in each received abnormal information with the preset threshold to determine whether an alarm information needs to be generated.

[0173] Step 606: Generate alarm information for the FC HBA card link and send the alarm information to a third-party monitoring platform.

[0174] In this embodiment, the alarm module compares the abnormal values ​​in the received anomaly information with a preset threshold. If the value carried in the anomaly information is greater than the preset threshold, the alarm module can generate an alarm message and publish the alarm message to a third-party monitoring platform. For example, after obtaining the port traffic of the FC HBA card, the warning module can compare the obtained port traffic of the FC HBA card with the nominal maximum traffic of the FC HBA card port. When the port traffic of the FC HBA card obtained by the warning module reaches 70% of the nominal maximum traffic of the FC HBA card port, the warning module can generate a port traffic overload warning. The specific process by which the alarm module generates alarm information based on the received FC HBA card link error information can be referred to the description of step 503 in the above embodiment, and will not be repeated here.

[0175] After generating alarm and suggestion information, the early warning module can report the alarm and suggestion information to a third-party monitoring platform using the standard interface in the BMC. For example, the early warning module can send alarm and suggestion information to a third-party monitoring platform through the local area network (LAN) interface on the BMC.

[0176] Step 607: Determine whether the abnormal information of each generated FC HBA link has been judged. If yes, proceed to step 608; otherwise, proceed to step 605.

[0177] In this embodiment, the processing module performs statistical calculations on the data transmission information of the FC HBA card link, and obtains multiple abnormal information according to the different types of data information. The alarm module needs to judge each abnormal information of the FC HBA card link.

[0178] Step 608: Based on the parameter configuration information stored in the BMC, determine whether it is necessary to continue detecting the FC HBA card link. If yes, proceed to step 601; otherwise, proceed to step 609.

[0179] In this embodiment, after judging the abnormal information of multiple FC HBA card links, the alarm module also needs to trigger the processing module to obtain the parameter configuration information of the FC HBA card links stored in the BMC to determine whether it is necessary to continue to obtain the FC HBA card link data transmission information. For example, the period for obtaining the FC HBA card link data transmission information can be preset in the parameter configuration information of the FC HBA card links.

[0180] Step 609: Stop acquiring data transmission information of the FC HBA card link.

[0181] In this embodiment, the data transmission information of the FC HBA card link is obtained in the in-band OS and sent to the BMC for processing. Alarm information is then generated based on the processing results. Sending the data transmission information of the FC HBA card link obtained in the in-band OS to the BMC for processing reduces the consumption of server CPU and memory resources. Furthermore, the parameter configuration information of the FC HBA card link can be configured through the BMC or its web-based visual interface, improving the product's usability.

[0182] It is understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. Furthermore, in some possible implementations, each step in the above embodiments may be selectively executed according to actual circumstances; it may be partially or fully executed, without limitation here. Additionally, all or part of any feature in the above embodiments can be freely and arbitrarily combined without contradiction. The combined technical solutions are also within the scope of this application.

[0183] Based on the methods in the above embodiments, this application provides a computer-readable storage medium storing a computer program that, when run on a processor, causes the processor to execute the methods in the above embodiments.

[0184] Based on the methods in the above embodiments, this application provides a computer program product, characterized in that, when the computer program product is run on a processor, the processor executes the methods in the above embodiments.

[0185] Based on the methods in the above embodiments, this application provides a computing device, which includes a motherboard and a chip. The chip is integrated on the motherboard and includes at least one memory for storing a program; and at least one processor for executing the program stored in the memory. When the program stored in the memory is executed, the processor executes the methods in the above embodiments. In this application, the computing device may be a server, a network device such as a server.

[0186] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.

[0187] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0188] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application.

Claims

1. A method of link failure pre-warning for a fibre channel bus adapter, characterized in that, Applied to a server, the method includes: The server's in-band processor obtains data transmission information of the Fibre Channel bus adapter link within the operating system; the data transmission information includes the amount of data transmitted by the Fibre Channel bus adapter, as well as the amount of data that has experienced data transmission failures. The in-band processor sends the data transmission information of the Fibre Channel bus adapter link to the out-of-band processor of the server; Based on the data transmission information of the Fibre Channel bus adapter link, the out-of-band processor determines the link fault warning information of the Fibre Channel bus adapter; Before the server's in-band processor obtains the link data transmission information of the Fibre Channel bus adapter within the operating system, the method further includes: The out-of-band processor receives parameter configuration information, which is used to instruct the in-band processor on the rules for acquiring data transmission information of the Fibre Channel bus adapter link. The out-of-band processor sends the parameter configuration information to the in-band processor, so that the in-band processor can obtain the link data transmission information of the Fibre Channel bus adapter according to the parameter configuration information.

2. The method of claim 1, wherein, The server's in-band processor obtains link data transmission information from the Fibre Channel bus adapter within the operating system, including: The server's in-band processor obtains the link data transmission information of the Fibre Channel bus adapter in the first directory of the operating system; the first directory stores information about the device nodes on the Fibre Channel bus in the server host.

3. The method of claim 1, wherein, The server's in-band processor obtains data transmission information of the Fibre Channel bus adapter link within the operating system, including: The in-band processor receives first information sent by the out-of-band processor, the first information being used to indicate the acquisition of data transmission information of the link of the Fibre Channel bus adapter; The in-band processor, in response to the received first information, acquires the data transmission information of the link of the Fibre Channel bus adapter.

4. The method of claim 1, wherein, The amount of data transmitted by the Fibre Channel bus adapter includes: the number of bytes sent and the number of bytes received; The data transmission information based on the link of the Fibre Channel bus adapter, and the link fault warning information determined by the out-of-band processor for the Fibre Channel bus adapter, include: The out-of-band processor determines the average data packet transmission rate of the Fibre Channel bus adapter port during the first time period based on the number of bytes transmitted by the port during the first time period. It then compares this average data packet transmission rate with a pre-set first traffic threshold. If the average data packet transmission rate exceeds the first traffic threshold, the out-of-band processor generates a first alarm message indicating that the Fibre Channel bus adapter port traffic is too high; or... The out-of-band processor determines the average traffic of data packets received by the port of the Fibre Channel bus adapter during the first time period based on the number of bytes received by the port during the first time period. It then compares the average traffic of received data packets with a preset second traffic threshold. If the average traffic of sent data packets is greater than the second traffic threshold, the out-of-band processor generates a first alarm message.

5. The method of claim 1, wherein, The amount of data transmitted by the Fibre Channel bus adapter includes: the number of received frames; the amount of data in which the Fibre Channel bus adapter experiences data transmission failures includes: the number of error frames, the number of cyclic redundancy check (CRC) error frames, and the number of decoding error frames. The data transmission information based on the link of the Fibre Channel bus adapter, and the link fault warning information determined by the out-of-band processor for the Fibre Channel bus adapter, include: The out-of-band processor determines a first bit error rate (BER) of the Fibre Channel bus adapter port based on the number of received frames and the number of erroneous frames received by the port within a first time period. It then compares the first BER with a first BER threshold. If the first BER is greater than the first BER threshold, a second alarm message is generated. The second alarm message indicates that the Fibre Channel bus adapter port's BER is too high. Alternatively... The out-of-band processor determines a second bit error rate (BER) of the Fibre Channel bus adapter port based on the number of received frames and the number of CRC error frames received by the port within a first time period. It then compares the second BER with a second BER threshold. If the second BER is greater than the second BER threshold, a second alarm message is generated; or... The out-of-band processor determines the third bit error rate of the Fibre Channel bus adapter port based on the number of received frames and the number of decoded error frames received by the port in the first time period, compares the third bit error rate with a third bit error rate threshold, and generates a second alarm message if the third bit error rate is greater than the third bit error rate threshold.

6. The method of claim 1, wherein, The amount of data transmitted by the Fibre Channel bus adapter includes: the number of received frames; the amount of data in which the Fibre Channel bus adapter experiences data transmission failures includes: the number of lost signals and the number of lost frames due to insufficient trust between ports. The data transmission information based on the link of the Fibre Channel bus adapter, and the link fault warning information determined by the out-of-band processor for the Fibre Channel bus adapter, include: The out-of-band processor determines the number of optical power loss events of the Fibre Channel bus adapter link based on the number of lost signals at the port within a first time period. It then compares these events with a set optical power loss threshold. If the number of optical power loss events exceeds the threshold, a third alarm message is generated. This third alarm message indicates that the received optical power at the port of the Fibre Channel bus adapter is too low. Alternatively... The out-of-band processor determines the packet loss rate of the Fibre Channel bus adapter port based on the number of received frames received by the port within a first time period and the number of lost frames due to insufficient credit between ports. It then compares the packet loss rate with a packet loss rate threshold. If the packet loss rate exceeds the threshold, a fourth alarm message is generated. This fourth alarm message indicates that the Fibre Channel bus adapter port is experiencing excessive packet loss. Alternatively... The out-of-band processor compares the number of frames lost due to insufficient credit obtained by the port of the Fibre Channel bus adapter in the first time period with a generated frame loss threshold. If the number of frames lost is greater than the frame loss threshold, a fourth alarm message is generated.

7. The method of claim 1, wherein, The in-band processor sends the data transmission information of the Fibre Channel bus adapter link to the out-of-band processor of the server, including: The in-band processor sends the data transmission information to the out-of-band processor through the communication interface between the in-band processor and the out-of-band processor.

8. The method according to claim 7, characterized in that, The in-band processor sends the transmission data to the out-of-band processor through the communication interface between the in-band processor and the out-of-band processor, including: the in-band processor sends the data transmission information to the out-of-band processor through the network protocol address of the out-of-band processor and the communication interface on the out-of-band processor side; the network protocol address and communication interface of the out-of-band processor are pre-mapped with the network protocol address of the operating system.

9. A server, characterized in that, include: At least one memory for storing programs; At least one processor is configured to execute a program stored in memory, wherein when the program stored in memory is executed, the processor is configured to perform the method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Server HBA card model identification method and system, terminal and storage medium

    CN113626276A

  • Computing equipment and power supply method of computing equipment

    CN116719400A