CN112737819A - Visualization method for small and medium-sized local area network structure - Google Patents

Visualization method for small and medium-sized local area network structure Download PDF

Info

Publication number
CN112737819A
CN112737819A CN202011505329.5A CN202011505329A CN112737819A CN 112737819 A CN112737819 A CN 112737819A CN 202011505329 A CN202011505329 A CN 202011505329A CN 112737819 A CN112737819 A CN 112737819A
Authority
CN
China
Prior art keywords
topo
network
switch
information
web
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.)
Granted
Application number
CN202011505329.5A
Other languages
Chinese (zh)
Other versions
CN112737819B (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.)
Shenzhen Tenda Technology Co Ltd
Original Assignee
Shenzhen Tenda 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 Shenzhen Tenda Technology Co Ltd filed Critical Shenzhen Tenda Technology Co Ltd
Priority to CN202011505329.5A priority Critical patent/CN112737819B/en
Publication of CN112737819A publication Critical patent/CN112737819A/en
Application granted granted Critical
Publication of CN112737819B publication Critical patent/CN112737819B/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/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]
    • 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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Abstract

The invention provides a visualization method for a small and medium-sized local area network structure, belonging to the technical field of communication. The invention comprises the following steps: the method comprises the following steps that a WEB switch creates a database for storing basic information of local network equipment and TOPO hierarchical relation of each piece of equipment, and stores the information of the WEB switch to the database; acquiring protocol data and storing protocol information of each network device to a database; sending a TOPO private protocol data acquisition request; acquiring TOPO private protocol data, and sorting and storing network structure relation information of the TOPO private protocol data into a database; and the WEB switch sorts and transmits the database to the WEB, and the WEB generates and displays the TOPO view of the network structure to a display interface. The invention has the beneficial effects that: the method is simple to obtain, convenient to monitor the network and convenient to realize.

Description

