A method, equipment, and medium for detecting and analyzing storage area networks.

By acquiring and analyzing port data from the storage area network, the physical network topology and link status are determined, solving the problem of quickly locating fault points in large networks and achieving efficient fault detection and accurate location.

CN119052101BActive Publication Date: 2026-01-30INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411182555.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2026-01-30
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

Existing technologies cannot quickly determine the fault point of a single device in a mesh channel storage area network, and it is difficult to quickly locate the fault point in a large-scale network.

Method used

By acquiring port data from each electronic device in the storage area network, classifying it to obtain basic port data, connection data, and statistical data, determining the physical network topology, and analyzing the statistical data to draw conclusions about link status and congestion status, the network operating status is ultimately determined.

Benefits of technology

It enables rapid and accurate detection of fault points in large storage area networks, improving the accuracy and efficiency of fault point identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052101B_ABST
    Figure CN119052101B_ABST
Patent Text Reader

Abstract

This invention provides a storage area network (SAND) detection and analysis method, detection and analysis equipment, and medium, applied in the field of SAND detection technology. The method includes: acquiring port data corresponding to each electronic device in the SAND; classifying the port data to obtain basic port data, port connection data, general port statistics, and specific port statistics; determining the physical network topology of the SAND based on the basic port data, port connection data, and specific port statistics; analyzing the general port statistics and specific port statistics to obtain analytical conclusions characterizing the link status and congestion status of the SAND; and determining the operating status of the SAND based on the analytical conclusions and the physical network topology. It is evident that the physical network topology generated by this invention is highly flexible, and this method can detect faults in large SAND networks, improving the accuracy and efficiency of fault location.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of storage area network (SLAN) detection technology, and in particular to a SLAN detection and analysis method, detection and analysis equipment, and medium. Background Technology

[0002] Fibre Channel Strong Area Network (FCSAN) is a dedicated high-speed network for data storage. It uses Fibre Channel technology to interconnect electronic devices and storage arrays, forming a dedicated local area network (LAN) for storage. The Fibre Channel protocol, a standard protocol widely used in storage LANs, provides long-distance and high-bandwidth transmission.

[0003] As network scale increases and protocol speeds evolve, leading to the mixed deployment of devices with different speeds, FCSAN networks suffer from the problem of slow electronic devices impacting overall network performance. Furthermore, the presence of different electronic devices from various vendors within FCSAN networks makes it impractical to analyze network-wide problems based on a single device, and rapidly locating potential fault points in individual devices becomes extremely difficult in large-scale networks.

[0004] It is evident that how to quickly determine the status of a storage area network is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this invention is to provide a storage area network (SLAN) detection and analysis method, detection and analysis equipment, and medium, which can solve the problems in the prior art of being unable to analyze the entire network based on a single point device in a mesh channel SLAN and to quickly determine the fault point.

[0006] To address the aforementioned technical problems, embodiments of the present invention provide a storage area network detection and analysis method, comprising:

[0007] Retrieve port data for each electronic device in the storage area network;

[0008] The data from each port is categorized to obtain basic port data, port connection data, general port statistics, and port-specific statistics.

[0009] The physical network topology of the storage area network is determined based on basic port data, port connection data, and port-specific statistics.

[0010] Analyze general port statistics and port-specific statistics to obtain analytical conclusions characterizing the link status and congestion status of the storage area network;

[0011] The operational status of the storage area network is determined based on the analysis results and the physical network topology.

[0012] In some embodiments, obtaining port data corresponding to each electronic device in the storage area network includes:

[0013] Obtain manufacturer information for each electronic device in the storage area network;

[0014] The information command used to obtain port data for electronic devices is determined based on information from each manufacturer.

[0015] Configure the data acquisition cycle for each electronic device;

[0016] Data from each port of each electronic device is acquired based on the acquisition cycle and information commands.

[0017] In some embodiments, the physical network topology of the storage area network is determined based on port basic data, port connection data, and port proprietary statistics, including:

[0018] Obtain the first global port name and first identifier corresponding to each electronic device from the port basic data;

[0019] Obtain the second global port name and second identifier corresponding to each electronic device that has established a port connection login in the port connection data;

[0020] Obtain the name service data and interface data corresponding to each electronic device from the port-specific statistics;

[0021] The interface connection status of the corresponding electronic device is determined based on name service data and interface data;

