CN111030863B - Node topology information determination method, device, equipment and storage medium - Google Patents

Node topology information determination method, device, equipment and storage medium Download PDF

Info

Publication number
CN111030863B
CN111030863B CN201911286000.1A CN201911286000A CN111030863B CN 111030863 B CN111030863 B CN 111030863B CN 201911286000 A CN201911286000 A CN 201911286000A CN 111030863 B CN111030863 B CN 111030863B
Authority
CN
China
Prior art keywords
interconnection
information
port
network
ports
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911286000.1A
Other languages
Chinese (zh)
Other versions
CN111030863A (en
Inventor
王勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201911286000.1A priority Critical patent/CN111030863B/en
Publication of CN111030863A publication Critical patent/CN111030863A/en
Application granted granted Critical
Publication of CN111030863B publication Critical patent/CN111030863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a node topology information determination method based on a storage network, which comprises the following steps: acquiring interconnection information among FC ports of nodes in a storage network; determining independent sub-networks of the storage network according to the interconnection information; and aggregating and replacing FC ports belonging to the same node in the independent sub-networks by utilizing the corresponding relation between each node and the FC ports to obtain actual topology information. Therefore, in the scheme, the independent sub-networks of the storage network can be automatically analyzed according to the interconnection information of the FC ports, and the actual topology information can be obtained according to the corresponding relation between each node and the FC ports. The invention also discloses a node topology information determination device, equipment and a computer readable storage medium based on the storage network, and the technical effects can be realized.

Description

Node topology information determination method, device, equipment and storage medium
Technical Field
The present invention relates to the field of storage system technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for determining node topology information based on a storage network.
Background
At present, in an FC (Fibre Channel) network, interconnection information between FC ports in the FC network can be directly acquired at a storage end, but only interconnection between the FC ports can be known through the interconnection information, and interconnection information based on nodes in the network cannot be intuitively acquired. If the information of the node level is required to be obtained, manual analysis can be carried out only according to the interconnection information among the ports, or the information can be determined through actually checking the network. However, if the number of network nodes is large, the network is complex, a large amount of workload is generated through manual analysis, and omission is easily generated.
Therefore, how to determine the topology information of the storage node according to the interconnection information of the FC port is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a node topology information determination method, a node topology information determination device and a computer readable storage medium based on a storage network, so as to quickly determine the topology information of a storage node according to the interconnection information of an FC port.
In order to achieve the above object, the present invention provides a method for determining node topology information based on a storage network, including:
acquiring interconnection information among FC ports of nodes in a storage network;
determining independent sub-networks of the storage network according to the interconnection information; each independent sub-network consists of FC ports and switches with interconnection relation;
and aggregating and replacing FC ports belonging to the same node in the independent sub-networks by utilizing the corresponding relation between each node and the FC ports to obtain the actual topology information of each node.
After obtaining the actual topology information of each node, the method further includes:
comparing the actual topology information with planning network topology information, and judging whether the actual topology information is the same as the planning network topology information;
and if the link failure information is different, generating failure link prompt information.
Wherein determining independent sub-networks of the storage network based on the interconnection information comprises:
s11, selecting unanalyzed initial interconnection information from the interconnection information;
s12, setting the interconnection relationship of the two FC ports of the initial interconnection information in the initial sub-network, and taking the FC ports with the interconnection relationship as identified ports;
s13, selecting unanalyzed target interconnection information from interconnection information, wherein one FC port of the target interconnection information is an identified port;
s14, updating the port interconnection relation of the initial sub-network according to the target interconnection information, and setting a switch at the intersection of the port interconnection relation;
s15, judging whether target interconnection information with an identified port exists in the interconnection information; if so, continue to S13; if not, go to S16;
s16, taking the final initial sub-network as an independent sub-network, deleting the analyzed interconnection information from the interconnection information, and deleting the identified port;
s17, judging whether the interconnection information has the unanalyzed interconnection information; if so, continuing to execute S11 to identify other independent sub-networks in the interconnection information; if not, the flow ends.
Wherein, the updating the port interconnection relationship of the initial sub-network according to the target interconnection information, and setting a switch at the intersection of the port interconnection relationship, includes:
in the existing port interconnection relationship of the initial sub-network, increasing the interconnection relationship between the identified port and the unidentified port in the target interconnection information;
setting a switch at the newly-added cross point of the port interconnection relation;
judging whether a target switch exists in the existing port interconnection relationship of the initial sub-network, wherein the port corresponding to the target switch and the unidentified port in the target interconnection information have interconnection relationship;
and if so, merging the newly added switch and the target switch.
In order to achieve the above object, the present invention further provides a node topology information determining apparatus based on a storage network, including:
the acquisition module is used for acquiring interconnection information among FC ports of nodes in a storage network;
a determining module, configured to determine an independent sub-network of the storage network according to the interconnection information; each independent sub-network is composed of FC ports and switches with interconnection relation;
and the processing module is used for aggregating and replacing the FC ports belonging to the same node in the independent sub-networks by utilizing the corresponding relation between each node and the FC ports to obtain the actual topology information of each node.
Wherein, this scheme still includes:
the judging module is used for comparing the actual topology information with the planning network topology information and judging whether the actual topology information is the same as the planning network topology information;
and the prompting module is used for generating fault link prompting information when the actual topology information is different from the planning network topology information.
Wherein the determining module comprises:
a first selection unit, configured to select unanalyzed initial interconnection information from the interconnection information;
a setting unit, configured to set an interconnection relationship between two FC ports of the initial interconnection information in an initial sub-network, and use an FC port having the interconnection relationship as an identified port;
a second selection unit, configured to select unanalyzed target interconnection information from interconnection information, where one FC port of the target interconnection information is an identified port;
an updating unit, configured to update the port interconnection relationship of the initial sub-network according to the target interconnection information, and set a switch at a cross point of the port interconnection relationship;
the first judging unit is used for judging whether target interconnection information with an identified port exists in the interconnection information or not; if yes, triggering the second selection unit; if not, triggering a determining unit;
the determining unit is configured to use the final initial sub-network as an independent sub-network, delete the analyzed interconnection information from the interconnection information, and delete the identified port;
the second judging unit is used for judging whether the interconnection information has the unanalyzed interconnection information or not; if the sub-networks exist, triggering a first selection unit so as to identify other independent sub-networks in the interconnection information; if not, the flow ends.
Wherein the update unit includes:
an interconnection relation increasing subunit, configured to increase, in an existing port interconnection relation of the initial sub-network, an interconnection relation between an identified port and an unidentified port in the target interconnection information;
a setting subunit, configured to set a switch at the intersection where the port interconnection relationship is newly added;
a judging subunit, configured to judge whether a target switch exists in an existing port interconnection relationship of the initial sub-network, where a port corresponding to the target switch and an unidentified port in the target interconnection information have an interconnection relationship;
and the merging subunit is used for merging the newly added switch and the target switch when the target switch exists.
To achieve the above object, the present invention further provides an electronic device comprising:
a memory for storing a computer program; and the processor is used for realizing the steps of the node topology information determination method when executing the computer program.
To achieve the above object, the present invention further provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the above node topology information determining method.
As can be seen from the above solutions, a method for determining node topology information based on a storage network according to an embodiment of the present invention includes: acquiring interconnection information among FC ports of nodes in a storage network; determining independent sub-networks of the storage network according to the interconnection information; each independent sub-network is composed of FC ports and switches with interconnection relation; and aggregating and replacing FC ports belonging to the same node in the independent sub-networks by utilizing the corresponding relation between each node and the FC ports to obtain the actual topology information of each node. Therefore, in the scheme, the independent sub-networks of the storage network can be automatically analyzed according to the interconnection information of the FC ports, and the actual topology information can be obtained according to the corresponding relation between each node and the FC ports. The invention also discloses a node topology information determination device, equipment and a computer readable storage medium based on the storage network, and the technical effects can be realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for determining node topology information based on a storage network according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a node topology information determination apparatus based on a storage network according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a node topology information determination method, a device, equipment and a computer readable storage medium based on a storage network, which are used for rapidly determining the topology information of a storage node according to the interconnection information of an FC port.
Referring to fig. 1, a method for determining node topology information based on a storage network according to an embodiment of the present invention includes:
s101, obtaining interconnection information among FC ports of nodes in a storage network;
it should be noted that the interconnection information between the FC ports refers to information communicated between the FC ports, for example: if P1 and P2 respectively indicate port numbers of FC ports, the interconnection information (P1 and P2) indicates that the P1 port and the P2 port are connected. For nodes in a storage network, each node may have multiple FC ports, and the interconnection information only indicates interconnection conditions between different FC ports, and it is not possible to know whether different ports belong to the same node, so that the interconnection conditions between nodes cannot be directly reflected by the interconnection information, and topology information of the nodes cannot be directly obtained according to the interconnection information. By the node topology information determining method, the storage end can analyze the FC port interconnection information identified by storage to obtain the topology structure information of the FC network where the storage is located. According to the analyzed result, the user can visually see the actual interconnection information based on the network node.
S102, determining an independent sub-network of the storage network according to the interconnection information; each independent sub-network is composed of FC ports and switches with interconnection relation;
in the present application, since the interconnection information describes the communication status of different FC ports, based on the communication status of each FC port, an independent sub-network of the storage network can be obtained, and the number of the independent sub-networks may be 1 or more, and is determined mainly based on the port communication status described in the interconnection information. And, since the reality of network connection is that one port can only be directly connected with another port, just like a line has only two vertices. If multiple ports are reachable from one port, there must be a bifurcation between the ports, and the switch must exist at the intersection of the bifurcation. For example: there is interconnection information (P1, P2) and (P1, P3), and it can be seen that P1 can communicate with both P2 and P3, i.e.: the port P1 can reach the ports P2 and P3, and in the independent sub-networks composed of P1, P2 and P3, the cross point between P1, P2 and P3 is necessarily existed, and the cross point is the position where the switch exists. In the present application, therefore, the independent sub-networks are formed by FC ports and switches having an interconnecting relationship.
S103, aggregating and replacing FC ports belonging to the same node in the independent sub-networks by utilizing the corresponding relation between each node and the FC ports to obtain the actual topology information of each node.
It should be noted that, in this scheme, the independent sub-networks included in the storage network may be analyzed according to the interconnection information of the FC ports acquired by the storage end, and the FC ports are divided into corresponding sub-independent sub-networks, so as to generate the attribution information of the ports and the network. After the network analysis is finished, the ports are aggregated by using the corresponding relation between the stored nodes and the ports, and are abstracted into nodes, so that the node-based topology information is generated. S103 is explained here by taking one case: if the independent sub-network comprises: p1 is connected to P2 and P3 through switches, and P1 and P2 have a corresponding relationship with node 1, and P3 has a corresponding relationship with node 2, then in this independent sub-network, P1 and P2 are aggregated and replaced by node 1, and P3 is replaced by node 2, then the actual topology information of the node corresponding to the independent sub-network is generated as follows: and the node 1 and the node 2 are interconnected in a topological relation.
Further, in this application, after obtaining the actual topology information of each node, the method further includes: comparing the actual topology information with planning network topology information, and judging whether the actual topology information is the same as the planning network topology information; and if the link failure information is different, generating failure link prompt information.
It should be noted that, after the actual topology information is obtained, the actual topology information may be compared with the preset planning network topology information for analysis, whether the actual topology information is consistent with the planning topology information is judged, if not, a faulty link may exist in the network, and at this time, a faulty link prompt message may be generated, so as to prompt a user to store a fault that may exist in the network, thereby effectively assisting the user in analyzing and processing the network connection problem.
Therefore, the scheme can automatically realize the work of manual analysis and manual investigation originally, improve the analysis efficiency and avoid manual omission. According to the analysis result, the user can quickly master the actual network topology information, quickly find the problem, locate the problem and solve the problem.
Based on the foregoing embodiment, in this embodiment, the determining, in the step S102, an independent sub-network of the storage network according to the interconnection information specifically includes the following steps:
s11, selecting unanalyzed initial interconnection information from the interconnection information;
s12, setting the interconnection relationship of the two FC ports of the initial interconnection information in the initial sub-network, and taking the FC ports with the interconnection relationship as identified ports;
in this embodiment, when an independent sub-network is established, it needs to be determined according to the interconnection relationship between the ports, and if there is interconnection information in two ports, the two ports are considered to have the interconnection relationship. For example: assume that the unanalyzed FC port interconnection information constitutes a set S1; an initial interconnection information (P1, P2) is selected from the set S1, and the initial interconnection information includes port numbers of two FC ports that can be identified to each other, P1 and P2.
Here, for better illustration of the process of establishing an independent subnetwork, assume P1, P2 are two points on the horizontal axis of the planar coordinate system, P1 is at the origin of the coordinate system, and P2 is a point sufficiently far from P1 on the horizontal axis, which can be considered as the initial subnetwork N1 of an independent subnetwork. In this embodiment, the interconnection information selected from the interconnection information is referred to as analyzed interconnection information, the interconnection information not selected from the interconnection information is referred to as unanalyzed interconnection information, and similarly, the FC port in the selected interconnection information is referred to as an identified port, for example: the initial interconnection information (P1, P2) selected from the interconnection information is analyzed interconnection information, and P1, P2 are identified ports.
S13, selecting unanalyzed target interconnection information from interconnection information, wherein one FC port of the target interconnection information is an identified port;
s14, updating the port interconnection relation of the initial sub-network according to the target interconnection information, and setting a switch at the intersection of the port interconnection relation;
it should be noted that, in the process of establishing an independent sub-network, it is necessary to select unanalyzed interconnection information from interconnection information to update the initial sub-network, and in the process of selecting, it is necessary to select interconnection information including an identified port. Moreover, the process of updating the port interconnection relationship of the initial sub-network according to the target interconnection information and setting a switch at the intersection of the port interconnection relationship may specifically include: adding the interconnection relationship between the identified port and the unidentified port in the target interconnection information in the existing port interconnection relationship of the initial sub-network, and setting a switch at the newly added cross point of the port interconnection relationship; judging whether a target switch exists in the existing port interconnection relationship of the initial sub-network, wherein the port corresponding to the target switch and the unidentified port in the target interconnection information have interconnection relationship; and if so, merging the newly added switch and the target switch.
It will be appreciated that since one port needs to communicate with a plurality of ports through a switch, a switch needs to be provided at each intersection of the original sub-networks, and since a switch can achieve communication of one port with a plurality of ports, satisfactory switches can be merged. For example: the existing port interconnection relationship of the initial sub-network is as follows: if the switch H1 exists, the switch H1 realizes the communication between the P1 and the P2 and the P3, and the selected target interconnection information is (P1, P4), the interconnection relationship between the identified port P1 and the unidentified port P4 is added in the existing port interconnection relationship, and the switch H2 for realizing the interconnection between the P1 and the P4 is generated at the newly added cross point of the port interconnection relationship; at this time, it is necessary to check whether there is a target switch, which is a switch having an interconnection relationship between a corresponding port and an unidentified port P4 in the target interconnection information (P1, P4), and in the existing port interconnection relationship, there is a P3 port in the switch H1, and at this time, it is necessary to determine whether the P3 port of the switch H1 has an interconnection relationship with the unidentified port P4 in the target interconnection information (P1, P4) from the interconnection information, and if there is, H1 and H2 may be merged to be a switch.
Here, based on the above process of establishing the N1 network, a specific case is listed to explain the process of S13-S14:
1) selecting target interconnection information containing identified ports in the N1 network from the set S1, where the target interconnection information is (, P1) or (, P2), and represents an unidentified port, and the target interconnection information is (P1, P3);
2) selecting a cross point of an intermediate position between an entity (currently, P2) nearest to P1 in a P1 and N1 network as H1, wherein H1 exists in the network in the role of a switch, the P3 is interconnected with the P1 through H1, and due to the characteristics of the FC network, it can be determined that an interconnection message (P3, P2) exists in S1, and P3 and P2 are also interconnected through H1;
it should be noted that, since the present application abstracts the positions of P1 and P2 into a coordinate system, for convenience of calculation and understanding, the position of the switch H1 is selected to be an intermediate position on a straight line segment defined by two points P1 and P2, and of course, the position of H1 may be selected to be an arbitrary position on a straight line segment defined by two points P1 and P2, and is not particularly limited herein.
3) Continuing to extract a piece of target interconnection information containing the identified ports in the N1 network from the set S1, i.e., (# P1) or (# P2) or (# P3), where the interconnection information is assumed to be (P1, P4);
4) selecting a point in the middle position between the P1 and an entity (currently, H1) in the N1 network, which is closest to P1, as a switch H2, and assuming that P4 is interconnected with P1 through H2;
5) searching whether interconnection information exists from the set S1 (P3, P4), if yes, considering H2 as a target switch, H2 can be merged with H1, and if not, considering H2 as an entity independent of H1;
it should be noted that if P3 cannot communicate with P4, configuration is made on H2, which limits communication between P3 and P4, and is considered to be independent H2 in form. If P3 can communicate with P4, then H2 is formally considered to be H1, although two may be independent in practice, but one in business performance, which cannot be determined only by interconnection information.
S15, judging whether target interconnection information with an identified port exists in the interconnection information; if so, continue to S13; if not, go to S16;
s16, taking the final initial sub-network as an independent sub-network, deleting the analyzed interconnection information from the interconnection information, and deleting the identified port;
s17, judging whether the interconnection information contains the unanalyzed interconnection information; if yes, continuing to execute S11 to identify other independent sub networks in the interconnection information; if not, the flow ends.
It can be understood that, after the target interconnection information is analyzed, it is necessary to continue to obtain target interconnection information (Pm, Pn) related to the identified ports in the N1 network from the set S1, where Pn is the identified ports in the N1 network, and Pm is the ports that are not identified in the N1 network, and continue to perform S13-S14 to perform subnet aggregation until the target interconnection information related to the identified ports in the N1 network does not exist in S1, and the N1 network topology identification is completed, so as to obtain an independent subnet, and remove all the identified interconnection information from the set S1; if the interconnection information has unanalyzed interconnection information, the process continues to S11 to identify a new subnetwork until the set S1 becomes an empty set, the storage network topology identification is completed, and the corresponding information of the port and the network is generated.
It should be noted that, in the present application, storage node information needs to be acquired, where the information includes FC port number information of each storage node, and then host port number binding information already configured by the storage system is acquired, where the information includes port number host aggregation information already configured, that is: the information describes the correspondence between a certain node and a port number. After the independent sub-networks reflecting the attribution information of the ports and the sub-networks are obtained through the steps, the obtained storage node information and the host port number aggregation information can be combined to correlate the nodes and the network, and the network topology information based on the nodes is generated.
In conclusion, the storage end can analyze the topology structure of the FC network where the storage is located, and generate the network topology information based on the nodes, so that the network topology information can be quickly and accurately obtained, and after the logic analysis is completed, the network topology information can be displayed in a graphical mode, so that a user can visually see the FC network topology structure where the storage is located, and the user experience is improved.
In the following, the node topology information determining apparatus provided in the embodiment of the present invention is introduced, and the node topology information determining apparatus described below and the node topology information determining method described above may refer to each other.
Referring to fig. 2, an apparatus for determining node topology information based on a storage network according to an embodiment of the present invention includes:
an obtaining module 100, configured to obtain interconnection information between FC ports of nodes in a storage network;
a determining module 200, configured to determine an independent sub-network of the storage network according to the interconnection information; each independent sub-network is composed of FC ports and switches with interconnection relation;
the processing module 300 is configured to aggregate and replace FC ports belonging to the same node in independent sub-networks by using a corresponding relationship between each node and the FC ports, so as to obtain actual topology information of each node.
Wherein, this scheme still includes:
the judging module is used for comparing the actual topology information with the planned network topology information and judging whether the actual topology information is the same as the planned network topology information;
and the prompting module is used for generating fault link prompting information when the actual topology information is different from the planning network topology information.
Wherein the determining module comprises:
a first selection unit, configured to select unanalyzed initial interconnection information from the interconnection information;
a setting unit, configured to set an interconnection relationship between two FC ports of the initial interconnection information in an initial sub-network, and use an FC port having the interconnection relationship as an identified port;
a second selection unit, configured to select unanalyzed target interconnection information from interconnection information, where one FC port of the target interconnection information is an identified port;
an updating unit, configured to update the port interconnection relationship of the initial sub-network according to the target interconnection information, and set a switch at a cross point of the port interconnection relationship;
the first judging unit is used for judging whether target interconnection information with an identified port exists in the interconnection information or not; if yes, triggering the second selection unit; if not, triggering a determining unit;
the determining unit is configured to use the final initial sub-network as an independent sub-network, delete the analyzed interconnection information from the interconnection information, and delete the identified port;
the second judging unit is used for judging whether the interconnection information has the unanalyzed interconnection information or not; if yes, triggering a first selection unit so as to identify other independent sub-networks in the interconnection information; if not, the flow ends.
Wherein the update unit includes:
an interconnection relation increasing subunit, configured to increase, in an existing port interconnection relation of the initial sub-network, an interconnection relation between an identified port and an unidentified port in the target interconnection information;
a setting subunit, configured to set a switch at the intersection where the port interconnection relationship is newly added;
a judging subunit, configured to judge whether a target switch exists in an existing port interconnection relationship of the initial sub-network, where a port corresponding to the target switch and an unidentified port in the target interconnection information have an interconnection relationship;
and the merging subunit is used for merging the newly added switch and the target switch when the target switch exists.
Referring to fig. 3, the invention also discloses a structural schematic diagram of an electronic device; the apparatus comprises:
a memory 11 for storing a computer program;
a processor 12 for implementing the steps of the node topology information determination method implemented by any of the above-mentioned method embodiments when executing the computer program.
In this embodiment, the device may be a PC (Personal Computer), or may be a terminal device such as a smart phone, a tablet Computer, a palmtop Computer, or a portable Computer.
The device may include a memory 11, a processor 12, and a bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the device, for example a hard disk of the device. The memory 11 may also be an external storage device of the device in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 may be used not only to store application software installed in the device and various types of data such as program codes for performing the node topology information determination method, etc., but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as program codes for executing the node topology information determining method.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
Further, the device may further include a network interface 14, and the network interface 14 may optionally include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are generally used to establish a communication connection between the device and other electronic devices.
Optionally, the device may further comprise a user interface 15, the user interface 15 may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 15 may further comprise a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the device and for displaying a visualized user interface.
Fig. 3 shows only the device with the components 11-15, and it will be understood by those skilled in the art that the structure shown in fig. 3 does not constitute a limitation of the device, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
The invention also discloses a computer readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the node topology information determination method implemented by any of the above method embodiments.
Wherein the storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A node topology information determination method based on a storage network is characterized by comprising the following steps:
acquiring interconnection information among FC ports of nodes in a storage network;
determining independent sub-networks of the storage network according to the interconnection information; each independent sub-network is composed of FC ports and switches with interconnection relation;
aggregating and replacing FC ports belonging to the same node in independent sub-networks by utilizing the corresponding relation between each node and the FC ports to obtain the actual topology information of each node;
wherein determining independent sub-networks of the storage network based on the interconnection information comprises:
s11, selecting unanalyzed initial interconnection information from the interconnection information;
s12, setting the interconnection relationship of the two FC ports of the initial interconnection information in the initial sub-network, and taking the FC ports with the interconnection relationship as identified ports;
s13, selecting unanalyzed target interconnection information from interconnection information, wherein one FC port of the target interconnection information is an identified port;
s14, updating the port interconnection relation of the initial sub-network according to the target interconnection information, and setting a switch at the intersection of the port interconnection relation;
s15, judging whether target interconnection information with an identified port exists in the interconnection information; if so, continue to S13; if not, go to S16;
s16, taking the final initial sub-network as an independent sub-network, deleting the analyzed interconnection information from the interconnection information, and deleting the identified port;
s17, judging whether the interconnection information has the unanalyzed interconnection information; if so, continuing to execute S11 to identify other independent sub-networks in the interconnection information; if not, ending the flow;
wherein, the updating the port interconnection relationship of the initial sub-network according to the target interconnection information and setting a switch at the intersection of the port interconnection relationship comprises:
in the existing port interconnection relationship of the initial sub-network, increasing the interconnection relationship between the identified port and the unidentified port in the target interconnection information;
setting a switch at the newly-added cross point of the port interconnection relation;
judging whether a target switch exists in the existing port interconnection relationship of the initial sub-network, wherein the port corresponding to the target switch and the unidentified port in the target interconnection information have interconnection relationship;
and if so, merging the newly added switch and the target switch.
2. The method for determining node topology information according to claim 1, further comprising, after obtaining the actual topology information of each node:
comparing the actual topology information with planning network topology information, and judging whether the actual topology information is the same as the planning network topology information;
and if the two link failure modes are different, generating failure link prompt information.
3. A node topology information determination apparatus based on a storage network, comprising:
the acquisition module is used for acquiring interconnection information among FC ports of nodes in a storage network;
a determining module, configured to determine an independent sub-network of the storage network according to the interconnection information; each independent sub-network is composed of FC ports and switches with interconnection relation;
the processing module is used for aggregating and replacing FC ports belonging to the same node in the independent sub-networks by utilizing the corresponding relation between each node and the FC ports to obtain the actual topology information of each node;
wherein the determining module comprises:
a first selection unit, configured to select unanalyzed initial interconnection information from the interconnection information;
a setting unit, configured to set an interconnection relationship between two FC ports of the initial interconnection information in an initial sub-network, and use an FC port having the interconnection relationship as an identified port;
a second selecting unit, configured to select unanalyzed target interconnection information from interconnection information, where one FC port of the target interconnection information is an identified port;
an updating unit, configured to update the port interconnection relationship of the initial sub-network according to the target interconnection information, and set a switch at a cross point of the port interconnection relationship;
the first judging unit is used for judging whether target interconnection information with an identified port exists in the interconnection information or not; if yes, triggering the second selection unit; if not, triggering a determining unit;
the determining unit is configured to use the final initial sub-network as an independent sub-network, delete the analyzed interconnection information from the interconnection information, and delete the identified port;
the second judging unit is used for judging whether the interconnection information has the unanalyzed interconnection information or not; if the sub-networks exist, triggering a first selection unit so as to identify other independent sub-networks in the interconnection information; if not, ending the flow;
wherein the update unit includes:
an interconnection relation increasing subunit, configured to increase, in an existing port interconnection relation of the initial sub-network, an interconnection relation between an identified port and an unidentified port in the target interconnection information;
a setting subunit, configured to set a switch at the intersection where the port interconnection relationship is newly added;
a judging subunit, configured to judge whether a target switch exists in an existing port interconnection relationship of the initial sub-network, where a port corresponding to the target switch and an unidentified port in the target interconnection information have an interconnection relationship;
and the merging subunit is used for merging the newly added switch and the target switch when the target switch exists.
4. The node topology information determination apparatus according to claim 3, further comprising:
the judging module is used for comparing the actual topology information with the planning network topology information and judging whether the actual topology information is the same as the planning network topology information;
and the prompting module is used for generating fault link prompting information when the actual topology information is different from the planning network topology information.
5. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the node topology information determination method according to claim 1 or 2 when executing the computer program.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the node topology information determination method according to claim 1 or 2.
CN201911286000.1A 2019-12-13 2019-12-13 Node topology information determination method, device, equipment and storage medium Active CN111030863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911286000.1A CN111030863B (en) 2019-12-13 2019-12-13 Node topology information determination method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911286000.1A CN111030863B (en) 2019-12-13 2019-12-13 Node topology information determination method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111030863A CN111030863A (en) 2020-04-17
CN111030863B true CN111030863B (en) 2022-06-07

