CN112968837A - Network structure analysis method, device, equipment and storage medium - Google Patents
Network structure analysis method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112968837A CN112968837A CN202110154918.1A CN202110154918A CN112968837A CN 112968837 A CN112968837 A CN 112968837A CN 202110154918 A CN202110154918 A CN 202110154918A CN 112968837 A CN112968837 A CN 112968837A
- Authority
- CN
- China
- Prior art keywords
- network
- switch
- address
- opposite
- structure analysis
- 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.)
- Pending
Links
- 238000003696 structure analysis method Methods 0.000 title claims abstract description 21
- 238000004458 analytical method Methods 0.000 claims abstract description 80
- 238000000034 method Methods 0.000 claims abstract description 32
- 238000004590 computer program Methods 0.000 claims description 10
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 6
- 230000009471 action Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 101150042248 Mgmt gene Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery 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 application discloses a network structure analysis method, a device, equipment and a storage medium. The method comprises the following steps: acquiring a local communication address of a switch in a network environment, wherein the topological structure of the network environment is a cascade structure, and calling a network protocol to acquire an opposite-end communication address of an opposite-end switch which has a communication relation with the local communication address; generating a switch cascade relation according to the communication relation between the local communication address and the opposite communication address; and generating a network structure analysis result based on the connection relation between the terminal equipment and the switch cascade relation. The method does not need a network administrator to reconfirm the connection information on each network device in a manual operation mode, and relatively ensures the accuracy and efficiency of network structure analysis. In addition, the application also provides a network structure analysis device, equipment and a storage medium, and the beneficial effects are as described above.
Description
Technical Field
The present application relates to the field of network operations, and in particular, to a method, an apparatus, a device, and a storage medium for network structure analysis.
Background
In a distributed control system, data transmission depends on a network, and in order to ensure the stability of the network, a network administrator needs to timely, accurately and completely learn about the network structure.
With the continuous enlargement of the scale of the control system, the corresponding network scale is increased in geometric number, and how to quickly and accurately acquire the topology structure of the network and further execute network management based on the topology structure becomes a problem which is more and more concerned by network administrators. The current network structure needs to be appointed during network deployment, and the determined network structure during network deployment cannot be updated in real time according to the change of the actual network structure. When the network structure is changed, a network administrator needs to confirm the connection information on each network device again in a manual operation mode, and then describes the network structure again.
Therefore, it is a problem to be solved by those skilled in the art to provide a network structure analysis method to relatively ensure the accuracy and efficiency of network structure analysis.
Disclosure of Invention
The present application provides a method, an apparatus, a device and a storage medium for network structure analysis, so as to relatively ensure accuracy and efficiency of network structure analysis.
In order to solve the above technical problem, the present application provides a network structure analysis method, including:
acquiring a local communication address of a switch in a network environment; wherein, the topological structure of the network environment is a cascade structure;
calling a network protocol to obtain an opposite-end communication address of an opposite-end switch which has a communication relation with a local communication address;
generating a switch cascade relation according to the communication relation between the local communication address and the opposite communication address;
and generating a network structure analysis result based on the connection relation between the terminal equipment and the switch cascade relation.
Preferably, the native communication address comprises a native MAC address;
calling a network protocol to acquire an opposite-end communication address of an opposite-end switch having a communication relation with a local communication address, wherein the method comprises the following steps:
calling an SNMP protocol to acquire an opposite terminal MAC address of an opposite terminal switch which has a communication relation with a local MAC address;
generating a switch cascade relation according to a communication relation between a local communication address and an opposite communication address, comprising:
and generating a switch cascade relation according to the communication relation between the local MAC address and the opposite-end MAC address.
Preferably, invoking the SNMP protocol to obtain the peer MAC address of the peer switch having a communication relationship with the local MAC address includes:
calling an SNMP protocol to obtain a communication port of a local MAC address;
and acquiring the opposite terminal MAC address of the opposite terminal switch communicated with the communication port.
Preferably, after generating the network structure analysis result based on the connection relationship between the terminal device and the switch cascade relationship, the method further includes:
and generating a network topological graph based on the network structure analysis result.
Preferably, generating the network topology map based on the network structure analysis result includes:
and generating a network topology map based on the network structure analysis result by executing the LUN script.
Preferably, generating the network topology map based on the network structure analysis result includes:
distributing corresponding IP addresses to the terminal equipment and the switch in the network structure analysis result;
and generating a network topological graph containing the IP address based on the network structure analysis result.
Preferably, after generating the network topology map containing the IP address based on the network structure analysis result, the method further includes:
and counting the node state information of the terminal equipment and/or the switch based on the IP address in the network topological graph.
In addition, the present application also provides a network structure analysis device, including:
the local address acquisition module is used for acquiring a local communication address of the switch in the network environment; wherein, the topological structure of the network environment is a cascade structure;
the opposite terminal address acquisition module is used for calling a network protocol to acquire an opposite terminal communication address of an opposite terminal switch which has a communication relation with the local communication address;
the cascade relation generating module is used for generating a switch cascade relation according to the communication relation between the local communication address and the opposite communication address;
and the analysis result generation module is used for generating a network structure analysis result based on the connection relation between the terminal equipment and the switch cascade relation.
In addition, the present application also provides a network structure analysis device, including:
a memory for storing a computer program;
a processor for implementing the steps of the network structure analysis method as described above when executing the computer program.
Furthermore, the present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the network structure analysis method as described above.
The network structure analysis method includes the steps that a local communication address of a switch in a network environment is obtained, wherein a topological structure of the network environment is a cascade structure, an opposite-end communication address of an opposite-end switch which has a communication relation with the local communication address is further obtained in a network protocol calling mode, a switch cascade relation is generated according to the communication relation between the local communication address and the opposite-end communication address, and a network structure analysis result is generated on the basis of the connection relation between terminal equipment and the switch cascade relation. In the method, the network protocol is adopted to search and obtain the opposite-end communication address of the opposite-end switch which has a communication relation with the local communication address of the switch, the switch cascade relation is obtained by utilizing the local communication address and the opposite-end communication address, and then a complete network structure analysis result containing the switch and the terminal equipment is generated based on the connection relation between the terminal equipment and the switch cascade relation, so that a network manager does not need to confirm the connection information on each network equipment again in a manual operation mode, and the accuracy and the efficiency of network structure analysis are relatively ensured. In addition, the application also provides a network structure analysis device, equipment and a storage medium, and the beneficial effects are as described above.
Drawings
In order to more clearly illustrate the embodiments of the present application, the drawings needed for the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a network structure analysis method disclosed in an embodiment of the present application;
fig. 2 is a flowchart of a specific network structure analysis method disclosed in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a network structure analysis apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the present application.
With the continuous enlargement of the scale of the control system, the corresponding network scale is increased in geometric number, and how to quickly and accurately acquire the topology structure of the network and further execute network management based on the topology structure becomes a problem which is more and more concerned by network administrators. The current network structure needs to be appointed during network deployment, and the determined network structure during network deployment cannot be updated in real time according to the change of the actual network structure. When the network structure is changed, a network administrator needs to confirm the connection information on each network device again in a manual operation mode, and then describes the network structure again.
Therefore, the core of the present application is to provide a network structure analysis method to relatively ensure the accuracy and efficiency of network structure analysis.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings.
Referring to fig. 1, an embodiment of the present application discloses a network structure analysis method, including:
step S10: a local communication address of a switch in a network environment is obtained.
The topological structure of the network environment is a cascade structure.
It should be emphasized that, the method for analyzing a network structure in the technical solution of the present application mainly analyzes a network topology structure in a cascade manner, and therefore, a topology structure of a network environment to which a local communication address is obtained in this step is a cascade structure.
The execution subject of this embodiment may be a network control device that has a communication connection relationship with switches in the network environment, and the network control device first obtains local communication addresses of the switches in the network environment, where the local communication addresses may be preset when the switches in the network environment are configured.
Step S11: and calling a network protocol to acquire the opposite-end communication address of the opposite-end switch which has a communication relation with the local communication address.
After the local communication address of the switch in the network environment is obtained, the step further calls a network protocol to obtain the opposite-end communication address of the opposite-end switch having a communication relationship with the local communication address, it should be noted that the opposite-end switch in the step refers to a switch having a communication relationship with the current switch, and two switches having a communication relationship are opposite-end switches. The method for calling the network protocol is used for acquiring the opposite-end communication address of the opposite-end switch which has a communication relation with the local communication address, so that the accuracy and efficiency of the process of acquiring the opposite-end switches of all switches in the network environment can be relatively improved.
Step S12: and generating a switch cascade relation according to the communication relation between the local communication address and the opposite communication address.
After the opposite-end communication address of the opposite-end switch having a communication relationship with the local communication address is obtained, the switch cascade relationship is further generated according to the communication relationship between the local communication address and the opposite-end communication address. For example, when the opposite-end communication address of a certain switch a includes the local communication address of the switch B, and the opposite-end communication address of the switch B includes the local communication address of the switch a, that is, when two switches are opposite-end switches to each other, it is determined that a cascade relationship exists between the switch a and the switch B, and further, when the opposite-end communication address of the switch C includes the local communication address of the switch B and the opposite-end communication address of the switch B includes the local communication address of the switch C, it is further determined that a cascade relationship exists between the switch C and the switch B, and the cascade relationship between the switches in the network environment can be further combined into a switch cascade relationship of the whole switch in the network environment.
Step S13: and generating a network structure analysis result based on the connection relation between the terminal equipment and the switch cascade relation.
After the switch cascade relation is generated according to the communication relation between the local communication address and the opposite-end communication address, a network structure analysis result is further generated based on the connection relation between the terminal device and the switch cascade relation. The terminal device in this step refers to a device connected to the switch for performing network access through the switch, and the terminal device connected to the switch has a connection relationship with the corresponding switch.
The network structure analysis method includes the steps that a local communication address of a switch in a network environment is obtained, wherein a topological structure of the network environment is a cascade structure, an opposite-end communication address of an opposite-end switch which has a communication relation with the local communication address is further obtained in a network protocol calling mode, a switch cascade relation is generated according to the communication relation between the local communication address and the opposite-end communication address, and a network structure analysis result is generated on the basis of the connection relation between terminal equipment and the switch cascade relation. In the method, the network protocol is adopted to search and obtain the opposite-end communication address of the opposite-end switch which has a communication relation with the local communication address of the switch, the switch cascade relation is obtained by utilizing the local communication address and the opposite-end communication address, and then a complete network structure analysis result containing the switch and the terminal equipment is generated based on the connection relation between the terminal equipment and the switch cascade relation, so that a network manager does not need to confirm the connection information on each network equipment again in a manual operation mode, and the accuracy and the efficiency of network structure analysis are relatively ensured.
Referring to fig. 2, an embodiment of the present application discloses a network structure analysis method, including:
step S20: a local MAC address of a switch in a network environment is obtained.
Step S21: and calling an SNMP protocol to acquire the opposite terminal MAC address of the opposite terminal switch which has a communication relation with the local MAC address.
Step S22: and generating a switch cascade relation according to the communication relation between the local MAC address and the opposite-end MAC address.
Step S23: and generating a network structure analysis result based on the connection relation between the terminal equipment and the switch cascade relation.
It should be noted that the key point of this embodiment is to obtain a local MAC address of an exchange in a network environment, further obtain an opposite-end MAC address of an opposite-end exchange having a communication relationship with the local MAC address by calling an SNMP protocol, generate an exchange cascade relationship according to the communication relationship between the local MAC address and the opposite-end MAC address, and generate a network structure analysis result based on a connection relationship between a terminal device and the exchange cascade relationship.
The SNMP protocol is a standard protocol designed for managing network nodes (servers, workstations, routers, switches and the like), is an application layer protocol, and can relatively ensure the accuracy and efficiency of acquiring the MAC opposite-end address of an opposite-end switch in communication relation with a local MAC address by calling the SNMP protocol to acquire the opposite-end MAC address of the opposite-end switch in communication relation with the local MAC address.
Since the MAC Address, i.e., Media Access Control Address, is translated into a Media Access Control Address, also called local area network Address (LAN Address), which is an Address used to confirm the location of a network device, the MAC Address is used to uniquely identify a network card in the network, and if one or more network cards exist in a device, each network card needs to have a unique MAC Address. Because the MAC address is a unique and fixed network address of the switch, the embodiment further generates the switch cascade relationship between the switches based on the association relationship between the MAC addresses of the switches in the network environment, and can relatively ensure the accuracy of the switch cascade relationship, thereby further ensuring the accuracy of the network structure analysis result.
On the basis of the above embodiment, as a preferred implementation, invoking the SNMP protocol to obtain the peer MAC address of the peer switch having a communication relationship with the local MAC address includes:
calling an SNMP protocol to obtain a communication port of a local MAC address;
and acquiring the opposite terminal MAC address of the opposite terminal switch communicated with the communication port.
It should be noted that, in the process of calling the SNMP protocol to obtain the peer MAC address of the peer switch having a communication relationship with the local MAC address, the embodiment first calls the SNMP protocol to obtain the communication port of the local MAC address, and then obtains the peer MAC address of the peer switch communicating with the communication port.
When the communication port of the local MAC address is obtained by calling the SNMP protocol, the corresponding information table of the MAC address and the port can be obtained by executing the 'walk oid (1.3.6.1.2.1.17.4.3.1)' instruction operation of the SNMP protocol. oid (1.3.6.1.2.1.17.4.3.1) contains three sub-items specifically as follows:
oil (1.3.6.1.2.1.17.4.3.1.1), MAC address table;
oid (1.3.6.1.2.1.17.4.3.1.2), MAC to port correspondence table;
oid (1.3.6.1.2.1.17.4.3.1.3), MAC attribute, there are five possible states. Respectively as follows: unknown MAC (other (1)), invalid MAC (invalid (2)), learned MAC, and in use (learned (3)), own MAC (self (4)), static MAC (mgmt (5)).
The embodiment further ensures the accuracy of the switch cascade relation, and further can further ensure the accuracy of the network structure analysis result.
On the basis of the above series of embodiments, as a preferred implementation, after generating a network structure analysis result based on the connection relationship between the terminal device and the switch cascade relationship, the method further includes:
and generating a network topological graph based on the network structure analysis result.
According to the embodiment, after the network structure analysis result is generated based on the connection relationship between the terminal device and the switch cascade relationship, the network topology map is further generated based on the network result analysis result.
Further, as a preferred embodiment, generating a network topology map based on the network structure analysis result includes:
and generating a network topology map based on the network structure analysis result by executing the LUN script.
It should be noted that, because the LUN script has the characteristics of concise code content and high execution efficiency, the generation efficiency of the network topology graph can be relatively ensured by generating the network topology graph based on the network structure analysis result by executing the LUN script.
In addition, as a preferred embodiment, generating a network topology map based on the result of the network structure analysis includes:
distributing corresponding IP addresses to the terminal equipment and the switch in the network structure analysis result;
and generating a network topological graph containing the IP address based on the network structure analysis result.
In the process of generating the network topology map based on the network configuration analysis result in the present embodiment, first, the terminal device and the switch in the network configuration analysis result are assigned with the corresponding IP address, and further, the network topology map including the IP address is generated based on the network configuration analysis result. The IP Address, i.e. Internet Protocol Address, refers to an Internet Protocol Address and is also translated into an Internet Protocol Address. The IP address is a uniform address format provided by an IP protocol, allocates a logical address for each network and each host on the Internet so as to shield the difference of physical addresses, allocates corresponding IP addresses for the terminal equipment and the switch in the network structure analysis result, and further generates a network topology map containing the IP addresses based on the network structure analysis result, so that a network manager can be relatively ensured to flexibly and reliably realize the access to the terminal equipment and the switch in the network topology map based on the application layer protocol based on the IP addresses in the network topology map.
On the basis of the foregoing embodiment, as a preferred embodiment, after generating a network topology map including an IP address based on a result of the network structure analysis, the method further includes:
and counting the node state information of the terminal equipment and/or the switch based on the IP address in the network topological graph.
In addition, in the present embodiment, after the network topology map including the IP address is generated based on the network configuration analysis result, the node state information of the terminal device and/or the switch is further counted based on the IP address in the network topology map. After the network topology map is acquired and the network node state is periodically acquired, the front-end display interface can organize and dynamically display the network node state, so that a user can know information of CPU utilization rate, memory utilization rate, flow statistics, unicast packet number statistics, multicast packet number statistics, broadcast packet number statistics (statistics comprise entrance statistics and exit statistics) and port number of terminal equipment and/or an exchanger on a network in real time, and the purpose of displaying the running state of the network by a visual method is finally achieved.
Referring to fig. 3, an embodiment of the present application provides a network structure analysis apparatus, including:
a local address obtaining module 10, configured to obtain a local communication address of a switch in a network environment;
wherein, the topological structure of the network environment is a cascade structure;
an opposite terminal address obtaining module 11, configured to invoke a network protocol to obtain an opposite terminal communication address of an opposite terminal switch having a communication relationship with the local communication address;
a cascade relation generating module 12, configured to generate a switch cascade relation according to a communication relation between the local communication address and the peer communication address;
and an analysis result generating module 13, configured to generate a network structure analysis result based on the connection relationship between the terminal device and the switch cascade relationship.
The network structure analysis device provided by the application firstly obtains a local communication address of a switch in a network environment, wherein a topological structure of the network environment is a cascade structure, further obtains an opposite-end communication address of an opposite-end switch which has a communication relation with the local communication address in a mode of calling a network protocol, generates a switch cascade relation according to the communication relation between the local communication address and the opposite-end communication address, and further generates a network structure analysis result based on the connection relation between a terminal device and the switch cascade relation on the basis. In the device, the network protocol is adopted to search and obtain the opposite-end communication address of the opposite-end switch which has a communication relation with the local communication address of the switch, the switch cascade relation is obtained by utilizing the local communication address and the opposite-end communication address, and then a complete network structure analysis result containing the switch and the terminal equipment is generated based on the connection relation between the terminal equipment and the switch cascade relation, so that a network manager does not need to confirm the connection information on each network equipment again in a manual operation mode, and the accuracy and the efficiency of network structure analysis are relatively ensured.
In addition, the present application also provides a network structure analysis device, including:
a memory for storing a computer program;
a processor for implementing the steps of the network structure analysis method as described above when executing the computer program.
The network structure analysis device provided by the application firstly obtains a local communication address of a switch in a network environment, wherein a topological structure of the network environment is a cascade structure, further obtains an opposite-end communication address of an opposite-end switch which has a communication relation with the local communication address in a mode of calling a network protocol, generates a switch cascade relation according to the communication relation between the local communication address and the opposite-end communication address, and further generates a network structure analysis result based on the connection relation between the terminal device and the switch cascade relation on the basis. In the equipment, the opposite-end communication address of the opposite-end switch which has a communication relation with the local communication address of the switch is obtained by adopting network protocol retrieval, the switch cascade relation is obtained by utilizing the local communication address and the opposite-end communication address, and a complete network structure analysis result containing the switch and the terminal equipment is generated based on the connection relation between the terminal equipment and the switch cascade relation, so that a network manager does not need to confirm the connection information on each network equipment again in a manual operation mode, and the accuracy and the efficiency of network structure analysis are relatively ensured.
Furthermore, the present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the network structure analysis method as described above.
The computer-readable storage medium provided by the application first obtains a local communication address of a switch in a network environment, wherein a topological structure of the network environment is a cascade structure, further obtains an opposite-end communication address of an opposite-end switch having a communication relation with the local communication address by calling a network protocol, generates a switch cascade relation according to the communication relation between the local communication address and the opposite-end communication address, and further generates a network structure analysis result based on a connection relation between a terminal device and the switch cascade relation. In the computer readable storage medium, the network protocol is adopted to retrieve the opposite-end communication address of the opposite-end switch which has a communication relation with the local communication address of the switch, the local communication address and the opposite-end communication address are utilized to obtain the switch cascade relation, and then a complete network structure analysis result containing the switch and the terminal equipment is generated based on the connection relation between the terminal equipment and the switch cascade relation, so that a network administrator does not need to confirm the connection information on each network equipment again in a manual operation mode, and the accuracy and the efficiency of network structure analysis are relatively ensured.
The above details a network structure analysis method, apparatus, device and storage medium provided by the present application. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A method for analyzing a network structure, comprising:
acquiring a local communication address of a switch in a network environment; wherein, the topological structure of the network environment is a cascade structure;
calling a network protocol to acquire an opposite-end communication address of an opposite-end switch having a communication relation with the local communication address;
generating a switch cascade relation according to the communication relation between the local communication address and the opposite communication address;
and generating a network structure analysis result based on the connection relationship between the terminal equipment and the switch cascade relationship.
2. The network structure analysis method according to claim 1, wherein the local communication address comprises a local MAC address;
the calling network protocol for acquiring the opposite-end communication address of the opposite-end switch having a communication relation with the local communication address comprises:
calling an SNMP protocol to acquire an opposite terminal MAC address of an opposite terminal switch having a communication relation with the local MAC address;
the generating a switch cascade relationship according to the communication relationship between the local communication address and the opposite-end communication address includes:
and generating the switch cascade relation according to the communication relation between the local MAC address and the opposite-end MAC address.
3. The method according to claim 2, wherein the invoking the SNMP protocol to obtain the peer MAC address of the peer switch having a communication relationship with the local MAC address comprises:
calling the SNMP protocol to obtain a communication port of the local MAC address;
and acquiring the opposite-end MAC address of the opposite-end switch communicated with the communication port.
4. The network structure analysis method according to any one of claims 1 to 3, wherein after the generating of the network structure analysis result based on the connection relationship between the terminal device and the switch cascade relationship, the method further comprises:
and generating a network topological graph based on the network structure analysis result.
5. The method according to claim 4, wherein the generating a network topology map based on the network structure analysis result comprises:
and generating the network topological graph based on the network structure analysis result by executing the LUN script.
6. The method according to claim 4, wherein the generating a network topology map based on the network structure analysis result comprises:
distributing corresponding IP addresses to the terminal equipment and the switch in the network structure analysis result;
and generating the network topological graph containing the IP address based on the network structure analysis result.
7. The method according to claim 6, wherein after the generating the network topology map containing the IP address based on the network structure analysis result, the method further comprises:
and counting the node state information of the terminal equipment and/or the switch based on the IP address in the network topological graph.
8. A network structure analysis apparatus, comprising:
the local address acquisition module is used for acquiring a local communication address of the switch in the network environment; wherein, the topological structure of the network environment is a cascade structure;
an opposite terminal address obtaining module, configured to invoke a network protocol to obtain an opposite terminal communication address of an opposite terminal switch having a communication relationship with the local communication address;
a cascade relation generating module, configured to generate a switch cascade relation according to a communication relation between the local communication address and the opposite communication address;
and the analysis result generation module is used for generating a network structure analysis result based on the connection relation between the terminal equipment and the switch cascade relation.
9. A network structure analysis device, characterized by comprising:
a memory for storing a computer program;
a processor for implementing the steps of the network structure analysis method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the network structure analysis method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110154918.1A CN112968837A (en) | 2021-02-04 | 2021-02-04 | Network structure analysis method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110154918.1A CN112968837A (en) | 2021-02-04 | 2021-02-04 | Network structure analysis method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112968837A true CN112968837A (en) | 2021-06-15 |
Family
ID=76273775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110154918.1A Pending CN112968837A (en) | 2021-02-04 | 2021-02-04 | Network structure analysis method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112968837A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101764709A (en) * | 2009-12-29 | 2010-06-30 | 福建星网锐捷网络有限公司 | Network physical topology discovering method and network management server based on SNMP |
CN102420765A (en) * | 2011-12-09 | 2012-04-18 | 福建星网锐捷网络有限公司 | Method and device for determining physical link between switchboard and terminal |
US20160119188A1 (en) * | 2014-10-24 | 2016-04-28 | International Business Machines Corporation | End host physical connection on a switch port using multiple ethernet frames |
CN106161103A (en) * | 2016-08-18 | 2016-11-23 | 上海帝联信息科技股份有限公司 | Switch-layer topology construction method and device |
CN108206792A (en) * | 2016-12-16 | 2018-06-26 | 北京神州泰岳软件股份有限公司 | The topology discovery method and device of interchanger |
CN110912751A (en) * | 2019-12-03 | 2020-03-24 | 山东中创软件商用中间件股份有限公司 | Network equipment topological graph generation method and related device |
CN111600762A (en) * | 2020-06-02 | 2020-08-28 | 山东中创软件商用中间件股份有限公司 | Network topology structure generation method, device, equipment and medium |
-
2021
- 2021-02-04 CN CN202110154918.1A patent/CN112968837A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101764709A (en) * | 2009-12-29 | 2010-06-30 | 福建星网锐捷网络有限公司 | Network physical topology discovering method and network management server based on SNMP |
CN102420765A (en) * | 2011-12-09 | 2012-04-18 | 福建星网锐捷网络有限公司 | Method and device for determining physical link between switchboard and terminal |
US20160119188A1 (en) * | 2014-10-24 | 2016-04-28 | International Business Machines Corporation | End host physical connection on a switch port using multiple ethernet frames |
CN106161103A (en) * | 2016-08-18 | 2016-11-23 | 上海帝联信息科技股份有限公司 | Switch-layer topology construction method and device |
CN108206792A (en) * | 2016-12-16 | 2018-06-26 | 北京神州泰岳软件股份有限公司 | The topology discovery method and device of interchanger |
CN110912751A (en) * | 2019-12-03 | 2020-03-24 | 山东中创软件商用中间件股份有限公司 | Network equipment topological graph generation method and related device |
CN111600762A (en) * | 2020-06-02 | 2020-08-28 | 山东中创软件商用中间件股份有限公司 | Network topology structure generation method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10917324B2 (en) | Network health data aggregation service | |
US8583779B2 (en) | Root cause analysis approach with candidate elimination using network virtualization | |
US6442144B1 (en) | Method and apparatus for discovering network devices using internet protocol and producing a corresponding graphical network map | |
US10911263B2 (en) | Programmatic interfaces for network health information | |
US8639802B2 (en) | Dynamic performance monitoring | |
US20080016115A1 (en) | Managing Networks Using Dependency Analysis | |
CN101202751B (en) | System and method for providing SNMP data for virtual networking devices | |
US7933981B1 (en) | Method and apparatus for graphical representation of elements in a network | |
US11562041B2 (en) | Systems and methods for discovering and monitoring devices using search patterns for object identifiers and values | |
US20160092537A1 (en) | Polling based synchronization in managed networks | |
CN111245662B (en) | Method and device for displaying network topology | |
CN114915561B (en) | Network topology graph generation method and device | |
US20020156920A1 (en) | Recursive discovery of CDP nodes | |
CN101404595B (en) | Network bridge uplink port identification | |
CN112968837A (en) | Network structure analysis method, device, equipment and storage medium | |
CN101753266B (en) | Network topology search and error control optimization method of coaxially-loading Ethernet equipment | |
CN112866011B (en) | Method, device, equipment and medium for determining network topology structure | |
CN112135302B (en) | Control method and device for base station topology information and computer readable storage medium | |
Cisco | Glossary | |
Cisco | Glossary | |
Cisco | Glossary | |
US8782118B2 (en) | Method to manage network printers and network system using the same | |
US11876693B1 (en) | System and method of application discovery using communication port signature in computer networks | |
CN113835648B (en) | Image forming device information acquisition method and device | |
CN113098734B (en) | Method for dynamically monitoring performance index of network equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210615 |
|
RJ01 | Rejection of invention patent application after publication |