An expansion module, fault location method, terminal equipment, medium and product

By introducing an extension module including a signal acquisition and processing module into the computing device, the problem of low fault location accuracy in the existing technology is solved, the independent acquisition and analysis of multi-link signals is realized, and the accuracy of fault location is improved.

CN120387197BActive Publication Date: 2025-09-12INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510887545.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-12
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

The fault location method in the prior art has the problem of low accuracy, especially when detecting link signals, the original topology structure is destroyed and only one link signal can be detected.

Method used

By introducing an expansion module into the computing device, the module includes an expander, a signal acquisition module, and a signal processing module. The signal acquisition module contains multiple acquisition components and can independently collect signals from multiple links; the signal processing module analyzes these signals and obtains signal characteristics.

Benefits of technology

It achieves the ability to independently collect and analyze signals from multiple links without destroying the original topology of the links, thereby improving the accuracy of link signal detection and thus improving the accuracy of fault location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120387197B_ABST
    Figure CN120387197B_ABST
Patent Text Reader

Abstract

The present application discloses an expansion module, a fault location method, a terminal device, a medium, and a product. The expansion module includes an expander, a signal acquisition module, and a signal processing module; the signal acquisition module includes multiple acquisition components; the expansion module belongs to a computing device; the signal processing module is connected to the expander and the signal acquisition module respectively; for any acquisition component in the signal acquisition module, the host controller in the computing device is connected to the expander through the acquisition component; or, the hard disk in the computing device is connected to the expander through the acquisition component. Based on the above structure, the expansion module can detect and analyze link signals, improve the accuracy of link signal detection, thereby improving the accuracy of link characteristics obtained based on link signals, and further improving the accuracy of fault location (determining the cause of the fault).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computing devices, and in particular to an expansion module, a fault location method, a terminal device, a medium, and a product. Background Art

[0002] In computing devices, the host controller can connect to multiple hard drives via expanders. To ensure storage reliability in computing devices, real-time link monitoring and fault location are required.

[0003] In the related art, it is necessary to disconnect the link (the link between the hard disk and the expander, or the link between the expander and the host controller) and connect the analyzer to the link to locate the fault based on the monitored link signal.

[0004] However, in the related art, destroying the original link to access the analyzer will, on the one hand, change the original topology structure and signal transmission environment of the link, and on the other hand, only detect the link signal of one link, resulting in the method in the related art having a low accuracy rate in fault location. Summary of the Invention

[0005] The present application provides an expansion module, a fault location method, a terminal device, a medium and a product to at least solve the problem of low fault location accuracy in related technologies.

[0006] The present application provides an expansion module, including an expander, a signal acquisition module, and a signal processing module; the signal acquisition module includes multiple acquisition components; the expansion module belongs to a computing device;

[0007] The signal processing module is connected to the expander and the signal acquisition module respectively;

[0008] For any acquisition component in the signal acquisition module, the host controller in the computing device is connected to the expander through the acquisition component; or the hard disk in the computing device is connected to the expander through the acquisition component.

[0009] This application also provides a fault location method, which includes:

[0010] Obtaining a collection start instruction through the expander in the expansion module, and sending the collection start instruction to the signal collection module in the expansion module;

[0011] Determining, by the signal acquisition module, at least one target acquisition component from a plurality of acquisition components according to an acquisition start instruction, and acquiring a link signal of at least one link based on the at least one target acquisition component;

[0012] Acquiring, through the signal processing module in the extension module, a link signal of at least one link sent by the signal acquisition module;

[0013] The signal processing module analyzes the link signal of at least one link to obtain the signal characteristics of the at least one link; the signal characteristics of the at least one link are used by the terminal device to determine the cause of the fault.

[0014] This application also provides a fault location method, including:

[0015] Obtaining signal characteristics of at least one link; wherein the signal characteristics of at least one link are obtained by the extension module obtaining a collection start instruction through an expander in the extension module, sending the collection start instruction to the signal analysis module in the extension module, determining at least one target collection component from multiple collection components according to the collection start instruction by the signal analysis module, and collecting link signals of the at least one link based on the at least one target collection component, obtaining the link signal of the at least one link sent by the signal collection module through the signal processing module in the extension module, and analyzing the link signal of the at least one link through the signal processing module;

[0016] The cause of the fault is determined based on the signal characteristics of at least one link.

[0017] This application also provides a fault location method, including:

[0018] The extension module obtains the acquisition start instruction through the extender in the extension module, and sends the acquisition start instruction to the signal analysis module in the extension module;

[0019] The extension module determines at least one target collection component from the plurality of collection components according to the collection start instruction through the signal analysis module, and collects the link signal of at least one link based on the at least one target collection component;

[0020] The extension module obtains the link signal of at least one link sent by the signal acquisition module through the signal processing module in the extension module;

[0021] The extension module analyzes the link signal of at least one link through the signal processing module to obtain the signal characteristics of the at least one link;

[0022] The terminal device obtains a signal characteristic of at least one link;

[0023] The terminal device determines the cause of the fault based on the signal characteristics of at least one link.

[0024] The present application also provides a terminal device, including:

[0025] memory for storing computer programs;

[0026] The processor is configured to implement the steps of the aforementioned fault location method when executing a computer program.

[0027] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the aforementioned fault location method are implemented.

[0028] The present application also provides a computer program product, including a computer program, which implements the steps of the aforementioned fault location method when executed by a processor.

[0029] Through this application, a signal acquisition module (including multiple acquisition components (each acquisition component can acquire the link signal of the link)) with the ability to detect link signals and a signal processing module with the ability to process link signals are combined with an expander to form an extension module. The acquisition component is then set between the host controller and the expander, or between the hard disk and the expander. This allows the extension module to have the ability to acquire link signals of multiple links and analyze them without destroying the original topology structure and signal transmission environment of the link, thereby improving the accuracy of link signal detection, thereby improving the accuracy of obtaining link features, and further improving the accuracy of fault location (determining the cause of the fault). BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0031] Figure 1 A schematic diagram of a fault location scenario in related technologies;

[0032] Figure 2 A schematic diagram of the structure of a computing device provided in an embodiment of the present application Figure 1 ;

[0033] Figure 3 A schematic diagram of the structure of a computing device provided in an embodiment of the present application Figure 2 ;

[0034] Figure 4 A schematic diagram of the structure of a computing device provided in an embodiment of the present application Figure 3 ;

[0035] Figure 5 A schematic diagram of a fault location method provided in an embodiment of the present application Figure 1 ;

[0036] Figure 6 A schematic diagram of a fault location method provided in an embodiment of the present application Figure 2 ;

[0037] Figure 7 A schematic diagram of a fault location method provided in an embodiment of the present application Figure 3 ;

[0038] Figure 8 A schematic diagram of a fault location method provided in an embodiment of the present application Figure 4 ;

[0039] Figure 9 A schematic structural diagram of a fault location device provided in an embodiment of the present application;

[0040] Figure 10 This is a schematic diagram of the structure of the terminal device provided in this application. DETAILED DESCRIPTION

[0041] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative work are within the scope of protection of this application.

