Abnormal node positioning method and device and medium
Automatically judge abnormal nodes through link alarm mode, solving the problems of low manual positioning efficiency and low accuracy, and achieving fast and accurate abnormal node positioning and operation and maintenance processing.
Patent Information
- Application Number
- CN202510451137.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-07-08
AI Technical Summary
In the prior art, manual positioning of abnormal nodes is inefficient, costly and low accuracy, and it is impossible to quickly and accurately locate abnormal nodes.
The link alarm mode is adopted to send abnormal node positioning requests through the management controller. The electronic device automatically judges the nodes on the link, generates an abnormal node positioning response and sends it to the management controller, including information about the target abnormal node.
Automatic abnormal node positioning is realized, labor costs are saved, efficiency and accuracy are improved, and no nodes are missed. Users can quickly locate and operate and maintain the node information.
Smart Images

Figure CN120281637A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of servers, and in particular, to methods, devices, and media for locating abnormal nodes. Background Art
[0002] The Peripheral Component Interconnect Express (PCIE) is a high-speed serial bus standard for connecting a computer motherboard and peripheral devices. When a server is connected to a peripheral device, a PCIE bus connection is used to form a link between the server and the peripheral device. There is at least one node on the link, and some nodes may be abnormal. For example, some nodes may experience a decrease in speed and bandwidth. The above nodes include peripheral devices.
[0003] In the related art, when an operation anomaly occurs on the link, it is usually necessary to manually check the nodes on the link to determine the anomaly; even in some scenarios, it is directly assumed that the peripheral device causes a decrease in speed and bandwidth, and then the peripheral device is maintained. However, this method not only wastes labor costs but also cannot accurately and quickly locate the abnormal node. Summary of the Invention
[0004] This application provides methods, devices, and media for locating abnormal nodes, so as to at least solve the problems of low efficiency, increased labor costs, and reduced accuracy caused by manually locating abnormal nodes in the related art.
[0005] In a first aspect, this application provides a method for locating an abnormal node, including:
[0006] Receiving an abnormal node location request sent by a management controller;
[0007] Determining the current mode of the link alarm mode based on the abnormal node location request;
[0008] In response to the current mode being the abnormal alarm mode for location, performing an abnormal judgment on at least one node on at least one link to locate the target abnormal node;
[0009] Generating an abnormal node location response and sending the abnormal node location response to the management controller to alarm the management controller; the abnormal node location response includes the node information of the target abnormal node.
[0010] In a second aspect, this application provides an electronic device, including:
[0011] A memory for storing a computer program;
[0012] A processor for implementing the steps of the abnormal node location method as described in the first aspect or any one of the above when executing the computer program.
[0013] In a third aspect, the present application provides a computer-readable storage medium storing a computer program, where the computer program, when executed by a processor, implements the steps of the abnormal node location method in the first aspect or any one of the above.
[0014] Through an abnormal node location method, device, and medium provided by the present application, if the current mode is the abnormal alarm location mode in the present application, abnormal judgment is performed on at least one node on at least one link, so that the target abnormal node can be determined, and then an abnormal node location response is generated and sent to the management controller to implement the alarm. The abnormal node location method in the present application adds a link alarm mode option and a location function, and can thus implement abnormal judgment on at least one node on the link; if there are multiple links in the present application, abnormal judgment on the nodes in multiple links can also be implemented. Therefore, for abnormal node judgment, an automated method is used to implement it, which can save labor costs and time, and thus improve efficiency; in addition, in the present application, abnormal judgment is implemented for all the included nodes, so no node will be missed, and thus the accuracy can be improved. The abnormal node location response in the present application includes the node information of the target abnormal node, and the above node information can thus be displayed based on the management controller, so that the user can locate the target abnormal node according to the node information and perform operation and maintenance processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0016] Figure 1 It is a schematic diagram of a scenario application provided by the present application;
[0017] Figure 2 It is a schematic flowchart of an abnormal node location method provided for Embodiment 1;
[0018] Figure 3 It is a schematic diagram of an abnormal node location system provided by the present application;
[0019] Figure 4 It is a schematic diagram of an interaction provided by the present application;
[0020] Figure 5 It is a flowchart in the abnormal alarm location mode provided by the present application;
[0021] Figure 6Structural schematic diagram of the abnormal node positioning device provided by the embodiment of the present application;
[0022] Figure 7 Structural schematic diagram of the electronic device provided by the present application. Detailed implementation manners
[0023] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.
[0024] It should be noted that in the description of the present application, the terms "including", "comprising" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.
[0025] In the related art, when an operation anomaly occurs on a link, usually the nodes on the link are manually checked to determine the anomaly; even in some scenarios, it is directly considered by humans that the peripheral device has a reduced rate and bandwidth, and then the peripheral device is maintained. However, this method not only wastes labor costs, but also cannot accurately and quickly locate the abnormal node.
[0026] To solve the problems of low efficiency, increased labor costs, and reduced accuracy caused by manually positioning abnormal nodes in the related art, the inventors of this solution have made a series of improvements and proposed a link alarm mode, which is a newly added option, and corresponding functions can also be realized, including: in response to the current mode being the abnormal alarm mode for positioning, it is necessary to perform an anomaly judgment on at least one node on at least one link to determine the target abnormal node; in this solution, it is possible to judge the nodes included in multiple links, so there will be no omission of nodes resulting in missed judgments, and thus the accuracy can be improved; in addition, in the present application, based on the newly added link alarm mode, the anomaly judgment can be automatically realized, so the labor costs in the related art are reduced, time is saved, and efficiency is improved. In this solution, an abnormal node positioning response is generated, and the node information of the target abnormal node is included in the positioning response. When alarming the management controller, the user can locate the target abnormal node based on the node information in the management controller.
[0027] To enable those skilled in the art of the present technology to better understand the solution of this application, the following further elaborates on this application in conjunction with the accompanying drawings and specific implementation manners.
[0028] In combination with the specific application environment architecture or specific hardware architecture on which the execution of the abnormal node localization method depends, the specific application environment architecture or specific hardware architecture is described herein. Figure 1 A schematic diagram of a scenario application provided for this application. As Figure 1 shown, it includes: a management controller 101 and an electronic device 102.
[0029] Among them, the management controller 101 can be a Baseboard Management Controller (abbreviated as BMC), or others, which are not limited herein.
[0030] Among them, the electronic device 102 can be a server or the like, which is not limited herein.
[0031] In this scenario, specifically, the user can trigger the management controller 101 to generate an abnormal node localization request and send the abnormal node localization request to the electronic device 102.
[0032] Furthermore, the electronic device 102 determines the current mode of the link alarm mode based on the abnormal node localization request. In response to the current mode being the localization abnormal alarm mode, it performs an abnormal judgment on at least one node on at least one link to localize the target abnormal node.
[0033] Furthermore, the electronic device 102 generates an abnormal node localization response and sends the abnormal node localization response to the management controller 101 to alarm the management controller 101.
[0034] Furthermore, the user can determine the target abnormal node through the management controller 101 and localize to the target abnormal node based on the above node information.
[0035] It should be noted that the electronic device in this application can be equipped with a Basic Input / Output System (abbreviated as BIOS), that is, a device equipped with a firmware system.
[0036] It should be noted that the localization abnormal alarm mode in this application can include multiple modes, so that the user can make a mode selection based on their own needs, improving the user experience. In addition, in this application, an abnormal judgment is implemented on at least one node on the link, so that the target abnormal node can be accurately located, quickly find the fault point on the link, and improve the efficiency.
[0037] Embodiment 1
[0038] The execution subject of the embodiment of this application is an abnormal node positioning device (hereinafter referred to as the positioning device), and this positioning device is located in an electronic device.
[0039] Figure 2 It is a schematic flowchart of a method for positioning abnormal nodes provided in the first embodiment. As Figure 2 shown, it includes:
[0040] S201, receiving an abnormal node positioning request sent by the management controller.
[0041] In one way, the management controller can trigger an abnormal node positioning request through a user. More specifically, when the electronic device cannot run normally, an abnormal operation message is generated and sent to the management controller. The management controller displays the abnormal operation message, and then the user can determine whether to generate an abnormal node positioning request based on the abnormal operation message. If the abnormal operation message shows that the abnormal operation is caused by a node abnormality, the user can trigger an abnormal node positioning request through the management controller, and then the management controller generates an abnormal node positioning request.
[0042] Among them, the abnormal node positioning request refers to a request for positioning abnormal nodes.
[0043] S202, determining the current mode of the link alarm mode based on the abnormal node positioning request.
[0044] Among them, the link alarm mode is to add an option or variable, and a function implemented based on this link alarm mode is added.
[0045] Among them, the link alarm mode refers to a mode of whether to alarm the link.
[0046] Among them, the current mode refers to the mode corresponding to the current positioning task.
[0047] In one way, the mode preset for the link alarm mode can be obtained from its own memory, and this preset mode is the current mode.
[0048] In one way, the preset mode of the link alarm mode for the current positioning task is included in the abnormal node positioning request, and the above preset mode is determined as the current mode.
[0049] S203, in response to the current mode being the positioning abnormal alarm mode, performing an abnormality judgment on at least one node on at least one link to locate the target abnormal node.
[0050] Among them, the positioning abnormal alarm mode refers to a mode of performing node abnormal positioning and alarming.
[0051] Among them, a link refers to the route generated between an electronic device and at least one peripheral device. Among them, the link can be a PCIE line. It should be noted that under the PCIE line, the peripheral device is a PCIE device, and the electronic device in this application is equipped with an input / output system, which is connected to the PCIE device through the PCIE line.
[0052] It should be noted that there are at least one node on the link. Among them, the last node is the peripheral device. The peripheral device can be a PCIE device, that is, a device connected through the PCLE line.
[0053] Among them, the target abnormal node refers to the abnormal node that needs to be alarmed.
[0054] In one way, the abnormal judgment of at least one node on at least one link includes:
[0055] Parallelly perform abnormal judgment on at least one node on each link.
[0056] In another way, the abnormal judgment of at least one node on at least one link includes:
[0057] For any node on any link, if the state of the above node is an abnormal state, it is determined that the above node is an abnormal node. Among them, the abnormal state includes a speed reduction state, a bandwidth reduction state, a performance abnormality state, a compatibility abnormality state, an error detection and recovery abnormality state, a heat dissipation abnormality state, etc., which are not limited here.
[0058] S204, generate an abnormal node location response, and send the abnormal node location response to the management controller to alarm the management controller; the abnormal node location response includes the node information of the target abnormal node.
[0059] Among them, the abnormal node location response refers to the response to the abnormal node location request.
[0060] Among them, the abnormal node location response includes the node information of the target abnormal node.
[0061] Among them, the node information includes the identifier and location of the target abnormal node. The location can represent the link where the target abnormal node is located and the location on the link.
[0062] Specifically, the electronic device sends the abnormal node location response to the management controller, thereby alarming the management controller.
[0063] In one way, when the management controller receives an abnormal node location response, it can issue a voice prompt to alarm the management controller. The voice prompt can include a prompt tone and can also include the node information in the abnormal node location response, so as to facilitate the user to locate the target abnormal node.
[0064] In one way, when the management controller receives an abnormal node location response, it can make a display to alarm the management controller and facilitate the user to locate the target abnormal node through the displayed node information.
[0065] This embodiment provides an abnormal node location method. In this embodiment, if the current mode is the location abnormal alarm mode, abnormal judgment is performed on at least one node on at least one link, so as to determine the target abnormal node, and then generate an abnormal node location response, and send the abnormal node location response to the management controller to realize the alarm. The abnormal node location method in this embodiment adds a link alarm mode option and a location function, and can realize abnormal judgment on at least one node on the link; in this embodiment, if there are multiple links, abnormal judgment on the nodes on multiple links can also be realized. Therefore, for node abnormal judgment, an automated method is adopted to realize it, which can save labor costs and time, and improve efficiency; in addition, in this embodiment, abnormal judgment is performed on all the included nodes, so no node will be missed, and the accuracy can be improved. The abnormal node location response in this embodiment includes the node information of the target abnormal node, and the above node information can be displayed based on the management controller, so that the user can locate the target abnormal node according to the node information and perform operation and maintenance processing.
[0066] Embodiment Two
[0067] This embodiment is a further refinement of any of the above embodiments. This embodiment is an optional way to determine the current mode of the link alarm mode based on an abnormal node location request, including:
[0068] Step 1: Obtain the mode preset for the link alarm mode from its own memory. The preset mode includes the location abnormal alarm mode or the off-alarm mode.
[0069] Specifically, the electronic device can obtain the preset mode from its own memory through a preset acquisition function. Among them, the preset acquisition function can be the getVariable function, that is, the way to obtain the variable value.
[0070] Among them, its own memory can be a non-volatile random access memory (Non-Volatile Random Access Memory, NVRAM).
[0071] Among them, the closed alarm mode refers to the mode in which abnormal node positioning and alarm are not performed.
[0072] Step 2: Determine the preset mode as the current mode of the link alarm mode.
[0073] This embodiment provides a method for abnormal node positioning. The current mode in this embodiment can be preset, and the preset mode is saved in its own memory.
[0074] This embodiment also includes:
[0075] Locate that the abnormal alarm mode is the first alarm mode or the second alarm mode.
[0076] The first alarm mode is the mode of alarming the last located abnormal node on the link.
[0077] The second alarm mode is the mode of alarming at least one located abnormal node on the link.
[0078] It should be noted that the first alarm mode requires locating the last abnormal node on the link and alarming the management controller.
[0079] It should be noted that the second alarm mode requires locating at least one abnormal node on the link and alarming the management controller.
[0080] This embodiment is an optional way to perform abnormal judgment on at least one node on at least one link in response to the current mode being the abnormal alarm mode to locate the target abnormal node, including:
[0081] Method 1: In response to the current mode being the first alarm mode, perform abnormal judgment on at least one node on at least one link, determine the last abnormal node, and determine the last abnormal node as the target abnormal node to locate the target abnormal node.
[0082] It should be noted that the target abnormal node in the first alarm mode is the last abnormal node.
[0083] Method 2: In response to the current mode being the second alarm mode, perform abnormal judgment on at least one node on at least one link, determine at least one abnormal node, and determine at least one abnormal node as the target abnormal node to locate the target abnormal node.
[0084] It should be noted that the target abnormal node in the second alarm mode is at least one abnormal node, that is, it includes all nodes determined to be abnormal.
[0085] This embodiment provides a method for locating abnormal nodes. In this embodiment, according to different alarm modes, the target abnormal nodes are determined. In actual application scenarios, users can determine different alarm modes according to different requirements, so that the two alarm modes are more in line with user needs.
[0086] This embodiment is a further refinement of the above method 1. This method is a preferred way to determine the last abnormal node by performing abnormal judgment on at least one node on at least one link in response to the current mode being the first alarm mode, and includes:
[0087] In response to the current mode being the first alarm mode, for any link, perform abnormal judgment on at least one node on the link from top to bottom according to the depth-first traversal principle to determine the last abnormal node.
[0088] Among them, the depth-first traversal principle refers to the principle of the link developing from top to bottom.
[0089] It should be noted that from top to bottom on the link includes at least one node.
[0090] This embodiment provides a method for locating abnormal nodes. In this embodiment, abnormal judgment is performed on at least one node on the link from top to bottom according to the depth-first traversal principle, so that abnormal judgment can be carried out in an orderly manner, and thus nodes can be ensured not to be missed.
[0091] This embodiment is a further refinement. This embodiment includes a preferred way to determine the last abnormal node by performing abnormal judgment on at least one node on the link from top to bottom according to the depth-first traversal principle for any link, specifically:
[0092] For any link, perform abnormal judgment on at least one node on the link from top to bottom according to the depth-first traversal principle. In response to any node being an abnormal node, if the abnormal node is a connection node, continue to determine the status of the working node adjacent to the abnormal node downward. If the working node is in an abnormal state, record the identifier and location of the working node, and continue to determine the abnormal nodes on the link from top to bottom according to the depth-first traversal principle and record the working nodes in the abnormal state until the abnormal judgment of each node on the link is completed, and determine the last abnormal working node. The working nodes include switching nodes, bridging nodes, and the last node on the link.
[0093] It should be noted that the nodes in the link include working nodes and connection nodes. Among them, the last node on the link in the working nodes is the peripheral device.
[0094] Among them, the connection nodes and the working nodes are cross-deployed on the link, and the connection nodes are the upstream and downstream nodes of the working nodes.
[0095] Exemplarily, the nodes in the link can be represented in the following way:
[0096] A - B - C - B - C - B - D, where A refers to an electronic device, D refers to a peripheral device, and the link generated between the electronic device and the peripheral device includes connection nodes (C) and working nodes (B). Among them, the working nodes and the connection nodes are cross - deployed, and starting from the connection node connecting the electronic device and ending with the connection node connecting the peripheral device.
[0097] Among them, if a connection node is abnormal, the working node adjacent to it below may be abnormal because the abnormality of the connection node may be caused by the working node adjacent to it below. Therefore, the working node adjacent to it below is the perpetrator of the abnormality.
[0098] Specifically, in the i - th polling, at least one node on the link is judged for abnormality from top to bottom according to the principle of depth - first traversal. In response to any node being an abnormal node, if the abnormal node is a connection node, continue to determine the status of the working node adjacent to the abnormal node below. If the working node is in an abnormal state, record the identifier and location of the working node, and continue to determine the abnormal nodes on the link from top to bottom according to the principle of depth - first traversal and record the working nodes in the abnormal state until the abnormality judgment of each node on the link in the i - th polling ends, and determine the last abnormal working node on the link in the i - th polling.
[0099] In response to the user completing the operation and maintenance processing based on the last abnormal working node on the link in the i - th polling, continue the next polling and continue to execute the above - mentioned method steps until in response to no abnormal working node being recorded in the last polling, it is determined that at least one node in the link is a normal node.
[0100] Among them, the i - th polling is carried out in sequence according to the polling order.
[0101] Specifically, in the first polling, at least one node on the link is judged for abnormality from top to bottom according to the principle of depth - first traversal. Determine the currently judged node as the current node and execute the following steps:
[0102] Step 1: Judge the abnormality of the current node. If the current node is an abnormal node, execute Step 2; if the current node is a normal node, execute Step 3.
[0103] Step 2: If the abnormal node is a connection node, continue to determine the status of the working node adjacent to the abnormal node below; if the adjacent working node is in an abnormal state, execute Step 4; if the adjacent working node is in a normal state, execute Step 3.
[0104] If the abnormal node is a working node, execute Step 4.
[0105] Step 3: Continue to perform exception judgment on the next node from top to bottom according to the depth-first traversal principle. If there is a next node, determine the next node as the current node and continue to execute Step 1; if there is no next node, end the depth-first traversal of this link.
[0106] Step 4: Record the identifier and location of the working node, and continue to perform exception judgment on the next node from top to bottom according to the depth-first traversal principle. If there is a next node, determine the next node as the current node and continue to execute Step 1; if there is no next node, end the depth-first traversal of this link.
[0107] Poll the link in the above manner for the first time to obtain the abnormal working nodes recorded in the first poll of this link (there may be multiple abnormal working nodes at this time), determine the last abnormal working node from them, and determine its corresponding node information (i.e., the node information of the target abnormal node), and generate an abnormal node positioning response corresponding to this link to alarm the management controller, so that the user can locate the last abnormal working node in the first poll and perform operation and maintenance processing.
[0108] Further, after the operation and maintenance processing, the electronic device can initiate a second poll request again. The electronic device determines the abnormal working nodes recorded in the second poll according to the same method steps in the above first alarm mode, and then determines the last abnormal working node from them, so as to determine the abnormal node positioning response corresponding to this link in the second poll to alarm the management controller, so that the user can locate the last abnormal working node in the second poll and perform operation and maintenance processing.
[0109] If the user wants to continue polling, the second poll request can be triggered through the management controller, and the management controller issues the second poll request to the electronic device. Or, the user does not need to perform the second poll and only performs the first poll to end the positioning of the abnormal nodes in this link.
[0110] Or, if the electronic device responds that the last abnormal working node is included in the first poll of this link, it automatically triggers the second poll request and continues to poll the link.
[0111] The electronic device continues to poll until the electronic device does not record any abnormal working nodes in this link in the first alarm mode, then the electronic device determines that the nodes in this link are normal nodes.
[0112] In one way, how does the electronic device determine whether a node is a connection node or a working node. Specifically, each node has its own identifier, and whether it is a connection node or a working node is implied in the identifier. Thus, the electronic device only needs to read the identifier of the node to determine whether it is a connection node or a working node. In addition, how to determine whether a specific working node is a switching node, a bridging node, or the last node on the link. Specifically, for different working nodes, it can still be implicitly disclosed in the identifier. Therefore, by further reading or identifying the identifier of the node, it is possible to distinguish whether it is a switching node, a bridging node, or the last node on the link.
[0113] In one way, when polling, a status variable can be used to represent and record the status during the polling process. The status variable can be represented by Flag. If, during the i-th polling, the last node on the link is an abnormal node, then it is determined that the last node is the last abnormal node, and a corresponding abnormal node location response will be generated and sent to the management controller. At this time, record Flag = 1, indicating that the last node on the link is located as abnormal during this polling.
[0114] If, during the i-th polling, it is determined that a switching node or a bridging node is an abnormal working node, then Flag = 1 will be updated to Flag = 2, where Flag = 2 indicates that there is an abnormal last node and there is also an abnormal switching node or bridging node. When the i-th polling ends, if Flag = 1, it means that there is at least one last node on the link that is abnormal, and polling can continue. In this application, polling can be performed only on the links where the last node is abnormal, and the links of all other normal nodes do not need to be polled continuously. When the i-th polling ends, if Flag is not equal to 1, it means that there is no abnormal last node on the link, and it may be an abnormal switching node or bridging node. Then Flag can be updated to 0, and polling can continue on the links where there is an abnormal switching node or bridging node.
[0115] It should be noted that in this application, the abnormal node location response can include a set of responses for each link, or it can only include the response corresponding to one link.
[0116] It should be noted that the nodes on the link in this application include working nodes and connection nodes, and the working nodes include switching nodes, bridging nodes, and the last node on the link (i.e., the peripheral device or PCIE device). It can be seen that this application not only locates whether the peripheral device is abnormal, but also judges the abnormalities of the other working nodes in the link. Therefore, the location of abnormal nodes in this application is more extensive and accurate. In some related technologies, only the peripheral device or PCIE device is judged for abnormalities. However, there are various reasons for abnormalities on the link, and it may also be caused by the switching node or bridging node. Therefore, if only the peripheral device or PCIE device (i.e., the last node on the link) is simply judged for abnormalities, the accuracy will be reduced and accurate judgment cannot be achieved.
[0117] This application judges the abnormalities of the nodes on the link, and then locates the target abnormal node. The fault source of the node where the abnormality occurs is more refined, so the accuracy is further improved.
[0118] Specifically, the first alarm mode is a mode of alarming the last located abnormal working node on the link.
[0119] This embodiment also includes a further refinement of Method 2. This embodiment is a preferred method for judging the abnormalities of at least one node on at least one link and determining at least one abnormal node in response to the current mode being the second alarm mode, including:
[0120] In response to the current mode being the second alarm mode, for any link, judge the abnormalities of at least one node on the link from top to bottom according to the depth-first traversal principle, and determine at least one abnormal node.
[0121] This embodiment provides a method for locating abnormal nodes. In this embodiment, at least one abnormal working node is recorded, but finally only the last abnormal working node is determined to meet the user's needs. Because the abnormality of the link may be most related to the last abnormal working node, only the last abnormal working node can be processed, reducing the workload and meeting the user's needs.
[0122] This embodiment also includes: a preferred method for judging the abnormalities of at least one node on the link from top to bottom according to the depth-first traversal principle for any link, and determining at least one abnormal node.
[0123] For any link, at least one node on the link is judged for abnormality from top to bottom according to the principle of depth-first traversal. In response to any node being an abnormal node, if the abnormal node is a connection node, the state of the working node adjacent to the abnormal node downward is continuously determined. If the working node is in an abnormal state, the identifier and location of the working node are recorded, and the abnormal nodes on the link are continuously determined from top to bottom according to the principle of depth-first traversal, and the working nodes in the abnormal state are recorded until the abnormality judgment of each node on the link is completed, and at least one abnormal working node is determined. The working nodes include switching nodes, bridging nodes, and the last node on the link.
[0124] Specifically, the second alarm mode is a mode for alarming at least one located abnormal working node on the link.
[0125] It should be noted that in the second alarm mode, when performing depth-first traversal on the link, at least one abnormal working node recorded can be obtained according to steps 1 to 4 in the first alarm mode. In this method, at least one abnormal working node is determined as the target abnormal node, and then an abnormal node positioning response corresponding to this link is generated. It should be noted that in the second alarm mode, only one polling of the link is required to obtain all abnormal working nodes.
[0126] It should be noted that in the second alarm mode, if an abnormal working node is determined and recorded, the electronic device can generate an abnormal node positioning response and send it to the management controller. The abnormal node positioning response includes the node information of the abnormal working node. If another abnormal working node is determined and recorded, the electronic device can generate another abnormal node positioning response and send it to the management controller.
[0127] In one way, the electronic device can generate a total abnormal node positioning response after the link completes depth-first traversal. The abnormal node positioning response includes the node information of each abnormal working node.
[0128] This embodiment provides an abnormal node positioning method. In this embodiment, in order to ensure one-time operation and maintenance or meet user requirements, at least one abnormal working node can be determined as the target abnormal node, so that the user can perform operation and maintenance processing on at least one abnormal working node at one time.
[0129] Embodiment 3
[0130] This embodiment is a further refinement of any of the above embodiments. This embodiment is an optional way to judge the abnormality of at least one node on at least one link, including:
[0131] For any node on any link, in response to the negotiation rate of the node being less than the target rate, determine that the node is an abnormal node to complete the abnormal judgment; the negotiation rate is the rate at which each node on the link shakes hands and negotiates after power-on; the target rate is the maximum rate that the corresponding node can support.
[0132] Among them, the target rate of the node is also related to the adjacent upper-level node or slot. Before performing abnormal judgment on at least one node on at least one link, it further includes:
[0133] Determine the target rate of each node.
[0134] Among them, determining the target rate of each node specifically includes:
[0135] For any node, if the node is not the first node, determine the own rate of the node and the own rate supported by the adjacent upper-level node or slot of the node; if the node is the first node, determine the own rate supported by the slot;
[0136] For any node, determine the minimum own rate from the two own rates;
[0137] Determine the minimum own rate as the target rate of the node.
[0138] Exemplarily, if the own rate of the node is 5 bps, the own rate of its adjacent upper-level node is 4 bps or the own rate supported by the slot is 4 bps, then for compatibility, the target rate of the node is determined to be the minimum own rate of the two nodes, that is, 4 bps, so the maximum rate that the node can support is 4 bps.
[0139] It should be noted that the rates in the examples in this application are only for illustration to facilitate understanding of the solution and are not the data in actual applications.
[0140] It should be noted that in this application, if the negotiation rate of the node is less than the target rate, then determine that the node is a speed-reducing node.
[0141] This embodiment provides a method for locating an abnormal node. In this embodiment, according to the negotiation rate and the target rate, it can be accurately determined whether the node is a speed-reducing node.
[0142] This embodiment is another optional way to perform abnormal judgment on at least one node on at least one link, including:
[0143] For any node on any link, in response to the negotiation bandwidth of the node being less than the target bandwidth, determine that the node is an abnormal node to complete the abnormal judgment; the negotiation bandwidth is the bandwidth at which each node on the link shakes hands and negotiates after power-on; the target bandwidth is the maximum bandwidth that the corresponding node can support.
[0144] Among them, the target bandwidth of a node is also related to its adjacent upper-level node or slot. Before determining whether at least one node on at least one link is abnormal, it further includes:
[0145] Determine the target bandwidth of each node.
[0146] Among them, determining the target bandwidth of each node specifically includes:
[0147] For any node, if the node is not the first node, determine the node's own bandwidth and the own bandwidth supported by its adjacent upper-level node or slot; if the node is the first node, determine the own bandwidth supported by the slot;
[0148] For any node, determine the minimum own bandwidth from the two own bandwidths;
[0149] Determine the minimum own bandwidth as the target bandwidth of the node.
[0150] This embodiment provides an abnormal node positioning method. In this embodiment, according to the negotiated bandwidth and the target bandwidth, it can be accurately determined whether a node is a speed-reducing node.
[0151] This embodiment further includes:
[0152] In response to the current mode being the closed alarm mode, end the positioning task.
[0153] It should be noted that when it is the closed alarm mode, that is, no abnormal node positioning and alarm are performed, and then the positioning task is directly ended.
[0154] This embodiment further includes:
[0155] An optional method before receiving an abnormal node positioning request sent by the management controller, which specifically includes the following steps:
[0156] Step 1: In response to a power-on request, perform a power-on operation and initialize at least one link.
[0157] Specifically, the electronic device initializes at least one link, that is, sets the basic parameters of the link, such as: clock frequency, link width, etc.
[0158] Step 2: Control the link processor on the link to reset; the link is connected to the link processor through a slot.
[0159] Among them, the link processor is located in the electronic device, and the slot is deployed on the link processor.
[0160] Specifically, controlling the link processor on the link to reset means resetting the information of the detection, configuration, and data transmission of the peripheral device.
[0161] It should be noted that a link processor reset will place at least one peripheral device in an unconfigured state.
[0162] Among them, the unconfigured state means that the configuration information and status of the peripheral device are reset to the initial values, so that the peripheral device enters a clean and uninitialized state.
[0163] Step 3: Scan the peripheral devices on at least one link, and through handshake negotiation, determine the negotiation rate and negotiation bandwidth of each node.
[0164] Among them, when scanning the peripheral devices on at least one link, the peripheral device will send a specific training sequence to the electronic device, and then determine the connection status of the link corresponding to the peripheral device. If it is in the connected state, it will enter the next link configuration stage.
[0165] Enter the link configuration stage: Determine the bandwidth, rate, and allocate channel numbers of at least one link, ensure that the peripheral device can communicate in a better state, and enter the link training stage.
[0166] Enter the link training stage: Control the link training state machine for training management, and the peripheral device gradually initializes its own link based on the state of the link training state machine to complete the training.
[0167] After link training, that is, establish a link, and the nodes on the link gradually negotiate through handshake, starting from a low rate, and finally determine the negotiation rate and negotiation bandwidth of each node.
[0168] In addition, after establishing a link, in addition to the negotiation rate and negotiation bandwidth, the nodes on the link can also include identification information of the corresponding peripheral device, etc., which is not limited here.
[0169] This embodiment also includes the following several ways to configure the link alarm mode, specifically including:
[0170] Method 1:
[0171] Receive the mode pre-set for the link alarm mode sent by the management controller.
[0172] Store the pre-set mode in its own memory.
[0173] Method 2:
[0174] In response to the alarm configuration request triggered by the user, enter the firmware configuration option.
[0175] In response to the user's successive triggering of the options of advanced settings, miscellaneous configurations, and link alarm mode in the firmware configuration option, receive any one of the mode options triggered by the user under the link alarm mode option.
[0176] Determine the triggered mode option as a preset mode.
[0177] Store the preset mode in its own memory.
[0178] Among them, the user can trigger an alarm configuration request through the electronic device to enter the firmware configuration options.
[0179] Specifically, the user can sequentially trigger the options of Advanced > Miscellaneous Configuration > Link Warning Mode, and then the user triggers the option of any one of the modes, including the positioning exception alarm mode or the off-alarm mode.
[0180] It should be noted that storing in its own memory means it takes effect.
[0181] Method 3:
[0182] Enter the operating system or command line interface. In response to the user triggering a modification or editing operation, use a preset firmware editing tool to batch modify or edit the option identifier, and save the modified or edited mode.
[0183] Among them, the preset firmware editing tool can be the System Configuration Editor, abbreviated as SCE, a tool for modifying BIOS-related configurations.
[0184] Method 4:
[0185] Receive the mode batch modified or edited by the management controller based on a preset management tool, and save the modified or edited mode.
[0186] Among them, the preset management tool can be a management interface of a RESTful protocol. Among them, the preset management tool can be used to perform various operations, such as viewing the system status, modifying BIOS-related configurations, updating the firmware, and adjusting the boot order.
[0187] Method 5:
[0188] The electronic device receives the modified or edited mode sent through the intelligent platform management interface, saves the modified or edited mode, and restarts to implement the preset of the mode.
[0189] Among them, the intelligent platform management interface is connected to the electronic device and the BMC.
[0190] It should be noted that in the above link warning mode, Method 1 can achieve single preset, and Methods 2 to 5 can achieve batch preset.
[0191] Figure 3 Schematic diagram of an abnormal node location system provided for this application. Figure 3 Further explanation of Method 5.
[0192] Among them, the abnormal node location system includes a baseboard management controller 301, a BIOS device 302, an IPMI management platform 303, a communication medium 304, an intelligent platform management interface 305, and a management tool interface 306.
[0193] Among them, the IPMI management platform 303 includes an IPMI management software 3031, an IPMI protocol layer 3032, and a communication interface layer 3033.
[0194] Among them, the Intelligent Platform Management Interface (IPMI for short) is a standardized hardware interface protocol that can be remotely monitored and managed.
[0195] Among them, the baseboard management controller 301 registers an IPMI command according to the IPMI protocol for realizing IPMI command interaction. After registration, the interaction with the IPMI management platform 303 can be realized through the communication medium 304.
[0196] Among them, the baseboard management controller 301 pre-carries a preset management tool and realizes the interaction with the BIOS device 302 through the intelligent platform management interface 305 based on the preset management tool.
[0197] Among them, the first end of the baseboard management controller 301 is communicatively connected to the first end of the BIOS device 302 through the first end of the intelligent platform management interface 305; the second end of the baseboard management controller 301 is communicatively connected to the second end of the BIOS device 302 through the first end of the management tool interface 306; the third end of the baseboard management controller 301 is communicatively connected to the first end of the communication medium 304; the second end of the communication medium 304 is communicatively connected to one end of the IPMI management platform 303.
[0198] Specifically, the baseboard management controller 301 can register an IPMI command from the IPMI management platform 303 according to the IPMI protocol, realize the registration through the communication medium 304, modify or edit the mode based on the IPMI command, and send the modified or edited mode to the BIOS device 302 through the intelligent platform management interface 305.
[0199] Specifically, the baseboard management controller 301 can batch modify or edit the mode of the BIOS device 302 through the preset management tool and send the modified or edited mode to the BIOS device 302 through the management tool interface 306.
[0200] Embodiment 4
[0201] This embodiment is a further refinement of any of the above embodiments. Figure 4 It is an interaction schematic diagram provided by this application.
[0202] S401. The electronic device responds to the power-on request and performs a power-on operation.
[0203] S402. The electronic device initializes at least one link and controls the link processor on the link to reset.
[0204] S403. The electronic device scans the peripheral devices on at least one link and determines the negotiation rate and negotiation bandwidth of each node through handshake negotiation.
[0205] S404. The management controller sends a pre-set mode for the link alarm mode.
[0206] S405. The electronic device stores the pre-set mode in its own memory.
[0207] S406. The management controller sends a request for abnormal node location.
[0208] S407. The electronic device obtains the pre-set mode of the link alarm mode from its own memory.
[0209] S408. The electronic device determines the pre-set mode as the current mode of the link alarm mode.
[0210] S409. When the current mode is the first alarm mode, the electronic device performs an abnormal judgment on at least one node on at least one link, determines the last abnormal node, and determines the last abnormal node as the target abnormal node to locate the target abnormal node.
[0211] S410. When the current mode is the second alarm mode, the electronic device performs an abnormal judgment on at least one node on at least one link, determines at least one abnormal node, and determines at least one abnormal node as the target abnormal node to locate the target abnormal node.
[0212] Figure 5 It is a flowchart for locating the abnormal alarm mode provided by this application. As Figure 5 shown, the execution entity is an electronic device, which specifically includes the following steps:
[0213] S501. When the current mode is the first alarm mode, in the i-th polling, the electronic device performs an abnormal judgment on at least one node on the link from top to bottom according to the principle of depth-first traversal, and determines the currently judged node as the current node.
[0214] S502. Perform an anomaly check on the current node to determine whether it is an anomalous node. If so, execute S503; if not, execute step S504.
[0215] S503. Determine whether the anomalous node is a connection node. If so, execute S504; if not, since the anomalous node is a working node, execute S505.
[0216] S504. Continue to determine whether the status of the working node adjacent to the current node downward is an anomalous status. If so, execute S505; if not, execute S506.
[0217] S505. Record the identifier and location of the working node.
[0218] S506. Continue to perform an anomaly check on the next node from top to bottom according to the depth - first traversal principle to determine whether there is a next node. If so, execute S507; if not, execute S508.
[0219] S507. Determine the next node as the current node and continue to execute S502.
[0220] S508. End the depth - first traversal of the link.
[0221] S509. Obtain the record table of this link in the i - th polling. The record table includes the target anomalous nodes.
[0222] S510. Generate an anomaly node location response for this link in the i - th polling based on the last anomalous working node in the record table and send it to the management controller so that the operation and maintenance personnel can perform operation and maintenance processing.
[0223] It should be noted that if the current mode is the second alarm mode, it can be executed according to the same method steps as S501 - S509 above, and send the node information of at least one anomalous working node (i.e., the node information of all anomalous working nodes) in the record table of this link in the first polling to the management controller.
[0224] It should be noted that after the i - th polling, if there is one target anomalous node in the record table, the polling of this link can continue according to the method steps of S501 - 509 above until no anomalous working node is recorded in the record table in the last polling, then end the polling of this link.
[0225] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general - purpose hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.
[0226] Figure 6This is a schematic structural diagram of the abnormal node positioning device provided by the embodiments of the present application. As Figure 6 shown, an embodiment of the present application also provides an abnormal node positioning device 600, including the following modules:
[0227] A receiving module 601, configured to receive an abnormal node positioning request sent by a management controller.
[0228] A determining module 602, configured to determine the current mode of the link alarm mode based on the abnormal node positioning request.
[0229] A positioning module 603, configured to, in response to the current mode being the positioning abnormal alarm mode, perform an abnormality determination on at least one node on at least one link to locate a target abnormal node.
[0230] A generating module 604, configured to generate an abnormal node positioning response, and a sending module 605, configured to send the abnormal node positioning response to the management controller to alarm the management controller; the abnormal node positioning response includes the node information of the target abnormal node.
[0231] When determining the current mode of the link alarm mode based on the abnormal node positioning request, the determining module 602 is specifically configured to:
[0232] Obtain the pre-set mode of the link alarm mode from its own memory; the pre-set mode includes a positioning abnormal alarm mode or a closed alarm mode; determine the pre-set mode as the current mode of the link alarm mode.
[0233] The positioning abnormal alarm mode is a first alarm mode or a second alarm mode; the first alarm mode is a mode of alarming the last positioned abnormal node on the link; the second alarm mode is a mode of alarming at least one positioned abnormal node on the link.
[0234] When, in response to the current mode being the positioning abnormal alarm mode, the positioning module 603 performs an abnormality determination on at least one node on at least one link to locate a target abnormal node, it is specifically configured to:
[0235] In response to the current mode being the first alarm mode, perform an abnormality determination on at least one node on at least one link, determine the last abnormal node, and determine the last abnormal node as the target abnormal node to locate the target abnormal node; in response to the current mode being the second alarm mode, perform an abnormality determination on at least one node on at least one link, determine at least one abnormal node, and determine at least one abnormal node as the target abnormal node to locate the target abnormal node.
[0236] The positioning module 603, when determining the last abnormal node by performing an abnormality judgment on at least one node on at least one link in response to the current mode being the first alarm mode, is specifically configured to:
[0237] In response to the current mode being the first alarm mode, for any link, perform an abnormality judgment on at least one node on the link from top to bottom according to the principle of depth-first traversal to determine the last abnormal node.
[0238] The positioning module 603, when determining the last abnormal node by performing an abnormality judgment on at least one node on any link from top to bottom according to the principle of depth-first traversal, is specifically configured to:
[0239] For any link, perform an abnormality judgment on at least one node on the link from top to bottom according to the principle of depth-first traversal. In response to any node being an abnormal node, if the abnormal node is a connection node, continue to determine the status of the working node adjacent to the abnormal node downward. If the working node is in an abnormal state, record the identifier and location of the working node, and continue to determine the abnormal nodes on the link from top to bottom according to the principle of depth-first traversal and record the working nodes in the abnormal state until the abnormality judgment of each node on the link is completed to determine the last abnormal working node. The working nodes include switching nodes, bridging nodes, and the last node on the link.
[0240] The positioning module 603, when performing an abnormality judgment on at least one node on at least one link, is specifically configured to:
[0241] For any node on any link, in response to the negotiation rate of the node being less than the target rate, determine that the node is an abnormal node to complete the abnormality judgment; the negotiation rate is the rate negotiated by each node on the link after power-on; the target rate is the maximum rate supported by the corresponding node.
[0242] The positioning module 603, when performing an abnormality judgment on at least one node on at least one link, is specifically configured to:
[0243] For any node on any link, in response to the negotiation bandwidth of the node being less than the target bandwidth, determine that the node is an abnormal node to complete the abnormality judgment; the negotiation bandwidth is the bandwidth negotiated by each node on the link after power-on; the target bandwidth is the maximum bandwidth supported by the corresponding node.
[0244] The positioning module 603, when determining at least one abnormal node by performing an abnormality judgment on at least one node on at least one link in response to the current mode being the second alarm mode, is specifically configured to:
[0245] In response to the current mode being the second alarm mode, for any link, perform an abnormality judgment on at least one node on the link from top to bottom according to the principle of depth-first traversal to determine at least one abnormal node.
[0246] The positioning module 603, when performing anomaly determination on at least one node on a link from top to bottom according to the depth-first traversal principle for any link and determining at least one anomalous node, is specifically configured to:
[0247] For any link, perform anomaly determination on at least one node on the link from top to bottom according to the depth-first traversal principle. In response to any node being an anomalous node, if the anomalous node is a connection node, continue to determine the status of the working node adjacent to the anomalous node downward. If the working node is in an anomalous state, record the identifier and location of the working node, and continue to determine the anomalous nodes on the link from top to bottom according to the depth-first traversal principle and record the working nodes in the anomalous state until the anomaly determination of all nodes on the link is completed, and determine at least one anomalous working node. The working nodes include switching nodes, bridging nodes, and the last node on the link.
[0248] The anomalous node positioning device 600 in this embodiment further includes: an end module, configured to end the positioning task in response to the current mode being the closed alarm mode.
[0249] The anomalous node positioning device 600 in this embodiment further includes: an initialization module and a reset module:
[0250] Before receiving the anomalous node positioning request sent by the management controller, the initialization module is configured to: in response to the power-on request, perform the power-on operation and initialize at least one link; the reset module is configured to control the reset of the link processor on the link; the link is connected to the link processor through a slot; the determination module 602 is further configured to scan the peripheral devices on at least one link and determine the negotiation rate and negotiation bandwidth of each node through handshake negotiation.
[0251] The receiving module 601 is further configured to: receive the mode preset for the link alarm mode sent by the management controller; the anomalous node positioning device 600 in this embodiment further includes: a storage module, configured to store the preset mode in its own memory.
[0252] The anomalous node positioning device 600 in this embodiment further includes: a configuration module, configured to enter the firmware configuration option in response to the alarm configuration request triggered by the user;
[0253] The receiving module 601 is further configured to, in response to the user sequentially triggering the options of advanced settings, miscellaneous configurations, and link alarm mode in the firmware configuration option, receive any one of the mode options triggered by the user under the option of the link alarm mode; the determination module 602 is further configured to determine the triggered mode option as the preset mode; the storage module is further configured to store the preset mode in its own memory.
[0254] For the description of the features in the corresponding embodiment of the abnormal node positioning device, reference can be made to the relevant description in the corresponding embodiment of the abnormal node positioning method, which will not be elaborated here one by one.
[0255] Figure 7 The following is a schematic structural diagram of the electronic device provided by this application. As Figure 7 shown, the electronic device 102 provided in this embodiment includes: at least one processor 701 and a memory 702. Optionally, the electronic device 102 further includes a communication component 703. Among them, the processor 701, the memory 702, and the communication component 703 are connected through a bus 704.
[0256] In the specific implementation process, at least one processor 701 executes the computer execution instructions stored in the memory 702, so that at least one processor 701 executes the above-mentioned abnormal node positioning method embodiment.
[0257] For the specific implementation process of the processor 701, reference can be made to the above method embodiment. The implementation principle and technical effects are similar, and will not be elaborated here in this embodiment.
[0258] In the above embodiment, it should be understood that the processor may be a central processing unit (Central Processing Unit, abbreviated as: CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, abbreviated as: DSP), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0259] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0260] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience in representation, the buses in the accompanying drawings of this application are not limited to only one bus or one type of bus.
[0261] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any of the above-described embodiments of the abnormal node location method when running.
[0262] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as a USB flash drive, a read-only memory (ROM for short), a random access memory (RAM for short), a mobile hard disk, a magnetic disk, or an optical disc, etc., that can store a computer program.
[0263] An embodiment of the present application also provides a computer program product. The above computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-described embodiments of the abnormal node location method.
[0264] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-described embodiments of the abnormal node location method.
[0265] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods for each specific application to implement the described functions, but such implementation should not be considered to exceed the scope of the present application.
[0266] The above has introduced in detail an abnormal node positioning method provided by the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. An abnormal node positioning method, characterized in that, Including: Receiving an abnormal node location request sent by a management controller; Determining a current mode of a link alarm mode based on the abnormal node location request; In response to the current mode being a location abnormal alarm mode, performing an abnormality judgment on at least one node on at least one link to locate a target abnormal node; Generating an abnormal node location response and sending the abnormal node location response to the management controller to alarm the management controller; the abnormal node location response includes node information of the target abnormal node.
2. The method according to claim 1, wherein The determining the current mode of the link alarm mode based on the abnormal node location request includes: Obtaining a pre-set mode of the link alarm mode from its own memory; the pre-set mode includes a location abnormal alarm mode or a closed alarm mode; Determining the pre-set mode as the current mode of the link alarm mode; The method further includes: In response to the current mode being a closed alarm mode, ending the location task.
3. The method according to claim 1, wherein The location abnormal alarm mode is a first alarm mode or a second alarm mode; The first alarm mode is a mode of alarming the last located abnormal node on a link; The second alarm mode is a mode of alarming at least one located abnormal node on a link; In response to the current mode being a location abnormal alarm mode, the performing an abnormality judgment on at least one node on at least one link to locate a target abnormal node includes: In response to the current mode being the first alarm mode, performing an abnormality judgment on at least one node on at least one link, determining the last abnormal node, and determining the last abnormal node as the target abnormal node to locate the target abnormal node; In response to the current mode being the second alarm mode, performing an abnormality judgment on at least one node on at least one link, determining at least one abnormal node, and determining the at least one abnormal node as the target abnormal node to locate the target abnormal node; The performing an abnormality judgment on at least one node on at least one link in response to the current mode being the first alarm mode to determine the last abnormal node includes: In response to the current mode being the first alarm mode, for any link, performing an abnormality judgment on at least one node on the link from top to bottom according to the depth-first traversal principle to determine the last abnormal node; The performing an abnormality judgment on at least one node on at least one link in response to the current mode being the second alarm mode to determine at least one abnormal node includes: In response to the current mode being the second alarm mode, for any link, performing an abnormality judgment on at least one node on the link from top to bottom according to the depth-first traversal principle to determine at least one abnormal node.
4. The method according to claim 3, wherein For any link, performing an abnormality judgment on at least one node on the link from top to bottom according to the depth-first traversal principle to determine the last abnormal node includes: For any link, perform anomaly judgment on at least one node on the link from top to bottom according to the principle of depth-first traversal. In response to any node being an abnormal node, if the abnormal node is a connection node, continue to determine the status of the working node adjacent to the abnormal node downward. If the working node is in an abnormal state, record the identifier and location of the working node, and continue to determine the abnormal nodes on the link from top to bottom according to the principle of depth-first traversal and record the working nodes in the abnormal state until the anomaly judgment of all nodes on the link is completed, and determine the last abnormal working node. The working nodes include switching nodes, bridging nodes, and the last node on the link.
5. The method according to claim 1, characterized in that, The anomaly judgment on at least one node on at least one link includes: For any node on any link, in response to the negotiation rate of the node being less than the target rate, determine that the node is an abnormal node to complete the anomaly judgment; the negotiation rate is the rate negotiated by handshaking among all nodes on the link after power-on; the target rate is the maximum rate supported by the corresponding node.
6. The method according to claim 1, wherein The anomaly judgment on at least one node on at least one link includes: For any node on any link, in response to the negotiation bandwidth of the node being less than the target bandwidth, determine that the node is an abnormal node to complete the anomaly judgment; the negotiation bandwidth is the bandwidth negotiated by handshaking among all nodes on the link after power-on; the target bandwidth is the maximum bandwidth supported by the corresponding node.
7. The method according to claim 3, wherein The determination of at least one abnormal node by performing anomaly judgment on at least one node on any link from top to bottom according to the principle of depth-first traversal includes: For any link, perform anomaly judgment on at least one node on the link from top to bottom according to the principle of depth-first traversal. In response to any node being an abnormal node, if the abnormal node is a connection node, continue to determine the status of the working node adjacent to the abnormal node downward. If the working node is in an abnormal state, record the identifier and location of the working node, and continue to determine the abnormal nodes on the link from top to bottom according to the principle of depth-first traversal and record the working nodes in the abnormal state until the anomaly judgment of all nodes on the link is completed, and determine at least one abnormal working node. The working nodes include switching nodes, bridging nodes, and the last node on the link.
8. The method according to claim 1, wherein Before receiving the abnormal node location request sent by the management controller, it further includes: In response to the power-on request, perform the power-on operation and initialize at least one link; Control the reset of the link processor on the link; the link is connected to the link processor through a slot; Scan the peripheral devices on at least one link and determine the negotiation rate and negotiation bandwidth of each node through handshaking negotiation; The method further includes: Receive the mode pre-set for the link alarm mode sent by the management controller; Store the pre-set mode in its own memory; The method further includes: In response to the alarm configuration request triggered by the user, enter the firmware configuration option; In response to the user sequentially triggering the options of advanced settings, miscellaneous configurations, and link alarm modes in the firmware configuration options, receiving any one of the mode options triggered by the user under the option of the link alarm mode; Determining the triggered mode option as a preset mode; Storing the preset mode in its own memory.
9. An electronic device, characterized in that, Comprising: A memory for storing computer programs; A processor for implementing the steps of the abnormal node localization method according to any one of claims 1 to 8 when executing the computer program.
10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the abnormal node localization method according to any one of claims 1 to 8 when executed by a processor.