[0022] Obtain the first electronic device corresponding to the first global port name that matches the second global port name;

[0023] Obtain the second electronic device corresponding to the second identifier that matches the second identifier;

[0024] Obtain the same electronic device from the first electronic device and the second electronic device, and use it as the target electronic device;

[0025] The physical network topology of the storage area network is determined based on the interface connection status and the target electronic device.

[0026] In some embodiments, port general statistics and port specific statistics are analyzed to obtain analytical conclusions characterizing the storage area network link status and congestion status, including:

[0027] Perform transmit and receive power analysis and / or link error statistical analysis on port general statistics to obtain link health status conclusions that characterize the link status of the storage area network;

[0028] Transmission congestion analysis is performed on general port statistics and port-specific statistics to obtain conclusions on transmission congestion status that characterize the congestion status of the storage area network.

[0029] The analysis conclusions are determined based on the link health status conclusions and the transmission congestion status conclusions.

[0030] In some embodiments, transmit and receive power analysis is performed on port general statistics to obtain link health status conclusions characterizing the link status of the storage area network, including:

[0031] Obtain the port pairs that have physical connections in the physical network topology; wherein the ports in the port pair are the first port and the second port, respectively;

[0032] Obtain the first power data corresponding to the first port from the general port statistics;

[0033] Obtain the second power data corresponding to the second port from the port general statistics;

[0034] The link power attenuation value of the port to the corresponding link is determined based on the first power data and the second power data;

[0035] The link health status conclusion, which characterizes the link status of the storage area network, is determined based on the link power attenuation value and the preset power attenuation value.

[0036] In some embodiments, link error statistical analysis is performed on port general statistics to obtain link health status conclusions characterizing the link status of the storage area network, including:

[0037] Obtain the ports in the physical network topology;

[0038] Obtain the synchronization signal loss statistics and target error statistics for each port from the general port statistics;

[0039] The port error data for the corresponding port is determined based on the synchronization signal loss statistics and target error statistics.

[0040] The link health status conclusion is determined based on the port error data and the preset error data, which characterizes the link status of the storage area network.

[0041] In some embodiments, transmission congestion analysis is performed on general port statistics and port-specific statistics to obtain transmission congestion status conclusions characterizing the congestion status of the storage area network, including:

[0042] Obtain the ports in the physical network topology;

[0043] Retrieve the consumed credit value data for each port from the general port statistics;

[0044] Get the timeout message difference statistics and discarded insulation difference statistics for each port from the port-specific statistics;

[0045] The sum of consumed credit value data, timeout message difference statistics, and discarded insulation difference statistics is used as the target congestion data for the current port;

[0046] Based on the target congestion data and the preset congestion data, a transmission congestion status conclusion is determined to characterize the congestion status of the storage area network.

[0047] In some embodiments, after determining the operating status of the storage area network based on the analysis conclusions and the physical network topology, the method further includes:

[0048] The storage area network (SAND) operation status is sent to the host computer so that the host computer can trigger the corresponding alarm system based on the SAND operation status.

[0049] On the other hand, the present invention also provides a storage area network detection and analysis device, comprising:

[0050] Memory, used to store computer programs;

[0051] A processor is used to execute computer programs to implement the steps of the above-described storage area network detection and analysis method.

[0052] On the other hand, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described storage area network detection and analysis method.

[0053] On the other hand, the present invention also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-described storage area network detection and analysis method.

[0054] As can be seen from the above technical solution, the present invention provides a storage area network (SAND) detection and analysis method, including: acquiring port data corresponding to each electronic device in the SAND; classifying the port data to obtain basic port data, port connection data, general port statistics, and specific port statistics; determining the physical network topology of the SAND based on the basic port data, port connection data, and specific port statistics; analyzing the general port statistics and specific port statistics to obtain analytical conclusions characterizing the link status and congestion status of the SAND; and determining the operating status of the SAND based on the analytical conclusions and the physical network topology. It is evident that the present invention, by acquiring port data corresponding to each electronic device in the SAND, takes into account the parameters of different electronic devices in the current network. By drawing the physical network topology of the current SAND through the acquired basic port data, port connection data, and specific port statistics, the present invention offers high flexibility in physical network topology. Furthermore, by analyzing the acquired general port statistics and specific port statistics, the present invention can obtain analytical conclusions characterizing the link status and congestion status of the SAND. Combining these analytical conclusions with the physical network topology, the operating status and fault status of the current SAND can be quickly determined. Therefore, the storage area network detection and analysis method provided by the present invention can detect faults in large storage area networks and improve the accuracy and efficiency of fault location. Attached Figure Description

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