[0042] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0043] For example, Figure 1 Schematic diagram of the fault location scenario in related technologies. Figure 1 As shown, the scenario includes a computing device 10 and an analyzer 30. In the computing device 10, a host controller 101 can be connected to multiple hard disks through an expander 102. For example, Figure 1 Three hard disks are shown, namely hard disk 103 , hard disk 104 and hard disk 105 .

[0044] In order to ensure the storage reliability of computing devices, real-time monitoring and fault location of links are required.

[0045] In the related art, it is necessary to disconnect a link (a link between a hard disk and an expander, or a link between an expander and a host controller) and connect the analyzer 30 to the link (such as a link between a hard disk and an expander) to locate the fault based on the monitored link signal.

[0046] However, in the related art, destroying the original link to access the analyzer will, on the one hand, change the original topology structure and signal transmission environment of the link, and on the other hand, only detect the link signal of one link, resulting in the method in the related art having a low accuracy rate in fault location.

[0047] Therefore, in response to the above technical problems in the relevant technology, it was found in the process of research that if a signal acquisition module (including multiple acquisition components (each acquisition component can acquire the link signal of the link)) with the ability to detect link signals and a signal processing module with the ability to process link signals are combined with an expander to form an expansion module, and then the acquisition component is set between the host controller and the expander, or between the hard disk and the expander, the expansion module can be equipped with the ability to acquire link signals of multiple links and analyze them without destroying the original topology structure and signal transmission environment of the link. Therefore, the present application proposes an expansion module, a fault location method, a terminal device, a medium and a product. Specifically, the expansion module includes an expander, a signal acquisition module and a signal processing module; the signal acquisition module includes multiple acquisition components; the expansion module belongs to a computing device; the signal processing module is connected to the expander and the signal acquisition module respectively; for any acquisition component in the signal acquisition module, the host controller in the computing device is connected to the expander through the acquisition component; or, the hard disk in the computing device is connected to the expander through the acquisition component.

[0048] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0049] Figure 2 A schematic diagram of the structure of a computing device provided in an embodiment of the present application Figure 1 .

[0050] like Figure 2 As shown, the computing device 20 includes a host controller 201 , an expansion module 202 , and a plurality of hard disks.

[0051] For example, Figure 2 Three hard disks are shown, namely hard disk 0, hard disk 1 and hard disk 2. Figure 2 As shown, in one implementation, the computing device 20 may further include a processor 203 and a memory 204 .

[0052] The extension module 202 includes a signal acquisition module 2021 , an expander 2022 and a signal processing module 2023 .

[0053] The signal acquisition module 2021 may include multiple acquisition components. For example, Figure 2 It is shown that the signal acquisition module 2021 includes seven acquisition components, namely acquisition component 0, acquisition component 1, acquisition component 2, acquisition component 3, acquisition component 4, acquisition component 5 and acquisition component 6.

[0054] It should be noted that the signal processing module 2023 is connected to the expander 2022 and the signal acquisition module 2021 respectively.

[0055] For any acquisition component in the signal acquisition module 2021, the host controller 201 in the computing device 20 is connected to the expander 2022 through the acquisition component; or, the hard disk in the computing device 10 is connected to the expander 2022 through the acquisition component.

[0056] For example, Figure 2 As shown, when the signal acquisition module 2021 includes acquisition component 0, acquisition component 1, acquisition component 2, acquisition component 3, acquisition component 4, acquisition component 5 and acquisition component 6:

[0057] Regarding the acquisition component 0 , the host controller 201 is connected to the expander 2022 via the acquisition component 0 .

[0058] Regarding the acquisition component 1 , the host controller 201 is connected to the expander 2022 via the acquisition component 1 .

[0059] Regarding the acquisition component 2 , the host controller 201 is connected to the expander 2022 via the acquisition component 2 .

[0060] Regarding the acquisition component 3 , the host controller 201 is connected to the expander 2022 via the acquisition component 3 .

[0061] Regarding the acquisition component 4 , the hard disk 0 is connected to the expander 2022 through the acquisition component 4 .

[0062] Regarding the acquisition component 5 , the hard disk 1 is connected to the expander 2022 through the acquisition component 5 .

[0063] Regarding the acquisition component 6 , the hard disk 1 is connected to the expander 2022 through the acquisition component 6 .

[0064] In addition, it should be noted that, when the computing device 20 includes a processor 203 and a memory 204 , the processor 203 may be connected to the host controller 201 and the memory 204 , respectively.

[0065] It should be noted that the host controller 201 may be a host bus adapter (HBA) card, a redundant array of independent disks (RAID) card, or other types of host controllers, which are not limited in the present embodiment.

[0066] The hard disk may be a solid-state hard disk, a mechanical hard disk, or other types of hard disks, and the embodiments of the present application are not limited thereto.

[0067] The beneficial effects of this embodiment are as follows: a signal acquisition module (including multiple acquisition components) with the ability to detect link signals and a signal processing module with the ability to process link signals are combined with an expander to form an extension module. Then, by using the extension module connected between the host controller and the hard disk, link signals can be detected and analyzed without destroying the original topology structure and signal transmission environment of the link, so as to obtain the signal characteristics of at least one link, thereby improving the accuracy of link signal detection, thereby improving the accuracy of obtaining link characteristics, and further improving the accuracy of fault location (determining the cause of the fault).

[0068] Figure 3 A schematic diagram of the structure of a computing device provided in an embodiment of the present application Figure 2 .

[0069] In this embodiment, the expander 2022 may include multiple ports.

[0070] For any acquisition component in the signal acquisition module 2021:

[0071] The host controller 201 can be connected to a port of the expander 2022 through the acquisition component;

[0072] or,

[0073] The hard disk can be connected to a port of the expander 2022 through the acquisition component.

[0074] For example, Figure 3 As shown, when the signal acquisition module 2021 includes acquisition component 0, acquisition component 1, acquisition component 2, acquisition component 3, acquisition component 4, acquisition component 5 and acquisition component 6:

[0075] For acquisition component 0, the host controller 201 is connected to port 0 of the expander 2022 through the acquisition component 0. It should be noted that the link connecting the host controller 201 to the port 0 of the expander 2022 through the acquisition component 0 can be a link for the signal acquisition module 2021 to collect link signals based on the acquisition component 0.

[0076] For the acquisition component 1, the host controller 201 is connected to the port 1 of the expander 2022 through the acquisition component 1. It should be noted that the link connecting the host controller 201 to the port 1 of the expander 2022 through the acquisition component 1 can be a link for the signal acquisition module 2021 to collect link signals based on the acquisition component 1.

[0077] With respect to the acquisition component 2, the host controller 201 is connected to the port 2 of the expander 2022 through the acquisition component 2. It should be noted that the link connecting the host controller 201 to the port 2 of the expander 2022 through the acquisition component 2 can be a link for the signal acquisition module 2021 to collect link signals based on the acquisition component 2.

[0078] With respect to the acquisition component 3, the host controller 201 is connected to the port 3 of the expander 2022 via the acquisition component 3. It should be noted that the link in which the host controller 201 is connected to the port 3 of the expander 2022 via the acquisition component 3 can be a link in which the signal acquisition module 2021 can collect link signals based on the acquisition component 3.

