Nothing Special   »   [go: up one dir, main page]

CN114844821B - Network automatic discovery method, device, equipment and storage medium - Google Patents

Network automatic discovery method, device, equipment and storage medium Download PDF

Info

Publication number
CN114844821B
CN114844821B CN202210490087.XA CN202210490087A CN114844821B CN 114844821 B CN114844821 B CN 114844821B CN 202210490087 A CN202210490087 A CN 202210490087A CN 114844821 B CN114844821 B CN 114844821B
Authority
CN
China
Prior art keywords
information
discovery
network
node
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210490087.XA
Other languages
Chinese (zh)
Other versions
CN114844821A (en
Inventor
崔洪民
谢国辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhixiang Technology Co ltd
Original Assignee
Shenzhen Zhixiang Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhixiang Technology Co ltd filed Critical Shenzhen Zhixiang Technology Co ltd
Priority to CN202210490087.XA priority Critical patent/CN114844821B/en
Publication of CN114844821A publication Critical patent/CN114844821A/en
Application granted granted Critical
Publication of CN114844821B publication Critical patent/CN114844821B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Landscapes

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

Abstract

The invention relates to the technical field of clouds, and discloses a network automatic discovery method, device, equipment and storage medium, which are used for improving the accuracy of network automatic discovery. The network automatic discovery method comprises the following steps: receiving a network discovery request sent by a first terminal, and carrying out request analysis on the network discovery request to obtain a request identifier; acquiring node information corresponding to the first terminal according to the request identifier; matching configuration discovery rules according to node information to obtain target discovery rules; scanning path information corresponding to the node information according to the target discovery rule and the node information; extracting a target networking according to the path information, and generating network topology structure information according to the target networking; and transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal.

Description

Network automatic discovery method, device, equipment and storage medium
Technical Field
The present invention relates to the field of cloud technologies, and in particular, to a method, an apparatus, a device, and a storage medium for automatically discovering a network.
Background
With the rapid development of computer technology, the rapid development of enterprises is driven, the network system of the enterprises becomes more complex and huge, the number of devices and application systems is greatly increased, and when the enterprise nano-tubes devices and the application systems are used, for example, the devices and the application systems are input into a configuration management database system for unified management.
Because the network system is too complex and huge, statistics and input are extremely difficult in an artificial mode, the efficiency is low, the labor consumption is excessive, and meanwhile, risks such as data omission, inaccurate data and the like exist, namely the accuracy of the existing scheme is low.
Disclosure of Invention
The invention provides a network automatic discovery method, a device, equipment and a storage medium, which are used for improving the accuracy of network automatic discovery.
The first aspect of the present invention provides a network auto-discovery method, which includes: receiving a network discovery request sent by a first terminal, and carrying out request analysis on the network discovery request to obtain a request identifier; acquiring node information corresponding to the first terminal according to the request identifier; matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules; scanning path information corresponding to the node information according to the target discovery rule and the node information; extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking; and transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal.
Optionally, in a first implementation manner of the first aspect of the present invention, the acquiring node information corresponding to the first terminal according to the request identifier includes: inquiring a target node according to the request identification; respectively extracting a node address, a configuration field and a node type corresponding to the target node; and taking the node address, the configuration field and the node type as node information corresponding to the first terminal to obtain node information.
Optionally, in a second implementation manner of the first aspect of the present invention, the matching, according to the node information, the configuration discovery rule corresponding to the node information to obtain the target discovery rule includes: inquiring configuration discovery rules in a preset rule base according to the node type, wherein the configuration discovery rules comprise: device system discovery rules and application discovery rules; and matching the target discovery rule corresponding to the node information according to the node address and the configuration field.
Optionally, in a third implementation manner of the first aspect of the present invention, the scanning path information corresponding to the node information according to the target discovery rule and the node information includes: inputting the target discovery rule and the node information into a preset network discovery model to perform information analysis to obtain network equipment information; and scanning path information corresponding to the node information based on the network equipment information to obtain path information.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the extracting, according to the path information, a target network corresponding to the first terminal, and generating, according to the target network, network topology information includes: determining equipment interface information corresponding to the first terminal according to the path information, and acquiring a plurality of pieces of equipment corresponding to the equipment interface information; generating a target networking corresponding to the first terminal according to the equipment interface information; and establishing a connection relation between the first terminal and the plurality of devices in the target networking according to the target networking to obtain network topology structure information.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the network automatic discovery method further includes: judging whether equipment corresponding to the equipment interface information is registered according to the equipment interface information; and if the network equipment is not registered, registering equipment corresponding to the equipment interface information according to the equipment interface information.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the network automatic discovery method further includes: controlling the target node to send equipment leaving information to a preset control node; and after the control node receives the equipment leaving information, executing the deleting operation of the equipment information corresponding to the target node.
A second aspect of the present invention provides a network automatic discovery apparatus including: the receiving module is used for receiving a network discovery request sent by the first terminal, and carrying out request analysis on the network discovery request to obtain a request identifier; the acquisition module is used for acquiring node information corresponding to the first terminal according to the request identifier; the matching module is used for matching the configuration discovery rule corresponding to the node information according to the node information to obtain a target discovery rule; the scanning module is used for scanning path information corresponding to the node information according to the target discovery rule and the node information; the generation module is used for extracting a target networking corresponding to the first terminal according to the path information and generating network topology structure information according to the target networking; and the display module is used for transmitting the network topology information to a preset second terminal and visually displaying the network topology information through the second terminal.
Optionally, in a first implementation manner of the second aspect of the present invention, the acquiring module is specifically configured to: inquiring a target node according to the request identification; respectively extracting a node address, a configuration field and a node type corresponding to the target node; and taking the node address, the configuration field and the node type as node information corresponding to the first terminal to obtain node information.
Optionally, in a second implementation manner of the second aspect of the present invention, the matching module is specifically configured to: inquiring configuration discovery rules in a preset rule base according to the node type, wherein the configuration discovery rules comprise: device system discovery rules and application discovery rules; and matching the target discovery rule corresponding to the node information according to the node address and the configuration field.
Optionally, in a third implementation manner of the second aspect of the present invention, the scanning module is specifically configured to: inputting the target discovery rule and the node information into a preset network discovery model to perform information analysis to obtain network equipment information; and scanning path information corresponding to the node information based on the network equipment information to obtain path information.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the generating module is specifically configured to: determining equipment interface information corresponding to the first terminal according to the path information, and acquiring a plurality of pieces of equipment corresponding to the equipment interface information; generating a target networking corresponding to the first terminal according to the equipment interface information; and establishing a connection relation between the first terminal and the plurality of devices in the target networking according to the target networking to obtain network topology structure information.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the network automatic discovery device further includes: the registration module is used for judging whether the equipment corresponding to the equipment interface information is registered according to the equipment interface information; and if the network equipment is not registered, registering equipment corresponding to the equipment interface information according to the equipment interface information.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the network automatic discovery device further includes: the deleting module is used for controlling the target node to send equipment leaving information to a preset control node; and after the control node receives the equipment leaving information, executing the deleting operation of the equipment information corresponding to the target node.
A third aspect of the present invention provides a network auto-discovery device comprising: a memory and at least one processor, the memory having instructions stored therein; the at least one processor invokes the instructions in the memory to cause the network auto-discovery device to perform the network auto-discovery method described above.
A fourth aspect of the present invention provides a computer readable storage medium having instructions stored therein which, when run on a computer, cause the computer to perform the network auto discovery method described above.
In the technical scheme provided by the invention, a network discovery request sent by a first terminal is received, and the network discovery request is subjected to request analysis to obtain a request identifier; acquiring node information corresponding to the first terminal according to the request identifier; matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules; scanning path information corresponding to the node information according to the target discovery rule and the node information; extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking; and transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal. According to the invention, different configuration discovery rules are set for different network configurations, and the path information is acquired through the target discovery rules, so that the accuracy of network automatic discovery is improved.
Drawings
FIG. 1 is a diagram illustrating an embodiment of a network auto-discovery method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a network auto-discovery method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an embodiment of a network auto-discovery device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a network auto-discovery device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of an embodiment of a network auto-discovery device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a network automatic discovery method, device, equipment and storage medium, which are used for improving the accuracy of network automatic discovery. The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
For easy understanding, the following describes a specific flow of an embodiment of the present invention, referring to fig. 1, and a first embodiment of a network auto-discovery method in an embodiment of the present invention includes:
101. receiving a network discovery request sent by a first terminal, and carrying out request analysis on the network discovery request to obtain a request identifier;
it is to be understood that the execution subject of the present invention may be a network auto-discovery device, and may also be a terminal or a server, which is not limited herein. The embodiment of the invention is described by taking a server as an execution main body as an example.
It should be noted that, the first terminal may be a mobile phone, for example, one mobile phone is a smart phone at a physical device layer, and may be logically regarded as a set of a controller, a gateway device, and several terminal devices (display, camera, storage, etc.). The logic device is in the software level, and abstract expression is as follows: representing transactions for a single logical unit of work. Performing an operation typically results in reading, writing, or modifying one or more persistent data, i.e., invoking a physical device interface. The logical device may comprise a plurality of network nodes, e.g. control nodes, gateway nodes, end device nodes, etc. The server receives a network discovery request sent by the first terminal and analyzes the network discovery request, wherein the network discovery request carries a request identifier.
102. Acquiring node information corresponding to the first terminal according to the request identifier;
specifically, the server obtains node information corresponding to the first terminal by inquiring information about the request identifier, where the node information may include the following information: node address, configuration field, and node type.
103. Matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules;
it should be noted that, the configuration discovery rule mainly includes a device system discovery rule and an application discovery rule, where the device system discovery rule is used for configuring a hostname, a brand, an operating system and an operating system version; the application discovery rules are used to configure ports, process names, process encryption values, operating parameters and fingerprints. Configurable fields: hostname, brand, operating system version. If the configuration "port=3306" belongs to a relational model in the configuration database, when the "port" of the discovery object is equal to "3306", the discovery object is automatically judged to belong to the relational model of the configuration database. The server takes the matched configuration discovery rule as a target discovery rule.
104. Scanning path information corresponding to the node information according to the target discovery rule and the node information;
specifically, the path information is more than two pieces of path information, the path information comprises a ring network formed by node information, a server receives the node information and reports the node information to a control node, the server calculates the time spent for accessing each path of the node according to a time stamp field in the node information, and selects a path with the least time spent to send a device discovery message, and the server inputs a target discovery rule and the node information into a preset network discovery model for information analysis to obtain network device information; the server scans path information corresponding to the node information based on the network equipment information to obtain the path information.
105. Extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking;
it should be noted that, the target network includes a connection relationship of a plurality of devices, the server determines device interface information corresponding to the first terminal according to the path information, where each device interface corresponds to the device interface information of each device interface, and the server obtains a plurality of devices corresponding to the device interface information; the server generates a target networking corresponding to the first terminal according to the equipment interface information; and the server creates a connection relation between the first terminal and the plurality of devices in the target networking according to the target networking to obtain network topology structure information.
106. And transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal.
Specifically, the server transmits the network topology information to a preset second terminal, and performs visual display on the network topology information through the second terminal, the second terminal can trigger an automatic discovery task at regular time to cope with the change of an enterprise network system, when new equipment or application in the network system is discovered, discovery and nano-tube can be performed in time, and the network topology information is visually displayed in a visual mode such as mail, short message, weChat, nail and the like.
In the embodiment of the invention, a network discovery request sent by a first terminal is received, and the network discovery request is subjected to request analysis to obtain a request identifier; acquiring node information corresponding to the first terminal according to the request identifier; matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules; scanning path information corresponding to the node information according to the target discovery rule and the node information; extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking; and transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal. According to the invention, different configuration discovery rules are set for different network configurations, and the path information is acquired through the target discovery rules, so that the accuracy of network automatic discovery is improved.
Referring to fig. 2, a second embodiment of a network auto-discovery method according to an embodiment of the present invention includes:
201. receiving a network discovery request sent by a first terminal, and carrying out request analysis on the network discovery request to obtain a request identifier;
it should be noted that, the first terminal may be a mobile phone, for example, one mobile phone is a smart phone at a physical device layer, and may be logically regarded as a set of a controller, a gateway device, and several terminal devices (display, camera, storage, etc.). The logic device is in the software level, and abstract expression is as follows: representing transactions for a single logical unit of work. Performing an operation typically results in reading, writing, or modifying one or more persistent data, i.e., invoking a physical device interface. The logical device may comprise a plurality of network nodes, e.g. control nodes, gateway nodes, end device nodes, etc. The server receives a network discovery request sent by the first terminal and analyzes the network discovery request, wherein the network discovery request carries a request identifier.
202. Acquiring node information corresponding to the first terminal according to the request identifier;
optionally, the server queries the target node according to the request identifier; the server extracts a node address, a configuration field and a node type corresponding to the target node respectively; the server takes the node address, the configuration field and the node type as node information corresponding to the first terminal to obtain the node information.
Specifically, the server firstly queries a target node corresponding to the request identifier, and the server obtains node information corresponding to the first terminal by querying information of the request identifier, wherein the node information can comprise the following information: node address, configuration field, and node type, etc. The server sends the node information to the first terminal by performing one-to-one correspondence on the target node, the node address, the configuration field and the node type.
203. Matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules;
optionally, the server queries a configuration discovery rule in a preset rule base according to the node type, where the configuration discovery rule includes: device system discovery rules and application discovery rules; the server matches the target discovery rule corresponding to the node information according to the node address and the configuration field.
It should be noted that, the configuration discovery rule mainly includes a device system discovery rule and an application discovery rule, where the device system discovery rule is used for configuring a hostname, a brand, an operating system and an operating system version; the application discovery rules are used to configure ports, process names, process encryption values, operating parameters and fingerprints. Configurable fields: hostname, brand, operating system version. If the configuration "port=3306" belongs to a relational model in the configuration database, when the "port" of the discovery object is equal to "3306", the discovery object is automatically judged to belong to the relational model of the configuration database. The server takes the matched configuration discovery rule as a target discovery rule.
204. Scanning path information corresponding to the node information according to the target discovery rule and the node information;
optionally, the server inputs the target discovery rule and the node information into a preset network discovery model to perform information analysis to obtain network equipment information; the server scans path information corresponding to the node information based on the network equipment information to obtain the path information.
Specifically, the server obtains network device information through a network discovery model, where the network device information includes any one or more of the following: device address, device name, device type, operating system, accuracy, MAC address, data source, address type, vendor, location, contact, system start time, first discovery time, last communication time, open port information, UUID. The open port information may include a port, a service state, a protocol, an expected service name, and a UUID, which are unique to the network camera. The network device information includes any one or more of the following: terminal information, VLAN information, interface information, routing information, ARP/ND neighbor table information. For example, general terminal information+vlan information (VLAN, tag port, unit port) +interface information (interface name, interface type, interface address, management state, physical connection state, total received bytes, total received packet number, number of reception errors, reception error rate, total transmitted bytes, total transmitted packet number, number of transmission errors, transmission error rate) +routing information (destination address, destination mask, routing protocol, next hop IP, next hop interface name) +arp/ND neighbor table information (neighbor address, neighbor Mac, interface name, type). And the server analyzes the network equipment information to obtain path information corresponding to the target node.
205. Extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking;
optionally, the server determines device interface information corresponding to the first terminal according to the path information, and acquires a plurality of devices corresponding to the device interface information; the server generates a target networking corresponding to the first terminal according to the equipment interface information; and the server creates a connection relation between the first terminal and the plurality of devices in the target networking according to the target networking to obtain network topology structure information.
Specifically, the server determines device interface information corresponding to the first terminal according to the path information, acquires a plurality of devices corresponding to the device interface information, and the first terminal automatically sends a message to a target networking address corresponding to the target networking, wherein the plurality of devices of the whole target networking can receive a message generated by a device having a neighbor relation with the device of the first terminal, and the message comprises the device information of the device having the neighbor relation with the device of the first terminal; the server enables a plurality of devices of the target networking to receive the connection relation of other devices, so that the network topology of the target networking is stored in each device, the determination efficiency and the maintenance efficiency of the network topology are improved, and meanwhile, the maintenance cost is reduced.
206. Transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal;
specifically, the server transmits the network topology information to a preset second terminal, and performs visual display on the network topology information through the second terminal, the second terminal can trigger an automatic discovery task at regular time to cope with the change of an enterprise network system, when new equipment or application in the network system is discovered, discovery and nano-tube can be performed in time, and the network topology information is visually displayed in a visual mode such as mail, short message, weChat, nail and the like.
Optionally, the server judges whether the device corresponding to the device interface information is registered according to the device interface information; if the network equipment is not registered, the server registers equipment corresponding to the equipment interface information according to the equipment interface information.
Specifically, the server judges whether the corresponding network device has been registered according to the device interface information, and specifically includes: the server judges whether the equipment interface information exists in the current equipment registration information list, and if the equipment interface information is not in the equipment registration information list, the network equipment is not registered. The server discovers the network equipment which is not registered through SNMP protocol communication scanning between the SNMP management station and the network equipment, can search the network equipment which is not monitored, solves the problems of monitoring loss of the SNMP protocol equipment, incomplete monitoring of network deployment and the like, effectively reduces operation and maintenance cost and reduces operation and maintenance time.
207. The control target node sends equipment leaving information to a preset control node;
208. and after the control node receives the equipment leaving information, deleting the equipment information corresponding to the target node.
Specifically, the server control target node sends equipment leaving information to a preset control node, and specifically includes: the control node sends a query instruction to the target node in a preset time period, the target node replies preset response information to the control node after receiving the query instruction, and when the control node does not receive any response information or the received response information is abnormal response information, the control node deletes the equipment information.
In the embodiment of the invention, a network discovery request sent by a first terminal is received, and the network discovery request is subjected to request analysis to obtain a request identifier; acquiring node information corresponding to the first terminal according to the request identifier; matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules; scanning path information corresponding to the node information according to the target discovery rule and the node information; extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking; and transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal. According to the invention, different configuration discovery rules are set for different network configurations, and the path information is acquired through the target discovery rules, so that the accuracy of network automatic discovery is improved.
The method for automatically discovering a network in the embodiment of the present invention is described above, and the apparatus for automatically discovering a network in the embodiment of the present invention is described below, referring to fig. 3, where a first embodiment of the apparatus for automatically discovering a network in the embodiment of the present invention includes:
the receiving module 301 is configured to receive a network discovery request sent by a first terminal, and perform request analysis on the network discovery request to obtain a request identifier;
the acquiring module 302 is configured to acquire node information corresponding to the first terminal according to the request identifier;
a matching module 303, configured to match the configuration discovery rule corresponding to the node information according to the node information, so as to obtain a target discovery rule;
a scanning module 304, configured to scan path information corresponding to the node information according to the target discovery rule and the node information;
a generating module 305, configured to extract a target networking corresponding to the first terminal according to the path information, and generate network topology structure information according to the target networking;
and the display module 306 is configured to transmit the network topology information to a preset second terminal, and visually display the network topology information through the second terminal.
In the embodiment of the invention, a network discovery request sent by a first terminal is received, and the network discovery request is subjected to request analysis to obtain a request identifier; acquiring node information corresponding to the first terminal according to the request identifier; matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules; scanning path information corresponding to the node information according to the target discovery rule and the node information; extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking; and transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal. According to the invention, different configuration discovery rules are set for different network configurations, and the path information is acquired through the target discovery rules, so that the accuracy of network automatic discovery is improved.
Referring to fig. 4, a second embodiment of the network auto-discovery device according to the present invention includes:
the receiving module 301 is configured to receive a network discovery request sent by a first terminal, and perform request analysis on the network discovery request to obtain a request identifier;
the acquiring module 302 is configured to acquire node information corresponding to the first terminal according to the request identifier;
a matching module 303, configured to match the configuration discovery rule corresponding to the node information according to the node information, so as to obtain a target discovery rule;
a scanning module 304, configured to scan path information corresponding to the node information according to the target discovery rule and the node information;
a generating module 305, configured to extract a target networking corresponding to the first terminal according to the path information, and generate network topology structure information according to the target networking;
and the display module 306 is configured to transmit the network topology information to a preset second terminal, and visually display the network topology information through the second terminal.
Optionally, the acquiring module 302 is specifically configured to: inquiring a target node according to the request identification; respectively extracting a node address, a configuration field and a node type corresponding to the target node; and taking the node address, the configuration field and the node type as node information corresponding to the first terminal to obtain node information.
Optionally, the matching module 303 is specifically configured to: inquiring configuration discovery rules in a preset rule base according to the node type, wherein the configuration discovery rules comprise: device system discovery rules and application discovery rules; and matching the target discovery rule corresponding to the node information according to the node address and the configuration field.
Optionally, the scanning module 304 is specifically configured to: inputting the target discovery rule and the node information into a preset network discovery model to perform information analysis to obtain network equipment information; and scanning path information corresponding to the node information based on the network equipment information to obtain path information.
Optionally, the generating module 305 is specifically configured to: determining equipment interface information corresponding to the first terminal according to the path information, and acquiring a plurality of pieces of equipment corresponding to the equipment interface information; generating a target networking corresponding to the first terminal according to the equipment interface information; and establishing a connection relation between the first terminal and the plurality of devices in the target networking according to the target networking to obtain network topology structure information.
Optionally, the network auto-discovery device further includes: a registration module 307, configured to determine, according to the device interface information, whether a device corresponding to the device interface information performs registration; and if the network equipment is not registered, registering equipment corresponding to the equipment interface information according to the equipment interface information.
Optionally, the network auto-discovery device further includes: a deleting module 308, configured to control the target node to send device leaving information to a preset control node; and after the control node receives the equipment leaving information, executing the deleting operation of the equipment information corresponding to the target node.
In the embodiment of the invention, a network discovery request sent by a first terminal is received, and the network discovery request is subjected to request analysis to obtain a request identifier; acquiring node information corresponding to the first terminal according to the request identifier; matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules; scanning path information corresponding to the node information according to the target discovery rule and the node information; extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking; and transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal. According to the invention, different configuration discovery rules are set for different network configurations, and the path information is acquired through the target discovery rules, so that the accuracy of network automatic discovery is improved.
The network auto-discovery device in the embodiment of the present invention is described in detail above in terms of the modularized functional entity in fig. 3 and fig. 4, and the network auto-discovery apparatus in the embodiment of the present invention is described in detail below in terms of hardware processing.
Fig. 5 is a schematic diagram of a network auto-discovery device according to an embodiment of the present invention, where the network auto-discovery device 500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (e.g., one or more processors) and a memory 520, and one or more storage media 530 (e.g., one or more mass storage devices) storing application programs 533 or data 532. Wherein memory 520 and storage medium 530 may be transitory or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown), each of which may include a series of instruction operations in the network auto-discovery device 500. Still further, the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the network auto-discovery device 500.
The network auto-discovery device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input/output interfaces 560, and/or one or more operating systems 531, such as Windows Serve, mac OS X, unix, linux, freeBSD, and the like. It will be appreciated by those skilled in the art that the network auto-discovery device architecture shown in fig. 5 is not limiting and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The present invention also provides a network auto-discovery device, including a memory and a processor, where the memory stores computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the network auto-discovery method in the above embodiments.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, and which may also be a volatile computer readable storage medium, the computer readable storage medium having stored therein instructions which, when executed on a computer, cause the computer to perform the steps of the network auto discovery method.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A network auto-discovery method, the network auto-discovery method comprising:
receiving a network discovery request sent by a first terminal, and carrying out request analysis on the network discovery request to obtain a request identifier;
acquiring node information corresponding to the first terminal according to the request identifier;
matching configuration discovery rules corresponding to the node information according to the node information to obtain target discovery rules; specifically, the configuration discovery rules include device system discovery rules and application discovery rules, where the device system discovery rules are used to configure hostnames, brands, operating systems and operating system versions; the application discovery rule is used for configuring a port, a process name, a process encryption value, an operation parameter and a fingerprint; configurable fields: the method comprises the steps that a host name, a brand, an operating system and an operating system version are used as target discovery rules by a server, wherein the configuration discovery rules are obtained through matching;
scanning path information corresponding to the node information according to the target discovery rule and the node information, wherein the path information comprises the following specific steps: inputting the target discovery rule and the node information into a preset network discovery model to perform information analysis to obtain network equipment information; scanning path information corresponding to the node information based on the network equipment information to obtain path information;
extracting a target networking corresponding to the first terminal according to the path information, and generating network topology structure information according to the target networking, wherein the method specifically comprises the following steps: determining equipment interface information corresponding to the first terminal according to the path information, and acquiring a plurality of pieces of equipment corresponding to the equipment interface information; generating a target networking corresponding to the first terminal according to the equipment interface information; establishing a connection relation between the first terminal and the plurality of devices in the target networking according to the target networking to obtain network topology information; judging whether equipment corresponding to the equipment interface information is registered according to the equipment interface information; if the network equipment is not registered, equipment registration is carried out on equipment corresponding to the equipment interface information according to the equipment interface information; the control target node sends equipment leaving information to a preset control node; after the control node receives the equipment leaving information, the deleting operation of the equipment information corresponding to the target node is executed;
and transmitting the network topology information to a preset second terminal, and visually displaying the network topology information through the second terminal.
2. The method of automatically discovering a network according to claim 1, wherein the obtaining node information corresponding to the first terminal according to the request identifier includes:
inquiring a target node according to the request identification;
respectively extracting a node address, a configuration field and a node type corresponding to the target node;
and taking the node address, the configuration field and the node type as node information corresponding to the first terminal to obtain node information.
3. The network automatic discovery method according to claim 2, wherein the matching the configuration discovery rule corresponding to the node information according to the node information to obtain the target discovery rule includes:
inquiring configuration discovery rules in a preset rule base according to the node type, wherein the configuration discovery rules comprise: device system discovery rules and application discovery rules;
and matching the target discovery rule corresponding to the node information according to the node address and the configuration field.
4. A network auto-discovery apparatus, the network auto-discovery apparatus comprising:
the receiving module is used for receiving a network discovery request sent by the first terminal, and carrying out request analysis on the network discovery request to obtain a request identifier;
the acquisition module is used for acquiring node information corresponding to the first terminal according to the request identifier;
the matching module is used for matching the configuration discovery rule corresponding to the node information according to the node information to obtain a target discovery rule; specifically, the configuration discovery rules include device system discovery rules and application discovery rules, where the device system discovery rules are used to configure hostnames, brands, operating systems and operating system versions; the application discovery rule is used for configuring a port, a process name, a process encryption value, an operation parameter and a fingerprint; configurable fields: the method comprises the steps that a host name, a brand, an operating system and an operating system version are used as target discovery rules by a server, wherein the configuration discovery rules are obtained through matching;
the scanning module is used for scanning path information corresponding to the node information according to the target discovery rule and the node information, and specifically comprises the following steps: inputting the target discovery rule and the node information into a preset network discovery model to perform information analysis to obtain network equipment information; scanning path information corresponding to the node information based on the network equipment information to obtain path information;
the generating module is configured to extract a target networking corresponding to the first terminal according to the path information, and generate network topology structure information according to the target networking, and specifically includes: determining equipment interface information corresponding to the first terminal according to the path information, and acquiring a plurality of pieces of equipment corresponding to the equipment interface information; generating a target networking corresponding to the first terminal according to the equipment interface information; establishing a connection relation between the first terminal and the plurality of devices in the target networking according to the target networking to obtain network topology information; judging whether equipment corresponding to the equipment interface information is registered according to the equipment interface information; if the network equipment is not registered, equipment registration is carried out on equipment corresponding to the equipment interface information according to the equipment interface information; the control target node sends equipment leaving information to a preset control node; after the control node receives the equipment leaving information, the deleting operation of the equipment information corresponding to the target node is executed;
and the display module is used for transmitting the network topology information to a preset second terminal and visually displaying the network topology information through the second terminal.
5. A network auto-discovery device, the network auto-discovery device comprising: a memory and at least one processor, the memory having instructions stored therein;
the at least one processor invoking the instructions in the memory to cause the network auto-discovery device to perform the network auto-discovery method of any of claims 1-3.
6. A computer readable storage medium having instructions stored thereon, which when executed by a processor, implement the network auto-discovery method of any one of claims 1-3.
CN202210490087.XA 2022-05-07 2022-05-07 Network automatic discovery method, device, equipment and storage medium Active CN114844821B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210490087.XA CN114844821B (en) 2022-05-07 2022-05-07 Network automatic discovery method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210490087.XA CN114844821B (en) 2022-05-07 2022-05-07 Network automatic discovery method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114844821A CN114844821A (en) 2022-08-02
CN114844821B true CN114844821B (en) 2023-10-31