[0056] Figure 1 A flowchart of a storage area network detection and analysis method provided in an embodiment of the present invention;

[0057] Figure 2 A structural diagram of a storage area network provided in an embodiment of the present invention;

[0058] Figure 3 This is a structural diagram of a storage area network detection and analysis device provided in an embodiment of the present invention. Detailed Implementation

[0059] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of the present invention.

[0060] The terms "comprising" and "having," and any variations thereof, in the specification and accompanying drawings of this invention are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may include steps or units not listed.

[0061] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0062] Next, a storage area network detection and analysis method provided by an embodiment of the present invention will be described in detail. Figure 1 A flowchart of a storage area network detection and analysis method provided in an embodiment of the present invention is shown below. Figure 1 As shown, the storage area network detection and analysis method includes the following steps:

[0063] S10: Obtain port data corresponding to each electronic device in the storage area network.

[0064] S11: Classify the data of each port to obtain basic port data, port connection data, general port statistics and port-specific statistics.

[0065] In specific embodiments, the types of electronic devices in a storage area network (SNR) include: switching devices, storage devices, and server devices. Furthermore, the number of each type of device is not limited to one. Therefore, there may be multiple switching devices in the SNR, each from a different manufacturer; or multiple storage devices, each from a different manufacturer; or multiple server devices, each from a different manufacturer. An example is given where the SNR includes two switching devices from different manufacturers, two storage devices from different manufacturers, and two server devices from different manufacturers. Figure 2As shown in the diagram. The switching devices are Switch A and Switch B, the storage devices are Storage A and Storage B, and the server devices are Server A and Server B. The connection relationships of the electronic devices in the storage area network are as follows: Storage device A, Storage device B, and Server A are connected to Switch A; Server B is connected to Switch B; and Switch A is also connected to Switch B.

[0066] In this embodiment, each electronic device has a port for connecting with other electronic devices for transmitting data and other signals. Therefore, obtaining the port data corresponding to each electronic device can roughly determine the structure of the current storage area network. For the sake of simplicity in subsequent data acquisition, the port data is categorized into basic port data, port connection data, general port statistics, and port-specific statistics. Basic port data includes: the global port number (WWPN) and its identifier (N-Port Identifier, NportID); port connection data includes: the set of all remote ports connected to this port; general port statistics include optical module data (e.g., transmit / receive power data, temperature data, voltage and current data, etc.) and error statistics (e.g., link failure statistics, synchronization signal loss statistics, primitive error statistics, incomplete message statistics, credit value loss statistics, etc.); port-specific statistics include: name server data of the switching devices in the electronic devices, message timeout statistics, message drop statistics, etc.

[0067] S12: Determine the physical network topology of the storage area network based on the port basic data, port connection data, and port-specific statistics.

[0068] In a specific embodiment, based on specific data from port basic data, port connection data, and port-specific statistical data, the current connection state of each electronic device can be determined, thereby drawing a physical network topology representing the physical layout of the connection relationships between the electronic devices in the current storage area network. Because the physical network topology determined by this invention using port basic data, port connection data, and port-specific statistical data is highly flexible and can be adjusted at any time.

[0069] S13: Analyze the general statistics and specific statistics of the ports to obtain analytical conclusions characterizing the link status and congestion status of the storage area network.

[0070] S14: Determine the operating status of the storage area network based on the analysis results and the physical network topology.

[0071] In a specific embodiment, since the port data corresponding to each electronic device reflects not only the connection status of the electronic device but also the health status of the corresponding connection port, analyzing the general and specific port statistics in the port data can determine the link status and congestion status between ports of different electronic devices. The analysis conclusions clearly identify which link has encountered what kind of problem. Based on this, and combined with the physical network topology determined in the above steps, the current operating status of the storage area network can be quickly determined, that is, it can quickly identify which electronic device in the storage area network has failed and what type of failure it has.