[0079] Regarding the acquisition component 4, the hard disk 0 is connected to the port 4 of the expander 2022 through the acquisition component 4. It should be noted that the link connecting the hard disk 0 to the port 4 of the expander 2022 through the acquisition component 4 can be a link for the signal acquisition module 2021 to collect link signals based on the acquisition component 4.

[0080] Regarding the acquisition component 5, the hard disk 1 is connected to the port 5 of the expander 2022 through the acquisition component 5. It should be noted that the link connecting the hard disk 1 to the port 5 of the expander 2022 through the acquisition component 5 can be a link for the signal acquisition module 2021 to collect link signals based on the acquisition component 5.

[0081] Regarding the acquisition component 6, the hard disk 1 is connected to the port 6 of the expander 2022 through the acquisition component 6. It should be noted that the link connecting the hard disk 2 to the port 6 of the expander 2022 through the acquisition component 6 can be a link for the signal acquisition module 2021 to collect link signals based on the acquisition component 6.

[0082] Beneficial effects of this embodiment: In this embodiment, the expander may include multiple ports. For any acquisition component in the signal acquisition module, the host controller in the computing device is connected to a port of the expander through the acquisition component; or, the hard disk in the computing device is connected to a port of the expander through the acquisition component. Based on the above structure, the signal acquisition module can use each acquisition component to independently acquire the signal of each link. That is to say, based on the above structure, the signal analysis module supports the independent acquisition and processing of the link signal of a single link, and also supports the parallel acquisition and processing of the link signal of multiple links, thereby improving the efficiency and accuracy of the acquisition and processing of the link signal, and thereby improving the efficiency and accuracy of fault location.

[0083] Figure 4 A schematic diagram of the structure of a computing device provided in an embodiment of the present application Figure 3 .like Figure 4 As shown, the computing device 20 may include multiple control boards and multiple hard disks. For example, Figure 4 Three hard disks are shown, namely hard disk 1, hard disk 2, and hard disk 3.

[0084] Each control board includes a host controller, an expansion module, a processor, and a memory.

[0085] The expansion module includes a signal acquisition module, a signal processing module and an expander.

[0086] The processor is connected to the host controller and the memory respectively.

[0087] The signal processing module is connected to the expander and the signal acquisition module respectively.

[0088] For any acquisition component in the signal acquisition module, the host controller is connected to the expander through the acquisition component; or the hard disk is connected to the expander through the acquisition component.

[0089] For example, Figure 4 The computing device 20 is shown to include two control boards, namely control board 1 and control board 2 .

[0090] The control board 1 includes a host controller 201 , an expansion module 202 , a processor 203 and a memory 204 .

[0091] The extension module 202 includes a signal acquisition module 2021 , a signal processing module 2023 and an expander 2022 .

[0092] The signal acquisition module 2021 includes multiple acquisition components. For example, Figure 4It is shown that the signal acquisition module 2021 includes 7 acquisition components, namely acquisition component 0, acquisition component 1, acquisition component 2, acquisition component 3, acquisition component 4, acquisition component 5 and acquisition component 6.

[0093] The processor 203 is connected to the host controller 201 and the memory 204 respectively.

[0094] The signal processing module 2023 is connected to the expander 2022 and the signal acquisition module 2021 respectively.

[0095] For any acquisition component in the signal acquisition module 2021 , the host controller 201 is connected to the expander 2022 through the acquisition component; or the hard disk is connected to the expander 2022 through the acquisition component.

[0096] The control board 2 includes a host controller 205 , an expansion module 206 , a processor 207 and a memory 208 .

[0097] The extension module 206 includes a signal acquisition module 2061 , a signal processing module 2063 and an expander 2062 .

[0098] The signal acquisition module 2061 includes multiple acquisition components. For example, Figure 4 It is shown that the signal acquisition module 2061 includes 7 acquisition components, namely acquisition component 7, acquisition component 8, acquisition component 9, acquisition component 10, acquisition component 11, acquisition component 12 and acquisition component 13.

[0099] The signal processing module 2063 is connected to the expander 2062 and the signal acquisition module 2061 respectively.

[0100] For any acquisition component in the signal acquisition module 2061 , the host controller 205 is connected to the expander 2062 through the acquisition component; or the hard disk is connected to the expander 2062 through the acquisition component.

[0101] like Figure 4 As shown:

[0102] Regarding the acquisition component 0 , the host controller 201 is connected to the expander 2022 via the acquisition component 0 .

[0103] Regarding the acquisition component 1 , the host controller 201 is connected to the expander 2022 via the acquisition component 1 .

[0104] Regarding the acquisition component 2 , the host controller 201 is connected to the expander 2022 via the acquisition component 2 .

[0105] Regarding the acquisition component 3 , the host controller 201 is connected to the expander 2022 via the acquisition component 3 .

[0106] Regarding the acquisition component 4 , the hard disk 0 is connected to the expander 2022 through the acquisition component 4 .

[0107] Regarding the acquisition component 5 , the hard disk 1 is connected to the expander 2022 through the acquisition component 5 .

[0108] Regarding the acquisition component 6 , the hard disk 1 is connected to the expander 2022 through the acquisition component 6 .

[0109] Regarding the acquisition component 7 , the host controller 205 is connected to the expander 2062 through the acquisition component 7 .

[0110] Regarding the acquisition component 8 , the host controller 205 is connected to the expander 2062 through the acquisition component 8 .

[0111] Regarding the acquisition component 9 , the host controller 205 is connected to the expander 2062 through the acquisition component 9 .

[0112] Regarding the acquisition component 10 , the host controller 205 is connected to the expander 2062 through the acquisition component 10 .

[0113] Regarding the acquisition component 11 , the hard disk 0 is connected to the expander 2062 through the acquisition component 11 .

[0114] Regarding the acquisition component 12 , the hard disk 1 is connected to the expander 2062 through the acquisition component 12 .

[0115] Regarding the acquisition component 13 , the hard disk 1 is connected to the expander 2062 through the acquisition component 13 .

[0116] Beneficial effects of this embodiment: In this embodiment, the computing device includes multiple control boards and multiple hard disks. For each control board, the control board includes a host controller, an expansion module, a processor and a memory. The expansion module includes an expander, a signal acquisition module and a signal processing module; the signal acquisition module includes multiple acquisition components. The signal processing module is connected to the expander and the signal acquisition module respectively. For any acquisition component in the signal acquisition module, the host controller in the control board is connected to the expander through the acquisition component; or, the hard disk in the computing device is connected to the expander through the acquisition component. Through the above structure, the terminal device can determine the cause of the fault based on the signal characteristics of at least one link collected and analyzed by the expansion modules in each control board, thereby improving the efficiency and accuracy of determining the cause of the fault and reducing the cost of fault location.

[0117] Figure 5 A schematic diagram of a fault location method provided in an embodiment of the present application Figure 1 , see Figure 5, the method specifically comprises the following steps:

[0118] S501: Obtain an acquisition start instruction through the extender in the extension module, and send the acquisition start instruction to the signal acquisition module in the extension module.

