Storage area network detection and analysis method, detection and analysis equipment and medium

By acquiring and analyzing the port data of the storage area network and determining the physical topology and link status, the problem of single-point equipment analysis in the mesh channel storage area network is solved, rapid fault location and network status monitoring are achieved, and network performance and efficiency are improved. .

CN119052101AActive Publication Date: 2024-11-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The prior art is difficult to analyze the entire network state based on a single point device in a mesh channel storage area network, especially under the mixed equipment of different speeds and large network scales, resulting in network performance and difficulty in fault location.

Method used

By obtaining the port data of each electronic device in the storage area network, classifying it into basic data, connection data, general statistics and proprietary statistics, determining the physical network topology, and analyzing these data to characterize link status and blocked status , combine analysis conclusions and topology to determine the network operation status.

Benefits of technology

It realizes rapid detection of fault points in large storage area networks, improves the accuracy and efficiency of fault location, and can effectively deal with network performance problems caused by the mixing of equipment of different manufacturers and multi-rate equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052101A_ABST
    Figure CN119052101A_ABST
Patent Text Reader

Abstract

The invention provides a storage area network detection and analysis method, detection and analysis equipment and a medium, and is applied to the technical field of storage area network detection. The method comprises the following steps: acquiring port data corresponding to each electronic device in a storage area network; classifying the port data to obtain port basic data, port connection data, port general statistical data and port proprietary 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 proprietary statistical data; analyzing the port general statistical data and the port proprietary statistical data to obtain an analysis conclusion representing the link state and the blockage state of the storage area network; and determining the operation state of the storage area network based on the analysis conclusion and the physical network topology. Therefore, the physical network topology drawn by the method is relatively high in flexibility, meanwhile, the method can be used for detecting faults and the like in a large-scale storage area network, and the accuracy and the efficiency of determining fault points are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of storage area network detection technology, and in particular to a storage area network detection and analysis method, detection and analysis equipment and medium. Background Art

[0002] Fibre Channel Strong Area Network (FCSAN) is a dedicated high-speed network for data storage. It is based on network fiber channel technology to interconnect electronic devices and storage arrays to form a dedicated storage local area network. The Fibre Channel protocol in network fiber channel technology is a standard protocol, which is mostly used in storage local area networks and can provide long-distance and high-bandwidth transmission.

[0003] As the scale of the network increases and the evolution of protocol rates leads to the mixed deployment of devices with different rates, the FCSAN network has the problem of slow electronic devices affecting the performance of the entire network. At the same time, there are different electronic devices from different manufacturers in the FCSAN network. It is not feasible to analyze the problems of the entire network based on a single point device, and it becomes very difficult to quickly locate the possible fault point of a single device in the case of a huge network scale.

[0004] It can be seen that how to quickly determine the status of a storage area network is a problem that those skilled in the art need to solve. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a storage area network detection and analysis method, detection and analysis device and medium, which can solve the problem in the prior art that it is impossible to analyze the entire network based on a single point device in a mesh channel storage area network and quickly determine the fault point.

[0006] In order to solve the above technical problems, an embodiment of the present invention provides a storage area network detection and analysis method, comprising:

[0007] Acquire data of each port corresponding to each electronic device in the storage area network;

[0008] Classify the data of each port to obtain basic port data, port connection data, general port statistics and port-specific statistics;

[0009] Determine the physical network topology of the storage area network based on port basic data, port connection data and port specific statistical data;

[0010] Analyze the port common statistics and port specific statistics to obtain analysis conclusions that characterize the link status and congestion status of the storage area network;

[0011] Determine the storage area network operation status based on the analysis conclusions and physical network topology.

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

[0013] Obtain information of each manufacturer corresponding to each electronic device in the storage area network;

[0014] Determine the information instruction used to obtain the port data corresponding to the electronic device based on the information of each manufacturer;

[0015] Configure the collection cycle of each electronic device;

[0016] The data of each port corresponding to each electronic device is obtained based on the collection cycle and the information instruction.

[0017] In some embodiments, determining a physical network topology of a storage area network according to port basic data, port connection data, and port specific statistical data includes:

[0018] Acquire a first global port name and a first identifier corresponding to each electronic device in the port basic data;

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

[0020] Obtaining name service data and interface data corresponding to each electronic device in the port-specific statistical data;

[0021] Determine an interface connection state of a corresponding electronic device based on the name service data and the interface data;