[0072] The port-specific statistics include port transmit / receive power data and link error statistics. Therefore, the link health status, characterizing the storage area network's link state, can be determined based on these statistics. The port-specific statistics also include consumed credit value data for each port; and the port-specific statistics include timeout message difference statistics and dropout insulation difference statistics. Combining these statistics allows for the determination of the transmission congestion status, characterizing the storage area network's congestion state. Finally, the analysis conclusions characterizing the storage area network's link state and congestion status are determined based on the link health status and transmission congestion status conclusions.

[0073] As can be seen from the above technical solution, the storage area network (SAND) detection and analysis method provided by this invention includes: acquiring port data corresponding to each electronic device in the SAND; classifying the port data to obtain basic port data, port connection data, general port statistics, and specific port statistics; determining the physical network topology of the SAND based on the basic port data, port connection data, and specific port statistics; analyzing the general port statistics and specific port statistics to obtain analytical conclusions characterizing the link status and congestion status of the SAND; and determining the operating status of the SAND based on the analytical conclusions and the physical network topology. It is evident that this invention, by acquiring port data corresponding to each electronic device in the SAND, considers the parameters of different electronic devices in the current network. By drawing the physical network topology of the current SAND through the acquired basic port data, port connection data, and specific port statistics, it provides high flexibility in physical network topology. Furthermore, by analyzing the acquired general port statistics and specific port statistics, this invention can obtain analytical conclusions characterizing the link status and congestion status of the SAND. Combining these analytical conclusions with the physical network topology allows for the rapid determination of the current operating status and fault status of the SAND. Therefore, the storage area network detection and analysis method provided by the present invention can detect faults in large storage area networks and improve the accuracy and efficiency of fault location.

[0074] In some embodiments, obtaining port data corresponding to each electronic device in the storage area network includes:

[0075] Obtain manufacturer information for each electronic device in the storage area network;

[0076] The information command used to obtain port data for electronic devices is determined based on information from each manufacturer.

[0077] Configure the data acquisition cycle for each electronic device;

[0078] Data from each port of each electronic device is acquired based on the acquisition cycle and information commands.

[0079] In specific embodiments, due to the large-scale construction of storage area networks (SLANs), the manufacturers of the internal electronic devices will differ, and the commands used to acquire data from electronic devices of different manufacturers will also differ. Therefore, to ensure the smooth acquisition of port data corresponding to each electronic device in the SLAN, it is necessary to first determine the manufacturer information for each electronic device in the SLAN, and then determine the information commands used to acquire the port data based on this manufacturer information. The specific acquisition process for these information commands is as follows: based on the manufacturer information, query the information commands for port data corresponding to electronic devices from different manufacturers and import them into the database. This ensures that the corresponding information commands are used when acquiring port data for each electronic device, avoiding situations where inconsistencies in information commands prevent data acquisition. For example, the command for acquiring basic port data for electronic devices from manufacturer A is `lshbaport`, the command for acquiring port connection data is `lshbaconnect`, and the command for acquiring general port statistics is `lshbaportstats`. Since the port data of electronic devices is not static, it is necessary to configure the port data acquisition cycle to ensure the accuracy of the acquired port data. Finally, based on the acquisition cycle and information commands, the port data corresponding to each electronic device is acquired to enable physical network topology mapping and data analysis.

[0080] This includes retrieving the manufacturer information for each electronic device in the storage area network (SLAN), as well as the management address, username, password, and other details associated with each device. This allows for the recording of detailed information about each electronic device in the SLAN, facilitating future searches.

[0081] It should be noted that the embodiments provided by the present invention are only one possible implementation method, but are not limited to this only implementation method. Users can set their own implementation methods according to their needs.

[0082] This invention provides a step for obtaining port data corresponding to each electronic device in a storage area network. This step ensures the smoothness of obtaining port data, as well as the real-time performance and accuracy of the port data.

[0083] In some embodiments, the physical network topology of the storage area network is determined based on port basic data, port connection data, and port proprietary statistics, including:

[0084] Obtain the first global port name and first identifier corresponding to each electronic device from the port basic data;

[0085] Obtain the second global port name and second identifier corresponding to each electronic device that has established a port connection login in the port connection data;

[0086] Obtain the name service data and interface data corresponding to each electronic device from the port-specific statistics;

[0087] The interface connection status of the corresponding electronic device is determined based on name service data and interface data;

[0088] Obtain the first electronic device corresponding to the first global port name that matches the second global port name;

[0089] Obtain the second electronic device corresponding to the second identifier that matches the second identifier;