[0119] In this embodiment, the expansion module includes an expander, a signal acquisition module, and a signal processing module. The signal acquisition module includes multiple acquisition components. The expansion module belongs to the computing device. The signal processing module is connected to the expander and the signal acquisition module respectively. For any acquisition component in the signal acquisition module, the host controller in the computing device is connected to the expander through the acquisition component; alternatively, the hard disk in the computing device is connected to the expander through the acquisition component.

[0120] In one implementation, the expander includes multiple ports. For any acquisition component in the signal acquisition module, a host controller in the computing device is connected to a port of the expander via the acquisition component; or a hard disk in the computing device is connected to a port of the expander via the acquisition component.

[0121] The extension module can obtain the acquisition start instruction through the expander and send the acquisition start instruction to the signal acquisition module.

[0122] The following describes the process of the expansion module obtaining the acquisition start instruction through the expander.

[0123] In one implementation:

[0124] Each link consists of multiple protocol layers, including the physical layer, link layer, port layer, transport layer, and application layer.

[0125] It should be noted that the link is a link connecting a host controller to a port of an expander via a collection component, or a link is a link connecting a hard disk to a port of an expander via a collection component.

[0126] The expansion module can determine whether there is a protocol layer in a fault state among multiple protocol layers of multiple links through the expander.

[0127] The following describes a process in which the extender determines whether a protocol layer in a plurality of protocol layers of a plurality of links is in a fault state.

[0128] In one implementation:

[0129] For any protocol layer of any link, the expansion module can obtain the value of the status register corresponding to the protocol layer through the expander.

[0130] The value of the status register is a first value or a second value, the first value indicates that the state of the protocol layer is a fault state, and the second value indicates that the state of the protocol layer is a normal state.

[0131] The expansion module can determine that there is a protocol layer in a fault state among the multiple protocol layers of the multiple links when the expander determines that the value of the status register corresponding to at least one protocol layer among the multiple protocol layers of the multiple links is the first value.

[0132] The expansion module can determine through the expander that there is no protocol layer in a fault state among the multiple protocol layers of the multiple links when the value of the status register corresponding to each protocol layer in the multiple protocol layers of the multiple links is all the second value.

[0133] The expansion module can generate a collection start instruction through the expander in the case where a protocol layer in a fault state exists in multiple protocol layers of multiple links.

[0134] In one implementation:

[0135] The expansion module can obtain the acquisition start instruction sent by the processor through the host controller through the expander.

[0136] The following describes the process of the processor generating a collection start instruction.

[0137] In one implementation, the acquisition start instruction is generated by the processor when it detects that a protocol layer in a faulty state exists among multiple protocol layers of multiple links. In one implementation, the host controller may generate alarm indication information when it identifies that a protocol layer in a faulty state exists among multiple protocol layers of multiple links. Upon receiving the alarm indication information sent by the host controller, the processor determines that a protocol layer in a faulty state exists among multiple protocol layers of the multiple links. It should be noted that each link includes multiple protocol layers; the link is a first link or a second link.

[0138] In one implementation, the acquisition start instruction is generated by the processor when an input / output (IO) error is detected. For example, the acquisition start instruction may be generated by the processor when an IO error is detected on hard disk 0.

[0139] In one implementation:

[0140] When the extender is connected to the terminal device, the extension module can obtain the collection start instruction sent by the terminal device through the extender.

[0141] It should be noted that, in one implementation, the terminal device may obtain a user-input collection start request. It is understandable that the terminal device may obtain the user-input collection start request through the terminal device's human-computer interaction interface. The terminal device may generate a collection start instruction based on the collection start request. In one implementation, the collection start request may include an analysis method. In one implementation, the analysis method may include an identifier of the target port. In another implementation, the analysis method may also include an identifier of the target protocol layer. In another implementation, the analysis method may also include an identifier of a signal characteristic.

[0142] S502: Determine, by the signal acquisition module, at least one target acquisition component from a plurality of acquisition components according to an acquisition start instruction, and acquire link signals of at least one link based on the at least one target acquisition component.

[0143] In this embodiment, the extension module may determine at least one target collection component from a plurality of collection components according to a collection start instruction via the signal collection module.

[0144] The following describes in detail the process in which the extension module determines at least one target acquisition component from a plurality of acquisition components through the signal acquisition module according to the acquisition start instruction.

[0145] In one implementation:

[0146] The acquisition start instruction includes an identifier of at least one target port. In addition, in one implementation, the acquisition start instruction may include an identifier of a target protocol layer and / or an identifier of a signal characteristic.

[0147] The extension module may determine all ports as target ports through the signal acquisition module when determining that the acquisition start instruction includes an identifier of at least one target port.

[0148] The extension module can determine the acquisition component connected to the target port as the target acquisition component through the signal acquisition module.

[0149] In one implementation:

[0150] The acquisition start instruction includes an identifier of at least one target port.

[0151] The extension module may obtain the identifier of at least one target port in the acquisition start instruction through the signal acquisition module.

[0152] The extension module may determine at least one target port from the plurality of ports according to an identifier of the at least one target port through the signal acquisition module.

[0153] The extension module can determine the acquisition component connected to the target port as the target acquisition component through the signal acquisition module.

[0154] In addition, after determining at least one target collection component through the signal collection module, the extension module collects the link signal of at least one link based on the at least one target collection component.

[0155] It should be noted that, when a host controller in a computing device is connected to a port of an expander via a target acquisition component, the link is the link connecting the host controller to the port of the expander via the target acquisition component. When a hard disk in a computing device is connected to a port of an expander via a target acquisition component, the link is the link connecting the hard disk to the port of the expander via the target acquisition component.

[0156] In one implementation, the extension module, through the signal collection module, can obtain a stop collection instruction via the extender while collecting link signals of at least one link. The extension module sends the stop collection instruction to the signal collection module via the extender. The extension module, through the signal collection module, stops collecting link signals of the at least one link based on at least one target collection component in accordance with the stop collection instruction.

[0157] S503: Acquire, through the signal processing module in the extension module, a link signal of at least one link sent by the signal acquisition module.

[0158] In this embodiment, the extension module may obtain the link signal of at least one link sent by the signal acquisition module through the signal processing module in the extension module.

[0159] S504: Analyze the link signal of at least one link through the signal processing module to obtain the signal characteristics of the at least one link.

[0160] In this embodiment, the extension module may analyze the link signal of at least one link through the signal processing module to obtain the signal characteristics of the at least one link.

[0161] The following describes a process in which the extension module analyzes the link signal of at least one link through the signal processing module to obtain the signal characteristics of at least one link.

[0162] In one implementation:

[0163] For the link signal of any link, the extension module can filter the link signal through the signal processing module to obtain a filtered link signal.

[0164] The extension module can extract features from the filtered link signal through the signal processing module to obtain physical layer signal features from the link signal characteristics. It should be noted that, in one implementation, the physical layer signal features may include at least one or more of the following: physical layer features, including signal amplitude, jitter (random or deterministic), eye opening, signal-to-noise ratio, rise time, and fall time.

[0165] The extension module can decode the filtered link signal through the signal processing module to obtain a decoded link signal.

[0166] The extension module can extract features of the decoded link signal through the signal processing module to obtain link layer signal features, port layer signal features, transport layer signal features and application layer signal features in the link signal features.