[0022] Acquire a first electronic device corresponding to a first global port name matching the second global port name;

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

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

[0025] Based on the interface connection status, the target electronic device determines a physical network topology of the storage area network.

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

[0027] Performing a transmit and receive optical power analysis and / or a link error statistical analysis on the port general statistical data to obtain a link health status conclusion representing the link status of the storage area network;

[0028] Performing transmission congestion analysis on the port common statistics and the port specific statistics to obtain a transmission congestion state conclusion representing the congestion state of the storage area network;

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

[0030] In some embodiments, performing a transmit and receive optical power analysis on the port general statistical data to obtain a link health status conclusion representing the link status of the storage area network includes:

[0031] Obtain a port pair having a physical connection in a physical network topology; wherein the ports in the port pair are respectively a first port and a second port;

[0032] Obtain first power data corresponding to the first port in the port general statistical data;

[0033] Obtain second power data corresponding to the second port in the port general statistical data;

[0034] 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;

[0035] A link health status conclusion representing the link status of the storage area network is determined according to the link power attenuation value and the preset power attenuation value.

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

[0037] Get each port in the physical network topology;

[0038] Obtain synchronization signal loss statistics and target error statistics corresponding to each port in port general statistics;

[0039] Determine port error data of a corresponding port according to synchronization signal loss statistics and target error statistics;

[0040] A link health status conclusion representing the link status of the storage area network is determined according to the port error data and the preset error data.

[0041] In some embodiments, performing transmission congestion analysis on the port general statistics data and the port specific statistics data to obtain a transmission congestion status conclusion characterizing the congestion status of the storage area network includes:

[0042] Get each port in the physical network topology;

[0043] Obtain the consumed credit value data corresponding to each port in the port general statistics data;

[0044] Obtain the timeout message difference statistics and discard insulation difference statistics corresponding to each port in the port-specific statistics data;

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

[0046] A transmission congestion state conclusion representing a congestion state of the storage area network is determined according to the target congestion data and the preset congestion data.

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

[0048] The storage area network operation status is sent to the host computer so that the host computer can trigger a corresponding alarm system according to the storage area network operation status.

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

[0050] Memory for storing computer programs;

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

[0052] On the other hand, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned storage area network detection and analysis method are implemented.

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

[0054] As can be seen from the above technical scheme, the present invention provides a storage area network detection and analysis method, including: obtaining each 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; determining the physical network topology of the storage area network according to the port basic data, port connection data and port specific statistical data; analyzing the port general statistical data and port specific statistical data to obtain an analysis conclusion characterizing the link state and congestion state of the storage area network; and determining the operation state of the storage area network based on the analysis conclusion and the physical network topology. It can be seen that the present invention obtains each port data corresponding to each electronic device in the storage area network, that is, taking into account the parameters of different electronic devices in the current network, and draws the physical network topology of the current storage area network through the obtained port basic data, port connection data and port specific statistical data, and the flexibility of the physical network topology is relatively high. In addition, the present invention analyzes the obtained port general statistical data and port specific statistical data to obtain an analysis conclusion characterizing the link state and congestion state of the storage area network, and then combines the analysis conclusion and the physical network topology to quickly determine the operation state, fault state, etc. of the current storage area network. It can be seen that the storage area network detection and analysis method provided by the present invention can detect faults and the like in a large storage area network and improve the accuracy and efficiency of determining the fault point. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

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

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

[0058] Figure 3 A structural diagram of a storage area network detection and analysis device provided in an embodiment of the present invention. DETAILED DESCRIPTION

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

[0060] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0061] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

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

[0063] S10: Acquire data of each port 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, common port statistics data and specific port statistics data.

[0065] In a specific embodiment, the types of electronic devices in the storage area network include: switch devices, storage devices, and server devices, and the number of switch devices, storage devices, and server devices is more than one, so there are multiple switch devices in the storage area network, but the manufacturer of each switch device is different; or there are multiple storage devices, but the manufacturer of each storage device is different; or there are multiple server devices, but the manufacturer of each server device is different. For example, the storage area network includes switch devices from two different manufacturers, storage devices from two different manufacturers, and server devices from two different manufacturers. Figure 2As shown. The switch devices are switch device A and switch device B, the storage devices are storage device A and storage device B, and the server devices are server device A and server device B. The connection relationship of the electronic devices in the storage area network is: storage device A, storage device B and server device A are connected to switch device A; server device B is connected to switch device B; switch device A is also connected to switch device B.