[0090] Obtain the same electronic device from the first electronic device and the second electronic device, and use it as the target electronic device;

[0091] The physical network topology of the storage area network is determined based on the interface connection status and the target electronic device.

[0092] In a specific embodiment, the physical network topology refers to the physical layout between electronic devices in a storage area network (SNR). Therefore, before drawing the physical network topology, it is necessary to determine the connection status of each electronic device in the SNR. The port data obtained in the above steps reflects the connection status of each electronic device. Therefore, the physical network topology corresponding to the SNR can be determined based on the port data. The port data is divided into basic port data, port connection data, general port statistics, and port-specific statistics. General port statistics represent the parameters of the connection links in each electronic device; basic port data and port connection data represent the connection status data of each electronic device. Furthermore, since the electronic devices in the SNR include switching devices, and other types of electronic devices are connected to switching devices, this invention constructs the physical network topology based on the basic port data, port connection data, and port-specific statistics. First, the first global port name and first identifier corresponding to each electronic device in the basic port data are determined, that is, all ports in the current SNR are recorded. Then, the second global port name and second identifier corresponding to each electronic device that has established a port connection login are obtained from the port connection data, that is, ports with connection relationships are recorded. Then, the name service data and interface data corresponding to each electronic device in the port-specific statistics are obtained. At this point, the general connection relationships of the electronic devices are clear. Then, the ports with connection relationships are queried in the records of all ports, and the corresponding target electronic devices are determined based on the ports. Finally, the physical network topology is drawn based on the clear connection ports, interface connection status and target electronic devices.

[0093] The specific steps of this invention in querying the records of all ports for ports with connection relationships and determining the corresponding target electronic device based on the port are determined based on the global port name and identifier corresponding to the port.

[0094] For example, name service data is obtained through the corresponding information command (nsshow), and the first global port name and first identifier corresponding to each electronic device in the port basic data are obtained; as well as the second global port name and second identifier corresponding to each electronic device that has established a port connection login in the port connection data are obtained; based on this data, the connection status of each port of the electronic device is drawn, and after determining the second global port name and second identifier corresponding to each electronic device that has established a port connection login, the first global port name and first identifier corresponding to each electronic device are retrieved. In this way, it can be determined which devices have established a connection, thereby completing the drawing of the physical network topology.

[0095] In addition, since the physical network topology provided by this invention is drawn based on port data, it offers high flexibility. However, after the physical network topology is drawn for the first time, it needs to be manually compared with the specific storage area network scenario. This is because, during the construction of a large storage area network, two electronic devices that should be connected may not actually be connected, but the port data cannot reflect this problem. Therefore, the drawn physical network topology will contain errors, affecting subsequent port data analysis and storage area network status analysis. Thus, after the physical network topology is drawn for the first time, it needs to be manually compared with the specific storage area network scenario to ensure that the current large storage area network is built without faults. The initial physical network topology drawing can also accurately represent the physical layout of the current storage area network.

[0096] It should be noted that the embodiments provided by the present invention are only one possible implementation method, but are not limited to this only implementation method. Users can set their own implementation methods according to their needs.

[0097] This invention provides a method for drawing physical network topology. In this method, the drawn physical network topology is highly flexible and can be adjusted in real time to meet the needs of the current storage area network scenario.

[0098] In some embodiments, port general statistics and port specific statistics are analyzed to obtain analytical conclusions characterizing the storage area network link status and congestion status, including:

[0099] Perform transmit and receive power analysis and / or link error statistical analysis on port general statistics to obtain link health status conclusions that characterize the link status of the storage area network;

[0100] Transmission congestion analysis is performed on general port statistics and port-specific statistics to obtain conclusions on transmission congestion status that characterize the congestion status of the storage area network.

[0101] The analysis conclusions are determined based on the link health status conclusions and the transmission congestion status conclusions.

[0102] In a specific embodiment, the link health status conclusion characterizing the link status of the storage area network can be obtained by performing transmit and receive power analysis and / or link error statistical analysis on the port general statistical data, while the transmission congestion status conclusion characterizing the congestion status of the storage area network can be obtained by performing transmission congestion analysis on the port general statistical data and port specific statistical data.

