CN111897983A - Network topological graph generation method, device and system based on graph database - Google Patents
Network topological graph generation method, device and system based on graph database Download PDFInfo
- Publication number
- CN111897983A CN111897983A CN202010717853.2A CN202010717853A CN111897983A CN 111897983 A CN111897983 A CN 111897983A CN 202010717853 A CN202010717853 A CN 202010717853A CN 111897983 A CN111897983 A CN 111897983A
- Authority
- CN
- China
- Prior art keywords
- information
- network
- entity
- entity nodes
- graph
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000010276 construction Methods 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 abstract description 5
- 230000000007 visual effect Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 3
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/51—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
- G06F16/288—Entity relationship models
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/53—Querying
- G06F16/532—Query formulation, e.g. graphical querying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9024—Graphs; Linked lists
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
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.
Description
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:
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.
Claims (10)
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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010717853.2A CN111897983A (en) | 2020-07-23 | 2020-07-23 | Network topological graph generation method, device and system based on graph database |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010717853.2A CN111897983A (en) | 2020-07-23 | 2020-07-23 | Network topological graph generation method, device and system based on graph database |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111897983A true CN111897983A (en) | 2020-11-06 |
Family
ID=73190543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010717853.2A Pending CN111897983A (en) | 2020-07-23 | 2020-07-23 | Network topological graph generation method, device and system based on graph database |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111897983A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112989150A (en) * | 2021-02-08 | 2021-06-18 | 中国农业银行股份有限公司 | Operation and maintenance diagram acquisition method, device, equipment and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932160A (en) * | 2011-08-10 | 2013-02-13 | 中兴通讯股份有限公司 | Resource management system |
CN103490926A (en) * | 2013-09-18 | 2014-01-01 | 湖南蚁坊软件有限公司 | Method for automatically acquiring network topology |
CN108170847A (en) * | 2018-01-18 | 2018-06-15 | 国网福建省电力有限公司 | A kind of big data storage method based on Neo4j chart databases |
CN108388623A (en) * | 2018-02-12 | 2018-08-10 | 平安科技(深圳)有限公司 | ER relationships generation method, device, computer equipment and storage medium |
CN109684418A (en) * | 2018-11-22 | 2019-04-26 | 全球能源互联网研究院有限公司 | Date storage method and device based on power grid chart database |
CN109840270A (en) * | 2018-12-23 | 2019-06-04 | 国网浙江省电力有限公司 | A kind of grid equipment approaches to IM based on Neo4j |
CN111245662A (en) * | 2020-03-09 | 2020-06-05 | 杭州迪普科技股份有限公司 | Method and device for displaying network topology |
-
2020
- 2020-07-23 CN CN202010717853.2A patent/CN111897983A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932160A (en) * | 2011-08-10 | 2013-02-13 | 中兴通讯股份有限公司 | Resource management system |
CN103490926A (en) * | 2013-09-18 | 2014-01-01 | 湖南蚁坊软件有限公司 | Method for automatically acquiring network topology |
CN108170847A (en) * | 2018-01-18 | 2018-06-15 | 国网福建省电力有限公司 | A kind of big data storage method based on Neo4j chart databases |
CN108388623A (en) * | 2018-02-12 | 2018-08-10 | 平安科技(深圳)有限公司 | ER relationships generation method, device, computer equipment and storage medium |
CN109684418A (en) * | 2018-11-22 | 2019-04-26 | 全球能源互联网研究院有限公司 | Date storage method and device based on power grid chart database |
CN109840270A (en) * | 2018-12-23 | 2019-06-04 | 国网浙江省电力有限公司 | A kind of grid equipment approaches to IM based on Neo4j |
CN111245662A (en) * | 2020-03-09 | 2020-06-05 | 杭州迪普科技股份有限公司 | Method and device for displaying network topology |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112989150A (en) * | 2021-02-08 | 2021-06-18 | 中国农业银行股份有限公司 | Operation and maintenance diagram acquisition method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8725859B2 (en) | Service network discovery | |
US8443078B2 (en) | Method of determining equivalent subsets of agents to gather information for a fabric | |
CN109739877B (en) | Database system and data management method | |
CN100466548C (en) | Searching method and its system for equipment traffic data | |
US20130212257A1 (en) | Computer program and monitoring apparatus | |
CN115033657B (en) | Inquiry method, device and equipment based on knowledge graph and storage medium | |
CN108255620A (en) | A kind of business logic processing method, apparatus, service server and system | |
CN108446327A (en) | Operation system dynamic creation method, device, computer equipment and storage medium | |
CN107947963A (en) | A kind of alarm method and device of the network topology link based on GIS map | |
CN102932160A (en) | Resource management system | |
CN109861869B (en) | Configuration file generation method and device | |
CN110413845A (en) | Resource storage method and device based on Internet of Things operating system | |
CN114722092A (en) | Time series data processing method, system, storage medium and electronic equipment | |
CN102957567B (en) | Server information management method and server managing device | |
CN114153862B (en) | Service data processing method, device, equipment and storage medium | |
CN111897983A (en) | Network topological graph generation method, device and system based on graph database | |
CN115756472B (en) | Cloud-edge cooperative industrial equipment digital twin operation monitoring method and system | |
CN116880840A (en) | Service interface generation method, service interface generation device, electronic equipment and medium | |
CN101562633B (en) | Visual service network user interactive system | |
CN111045757A (en) | Visual display system and method for IT resource operation state and storage medium | |
CN102325043B (en) | Topology generation method, device and system | |
CN115269254A (en) | Order abnormity determining method, device, equipment and medium | |
CN105323178A (en) | Routing information synchronization method and device for electric communication equipment | |
CN110633274A (en) | Alarm management method and device | |
CN115277437B (en) | Network topology construction method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201106 |