[0066] In an embodiment, each electronic device has a port for connecting with other electronic devices for transmitting signals such as data, so obtaining the port data corresponding to each electronic device can roughly determine the structure of the current storage area network. In order to obtain the data concisely in the subsequent acquisition, the data of each port is classified into basic port data, port connection data, general port statistics and port-specific statistics. Among them, the basic port data includes: the global port name (wordwide port number, WWPN) and identifier (N-Port Identifier, NportID); the port connection data includes: the set of all remote ports associated with the port; the general port statistics include optical module data (for example: receiving and transmitting optical power data, temperature data, voltage and current data, etc.), error statistics (for example: link failure statistics, synchronization signal loss statistics, primitive error statistics, incomplete message statistics, credit value loss statistics, incomplete message statistics, etc.); the port-specific statistics include: name server data of the switch device in the electronic device, message timeout statistics, message discard statistics, etc.

[0067] S12: Determine 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.

[0068] In a specific embodiment, the current connection state of each electronic device can be determined according to the specific data in the port basic data, port connection data and port-specific statistical data, and then the physical network topology representing the physical layout of the connection relationship between the electronic devices in the current storage area network is drawn. Since the present invention determines the physical network topology through the port basic data, port connection data and port-specific statistical data, its physical network topology has high flexibility and can be adjusted at any time.

[0069] S13: Analyze the port common statistics and port specific statistics to obtain an analysis conclusion characterizing the link status and congestion status of the storage area network.

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

[0071] In a specific embodiment, since the port data corresponding to each electronic device not only reflects the connection status of the electronic device, but also reflects the health status of the corresponding connection port of the electronic device, etc. Therefore, by analyzing the port general statistics and port-specific statistics in the port data, the analysis conclusions of the link status and the blocking status between the ports of different electronic devices can be determined. Among them, the analysis conclusions clearly define which link has what kind of problem. On this basis, combined with the physical network topology determined in the above steps, the current storage area network operation status can be quickly determined, that is, which electronic device in the storage area network has a fault and what type of fault has occurred can be quickly determined.

[0072] Among them, since the port general statistics include: the port's transmit and receive optical power data and link error statistics, the link health status conclusion that characterizes the link status of the storage area network can be determined based on the port general statistics. The port general statistics include: the consumed credit value data corresponding to the port; the port-specific statistics include: the timeout message difference statistics and discarded insulation difference statistics corresponding to the port, so combining them can determine the transmission congestion status conclusion that characterizes the congestion status of the storage area network. Finally, the analysis conclusion that characterizes the link status and congestion status of the storage area network is determined based on the link health status conclusion and the transmission congestion status conclusion.

[0073] As can be seen from the above technical scheme, a storage area network detection and analysis method provided by the present invention includes: obtaining data of each port corresponding to each electronic device in the storage area network; classifying the data of each port to obtain basic port data, port connection data, general port statistics and port-specific statistics; determining the physical network topology of the storage area network according to the basic port data, port connection data and port-specific statistics; analyzing the general port statistics and port-specific statistics to obtain an analysis conclusion characterizing the link state and congestion state of the storage area network; and determining the operation state of the storage area network based on the analysis conclusion and the physical network topology. It can be seen that the present invention obtains data of each port corresponding to each electronic device in the storage area network, that is, considering the parameters of different electronic devices in the current network, and draws the physical network topology of the current storage area network through the obtained basic port data, port connection data and port-specific statistics, and the flexibility of the physical network topology is relatively high. In addition, the present invention analyzes the obtained general port statistics and port-specific statistics to obtain an analysis conclusion characterizing the link state and congestion state of the storage area network, and then combines the analysis conclusion and the physical network topology to quickly determine the operation state, fault state, etc. of the current storage area network. It can be seen that the storage area network detection and analysis method provided by the present invention can detect faults and the like in a large storage area network and improve the accuracy and efficiency of determining the fault point.

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

[0075] Obtain information of each manufacturer corresponding to each electronic device in the storage area network;

[0076] Determine the information instruction used to obtain the port data corresponding to the electronic device based on the information of each manufacturer;

[0077] Configure the collection cycle of each electronic device;

[0078] The data of each port corresponding to each electronic device is obtained based on the collection cycle and the information instruction.