[0103] The specific steps of its power analysis are as follows: Obtain port pairs with physical connections in the physical network topology; wherein, the ports in the port pair are the first port and the second port; obtain the first power data corresponding to the first port in the general port statistics; obtain the second power data corresponding to the second port in the general port statistics; determine the link power attenuation value of the link corresponding to the port pair based on the first power data and the second power data; determine the link health status conclusion characterizing the link status of the storage area network based on the link power attenuation value and the preset power attenuation value.

[0104] In specific embodiments, the physical connection is typically a fiber optic cable connection, and in a port pair with a physical connection, one port represents the signal input and the other represents the signal output. Therefore, the first power data corresponding to the first port in the port pair is represented as the emission power of the first port, and the second power data corresponding to the second port in the port pair is represented as the received power of the second port. Power attenuation occurs during transmission via the physical fiber optic cable. The expression for the link power attenuation value is: decay power = |Port2 rx_power – Port1 tx_power| + |Port1 rx_power – Port2 tx_power|. Where Port1 tx_power represents the first power data; Port2 rx_power represents the second power; and decay power represents the link power attenuation value. Since link attenuation follows a certain pattern, there exists a standard value, namely a preset power attenuation value. The link health status conclusion, representing the link state of the storage area network, can be determined based on the relationship between the link power attenuation value and the preset power attenuation value, thereby achieving network link health status analysis. In this process, each link in the storage area network undergoes transmit and receive power analysis, and the corresponding link power attenuation value is marked on the physical network topology. Therefore, the difference in values ​​for problematic links can be clearly seen. Furthermore, if the transmit and receive power is 0, the port can be directly marked as inactive in the physical network topology.

[0105] The specific steps of its link error statistical analysis are as follows: obtain each port in the physical network topology; obtain the synchronization signal loss statistics and target error statistics corresponding to each port in the port general statistics; determine the port error data of the corresponding port based on the synchronization signal loss statistics and target error statistics; determine the link health status conclusion that characterizes the link status of the storage area network based on the port error data and the preset error data.

[0106] In a specific embodiment, link error statistical analysis differs from transmit / receive power analysis. Link error statistical analysis is based on the difference of periodic statistical data. It requires obtaining the synchronization signal loss statistics and target error statistics for each port from the general port statistics, and then determining the port error data for the corresponding port based on the synchronization signal loss statistics and target error statistics. The expression for port error data is: Port1 errordiagnostics = Port1 err crc Period difference + Port1 err loss sync Period difference + (other error statistics counts). Here, Port1 error diagnostics represents port error data; Port1 err crc Period difference represents target error statistics; and Port1 err loss syncPeriod difference represents synchronization signal loss statistics. The expression for target error statistics is: Port1err crc Period difference = T1 crc count – T2 crc count; where T1 crc count represents the error data for the first period; and T2 crc count represents the error data for the second period. The port error data reflects the error count of the port, but the source of the problem is not necessarily the port itself, but may be the cable connected to the port or the port on the other end. Therefore, based on the relationship between the port error data and the preset error data, the link health status conclusion that characterizes the link status of the storage area network can be determined, thereby realizing the health status analysis of the network link.

[0107] The specific steps of its transmission congestion analysis are as follows: Obtain each port in the physical network topology; obtain the consumed credit value data corresponding to each port in the port general statistics; obtain the timeout message difference statistics and discard insulation difference statistics corresponding to each port in the port specific statistics; take the sum of the consumed credit value data, timeout message difference statistics and discard insulation difference statistics as the target congestion data corresponding to the current port; determine the transmission congestion status conclusion that characterizes the congestion status of the storage area network based on the target congestion data and the preset congestion data.

[0108] In specific embodiments, transmission congestion analysis is primarily based on port statistics and port-specific statistics, mainly including: consumed credit value data from general port statistics; and timeout message difference statistics and discarded insulation difference statistics from port-specific statistics. The timeout message difference statistics and discarded insulation difference statistics are confirmed using periodically collected differences, while consumed credit value data is analyzed directly using numerical values. A significant increase in both the timeout message difference statistics and the discarded insulation difference statistics within a period indicates a problem with ineffective message transmission at that port, potentially indicating congestion. Conversely, a low credit value indicates a slow buffer, preventing the reception of new messages, also suggesting port congestion. The expression for the target congestion data is: Transmission exception = Port1 frame timeout Period difference + Port1 frame discarded Period difference + (max credit – current credit). Here, Transmission exception represents the target congestion data; Port1 frame timeout Period difference represents the timeout message difference statistics; Port1 frame discarded Period difference represents the discarded insulation difference statistics; and max credit – current credit represents consumed credit value data. Finally, the transmission congestion status conclusion, which characterizes the congestion status of the storage area network, is determined based on the size of the target congestion data and the preset congestion data. The larger the target congestion data, the higher the congestion level of the current link.

