Abnormity monitoring method and device for storage network

By regularly obtaining port status parameters of storage network switches and identifying the operating status of bilateral links, the problem of insufficient port and link fault monitoring capabilities in the storage network is solved, and higher fault warning capabilities and business continuity are achieved.

CN119342019APending Publication Date: 2025-01-21CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411466517.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

The prior art lacks effective port abnormality status monitoring methods in storage networks, resulting in the inability to early warning of port failures and link failures, affecting business continuity.

Method used

By logging in multiple switches in the storage network, the port status parameters are obtained, the port status is determined, and the operating status of bilateral links is identified based on the mirror link relationship table, and abnormalities of ports and links are realized.

Benefits of technology

Effectively identify port abnormalities and bilateral links in the storage network, improve failure warning capabilities, reduce business impact, and ensure high availability of the storage network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119342019A_ABST
    Figure CN119342019A_ABST
Patent Text Reader

Abstract

The invention discloses an exception monitoring method and device for a storage network, and the method comprises the steps: logging in a plurality of switches in the storage network at regular time, so as to obtain the port state parameters of the plurality of switches; determining port states of the plurality of switches based on the port state parameters of the plurality of switches; for each switch, if the port state is abnormal, determining the port as an abnormal port based on the port of the switch; determining a plurality of bilateral links in the storage network based on the mirror image link relation table; for each bilateral link, regularly obtaining respective network states of a first switch and a second switch in the bilateral link; determining the operation state of the bilateral link based on the comparison result of the network state of the first switch and the network state of the second switch; and if the operation state of the bilateral link is abnormal, determining the bilateral link as an abnormal link based on the bilateral link. According to the method, the port abnormity and the bilateral link abnormity in the storage network can be effectively identified, and the fault early warning capability of the storage network is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network monitoring, and in particular to a method and device for monitoring abnormalities in a storage network. Background Art

[0002] Existing technologies have limited monitoring capabilities for abnormal port status, port error counts, and bilateral link status in storage networks. Generally, there is a lack of customized methods for monitoring abnormal port status. When a port or link failure occurs in a storage network, the momentary link loss can impact sensitive application systems and even disrupt business operations. Existing technologies are unable to provide early warnings based on port operating status before port and link failures occur, and are even unable to prevent the impact of these momentary link loss on business operations.

[0003] At the same time, most existing storage networks are mutually redundant bilateral network structures. In the bilateral network, each storage switch has its corresponding mirror switch. The two mirror switches are redundant with each other, and the corresponding ports of the two mirror switches are mirror ports of each other, forming redundant mirror disk links (referred to as mirror links) in the storage network. In the scenario where the high availability of the storage network is met, if a storage switch port fails and the disk link is disconnected, the mirror link of the failed link will transmit the data that the failed link should transmit. When a link failure occurs, if it is not discovered in time, the storage network has been in a unilateral operation state. Once the mirror link fails again, the host disk link will be completely disconnected, and the host will not be able to read and write storage, which will have a large business impact. Under the existing technology, it is impossible to solve the problem of the host being unable to access the storage device due to a link failure in the single-link operation state, and it is even more impossible to complete the daily bilateral link operation status monitoring of the storage network. Summary of the Invention

[0004] The present application provides a storage network anomaly monitoring method and device, the purpose of which is to identify port anomalies and bilateral link anomalies that occur in the storage network.

[0005] In order to achieve the above objectives, this application provides the following technical solutions:

[0006] A storage network abnormality monitoring method, comprising:

[0007] Periodically logging into multiple switches in the storage network to obtain port status parameters of the multiple switches;

[0008] Determining the port states of the plurality of switches based on the port state parameters of the plurality of switches;

[0009] For each of the switches, if the port status is abnormal, determine the port as an abnormal port based on the port of the switch;

[0010] Determining a plurality of bilateral links in the storage network based on a mirror link relationship table of the storage network;

