Network topological graph generation method, device and system based on graph database

文档序号:987762 发布日期:2020-11-06 浏览:10次 中文

阅读说明:本技术 一种基于图数据库的网络拓扑图生成方法、装置和系统 (Network topological graph generation method, device and system based on graph database ) 是由 高铭 徐晖 于 2020-07-23 设计创作,主要内容包括:本申请涉及一种基于图数据库的网络拓扑图生成方法、装置和系统,该方法包括:采集网络设备的相关信息;根据所述网络设备的相关信息确定图数据库中的实体节点和实体节点之间的关系信息;利用所述实体节点和实体节点之间的关系信息构建网络拓扑图。本申请提供的技术方案,可以提供一个直观明了的网络设备的网络拓扑图,便于运维人员的维护。(The application relates to a method, a device and a system for generating a network topological graph based on a graph database, wherein the method comprises the following steps: collecting related information of network equipment; determining entity nodes in a graph database and relation information between the entity nodes according to the related information of the network equipment; and constructing a network topology graph by using the entity nodes and the relationship information between the entity nodes. According to the technical scheme, a visual and clear network topological diagram of the network equipment can be provided, and maintenance of operation and maintenance personnel is facilitated.)

1. A method for generating a network topology map based on a map database, the method comprising:

collecting related information of network equipment;

determining entity nodes in a graph database and relation information between the entity nodes according to the related information of the network equipment;

and constructing a network topology graph by using the entity nodes and the relationship information between the entity nodes.

2. The method of claim 1, wherein the information related to the network device comprises:

connection information between network devices, network device information, and network device types.

3. The method of claim 2, wherein determining the entity nodes and relationship information between the entity nodes in the graph database based on the network device information comprises:

utilizing the network equipment as an entity node in a graph database;

and utilizing the connection information between the network devices as the relationship information between the entity nodes.

4. The method of claim 3, wherein determining the entity nodes and relationship information between the entity nodes in the graph database based on the network device information further comprises:

storing the network equipment information in a graph database for the attribute of the entity node;

storing the label for the entity node using the network device type in a graph database.

5. The method of claim 3, wherein determining the entity nodes and relationship information between the entity nodes in the graph database based on the network device information further comprises:

and using the attribute of the relationship information between the entity nodes as specific link information between the entity nodes.

6. The method of claim 5, wherein the specific link information between the entity nodes comprises:

network device port information, network device port status, and/or network device current information.

7. An apparatus for generating a network topology map based on a map database, the apparatus comprising:

the acquisition unit is used for acquiring related information of the network equipment;

the determining unit is used for determining entity nodes in the graph database and relation information between the entity nodes according to the related information of the network equipment;

and the construction unit is used for constructing a network topology graph by using the entity nodes and the relation information between the entity nodes.

8. A system for generating a network topology map based on a map database, the system comprising: the graph database based network topology generating apparatus, server and terminal of claim 7;

the server is used for receiving and storing a network topology map of a target entity node inquired through key information of the target entity node;

and the terminal is used for inquiring the network topology map of the target entity node in the server through the key information of the target entity node.

9. The system of claim 8, wherein the server comprises:

a memory for storing a network topology map constructed by the map database-based network topology map generating device;

and the processor is used for acquiring the network topological graph of the target entity node according to the key information of the target entity node sent by the terminal and sending the network topological graph of the entity node to the terminal.

10. The system of claim 8, wherein the key information of the target entity node comprises: and the related information of the network equipment corresponding to the target entity node.

Technical Field

The application belongs to the technical field of computer science and technology, and particularly relates to a method, a device and a system for generating a network topological graph based on a graph database.

Background

With the continuous development of the information society, the application of multiple remote computer rooms in enterprises enables the enterprises to have more and more network devices, and the connection relationship between the network architecture and the devices is more complex, so that the information amount is continuously increased. The common device information recorded by using the table can only be used as a data table to look up detailed information, and cannot provide an intuitive network topology for maintenance personnel.

Disclosure of Invention

In order to overcome the problem that the device information recorded by referring to the use table in the related art is not directly clear at least to a certain extent, the application provides a network topological graph generation method, device and system based on a graph database.