[0109] In addition to determining the analysis conclusions based on the link health status and transmission congestion status, and determining the operating status of the storage area network based on the analysis conclusions and physical network topology, the operating status of the storage area network also needs to be sent to the host computer so that the host computer can trigger the corresponding alarm system based on the operating status of the storage area network to notify the operation and maintenance personnel.

[0110] It should be noted that the embodiments provided by the present invention are only one possible implementation method, but are not limited to this only implementation method. Users can set their own implementation methods according to their needs.

[0111] As can be seen from the above technical solution, the storage area network (SAND) detection and analysis method provided by this invention includes: acquiring port data corresponding to each electronic device in the SAND; classifying the port data to obtain basic port data, port connection data, general port statistics, and specific port statistics; determining the physical network topology of the SAND based on the basic port data, port connection data, and specific port statistics; analyzing the general port statistics and specific port statistics to obtain analytical conclusions characterizing the link status and congestion status of the SAND; and determining the operating status of the SAND based on the analytical conclusions and the physical network topology. It is evident that this invention, by acquiring port data corresponding to each electronic device in the SAND, considers the parameters of different electronic devices in the current network. It constructs the physical network topology of the current SAND using the acquired basic port data, port connection data, and specific port statistics, resulting in high flexibility in the physical network topology. Furthermore, this invention analyzes the acquired general port statistics and specific port statistics to obtain analytical conclusions characterizing the link status and congestion status of the SAND. Combining these analytical conclusions with the physical network topology allows for rapid determination of the current operating status and fault status of the SAND. Therefore, the storage area network detection and analysis method provided by the present invention can detect faults in large storage area networks and improve the accuracy and efficiency of fault location.

[0112] Figure 3 A structural diagram of a storage area network detection and analysis device provided in an embodiment of the present invention is shown below. Figure 3 As shown, the storage area network detection and analysis device includes: a memory 60 for storing computer programs;

[0113] The processor 61 is used to execute computer programs to implement the steps of the storage area network detection and analysis method as described in the above embodiments.

[0114] The storage area network detection and analysis device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.

[0115] The processor 61 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 61 may be implemented using at least one hardware form selected from Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor, also known as the Central Processing Unit (CPU), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 61 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 61 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.

[0116] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 60 is used to store at least the following computer program 601, which, after being loaded and executed by the processor 61, is capable of implementing the relevant steps of the storage area network detection and analysis method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. The operating system 602 may include Windows, Unix, Linux, etc.

[0117] In some embodiments, the storage area network detection and analysis device may further include a display screen 62, an input / output interface 63, a communication interface 64, a power supply 65, and a communication bus 66.

[0118] Those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on storage area network detection and analysis equipment and may include more or fewer components than shown.

[0119] It is understood that if the storage area network detection and analysis method in the above embodiments is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the current technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods in the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drive, mobile hard drive, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk, and other media capable of storing program code.

[0120] Based on this, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the storage area network detection and analysis method described above.

[0121] Based on this, embodiments of the present invention also provide a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-described storage area network detection and analysis method.

[0122] The foregoing has provided a detailed description of a storage area network (SAND) detection and analysis device provided by the embodiments of the present invention. The various embodiments are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0123] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0124] The foregoing has provided a detailed description of the storage area network (SAND) detection and analysis method, detection and analysis equipment, and medium provided by this invention. Specific examples have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this invention. It should be noted that those skilled in the art can make various improvements and modifications to this invention without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this invention.

Claims