[0011] For each bilateral link, periodically obtain the network status of a first switch and a second switch in the bilateral link; the second switch is a mirror switch corresponding to the first switch;

[0012] determining an operating state of the bilateral link based on a comparison result of the network state of the first switch and the network state of the second switch;

[0013] If the operating state of the bilateral link is abnormal, it is determined to be an abnormal link based on the bilateral link.

[0014] Optionally, determining the port status of the plurality of switches based on the port status parameters of the plurality of switches includes:

[0015] For each of the switches, if a port status parameter of the switch meets a preset status threshold, determining that the port status of the switch is normal;

[0016] If the port status parameter of the switch does not meet the preset status threshold, it is determined that the port status of the switch is abnormal.

[0017] Optionally, determining the port status of the plurality of switches based on the port status parameters of the plurality of switches includes:

[0018] For each of the switches, a value change of a port status parameter of the switch within a specified time period is obtained; the value change is a difference between a first value and a second value; the first value is a value of the port status parameter obtained for the first time within the specified time period, and the second value is a value of the port status parameter obtained for the second time within the specified time period;

[0019] If the value change meets the preset calibration value, determining that the port status of the switch is normal;

[0020] If the value change does not meet the preset calibration value, it is determined that the port status of the switch is abnormal.

[0021] Optionally, the port status parameters include port error count, port optical attenuation, port traffic, and port bandwidth;

[0022] Determining the port status of the plurality of switches based on the port status parameters of the plurality of switches includes:

[0023] For each of the switches, when the port error count, port optical attenuation, port traffic, and port bandwidth of the switch meet corresponding conditions, determining that the port status of the switch is normal;

[0024] When any one or more of the port error count, port optical attenuation, port traffic, and port bandwidth of the switch do not meet corresponding conditions, it is determined that the port status of the switch is abnormal.

[0025] Optionally, determining the operating status of the bilateral link based on a comparison result of the network status of the first switch and the network status of the second switch includes:

[0026] Obtaining a comparison result between a network status of the first switch and a network status of the second switch;

[0027] If the comparison result shows that the network status of the first switch is the same as the network status of the second switch, determining that the operating status of the bilateral link is normal;

[0028] If the comparison result is that the network status of the first switch is different from the network status of the second switch, it is determined that the operating status of the bilateral link is abnormal.

[0029] Optionally, the method further includes:

[0030] A port abnormality warning prompt corresponding to the abnormal port and a link abnormality warning prompt corresponding to the abnormal link are generated.

[0031] Optionally, the method further includes:

[0032] The switch to which the abnormal port belongs is triggered to perform a port isolation function so that the abnormal port no longer intervenes in the operation of the storage network.

[0033] A storage network anomaly monitoring device, comprising:

[0034] A status parameter acquisition unit, configured to periodically log in to a plurality of switches in the storage network to obtain port status parameters of the plurality of switches;

[0035] a port status determining unit, configured to determine the port status of the plurality of switches based on the port status parameters of the plurality of switches;

[0036] an abnormal port identifying unit, configured to, for each of the switches, determine, if the port status is abnormal, the port as an abnormal port based on the port of the switch;

[0037] a bilateral link determination unit, configured to determine a plurality of bilateral links in the storage network based on a mirror link relationship table of the storage network;

[0038] a network status acquisition unit, configured to periodically obtain, for each bilateral link, the network status of a first switch and a second switch in the bilateral link; the second switch being a mirror switch corresponding to the first switch;

[0039] an operating status determining unit, configured to determine an operating status of the bilateral link based on a comparison result of a network status of the first switch and a network status of the second switch;

[0040] The abnormal link identifying unit is configured to determine, based on the bilateral link, that the link is an abnormal link if the operating state of the bilateral link is abnormal.

[0041] Optionally, the port status determining unit is specifically configured to:

[0042] For each of the switches, if a port status parameter of the switch meets a preset status threshold, determining that the port status of the switch is normal;