According to a first aspect of embodiments of the present application, there is provided a method for generating a network topology map based on a graph database, the method including:

collecting related information of network equipment;

determining entity nodes in a graph database and relation information between the entity nodes according to the related information of the network equipment;

and constructing a network topology graph by using the entity nodes and the relationship information between the entity nodes.

Further, the information related to the network device includes:

connection information between network devices, network device information, and network device types.

Further, the determining relationship information between the entity nodes in the graph database according to the network device information includes:

utilizing the network equipment as an entity node in a graph database;

and utilizing the connection information between the network devices as the relationship information between the entity nodes.

Further, the determining relationship information between the entity nodes in the graph database according to the network device information further includes:

storing the network equipment information in a graph database for the attribute of the entity node;

storing the label for the entity node using the network device type in a graph database.

Further, the determining relationship information between the entity nodes in the graph database according to the network device information further includes:

and using the attribute of the relationship information between the entity nodes as specific link information between the entity nodes.

Further, the specific link information between the entity nodes includes:

network device port information, network device port status, and/or network device current information.

According to a second aspect of embodiments of the present application, there is provided a graph database-based network topology generation apparatus, the apparatus including:

the acquisition unit is used for acquiring related information of the network equipment;

the determining unit is used for determining entity nodes in the graph database and relation information between the entity nodes according to the related information of the network equipment;

and the construction unit is used for constructing a network topology graph by using the entity nodes and the relation information between the entity nodes.

According to a third aspect of embodiments of the present application, there is provided a system for generating a network topology map based on a graph database, the system including: the network topological graph generating device based on the graph database, the server and the terminal;

the server is used for receiving and storing a network topology map of a target entity node inquired through key information of the target entity node;

and the terminal is used for inquiring the network topology map of the target entity node in the server through the key information of the target entity node.

Further, the server includes:

a memory for storing a network topology map constructed by the map database-based network topology map generating device;

and the processor is used for acquiring the network topological graph of the target entity node according to the key information of the target entity node sent by the terminal and sending the network topological graph of the entity node to the terminal.

Further, the key information of the target entity node includes: and the related information of the network equipment corresponding to the target entity node.

The technical scheme provided by the embodiment of the application can have the following beneficial effects:

according to the technical scheme, the method and the system for constructing the network topology map can provide a visual and clear network topology map about the network equipment by acquiring the relevant information of the network equipment, determining the relationship information between the entity nodes in the map database according to the relevant information of the network equipment and constructing the network topology map by utilizing the relationship information between the entity nodes, and are convenient for maintenance of operation and maintenance personnel.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.

FIG. 1 is a flow diagram illustrating a method for generating a graph-based network topology graph according to an exemplary embodiment;

FIG. 2 is a block diagram of an exemplary embodiment of a graph database based network topology map generation apparatus;

FIG. 3 is a block diagram illustrating a system for generating a network topology map based on a graph database according to an exemplary embodiment.

Detailed Description

Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

Fig. 1 is a diagram illustrating a method for generating a network topology map based on a graph database, which may be used in a terminal, but not limited to, as shown in fig. 1, according to an exemplary embodiment, and includes the following steps:

step 101, collecting related information of network equipment;

102, determining entity nodes in a graph database and relation information between the entity nodes according to related information of network equipment;

and 103, constructing a network topology graph by using the entity nodes and the relation information between the entity nodes.

It will be readily appreciated that the collected information about the network devices may be stored in a graph database.

In some embodiments, the information related to the network device may include, but is not limited to:

connection information between network devices, network device information, and network device types.

The connection information between the network devices may be, but is not limited to: network cable connection state or network port rate (100M or 1000M), and the like;

the network device information may be, but is not limited to: network device model or network device hardware usage, etc.

The device type may be, but is not limited to: a switch or router or firewall, etc.

Further, step 102 may be implemented by, but is not limited to, the following processes:

1021: utilizing network equipment as entity nodes in a graph database;

it will be readily appreciated that each network device is described as a physical node in a graph database, with each network device being instantiated.

1022: storing the attribute of the entity node in a graph database by using the network equipment information;

it should be noted that, the attribute of the entity node is stored in the graph database by using the network device information, so as to avoid additional query required to be done when obtaining detailed information (the additional query may be, but not limited to, a query that can specify a field, for example, if the model of the network device is desired to be known, a field that needs to be returned is specified during the query, and the query returns only the specified device model field).

1023: storing a tag using the network device type as an entity node in a graph database;

it should be noted that the label using the network device type as the entity node is stored in the graph database to distinguish the device type.

1024: utilizing the connection information between the network devices as the relationship information between the entity nodes;

1025: and using the attribute of the relationship information between the entity nodes as the specific link information between the entity nodes.

In some embodiments, specific link information between entity nodes may include, but is not limited to:

network device port information, network device port status, and/or network device current information.

According to the method for generating the network topological graph based on the graph database, the relevant information of the network equipment is collected, the relation information between the entity nodes in the graph database is determined according to the relevant information of the network equipment, and the network topological graph is constructed by utilizing the relation information between the entity nodes, so that the network topological graph related to the network equipment can be provided intuitively and clearly, and the maintenance of operation and maintenance personnel is facilitated.

An embodiment of the present invention further provides a device for generating a network topology map based on a map database, as shown in fig. 2, the device includes:

the acquisition unit is used for acquiring related information of the network equipment;

the determining unit is used for determining entity nodes in the graph database and relation information between the entity nodes according to the related information of the network equipment;

and the construction unit is used for constructing a network topology graph by utilizing the entity nodes and the relation information between the entity nodes.

Further, the related information of the network device includes:

connection information between network devices, network device information, and network device types.

Further, the determination unit includes:

a first determining module, configured to utilize a network device as an entity node in a graph database;

the second determining module is used for storing the attribute of the entity node in the graph database by using the network equipment information;

a third determining module, configured to store the label with the network device type as the entity node in the graph database;

a fourth determining module, configured to use connection information between network devices as relationship information between the entity nodes;

and the fifth determining module is used for utilizing the attribute of the relationship information as the specific link information between the entity nodes.

In some embodiments, specific link information between entity nodes may include, but is not limited to:

network device port information, network device port status, and/or network device current information.

According to the device for generating the network topological graph based on the graph database, the acquisition unit is used for acquiring the relevant information of the network equipment, the determination unit is used for determining the relationship information between the entity nodes in the graph database according to the relevant information of the network equipment, and the construction unit is used for constructing the network topological graph by using the relationship information between the entity nodes.

With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

An embodiment of the present invention further provides a system for generating a network topology map based on a map database, as shown in fig. 3, the system includes: the method comprises the steps that a network topological graph generating device, a server and a terminal are based on a graph database;

the server is respectively connected with a network topological graph generating device and a terminal based on a graph database;

the server is used for receiving and storing a network topology map of a target entity node inquired through key information of the target entity node;

and the terminal is used for inquiring the network topology map of the target entity node in the server through the key information of the target entity node.

In some optional embodiments, the terminal may click on any entity node through UI operation to query the network topology of the entity node.

It is easy to understand that the network topology of the target entity node queried in the server by the terminal may be multiple, and the network topology of the target entity node is a network topology formed by the entity node having a relationship with the target entity node and the target entity node.

In some embodiments, the terminal may be implemented by, but not limited to, a mobile phone, a computer, a tablet, or the like.

Further, the server includes:

a memory for storing a network topology map constructed by the map database-based network topology map generating device;

and the processor is used for acquiring the network topological graph of the target entity node according to the key information of the target entity node sent by the terminal and sending the network topological graph of the entity node to the terminal.

Further, the key information of the target entity node includes: and the related information of the network equipment corresponding to the target entity node.

In the system for generating the network topology map based on the map database provided by the embodiment, the server receives and stores the network topology map of the target entity node inquired through the key information of the target entity node, and the terminal inquires the network topology map of the target entity node in the server through the key information of the target entity node, so that the problem that in the prior art, when equipment information recorded by using a table is consulted, a visual and clear network topology cannot be provided is avoided; meanwhile, the maintenance of operation and maintenance personnel is facilitated.

It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.

It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.

Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.

It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.

It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.

In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.

The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.

In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:图片标注方法、装置、终端设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!