[0167] It should be noted that, in one implementation, the link layer signal characteristics may include at least one or more of the following: bit error rate, frame error rate, retransmission rate, link training status, and clock recovery quality information.

[0168] In one implementation, the port layer signal characteristics may include at least one or more of the following: port type, port connection status, and physical layer utilization.

[0169] In one implementation, the transport layer signal characteristics may include at least one or more of the following: instruction type distribution, response timeout rate, command completion time distribution, and queue depth.

[0170] In one implementation, the application layer signal characteristics may include at least one or more of the following: the number of input / output operations per second (IOPS), throughput, average response time, and input / output (IO) size distribution.

[0171] It should be noted that the signal characteristics of at least one link are used by the terminal device to determine the cause of the fault.

[0172] Beneficial effects of this embodiment: In this embodiment, the extension module can obtain a collection start instruction through the expander in the extension module and send the collection start instruction to the signal collection module in the extension module. The extension module can determine at least one target collection component from multiple collection components through the signal collection module according to the collection start instruction, and collect the link signal of at least one link based on the at least one target collection component. The extension module can obtain the link signal of at least one link sent by the signal collection module through the signal processing module in the extension module. The extension module can analyze the link signal of at least one link through the signal processing module to obtain the signal characteristics of at least one link; the signal characteristics of at least one link are used by the terminal device to determine the cause of the fault. By using the above-mentioned method of collecting and analyzing link signals based on the extension module, the accuracy of link signal detection is improved, thereby improving the accuracy of link signal analysis, and further improving the accuracy of fault location (determining the cause of the fault).

[0173] Figure 6 A schematic diagram of a fault location method provided in an embodiment of the present application Figure 2 , see Figure 6 , the method specifically comprises the following steps:

[0174] S601: Obtain an acquisition start instruction through the extender in the extension module, and send the acquisition start instruction to the signal acquisition module in the extension module.

[0175] In this embodiment, the extension module may obtain the acquisition start instruction through the extender in the extension module, and send the acquisition start instruction to the signal acquisition module in the extension module.

[0176] The specific implementation process is the same as S501 and will not be repeated here.

[0177] S602: Acquire, through a signal acquisition module, an identifier of at least one target port in the acquisition start instruction.

[0178] In this embodiment, the acquisition start instruction includes an identifier of at least one target port.

[0179] The extension module may obtain the identifier of at least one target port in the acquisition start instruction through the signal acquisition module.

[0180] For example, when the processor reports an IO error based on hard disk 0, a collection start instruction may be generated. The collection start instruction may include the identifier of port 4, the identifier of port 0, the identifier of port 1, the identifier of port 2, and the identifier of port 3.

[0181] S603: Determine at least one target port from the plurality of ports according to the identifier of the at least one target port by the signal acquisition module.

[0182] In this embodiment, the signal acquisition module of the extension module can record the identifier of each port.

[0183] The extension module can determine at least one target port according to the identifier of at least one target port through the signal acquisition module. It should be noted that the target port is a port among the multiple ports.

[0184] S604: The signal acquisition module determines the acquisition component connected to the target port as the target acquisition component.

[0185] In this embodiment, the signal acquisition module can record the acquisition components connected to each port.

[0186] The extension module can determine the acquisition component connected to the target port as the target acquisition component through the signal acquisition module.

[0187] S605: Collect link signals of at least one link through the signal collection module based on at least one target collection component.

[0188] In this embodiment, the extension module may collect link signals of at least one link based on at least one target collection component through the signal collection module.

[0189] S606: Acquire, through the signal processing module in the extension module, a link signal of at least one link sent by the signal acquisition module.

[0190] In this embodiment, the extension module may obtain the link signal of at least one link sent by the signal acquisition module through the signal processing module in the extension module.

[0191] S607: Analyze the link signal of at least one link through the signal processing module to obtain the signal characteristics of the at least one link.

[0192] In this embodiment, the extension module may analyze the link signal of at least one link through the signal processing module to obtain the signal characteristics of the at least one link.

[0193] Beneficial effects of this embodiment: In this embodiment, the extension module can, through the signal acquisition module, determine at least one target port from multiple ports based on the identifier of at least one target port, and then determine at least one target acquisition component, thereby using the at least one target acquisition component to acquire the link signal of at least one link. Through the above method, the extension module can independently acquire and analyze the signals of any one or more of the multiple links, thereby improving the accuracy of link signal acquisition and processing, and thus improving the accuracy of fault location. In addition, through the above method, the link signal can be monitored when the link is not faulty, that is, during the test phase of the product (a component in a computing device, such as a hard drive), reducing the complexity of product testing.

[0194] Figure 7 A schematic diagram of a fault location method provided in an embodiment of the present application Figure 3 , see Figure 7 , the method specifically comprises the following steps:

[0195] S701: Obtain an acquisition start instruction through the extender in the extension module, and send the acquisition start instruction to the signal acquisition module in the extension module.

[0196] In this embodiment, the extension module may obtain the acquisition start instruction through the extender in the extension module, and send the acquisition start instruction to the signal acquisition module in the extension module.

[0197] S702: Determine, by the signal acquisition module, at least one target acquisition component from a plurality of acquisition components according to an acquisition start instruction, and acquire link signals of at least one link based on the at least one target acquisition component.

[0198] In this embodiment, the extension module may determine at least one target acquisition component from multiple acquisition components according to the acquisition start instruction through the signal acquisition module, and acquire the link signal of at least one link based on the at least one target acquisition component.

[0199] S703: Acquire, through the signal processing module in the extension module, a link signal of at least one link sent by the signal acquisition module.

[0200] In this embodiment, the extension module may obtain the link signal of at least one link sent by the signal acquisition module through the signal processing module in the extension module.

[0201] S704: Analyze the link signal of at least one link through the signal processing module to obtain the signal characteristics of the at least one link.

[0202] In this embodiment, the extension module may analyze the link signal of at least one link through the signal processing module to obtain the signal characteristics of the at least one link.

[0203] S705: Send the signal characteristics of at least one link to the extender through the signal processing module.

[0204] S706: Determine, via the extender, whether the extender is connected to the terminal device.

[0205] In this embodiment, the extension module may determine, through the extender, whether the extender is connected to the terminal device.

[0206] If yes, execute S707;

[0207] If not, execute S708.

[0208] S707: Send the signal characteristics of at least one link to the terminal device through the extender.

[0209] In this embodiment, the extension module may send the signal characteristics of at least one link to the terminal device through the extender when determining that the extender is connected to the terminal device.

[0210] It should be noted that the signal characteristics of at least one link are used by the terminal device to determine the cause of the fault.

[0211] S708: Send the signal characteristics of at least one link to the processor in the computing device through the expander and the host controller, so that the processor can store the signal characteristics of at least one link in the memory in the computing device.

[0212] In this embodiment, the expansion module may send the signal characteristics of at least one link to the processor in the computing device through the host controller when the expander determines that the expander is not connected to the terminal device.

[0213] The following describes a process in which the expansion module can send the signal characteristics of at least one link to the processor via the expander and the host controller.

[0214] In one implementation:

[0215] The extension module can use the extender to store and process the signal characteristics of at least one link as new log data.