Family

ID=82566935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210490087.XA Active CN114844821B (en) 2022-05-07 2022-05-07 Network automatic discovery method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114844821B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118041794B (en) * 2024-04-11 2024-06-21 灵长智能科技(杭州)有限公司 Application service topology generation method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764728A (en) * 2010-01-27 2010-06-30 杭州华三通信技术有限公司 Network topology discovering method and equipment
CN106027321A (en) * 2016-07-26 2016-10-12 上海携程商务有限公司 Method and system for automatically generating network topology
CN109067569A (en) * 2018-07-20 2018-12-21 杭州安恒信息技术股份有限公司 A kind of industry control network topological structure method for visualizing
CN110661669A (en) * 2019-10-11 2020-01-07 云南电网有限责任公司德宏供电局 Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols
CN111597012A (en) * 2020-05-18 2020-08-28 山东汇贸电子口岸有限公司 System and method for automatically discovering cloud environment equipment
CN111756756A (en) * 2020-06-28 2020-10-09 深圳市信锐网科技术有限公司 Terminal network control method and device, electronic equipment and storage medium
CN111917578A (en) * 2020-07-29 2020-11-10 山东英信计算机技术有限公司 Multi-node network topology management method and device, electronic equipment and storage medium
CN112565095A (en) * 2020-12-11 2021-03-26 中盈优创资讯科技有限公司 Automatic discovery and analysis method and device for internet special line
CN112636985A (en) * 2020-12-30 2021-04-09 国网青海省电力公司信息通信公司 Network asset detection device based on automatic discovery algorithm
CN112953774A (en) * 2021-02-25 2021-06-11 山东英信计算机技术有限公司 Network topology generation method, system, equipment and computer storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070206512A1 (en) * 2006-03-03 2007-09-06 Nortel Networks Limited Network data model and topology discovery method
US8307097B2 (en) * 2009-12-18 2012-11-06 Tektronix, Inc. System and method for automatic discovery of topology in an LTE/SAE network
US9288686B2 (en) * 2013-10-17 2016-03-15 Telefonaktiebolaget L M Ericsson (Publ) Topology discovery based on SCTP/X2 snooping
US10887192B2 (en) * 2018-08-03 2021-01-05 Red Hat, Inc. Targeted network discovery and visualizations

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764728A (en) * 2010-01-27 2010-06-30 杭州华三通信技术有限公司 Network topology discovering method and equipment
CN106027321A (en) * 2016-07-26 2016-10-12 上海携程商务有限公司 Method and system for automatically generating network topology
CN109067569A (en) * 2018-07-20 2018-12-21 杭州安恒信息技术股份有限公司 A kind of industry control network topological structure method for visualizing
CN110661669A (en) * 2019-10-11 2020-01-07 云南电网有限责任公司德宏供电局 Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols
CN111597012A (en) * 2020-05-18 2020-08-28 山东汇贸电子口岸有限公司 System and method for automatically discovering cloud environment equipment
CN111756756A (en) * 2020-06-28 2020-10-09 深圳市信锐网科技术有限公司 Terminal network control method and device, electronic equipment and storage medium
CN111917578A (en) * 2020-07-29 2020-11-10 山东英信计算机技术有限公司 Multi-node network topology management method and device, electronic equipment and storage medium
CN112565095A (en) * 2020-12-11 2021-03-26 中盈优创资讯科技有限公司 Automatic discovery and analysis method and device for internet special line
CN112636985A (en) * 2020-12-30 2021-04-09 国网青海省电力公司信息通信公司 Network asset detection device based on automatic discovery algorithm
CN112953774A (en) * 2021-02-25 2021-06-11 山东英信计算机技术有限公司 Network topology generation method, system, equipment and computer storage medium