[0079] In a specific embodiment, due to the large-scale construction of storage area networks, there will be differences in the manufacturers of electronic devices inside them, and there will also be differences in the instructions used when obtaining data of electronic devices of different manufacturers. Therefore, in order to ensure the smooth process of obtaining the data of each port corresponding to each electronic device in the storage area network, it is necessary to first determine the information of each manufacturer corresponding to each electronic device in the storage area network, and then determine the information instructions used to obtain the port data corresponding to the electronic device based on the information of each manufacturer. The specific acquisition process of the information instructions is: based on the manufacturer information, query the information instructions of the port data corresponding to electronic devices of different manufacturers, and import them into the database, so as to obtain the corresponding information instructions in the data of each port corresponding to the electronic device, so as to avoid the situation where the information instructions are inconsistent and the data cannot be obtained. For example: the command for the electronic device corresponding to manufacturer A to obtain the basic data of the port is lshbaport, the command for obtaining the port connection data is lshbaconnect, and the command for obtaining the general statistical data of the port is lshbaportstats. Since the port data of the electronic device is not fixed, it is necessary to configure the collection cycle of the port data of the electronic device to ensure the accuracy of the obtained port data. Finally, the data of each port corresponding to each electronic device is obtained based on the collection cycle and the information instructions, so as to draw the physical network topology and data analysis based on the port data.

[0080] In addition to obtaining the manufacturer information corresponding to each electronic device in the storage area network, the process also includes obtaining the management address, user name, password, etc. corresponding to each electronic device, so as to record the detailed information of each electronic device in the storage area network for easy query.

[0081] It should be noted that the embodiment provided by the present invention is only one possible implementation method, but is not limited to only this implementation method and can be set according to the needs of the user.

[0082] The embodiment of the present invention provides a step of acquiring data of each port corresponding to each electronic device in a storage area network, in which the smoothness of acquiring data of each port is ensured, and the real-time performance and accuracy of the data of each port are ensured.

[0083] In some embodiments, determining a physical network topology of a storage area network according to port basic data, port connection data, and port specific statistical data includes:

[0084] Acquire a first global port name and a first identifier corresponding to each electronic device in the port basic data;

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

[0086] Obtaining name service data and interface data corresponding to each electronic device in the port-specific statistical data;

[0087] Determine an interface connection state of a corresponding electronic device based on the name service data and the interface data;

[0088] Acquire a first electronic device corresponding to a first global port name matching the second global port name;

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

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

[0091] Based on the interface connection status, the target electronic device determines a physical network topology of the storage area network.

[0092] In a specific embodiment, the physical network topology refers to the physical layout between the electronic devices in the storage area network. Therefore, before drawing the physical network topology, it is necessary to determine the connection status of each electronic device in the storage area network, and the port data corresponding to each electronic device obtained in the above steps reflects the connection status of the electronic device. Therefore, the physical network topology corresponding to the storage area network can be determined according to the port data. Among them, the port data is divided into port basic data, port connection data, port general statistical data and port specific statistical data, and the port general statistical data represents the parameters of the connection link in each electronic device; the port basic data and port connection data represent the data of the connection status of each electronic device; and because the electronic devices in the storage area network include switch devices, and the other types of electronic devices are connected to the switch devices, the present invention constructs the physical network topology according to the port basic data, port connection data and port specific statistical data in the port data. It first determines the first global port name and the first identifier corresponding to each electronic device in the port basic data, that is, records all the ports in the current storage area network; then obtains the second global port name and the second identifier corresponding to each electronic device that establishes the port connection login in the port connection data, that is, records the ports with a connection relationship, and then obtains the name service data and interface data corresponding to each electronic device in the port specific statistical data. At this point, the general connection relationship of the electronic devices has been clarified. Then, the ports with existing 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 searching the records of all ports for ports with connection relationships and determining the corresponding target electronic device according to the ports are determined according to the global port names and identifiers corresponding to the ports.

[0094] For example: the name service data is obtained through the corresponding information instruction (nsshow), and the first global port name and the first identifier corresponding to each electronic device in the port basic data are obtained; and the second global port name and the second identifier corresponding to each electronic device that establishes a port connection login in the port connection data are obtained; based on the data, the connection status of each port of the electronic device is drawn out, and then after determining the second global port name and the second identifier corresponding to each electronic device that establishes a port connection login, the first global port name and the first identifier corresponding to each collected electronic device are retrieved, so as to determine which devices are connected, thereby completing the drawing of the physical network topology.