Family

ID=70210787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911286000.1A Active CN111030863B (en) 2019-12-13 2019-12-13 Node topology information determination method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111030863B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116016199B (en) * 2023-02-21 2023-06-09 山东海量信息技术研究院 Information control method, system, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330405A (en) * 2008-07-02 2008-12-24 北京亿阳信通软件研究院有限公司 Method for discovering network topology and related equipment
CN102263807A (en) * 2010-05-31 2011-11-30 国际商业机器公司 Method for keeping communication path smooth in storage area network and storage area network
CN108712286A (en) * 2018-05-22 2018-10-26 华为技术有限公司 The determination method, apparatus and storage medium of network topology structure
CN109936480A (en) * 2019-03-19 2019-06-25 鹏城实验室 Method for discovering network topology and device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7688758B2 (en) * 2007-06-26 2010-03-30 Avaya Inc. Node merging process for network topology representation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330405A (en) * 2008-07-02 2008-12-24 北京亿阳信通软件研究院有限公司 Method for discovering network topology and related equipment
CN102263807A (en) * 2010-05-31 2011-11-30 国际商业机器公司 Method for keeping communication path smooth in storage area network and storage area network
CN108712286A (en) * 2018-05-22 2018-10-26 华为技术有限公司 The determination method, apparatus and storage medium of network topology structure
CN109936480A (en) * 2019-03-19 2019-06-25 鹏城实验室 Method for discovering network topology and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN111030863A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
US20160352578A1 (en) System and method for adaptive paths locator for virtual network function links
CN110875850B (en) Firmware upgrading method and system, readable storage medium and terminal equipment
CN109634987A (en) The querying method and device of power grid chart database
CN109145034B (en) Resource presentation method and device and computer terminal
CN110474960B (en) Method and device for service deployment in virtual network
US10715628B2 (en) Attribute operating method and device
CN112685175A (en) Method and device for constructing service topological graph and computer readable storage medium
CN110517018A (en) A kind of any jump method of node based on activiti workflow and device
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN111030863B (en) Node topology information determination method, device, equipment and storage medium
CN114398397A (en) Data processing method, device, storage medium and system
CN114218265A (en) Processing method and device of offline model, storage medium and processor
CN106527979B (en) Data migration method and device
CN109766088B (en) Program generation method, program generation device, data processing method and server
CN113691403B (en) Topology node configuration method, related device and computer program product
CN103188117B (en) Information interaction server simulation testing device and method
CN114598680A (en) Domain name management method, device and storage medium
CN108563578A (en) SDK compatibility detection method, device, equipment and readable storage medium storing program for executing
CN111459484B (en) Method for simulating back-end data during separate development of front end and back end of webpage
CN110290172B (en) Container application cloning method and device, computer equipment and storage medium
CN113704114A (en) Automatic testing method, device, equipment and medium for functional interface
CN108319679B (en) Method and device for generating primary key
CN110609781A (en) Interface test method, device and storage medium
Bracchi et al. Performability modeling of mobile software systems
JP2015072531A (en) Test support method, test support device, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant