CN116827801B - Network topology construction method, device, computer equipment and readable storage medium - Google Patents

Network topology construction method, device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN116827801B
CN116827801B CN202311075876.8A CN202311075876A CN116827801B CN 116827801 B CN116827801 B CN 116827801B CN 202311075876 A CN202311075876 A CN 202311075876A CN 116827801 B CN116827801 B CN 116827801B
Authority
CN
China
Prior art keywords
network
mac address
target type
determining
devices
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
CN202311075876.8A
Other languages
Chinese (zh)
Other versions
CN116827801A (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.)
Wuhan Barda Technology Co ltd
Original Assignee
Wuhan Barda 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 Wuhan Barda Technology Co ltd filed Critical Wuhan Barda Technology Co ltd
Priority to CN202311075876.8A priority Critical patent/CN116827801B/en
Publication of CN116827801A publication Critical patent/CN116827801A/en
Application granted granted Critical
Publication of CN116827801B publication Critical patent/CN116827801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a network topology construction method, a device, computer equipment and a readable storage medium, and in the embodiment of the application, first network equipment which is connected with a server and is responsible for a routing function and first mac address data maintained by the first network equipment are determined based on preset universal connection configuration data in the server; determining, based on the first mac address data, device types specifying all devices in the local area network that are directly or indirectly connected to the first network device; screening out a second network device responsible for a routing function from the devices based on the device type; the mac address forwarding table of each target type device is obtained, connection information of each port of each target type device is determined based on the mac address forwarding table, and network topology of the appointed local area network is constructed based on the connection information, so that the network topology of the appointed local area network is constructed accurately and efficiently.

Description

Network topology construction method, device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of computer networks, and in particular, to a method and apparatus for constructing a network topology, a computer device, and a readable storage medium.
Background
Network topology construction refers to constructing the interconnection relationships between network devices that exist in a network. Typically, network devices (e.g., firewalls, routers, switches, etc.) will be assigned a "management address" for managing the devices after deployment, online, and this "management address" is the IP address described in the network topology construction. Since network devices typically have many ports, these ports are used either to connect with another network device or to connect with a server, personal computer, printer, etc., external to the device. Which two ports of two specific network devices are connected with each other, and which port of the network device is connected with the network card of the other device, is the connection relationship described in the construction of the network topology.
However, in the existing network topology construction process, the network topology of the designated local area network cannot be constructed accurately and efficiently due to the variety of network devices and the diversity of protocols of network connection.
Therefore, how to accurately and efficiently construct a network topology of a specified local area network is a technical problem that needs to be solved in the technical field of computer networks currently.
Disclosure of Invention
The application provides a network topology construction method, a device, computer equipment and a readable storage medium, which aim to solve the technical problem of how to accurately and efficiently construct the network topology in a specified local area network.
In one aspect, the present application provides a network topology construction method, apparatus, computer device and readable storage medium, where the method includes:
if a network topology construction request for a specified local area network is received, determining first network equipment which is connected with the server and is responsible for a routing function and first mac address data maintained by the first network equipment based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment; determining the device types of all devices directly or indirectly connected with the first network device in the appointed local area network based on the first mac address data; screening out second network equipment responsible for a routing function from all the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; obtaining a mac address forwarding table of each target type device, and determining connection information of each port of each target type device based on the mac address forwarding table; and constructing the network topology of the appointed local area network based on the connection information.
Optionally, the determining, based on the mac address forwarding table, connection information of each port of each target type device includes: obtaining mac address data maintained by each target type device; based on the mac address forwarding table, determining the IP address of forwarding physical equipment and the number of IP addresses of forwarding physical equipment of each port of each target type equipment; and determining the connection information of the ports between each port of each target type device and other devices based on the IP address of each port of each target type device, the IP address number of the forwarding physical devices and the mac address data maintained by each target type device.
Optionally, the determining connection information of ports between each port of each target type device and other devices based on the IP address of each port of each target type device, the number of IP addresses of each forwarding physical device, and mac address data maintained by each target type device includes: if the number of the IP addresses of the forwarding physical devices is larger than 1, determining a number parameter of the target type devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices, determining a containing relation of other devices connected with each port of each target type device based on mac address data maintained by each target type device, and then constructing a superior-inferior relation of the other devices connected with each port of each target type device based on the number parameter and the containing relation; and if the number of the IP addresses of the forwarding physical devices is 1, determining the connection relation of other devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices.
Optionally, the determining, based on the mac address forwarding table, connection information of each port of each target type device includes: determining a flow data parameter of each port of each target type device based on the mac address forwarding table; determining the similarity between each port of each target type device based on the flow data parameters of each port of each target type device; and determining the connection information of each port of each target type device based on the similarity.
Optionally, the determining, based on the first mac address data, device types of all devices directly or indirectly connected to the first network device in the specified local area network includes: determining the device type of each device in a first device set which is directly connected with the first network device in the appointed local area network based on the first mac address data; screening all third network devices responsible for a routing function from the first device set to obtain a second device set, wherein the device type of the third network device is target type device; acquiring second mac address data maintained by each third network device in the second device set based on preset configuration protocol data; and determining the device types of all devices in the third device set indirectly connected with the first network device in the appointed local area network based on the second mac address data until the whole appointed local area network is traversed to obtain the device types of all the devices in the appointed local area network.
Optionally, the method further comprises: acquiring port information of each target type device in a preset time period; determining target network flow rate data of each day in the preset time period based on the port information; constructing a fitting straight line of the target network flow rate data based on the target network flow rate data; and monitoring the network flow of the ports of each target type device based on a preset network flow rate threshold and the fitting straight line.
Optionally, after constructing the network topology of the specified local area network based on the connection information, the method further comprises: determining network topology storage data based on the attribute of each node in the network topology, the connection information among each node and a preset target storage structure; creating a target intelligent contract based on the attribute of each node in the network topology and the connection information between each node; and storing the network topology storage data into a preset blockchain based on the target intelligent contract.
In another aspect, the present application provides a network topology construction apparatus, including: a first determining unit, configured to determine, if a network topology construction request for a specified local area network is received, a first network device responsible for a routing function and first mac address data maintained by the first network device, which is connected to the server, based on preset generic connection configuration data in the server, where a device type of the first network device is a target type device; a second determining unit, configured to determine, based on the first mac address data, device types of all devices directly or indirectly connected to the first network device in the specified local area network; the first screening unit is used for screening second network equipment responsible for a routing function from the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; the first acquisition unit and the third determination unit are respectively used for acquiring a mac address forwarding table of each target type device and determining the connection information of each port of each target type device based on the mac address forwarding table; and the first construction unit is used for constructing the network topology of the appointed local area network based on the connection information.
Optionally, the third determining unit specifically includes: the second acquisition unit is used for acquiring mac address data maintained by each target type device; a fourth determining unit, configured to determine, based on the mac address forwarding table, an IP address of a forwarding physical device and the number of IP addresses of forwarding physical devices of each port of each target type device; and a fifth determining unit, configured to determine connection information of ports between each port of each target type device and other devices based on the forwarding physical device IP address of each port of each target type device, the number of forwarding physical device IP addresses, and mac address data maintained by each target type device.
Optionally, the fifth determining unit is specifically configured to: if the number of the IP addresses of the forwarding physical devices is larger than 1, determining a number parameter of the target type devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices, determining a containing relation of other devices connected with each port of each target type device based on mac address data maintained by each target type device, and then constructing a superior-inferior relation of the other devices connected with each port of each target type device based on the number parameter and the containing relation; and if the number of the IP addresses of the forwarding physical devices is 1, determining the connection relation of other devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices.
Optionally, the third determining unit is specifically configured to include: determining a flow data parameter of each port of each target type device based on the mac address forwarding table; determining the similarity between each port of each target type device based on the flow data parameters of each port of each target type device; and determining the connection information of each port of each target type device based on the similarity.
Optionally, the second determining unit is specifically configured to: determining the device type of each device in a first device set which is directly connected with the first network device in the appointed local area network based on the first mac address data; screening all third network devices responsible for a routing function from the first device set to obtain a second device set, wherein the device type of the third network device is target type device; acquiring second mac address data maintained by each third network device in the second device set based on preset configuration protocol data; and determining the device types of all devices in the third device set indirectly connected with the first network device in the appointed local area network based on the second mac address data until the whole appointed local area network is traversed to obtain the device types of all the devices in the appointed local area network.
Optionally, the device is further configured to: acquiring port information of each target type device in a preset time period;
determining target network flow rate data of each day in the preset time period based on the port information; constructing a fitting straight line of the target network flow rate data based on the target network flow rate data; and monitoring the network flow of the ports of each target type device based on a preset network flow rate threshold and the fitting straight line.
Optionally, after constructing the network topology of the specified local area network based on the connection information, the apparatus is further configured to: determining network topology storage data based on the attribute of each node in the network topology, the connection information among each node and a preset target storage structure; creating a target intelligent contract based on the attribute of each node in the network topology and the connection information between each node; and storing the network topology storage data into a preset blockchain based on the target intelligent contract.
In another aspect, the present application also provides a computer apparatus, including: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the network topology construction method.
In another aspect, the present application also provides a computer readable storage medium having stored thereon a computer program, the computer program being loaded by a processor to perform the steps of the network topology construction method.
According to the embodiment of the application, if a network topology construction request for a specified local area network is received, first network equipment which is connected with a server and is responsible for a routing function and first mac address data maintained by the first network equipment are determined based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment; determining, based on the first mac address data, device types specifying all devices in the local area network that are directly or indirectly connected to the first network device; screening out second network equipment responsible for a routing function from the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; the method comprises the steps of obtaining a mac address forwarding table of each target type device, determining connection information of each port of each target type device based on the mac address forwarding table, constructing a network topology of a designated local area network based on the connection information, realizing the universal identification of various devices, avoiding the occurrence of misidentification and missed identification of the devices in the local area network, and searching each device in the designated local area network in a divergent mode, so that the network topology of the designated local area network is constructed accurately and efficiently.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a network topology construction scenario provided in an embodiment of the present application;
fig. 2 is a flowchart of an embodiment of a network topology construction method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an embodiment of a network topology constructing apparatus provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of one embodiment of a computer device provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a designated local area network provided in an embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the drawings are merely for convenience in describing the present application and simplifying the description, and do not indicate or imply that the apparatus or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the present application, the term "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described as "exemplary" in this disclosure is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for purposes of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes have not been described in detail so as not to obscure the description of the application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The embodiment of the application provides a network topology construction method, a network topology construction device, computer equipment and a readable storage medium, and the method, the device and the computer equipment are respectively described in detail below.
As shown in fig. 1, fig. 1 is a schematic view of a network topology construction system according to an embodiment of the present application, where the network topology construction system may include a computer device 100, and a network topology construction apparatus, such as the computer device 100 in fig. 1, is integrated in the computer device 100.
In the embodiment of the present application, the computer device 100 is mainly configured to determine, based on preset generic connection configuration data in the server, a first network device connected to the server and responsible for a routing function and first mac address data maintained by the first network device, where a device type of the first network device is a target type device, if a network topology construction request for a specified local area network is received; determining the device types of all devices directly or indirectly connected with the first network device in the appointed local area network based on the first mac address data; screening out second network equipment responsible for a routing function from all the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; obtaining a mac address forwarding table of each target type device, and determining connection information of each port of each target type device based on the mac address forwarding table; and constructing the network topology of the appointed local area network based on the connection information.
In the embodiment of the present application, the computer device 100 may be a terminal or a server, and when the computer device 100 is a server, it may be an independent server, or may be a server network or a server cluster formed by servers, for example, the computer device 100 described in the embodiment of the present application includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a plurality of servers to construct a cloud server. Wherein the Cloud server is built from a large number of computers or web servers based on Cloud Computing (Cloud Computing).
It will be appreciated that when the computer device 100 is a terminal in the embodiments of the present application, the terminal used may be a device that includes both receiving and transmitting hardware, i.e., a device having receiving and transmitting hardware capable of performing two-way communications over a two-way communications link. Such a device may include: a cellular or other communication device having a single-line display or a multi-line display or a cellular or other communication device without a multi-line display. The computer device 100 may be a desktop terminal or a mobile terminal, and the computer device 100 may be one of a mobile phone, a tablet computer, a notebook computer, a medical auxiliary instrument, and the like.
It will be appreciated by those skilled in the art that the application environment shown in fig. 1 is merely an application scenario of the present application, and is not intended to limit the application scenario of the present application, and other application environments may include more or fewer computer devices than those shown in fig. 1, for example, only 1 computer device is shown in fig. 1, and it will be appreciated that the network topology building system may further include one or more other computer devices, which is not limited herein.
In addition, as shown in fig. 1, the network topology construction system may further include a memory 200 for storing data, such as general connection configuration data preset in a storage server and network topology construction data, such as network topology construction data when the network topology construction system is operated.
It should be noted that, the schematic view of the scenario of the network topology construction system shown in fig. 1 is only an example, and the network topology construction system and the scenario described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application, and those skilled in the art can know that, with the evolution of the network topology construction system and the appearance of a new service scenario, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
Next, a network topology construction method provided by the embodiment of the present application is described.
In the embodiments of the network topology construction method of the present application, a network topology construction device is used as an execution body, and for simplicity and convenience of description, the execution body will be omitted in the subsequent method embodiments, and the network topology construction device is applied to a computer device, and the method includes: if a network topology construction request for a specified local area network is received, determining first network equipment which is connected with the server and is responsible for a routing function and first mac address data maintained by the first network equipment based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment; determining the device types of all devices directly or indirectly connected with the first network device in the appointed local area network based on the first mac address data; screening out second network equipment responsible for a routing function from all the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; obtaining a mac address forwarding table of each target type device, and determining connection information of each port of each target type device based on the mac address forwarding table; and constructing the network topology of the appointed local area network based on the connection information.
The network topology construction method according to the present application will be described in detail with reference to the accompanying drawings. Although the application provides the method steps shown in the examples or figures described below, more or fewer steps may be included in the method, either on a routine or non-inventive basis. In the steps where there is logically no necessary causal relationship, the execution order of the steps is not limited to the execution order provided by the embodiment of the present application. The methods may be performed sequentially or in parallel (e.g., in a parallel processor or multithreaded environment) in accordance with the methods shown in the embodiments or figures when the methods are performed in the actual object processing process or apparatus.
Referring to fig. 2 to fig. 4, fig. 2 is a flowchart illustrating an embodiment of a network topology construction method according to an embodiment of the present application, where the network topology construction method includes the following steps 201 to 205:
201. if a network topology construction request for a specified local area network is received, determining first network equipment which is connected with a server and is responsible for a routing function and first mac address data maintained by the first network equipment based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment.
The network topology construction request may be from a network topology construction request sent by a user terminal for a specified local area network, where the user terminal typically uses a web terminal to interact with a server.
The device types comprise target type devices and non-target type devices, wherein the target type devices are network devices, and the network devices are devices responsible for routing functions; specifically, the network device includes, but is not limited to, a switch, a router, and a network server; the non-target type device is a non-network device, which refers to a device that is not responsible for the routing function, but may be connected to a network device, such as a printer connected to a server.
The preset general connection configuration data is a general connectable configuration of network equipment (switch, router, etc.), and specifically may include ssh protocol, snmp protocol and telnet protocol.
The first MAC address data includes at least one MAC address and a correspondence between each of the MAC addresses and an IP address, where in a Local Area Network (LAN), a MAC address of a network card is used to uniquely identify a device, and an IP address is used to locate the device on a network. When a data packet is transmitted from a source device to a destination device, the data packet contains the MAC addresses and IP addresses of the source and destination devices. In the communication process, the network device (such as a switch or a router) may search and maintain an address forwarding table (also referred to as ARP cache) according to the target IP address in the message, where a mapping relationship between the MAC address and the corresponding IP address is recorded. In this way, the device can use the MAC address to deliver the data packet to the correct destination device.
Meanwhile, the network device can dynamically update and maintain the corresponding relation between the MAC address and the IP address by using other protocols (such as ARP, IPv6 neighbor discovery protocol and the like) so as to ensure the smooth proceeding of network communication.
Illustratively, determining, based on the preset generic connection configuration data in the server, the first network device responsible for the routing function connected to the server and the first mac address data maintained by the first network device, includes: searching related information of network equipment connected with the server by accessing the universal connection configuration data on the server, wherein the related information comprises a name, an IP address and an MAC address; the gateway device (i.e. the first network device responsible for the routing function) to which it is connected is determined from the IP address of the server. Typically, the server and the network device will be in the same subnet; finding a management interface (such as a Web interface or a command line interface) of the first network equipment responsible for the routing function, logging in and accessing the equipment; in a management interface of a first network device responsible for a routing function, searching options related to maintained MAC address data, wherein specific configuration can be different according to device types, and can be found in parts such as an interface, an ARP table, an MAC address table and the like on some devices; find an entry for the server IP address and obtain the listed MAC address. The first entry is typically an interface directly connected to the server, and the corresponding MAC address is the first MAC address data maintained.
202. Based on the first mac address data, a device type specifying all devices within the local area network that are directly or indirectly connected to the first network device is determined.
For ease of understanding, referring to fig. 5, assuming that the A1 switch on the left side of fig. 5 is the first network device, the relationship with the A1 switch includes direct connection and indirect connection, for example, the A2 switch is directly connected to the A1 switch in the figure, and the A3 switch is indirectly connected to the A1 switch through the A2 switch, similar to the above example, other devices in the designated local area network are respectively directly connected to or indirectly connected to the A1 switch (the first network device).
In some embodiments of the present application, the determining, based on the first mac address data, device types of all devices directly or indirectly connected to the first network device in the specified lan may specifically include: determining the device type of each device in a first device set which is directly connected with the first network device in the appointed local area network based on the first mac address data; screening all third network devices responsible for a routing function from the first device set to obtain a second device set, wherein the device type of the third network device is target type device; based on preset configuration protocol data, obtaining second mac address data maintained by each third network device in the second device set, where a manner of obtaining the second mac address data is the same as or similar to a manner of obtaining the first mac address data, and a specific obtaining manner may refer to the foregoing embodiment, which is not described herein in detail; based on the second mac address data, determining the device types of all devices in the third device set indirectly connected to the first network device in the specified local area network until traversing the entire specified local area network to obtain the device types of all devices in the specified local area network, where the determining the device types of all devices in the third device set is the same as the determining the device types of all devices in the first device set, and detailed description thereof will be omitted herein.
Optionally, for the determining, based on the first mac address data, device types of each device in the set of all first devices directly connected to the first network device in the specified local area network may specifically include: determining the unique organization identifier corresponding to each mac address; determining manufacturer information of equipment corresponding to each mac address based on the organization unique identification; and determining the equipment type of equipment corresponding to each mac address in the first mac address data based on the manufacturer information and the corresponding relation between each mac address and the IP address.
Wherein OUI (Organizationally Unique Identifier) is an abbreviation for organization unique identification, which is a globally unique identification number defined by IEEE (Institute of Electrical and Electronics Engineers ); in a computer network, OUI generally refers to the first three bytes of a MAC address, also referred to as the vendor identification code of the MAC address. Each network device manufacturer is assigned a unique OUI to identify the source of its device manufacture. By looking at the OUI part of the MAC address, the manufacturer and origin of the device can be determined; the OUI consists of three bytes, each byte being represented in hexadecimal, for a total of 6 hexadecimal characters; the first 3 characters represent the manufacturer of the device and the last 3 characters are used to further identify a particular device model; it should be noted that OUI is only used to identify manufacturer information of a device and is not related to the functionality or configuration of the device.
Thus, by identifying the first three bytes of each mac address, the unique organization identifier corresponding thereto can be determined.
203. And screening a second network device responsible for the routing function from the devices based on the device types, wherein the device types of the second network device are target type devices.
After knowing the device type of each device, the device can be selected for the target type device.
204. And acquiring a mac address forwarding table of each target type device, and determining the connection information of each port of each target type device based on the mac address forwarding table.
Wherein the MAC address forwarding table (MAC address forwarding table) is a table stored in a network device (e.g., switch, router) for implementing two-layer data link layer forwarding. It records the mapping relationship between different MAC addresses and corresponding interfaces to direct the network device to forward the data frame from the source MAC address to the destination MAC address.
In a Local Area Network (LAN), when a network device receives a frame of data, it determines to which interface the frame of data should be forwarded by looking up the MAC address forwarding table. The specific steps are as follows: learning a MAC address: when a network device receives a data frame for the first time, adding the corresponding relation between a source MAC address and a receiving port in the data frame to an MAC address forwarding table; updating the MAC address: if the network device receives a data frame already existing in the forwarding table, it updates the corresponding receiving port information; this ensures that the interface mapping in the forwarding table is up-to-date; forwarding data: searching a corresponding interface in an MAC address forwarding table according to a target MAC address, and forwarding a data frame to the interface; if no corresponding interface information is found, the data is broadcast to all interfaces (except the interface where the receiver is located).
It should be noted that the MAC address forwarding table is dynamic and updated in real time as communications occur in the network. In addition, MAC address forwarding tables are typically based on a flat lan environment, where forwarding logic may be different if there are multiple subnets or if a particular network configuration such as a Virtual Local Area Network (VLAN) is employed.
Alternatively, the mac address forwarding table of each target type device may be obtained by using a network management tool, and specifically, a network management tool suitable for the current network environment and requirements may be selected, for example Wireshark, nmap, solarWinds. Scanning devices within a local area network may obtain a MAC address forwarding table through functions or commands provided by the tool. And obtaining a device list and corresponding MAC address information in the network according to the scanning result.
Optionally, the determining, based on the mac address forwarding table, connection information of each port of each target type device includes: obtaining mac address data maintained by each target type device; based on the mac address forwarding table, determining the IP address of forwarding physical equipment and the number of IP addresses of forwarding physical equipment of each port of each target type equipment; and determining the connection information of the ports between each port of each target type device and other devices based on the IP address of each port of each target type device, the IP address number of the forwarding physical devices and the mac address data maintained by each target type device.
The determining, based on the IP address of the forwarding physical device, the number of IP addresses of the forwarding physical device, and mac address data maintained by the target devices, connection information of ports between each port of the target devices and other devices may specifically include: if the number of the IP addresses of the forwarding physical devices is larger than 1, determining a number parameter of the target type devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices, determining a containing relation of other devices connected with each port of each target type device based on mac address data maintained by each target type device, and then constructing a superior-inferior relation of the other devices connected with each port of each target type device based on the number parameter and the containing relation; and if the number of the IP addresses of the forwarding physical devices is 1, determining the connection relation of other devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices.
Based on the quantity parameter and the inclusion relation, constructing a context relation of other devices connected with each port of each target type device, wherein the context relation specifically comprises the following steps: if the number parameter is 0, constructing connection relations of other non-target type devices connected with each port of each target type device; if the number parameter is greater than 0, building the upper-lower relationship of other target type devices connected with each port of each target type device based on the inclusion relationship.
Optionally, the determining, based on the mac address forwarding table, connection information of each port of each target type device may further be implemented by the following manner, which specifically includes: determining a flow data parameter of each port of each target type device based on the mac address forwarding table; determining the similarity between each port of each target type device based on the flow data parameters of each port of each target type device; and determining the connection information of each port of each target type device based on the similarity.
Wherein the traffic data parameter includes a traffic flow rate of each port of each target type device, and determining connection information of each port of each target type device based on the similarity may include: and matching the ports with the same similarity or within the error range, namely, identifying the matched ports to be connected with each other, and determining the connection information of each port of each target type device.
205. Based on the connection information, a network topology of the specified local area network is constructed.
In the embodiment of the application, the network topology of the appointed local area network is constructed based on the connection information and the equipment information of all the equipment directly or indirectly connected with the first network equipment in the appointed local area network, wherein the equipment information comprises the equipment type, the equipment name and the IP address of each equipment.
Specifically, according to the collected network equipment information and connection information, a network topology graph is drawn by combining a proper topology drawing tool (such as Microsoft Visio, cisco Packet Tracer, lucidchart and the like). The different network devices are represented in the figure by using appropriate graphic symbols, and the connection relation between the devices is represented by using connecting lines; more detailed information such as a trunk line, a convergence point, subnet division, VLAN configuration and the like is added into the topological graph so as to better describe the structure of the local area network; periodically updating and maintaining the network topology map to reflect network changes and the addition of new devices; when new equipment or connection is changed, the topological graph is updated in time, and the accuracy of the topological graph is maintained.
According to the embodiment of the application, if a network topology construction request for a specified local area network is received, first network equipment which is connected with a server and is responsible for a routing function and first mac address data maintained by the first network equipment are determined based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment; determining, based on the first mac address data, device types specifying all devices in the local area network that are directly or indirectly connected to the first network device; screening out second network equipment responsible for a routing function from the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; the method comprises the steps of obtaining a mac address forwarding table of each target type device, determining connection information of each port of each target type device based on the mac address forwarding table, constructing a network topology of a designated local area network based on the connection information, realizing the universal identification of various devices, avoiding the occurrence of misidentification and missed identification of the devices in the local area network, and searching each device in the designated local area network in a divergent mode, so that the network topology of the designated local area network is constructed accurately and efficiently.
In one embodiment of the application, the method further comprises: acquiring port information of each target type device in a preset time period; determining target network flow rate data of each day in the preset time period based on the port information; constructing a fitting straight line of the target network flow rate data based on the target network flow rate data; and monitoring the network flow of the ports of each target type device based on a preset network flow rate threshold and the fitting straight line.
The preset time period can be one day, three days, one week or one month or one quarter, and can be specifically set according to actual requirements; the target network flow rate data can be highest network flow rate data, lowest network flow rate data or real-time network flow rate data and average network flow rate data; the network flow rate threshold value corresponds to the target network flow rate data, if the target network flow rate data is the highest network flow rate data, the selected network flow rate threshold value is the highest network flow rate threshold value, otherwise, if the target network flow rate data is the lowest network flow rate data, the selected network flow rate threshold value is the lowest network flow rate threshold value; and selecting a fitting straight line of y=kx+b, wherein x in the fitting straight line corresponds to the date or the day, and y corresponds to the flow velocity data of the target network.
Optionally, acquiring port information of each target type device in a preset time period specifically includes: determining a target type device: determining a target type device such as a switch, a router, etc. for acquiring port information; collecting device information: collecting detailed information of target equipment, including equipment name, IP address, management credentials and the like; connecting to the target type device using a pre-configured network management tool, such as SNMP (Simple Network Management Protocol) management software or a network monitoring system with management functions; configuration time period: setting a required time period in a management tool, and limiting the time period to a preset time period for acquiring port information, so that relevant data in the time period can be filtered; acquiring port information: the network management tool executes corresponding commands or operations to acquire port information of the target type device, wherein the port information can specifically comprise information such as port state, port rate, connection state, MAC address table and the like, and the port information can specifically be selected and adjusted according to actual requirements.
Optionally, based on a preset network flow rate threshold and the fitted straight line, monitoring the network flow of the port of each target type device may specifically include: and (3) acquiring a y value (target network flow rate data) corresponding to the fitting straight line in real time, comparing the y value with a network flow rate threshold value to obtain a comparison result, and if the comparison result is abnormal, carrying out early warning on the network flow of the port of each target type device so as to realize monitoring, wherein the comparison result is also related to the type of the target network flow rate data, if the target network flow rate data is the highest network flow rate data, the comparison result is abnormal when the highest network flow rate data exceeds the network flow rate threshold value, otherwise, the comparison result is normal, if the target network flow rate data is the lowest network flow rate data, and if the lowest network flow rate data is lower than the network flow rate threshold value, the comparison result is abnormal, otherwise, the comparison result is normal.
According to the embodiment of the application, the network flow of the port of each target type device is monitored through the scheme, so that the network bottleneck can be identified, the abnormal flow can be detected, the capacity and resource planning can be planned subsequently, and the performance optimization and adjustment can be realized.
In one embodiment of the present application, after constructing the network topology of the specified local area network based on the connection information, the method further comprises: determining network topology storage data based on the attribute of each node in the network topology, the connection information among each node and a preset target storage structure; creating a target intelligent contract based on the attribute of each node in the network topology and the connection information between each node; and storing the network topology storage data into a preset blockchain based on the target intelligent contract.
According to the embodiment of the application, through the scheme, the network topology storage data is stored in the preset blockchain, and the security of the network topology data of the local area network is improved.
In order to better implement the network topology construction method according to the embodiment of the present application, on the basis of the network topology construction method, the embodiment of the present application further provides a network topology construction device, as shown in fig. 3, where the network topology construction device 300 includes:
A first determining unit 301, configured to determine, if a network topology construction request for a specified local area network is received, a first network device responsible for a routing function and first mac address data maintained by the first network device, which is connected to the server, based on preset generic connection configuration data in the server, where a device type of the first network device is a target type device;
a second determining unit 302, configured to determine, based on the first mac address data, device types of all devices directly or indirectly connected to the first network device in the specified local area network;
a first screening unit 303, configured to screen, based on the device type, a second network device responsible for a routing function from devices, where a device type of the second network device is a target type device;
a first obtaining unit 304 and a third determining unit 305, configured to obtain a mac address forwarding table of each target type device, and determine connection information of each port of each target type device based on the mac address forwarding table;
a first construction unit 306, configured to construct a network topology of the specified local area network based on the connection information.
Optionally, the third determining unit 305 specifically includes:
the second acquisition unit is used for acquiring mac address data maintained by each target type device;
a fourth determining unit, configured to determine, based on the mac address forwarding table, an IP address of a forwarding physical device and the number of IP addresses of forwarding physical devices of each port of each target type device;
and a fifth determining unit, configured to determine connection information of ports between each port of each target type device and other devices based on the forwarding physical device IP address of each port of each target type device, the number of forwarding physical device IP addresses, and mac address data maintained by each target type device.
Optionally, the fifth determining unit is specifically configured to:
if the number of the IP addresses of the forwarding physical devices is larger than 1, determining a number parameter of the target type devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices, determining a containing relation of other devices connected with each port of each target type device based on mac address data maintained by each target type device, and then constructing a superior-inferior relation of the other devices connected with each port of each target type device based on the number parameter and the containing relation;
And if the number of the IP addresses of the forwarding physical devices is 1, determining the connection relation of other devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices.
Optionally, the third determining unit 305 is specifically configured to include:
determining a flow data parameter of each port of each target type device based on the mac address forwarding table;
determining the similarity between each port of each target type device based on the flow data parameters of each port of each target type device;
and determining the connection information of each port of each target type device based on the similarity.
Optionally, the second determining unit 302 is specifically configured to:
determining the device type of each device in a first device set which is directly connected with the first network device in the appointed local area network based on the first mac address data;
screening all third network devices responsible for a routing function from the first device set to obtain a second device set, wherein the device type of the third network device is target type device;
acquiring second mac address data maintained by each third network device in the second device set based on preset configuration protocol data;
And determining the device types of all devices in the third device set indirectly connected with the first network device in the appointed local area network based on the second mac address data until the whole appointed local area network is traversed to obtain the device types of all the devices in the appointed local area network.
Optionally, the device is further configured to:
acquiring port information of each target type device in a preset time period;
determining target network flow rate data of each day in the preset time period based on the port information;
constructing a fitting straight line of the target network flow rate data based on the target network flow rate data;
and monitoring the network flow of the ports of each target type device based on a preset network flow rate threshold and the fitting straight line.
Optionally, after constructing the network topology of the specified local area network based on the connection information, the apparatus is further configured to:
determining network topology storage data based on the attribute of each node in the network topology, the connection information among each node and a preset target storage structure;
creating a target intelligent contract based on the attribute of each node in the network topology and the connection information between each node;
And storing the network topology storage data into a preset blockchain based on the target intelligent contract.
In the embodiment of the present application, through the first determining unit 301, if a network topology construction request for a specified local area network is received, the first network device responsible for a routing function and first mac address data maintained by the first network device, which is connected to the server, are determined based on preset generic connection configuration data in the server, where a device type of the first network device is a target type device; a second determining unit 302, configured to determine, based on the first mac address data, device types of all devices directly or indirectly connected to the first network device in the specified local area network; a first screening unit 303, configured to screen, based on the device type, a second network device responsible for a routing function from devices, where a device type of the second network device is a target type device; a first obtaining unit 304 and a third determining unit 305, configured to obtain a mac address forwarding table of each target type device, and determine connection information of each port of each target type device based on the mac address forwarding table; the first construction unit 306 is configured to construct the network topology of the specified local area network based on the connection information, so that the universal identification of various devices is realized, the occurrence of misidentification and missing identification of devices in the local area network is avoided, and each device in the specified local area network is found in a divergent manner, so that the network topology of the specified local area network is accurately and efficiently constructed.
In addition to the above description for the network topology construction method and apparatus, the embodiment of the present application further provides a computer device, which integrates any one of the network topology construction apparatuses provided in the embodiment of the present application, where the computer device includes:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to perform the operations of any of the methods described in any of the network topology construction method embodiments above by the processor.
The embodiment of the application also provides computer equipment which integrates any one of the network topology construction devices provided by the embodiment of the application. As shown in fig. 4, a schematic structural diagram of a computer device according to an embodiment of the present application is shown, specifically:
the computer device may include one or more processors 401 of a processing core, a storage unit 402 of one or more computer readable storage media, a power supply 403, and an input unit 404, among other components. Those skilled in the art will appreciate that the computer device structure shown in FIG. 4 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components. Wherein:
The processor 401 is a control center of the computer device, connects respective portions of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the storage unit 402 and calling data stored in the storage unit 402, thereby performing overall monitoring of the computer device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The storage unit 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by running the software programs and modules stored in the storage unit 402. The storage unit 402 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 (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, the storage unit 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory unit 402 may also include a memory controller to provide the processor 401 with access to the memory unit 402.
The computer device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of charge, discharge, and power consumption management may be performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The computer device may also include an input unit 404, which input unit 404 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit or the like, which is not described herein. In particular, in the embodiment of the present application, the processor 401 in the computer device loads executable files corresponding to the processes of one or more application programs into the storage unit 402 according to the following instructions, and the processor 401 executes the application programs stored in the storage unit 402, so as to implement various functions, as follows:
If a network topology construction request for a specified local area network is received, determining first network equipment which is connected with the server and is responsible for a routing function and first mac address data maintained by the first network equipment based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment; determining the device types of all devices directly or indirectly connected with the first network device in the appointed local area network based on the first mac address data; screening out second network equipment responsible for a routing function from all the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; obtaining a mac address forwarding table of each target type device, and determining connection information of each port of each target type device based on the mac address forwarding table; and constructing the network topology of the appointed local area network based on the connection information.
According to the embodiment of the application, if a network topology construction request for a specified local area network is received, first network equipment which is connected with a server and is responsible for a routing function and first mac address data maintained by the first network equipment are determined based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment; determining, based on the first mac address data, device types specifying all devices in the local area network that are directly or indirectly connected to the first network device; screening out second network equipment responsible for a routing function from the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; the method comprises the steps of obtaining a mac address forwarding table of each target type device, determining connection information of each port of each target type device based on the mac address forwarding table, constructing a network topology of a designated local area network based on the connection information, realizing the universal identification of various devices, avoiding the occurrence of misidentification and missed identification of the devices in the local area network, and searching each device in the designated local area network in a divergent mode, so that the network topology of the designated local area network is constructed accurately and efficiently.
To this end, embodiments of the present application provide a computer-readable storage medium, which may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like. The computer readable storage medium stores a plurality of instructions that can be loaded by a processor to perform steps in any of the network topology construction methods provided by the embodiments of the present application. For example, the instructions may perform the steps of:
if a network topology construction request for a specified local area network is received, determining first network equipment which is connected with the server and is responsible for a routing function and first mac address data maintained by the first network equipment based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment; determining the device types of all devices directly or indirectly connected with the first network device in the appointed local area network based on the first mac address data; screening out second network equipment responsible for a routing function from all the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment; obtaining a mac address forwarding table of each target type device, and determining connection information of each port of each target type device based on the mac address forwarding table; and constructing the network topology of the appointed local area network based on the connection information.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The foregoing has described in detail the method, apparatus, computer device and readable storage medium for constructing a network topology according to the embodiments of the present application, and specific examples are applied to illustrate the principles and embodiments of the present application, where the foregoing description of the embodiments is only for helping to understand the method and core ideas of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (6)

1. A network topology construction method, applied to a server, comprising:
if a network topology construction request for a specified local area network is received, determining first network equipment which is connected with the server and is responsible for a routing function and first mac address data maintained by the first network equipment based on preset universal connection configuration data in the server, wherein the equipment type of the first network equipment is target type equipment;
Determining the device types of all devices directly or indirectly connected with the first network device in the appointed local area network based on the first mac address data;
screening out second network equipment responsible for a routing function from all the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment;
obtaining a mac address forwarding table of each target type device, and determining connection information of each port of each target type device based on the mac address forwarding table;
constructing a network topology of the appointed local area network based on the connection information;
the determining, based on the mac address forwarding table, connection information of each port of each target type device includes:
obtaining mac address data maintained by each target type device;
based on the mac address forwarding table, determining the IP address of forwarding physical equipment and the number of IP addresses of forwarding physical equipment of each port of each target type equipment;
determining connection information of ports between each port of each target type device and other devices based on IP addresses of forwarding physical devices of each port of each target type device, IP address numbers of forwarding physical devices and mac address data maintained by each target type device;
The determining connection information of ports between each port of each target type device and other devices based on the forwarding physical device IP address of each port of each target type device, the number of forwarding physical device IP addresses, and mac address data maintained by each target type device includes:
if the number of the IP addresses of the forwarding physical devices is larger than 1, determining a number parameter of the target type devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices, determining a containing relation of other devices connected with each port of each target type device based on mac address data maintained by each target type device, and then constructing a superior-inferior relation of the other devices connected with each port of each target type device based on the number parameter and the containing relation;
if the number of the IP addresses of the forwarding physical devices is 1, determining the connection relation of other devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices;
wherein the determining, based on the first mac address data, device types of all devices directly or indirectly connected to the first network device in the specified lan includes:
Determining the device type of each device in a first device set which is directly connected with the first network device in the appointed local area network based on the first mac address data;
screening all third network devices responsible for a routing function from the first device set to obtain a second device set, wherein the device type of the third network device is target type device;
acquiring second mac address data maintained by each third network device in the second device set based on preset configuration protocol data;
determining the device types of all devices in the third device set indirectly connected with the first network device in the appointed local area network based on the second mac address data until the whole appointed local area network is traversed to obtain the device types of all the devices in the appointed local area network;
wherein determining, based on the first mac address data, device types of devices in the set of all first devices directly connected to the first network device in the specified local area network includes: determining the unique organization identifier corresponding to each mac address; determining manufacturer information of equipment corresponding to each mac address based on the organization unique identification; and determining the equipment type of equipment corresponding to each mac address in the first mac address data based on the manufacturer information and the corresponding relation between each mac address and the IP address.
2. The network topology construction method of claim 1, further comprising:
acquiring port information of each target type device in a preset time period;
determining target network flow rate data of each day in the preset time period based on the port information;
constructing a fitting straight line of the target network flow rate data based on the target network flow rate data;
and monitoring the network flow of the ports of each target type device based on a preset network flow rate threshold and the fitting straight line.
3. The network topology construction method of claim 1, wherein after constructing the network topology of the specified local area network based on the connection information, the method further comprises:
determining network topology storage data based on the attribute of each node in the network topology, the connection information among each node and a preset target storage structure;
creating a target intelligent contract based on the attribute of each node in the network topology and the connection information between each node;
and storing the network topology storage data into a preset blockchain based on the target intelligent contract.
4. A network topology construction apparatus, applied to a server, comprising:
A first determining unit, configured to determine, if a network topology construction request for a specified local area network is received, a first network device responsible for a routing function and first mac address data maintained by the first network device, which is connected to the server, based on preset generic connection configuration data in the server, where a device type of the first network device is a target type device;
a second determining unit, configured to determine, based on the first mac address data, device types of all devices directly or indirectly connected to the first network device in the specified local area network;
the first screening unit is used for screening second network equipment responsible for a routing function from the equipment based on the equipment type, wherein the equipment type of the second network equipment is target type equipment;
the first acquisition unit and the third determination unit are respectively used for acquiring a mac address forwarding table of each target type device and determining the connection information of each port of each target type device based on the mac address forwarding table;
a first construction unit, configured to construct a network topology of the specified local area network based on the connection information;
the determining, based on the mac address forwarding table, connection information of each port of each target type device includes:
Obtaining mac address data maintained by each target type device;
based on the mac address forwarding table, determining the IP address of forwarding physical equipment and the number of IP addresses of forwarding physical equipment of each port of each target type equipment;
determining connection information of ports between each port of each target type device and other devices based on IP addresses of forwarding physical devices of each port of each target type device, IP address numbers of forwarding physical devices and mac address data maintained by each target type device;
the determining connection information of ports between each port of each target type device and other devices based on the forwarding physical device IP address of each port of each target type device, the number of forwarding physical device IP addresses, and mac address data maintained by each target type device includes:
if the number of the IP addresses of the forwarding physical devices is larger than 1, determining a number parameter of the target type devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices, determining a containing relation of other devices connected with each port of each target type device based on mac address data maintained by each target type device, and then constructing a superior-inferior relation of the other devices connected with each port of each target type device based on the number parameter and the containing relation;
If the number of the IP addresses of the forwarding physical devices is 1, determining the connection relation of other devices connected with each port of each target type device based on the IP addresses of the forwarding physical devices;
wherein the determining, based on the first mac address data, device types of all devices directly or indirectly connected to the first network device in the specified lan includes:
determining the device type of each device in a first device set which is directly connected with the first network device in the appointed local area network based on the first mac address data;
screening all third network devices responsible for a routing function from the first device set to obtain a second device set, wherein the device type of the third network device is target type device;
acquiring second mac address data maintained by each third network device in the second device set based on preset configuration protocol data;
determining the device types of all devices in the third device set indirectly connected with the first network device in the appointed local area network based on the second mac address data until the whole appointed local area network is traversed to obtain the device types of all the devices in the appointed local area network;
Wherein determining, based on the first mac address data, device types of devices in the set of all first devices directly connected to the first network device in the specified local area network includes: determining the unique organization identifier corresponding to each mac address; determining manufacturer information of equipment corresponding to each mac address based on the organization unique identification; and determining the equipment type of equipment corresponding to each mac address in the first mac address data based on the manufacturer information and the corresponding relation between each mac address and the IP address.
5. A computer device, the computer device comprising:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the network topology construction method of any one of claims 1 to 3.
6. A computer-readable storage medium, having stored thereon a computer program, the computer program being loaded by a processor to perform the steps in the network topology construction method of any of claims 1 to 3.
CN202311075876.8A 2023-08-25 2023-08-25 Network topology construction method, device, computer equipment and readable storage medium Active CN116827801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311075876.8A CN116827801B (en) 2023-08-25 2023-08-25 Network topology construction method, device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311075876.8A CN116827801B (en) 2023-08-25 2023-08-25 Network topology construction method, device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN116827801A CN116827801A (en) 2023-09-29
CN116827801B true CN116827801B (en) 2023-12-15

Family

ID=88125987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311075876.8A Active CN116827801B (en) 2023-08-25 2023-08-25 Network topology construction method, device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116827801B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117499219B (en) * 2023-12-26 2024-04-02 苏州元脑智能科技有限公司 Network data processing method and device, storage medium and electronic equipment

Citations (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998018306A2 (en) * 1996-10-28 1998-05-07 Switchsoft Systems, Inc. Method and apparatus for generating a network topology
US6377987B1 (en) * 1999-04-30 2002-04-23 Cisco Technology, Inc. Mechanism for determining actual physical topology of network based on gathered configuration information representing true neighboring devices
US6795403B1 (en) * 2000-03-31 2004-09-21 Cisco Technology, Inc. Automatic discovery of switch devices in a network
CN101610178A (en) * 2009-07-20 2009-12-23 南京联创科技股份有限公司 Method for obtaining physical layer link network topology based on address forwarding mechanism
CN101764709A (en) * 2009-12-29 2010-06-30 福建星网锐捷网络有限公司 Network physical topology discovering method and network management server based on SNMP
CN101873230A (en) * 2010-07-05 2010-10-27 北京星网锐捷网络技术有限公司 Method and device for discovering physical network topology
CN102143007A (en) * 2011-05-03 2011-08-03 中国南方电网有限责任公司 Distribution-based hierarchical network topology discovery method
CN103036725A (en) * 2012-12-17 2013-04-10 华为技术有限公司 Network administration device and method for discovery of network topology
CN103716187A (en) * 2013-12-20 2014-04-09 新浪网技术(中国)有限公司 Network topology structure determination method and system
CN103905221A (en) * 2012-12-26 2014-07-02 成都勤智数码科技股份有限公司 General topological link accurate discovery method
CN104125153A (en) * 2014-08-12 2014-10-29 华为技术有限公司 Network topology discovery method and device
CN105072039A (en) * 2015-07-31 2015-11-18 山东蚁巡网络科技有限公司 Link layer network topology discovery method
CN105897490A (en) * 2016-06-24 2016-08-24 深圳市风云实业有限公司 Automatic network topology discovery method
CN106161103A (en) * 2016-08-18 2016-11-23 上海帝联信息科技股份有限公司 Switch-layer topology construction method and device
CN106302397A (en) * 2016-07-29 2017-01-04 北京北信源软件股份有限公司 A kind of equipment identification system based on device-fingerprint
CN108206792A (en) * 2016-12-16 2018-06-26 北京神州泰岳软件股份有限公司 The topology discovery method and device of interchanger
CN110474816A (en) * 2019-09-24 2019-11-19 珠海格力电器股份有限公司 The method and storage medium of discovering network topology
CN111343021A (en) * 2020-02-27 2020-06-26 中国移动通信集团江苏有限公司 Method, device, equipment and medium for generating network topology structure
WO2020165627A1 (en) * 2019-02-12 2020-08-20 Telefonaktiebolaget Lm Ericsson (Publ) Limited flooding in dense graphs
CN111600762A (en) * 2020-06-02 2020-08-28 山东中创软件商用中间件股份有限公司 Network topology structure generation method, device, equipment and medium
CN111654402A (en) * 2020-06-23 2020-09-11 中国平安财产保险股份有限公司 Network topology creating method, device, equipment and storage medium
WO2020212997A1 (en) * 2019-04-16 2020-10-22 Telefonaktiebolaget Lm Ericsson (Publ) Generating and utilizing topology information for an ethernet ring to support network management
CN111934921A (en) * 2020-07-29 2020-11-13 深信服科技股份有限公司 Network topology discovery method and device, equipment and storage medium
CN112822053A (en) * 2021-01-13 2021-05-18 科大国创云网科技有限公司 SNMP-based link layer network topology structure discovery method and system
CN112953774A (en) * 2021-02-25 2021-06-11 山东英信计算机技术有限公司 Network topology generation method, system, equipment and computer storage medium
CN114338413A (en) * 2021-12-30 2022-04-12 中国工商银行股份有限公司 Method and device for determining topological relation of equipment in network and storage medium
CN114465904A (en) * 2020-10-21 2022-05-10 西门子(中国)有限公司 Network topology construction method and computing equipment
CN115552859A (en) * 2020-06-01 2022-12-30 西门子股份公司 Network topology construction method and device and computer readable medium
CN115866619A (en) * 2021-09-24 2023-03-28 中移(杭州)信息技术有限公司 Network topology construction method, device, equipment and storage medium
CN116132299A (en) * 2021-08-03 2023-05-16 华为技术有限公司 Processing method and device
CN116248587A (en) * 2023-05-06 2023-06-09 中国电子科技集团公司第五十四研究所 High-flux satellite network multicast routing system and method based on software definition
CN116260726A (en) * 2022-09-09 2023-06-13 广州广哈通信股份有限公司 Topology discovery method, device, terminal and storage medium
CN116319353A (en) * 2022-12-29 2023-06-23 天翼云科技有限公司 Method, device, equipment and medium for detecting network topology structure
CN116319408A (en) * 2022-09-07 2023-06-23 苏州迈科网络安全技术股份有限公司 Terminal equipment model identification method based on feature vector
CN116545861A (en) * 2023-04-19 2023-08-04 北京宝兰德软件股份有限公司 Network topology graph generation method, device and equipment
CN116566832A (en) * 2023-05-09 2023-08-08 浙江大华技术股份有限公司 Method and device for generating network topology information, storage medium and processor

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2669435A1 (en) * 2008-06-18 2009-12-18 Solana Networks Inc. Method and system for network topology discovery
CN104753697B (en) * 2013-12-26 2019-05-24 华为技术有限公司 A kind of method, equipment and system controlling the automatic beginning of the network equipment
US10764235B2 (en) * 2018-03-21 2020-09-01 Huawei Technologies Co., Ltd. Method and system for network access discovery
EP3973667A4 (en) * 2019-05-22 2023-01-11 ABB Schweiz AG Network topology discovery in substation
US11190405B2 (en) * 2019-12-10 2021-11-30 Vmware, Inc. Network topology generation based on network device information
US11706076B2 (en) * 2020-01-23 2023-07-18 Novnet Computing System Tech Co., Ltd. Computer system with computing devices, communication device, task processing device

Patent Citations (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998018306A2 (en) * 1996-10-28 1998-05-07 Switchsoft Systems, Inc. Method and apparatus for generating a network topology
US6377987B1 (en) * 1999-04-30 2002-04-23 Cisco Technology, Inc. Mechanism for determining actual physical topology of network based on gathered configuration information representing true neighboring devices
US6795403B1 (en) * 2000-03-31 2004-09-21 Cisco Technology, Inc. Automatic discovery of switch devices in a network
CN101610178A (en) * 2009-07-20 2009-12-23 南京联创科技股份有限公司 Method for obtaining physical layer link network topology based on address forwarding mechanism
CN101764709A (en) * 2009-12-29 2010-06-30 福建星网锐捷网络有限公司 Network physical topology discovering method and network management server based on SNMP
CN101873230A (en) * 2010-07-05 2010-10-27 北京星网锐捷网络技术有限公司 Method and device for discovering physical network topology
CN102143007A (en) * 2011-05-03 2011-08-03 中国南方电网有限责任公司 Distribution-based hierarchical network topology discovery method
CN103036725A (en) * 2012-12-17 2013-04-10 华为技术有限公司 Network administration device and method for discovery of network topology
CN103905221A (en) * 2012-12-26 2014-07-02 成都勤智数码科技股份有限公司 General topological link accurate discovery method
CN103716187A (en) * 2013-12-20 2014-04-09 新浪网技术(中国)有限公司 Network topology structure determination method and system
CN104125153A (en) * 2014-08-12 2014-10-29 华为技术有限公司 Network topology discovery method and device
CN105072039A (en) * 2015-07-31 2015-11-18 山东蚁巡网络科技有限公司 Link layer network topology discovery method
CN105897490A (en) * 2016-06-24 2016-08-24 深圳市风云实业有限公司 Automatic network topology discovery method
CN106302397A (en) * 2016-07-29 2017-01-04 北京北信源软件股份有限公司 A kind of equipment identification system based on device-fingerprint
CN106161103A (en) * 2016-08-18 2016-11-23 上海帝联信息科技股份有限公司 Switch-layer topology construction method and device
CN108206792A (en) * 2016-12-16 2018-06-26 北京神州泰岳软件股份有限公司 The topology discovery method and device of interchanger
WO2020165627A1 (en) * 2019-02-12 2020-08-20 Telefonaktiebolaget Lm Ericsson (Publ) Limited flooding in dense graphs
WO2020212997A1 (en) * 2019-04-16 2020-10-22 Telefonaktiebolaget Lm Ericsson (Publ) Generating and utilizing topology information for an ethernet ring to support network management
CN110474816A (en) * 2019-09-24 2019-11-19 珠海格力电器股份有限公司 The method and storage medium of discovering network topology
CN111343021A (en) * 2020-02-27 2020-06-26 中国移动通信集团江苏有限公司 Method, device, equipment and medium for generating network topology structure
CN115552859A (en) * 2020-06-01 2022-12-30 西门子股份公司 Network topology construction method and device and computer readable medium
CN111600762A (en) * 2020-06-02 2020-08-28 山东中创软件商用中间件股份有限公司 Network topology structure generation method, device, equipment and medium
CN111654402A (en) * 2020-06-23 2020-09-11 中国平安财产保险股份有限公司 Network topology creating method, device, equipment and storage medium
CN111934921A (en) * 2020-07-29 2020-11-13 深信服科技股份有限公司 Network topology discovery method and device, equipment and storage medium
CN114465904A (en) * 2020-10-21 2022-05-10 西门子(中国)有限公司 Network topology construction method and computing equipment
CN112822053A (en) * 2021-01-13 2021-05-18 科大国创云网科技有限公司 SNMP-based link layer network topology structure discovery method and system
CN112953774A (en) * 2021-02-25 2021-06-11 山东英信计算机技术有限公司 Network topology generation method, system, equipment and computer storage medium
CN116132299A (en) * 2021-08-03 2023-05-16 华为技术有限公司 Processing method and device
CN115866619A (en) * 2021-09-24 2023-03-28 中移(杭州)信息技术有限公司 Network topology construction method, device, equipment and storage medium
CN114338413A (en) * 2021-12-30 2022-04-12 中国工商银行股份有限公司 Method and device for determining topological relation of equipment in network and storage medium
CN116319408A (en) * 2022-09-07 2023-06-23 苏州迈科网络安全技术股份有限公司 Terminal equipment model identification method based on feature vector
CN116260726A (en) * 2022-09-09 2023-06-13 广州广哈通信股份有限公司 Topology discovery method, device, terminal and storage medium
CN116319353A (en) * 2022-12-29 2023-06-23 天翼云科技有限公司 Method, device, equipment and medium for detecting network topology structure
CN116545861A (en) * 2023-04-19 2023-08-04 北京宝兰德软件股份有限公司 Network topology graph generation method, device and equipment
CN116248587A (en) * 2023-05-06 2023-06-09 中国电子科技集团公司第五十四研究所 High-flux satellite network multicast routing system and method based on software definition
CN116566832A (en) * 2023-05-09 2023-08-08 浙江大华技术股份有限公司 Method and device for generating network topology information, storage medium and processor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Mobile Agent网络的物理拓扑自动发现算法;杨璐;陈华卿;高大伟;卓宁;;计算机测量与控制(第10期);全文 *

Also Published As

Publication number Publication date
CN116827801A (en) 2023-09-29

Similar Documents

Publication Publication Date Title
US10887192B2 (en) Targeted network discovery and visualizations
WO2022037322A1 (en) Network topology management system and method for home networking
US9940153B2 (en) Method for generating configuration information, and network control unit
CN108366121A (en) The group network system and apparatus control method of the more intelligent gateways of Internet of Things
US9118587B2 (en) Network multi-path discovery
EP2748992B1 (en) Method for managing network hardware address requests with a controller
US9391886B2 (en) Identification of the paths taken through a network of interconnected devices
US8948029B2 (en) Naming network interface cards
EP2984799B1 (en) Identification of paths in a network of mixed routing/switching devices
EP3117571B1 (en) Executing loops
JP6193473B2 (en) Computer-implemented method, computer program product and computer
CN113452561B (en) Topology generation method, device, equipment and readable storage medium
CN116827801B (en) Network topology construction method, device, computer equipment and readable storage medium
JP4279300B2 (en) Network virtualization apparatus and network virtualization program
US9231848B2 (en) Method and system for an overlay management control network
US20090198806A1 (en) Data structure for managing sensor network using id of sensor node and method using the same
US8914503B2 (en) Detected IP link and connectivity inference
US7369513B1 (en) Method and apparatus for determining a network topology based on Spanning-tree-Algorithm-designated ports
CN101304333A (en) Method for establishing network topology in network management system
CN113055297A (en) Network topology discovery method and device
US20130246603A1 (en) System, method, and computer program product for automatic router discovery
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
CN105812168B (en) A kind of method and apparatus for drawing network topological diagram
CN117176639B (en) Multi-protocol-based network topology automatic discovery method and device
CN115426334B (en) Network address generation method, device, routing 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
GR01 Patent grant
GR01 Patent grant