CN112583627A - Networking topology structure display method and device - Google Patents
Networking topology structure display method and device Download PDFInfo
- Publication number
- CN112583627A CN112583627A CN201910945500.5A CN201910945500A CN112583627A CN 112583627 A CN112583627 A CN 112583627A CN 201910945500 A CN201910945500 A CN 201910945500A CN 112583627 A CN112583627 A CN 112583627A
- Authority
- CN
- China
- Prior art keywords
- port
- information
- identification information
- equipment
- transmission
- 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
- 230000006855 networking Effects 0.000 title claims abstract description 174
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000005540 biological transmission Effects 0.000 claims abstract description 373
- 238000013461 design Methods 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 9
- 230000000694 effects Effects 0.000 description 8
- 230000009471 action Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012369 In process control Methods 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 210000004544 dc2 Anatomy 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004190 ion pair chromatography Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Images
Classifications
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Small-Scale Networks (AREA)
Abstract
The embodiment of the invention provides a networking topological structure display method and a networking topological structure display device, wherein electronic equipment for displaying the networking topological structure actively sends a query message to equipment in networking, the equipment in the networking responds to the query message, and when any transmission equipment responds to the query message, the fed-back neighbor information comprises port information of each port and identification information of equipment connected with each port corresponding to the port information of each port, namely the neighbor information fed back by the transmission equipment comprises the connection relation of the transmission equipment and other equipment in the networking, so that the networking topological structure can be learned according to the neighbor information of the transmission equipment and the equipment type corresponding to the identification information of each equipment. By utilizing the embodiment of the invention, the design of technical personnel for networking is not needed to be known in advance, but the networking topological structure is learned in real time, so that the networking topological structure can be automatically displayed.
Description
Technical Field
The invention relates to the technical field of networks, in particular to a method and a device for displaying a networking topology structure.
Background
With the continuous development of network technology, networking topological structures of different scenes are more and more complex, and in order to enable the networking topological structures to be more intuitively understood, the networking topological structures need to be displayed. At present, a networking topological structure is usually designed by technicians, and how many transmission devices and how many terminal devices are arranged in a networking are set, so that a networking topological structure diagram can be generated and displayed directly according to the design of the technicians.
Therefore, when the networking topology structure is displayed, the design content of the networking topology by a technician needs to be known in advance, otherwise, the networking topology structure diagram for displaying cannot be generated.
Disclosure of Invention
The embodiment of the invention aims to provide a networking topological structure display method and a networking topological structure display device so as to realize automatic display of a networking topological structure. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for displaying a networking topology, where the method includes:
sending a query message to equipment in networking, wherein the equipment in networking comprises terminal equipment and transmission equipment;
receiving neighbor information fed back by first transmission equipment, wherein the neighbor information comprises port information of each port of the first transmission equipment and identification information of equipment connected with each port and corresponding to the port information of each port, and the first transmission equipment is any transmission equipment in a network;
and determining and displaying the networking topological structure according to the neighbor information and the acquired equipment type corresponding to the mark information of each equipment.
Optionally, the step of determining and displaying a networking topology structure according to the neighbor information and the device type corresponding to the obtained identification information of each device includes:
judging whether the port information of a first port in the neighbor information only corresponds to the identification information of one device, wherein the first port is any one port of the first transmission device;
if not, determining the connection relation between the plurality of devices and the first transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the plurality of devices;
and displaying the connection relation of the plurality of devices and the first transmission device.
Optionally, the step of determining a connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices includes:
if the identification information of the plurality of devices corresponding to the port information of the first port is determined to be the identification information of the terminal device according to the identification information of the plurality of devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the plurality of devices, determining that an unknown transmission device is connected between the first transmission device and the plurality of terminal devices;
the method for displaying the connection relation between the plurality of devices and the first transmission device comprises the following steps:
and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the unknown transmission equipment connected with the plurality of terminal equipment.
Optionally, the step of determining a connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices includes:
if the identification information of the plurality of devices corresponding to the port information of the first port comprises the identification information of at least one transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the obtained device type corresponding to the identification information of each device in the plurality of devices, reading neighbor information of a second transmission device, wherein the second transmission device is any one of the at least one transmission device;
judging whether the intersection of identification information corresponding to port information of a second port and identification information corresponding to port information of a first port in neighbor information of second transmission equipment is empty or not, wherein the identification information of a plurality of pieces of equipment corresponding to the port information of the second port comprises the identification information of the first transmission equipment;
if the intersection is empty, determining that the first transmission equipment and the second transmission equipment are in a direct connection relationship;
the method for displaying the connection relation between the plurality of devices and the first transmission device comprises the following steps:
and displaying the connection relation of the first transmission equipment directly connected with the second transmission equipment.
Optionally, after the step of determining whether an intersection of the identification information corresponding to the port information of the second port and the identification information corresponding to the port information of the first port in the neighbor information of the second transmission device is empty, the method further includes:
if the intersection is not empty, determining that an unknown transmission device is connected between the first transmission device and at least one transmission device;
the method for displaying the connection relation between the plurality of devices and the first transmission device comprises the following steps:
and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the unknown transmission equipment connected with at least one transmission.
Optionally, after the step of determining whether the port information of the first port in the neighbor information corresponds to the identification information of only one device, the method further includes:
if so, determining that the equipment and the first transmission equipment are in a direct connection relationship according to the identification information of the equipment corresponding to the port information of the first port and the equipment type corresponding to the acquired identification information of the equipment;
and displaying the connection relation of the equipment directly connected with the first transmission equipment.
Optionally, the obtaining manner of the device type includes:
and receiving the equipment information fed back by the equipment, wherein the equipment information comprises the equipment type and the identification information.
Optionally, the networking is security networking, and the terminal device comprises a network video recorder and a network camera;
after the step of determining the topology structure of the network according to the neighbor information and the device type corresponding to the obtained identification information of each device, the method further includes:
acquiring channel information of a network video recorder;
determining the connection relation between the network video recorder and the network camera according to the channel information;
if the first network video recorder is connected with the network camera through the network, determining the position of the network camera in a topological structure of the security networking according to the neighbor information, wherein the first network video recorder is any one network video recorder;
the method comprises the following steps of showing a networking topological structure:
and displaying a topological structure of the security networking including the network camera.
Optionally, the method further includes:
receiving a preview request aiming at a first network camera, wherein the first network camera is any network camera;
determining address information of a first network camera according to a topological structure of a security networking;
sending a video acquisition instruction to the first network camera based on the address information of the first network camera so that the first network camera feeds back the shot video;
and receiving the video fed back by the first network camera, and previewing the video.
In a second aspect, an embodiment of the present invention provides a device for displaying a networking topology, where the device includes:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending an inquiry message to devices in networking, and the devices in the networking comprise terminal devices and transmission devices;
the receiving module is used for receiving neighbor information fed back by the first transmission equipment, wherein the neighbor information comprises port information of each port of the first transmission equipment and identification information of equipment connected with each port, which corresponds to the port information of each port, and the first transmission equipment is any transmission equipment in a networking;
and the display module is used for determining and displaying the networking topological structure according to the neighbor information and the equipment type corresponding to the acquired identification information of each equipment.
Optionally, the display module is specifically configured to:
judging whether the port information of a first port in the neighbor information only corresponds to the identification information of one device, wherein the first port is any one port of the first transmission device;
if not, determining the connection relation between the plurality of devices and the first transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the plurality of devices;
and displaying the connection relation of the plurality of devices and the first transmission device.
Optionally, when the display module is configured to determine a connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices, the display module is specifically configured to:
if the identification information of the plurality of devices corresponding to the port information of the first port is determined to be the identification information of the terminal device according to the identification information of the plurality of devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the plurality of devices, determining that an unknown transmission device is connected between the first transmission device and the plurality of terminal devices;
when the display module is used for displaying the connection relationship between the plurality of devices and the first transmission device, the display module is specifically configured to:
and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the unknown transmission equipment connected with the plurality of terminal equipment.
Optionally, when the display module is configured to determine a connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices, the display module is specifically configured to:
if the identification information of the plurality of devices corresponding to the port information of the first port comprises the identification information of at least one transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the obtained device type corresponding to the identification information of each device in the plurality of devices, reading neighbor information of a second transmission device, wherein the second transmission device is any one of the at least one transmission device;
judging whether the intersection of identification information corresponding to port information of a second port and identification information corresponding to port information of a first port in neighbor information of second transmission equipment is empty or not, wherein the identification information of a plurality of pieces of equipment corresponding to the port information of the second port comprises the identification information of the first transmission equipment;
if the intersection is empty, determining that the first transmission equipment and the second transmission equipment are in a direct connection relationship;
when the display module is used for displaying the connection relationship between the plurality of devices and the first transmission device, the display module is specifically configured to:
and displaying the connection relation of the first transmission equipment directly connected with the second transmission equipment.
Optionally, the display module is further configured to:
if the intersection is not empty, determining that an unknown transmission device is connected between the first transmission device and at least one transmission device;
when the display module is used for displaying the connection relationship between the plurality of devices and the first transmission device, the display module is specifically configured to:
and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the unknown transmission equipment connected with at least one transmission.
Optionally, the display module is further configured to:
if the port information of the first port in the neighbor information of the first transmission device only corresponds to the identification information of one device, determining that the device and the first transmission device are in a direct connection relationship according to the identification information of the device corresponding to the port information of the first port and the obtained device type corresponding to the identification information of the device;
and displaying the connection relation of the equipment directly connected with the first transmission equipment.
Optionally, the receiving module is further configured to receive device information fed back by the device, where the device information includes a device type and identification information.
Optionally, the networking is security networking, and the terminal device comprises a network video recorder and a network camera;
the device also includes:
the acquisition module is used for acquiring channel information of the network video recorder;
the determining module is used for determining the connection relation between the network video recorder and the network camera according to the channel information; if the first network video recorder is connected with the network camera through the network, determining the position of the network camera in a topological structure of the security networking according to the neighbor information, wherein the first network video recorder is any one network video recorder;
and the display module is specifically used for displaying a topological structure of the security networking including the network camera.
Optionally, the receiving module is further configured to receive a preview request for a first network camera, where the first network camera is any network camera;
the determining module is further used for determining the address information of the first network camera according to the topological structure of the security networking;
the sending module is further used for sending a video acquisition instruction to the first network camera based on the address information of the first network camera so that the first network camera feeds back the shot video;
the device also includes:
and the previewing module is used for receiving the video fed back by the first network camera and previewing the video.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a display screen, where the memory stores machine executable instructions that can be executed by the processor, and the machine executable instructions are loaded and executed by the processor to implement the method provided in the first aspect of the embodiment of the present invention, and the display screen is used to display a topology structure of a networking.
In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, in which machine-executable instructions are stored, and when the machine-executable instructions are loaded and executed by a processor, the method provided in the first aspect of the embodiment of the present invention is implemented.
According to the method and the device for displaying the networking topological structure, the inquiry message is sent to the equipment in the networking, the neighbor information fed back by any transmission equipment in the networking is received, and the networking topological structure is determined and displayed according to the neighbor information and the equipment type corresponding to the identification information of the equipment in the acquired neighbor information. The electronic device for displaying the networking topological structure actively sends a query message to the devices in the networking, the devices in the networking respond to the query message, and when any transmission device responds to the query message, the fed-back neighbor information comprises port information of each port and identification information of the devices connected with each port corresponding to the port information of each port, namely the neighbor information fed back by the transmission device comprises the connection relation of the transmission device and other devices in the networking, so that the networking topological structure can be learned according to the neighbor information of the transmission device and the device type corresponding to the identification information of each device. By utilizing the embodiment of the invention, the design of technical personnel for networking is not needed to be known in advance, but the networking topological structure is learned in real time, so that the networking topological structure can be automatically displayed.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a networking topology structure displaying method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating the effects of a networking topology according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating the effects of a networking topology according to another embodiment of the present invention;
FIG. 4 is a diagram illustrating the effects of a networking topology according to yet another embodiment of the present invention;
FIG. 5 is a schematic diagram of a security networking topology according to an embodiment of the present invention;
FIG. 6 is a diagram of a security networking topology display effect according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a networking topology display apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to realize automatic display of a networking topology, the embodiment of the invention provides a networking topology display method and device, electronic equipment and a machine-readable storage medium. Next, a description is first given of a networking topology display method provided in an embodiment of the present invention.
The networking topology structure display method provided by the embodiment of the invention can be applied to electronic equipment with an image display function, and the electronic equipment also has core processing capability. The method for displaying the networking topology structure provided by the embodiment of the invention can be realized by at least one of software, hardware circuits and logic circuits arranged in the electronic equipment.
As shown in fig. 1, a method for showing a networking topology provided by an embodiment of the present invention may include the following steps.
S101, sending a query message to equipment in networking, wherein the equipment in networking comprises terminal equipment and transmission equipment.
The networking mentioned in the embodiment of the present invention may be any network environment, such as a security networking, an enterprise network, a campus network, and the like, where an electronic Device for displaying a networking topology actively sends a query message to a Device in the networking when there is a need to display the networking topology (for example, when a manager clicks a display button on an interface of the electronic Device, or when an iVMS 4200 client is installed on the electronic Device and logs in the client), where the query message may be a query message of a general Protocol, such as a TCP (Transmission Control Protocol )/IP (Internet Protocol), or a query message of a private Protocol, such as an SADP (Search Active Device Protocol) query message.
The electronic device may send the query message in a multicast/broadcast manner, etc. If the inquiry message of the private protocol is sent in a multicast mode, the devices supported by the private protocol are added into the multicast group before the inquiry message is sent, so that the devices supported by the private protocol in the networking can receive the inquiry message and respond to the inquiry message after the inquiry message is multicast.
The electronic device may send the query message periodically (for example, every 60s), so that it can be known whether the devices in the networking are added, reduced or replaced in time even if the change of the devices in the networking is dealt with.
The electronic equipment can send query messages to all the equipment in the networking; or sending query messages to the connected devices, and then forwarding the query messages to other devices by the devices; it is also possible to send query messages to certain specific types of devices, which forward the query messages to other devices.
S102, receiving neighbor information fed back by the first transmission device, wherein the neighbor information includes port information of each port of the first transmission device and identification information of devices connected to each port corresponding to the port information of each port, and the first transmission device is any transmission device in the network.
After receiving the query message, a transmission device (e.g., a switch, a router, a wireless bridge, a fiber transceiver, etc.) in the networking collects neighbor information of a local port, that is, which port is connected to a device having which identification information, the neighbor information of the transmission device may be detected by the transmission device, and the identification information may be information capable of uniquely representing one device, such as a Media Access Control (MAC) address, a serial number, and an IP address.
After receiving the query message, the terminal device usually responds to the query message and feeds back device information (such as a device model, a serial number, an MAC address, an IP address, and the like) of the terminal device to the electronic device, the transmission device may intercept information fed back by the transmission device and the terminal device connected to the transmission device, extract identification information from the information, record port information of the intercepted information, store the information locally, and then form a piece of neighbor information by the port information and the corresponding identification information and feed back the neighbor information to the electronic device.
When the terminal device and the transmission device respond to the query message, the terminal device and the transmission device may respond by sending a response message, where the response message carries device information of the terminal device and neighbor information of the transmission device. The neighbor information of the transmission device may be specifically in the form of a neighbor mapping table, where a corresponding relationship between a port and identification information is recorded in the neighbor mapping table, as shown in table 1, a first column of the neighbor mapping table is a port number, a second column is a MAC address, and a third column is a serial number.
TABLE 1
Port(s) | MAC address | Serial number |
1 | 00-11-22-33-44-55 | XXXXXX |
1 | 00-22-33-44-55-66 | YYYYYY |
S103, determining and displaying a networking topological structure according to the neighbor information and the device type corresponding to the acquired identification information of each device.
After the electronic device receives the neighbor information fed back by each transmission device, because the neighbor information represents the corresponding relationship between the port of the transmission device and the identification information of the device connected to the port, the electronic device can know which identification information devices are connected under the port of one transmission device based on the neighbor information, and then can determine what types of devices are connected under the port of one transmission device according to the device types corresponding to the identification information of each device. Therefore, the topological structure of the networking can be determined and displayed.
Optionally, the obtaining manner of the device type may specifically be: and receiving the equipment information fed back by the equipment, wherein the equipment information comprises the equipment type and the identification information.
After receiving the query message, the terminal device responds to the query message and feeds back device information (including device type and identification information) of the terminal device to the electronic device, and after receiving the response of the terminal device, the electronic device can acquire the device type corresponding to the identification information of each device.
Of course, the device information of each device may also be set in advance on the electronic device, or the device information may be reported together with the neighbor information after the transmission device acquires the device information fed back by the terminal device.
By applying the embodiment of the invention, the inquiry message is sent to the equipment in the networking, the neighbor information fed back by any transmission equipment in the networking is received, and the topological structure of the networking is determined and displayed according to the neighbor information and the equipment type corresponding to the identification information of the equipment in the acquired neighbor information. The electronic device for displaying the networking topological structure actively sends a query message to the devices in the networking, the devices in the networking respond to the query message, and when any transmission device responds to the query message, the fed-back neighbor information comprises port information of each port and identification information of the devices connected with each port corresponding to the port information of each port, namely the neighbor information fed back by the transmission device comprises the connection relation of the transmission device and other devices in the networking, so that the networking topological structure can be learned according to the neighbor information of the transmission device and the device type corresponding to the identification information of each device. By utilizing the embodiment of the invention, the design of technical personnel for networking is not needed to be known in advance, but the networking topological structure is learned in real time, so that the networking topological structure can be automatically displayed.
The specific implementation of each step in the example shown in fig. 1 is described in more detail below.
In an implementation manner of the embodiment of the present invention, S103 may be specifically implemented by the following steps:
the method comprises the steps of firstly, judging whether port information of a first port in neighbor information only corresponds to identification information of one device, wherein the first port is any one port of a first transmission device.
And step two, if not, determining the connection relation between the plurality of devices and the first transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the plurality of devices.
And thirdly, displaying the connection relation between the plurality of devices and the first transmission device.
When learning of a networking topology structure is performed, connection relationships between transmission devices and other devices can be learned one by one, taking a first transmission device as an example, if port information of a first port in neighbor information of the first transmission device corresponds to identification information of a plurality of devices, it is indicated that the plurality of devices are connected under the first port, and generally, only one device is connected under one port, and if the port device of the first port corresponds to the identification information of the plurality of devices, it is indicated that tree-shaped connection of the plurality of devices exists under the first port, so that the connection relationships between the plurality of devices and the first transmission device, specifically, which devices are connected under the first port of the first transmission device, need to be determined according to the identification information of the plurality of devices corresponding to the port information of the first port and the obtained device types corresponding to the identification information of each device in the plurality of devices, which in turn is directly connected to the first transmission device.
If one transmission device is a transmission device whose port information corresponds to the identification information of one terminal device, it indicates that the transmission device is directly connected with the terminal device, and if the device identifications of multiple devices corresponding to the port information of the first port of one transmission device include both the identification information of at least one transmission device and the identification information of at least one terminal device, it indicates that the transmission device is a higher-layer transmission device. After the connection relationship between the first transmission device and the plurality of devices is learned, the connection relationship may be displayed.
In an implementation manner of the embodiment of the present invention, the second step may specifically be: if the identification information of the multiple devices corresponding to the port information of the first port is determined to be the identification information of the terminal device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices, it is determined that an unknown transmission device is connected between the first transmission device and the multiple terminal devices.
Correspondingly, the third step may be: and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the unknown transmission equipment connected with the plurality of terminal equipment.
If the identification information of the plurality of devices corresponding to the port information of the first port is identified, it is found that the port information of the first port corresponds to the identification information of the terminal device, and there is no identification information of any transmission device.
When the display is performed, the unknown transmission device can be displayed as a virtual transmission device, and the connection relationship between the first transmission device and the unknown transmission device, and the connection relationship between the unknown transmission device and the plurality of terminal devices can be displayed.
For example, the identification information of the device corresponding to the port 1 in the neighbor information fed back by the transmission device 1 includes: the MAC address of terminal a, the MAC address of terminal B, the MAC address of terminal C and the MAC address of terminal D. Then, it may be determined that an unknown transmission device is connected between the transmission device 1 and the terminal device a, the terminal device B, the terminal device C, and the terminal device D, and the connection relationship is as follows: the transmission device 1 is connected with unknown transmission devices, the unknown transmission devices are connected with the terminal device a, the terminal device B, the terminal device C and the terminal device D, and the corresponding display effect is shown in fig. 2.
In another implementation manner of the embodiment of the present invention, the second step may specifically be: if the identification information of the plurality of devices corresponding to the port information of the first port comprises the identification information of at least one transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the obtained device type corresponding to the identification information of each device in the plurality of devices, reading neighbor information of a second transmission device, wherein the second transmission device is any one of the at least one transmission device; judging whether the intersection of identification information corresponding to port information of a second port and identification information corresponding to port information of a first port in neighbor information of second transmission equipment is empty or not, wherein the identification information of a plurality of pieces of equipment corresponding to the port information of the second port comprises the identification information of the first transmission equipment; and if the intersection is empty, determining that the first transmission equipment and the second transmission equipment are in a direct connection relation.
Correspondingly, the third step may be: and displaying the connection relation of the first transmission equipment directly connected with the second transmission equipment.
If the identification information of the multiple devices corresponding to the port information of the first port is identified, and the identification information of the multiple devices corresponding to the port information of the first port is found to include the identification information of at least one transmission device, it is required to determine whether an intersection of the identification information corresponding to the port information of the second port in the neighbor information of a second transmission device in the at least one transmission device and the identification information corresponding to the port information of the first port is empty, if the intersection is empty, it is indicated that no other device is connected between the first transmission device and the second transmission device, the first transmission device and the second transmission device are directly connected, the identification information of the multiple devices corresponding to the port information of the second port includes the identification information of the first transmission device, the port information of the first port corresponds to the identification information of the second transmission device, and the port information of the second port corresponds to the identification information of the first transmission device, and then, whether the first transmission equipment is directly connected with the second transmission equipment or not can be judged by judging whether the intersection of the identification information corresponding to the port information of the second port and the identification information corresponding to the port information of the first port is empty or not.
When the display is performed, the directly connected connection relationship between the first transmission device and the second transmission device can be displayed.
For example, the identification information of the device corresponding to the port 1 in the neighbor information fed back by the transmission device 1 includes: the MAC address of the transmission device 2, the MAC address of the transmission device 3, the MAC address of the terminal device a, the MAC address of the terminal device B, the MAC address of the terminal device C and the MAC address of the terminal device D. The identification information of the device corresponding to the port 1 in the neighbor information fed back by the transmission device 2 includes: the MAC address of the transmission device 1 and the identification information of the device corresponding to the port 2 include: the MAC address of the transmission device 3, the MAC address of terminal device a, the MAC address of terminal device B, the MAC address of terminal device C and the MAC address of terminal device D. The identification information of the device corresponding to the port 1 in the neighbor information fed back by the transmission device 3 includes: the MAC address of the transmission device 1 and the MAC address of the transmission device 2, the identification information of the device corresponding to the port 2 is the MAC address of the terminal device a, the identification information of the device corresponding to the port 3 is the MAC address of the terminal device B, the identification information of the device corresponding to the port 4 is the MAC address of the terminal device C, and the identification information of the device corresponding to the port 5 is the MAC address of the terminal device D.
By comparison, the intersection of the identification information of the device corresponding to the port 1 in the neighbor information of the transmission device 1 and the identification information of the device corresponding to the port 1 in the neighbor information of the transmission device 2 is empty, and the intersection of the identification information of the device corresponding to the port 2 in the neighbor information of the transmission device 2 and the identification information of the device corresponding to the port 1 in the neighbor information of the transmission device 3 is empty. Therefore, it can be determined that the transmission device 1 and the transmission device 2 are directly connected, and the transmission device 2 and the transmission device 3 are directly connected, and the ports 2, 3, 4, and 5 in the transmission device 3 correspond to only the identification information of one terminal device, so that the transmission device 3 and the terminal device A, B, C, D are directly connected, and the corresponding display effect is as shown in fig. 3.
In another implementation manner of the embodiment of the present invention, the second step may specifically be: if the identification information of the plurality of devices corresponding to the port information of the first port comprises the identification information of at least one transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the obtained device type corresponding to the identification information of each device in the plurality of devices, reading neighbor information of a second transmission device, wherein the second transmission device is any one of the at least one transmission device; judging whether the intersection of identification information corresponding to port information of a second port and identification information corresponding to port information of a first port in neighbor information of second transmission equipment is empty or not, wherein the identification information of a plurality of pieces of equipment corresponding to the port information of the second port comprises the identification information of the first transmission equipment; and if the intersection is not empty, determining that an unknown transmission device is connected between the first transmission device and at least one transmission device.
Correspondingly, the third step may be: and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the unknown transmission equipment connected with at least one transmission.
If the identification information of the multiple devices corresponding to the port information of the first port is identified, and the identification information of the multiple devices corresponding to the port information of the first port is found to include the identification information of at least one transmission device, it is necessary to determine whether an intersection of the identification information corresponding to the port information of the second port in the neighbor information of the second transmission device in the at least one transmission device and the identification information corresponding to the port information of the first port is empty, and if the intersection is not empty, it is determined that the first transmission device and the second transmission device are not directly connected, and other unknown transmission devices are also connected.
When the display is performed, the unknown transmission device may be displayed as a virtual transmission device, and the connection relationship between the first transmission device and the unknown transmission device, and between the unknown transmission device and at least one transmission device may be displayed.
For example, the identification information of the device corresponding to the port 1 in the neighbor information fed back by the transmission device 1 includes: the MAC address of the transmission device 2, the MAC address of the transmission device 3, the MAC address of the terminal device a, the MAC address of the terminal device B, the MAC address of the terminal device C and the MAC address of the terminal device D. The identification information of the device corresponding to the port 2 in the neighbor information fed back by the transmission device 2 includes: the MAC address of the transmission device 3, the MAC address of terminal device a, the MAC address of terminal device B, the MAC address of terminal device C and the MAC address of terminal device D. In the neighbor information fed back by the transmission device 3, the identification information of the device corresponding to the port 1 is the MAC address of the transmission device 2, the identification information of the device corresponding to the port 2 is the MAC address of the terminal device a, the identification information of the device corresponding to the port 3 is the MAC address of the terminal device B, the identification information of the device corresponding to the port 4 is the MAC address of the terminal device C, and the identification information of the device corresponding to the port 5 is the MAC address of the terminal device D.
By comparison, the intersection of the identification information of the devices corresponding to all ports in the neighbor information of the transmission device 1, the identification information of the devices corresponding to all ports in the neighbor information of the transmission device 2, and the identification information of the devices corresponding to all ports in the neighbor information of the transmission device 3 is not empty. And the intersection of the identification information of the device corresponding to the port 2 in the neighbor information of the transmission device 2 and the identification information of the device corresponding to the port 1 in the neighbor information of the transmission device 3 is empty, so that it can be determined that the transmission device 2 is directly connected with the transmission device 3, an unknown transmission device is connected between the transmission device 1 and the transmission device 2, and the ports 2, 3, 4, and 5 in the transmission device 3 are respectively only the identification information of one terminal device, so that the transmission device 3 is directly connected with the terminal device A, B, C, D, and the corresponding display effect is as shown in fig. 4.
In another implementation manner of the embodiment of the present invention, after the first step, the method provided in the embodiment of the present invention may further perform: if the port information of the first port in the neighbor information of the first transmission device only corresponds to the identification information of one device, determining that the device and the first transmission device are in a direct connection relationship according to the identification information of the device corresponding to the port information of the first port and the obtained device type corresponding to the identification information of the device; and displaying the connection relation of the equipment directly connected with the first transmission equipment.
Since generally, only one port of one transmission device is connected to one device, if port information of a first port in neighbor information of a first transmission device only corresponds to identification information of the first device, it is indicated that the first transmission device is directly connected to one device, and based on identification information of a device corresponding to the port information of the first port and a device type corresponding to the acquired identification information of the device, it is possible to determine which type of device the first transmission device is specifically connected to.
In a specific application scenario of the embodiment of the invention, the networking can be security networking, and the terminal device comprises a network video recorder and a network camera. In the security networking, the terminal equipment can also be security equipment such as an entrance guard, an alarm host, a barrier gate, a decoder and the like.
For the situation that the terminal device includes the network hard disk recorder and the network camera, after determining the networking topology, the method provided by the embodiment of the invention can further execute: acquiring channel information of a network video recorder; determining the connection relation between the network video recorder and the network camera according to the channel information; and if the first network video recorder is connected with the network camera through the network, determining the position of the network camera in the topological structure of the security networking according to the neighbor information, wherein the first network video recorder is any network video recorder.
Correspondingly, a topological structure of the security networking including the network camera is displayed.
In a security networking, a terminal device is mainly a Network Video Recorder (NVR), and the NVR generally reserves ports with numbers of 4, 8, 16, etc. for directly connecting IPCs (IP cameras), such as Network cameras iii and iv shown in fig. 5, where the Network of the device is isolated from the outside, that is, other devices cannot access the Network cameras iii and iv through the Network.
The NVR can manage the IPC, the IPC managed by the NVR can be directly connected and can be loaded to the NVR through a network, the electronic device provided by the embodiment of the invention can directly log in the NVR to acquire channel information of the NVR, and according to the acquired channel information, whether the IPC is directly connected to a port of the NVR or is connected through the network can be determined. In the scenario of security networking, the display effect of the security networking topology is as shown in fig. 6.
Optionally, the method provided in the embodiment of the present invention may further perform: receiving a preview request aiming at a first network camera, wherein the first network camera is any network camera; determining address information of a first network camera according to a topological structure of a security networking; sending a video acquisition instruction to the first network camera based on the address information of the first network camera so that the first network camera feeds back the shot video; and receiving the video fed back by the first network camera, and previewing the video.
In the embodiment of the invention, the electronic equipment can also provide an IPC (Internet protocol Camera) preview function, if a preview request for a certain network camera exists, the address information of the network camera can be determined according to the topological structure of the security networking, for example, the position in the topological structure of the security networking is determined, a video acquisition instruction is sent to the network camera based on the address information, the network camera feeds back a locally shot video to the electronic equipment after receiving the video acquisition instruction, and the electronic equipment can preview the video after receiving the video.
Corresponding to the foregoing method embodiment, an embodiment of the present invention provides a device for displaying a networking topology, and as shown in fig. 7, the device may include:
the sending module 710 is configured to send an inquiry packet to a device in a network, where the device in the network includes a terminal device and a transmission device.
The receiving module 720 is configured to receive neighbor information fed back by the first transmission device, where the neighbor information includes port information of each port of the first transmission device and identification information of devices connected to each port corresponding to the port information of each port, and the first transmission device is any transmission device in a network.
The display module 730 is configured to determine and display a networking topology structure according to the neighbor information and the device type corresponding to the obtained identification information of each device.
Optionally, the display module 730 may be specifically configured to: judging whether the port information of a first port in the neighbor information only corresponds to the identification information of one device, wherein the first port is any one port of the first transmission device; if not, determining the connection relation between the plurality of devices and the first transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the plurality of devices; and displaying the connection relation of the plurality of devices and the first transmission device.
Optionally, when the presentation module 730 is configured to determine the connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices, specifically, the presentation module may be configured to: if the identification information of the multiple devices corresponding to the port information of the first port is determined to be the identification information of the terminal device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices, it is determined that an unknown transmission device is connected between the first transmission device and the multiple terminal devices. When the displaying module 730 is used for displaying the connection relationship between the multiple devices and the first transmission device, the displaying module may be specifically used for: and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the unknown transmission equipment connected with the plurality of terminal equipment.
Optionally, when the presentation module 730 is configured to determine the connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices, specifically, the presentation module may be configured to: if the identification information of the plurality of devices corresponding to the port information of the first port comprises the identification information of at least one transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the obtained device type corresponding to the identification information of each device in the plurality of devices, reading neighbor information of a second transmission device, wherein the second transmission device is any one of the at least one transmission device; judging whether the intersection of identification information corresponding to port information of a second port and identification information corresponding to port information of a first port in neighbor information of second transmission equipment is empty or not, wherein the identification information of a plurality of pieces of equipment corresponding to the port information of the second port comprises the identification information of the first transmission equipment; and if the intersection is empty, determining that the first transmission equipment and the second transmission equipment are in a direct connection relation. When the displaying module 730 is used for displaying the connection relationship between the multiple devices and the first transmission device, it is specifically configured to: and displaying the connection relation of the first transmission equipment directly connected with the second transmission equipment.
Optionally, the display module 730 may further be configured to: and if the intersection is not empty, determining that an unknown transmission device is connected between the first transmission device and at least one transmission device. When the displaying module 730 is used for displaying the connection relationship between the multiple devices and the first transmission device, the displaying module may be specifically used for: and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the unknown transmission equipment connected with at least one transmission.
Optionally, the display module 730 may further be configured to: if the port information of the first port in the neighbor information of the first transmission device only corresponds to the identification information of one device, determining that the device and the first transmission device are in a direct connection relationship according to the identification information of the device corresponding to the port information of the first port and the obtained device type corresponding to the identification information of the device; and displaying the connection relation of the equipment directly connected with the first transmission equipment.
Optionally, the receiving module 720 may be further configured to receive device information fed back by the device, where the device information includes a device type and identification information.
Optionally, the networking is security networking, and the terminal device includes a network video recorder and a network camera. The apparatus may further include: the acquisition module is used for acquiring channel information of the network video recorder; the determining module is used for determining the connection relation between the network video recorder and the network camera according to the channel information; and if the first network video recorder is connected with the network camera through the network, determining the position of the network camera in the topological structure of the security networking according to the neighbor information, wherein the first network video recorder is any network video recorder. The display module 730 may be specifically configured to display a topology structure of a security networking including a webcam.
Optionally, the receiving module 720 may be further configured to receive a preview request for a first network camera, where the first network camera is any network camera. The determining module can be further used for determining the address information of the first network camera according to the topological structure of the security networking. The sending module 710 may be further configured to send a video acquisition instruction to the first network camera based on the address information of the first network camera, so that the first network camera feeds back the captured video. The apparatus may further include: and the previewing module is used for receiving the video fed back by the first network camera and previewing the video.
By applying the embodiment of the invention, the inquiry message is sent to the equipment in the networking, the neighbor information fed back by any transmission equipment in the networking is received, and the topological structure of the networking is determined and displayed according to the neighbor information and the equipment type corresponding to the identification information of the equipment in the acquired neighbor information. The electronic device for displaying the networking topological structure actively sends a query message to the devices in the networking, the devices in the networking respond to the query message, and when any transmission device responds to the query message, the fed-back neighbor information comprises port information of each port and identification information of the devices connected with each port corresponding to the port information of each port, namely the neighbor information fed back by the transmission device comprises the connection relation of the transmission device and other devices in the networking, so that the networking topological structure can be learned according to the neighbor information of the transmission device and the device type corresponding to the identification information of each device. By utilizing the embodiment of the invention, the design of technical personnel for networking is not needed to be known in advance, but the networking topological structure is learned in real time, so that the networking topological structure can be automatically displayed.
An electronic device according to an embodiment of the present invention is provided, as shown in fig. 8, and includes a processor 801, a memory 802, and a display screen 803, where the memory 802 stores machine executable instructions that can be executed by the processor 801, the machine executable instructions are loaded and executed by the processor 801 to implement the networking topology displaying method provided in the embodiment of the present invention, and the display screen 803 is used to display a networking topology.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Data transmission can be performed among the memory 802, the processor 801 and the display 803 through a wired connection or a wireless connection, and communication can be performed between the electronic device and other devices through a wired communication interface or a wireless communication interface. Fig. 8 shows an example of data transmission via a bus, and the connection method is not limited to a specific connection method.
In the embodiment of the present invention, the processor can realize that: the method comprises the steps of sending a query message to equipment in the networking, receiving neighbor information fed back by any transmission equipment in the networking, and determining and displaying a networking topological structure according to the neighbor information and an equipment type corresponding to equipment identification information in the obtained neighbor information. The electronic device for displaying the networking topological structure actively sends a query message to the devices in the networking, the devices in the networking respond to the query message, and when any transmission device responds to the query message, the fed-back neighbor information comprises port information of each port and identification information of the devices connected with each port corresponding to the port information of each port, namely the neighbor information fed back by the transmission device comprises the connection relation of the transmission device and other devices in the networking, so that the networking topological structure can be learned according to the neighbor information of the transmission device and the device type corresponding to the identification information of each device. By utilizing the embodiment of the invention, the design of technical personnel for networking is not needed to be known in advance, but the networking topological structure is learned in real time, so that the networking topological structure can be automatically displayed.
In addition, an embodiment of the present invention provides a machine-readable storage medium, where machine-executable instructions are stored in the machine-readable storage medium, and when the machine-executable instructions are loaded and executed by a processor, the networking topology display method provided in the embodiment of the present invention is implemented.
In the embodiment of the present invention, the machine-readable storage medium stores machine-executable instructions for executing the networking topology display method provided in the embodiment of the present invention when running, so that the following can be implemented: the method comprises the steps of sending a query message to equipment in the networking, receiving neighbor information fed back by any transmission equipment in the networking, and determining and displaying a networking topological structure according to the neighbor information and an equipment type corresponding to equipment identification information in the obtained neighbor information. The electronic device for displaying the networking topological structure actively sends a query message to the devices in the networking, the devices in the networking respond to the query message, and when any transmission device responds to the query message, the fed-back neighbor information comprises port information of each port and identification information of the devices connected with each port corresponding to the port information of each port, namely the neighbor information fed back by the transmission device comprises the connection relation of the transmission device and other devices in the networking, so that the networking topological structure can be learned according to the neighbor information of the transmission device and the device type corresponding to the identification information of each device. By utilizing the embodiment of the invention, the design of technical personnel for networking is not needed to be known in advance, but the networking topological structure is learned in real time, so that the networking topological structure can be automatically displayed.
For the embodiments of the electronic device and the machine-readable storage medium, since the contents of the related methods are substantially similar to those of the foregoing embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the embodiments of the methods.
It is noted that, herein, relational terms such as first and second, and the like may be 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, and the machine-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to the description, reference may be made to some portions of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.
Claims (20)
1. A networking topology structure display method is characterized by comprising the following steps:
sending a query message to equipment in networking, wherein the equipment in networking comprises terminal equipment and transmission equipment;
receiving neighbor information fed back by first transmission equipment, wherein the neighbor information comprises port information of each port of the first transmission equipment and identification information of equipment connected with each port, which corresponds to the port information of each port, and the first transmission equipment is any transmission equipment in the network;
and determining and displaying the networking topological structure according to the neighbor information and the equipment type corresponding to the acquired identification information of each equipment.
2. The method according to claim 1, wherein the determining and displaying the networking topology structure according to the neighbor information and the device type corresponding to the acquired identification information of each device comprises:
judging whether the port information of a first port in the neighbor information only corresponds to the identification information of one device, wherein the first port is any one port of the first transmission device;
if not, determining the connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices;
and displaying the connection relation between the plurality of devices and the first transmission device.
3. The method according to claim 2, wherein the determining, according to the identification information of the multiple devices corresponding to the port information of the first port and the obtained device type corresponding to the identification information of each device in the multiple devices, the connection relationship between the multiple devices and the first transmission device includes:
if the identification information of the plurality of devices corresponding to the port information of the first port is determined to be the identification information of the terminal device according to the identification information of the plurality of devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the plurality of devices, determining that an unknown transmission device is connected between the first transmission device and the plurality of terminal devices;
the displaying the connection relationship between the plurality of devices and the first transmission device includes:
and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the connection relation of the unknown transmission equipment connected with the plurality of terminal equipment.
4. The method according to claim 2, wherein the determining, according to the identification information of the multiple devices corresponding to the port information of the first port and the obtained device type corresponding to the identification information of each device in the multiple devices, the connection relationship between the multiple devices and the first transmission device includes:
if the identification information of the plurality of devices corresponding to the port information of the first port includes the identification information of at least one transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the acquired device type corresponding to the identification information of each device in the plurality of devices, reading neighbor information of a second transmission device, wherein the second transmission device is any one transmission device in the at least one transmission device;
judging whether the intersection of identification information corresponding to port information of a second port in neighbor information of the second transmission equipment and identification information corresponding to port information of the first port is empty or not, wherein the identification information of a plurality of pieces of equipment corresponding to the port information of the second port comprises the identification information of the first transmission equipment;
if the intersection is empty, determining that the first transmission equipment and the second transmission equipment are in a direct connection relationship;
the displaying the connection relationship between the plurality of devices and the first transmission device includes:
and displaying the connection relation of the first transmission equipment directly connected with the second transmission equipment.
5. The method according to claim 4, wherein after the determining whether an intersection of the identification information corresponding to the port information of the second port and the identification information corresponding to the port information of the first port in the neighbor information of the second transmission device is empty, the method further comprises:
if the intersection is not empty, determining that an unknown transmission device is connected between the first transmission device and the at least one transmission device;
the displaying the connection relationship between the plurality of devices and the first transmission device includes:
and displaying the connection relation between the first transmission equipment and the unknown transmission equipment and between the unknown transmission equipment and the at least one transmission.
6. The method according to claim 2, wherein after the determining whether the port information of the first port in the neighbor information corresponds to the identification information of only one device, the method further comprises:
if so, determining that the equipment and the first transmission equipment are in a direct connection relationship according to the identification information of the equipment corresponding to the port information of the first port and the equipment type corresponding to the acquired identification information of the equipment;
and displaying the connection relation of the equipment directly connected with the first transmission equipment.
7. The method according to any one of claims 1-6, wherein the obtaining of the device type comprises:
and receiving equipment information fed back by the equipment, wherein the equipment information comprises equipment type and identification information.
8. The method of claim 1, wherein the networking is security networking, and the terminal device comprises a network video recorder and a network camera;
after determining the topology structure of the network according to the neighbor information and the device type corresponding to the obtained identification information of each device, the method further includes:
acquiring channel information of a network video recorder;
determining the connection relation between the network video recorder and the network camera according to the channel information;
if the first network video recorder is connected with the network camera through the network, determining the position of the network camera in the topological structure of the security networking according to the neighbor information, wherein the first network video recorder is any network video recorder;
the displaying of the networking topology structure comprises:
and displaying the topological structure of the security networking containing the network camera.
9. The method of claim 8, further comprising:
receiving a preview request for a first network camera, wherein the first network camera is any network camera;
determining address information of the first network camera according to the topological structure of the security networking;
sending a video acquisition instruction to the first network camera based on the address information of the first network camera so that the first network camera feeds back the shot video;
and receiving the video fed back by the first network camera, and previewing the video.
10. A networking topology presentation apparatus, said apparatus comprising:
the device comprises a sending module, a receiving module and a sending module, wherein the sending module is used for sending a query message to devices in networking, and the devices in the networking comprise terminal devices and transmission devices;
a receiving module, configured to receive neighbor information fed back by a first transmission device, where the neighbor information includes port information of each port of the first transmission device and identification information of a device connected to each port, where the port information of each port corresponds to the identification information of the device connected to each port, and the first transmission device is any transmission device in the network;
and the display module is used for determining and displaying the networking topological structure according to the neighbor information and the equipment type corresponding to the acquired identification information of each equipment.
11. The device of claim 10, wherein the display module is specifically configured to:
judging whether the port information of a first port in the neighbor information only corresponds to the identification information of one device, wherein the first port is any one port of the first transmission device;
if not, determining the connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the multiple devices;
and displaying the connection relation between the plurality of devices and the first transmission device.
12. The apparatus according to claim 11, wherein the presentation module, when configured to determine the connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the acquired identification information of each of the multiple devices, is specifically configured to:
if the identification information of the plurality of devices corresponding to the port information of the first port is determined to be the identification information of the terminal device according to the identification information of the plurality of devices corresponding to the port information of the first port and the device type corresponding to the identification information of each device in the plurality of devices, determining that an unknown transmission device is connected between the first transmission device and the plurality of terminal devices;
when the display module is configured to display the connection relationship between the multiple devices and the first transmission device, the display module is specifically configured to:
and displaying the connection relation of the first transmission equipment connected with the unknown transmission equipment and the connection relation of the unknown transmission equipment connected with the plurality of terminal equipment.
13. The apparatus according to claim 11, wherein the presentation module, when configured to determine the connection relationship between the multiple devices and the first transmission device according to the identification information of the multiple devices corresponding to the port information of the first port and the device type corresponding to the acquired identification information of each of the multiple devices, is specifically configured to:
if the identification information of the plurality of devices corresponding to the port information of the first port includes the identification information of at least one transmission device according to the identification information of the plurality of devices corresponding to the port information of the first port and the acquired device type corresponding to the identification information of each device in the plurality of devices, reading neighbor information of a second transmission device, wherein the second transmission device is any one transmission device in the at least one transmission device;
judging whether the intersection of identification information corresponding to port information of a second port in neighbor information of the second transmission equipment and identification information corresponding to port information of the first port is empty or not, wherein the identification information of a plurality of pieces of equipment corresponding to the port information of the second port comprises the identification information of the first transmission equipment;
if the intersection is empty, determining that the first transmission equipment and the second transmission equipment are in a direct connection relationship;
when the display module is configured to display the connection relationship between the multiple devices and the first transmission device, the display module is specifically configured to:
and displaying the connection relation of the first transmission equipment directly connected with the second transmission equipment.
14. The apparatus of claim 13, wherein the display module is further configured to:
if the intersection is not empty, determining that an unknown transmission device is connected between the first transmission device and the at least one transmission device;
when the display module is configured to display the connection relationship between the multiple devices and the first transmission device, the display module is specifically configured to:
and displaying the connection relation between the first transmission equipment and the unknown transmission equipment and between the unknown transmission equipment and the at least one transmission.
15. The apparatus of claim 11, wherein the display module is further configured to:
if the port information of the first port in the neighbor information of the first transmission device only corresponds to the identification information of one device, determining that the one device and the first transmission device are in a direct connection relationship according to the identification information of the one device corresponding to the port information of the first port and the obtained device type corresponding to the identification information of the one device;
and displaying the connection relation of the equipment directly connected with the first transmission equipment.
16. The apparatus according to any one of claims 10 to 15, wherein the receiving module is further configured to receive device information fed back by a device, where the device information includes a device type and identification information.
17. The device of claim 10, wherein the networking is security networking, and the terminal device comprises a network video recorder and a network camera;
the device further comprises:
the acquisition module is used for acquiring channel information of the network video recorder;
the determining module is used for determining the connection relation between the network video recorder and the network camera according to the channel information; if the first network video recorder is connected with the network camera through the network, determining the position of the network camera in the topological structure of the security networking according to the neighbor information, wherein the first network video recorder is any network video recorder;
the display module is specifically used for displaying the topological structure of the security networking including the network camera.
18. The apparatus of claim 17, wherein the receiving module is further configured to receive a preview request for a first webcam, and the first webcam is any webcam;
the determining module is further configured to determine address information of the first network camera according to the topological structure of the security networking;
the sending module is further configured to send a video acquisition instruction to the first network camera based on the address information of the first network camera, so that the first network camera feeds back a shot video;
the device further comprises:
and the previewing module is used for receiving the video fed back by the first network camera and previewing the video.
19. An electronic device comprising a processor, a memory and a display, wherein the memory stores machine executable instructions executable by the processor, the machine executable instructions being loaded and executed by the processor to implement the method of any one of claims 1 to 9, and the display is configured to present a topology of the network.
20. A machine-readable storage medium having stored therein machine-executable instructions which, when loaded and executed by a processor, implement the method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910945500.5A CN112583627A (en) | 2019-09-30 | 2019-09-30 | Networking topology structure display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910945500.5A CN112583627A (en) | 2019-09-30 | 2019-09-30 | Networking topology structure display method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112583627A true CN112583627A (en) | 2021-03-30 |
Family
ID=75116903
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910945500.5A Pending CN112583627A (en) | 2019-09-30 | 2019-09-30 | Networking topology structure display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112583627A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023011047A1 (en) * | 2021-08-03 | 2023-02-09 | 华为技术有限公司 | Processing method and apparatus |
CN115766466A (en) * | 2022-11-11 | 2023-03-07 | 西安诺瓦星云科技股份有限公司 | Topological information generation method, system and device of LED display control system |
CN116398104A (en) * | 2023-03-31 | 2023-07-07 | 三一能源装备有限公司 | Determination method, device, management system and medium of network form of fracturing unit |
EP4443834A4 (en) * | 2021-12-28 | 2025-04-02 | Huawei Technologies Co., Ltd. | NETWORK SYSTEM, NETWORK MESSAGE PROCESSING METHOD AND APPARATUS, AND STORAGE MEDIUM |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1756189A (en) * | 2004-09-30 | 2006-04-05 | 北京航空航天大学 | SNMP-based IP Network Topology Discovery Method |
WO2011150757A1 (en) * | 2010-10-27 | 2011-12-08 | 华为技术有限公司 | Method and gateway for remotely managing sensor network topology |
CN103532741A (en) * | 2013-09-27 | 2014-01-22 | 瑞斯康达科技发展股份有限公司 | Access level network topology management method and system |
CN103765835A (en) * | 2011-08-30 | 2014-04-30 | 高通股份有限公司 | Topology discovery in a hybrid network |
CN107124297A (en) * | 2017-03-31 | 2017-09-01 | 广州九乐维信息科技有限公司 | SNMP method for discovering network topology and device based on zabbix |
CN107733713A (en) * | 2017-10-18 | 2018-02-23 | 北京德塔精要信息技术有限公司 | The acquisition methods of network topology, system, equipment and storage medium in hybrid network |
-
2019
- 2019-09-30 CN CN201910945500.5A patent/CN112583627A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1756189A (en) * | 2004-09-30 | 2006-04-05 | 北京航空航天大学 | SNMP-based IP Network Topology Discovery Method |
WO2011150757A1 (en) * | 2010-10-27 | 2011-12-08 | 华为技术有限公司 | Method and gateway for remotely managing sensor network topology |
CN103765835A (en) * | 2011-08-30 | 2014-04-30 | 高通股份有限公司 | Topology discovery in a hybrid network |
CN103532741A (en) * | 2013-09-27 | 2014-01-22 | 瑞斯康达科技发展股份有限公司 | Access level network topology management method and system |
CN107124297A (en) * | 2017-03-31 | 2017-09-01 | 广州九乐维信息科技有限公司 | SNMP method for discovering network topology and device based on zabbix |
CN107733713A (en) * | 2017-10-18 | 2018-02-23 | 北京德塔精要信息技术有限公司 | The acquisition methods of network topology, system, equipment and storage medium in hybrid network |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023011047A1 (en) * | 2021-08-03 | 2023-02-09 | 华为技术有限公司 | Processing method and apparatus |
EP4443834A4 (en) * | 2021-12-28 | 2025-04-02 | Huawei Technologies Co., Ltd. | NETWORK SYSTEM, NETWORK MESSAGE PROCESSING METHOD AND APPARATUS, AND STORAGE MEDIUM |
CN115766466A (en) * | 2022-11-11 | 2023-03-07 | 西安诺瓦星云科技股份有限公司 | Topological information generation method, system and device of LED display control system |
CN115766466B (en) * | 2022-11-11 | 2025-04-08 | 西安诺瓦星云科技股份有限公司 | Topology information generation method, system and device for LED display control system |
CN116398104A (en) * | 2023-03-31 | 2023-07-07 | 三一能源装备有限公司 | Determination method, device, management system and medium of network form of fracturing unit |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112583627A (en) | Networking topology structure display method and device | |
CN110493366B (en) | Method and device for adding access point into network management | |
US11336613B2 (en) | Systems, methods, and media for controlling traffic to internet of things devices | |
Ammar et al. | Network-protocol-based iot device identification | |
CN111447089B (en) | Terminal asset identification method and device and computer readable storage medium | |
CN108055455B (en) | Privacy protection method and device for home monitoring and computer readable storage medium | |
CN111083176B (en) | A monitoring camera cloud adaptive online method and device | |
CN104113443A (en) | Network equipment detection method, device and cloud detection system | |
US9602402B2 (en) | Method and apparatus for managing device context using an IP address in a communication system | |
CN108259215A (en) | A kind of device management method and device | |
US20070274274A1 (en) | Open wireless access point detection and identification | |
US20130042020A1 (en) | Quick Network Path Discovery | |
CN114629725A (en) | User domain dumb terminal management method, device, system and storage medium | |
CN112532714B (en) | Data processing method, processing device, server and storage medium | |
US9992664B2 (en) | Determining network connection structure of target area | |
CN116719868A (en) | Network asset identification method, device and equipment | |
CN111064798A (en) | Node network access method, device, client node and storage medium | |
CN109257560B (en) | Automatic video recording plan generation method, device and system | |
CN107105072B (en) | Method and device for creating ARP (Address resolution protocol) table entry | |
CN106789655B (en) | Method and device for sending route announcement message | |
CN111010362A (en) | Method and device for monitoring abnormal host | |
CN108449562A (en) | A kind of method and device for adding web camera in network hard disk video recorder | |
US8935387B2 (en) | Information processing device, address duplication handling method, and computer-readable non-transitory recording medium | |
CN111327716B (en) | Service interaction method and device | |
CN112583659A (en) | Method and device for detecting network state of video network, terminal equipment and storage medium |
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: 20210330 |
|
RJ01 | Rejection of invention patent application after publication |