Visualization method for small and medium-sized local area network structure
Technical Field
The invention relates to a network visualization technology, in particular to a method for visualizing a small and medium-sized local area network structure.
Background
In a local area network, in general, to view or manage a device in the local area network, each device needs to be logged in to view and manage the device; or through packet capture and analysis of the network environment, the device in the network is known; or starting the SNMP protocol for each device, and monitoring the state of each device through the SNMP client; or starting the LLDP function of each device, and enabling the device to be discovered by other devices through the LLDP protocol.
The prior art has the following defects:
firstly, logging in each device to check and manage the device. The method can only know the information of a certain device, and cannot know the whole network structure;
and secondly, the network environment is analyzed through packet capture to know which devices exist in the network. The method can analyze the network structure relationship, but has higher requirement on network analysts;
and thirdly, monitoring the state of each device through the SNMP client. The method can monitor the detailed information of the equipment for starting the SNMP server and the network hierarchy relationship, and most network equipment does not have the SNMP function;
and fourthly, discovering the device through an LLDP protocol. The method can check the partial information of the device for starting the LLDP protocol, and cannot display the network hierarchy relationship.
Therefore, for the current equipment monitoring management in the local area network, the network analysis scheme is various but has single function, the network structure is not visual, and the requirement on a network administrator is higher. Small and medium-sized local area networks lack a convenient method for visual monitoring and management of network equipment in the local area networks.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a visualization method for a medium-small local area network structure.
The invention comprises the following steps:
s1: firstly, after a WEB switch in a local area network is powered on and started, a database for storing basic information of local network equipment and TOPO hierarchical relation of each piece of equipment is established, and the information of the WEB switch is stored in the database;
s3: acquiring ARP protocol data, and storing ARP protocol information of each network device to a database;
s4: judging whether other network communication protocols exist, if so, saving the information of each network device acquired by the other network communication protocols, and if not, directly executing the step S5;
s5: sending a TOPO private protocol data acquisition request;
s6: acquiring TOPO private protocol data, and sorting and storing network structure relation information of the TOPO private protocol data into a database;
s7: and the WEB switch sorts and transmits the database to the WEB, and the WEB generates and displays the TOPO view of the network structure to a display interface.
The invention is further improved, and the method also comprises the step S8: and judging whether the information of the network equipment is modified, if so, storing the modified information to a database, and then displaying the TOPO view of the network structure to a display interface, and if not, displaying the TOPO view of the network structure to the display interface.
The invention is further improved, and the method also comprises the step S9: and judging whether the equipment is remotely logged in, if so, logging in WEB interfaces of other equipment, and if not, displaying a TOPO view of the network structure to a display interface.
The invention further improves, and the network equipment in the local area network comprises a visual switch with TOPO private protocol and a WEB switch capable of displaying visual views.
The invention is further improved, the ARP protocol data comprises IP and MAC address information of online network equipment in the local area network, other network communication protocol data comprises LLDP protocol data, UPNP protocol data and ONVIF protocol data, and the LLDP protocol data comprises MAC, equipment name, port information, management IP and capability value information of the online equipment in the local area network; the UPNP protocol information comprises a device type of the online device; the ONVIF protocol information includes device type information for a particular device.
In step S6, the TOPO private protocol integrates the acquired protocol data to establish a network hierarchy.
The invention is further improved, the ARP protocol data, LLDP protocol data, UPNP protocol data, ONVIF protocol data are obtained by the visual exchanger, the visual exchanger establishes network hierarchy relation by TOPO private protocol, the processing method is:
the visual switch analyzes the received LLDP, UPNP and ONVIF protocol data to obtain data required by a database according to a corresponding message format, then updates information of each network device in the database according to an MAC address, wherein the information comprises a device name, a device type, a sending port and a receiving port, the obtained network hierarchical relationship only has two-layer relationship, namely the switch and the device which can be identified by the switch by ARP, and the current state is after the switch is powered on and started and before a TOPO private protocol data acquisition request is received.
In step S5, the process of sending TOPO private protocol data acquisition request includes: logging in a WEB page of the visual switch, clicking the visual view, triggering the visual request, wherein the visual switch is the WEB switch displaying the visual view, and the WEB switch sequentially performs four operation steps: sending a TOPO data request, receiving return data of other visual switches responding to the request, sorting the network TOPO hierarchical relation, and returning the network TOPO hierarchical relation data to the WEB page.
The invention is further improved, in step S6, the specific processing method of the WEB switch is as follows:
(1) the WEB switch firstly sends TOPO private protocol request messages to each port of the WEB switch, the messages comprise the IP and hop count of the WEB switch, the initial value of the hop count is 0, the hop count is added with 1 every time the request messages are forwarded by the visual switch, and the hop count is used for identifying a network level and controlling the forwarding range of the messages;
(2) other visual switches return TOPO private protocol data, after the visual switches under the ports of the WEB switch receive the request message, the hop value in the request message is increased by 1, the corresponding visual switches forward the request to all ports except the receiving port, meanwhile, the hop value and local database information are encapsulated into UDP messages, the device IP in the request message is taken as a target IP, the messages are replied to the WEB switch which requests the data in a unicast mode, and by analogy, all visual switches are cascaded downwards to send reply messages, and the WEB switch finishes the data after receiving all reply messages;
(3) the WEB switch organizes the network TOPO hierarchical relationship: after receiving a reply message, namely data acquired by the TOPO private protocol, the WEB switch inserts or updates the information of each device in the message into a local database according to the MAC address, and for a root device in the reply message, the parent MAC covering the corresponding device information in the original database is the MAC address of the last device forwarding the TOPO private protocol request message, and the parent MAC covers and updates the information of other network devices; and updating the level identifier of the non-root equipment in the reply message to be the hop value in the reply message plus 1, and covering and updating partial equipment information, so that a TOPO view of a tree network structure taking the WEB switch as a root is formed.
The invention is further improved, in step S7, the processing procedure of the WEB switch is as follows:
the method comprises the steps of taking an MAC address of the WEB switch as a root, carrying out recursion operation on equipment information of a database according to the relation between the MAC address and a father MAC address, packaging data obtained by recursion into a CJSON format, sending the data to a WEB page through an HTTP (hyper text transport protocol), analyzing the data after the WEB page obtains the data, carrying out reverse recursion arrangement on the data according to the father-son relation between the MAC address and the father MAC address, generating a network TOPO (top of the order) hierarchical relation graph, and finally displaying the network TOPO hierarchical relation graph on the WEB page.
Compared with the prior art, the invention has the beneficial effects that: compared with the traditional method for judging the network structure by the SNMP or LLDP mode, the method has the advantages of more intuitive network structure, simple functional operation, convenience for non-professional management and the like; the invention adopts TOPO private protocol combined with database to arrange the basic information and network structure relationship of the equipment in the network, so that the whole network structure is integrated in a graph, and the local area network equipment is convenient to monitor and manage.
Drawings
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a schematic diagram of TOPO hierarchy relationship data flow in a LAN;
fig. 3 is a schematic diagram of data conversion from a database to a WEB page.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
As shown in fig. 1, the present invention aims to provide a visualization method and a device for a medium-small local area network structure, where the visualization method displays a visualization view on a switch WEB page, can display any device reachable by the switch network in a local area network, and supports a network device that can be remotely managed by a management part. The visual view is simple to obtain, the network monitoring is convenient, the design principle is simple, and the realization is convenient. The invention comprises the following steps:
s1: firstly, after a WEB switch in a local area network is powered on and started, a database for storing basic information of local network equipment and TOPO hierarchical relation of each piece of equipment is established, and the information of the WEB switch is stored in the database;
s3: acquiring ARP protocol data, and storing ARP protocol information of each network device to a database;
s4: judging whether other network communication protocols exist, if so, saving the information of each network device acquired by the other network communication protocols, and if not, directly executing the step S5;
s5: sending a TOPO private protocol data acquisition request;
s6: acquiring TOPO private protocol data, and sorting and storing network structure relation information of the TOPO private protocol data into a database;
s7: and the WEB switch sorts and transmits the database to the WEB, and the WEB generates and displays the TOPO view of the network structure to a display interface.
And in the display process, judging whether the information of the network equipment is modified in real time, if so, storing the modified information to a database, and then displaying a TOPO view of the network structure to a display interface, and if not, displaying the TOPO view of the network structure to the display interface.
Further comprising step S9: and judging whether the equipment is remotely logged in, if so, logging in WEB interfaces of other equipment, and if not, displaying a TOPO view of the network structure to a display interface.
The following detailed description of the implementation process, because the network device in this embodiment relates to various switches, in order to avoid confusion, the following convention is implemented:
(1) switches without TOPO proprietary protocol, for simplicity of presentation, are replaced with "generic switches";
(2) switches with TOPO proprietary protocol, for simplicity of presentation, are replaced with "visual switches";
(3) and (3) logging in a WEB page and clicking a visual switch of the visual view, and replacing the visual switch with a WEB switch for simplifying the expression.
Example 1:
the visualization device expressed by the invention generates the visualization view by the visualization view function software, wherein the visualization view function software comprises local area network equipment information acquisition and data arrangement software, an information storage database, WEB view display software and the like.
The local area network equipment information acquisition and data arrangement software comprises ARP protocol information acquisition software, LLDP protocol information acquisition software, UPNP protocol information acquisition software, ONVIF and other network equipment protocol information acquisition software and TOPO private protocol information acquisition and data arrangement software.
ARP protocol software is used for obtaining IP and MAC of online equipment in the network; the LLDP protocol software is used for acquiring information such as MAC, equipment name, port information, management IP and capability value of online equipment in the network; the UPNP protocol information acquisition software is used for acquiring the equipment types of online equipment in the network, including routing equipment, wireless AP equipment, IPC equipment and the like; network equipment protocol software such as ONVIF is used for acquiring equipment type information of specific equipment, such as equipment such as a network camera, a video encoder and a network-based electronic access control system; the TOPO private protocol information acquisition and data arrangement software is used for arranging and transmitting network hierarchical relation data between 'visual switches'. Data acquired by network device protocols such as an ARP protocol, an LLDP protocol, an ONVIF protocol and the like are basic input data, the protocols are network general protocols, basic information of each device in a local area network can be acquired, a visual view can be preliminarily formed by the basic information, and the view network hierarchy is disordered. The TOPO private protocol is the visual view key protocol, the protocol integrates input basic data, establishes a network hierarchy relationship, adds equipment self-defining information, and generates a visual view by data processed by the TOPO private protocol, and the view network hierarchy relationship is accurate and basically consistent with an actual network structure.
The information storage database comprises a simple SQLite3 database and part of software for adding, deleting, modifying and searching the data acquired by the TOPO private protocol.
The WEB view display software comprises transmission software for transmitting data from a background to WEB and view software for displaying network hierarchical relation by a WEB end according to data arrangement.
The present embodiment may also implement corresponding functions through other functional modules.
As shown in fig. 2, the data obtained by the ARP protocol is broadcasted when the network device is connected to the local area network, and is obtained by the network device; the data acquired by the LLDP protocol can be acquired only when the LLDP protocol is started by the device displaying the visual view, and the data transmitted by other devices in the network through the LLDP protocol can be acquired; the data acquired by the UPNP protocol needs network equipment to support the UPNP protocol and is started; the data acquired by the network equipment protocols such as ONVIF and the like can be displayed only by the equipment displaying the visual view by starting the network equipment protocols such as ONVIF and the like by the corresponding equipment in the network; the data acquired by the TOPO private protocol can only be acquired from a visual switch; and the equipment displaying the visual view arranges the received other four types of data through a TOPO private protocol so as to arrange a tree network structure taking the current login equipment as a root node. The tree-shaped network structure is stored in an SQLite3 database, a network structure relation view can be displayed in a visual view of a WEB login page of a visual switch, partial data of each device in the view can be modified, remote login operation can be carried out on partial devices capable of remotely logging in, and monitoring and management are convenient and fast. If network device protocols such as the LLDP protocol or the ONVIF protocol are not started, the information of each device in the visual view is correspondingly reduced, and the network structure is correspondingly inaccurate.
The detailed operation and operation process of the invention are as follows:
firstly, establishing a database and acquiring ARP protocol data.
After the 'visual Switch' with the function of the invention is powered on and started, firstly, a local Network TOPO hierarchical relation database is created, and the Switch information (including device MAC (device MAC address, MAC for short) and father MAC (MAC of the upper-level device in the TOPO Network hierarchical relation), device IP (device IP address, IP for short), device name (partial device self-contained device name), device name (TOPO private protocol self-defined device name), device type (partial device self-contained Router, Switch, Access Point, Access Controller, IP Camera and other types of information) is inserted, the TOPO private protocol additionally defines the device types of Server, Network Video Recorder, PersoComputer and the like), online state (online/offline state), device sending protocol data port (sending port for short), the parameter records the sending port name of the device sending data to the upper-level device in the Network TOPO hierarchical relation, part of the devices do not have a sending port), and a receiving protocol data port (called a receiving port for short) of the upper-level device. The parameter records a receiving port name of the upper-level device in the network TOPO hierarchical relationship for receiving data sent by the device, and a network hierarchical identifier (hierarchical identifier for short) of the device relative to the root device. This parameter plays a key role in processing of device information identified by ARP in return data received from a downward cascade "visual switch"), and the like, and since the current device is the root device by default, the parent MAC of the device is set to 0000.0000.0000, the transmission port and the reception port are empty, the hierarchical identifier is 0, and other information is the switch own information). The switch receives basic information (including MAC, IP and the like) and receiving ports of each device in the local area network through ARP, and after receiving the information, the device writes the data and information such as father MAC (the switch MAC), online state, level identification (level identification is 1) and the like into a database. When the equipment is off-line and on-line, updating the on-line state of the corresponding equipment in the database, and deleting the data of the off-line equipment after a certain time or manually clearing the data of the off-line equipment.
And II, acquiring protocol data such as LLDP, UPNP, ONVIF and the like.
The visual switch defaults to receive UPNP and ONVIF protocol messages, and receives LLDP messages if the LLDP function of the switch is opened. After ARP information is written into a database of a visual switch, the switch analyzes received protocol data such as LLDP, UPNP, ONVIF and the like to obtain data required by the database according to a corresponding message format, and then updates information such as equipment names, equipment types, sending ports, receiving ports and the like of each equipment in the database according to MAC addresses. The acquired network TOPO has only two-layer relation at this time, namely the switch and equipment which can be identified by the switch through ARP. The current state is after the switch is powered on and started and before the visual request of the WEB page is triggered.
And thirdly, sending a TOPO private protocol data acquisition request by the WEB switch.
Logging in a WEB page of a visual switch, clicking a visual view, and triggering a visual request, wherein the WEB switch has four actions in sequence at the moment: sending TOPO data requests, receiving return data of response requests of all the visual switches, sorting network TOPO hierarchical relation, and returning the network TOPO hierarchical relation data to the WEB page. The method comprises the steps that a switch firstly sends a TOPO private protocol request message to each port of the switch, wherein the message comprises the IP of the equipment and the hop count (the hop count is the number of times of forwarding the request message by a visual switch, the initial value of the hop count is 0, the hop count is added with 1 when the request message is forwarded by the visual switch once, the hop count is used for identifying the network level (each visual switch replies to data of a WEB switch and comprises the hop count, and when each piece of equipment information in the replied data is inserted into a WEB switch database, the hop count is added with 1 to replace a level identifier in non-root equipment information) and a control message forwarding range.
And fourthly, returning TOPO private protocol data by each visual switch.
After the visual switch under each port of the WEB switch receives the request message, the hop value in the request message is increased by 1, the corresponding visual switch forwards the request to all ports except the receiving port, meanwhile, the hop value and the local database information are encapsulated into a UDP message, the device IP in the request information is taken as a target IP, the message is replied to the WEB switch requesting the data in a unicast mode, and the like, and the reply message is sent to each visual switch in the downward cascade. After receiving each reply message, the WEB switch carries out data arrangement.
Fifthly, the WEB switch arranges the TOPO hierarchical relation of the network.
After receiving a reply message, namely data acquired by a TOPO private protocol, a WEB switch inserts or updates information of each device in the message into a local database according to an MAC address, and for a root device in the reply message, a parent MAC covering corresponding device information in an original database is the MAC address of the last device for forwarding the TOPO private protocol request message, and covers and updates information of other devices; and updating the hierarchy identifier of the non-root equipment in the reply message to be that the hop value in the reply message is added with 1, and covering and updating partial equipment information. At this time, a more accurate network hierarchy relationship is formed.
The principle of forming the TOPO hierarchy of the network is as follows:
before the WEB switch is powered on and logs in a WEB page, the two-layer TOPO relationship can be obtained through protocols such as ARP, LLDP, UPNP, ONVIF and the like, at the moment, the network hierarchy relationship is not accurate, and part of equipment can be a third layer or even a fourth layer in an actual network. At this time, network hierarchy relationship optimization needs to be performed in cooperation with data such as MAC, parent MAC, transmitting port, receiving port, hierarchy identifier and the like updated in the "data acquired by TOPO private protocol". The network hierarchy of each device can be preliminarily divided by the parent-child relationship of the MAC and the father MAC (at the moment, the hierarchical positions of the devices identified by the ARP of the upper and lower visual switches can be inaccurate); the sending port and the receiving port can make different levels of parent-child relations explicit to the ports; the hierarchical identification can clarify the network hierarchical position of the equipment which is simultaneously identified by the upper and lower levels of visual switch ARP in the actual network. According to the MAC, the father MAC, the sending port, the receiving port and the level identification which are updated after the data acquired by the TOPO private protocol are received, finally, a basically accurate tree-shaped network TOPO level relation taking ' WEB switch ' as a root ' can be formed.
And sixthly, returning network TOPO hierarchical relation data to the WEB by the WEB switch.
The MAC of the WEB switch is taken as a root, recursive operation is carried out on the equipment information of the database according to the relation between the MAC and a father MAC, the data format obtained by the recursive operation is shown as the upper half part of figure 2, the data obtained by the recursive operation is packaged into a CJSON format, and the data is sent to the WEB through an HTTP protocol. After the WEB page acquires the data, the data is analyzed, and a network TOPO hierarchical relationship diagram is generated according to the 'parent-child relationship' of the MAC and the parent MAC, namely 'reverse recursive arrangement of the data', as shown in the lower half of fig. 2, and is finally displayed on the WEB page.
And seventhly, modifying the information of the network equipment.
If the protocol switches are not started, each network device can only acquire basic device information through the ARP, so that TOPO information is incomplete in a visual view of a WEB page, and the device types of devices which cannot be accurately identified can be manually set. In addition, the device name can be set according to the actual network environment, so that the device can be conveniently checked by workers. The modified equipment type and equipment alternative name are stored in a local database, and are only displayed on a WEB page of the WEB switch when the visual view is refreshed. Therefore, the visual view with the hierarchical relation of all the devices of the local area network and accurate basic information is completely finished.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. compared with the traditional method and device for judging the network structure through an SNMP or LLDP mode, the method and device for visualizing the small and medium local area network structure based on the WEB page display and monitoring of the switch have the advantages of more intuitive network structure, simple function operation, convenience for non-professional management and the like.
2. The invention adopts TOPO private protocol combined with SQLite3 database to arrange basic information of devices in network, so that the whole network structure is integrated in a graph, and local area network devices are conveniently monitored and managed.
The above-described embodiments are intended to be illustrative, and not restrictive, of the invention, and all changes that come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein.

Claims (10)

1. A visualization method for a small and medium-sized local area network structure is characterized by comprising the following steps:
s1: firstly, after a WEB switch in a local area network is powered on and started, a database for storing basic information of local network equipment and TOPO hierarchical relation of each piece of equipment is established, and the information of the WEB switch is stored in the database;
s3: acquiring ARP protocol data, and storing ARP protocol information of each network device to a database;
s4: judging whether other network communication protocols exist, if so, saving the information of each network device acquired by the other network communication protocols, and if not, directly executing the step S5;
s5: sending a TOPO private protocol data acquisition request;
s6: acquiring TOPO private protocol data, and sorting and storing network structure relation information of the TOPO private protocol data into a database;
s7: and the WEB switch sorts and transmits the database to the WEB, and the WEB generates and displays the TOPO view of the network structure to a display interface.
2. The visualization method of the small and medium-sized local area network structure according to claim 1, characterized in that: further comprising step S8: and judging whether the information of the network equipment is modified, if so, storing the modified information to a database, and then displaying the TOPO view of the network structure to a display interface, and if not, displaying the TOPO view of the network structure to the display interface.
3. The visualization method of the small and medium-sized local area network structure according to claim 2, characterized in that: further comprising step S9: and judging whether the equipment is remotely logged in, if so, logging in WEB interfaces of other equipment, and if not, displaying a TOPO view of the network structure to a display interface.
4. A visualization method for small and medium sized local area network structures according to any one of claims 1 to 3, characterized in that: the network equipment in the local area network comprises a visual switch with a TOPO private protocol and a WEB switch capable of displaying a visual view.
5. The visualization method of the small and medium-sized local area network structure according to claim 4, characterized in that: the ARP protocol data comprises IP and MAC address information of online network equipment in the local area network, other network communication protocol data comprises LLDP protocol data, UPNP protocol data and ONVIF protocol data, and the LLDP protocol data comprises MAC, equipment name, port information, management IP and capability value information of the online equipment in the local area network; the UPNP protocol information comprises a device type of the online device; the ONVIF protocol information includes device type information for a particular device.
6. The visualization method of the small and medium-sized local area network structure according to claim 5, characterized in that: in step S6, the TOPO private protocol integrates the acquired protocol data to establish a network hierarchy relationship.
7. The visualization method of the small and medium-sized local area network structure according to claim 6, characterized in that: the ARP protocol data, the LLDP protocol data, the UPNP protocol data and the ONVIF protocol data are acquired by the visual switch, the visual switch establishes a network hierarchy relationship through a TOPO private protocol, and the processing method comprises the following steps:
the visual switch analyzes the received LLDP, UPNP and ONVIF protocol data to obtain data required by a database according to a corresponding message format, then updates information of each network device in the database according to an MAC address, wherein the information comprises a device name, a device type, a sending port and a receiving port, the obtained network hierarchical relationship only has two-layer relationship, namely the switch and the device which can be identified by the switch by ARP, and the current state is after the switch is powered on and started and before a TOPO private protocol data acquisition request is received.
8. The visualization method of the small and medium-sized local area network structure according to claim 7, characterized in that: in step S5, the process of sending the TOPO private protocol data acquisition request includes: logging in a WEB page of the visual switch, clicking the visual view, triggering the visual request, wherein the visual switch is the WEB switch displaying the visual view, and the WEB switch sequentially performs four operation steps: sending a TOPO data request, receiving return data of other visual switches responding to the request, sorting the network TOPO hierarchical relation, and returning the network TOPO hierarchical relation data to the WEB page.
9. The visualization method of the small and medium-sized local area network structure according to claim 8, characterized in that: in step S6, the specific processing method of the WEB switch is:
(1) the WEB switch firstly sends TOPO private protocol request messages to each port of the WEB switch, the messages comprise the IP and hop count of the WEB switch, the initial value of the hop count is 0, the hop count is added with 1 every time the request messages are forwarded by the visual switch, and the hop count is used for identifying a network level and controlling the forwarding range of the messages;
(2) other visual switches return TOPO private protocol data, after the visual switches under the ports of the WEB switch receive the request message, the hop value in the request message is increased by 1, the corresponding visual switches forward the request to all ports except the receiving port, meanwhile, the hop value and local database information are encapsulated into UDP messages, the device IP in the request message is taken as a target IP, the messages are replied to the WEB switch which requests the data in a unicast mode, and by analogy, all visual switches are cascaded downwards to send reply messages, and the WEB switch finishes the data after receiving all reply messages;
(3) the WEB switch organizes the network TOPO hierarchical relationship: after receiving a reply message, namely data acquired by the TOPO private protocol, the WEB switch inserts or updates the information of each device in the message into a local database according to the MAC address, and for a root device in the reply message, a parent MAC covering the corresponding device information in the original database is the MAC address of the last device for forwarding the TOPO private protocol request message, and covers and updates the information of other network devices; and updating the level identifier of the non-root equipment in the reply message to be the hop value in the reply message plus 1, and covering and updating partial equipment information, so that a TOPO view of a tree network structure taking the WEB switch as a root is formed.
10. The medium-small sized local area network structure visualization method according to claim 9, characterized in that: in step S7, the processing procedure of the WEB switch is:
the method comprises the steps of taking an MAC address of the WEB switch as a root, carrying out recursion operation on equipment information of a database according to the relation between the MAC address and a father MAC address, packaging data obtained by recursion into a CJSON format, sending the data to a WEB page through an HTTP (hyper text transport protocol), analyzing the data after the WEB page obtains the data, carrying out reverse recursion arrangement on the data according to the father-son relation between the MAC address and the father MAC address, generating a network TOPO (top of the order) hierarchical relation graph, and finally displaying the network TOPO hierarchical relation graph on the WEB page.
CN202011505329.5A 2020-12-18 2020-12-18 Visualization method for small and medium-sized local area network structure Active CN112737819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011505329.5A CN112737819B (en) 2020-12-18 2020-12-18 Visualization method for small and medium-sized local area network structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011505329.5A CN112737819B (en) 2020-12-18 2020-12-18 Visualization method for small and medium-sized local area network structure

Publications (2)

Publication Number Publication Date
CN112737819A true CN112737819A (en) 2021-04-30
CN112737819B CN112737819B (en) 2023-04-07

Family

ID=75603145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011505329.5A Active CN112737819B (en) 2020-12-18 2020-12-18 Visualization method for small and medium-sized local area network structure

Country Status (1)

Country Link
CN (1) CN112737819B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2371441A (en) * 2000-10-31 2002-07-24 Hewlett Packard Co Mapping computer network topology
WO2007076621A1 (en) * 2005-12-30 2007-07-12 Zte Corporation A method for automatic exchanger topology discovery in ethernet network
CN101094392A (en) * 2007-06-26 2007-12-26 南京联创网络科技有限公司 Method for video monitoring system to implement Topo map of network devices on web
US20170359222A1 (en) * 2016-06-09 2017-12-14 Honeywell International Inc. Automation network topology determination for c&i systems
CN109067569A (en) * 2018-07-20 2018-12-21 杭州安恒信息技术股份有限公司 A kind of industry control network topological structure method for visualizing
CN109150640A (en) * 2018-11-08 2019-01-04 中国电子科技集团公司第二十八研究所 A kind of method for discovering network topology and system based on double layer network agreement
CN111565117A (en) * 2020-04-09 2020-08-21 烽火通信科技股份有限公司 Topology discovery method and system based on SNMP
CN111865684A (en) * 2020-07-17 2020-10-30 国网湖南省电力有限公司 Automatic discovery method for local area network topology

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2371441A (en) * 2000-10-31 2002-07-24 Hewlett Packard Co Mapping computer network topology
WO2007076621A1 (en) * 2005-12-30 2007-07-12 Zte Corporation A method for automatic exchanger topology discovery in ethernet network
CN101094392A (en) * 2007-06-26 2007-12-26 南京联创网络科技有限公司 Method for video monitoring system to implement Topo map of network devices on web
US20170359222A1 (en) * 2016-06-09 2017-12-14 Honeywell International Inc. Automation network topology determination for c&i systems
CN109067569A (en) * 2018-07-20 2018-12-21 杭州安恒信息技术股份有限公司 A kind of industry control network topological structure method for visualizing
CN109150640A (en) * 2018-11-08 2019-01-04 中国电子科技集团公司第二十八研究所 A kind of method for discovering network topology and system based on double layer network agreement
CN111565117A (en) * 2020-04-09 2020-08-21 烽火通信科技股份有限公司 Topology discovery method and system based on SNMP
CN111865684A (en) * 2020-07-17 2020-10-30 国网湖南省电力有限公司 Automatic discovery method for local area network topology

Also Published As

Publication number Publication date
CN112737819B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
US20030225876A1 (en) Method and apparatus for graphically depicting network performance and connectivity
CN108011746B (en) IP-level global Internet topology mapping method based on Traceroute and SNMP protocol
CN108206792B (en) Topological structure discovery method and device of switch
US20150370848A1 (en) System and method for managing data integrity in electronic data storage
EP2451125A1 (en) Method and system for realizing network topology discovery
CN108965036B (en) Method, system, server and storage medium for configuring cross-public network equipment mutual access
CN113242208B (en) Network situation analysis system based on network flow
CN106067862A (en) The construction method of network topology and device
Lin et al. An algorithm for automatic topology discovery of IP networks
US20130042020A1 (en) Quick Network Path Discovery
CN115297007A (en) Construction method and system of network space asset information map for cooperative network
US8321544B2 (en) Method and system for the transfer of communication network administration information
CN113612646B (en) Neighborhood network topology visualization method based on neighbor discovery
CN113055238A (en) Network detection method, platform and computer readable storage medium
CN112737819B (en) Visualization method for small and medium-sized local area network structure
CN111901179A (en) Method and system for managing Internet of things equipment
US8654127B2 (en) Method, device arrangement and computer program product for producing identity graphs for analyzing communication network
TWI741948B (en) Management system for network devices and management method network devices
CN115314392A (en) Automatic network topology generation system and method based on network equipment resource discovery algorithm
CN105282034B (en) ARP/NDP learning system and learning method
CN113300880B (en) Ethernet switch topology generation and drawing method based on Tarjan algorithm
JP5045094B2 (en) Anomaly detection system, anomaly detection server and anomaly detection server program
JP5135422B2 (en) Gateway device
US20230231773A1 (en) Determining an organizational level network topology
JP2012199928A (en) Management system and information processing system

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