1. A storage area network detection analysis method, characterized by, The method comprises: acquiring port data corresponding to each electronic device in the storage area network; classifying each port data to obtain port basic data, port connection data, port general statistical data and port specific statistical data; wherein the port basic data comprises a global port name and an identifier; the port connection data comprises a set of all remote ports connected to the port; the port general statistical data comprises at least optical module data and error statistical data; the port specific statistical data comprises at least server data of a switch device in the electronic device, message timeout statistical data and message discard statistical data; determining a physical network topology of the storage area network according to the port basic data, the port connection data and the port specific statistical data; wherein the physical network topology of the storage area network is a physical network topology representing the physical layout of the connection relationship between each electronic device in the storage area network; analyzing the port general statistical data and the port specific statistical data to obtain analysis conclusions representing the link state and congestion state of the storage area network; determining the running state of the storage area network based on the analysis conclusions and the physical network topology; the analysis of the port general statistical data and the port specific statistical data to obtain analysis conclusions representing the link state and congestion state of the storage area network comprises: performing transmit / receive optical power analysis and / or link error statistical analysis on the port general statistical data to obtain link health state conclusions representing the link state of the storage area network; performing transmission congestion analysis on the port general statistical data and the port specific statistical data to obtain transmission congestion state conclusions representing the congestion state of the storage area network; determining the analysis conclusions according to the link health state conclusions and the transmission congestion state conclusions.

2. The storage area network detection analysis method of claim 1, wherein, The acquisition of the port data corresponding to each electronic device in the storage area network comprises: acquiring manufacturer information corresponding to each electronic device in the storage area network; determining information instructions for acquiring the port data corresponding to each electronic device based on each manufacturer information; configuring a collection period for each electronic device; acquiring each port data corresponding to each electronic device based on the collection period and the information instructions.

3. The storage area network detection analysis method of claim 1, wherein, The determination of the physical network topology of the storage area network according to the port basic data, the port connection data and the port specific statistical data comprises: acquiring a first global port name and a first identifier corresponding to each electronic device in the port basic data; acquiring a second global port name and a second identifier corresponding to each electronic device logged in to establish port connection in the port connection data; acquiring name service data and interface data corresponding to each electronic device in the port specific statistical data; determining the interface connection state of the corresponding electronic device based on the name service data and the interface data; acquiring a first electronic device corresponding to the first global port name matching the second global port name. acquire a second electronic device corresponding to the second identifier matching the second identifier; acquire the same electronic device from the first electronic device and the second electronic device as a target electronic device; determine the physical network topology of the storage area network based on the interface connection state and the target electronic device.

4. The storage area network detection analysis method of claim 1, wherein, perform the transceiving optical power analysis on the port general statistical data to obtain a link health state conclusion representing the link state of the storage area network, including: acquire a port pair having a physical connection in the physical network topology; wherein the ports in the port pair are a first port and a second port respectively; acquire first power data corresponding to the first port in the port general statistical data; acquire second power data corresponding to the second port in the port general statistical data; determine a link power attenuation value of a link corresponding to the port pair according to the first power data and the second power data; determine the link health state conclusion representing the link state of the storage area network according to the link power attenuation value and a preset power attenuation value.

5. The storage area network detection analysis method of claim 1, wherein, perform the link error statistical analysis on the port general statistical data to obtain a link health state conclusion representing the link state of the storage area network, including: acquire each port in the physical network topology; acquire synchronization signal loss statistical data and target error statistical data corresponding to each port in the port general statistical data; determine port error data of the port according to the synchronization signal loss statistical data and the target error statistical data; determine the link health state conclusion representing the link state of the storage area network according to the port error data and a preset error data.

6. The storage area network detection analysis method of claim 1, wherein, perform the transmission congestion analysis on the port general statistical data and the port specific statistical data to obtain a transmission congestion state conclusion representing the congestion state of the storage area network, including: acquire each port in the physical network topology; acquire consumed credit value data corresponding to each port in the port general statistical data; acquire timeout packet difference statistical data and discard retention difference statistical data corresponding to each port in the port specific statistical data; sum the consumed credit value data, the timeout packet difference statistical data and the discard retention difference statistical data as target congestion data corresponding to the current port pair; determine the transmission congestion state conclusion representing the congestion state of the storage area network according to the target congestion data and a preset congestion data.

7. The method of SAN detection analysis according to any of claims 1-6, wherein, after determining the storage area network running state based on the analysis conclusion and the physical network topology, further including: send the storage area network running state to a host computer so that the host computer triggers a corresponding alarm system according to the storage area network running state.

8. A storage area network detection analysis device, characterized by, including: a memory for storing a computer program; a processor for executing the computer program to implement the steps of the storage area network detection and analysis method according to any one of claims 1 to 7.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the storage area network detection and analysis method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Optical fiber link fault monitoring method and system in storage network

    CN112332914A