[0216] The expansion module may update the value of the log status register in the expander through the expander to indicate that a log update has occurred.

[0217] Extension modules can generate status updates via the extender.

[0218] The processor can obtain status update information sent by the extender.

[0219] The processor may read the value of the log status register in response to the status update information, and send a read request to the expander through the host controller when recognizing that the value of the log status register indicates that a log update has occurred.

[0220] The expansion module may send a signal characteristic of at least one link to the processor through the host controller in response to a read request via the expander.

[0221] In addition, it should be noted that, after receiving the signal characteristics of at least one link, the processor may store the signal characteristics of at least one link in a memory in the computing device.

[0222] It should be noted that the signal characteristics of at least one link stored in the memory are used for the terminal device to read and process when connected to the computing device.

[0223] It should be noted that the signal characteristics of at least one link are used by the terminal device to determine the cause of the fault.

[0224] The beneficial effects of this embodiment are as follows: when the terminal device is connected to the extender, after obtaining the signal characteristics of at least one link sent by the signal analysis module, the extender directly sends the signal characteristics of at least one link to the terminal device for the terminal device to perform online analysis, thereby avoiding the computing device from storing the signal characteristics of at least one link and improving the storage resource utilization of the computing device. When the terminal device is not connected to the extender, after obtaining the signal characteristics of at least one link sent by the signal analysis module, the extender sends the signal characteristics of at least one link to the processor through the host controller, so that the processor can store the signal characteristics of at least one link in the memory; wherein the signal characteristics of at least one link stored in the memory are used for the terminal device to read and process when connected to the computing device. In this way, the terminal device can perform offline analysis of the signal characteristics of at least one link, thereby avoiding the high cost problem caused by the need to equip each computing device with a terminal device.

[0225] Figure 8 A schematic diagram of a fault location method provided in an embodiment of the present application Figure 4 , see Figure 8 , the method specifically comprises the following steps:

[0226] S801: Acquire signal characteristics of at least one link.

[0227] In this embodiment, the terminal device can obtain the signal characteristics of at least one link.

[0228] Among them, the signal characteristics of at least one link are that the extension module obtains the collection start instruction through the expander in the extension module, sends the collection start instruction to the signal analysis module in the extension module, determines at least one target collection component from multiple collection components according to the collection start instruction through the signal analysis module, and collects the link signal of at least one link based on the at least one target collection component, obtains the link signal of at least one link sent by the signal collection module through the signal processing module in the extension module, and analyzes the link signal of at least one link through the signal processing module.

[0229] In addition, it should be noted that the terminal device can be a terminal device equipped with a Linux operating system, a terminal device equipped with an Android operating system, or a terminal device equipped with other operating systems, and the embodiments of the present application are not limited to this.

[0230] In addition, in one implementation, the terminal device may display the signal characteristics of at least one link.

[0231] S802: Determine a fault cause based on signal characteristics of at least one link.

[0232] In this embodiment, the terminal device may determine the cause of the fault based on the signal characteristics of at least one link.

[0233] In one implementation:

[0234] Terminal devices can obtain link topology information.

[0235] A terminal device can determine the cause of a fault based on the signal characteristics of at least one link and the link topology information. In one implementation, the terminal device can obtain a first correspondence relationship, wherein the first correspondence relationship indicates the correspondence between the signal characteristics of the link, the link topology information, and the cause of the fault. The terminal device can query the first correspondence relationship based on the signal characteristics of the at least one link and the link topology information to determine the cause of the fault.

[0236] Additionally, in one implementation:

[0237] The terminal device can obtain a second corresponding relationship; wherein the second corresponding relationship indicates the corresponding relationship between the cause of the fault and the fault repair method.

[0238] The terminal device can query the second corresponding relationship according to the cause of the fault and determine a fault repair method. For example, the fault repair method may be replacing the line between a port of the expander and the hard disk.

[0239] The terminal device may display the fault repair method so that the user can view the fault repair method through the human-computer interaction interface of the terminal device and perform link repair according to the fault repair method.

[0240] Additionally, in one implementation:

[0241] The terminal device can obtain the signal characteristics of the link stored in the memory of multiple control boards.

[0242] The terminal device can determine the cause of the fault based on the signal characteristics of the link stored in the memory of the multiple control boards.

[0243] Advantageous Effects of this Embodiment: In this embodiment, a terminal device can obtain signal characteristics of at least one link. The signal characteristics of at least one link are obtained by the extension module receiving a collection start instruction via an extender in the extension module, sending the collection start instruction to a signal analysis module in the extension module, the signal analysis module determining at least one target collection component from a plurality of collection components based on the collection start instruction, collecting link signals of at least one link based on the at least one target collection component, obtaining the link signal of at least one link sent by the signal collection module via a signal processing module in the extension module, and analyzing the link signal of at least one link via the signal processing module. The terminal device can determine the cause of a fault based on the signal characteristics of the at least one link. This eliminates the need for expensive analyzers; the terminal device can analyze the signal characteristics of at least one link to determine the cause of the fault, thereby reducing the cost of fault location. Furthermore, compared to related art techniques in which analyzers can only detect and analyze a single link and then determine the cause of the fault based on the signal characteristics of a single link, resulting in low fault location accuracy, the present application utilizes a terminal device to determine the cause of a fault based on the signal characteristics of one or more links, thereby improving the accuracy of fault location.

[0244] The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0245] The embodiment of the present application also provides an expansion module, including an expander, a signal processing module and a signal acquisition module.

[0246] The expander is used to obtain the acquisition start instruction and send the acquisition start instruction to the signal acquisition module in the expansion module;

[0247] a signal acquisition module, configured to determine at least one target acquisition component from a plurality of acquisition components according to an acquisition start instruction, and to acquire a link signal of at least one link based on the at least one target acquisition component;

[0248] a signal processing module, configured to obtain a link signal of at least one link sent by the signal acquisition module;

[0249] The signal processing module is used to analyze the link signal of at least one link to obtain the signal characteristics of at least one link; the signal characteristics of at least one link are used by the terminal device to determine the cause of the fault.

[0250] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0251] In one implementation, the expansion module belongs to a computing device;

[0252] In the case where a host controller in a computing device is connected to a port of an expander via a target acquisition component, the link is a link connecting the host controller via the target acquisition component to the port of the expander; or

[0253] In the case where a hard disk in a computing device is connected to a port of an expander via a target acquisition component, the link is a link connecting the hard disk via the target acquisition component to the port of the expander.

[0254] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0255] In one implementation, when the signal acquisition module determines at least one target acquisition component from multiple acquisition components according to the acquisition start instruction, it is specifically configured to:

[0256] Obtaining an identifier of at least one target port in the acquisition start instruction;

[0257] Determining at least one target port from a plurality of ports according to an identifier of the at least one target port;

[0258] The collection component connected to the target port is determined as the target collection component.

[0259] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0260] In one implementation, when the signal processing module analyzes the link signal of at least one link and obtains the signal characteristics of at least one link, it is specifically configured to:

[0261] For a link signal of any link, filtering the link signal to obtain a filtered link signal;

[0262] Perform feature extraction on the filtered link signal to obtain the physical layer signal features in the link signal features;