[0095] In addition, since the physical network topology provided by the present invention is drawn based on port data, it is relatively flexible. However, after the physical network topology is drawn for the first time, it is necessary to manually compare it with the physical network topology according to the specific storage area network scenario. The reason is that in the process of building a large storage area network, two electronic devices that should have a connection relationship may not be connected in the actual connection, but the port data at this time cannot reflect this problem. Therefore, the drawn physical network topology has errors, which affects the subsequent port data analysis and the state analysis of the storage area network. Therefore, after the physical network topology is drawn for the first time, it is necessary to manually compare it with the physical network topology according to the specific storage area network scenario to ensure that the current construction of the large storage area network is fault-free, and the physical network topology drawn for the first time can also accurately characterize the physical layout of the current storage area network.

[0096] It should be noted that the embodiment provided by the present invention is only one possible implementation method, but is not limited to only this implementation method and can be set according to the needs of the user.

[0097] The embodiment of the present invention provides a method for drawing a 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, the port general statistics and port specific statistics are analyzed to obtain analysis conclusions characterizing the link status and congestion status of the storage area network, including:

[0099] Performing a transmit and receive optical power analysis and / or a link error statistical analysis on the port general statistical data to obtain a link health status conclusion representing the link status of the storage area network;

[0100] Performing transmission congestion analysis on the port common statistics and the port specific statistics to obtain a transmission congestion state conclusion representing the congestion state of the storage area network;

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

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

[0103] The specific steps of the analysis of the transmit and receive optical power are as follows: obtaining a port pair with physical connection in the physical network topology; wherein the ports in the port pair are respectively the first port and the second port; obtaining first power data corresponding to the first port in the general statistical data of the port; obtaining second power data corresponding to the second port in the general statistical data of the port; determining the link power attenuation value of the link corresponding to the port pair according to the first power data and the second power data; determining the link health status conclusion characterizing the link status of the storage area network according to the link power attenuation value and the preset power attenuation value.

[0104] In a specific embodiment, the physical connection is usually an optical fiber cable connection, and there is a pair of ports in the physical connection, one of which is used to characterize signal input and the other is used to characterize signal output. Therefore, the first power data corresponding to the first port in the port pair is characterized as the light emitting power of the first port, and the second power data corresponding to the second port in the port pair is characterized as the light receiving power of the second port. Power decays during the transmission of the physical optical fiber cable. The expression of its link power decay value is: decay power = |Port2 rx_power–Port1 tx_power| + |Port1 rx_power–Port2 tx_power|. Among them, Port1 tx_power characterizes the first power data; Port2 rx_power characterizes the second power; decay power characterizes the link power decay value. Since there is a certain regularity in link attenuation, there is a standard value, namely the preset power decay value, that is, the link health status conclusion characterizing the link status of the storage area network can be determined according to the relationship between the link power decay value and the preset power decay value, so as to realize the health status analysis of the network link. Each link in the storage area network performs a transmit and receive optical power analysis, and the corresponding link power attenuation value is marked in the corresponding link in the physical network topology, so the difference in the value of the problematic link can be seen intuitively. And if the optical power is 0, the port can be directly marked as inactive in the physical network topology.

[0105] The specific steps of the 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 data; determine the port error data of the corresponding port based on the synchronization signal loss statistics and the 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 statistics analysis is different from transmit and receive optical power analysis. Link error statistics analysis is performed based on the difference of periodic statistical data. It is necessary to obtain the synchronization signal loss statistics and target error statistics corresponding to each port in the port general statistics, and then determine the port error data of the corresponding port based on the synchronization signal loss statistics and the target error statistics. The expression of the port error data is: Port1 errordiagnostics = Port1 err crc Period difference + Port1 err loss sync Perioddifference + (other error statistics count). Port1 error diagnostics represents the port error data; Port1 err crc Period difference represents the target error statistics; Port1 err loss syncPeriod difference represents the synchronization signal loss statistics. The expression of the target error statistics is: Port1err crc Period difference= T1 crc count–T2 crc count; T1 crc count represents the error data of the first cycle; T2 crc count represents the error data of the second cycle. The port error data reflects the error count of the port, but the source of the problem is not necessarily the port, but may be the cable connected to the port or the opposite port. Therefore, according to the size relationship between the port error data and the preset error data, a link health status conclusion representing 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 statistical data; obtain the timeout message difference statistical data and the discarded insulation difference statistical data corresponding to each port in the port-specific statistical data; use the sum of the consumed credit value data, the timeout message difference statistical data and the discarded insulation difference statistical data as the target congestion data corresponding to the current port; determine the transmission congestion state conclusion that characterizes the congestion state of the storage area network based on the target congestion data and the preset congestion data.