[0043] If the port status parameter of the switch does not meet the preset status threshold, it is determined that the port status of the switch is abnormal.

[0044] Optionally, the port status determining unit is specifically configured to:

[0045] For each of the switches, a value change of a port status parameter of the switch within a specified time period is obtained; the value change is a difference between a first value and a second value; the first value is a value of the port status parameter obtained for the first time within the specified time period, and the second value is a value of the port status parameter obtained for the second time within the specified time period;

[0046] If the value change meets the preset calibration value, determining that the port status of the switch is normal;

[0047] If the value change does not meet the preset calibration value, it is determined that the port status of the switch is abnormal.

[0048] Optionally, the port status parameters include port error count, port optical attenuation, port traffic, and port bandwidth, and the port status determination unit is specifically configured to:

[0049] For each of the switches, when the port error count, port optical attenuation, port traffic, and port bandwidth of the switch meet corresponding conditions, determining that the port status of the switch is normal;

[0050] When any one or more of the port error count, port optical attenuation, port traffic, and port bandwidth of the switch do not meet corresponding conditions, it is determined that the port status of the switch is abnormal.

[0051] Optionally, the operating status determining unit is specifically configured to:

[0052] Obtaining a comparison result between a network status of the first switch and a network status of the second switch;

[0053] If the comparison result shows that the network status of the first switch is the same as the network status of the second switch, determining that the operating status of the bilateral link is normal;

[0054] If the comparison result is that the network status of the first switch is different from the network status of the second switch, it is determined that the operating status of the bilateral link is abnormal.

[0055] Optionally, the device further includes:

[0056] The abnormality warning prompt unit is used to generate a port abnormality warning prompt corresponding to the abnormal port and a link abnormality warning prompt corresponding to the abnormal link.

[0057] Optionally, the device further includes:

[0058] The abnormal port isolation unit is used to trigger the switch to which the abnormal port belongs to perform a port isolation function so that the abnormal port no longer intervenes in the operation of the storage network.

[0059] A storage medium includes a stored program, wherein the program executes the storage network abnormality monitoring method when the program is run by a processor.

[0060] An electronic device comprises: a processor, a memory and a bus; the processor and the memory are connected via the bus;

[0061] The memory is used to store a program, and the processor is used to run the program, wherein the program is executed by the processor to execute the storage network abnormality monitoring method.

[0062] The technical solution provided by the present application is to regularly log in to multiple switches in the storage network to obtain the port status parameters of the multiple switches. Based on the port status parameters of the multiple switches, the port status of the multiple switches is determined. For each switch, if the port status is abnormal, it is determined to be an abnormal port based on the port of the switch. Based on the mirror link relationship table, multiple bilateral links in the storage network are determined. For each bilateral link, the network status of the first switch and the second switch in the bilateral link is regularly obtained. Based on the comparison result of the network status of the first switch and the network status of the second switch, the operating status of the bilateral link is determined. If the operating status of the bilateral link is abnormal, it is determined to be an abnormal link based on the bilateral link. Based on the port status parameters of the switches and the network status of the first switch and the second switch in the bilateral link, the present application effectively identifies port anomalies and bilateral link anomalies occurring in the storage network, realizes effective monitoring of the port operating status and the operating conditions of the bilateral links, and thus improves the fault warning capability of the storage network. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 paying any creative work.

[0064] Figure 1 A flowchart of a storage network anomaly monitoring method provided in an embodiment of the present application;

[0065] Figure 2 A flowchart of another storage network abnormality monitoring method provided in an embodiment of the present application;

[0066] Figure 3 A flowchart of another storage network abnormality monitoring method provided in an embodiment of the present application;

[0067] Figure 4 A flowchart of another storage network abnormality monitoring method provided in an embodiment of the present application;

[0068] Figure 5 A flowchart of another storage network abnormality monitoring method provided in an embodiment of the present application;