Also Published As

Publication number Publication date
CN114844821A (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN101002168B (en) Method and system for detection of aliases in a network
CN102123044B (en) Detection device and method of network topology consistency based on topology discovery technology
US20050047350A1 (en) Apparatus and methods for discovery of network elements in a network
CN112953774B (en) Network topology generation method, system, equipment and computer storage medium
CN103546343B (en) The network traffics methods of exhibiting of network traffic analysis system and system
CN110740490A (en) Terminal network access method, gateway equipment, system, storage medium and device
CN112202609A (en) Industrial control asset detection method and device, electronic equipment and storage medium
US20150095492A1 (en) Method and apparatus of matching monitoring sets to network devices
CN105141449A (en) Addition method and device for monitoring configuration
US20160366040A1 (en) Dynamic Control of Endpoint Profiling
CN114844821B (en) Network automatic discovery method, device, equipment and storage medium
CN115297007A (en) Construction method and system of network space asset information map for cooperative network
CN104579978A (en) Link-layer topology discovery method for dynamic network
EP1589691B1 (en) Method, system and apparatus for managing computer identity
US20030014518A1 (en) Method and system for identifying nerwork connected devices such as personal computers
JP2004086729A (en) Network configuration display system
JP2002366454A (en) Network managing method and its device
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN112866011B (en) Method, device, equipment and medium for determining network topology structure
CN114189348A (en) Asset identification method suitable for industrial control network environment
CN112468400A (en) Fault positioning method, device, equipment and medium
CN111010362B (en) Monitoring method and device for abnormal host
US7870246B1 (en) System, method, and computer program product for platform-independent port discovery
CN115766252A (en) Flow abnormity detection method and device, electronic equipment and storage medium
CN113300880B (en) Ethernet switch topology generation and drawing method based on Tarjan algorithm

Legal Events

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