[0108] In a specific embodiment, the analysis of transmission congestion is mainly based on port statistics and port-specific statistics, which mainly include: the consumed credit value data in the port general statistics; the timeout message difference statistics and the discarded insulation difference statistics in the port-specific statistics. The timeout message difference statistics and the discarded insulation difference statistics are both confirmed by periodically collected differences, while the consumed credit value data is directly analyzed by numerical value. When the timeout message difference statistics and the discarded insulation difference statistics increase significantly within a cycle, it means that there is a problem that the message cannot be effectively transmitted at the port, which may be the problem point of congestion. If the credit value data is too low, it means that the buffer to be sent is slow and cannot receive new messages, which also means that the port is congested. The expression of its target congestion data is: Transmission exception = Port1 frame timeout Period difference + Port1 framediscarded Period difference + (max credit–current credit). 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; max credit–current credit represents the consumed credit value data. Finally, a transmission congestion state conclusion characterizing the congestion state of the storage area network is determined according to the size of the target congestion data and the preset congestion data. When the target congestion data is larger, it indicates that the congestion degree of the current link is higher.

[0109] Among them, in addition to this, after determining the analysis conclusion based on the link health status conclusion and the transmission congestion status conclusion, and determining the storage area network operation status based on the analysis conclusion and the physical network topology, it is also necessary to send the storage area network operation status to the host computer, so that the host computer triggers the corresponding alarm system according to the storage area network operation status to notify the operation and maintenance personnel.

[0110] It should be noted that the embodiment provided by the present invention is only one possible implementation method, but is not limited to only this implementation method and can be set according to the needs of the user.

[0111] It can be seen from the above technical scheme that the present invention provides a storage area network detection and analysis method, including: obtaining each 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; determining the physical network topology of the storage area network according to the port basic data, port connection data and port specific statistical data; analyzing the port general statistical data and port specific statistical data to obtain an analysis conclusion characterizing the link state and congestion state of the storage area network; and determining the operation state of the storage area network based on the analysis conclusion and the physical network topology. It can be seen that the present invention obtains each port data corresponding to each electronic device in the storage area network, that is, taking into account the parameters of different electronic devices in the current network, and constructs the physical network topology of the current storage area network through the obtained port basic data, port connection data and port specific statistical data, and the flexibility of the physical network topology is relatively high. In addition, the present invention analyzes the obtained port general statistical data and port specific statistical data to obtain an analysis conclusion characterizing the link state and congestion state of the storage area network, and then combines the analysis conclusion and the physical network topology to quickly determine the operation state, fault state, etc. of the current storage area network. It can be seen that the storage area network detection and analysis method provided by the present invention can detect faults and the like in a large storage area network and improve the accuracy and efficiency of determining the fault point.

[0112] Figure 3 A structural diagram of a storage area network detection and analysis device provided by an embodiment of the present invention, such as 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 implement the steps of the storage area network detection and analysis method in the above embodiment when executing the computer program.

[0114] The storage area network detection and analysis device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer.

[0115] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of 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 is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing 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 a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, it can implement the relevant steps of the storage area network detection and analysis method disclosed in any of the aforementioned 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. Among them, the operating system 602 may include Windows, Unix, Linux, etc.

[0117] In some embodiments, the storage area network detection and analysis device may also include a display screen 62 , an input and 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 in the figure does not constitute a limitation on the storage area network detection and analysis device, and may include more or fewer components than those shown in the figure.

[0119] It is understandable that if the storage area network detection and analysis method in the above embodiment is implemented in the form of 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 is essentially 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. The computer software product is stored in a storage medium and executes all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, 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 that can store program codes.

[0120] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned storage area network detection and analysis method are implemented.

[0121] Based on this, an embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above storage area network detection and analysis method when executed by a processor.

[0122] The above is a detailed introduction to a storage area network detection and analysis device provided by an embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

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

[0124] The above is a detailed introduction to a storage area network detection and analysis method, detection and analysis device and medium provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A storage area network detection and analysis method, characterized in that: include: Acquire data of each port corresponding to each electronic device in the storage area network; Classifying each of the port data to obtain port basic data, port connection data, port general statistical data and port specific statistical data; Determine 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; Analyzing the port general statistical data and the port specific statistical data to obtain an analysis conclusion characterizing the link status and congestion status of the storage area network; The storage area network operation status is determined based on the analysis conclusion and the physical network topology.