[0069] Figure 6 A schematic diagram of the architecture of a storage network anomaly monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0070] The following will be combined with the 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 the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0071] In this application, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus 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 apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or apparatus comprising the element.

[0072] like Figure 1 FIG. 1 is a flow chart of a method for monitoring abnormalities in a storage network provided in an embodiment of the present application, which includes the following steps.

[0073] S101: Periodically log in to multiple switches in a storage network to obtain port status parameters of the multiple switches.

[0074] The method for logging into multiple switches in the storage network includes, but is not limited to, remotely logging into multiple switches in the storage network in sequence through a preset bastion host.

[0075] In some examples, the network protocol used to log in to a switch in the storage network may be SSH (Secure Shell).

[0076] In some examples, multiple switches in the storage network may be logged in periodically at preset time intervals to obtain port status parameters of the multiple switches, thereby enabling real-time monitoring of the switch port statuses.

[0077] It should be noted that the multiple switches in the storage network include multiple storage switches and corresponding mirror switches.

[0078] S102: Determine the port status of the multiple switches based on the port status parameters of the multiple switches.

[0079] After obtaining the port status parameters of the switch, the port status of the switch can be determined based on the port status parameters of the switch.

[0080] In some examples, the port status parameters include port error count, port optical attenuation, port traffic, and port bandwidth.

[0081] Optionally, the implementation process of determining the port status of multiple switches based on the port status parameters of multiple switches can be found in Figure 2 、 Figure 3 as well as Figure 4 Steps shown and explanations of the steps.

[0082] S103: For each switch, if the port status is abnormal, determine the port as an abnormal port based on the port of the switch.

[0083] If the port status is normal, the port is determined to be a normal port based on the switch.

[0084] In some examples, normal ports and abnormal ports determined at any sampling moment may be recorded in a local database for user query.

[0085] It is understandable that in order to prevent abnormal ports from causing negative impacts on disk links in the storage network, it is necessary to perform corresponding processing on the abnormal ports.

[0086] Optionally, the switch to which the abnormal port belongs is triggered to perform a port isolation function so that the abnormal port no longer intervenes in the operation of the storage network.

[0087] It should be noted that for some switches that do not have port isolation function, if the port of the switch is determined to be an abnormal port, it can be isolated through manual intervention so that the abnormal port no longer intervenes in the operation of the storage network.

[0088] S104: Determine a plurality of bilateral links in the storage network based on the mirror link relationship table of the storage network.

[0089] The mirror link relationship table of the storage network can be obtained from the host side of the storage network. The mirror link relationship table includes multiple disk links, switches included in each disk link, and corresponding mirror switches.

[0090] It should be noted that any switch and its corresponding mirror switch can form a bilateral link. By parsing the mirror link relationship table of the storage network, multiple bilateral links can be obtained.

[0091] In some examples, a port of a mirrored switch can be referred to as a mirrored port.

[0092] S105: For each bilateral link, periodically obtain the network status of the first switch and the second switch in the bilateral link.

[0093] The second switch is a mirror switch corresponding to the first switch.

[0094] In some examples, heartbeat messages may be sent to the first switch and the second switch at regular intervals according to a preset time interval to obtain the network status of each of the first switch and the second switch.

[0095] S106: Determine the operating status of the bilateral link based on a comparison result of the network status of the first switch and the network status of the second switch.

[0096] After determining the network status of the first switch and the second switch, the operation status of the bilateral link can be determined by comparing the network status of the first switch and the second switch.

[0097] Optionally, based on the comparison result of the network status of the first switch and the network status of the second switch, the implementation process of determining the operating status of the bilateral link can be found in Figure 5 Steps shown and explanations of the steps.

[0098] S107: If the operating status of the bilateral link is abnormal, determine it as an abnormal link based on the bilateral link.

[0099] If the operating status of the bilateral link is normal, it is determined to be a normal link based on the bilateral link.