[0263] Decoding the filtered link signal to obtain a decoded link signal;

[0264] The decoded link signal is subjected to feature extraction to obtain link layer signal features, port layer signal features, transport layer signal features, and application layer signal features from the link signal features.

[0265] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0266] In one implementation,

[0267] The signal processing module is further configured to send a signal characteristic of at least one link to the extender;

[0268] The extender is also used to determine whether the extender is connected to the terminal device;

[0269] The extender is further configured to send a signal characteristic of at least one link to the terminal device when it is determined that the extender is connected to the terminal device.

[0270] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0271] In one implementation,

[0272] The expander is further configured to, when it is determined that the expander is not connected to the terminal device, send the signal characteristics of at least one link to the processor in the computing device through the host controller, so that the processor can store the signal characteristics of the at least one link in the memory in the computing device; wherein the signal characteristics of the at least one link stored in the memory are used for the terminal device to read and process when it is connected to the computing device.

[0273] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0274] In one implementation, each link includes multiple protocol layers; when the expander obtains the acquisition start instruction, it is specifically configured to:

[0275] Determine whether there is a protocol layer in a fault state among multiple protocol layers of multiple links;

[0276] When it is determined that a protocol layer in a fault state exists among the multiple protocol layers of the multiple links, a collection start instruction is generated.

[0277] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0278] In one implementation, when determining whether a protocol layer in a fault state exists among multiple protocol layers of multiple links, the expander is specifically configured to:

[0279] For any protocol layer of any link, obtain a value of a status register corresponding to the protocol layer; the value of the status register is a first value or a second value, the first value indicates that the state of the protocol layer is a fault state, and the second value indicates that the state of the protocol layer is a normal state;

[0280] When it is determined that the value of the status register corresponding to at least one protocol layer in the multiple protocol layers of the multiple links is the first value, it is determined that there is a protocol layer in a fault state in the multiple protocol layers of the multiple links; or

[0281] When it is determined that the values ​​of the status registers corresponding to the protocol layers of the links are all the second values, it is determined that no protocol layer in the multiple protocol layers of the multiple links is in a fault state.

[0282] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0283] In one implementation, when the expander obtains the acquisition start instruction, it is specifically configured to:

[0284] Acquire an acquisition start instruction sent by a processor in the computing device through a host controller in the computing device.

[0285] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0286] In one implementation, when the expander obtains the acquisition start instruction, it is specifically configured to:

[0287] When the extender is connected to the terminal device, the acquisition start instruction sent by the terminal device is obtained.

[0288] The extension module provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0289] Figure 9This is a schematic diagram of the structure of a fault location device provided in an embodiment of the present application. Figure 9 As shown, the fault location device 90 includes an acquisition module 91 , a processing module 92 and a display module 93 .

[0290] An acquisition module 91 is configured to acquire signal characteristics of at least one link; wherein the signal characteristics of the at least one link are obtained by the extension module acquiring a collection start instruction through an extender in the extension module, sending the collection start instruction to a signal analysis module in the extension module, the signal analysis module determining at least one target collection component from a plurality of collection components based on the collection start instruction, and collecting link signals of the at least one link based on the at least one target collection component; acquiring the link signal of the at least one link sent by the signal collection module through the signal processing module in the extension module; and analyzing the link signal of the at least one link through the signal processing module.

[0291] The processing module 92 is configured to determine a fault cause based on a signal characteristic of at least one link.

[0292] The fault location device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment. Its implementation principles and beneficial effects are similar and will not be described in detail here.

[0293] In one implementation, the processing module 92 is specifically configured to:

[0294] Get link topology information;

[0295] The cause of the fault is determined based on the signal characteristics of at least one link and the link topology information.

[0296] The fault location device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment. Its implementation principles and beneficial effects are similar and will not be described in detail here.

[0297] In one implementation, the processing module 92 is specifically configured to:

[0298] Obtaining a first corresponding relationship; wherein the first corresponding relationship indicates a corresponding relationship between a signal characteristic of a link, link topology information, and a fault cause;

[0299] According to the signal characteristics of at least one link and the link topology information, the first corresponding relationship is queried to determine the cause of the fault.

[0300] The fault location device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment. Its implementation principles and beneficial effects are similar and will not be described in detail here.

[0301] In one implementation,

[0302] The processing module 92 is further configured to obtain a second corresponding relationship, wherein the second corresponding relationship indicates a corresponding relationship between a fault cause and a fault repair method;

[0303] The processing module 92 is further configured to query the second corresponding relationship and determine a fault repair method based on the fault cause;

[0304] The display module 93 is used to display the fault repair method.

[0305] The fault location device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment. Its implementation principles and beneficial effects are similar and will not be described in detail here.

[0306] Figure 10 This is a schematic diagram of the structure of the terminal device provided in this application. Figure 10 As shown, the terminal device 100 provided in this embodiment includes: at least one processor 110 and a memory 120. Optionally, the terminal device 100 also includes a communication component 130. The processor 110, the memory 120 and the communication component 130 are connected via a bus 140.

[0307] During the specific implementation process, at least one processor 110 executes the computer-executable instructions stored in the memory 120 , so that the at least one processor 110 executes the above-mentioned fault location method embodiment.

[0308] The specific implementation process of the processor 110 can be found in the above-mentioned method embodiment. Its implementation principle and technical effects are similar and will not be repeated here in this embodiment.

[0309] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the application may be directly executed by a hardware processor or by a combination of hardware and software modules within the processor.

[0310] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.

[0311] A bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. Buses can be categorized as address buses, data buses, and control buses. For ease of illustration, the buses in the drawings of this application are not limited to just one bus or just one type of bus.

[0312] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above-mentioned fault location method embodiments when running.

[0313] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0314] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned fault location method embodiments are implemented.

[0315] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above-mentioned fault location method embodiments are implemented.

[0316] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0317] The above is an extension module, fault location method, terminal device, medium and product provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. An expansion module, characterized in that: It includes an expander, a signal acquisition module and a signal processing module; the signal acquisition module includes multiple independent acquisition components, each of which can independently acquire the link signal of the corresponding link; The expansion module belongs to a computing device; the expander includes a plurality of ports; The signal processing module is connected to the expander and the signal acquisition module respectively; For any acquisition component in the signal acquisition module, the host controller in the computing device is connected to a port of the expander through the acquisition component; or the hard disk in the computing device is connected to a port of the expander through the acquisition component; The expander is configured to determine, based on status register values ​​of multiple protocol layers in the link, if a protocol layer in a fault state exists among multiple protocol layers in the multiple links, generate a collection start instruction, and send the collection start instruction to the signal collection module; The signal acquisition module is configured to determine at least one target port from the plurality of ports according to an identifier of at least one target port in the acquisition start instruction; Determine the acquisition component connected to the target port as a target acquisition component, and based on the target acquisition component, acquire a link signal of a link corresponding to the target acquisition component; The signal processing module is used to perform layered filtering, decoding and feature extraction on the link signal of at least one link collected by the signal acquisition module to obtain link layer signal characteristics, port layer signal characteristics, transport layer signal characteristics and application layer signal characteristics among the signal characteristics of at least one link. The signal characteristics of the at least one link are used to combine with the link topology structure information for the terminal device to determine the cause of the fault.