2. The storage area network detection and analysis method according to claim 1, characterized in that: The step of obtaining the port data corresponding to each electronic device in the storage area network includes: Acquire information of each manufacturer corresponding to each of the electronic devices in the storage area network; Determine, based on each of the manufacturer information, an information instruction used to obtain the port data corresponding to the electronic device; Configuring the collection period of each of the electronic devices; The port data corresponding to each of the electronic devices is acquired based on the acquisition cycle and the information instruction.

3. The storage area network detection and analysis method according to claim 1, characterized in that: Determining 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 includes: Acquire a first global port name and a first identifier corresponding to each of the electronic devices in the port basic data; Acquire a second global port name and a second identifier corresponding to each of the electronic devices for establishing a port connection login in the port connection data; Obtaining name service data and interface data corresponding to each of the electronic devices in the port-specific statistical data; Determine the interface connection state of the corresponding electronic device based on the name service data and the interface data; Acquire a first electronic device corresponding to the first global port name that matches the second global port name; Acquire a second electronic device corresponding to the second identifier that matches the second identifier; Acquire the same electronic device in the first electronic device and the second electronic device and use it as the target electronic device; Based on the interface connection status, the target electronic device determines the physical network topology of the storage area network.

4. The storage area network detection and analysis method according to claim 1, characterized in that: The analyzing of the port general statistics and the port specific statistics to obtain an analysis conclusion characterizing the link status and the congestion status of the storage area network includes: Performing a transmit and receive optical power analysis and / or a link error statistical analysis on the port general statistical data to obtain a link health status conclusion characterizing the link status of the storage area network; Performing transmission congestion analysis on the port general statistical data and the port specific statistical data to obtain a transmission congestion state conclusion representing a congestion state of the storage area network; The analysis conclusion is determined according to the link health status conclusion and the transmission congestion status conclusion.

5. The storage area network detection and analysis method according to claim 4, characterized in that: The received and received optical power analysis is performed on the port general statistical data to obtain a link health status conclusion characterizing the link status 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 respectively a first port and a second port; Obtaining first power data corresponding to the first port in the port general statistical data; Obtaining 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; The link health status conclusion representing the link status of the storage area network is determined according to the link power attenuation value and a preset power attenuation value.

6. The storage area network detection and analysis method according to claim 4, characterized in that: Performing the link error statistics analysis on the port general statistics data to obtain a link health status conclusion characterizing the link status of the storage area network includes: Obtain each port in the physical network topology; Obtain synchronization signal loss statistics and target error statistics corresponding to each of the ports in the port general statistics; Determine port error data of the port according to the synchronization signal loss statistics and the target error statistics; The link health status conclusion characterizing the link status of the storage area network is determined according to the port error data and the preset error data.

7. The storage area network detection and analysis method according to claim 4, characterized in that: The performing transmission congestion analysis on the port general statistical data and the port specific statistical data to obtain a transmission congestion state conclusion characterizing the congestion state of the storage area network includes: Obtain each port in the physical network topology; Obtaining the consumed credit value data corresponding to each of the ports in the port general statistical data; Obtaining timeout message difference statistics and discarded insulation difference statistics corresponding to each of the ports in the port-specific statistics; The sum of the consumed credit value data, the timeout message difference statistical data and the discarded insulation difference statistical data is used as the target congestion data corresponding to the current port; The transmission congestion state conclusion characterizing the congestion state of the storage area network is determined according to the target congestion data and the preset congestion data.

8. The storage area network detection and analysis method according to any one of claims 1 to 7, characterized in that: After determining the storage area network operation status based on the analysis conclusion and the physical network topology, the method further includes: The storage area network operation status is sent to a host computer so that the host computer triggers a corresponding alarm system according to the storage area network operation status.

9. A storage area network detection and analysis device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the steps of the storage area network detection and analysis method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the storage area network detection and analysis method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Multicast advertisement message for a network switch in a storage area network

    CN107078974A

  • Network topology structure generation method and device, equipment and medium

    CN111343021A

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

    CN112332914A

  • Network topology construction method and device, computer equipment and readable storage medium

    CN116827801A

  • Determination of status of ports in storage area networks

    US20180219755A1