[0100] In some examples, normal links and abnormal links determined at any sampling moment may be recorded in a local database for user query.

[0101] It is understandable that after an abnormal port and / or abnormal link is determined, a corresponding early warning prompt needs to be issued in a timely manner so as to inform the user to take corresponding countermeasures in a timely manner.

[0102] Optionally, a port abnormality warning prompt corresponding to the abnormal port and a link abnormality warning prompt corresponding to the abnormal link are generated.

[0103] In some examples, combined Figure 2 、 Figure 3 、 Figure 4 as well as Figure 5 The method shown in the embodiment of the present application can achieve the following beneficial effects: first, it realizes real-time monitoring of port status abnormalities and bilateral link status operation; second, it improves the fault warning capability of the disk link; third, it performs preventive maintenance on potential disk link failures, ensures the security and availability of business data, and reduces the business security risks posed by disk link failures.

[0104] The process shown in S101-S107 above effectively identifies port anomalies and bilateral link anomalies in the storage network based on the port status parameters of the switches and the network status of the first switch and the second switch in the bilateral link. This enables effective monitoring of the port operating status and bilateral link operating conditions, thereby improving the fault warning capability of the storage network.

[0105] like Figure 2 FIG. 1 is a flow chart of another storage network abnormality monitoring method provided in an embodiment of the present application, which includes the following steps.

[0106] S201: For each switch, determine whether a port status parameter of the switch meets a preset status threshold.

[0107] If the port status parameter of the switch meets the preset status threshold, S202 is executed; if the port status parameter of the switch does not meet the preset status threshold, S203 is executed.

[0108] S202: Determine that the port status of the switch is normal.

[0109] Among them, the port status parameters of the switch meet the preset status thresholds, and it can be considered that the port status parameters of the switch are not obviously abnormal, so the port status of the switch is determined to be normal.

[0110] S203: Determine that the port status of the switch is abnormal.

[0111] Among them, the port status parameters of the switch do not meet the preset status threshold, which can be considered that the port status parameters of the switch are obviously abnormal, so it is determined that the port status of the switch is abnormal.

[0112] The process shown in S201 - S203 above can identify the port status of the switch by comparing the port status parameters of the switch with the preset status threshold.

[0113] like Figure 3 FIG. 1 is a flow chart of another storage network abnormality monitoring method provided in an embodiment of the present application, which includes the following steps.

[0114] S301: For each switch, obtain a value change of a port status parameter of the switch within a specified time period.

[0115] The value change is the difference between a first value and a second value, the first value is the value of the port status parameter obtained for the first time within a specified time period, and the second value is the value of the port status parameter obtained for the second time within the specified time period.

[0116] S302: Determine whether the value change meets the preset calibration value.

[0117] If the value change amount meets the preset calibration value, then S303 is executed; if the value change amount does not meet the preset calibration value, then S304 is executed.

[0118] S303: Determine that the port status of the switch is normal.

[0119] Among them, the value change is consistent with the preset calibration value, which means that the port status parameter of the switch has not shown any obvious abnormality within the specified time period, so the port status of the switch is determined to be normal.

[0120] S304: Determine that the port status of the switch is abnormal.

[0121] Among them, the value change does not meet the preset calibration value, which can be considered that the port status parameter of the switch is obviously abnormal within the specified time period, so the port status of the switch is determined to be abnormal.

[0122] The process shown in S301 - S304 above can identify the port status of the switch by comparing the value change of the port status parameter of the switch within a specified time period with a preset calibration value.

[0123] like Figure 4 FIG. 1 is a flow chart of another storage network abnormality monitoring method provided in an embodiment of the present application, which includes the following steps.

[0124] S401: For each switch, when the port error count, port optical attenuation, port traffic, and port bandwidth of the switch meet corresponding conditions, it is determined that the port status of the switch is normal.