2. A fault location method, applied to the expansion module according to claim 1, characterized in that: The method comprises: Obtaining a collection start instruction through an expander in the expansion module, and sending the collection start instruction to a signal collection module in the expansion module; the expander includes a plurality of ports; Determining, by the signal acquisition module, at least one target acquisition component from a plurality of acquisition components according to the acquisition start instruction, and acquiring a link signal of at least one link based on the at least one target acquisition component; Acquiring, through the signal processing module in the extension module, the link signal of the at least one link sent by the signal acquisition module; The signal processing module analyzes the link signal of the at least one link to obtain the signal characteristics of the at least one link; the signal characteristics of the at least one link are used by the terminal device to determine the cause of the fault.

3. The method according to claim 2, characterized in that The expansion module belongs to a computing device; In the case where the host controller in the computing device is connected to a port of the expander via the target acquisition component, the link is a link connecting the host controller to the port of the expander via the target acquisition component; or In the case where the hard disk in the computing device is connected to a port of the expander through the target acquisition component, the link is a link connecting the hard disk through the target acquisition component and the port of the expander.

4. The method according to claim 2, characterized in that The determining, by the signal acquisition module according to the acquisition start instruction, at least one target acquisition component from a plurality of acquisition components includes: Acquiring, by the signal acquisition module, an identifier of at least one target port in the acquisition start instruction; determining, by the signal acquisition module, at least one target port from the plurality of ports according to an identifier of the at least one target port; The signal acquisition module determines the acquisition component connected to the target port as the target acquisition component.

5. The method according to claim 2, characterized in that Analyzing the link signal of the at least one link by the signal processing module to obtain the signal characteristics of the at least one link includes: For a link signal of any link, filtering the link signal by the signal processing module to obtain a filtered link signal; Performing feature extraction on the filtered link signal by the signal processing module to obtain a physical layer signal feature in the signal feature of the link; Decoding the filtered link signal by the signal processing module to obtain a decoded link signal; The signal processing module extracts features of the decoded link signal to obtain link layer signal features, port layer signal features, transport layer signal features, and application layer signal features among the signal features of the link.

6. The method according to claim 2, characterized in that The method further comprises: sending the signal characteristics of the at least one link to the extender through the signal processing module; determining, by the extender, whether the extender is connected to the terminal device; When it is determined that the extender is connected to the terminal device, the signal characteristic of the at least one link is sent to the terminal device.

7. The method according to claim 6, characterized in that The method further comprises: When the expander determines that the expander is not connected to the terminal device, the expander sends the signal characteristics of the at least one link to the processor in the computing device through the host controller, so that the processor stores the signal characteristics of the at least one link in the memory in the computing device; wherein the signal characteristics of the at least one link stored in the memory are used for the terminal device to read and process when it is connected to the computing device.

8. The method according to claim 2, characterized in that Each link includes multiple protocol layers; The acquiring the acquisition start instruction through the expander in the expansion module includes: Determine, by the expander, whether there is a protocol layer in a fault state among the multiple protocol layers of the multiple links; The expander generates the acquisition start instruction when it is determined that a protocol layer in the fault state exists among multiple protocol layers of multiple links.

9. The method according to claim 8, characterized in that Determining, by the expander, whether there is a protocol layer in a fault state among multiple protocol layers of multiple links includes: For any protocol layer of any link, obtaining, through the expander, a value of a status register corresponding to the protocol layer; the value of the status register is a first value or a second value, the first value indicating that the status of the protocol layer is a fault state, and the second value indicating that the status of the protocol layer is a normal state; determining, by the expander, that a protocol layer in the multiple protocol layers of the multiple links is in the fault state when the value of the status register corresponding to at least one protocol layer in the multiple protocol layers of the multiple links is the first value; or When it is determined by the expander that the values ​​of the status registers corresponding to the protocol layers of the links are all the second values, it is determined that no protocol layer in the fault state exists among the multiple protocol layers of the multiple links.

10. The method according to claim 2, characterized in that Obtaining a collection start instruction through the expander includes: The acquisition start instruction sent by the processor in the computing device through the host controller in the computing device is obtained through the expander.

11. The method according to claim 2, characterized in that Obtaining a collection start instruction through the expander includes: When the extender is connected to the terminal device, the collection start instruction sent by the terminal device is obtained through the extender.

12. A fault location method, characterized in that: include: Obtaining signal characteristics of at least one link; wherein the signal characteristics of the at least one link are obtained by the extension module obtaining a collection start instruction through the expander in the extension module, sending the collection start instruction to the signal collection module in the extension module, determining at least one target port from multiple ports of the expander by the signal collection module based on the identifier of at least one target port in the collection start instruction, determining the collection component connected to the target port as the target collection component, and collecting the link signal of at least one link based on the target collection component, obtaining the link signal of the at least one link sent by the signal collection module in the extension module through the signal processing module, and performing layered filtering, decoding, and feature extraction on the link signal of the at least one link through the signal processing module; wherein the collection start instruction is generated when the expander determines, based on the status register values ​​of multiple protocol layers in the link, that a protocol layer in the fault state exists among multiple protocol layers of multiple links; The cause of the fault is determined according to the signal characteristics of the at least one link and the link topology information.

13. The method according to claim 12, characterized in that Also includes: Get link topology information.

14. The method according to claim 13, characterized in that The determining the fault cause according to the signal characteristics of the at least one link and the link topology information includes: Obtaining a first corresponding relationship; wherein the first corresponding relationship indicates a corresponding relationship between a signal characteristic of a link, link topology information, and a fault cause; The first corresponding relationship is queried based on the signal characteristics of the at least one link and the link topology information to determine the cause of the fault.

15. The method according to claim 13, characterized in that The method further comprises: Obtaining a second corresponding relationship; wherein the second corresponding relationship indicates a corresponding relationship between a fault cause and a fault repair method; According to the fault cause, query the second corresponding relationship to determine the fault repair method; The fault repair method is displayed.

16. A fault location method, applied to the extension module according to claim 1, characterized in that: include: The extension module obtains an acquisition start instruction through the extender in the extension module, and sends the acquisition start instruction to the signal analysis module in the extension module; The extension module determines at least one target collection component from a plurality of collection components through the signal analysis module according to the collection start instruction, and collects a link signal of at least one link based on the at least one target collection component; The extension module acquires the link signal of the at least one link sent by the signal acquisition module in the extension module through the signal processing module in the extension module; The extension module analyzes the link signal of the at least one link through the signal processing module to obtain the signal characteristics of the at least one link; The terminal device obtains a signal characteristic of at least one link; The terminal device determines the cause of the fault based on the signal characteristics of the at least one link.

17. A terminal device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the fault location method according to any one of claims 12 to 15 when executing the computer program.

18. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the fault location method according to any one of claims 2 to 15 are implemented.

19. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the fault location method according to any one of claims 2 to 15 are implemented.

Citation Information

Patent Citations

  • Protocol analysis device, method and system

    CN106790035A

  • Storage system fault monitoring method and device, medium and computer program product

    CN119065932A