[0125] Among them, the switch's port error count, port optical attenuation, port traffic, and port bandwidth meet the corresponding conditions. It can be considered that there is no obvious abnormality in the switch's port status parameters, so the switch's port status is determined to be normal.

[0126] In some examples, if the port error count is less than or equal to a first value, it is determined that the port error count meets the condition; if the port error count is greater than the first value, it is determined that the port error count does not meet the condition.

[0127] In some examples, if the port optical attenuation is less than or equal to a second value, it is determined that the port optical attenuation meets the condition; if the port optical attenuation is greater than the second value, it is determined that the port optical attenuation does not meet the condition.

[0128] In some examples, if the port flow rate is greater than a third value, it is determined that the port flow rate meets the condition; if the port flow rate is less than or equal to the third value, it is determined that the port flow rate does not meet the condition.

[0129] In some examples, if the port bandwidth is greater than a fourth value, it is determined that the port bandwidth meets the condition; if the port bandwidth is less than or equal to the fourth value, it is determined that the port bandwidth does not meet the condition.

[0130] S402: When any one or more of the port error count, port optical attenuation, port traffic, and port bandwidth of the switch do not meet corresponding conditions, determine that the port status of the switch is abnormal.

[0131] If any one or more of the switch's port error count, port optical attenuation, port traffic, and port bandwidth do not meet corresponding conditions, it can be considered that the switch's port status parameters are significantly abnormal, and therefore the switch's port status is determined to be abnormal.

[0132] The process shown in S401-S402 above can identify the port status of the switch by determining whether the port error count, port optical attenuation, port traffic, and port bandwidth of the switch meet corresponding conditions.

[0133] like Figure 5 FIG. 1 is a flow chart of another storage network abnormality monitoring method provided in an embodiment of the present application, which includes the following steps.

[0134] S501: Obtain a comparison result between a network status of a first switch and a network status of a second switch.

[0135] The network status types include offline and online.

[0136] S502: If the comparison result shows that the network status of the first switch is the same as the network status of the second switch, determine that the operating status of the bilateral link is normal.

[0137] Since the first switch and the second switch form a bilateral link, their network states should be the same. Therefore, it can be determined that the operation state of the bilateral link is normal.

[0138] In some examples, if the network status of the first switch is offline and the network status of the second switch is offline, it can be determined that the operating status of the bilateral link is normal.

[0139] In some examples, if the network status of the first switch is online and the network status of the second switch is online, it can be determined that the operating status of the bilateral link is normal.

[0140] S503: If the comparison result shows that the network status of the first switch is different from the network status of the second switch, it is determined that the operating status of the bilateral link is abnormal.

[0141] Wherein, if the network states of the first switch and the second switch are different, it is determined that one or both of the first switch and the second switch fail, resulting in an abnormality in the bilateral link.

[0142] In some examples, if the network status of the first switch is offline and the network status of the second switch is online, it can be determined that the operating status of the bilateral link is abnormal.

[0143] In some examples, if the network status of the first switch is online and the network status of the second switch is offline, it can be determined that the operating status of the bilateral link is abnormal.

[0144] In the above process shown in S501 - S503 , the operation status of the bilateral links can be identified by comparing the network status of the first switch with the network status of the second switch.

[0145] like Figure 6 , which is a schematic diagram of the architecture of an abnormality monitoring device for a storage network provided in an embodiment of the present application, including the units shown below.

[0146] The status parameter collection unit 100 is used to periodically log in to multiple switches in the storage network to obtain port status parameters of the multiple switches.

[0147] The port status determining unit 200 is configured to determine the port status of a plurality of switches based on the port status parameters of the plurality of switches.

[0148] The abnormal port identification unit 300 is configured to, for each switch, determine that a port is an abnormal port based on the port of the switch if the port status is abnormal.

[0149] The bilateral link determination unit 400 is configured to determine a plurality of bilateral links in the storage network based on the mirror link relationship table of the storage network.

[0150] The network status collection unit 500 is configured to periodically obtain the network status of a first switch and a second switch in each bilateral link; the second switch is a mirror switch corresponding to the first switch.

[0151] The operation status determining unit 600 is configured to determine the operation status of the bilateral link based on a comparison result between the network status of the first switch and the network status of the second switch.

[0152] The abnormal link identifying unit 700 is configured to determine that a bilateral link is an abnormal link based on the bilateral link if the operating status of the bilateral link is abnormal.

[0153] Optionally, the port status determination unit 200 is specifically configured to: for each switch, if the port status parameter of the switch meets a preset status threshold, determine that the port status of the switch is normal; if the port status parameter of the switch does not meet the preset status threshold, determine that the port status of the switch is abnormal.

[0154] Optionally, the port status determination unit 200 is specifically used to: for each switch, obtain a numerical change in a port status parameter of the switch within a specified time period; the numerical change is the difference between a first numerical value and a second numerical value; the first numerical value is the numerical value of the port status parameter obtained for the first time within the specified time period, and the second numerical value is the numerical value of the port status parameter obtained for the second time within the specified time period; if the numerical change meets a preset calibration value, determine that the port status of the switch is normal; if the numerical change does not meet the preset calibration value, determine that the port status of the switch is abnormal.

[0155] Optionally, the port status parameters include port error count, port optical attenuation, port traffic, and port bandwidth. The port status determination unit 200 is specifically used to: for each switch, when the port error count, port optical attenuation, port traffic, and port bandwidth of the switch meet corresponding conditions, determine that the port status of the switch is normal; when any one or more of the port error count, port optical attenuation, port traffic, and port bandwidth of the switch do not meet the corresponding conditions, determine that the port status of the switch is abnormal.

[0156] Optionally, the operation status determination unit 600 is specifically configured to: obtain a comparison result between the network status of the first switch and the network status of the second switch; if the comparison result shows that the network status of the first switch is the same as the network status of the second switch, determine that the operation status of the bilateral link is normal; if the comparison result shows that the network status of the first switch is different from the network status of the second switch, determine that the operation status of the bilateral link is abnormal.

[0157] The abnormality warning prompt unit 800 is used to generate a port abnormality warning prompt corresponding to an abnormal port, and a link abnormality warning prompt corresponding to an abnormal link.

[0158] The abnormal port isolation unit 900 is used to trigger the switch to which the abnormal port belongs to perform a port isolation function, so that the abnormal port no longer intervenes in the operation of the storage network.

[0159] The above-mentioned units effectively identify port anomalies and bilateral link anomalies in the storage network based on the port status parameters of the switches and the network status of the first switch and the second switch in the bilateral link. This enables effective monitoring of the port operating status and bilateral link operating conditions, thereby improving the fault warning capability of the storage network.

[0160] The present application also provides a computer-readable storage medium, which includes a stored program, wherein the program executes the storage network abnormality monitoring method provided by the present application.

[0161] The present application also provides an electronic device comprising: a processor, a memory, and a bus. The processor and the memory are connected via the bus, the memory is used to store a program, and the processor is used to run the program, wherein the program, when running, executes the storage network anomaly monitoring method provided by the present application.

[0162] In addition, the functions described above in the embodiments of the present application may be at least partially performed by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0163] Although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this application. Certain features described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0164] The above description is merely a preferred embodiment of the present application and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this application is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this application.

Claims

1. A storage network abnormality monitoring method, characterized in that: include: Periodically logging into multiple switches in the storage network to obtain port status parameters of the multiple switches; Determining the port states of the plurality of switches based on the port state parameters of the plurality of switches; For each of the switches, if the port status is abnormal, determine the port as an abnormal port based on the port of the switch; Determining a plurality of bilateral links in the storage network based on the mirror link relationship table of the storage network; For each of the bilateral links, periodically obtaining the network status of a first switch and a second switch in the bilateral link; the second switch is a mirror switch corresponding to the first switch; Determining an operating state of the bilateral link based on a comparison result of a network state of the first switch and a network state of the second switch; If the operating state of the bilateral link is abnormal, it is determined to be an abnormal link based on the bilateral link.

2. The method according to claim 1, characterized in that Determining the port states of the plurality of switches based on the port state parameters of the plurality of switches includes: For each of the switches, if the port status parameter of the switch meets a preset status threshold, determining that the port status of the switch is normal; If the port status parameter of the switch does not meet the preset status threshold, it is determined that the port status of the switch is abnormal.

3. The method according to claim 1, characterized in that Determining the port states of the plurality of switches based on the port state parameters of the plurality of switches includes: For each of the switches, a value change of a port status parameter of the switch within a specified time period is obtained; the value change is a difference between a first value and a second value; the first value is a value of the port status parameter obtained for the first time within the specified time period, and the second value is a value of the port status parameter obtained for the second time within the specified time period; If the value change amount meets the preset calibration value, determining that the port status of the switch is normal; If the numerical variation does not conform to the preset calibration value, it is determined that the port status of the switch is abnormal.

4. The method according to claim 1, characterized in that: The port status parameters include port error count, port optical attenuation, port flow, and port bandwidth; Determining the port states of the plurality of switches based on the port state parameters of the plurality of switches includes: For each of the switches, when the port error count, port optical attenuation, port traffic, and port bandwidth of the switch meet corresponding conditions, determining that the port status of the switch is normal; When any one or more of the port error count, port optical attenuation, port flow, and port bandwidth of the switch do not meet corresponding conditions, it is determined that the port state of the switch is abnormal.

5. The method according to claim 1, characterized in that Determining the operating state of the bilateral link based on a comparison result of the network state of the first switch and the network state of the second switch includes: Obtaining a comparison result between a network status of the first switch and a network status of the second switch; If the comparison result is that the network state of the first switch is the same as the network state of the second switch, determining that the operating state of the bilateral link is normal; If the comparison result is that the network state of the first switch is different from the network state of the second switch, it is determined that the operating state of the bilateral link is abnormal.

6. The method according to claim 1, characterized in that The method further comprises: A port abnormality warning prompt corresponding to the abnormal port and a link abnormality warning prompt corresponding to the abnormal link are generated.

7. The method according to claim 1, characterized in that The method further comprises: The switch to which the abnormal port belongs is triggered to perform a port isolation function so that the abnormal port no longer intervenes in the operation of the storage network.

8. A storage network abnormality monitoring device, characterized in that: include: A state parameter acquisition unit, used for periodically logging into a plurality of switches in the storage network to obtain port state parameters of the plurality of switches; A port status determination unit, configured to determine the port status of the plurality of switches based on the port status parameters of the plurality of switches; an abnormal port identification unit, configured to, for each of the switches, determine the port as an abnormal port based on the port of the switch if the port status is abnormal; A bilateral link determination unit, configured to determine a plurality of bilateral links in the storage network based on a mirror link relationship table of the storage network; A network status acquisition unit, configured to periodically obtain the network status of a first switch and a second switch in each bilateral link; the second switch is a mirror switch corresponding to the first switch; an operation status determining unit, configured to determine the operation status of the bilateral link based on a comparison result between the network status of the first switch and the network status of the second switch; The abnormal link identification unit is used to determine that the bilateral link is an abnormal link based on the bilateral link if the operating state of the bilateral link is abnormal.

9. A storage medium, characterized in that: The storage medium includes a stored program, wherein the program, when executed by a processor, executes the storage network abnormality monitoring method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: processor, memory, and bus; The processor is connected to the memory via the bus; The memory is used to store programs, and the processor is used to run programs, wherein the program, when run by the processor, executes the storage network abnormality monitoring method according to any one of claims 1 to 7.