Movatterモバイル変換


[0]ホーム

URL:


CN112995042B - Method, device and equipment for generating service topological graph and storage medium - Google Patents

Method, device and equipment for generating service topological graph and storage medium
Download PDF

Info

Publication number
CN112995042B
CN112995042BCN202110509111.5ACN202110509111ACN112995042BCN 112995042 BCN112995042 BCN 112995042BCN 202110509111 ACN202110509111 ACN 202110509111ACN 112995042 BCN112995042 BCN 112995042B
Authority
CN
China
Prior art keywords
hosts
information
host
service
instructions
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
CN202110509111.5A
Other languages
Chinese (zh)
Other versions
CN112995042A (en
Inventor
程方全
简德书
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Clerware Technology Co ltd
Original Assignee
Shenzhen Clerware Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Clerware Technology Co ltdfiledCriticalShenzhen Clerware Technology Co ltd
Priority to CN202110509111.5ApriorityCriticalpatent/CN112995042B/en
Publication of CN112995042ApublicationCriticalpatent/CN112995042A/en
Application grantedgrantedCritical
Publication of CN112995042BpublicationCriticalpatent/CN112995042B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The invention relates to the technical field of data representation and discloses a method, a device, equipment and a storage medium for generating a service topological graph, wherein the method comprises the following steps: acquiring network information of each host in a service system; generating a to-be-connected instruction corresponding to each host according to the acquired network information; respectively sending the to-be-connected instructions to corresponding hosts, so that after receiving the to-be-connected instructions, the hosts perform connection tests with other hosts through the to-be-connected instructions to generate and feed back network connection information; the invention generates the service topological graph of the service system according to the network connection information fed back by each host, sends the instruction to be connected generated according to the network information to the corresponding host, generates the corresponding service topological graph according to the information fed back by the host, and shows the service accessibility among the hosts through the service topological graph.

Description

Method, device and equipment for generating service topological graph and storage medium
Technical Field
The present invention relates to the field of data representation technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a service topology map.
Background
With the increasing of users, the generated data is increased, and therefore, a data center needs to be configured to perform centralized and unified management on the generated data, a large-scale data center includes a large number of service system hosts, and network devices such as a plurality of routes, switches, firewalls and the like may need to pass through between the service system hosts, but the configuration of each network device may affect the accessibility of services in the service system hosts, resulting in a large number of reasons for inaccessible services, such as network inaccessibility, port inaccessibility, service non-operation and the like, at present, the reason for troubleshooting service access failure generally refers to that a manager uses a network testing device to troubleshoot the whole network connection device one by one, and generally, in order to troubleshoot a service access failure, the network of the whole data center needs to be troubleshoot once, which brings a large workload to the manager, the troubleshooting of the problem may not be accurate due to the carelessness of the administrator, thereby leaving the business system in an interrupted state for a long time.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method and a device for generating a service topological graph, and aims to solve the technical problem that an administrator cannot quickly diagnose the root of service interruption of a data center.
In order to achieve the above object, the present invention provides a method for generating a service topological graph, wherein the method for generating the service topological graph comprises the following steps:
acquiring network information of each host in a service system;
generating a to-be-connected instruction corresponding to each host according to the acquired network information;
respectively sending the to-be-connected instructions to corresponding hosts, so that after receiving the to-be-connected instructions, the hosts perform connection tests with other hosts through the to-be-connected instructions to generate and feed back network connection information;
and generating a service topological graph of the service system according to the network connection information fed back by each host.
Optionally, the sending the to-be-connected instruction to the corresponding host respectively, so that after the host receives the to-be-connected instruction, the host performs connection test with other hosts through the to-be-connected instruction to generate and feed back network connection information, including:
and respectively sending the to-be-connected instructions to corresponding hosts so that the hosts perform connection tests with other hosts through the to-be-connected instructions after receiving the to-be-connected instructions to obtain corresponding test results, and generating and feeding back corresponding network connection information based on the test results and preset return parameters.
Optionally, the feeding back the corresponding network connection information based on the test result and a preset return parameter includes:
and judging whether the instruction to be connected of each host in the service system can be reached or not according to the test result, if so, obtaining the passing information of the corresponding instruction to be connected, and generating and feeding back the corresponding network connection information according to the passing information and the preset return parameters.
Optionally, the sending the to-be-connected instruction to the corresponding host respectively, so that after the host receives the to-be-connected instruction, the host performs connection test with other hosts through the to-be-connected instruction to generate and feed back network connection information, including:
and respectively sending the to-be-connected instructions to corresponding hosts so that the hosts collect monitoring port information of the hosts after receiving the to-be-connected instructions, and sending the monitoring port information to a preset central server so that the preset central server generates target connection instructions according to the monitoring port information and sends the target connection instructions to the hosts so that the hosts can receive the target connection instructions and then perform connection tests with other hosts through the target connection instructions to generate and feed back network connection information.
Optionally, the to-be-connected instructions are respectively sent to corresponding hosts, so that after receiving the to-be-connected instructions, the hosts collect monitoring port information of the hosts, send the monitoring port information to a preset central server, so that the preset central server generates target connection instructions according to the monitoring port information, and sends the target connection instructions to the hosts, so that after receiving the target connection instructions, the hosts perform connection tests with other hosts through the target connection instructions to generate and feed back network connection information, including:
respectively sending the to-be-connected instructions to corresponding hosts so that after the hosts receive the to-be-connected instructions, collecting the monitoring port information of the host computer, sending the monitoring port information to a preset central server, so that the preset central server generates a target connection instruction according to the monitoring port information and sends the target connection instruction to the host computer, so that after the host computer receives the target connection instruction, judging whether the ports of the other hosts are connected or not according to the target connection instruction, if the ports of the other hosts are not connected, performing connection test with the ports of the other hosts which are not connected one by one to generate and feed back network connection information, and displaying a connection test result on the service topological graph, wherein the connection test result comprises accessible and inaccessible.
Optionally, the acquiring network information of each host in the service system includes:
acquiring identification information and IP information of each host in a service system;
and acquiring a corresponding subnet mask and gateway information according to the IP information, and taking the identification information, the subnet mask and the gateway information as the network information of each host in the service system.
Optionally, after the generating the service topology map of the service system according to the network connection information fed back by each host, the method further includes:
according to the service topological graph, network connection information of a host and a route in a service system is obtained;
and acquiring network connection fault information according to the network connection information of the host and the route in the service system, and displaying the network connection fault information on the service topological graph.
In addition, to achieve the above object, the present invention further provides a device for generating a service topology map, where the device for generating a service topology map includes:
the acquisition module is used for acquiring network information of each host in the service system;
the generation module is used for generating the to-be-connected instructions corresponding to the hosts according to the acquired network information;
the feedback module is used for respectively sending the to-be-connected instructions to the corresponding host computers so that the host computers perform connection tests with other host computers through the to-be-connected instructions after receiving the to-be-connected instructions to generate and feed back network connection information;
the generating module is further configured to generate a service topology map of the service system according to the network connection information fed back by each host.
In addition, to achieve the above object, the present invention further provides a device for generating a service topological graph, where the device for generating a service topological graph includes: a memory, a processor and a service topology map generation program stored on the memory and executable on the processor, the service topology map generation program being configured to implement the steps of the service topology map generation method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium, in which a generation program of a service topology map is stored, and the generation program of the service topology map realizes the steps of the generation method of the service topology map as described above when executed by a processor.
The method for generating the service topological graph comprises the steps of obtaining network information of each host in a service system; generating a to-be-connected instruction corresponding to each host according to the acquired network information; respectively sending the to-be-connected instructions to corresponding hosts, so that after receiving the to-be-connected instructions, the hosts perform connection tests with other hosts through the to-be-connected instructions to generate and feed back network connection information; generating a service topological graph of the service system according to the network connection information fed back by each host; according to the method and the device, the network information of each host in the service system is acquired, the to-be-connected instruction corresponding to each host is generated according to the network information, the to-be-connected instruction is sent to the corresponding host, so that the host performs connection test with other hosts according to the to-be-connected instruction after receiving the to-be-connected instruction to generate and feed back corresponding network connection information, the service topological graph of the service system is generated according to the network connection information fed back by the host, and the service accessibility among the hosts is displayed through the service topological graph.
Drawings
Fig. 1 is a schematic structural diagram of a device for generating a service topology map of a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of a method for generating a service topology map according to the present invention;
fig. 3 is a first service topology diagram of an embodiment of a method for generating a service topology diagram according to the present invention;
fig. 4 is a flowchart illustrating a second embodiment of a method for generating a service topology map according to the present invention;
fig. 5 is a second service topology diagram of an embodiment of the method for generating a service topology diagram according to the present invention;
fig. 6 is a flowchart illustrating a method for generating a service topology map according to a third embodiment of the present invention;
fig. 7 is a schematic functional module diagram of a first embodiment of a device for generating a service topology map according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a device for generating a service topology map of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the generating device of the service topology map may include: aprocessor 1001, such as a Central Processing Unit (CPU), acommunication bus 1002, auser interface 1003, anetwork interface 1004, and amemory 1005. Wherein acommunication bus 1002 is used to enable connective communication between these components. Theuser interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and theoptional user interface 1003 may also include a standard wired interface, a wireless interface. Thenetwork interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). TheMemory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. Thememory 1005 may alternatively be a storage device separate from theprocessor 1001.
Those skilled in the art will appreciate that the architecture shown in fig. 1 does not constitute a limitation of the generation apparatus of the traffic topology, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, amemory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a generation program of a service topology map.
In the generation apparatus of the service topology shown in fig. 1, thenetwork interface 1004 is mainly used for data communication with a network server; theuser interface 1003 is mainly used for data interaction with a user; theprocessor 1001 and thememory 1005 in the service topology generation device of the present invention may be arranged in the service topology generation device, and the service topology generation device invokes, through theprocessor 1001, a service topology generation program stored in thememory 1005, and executes the service topology generation method provided in the embodiment of the present invention.
Based on the hardware structure, the embodiment of the method for generating the service topological graph is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a method for generating a service topology map according to the present invention.
In a first embodiment, the method for generating the service topology map includes the following steps:
step S10, network information of each host in the service system is acquired.
It should be noted that the execution subject in this embodiment may be a generation device of a service topological graph, and may also be other devices that can implement the same or similar functions.
It should be understood that the network information of each host in the service system includes: the identification information of each host and the Internet Protocol information, the Internet Protocol Address (IP) in the Internet Protocol information has a subnet mask and gateway information corresponding to the Internet Protocol Address, the identification information of each host can be the name of the host, and the like, each IP Address includes two identification codes ID, i.e. a network ID and a host ID, all hosts on the same physical network use the same network ID, one host on the network (including a workstation on the network, a server, a router, and the like) has a host ID corresponding to the host ID, and the IP addresses uniformly distributed in the global scope are divided into three types: class A1.0.0.1-126.255.255.254, class B128.0.0.1-191.255.255.254, and class C192.0.0.1-223.255.255.254.
It can be understood that the obtaining of the network information of each host in the service system may specifically be implemented by installing a client program on the service system host, and then starting the client program, where the client program may directly collect the network information of each host in the service system, collect and sort the network information, and then send the sorted network information to the generation device of the service topological graph.
In a specific implementation, the generation device of the service topological graph obtains network information of each host in the service system.
And step S20, generating the to-be-connected instruction corresponding to each host according to the acquired network information.
It should be understood that the to-be-connected instruction is generated according to the acquired network information, after the network information is acquired, the network information needs to be classified, a type to which the network information belongs is acquired, and a corresponding to-be-connected instruction is generated according to the type to which the network information belongs, where the to-be-connected instruction is used for an instruction for a current host to connect with another host, for example, the acquired network information is divided into A, B and C types, then the generated to-be-connected instruction should be three to-be-connected instructions, i.e., a to-be-connected instruction of a1, B1, and C1, and therefore, the to-be-connected instruction changes with the change of the acquired network information.
In specific implementation, the generating device of the service topological graph generates the to-be-connected instruction corresponding to each host according to the acquired network information.
And step S30, respectively sending the to-be-connected instructions to corresponding hosts, so that after receiving the to-be-connected instructions, the hosts perform connection tests with other hosts through the to-be-connected instructions to generate and feed back network connection information.
It should be understood that the network connection information refers to network information in which the hosts are connected through a to-be-connected instruction, where the network connection information includes network information in which the current host and the other hosts are successfully connected or the connection is failed, specifically, the to-be-connected instruction is sent to the corresponding host, so that each host sends a connection request to the other hosts through the to-be-connected instruction after receiving the to-be-connected instruction, and if the other hosts do not make a feedback after receiving the request, it indicates that the current host and the other hosts are failed to be connected, and the information of the network connection failure is fed back.
In specific implementation, the generating device of the service topological graph respectively sends the to-be-connected instruction to the corresponding host, so that the host performs connection test with other hosts through the to-be-connected instruction after receiving the to-be-connected instruction, so as to generate and feed back network connection information.
And step S40, generating a service topological graph of the service system according to the network connection information fed back by each host.
It should be understood that the service topology map of the service system is generated according to the network connection information fed back by the hosts, and the network connection information includes: after obtaining the network connection information, the routing conditions of the current host and other hosts, the sequence of the passing routing connections, and the IP information of each routing node in the service system, the network connection information is represented on the same graph, and the obtained graph is the constructed service topology graph, for example, as shown in fig. 3, where fig. 3 is the first service topology graph of an embodiment of the method for generating the service topology graph of the present invention, the IP address of the host a is 172.16.2.5, the IP address of the host B is 192.168.4.5, and the IP address of the host C is 222.166.7.8, at this time, if the service topology graph among the host a, the host B, and the host C is to be obtained, then the network connection information among the host a and the host B needs to be obtained, and the network connection information among the host a and the host B is: the network sequentially passes through three routes of route No. 1 172.16.1.1, route No. 2 200.115.1.1 and route No. 3 192.168.1.1, and the network connection information between the host a 172.16.2.5 and the host C is: fig. 3 shows a service topology diagram obtained by the network connection through three routes, i.e., route 1 172.16.1.1, route 2 200.115.1.1, and route 4 222.166.1.1.
In a specific implementation, the service topological graph generating device generates the service topological graph of the service system according to the network connection information fed back by each host.
In the embodiment, network information of each host in a service system is acquired; generating a to-be-connected instruction corresponding to each host according to the acquired network information; respectively sending the to-be-connected instructions to corresponding hosts, so that after receiving the to-be-connected instructions, the hosts perform connection tests with other hosts through the to-be-connected instructions to generate and feed back network connection information; generating a service topological graph of the service system according to the network connection information fed back by each host; in this embodiment, network information of each host in a service system is acquired, a to-be-connected instruction corresponding to each host is generated according to the network information, and the to-be-connected instruction is sent to the corresponding host, so that the host performs connection test with other hosts according to the to-be-connected instruction after receiving the to-be-connected instruction to generate and feed back corresponding network connection information, and a service topology map of the service system is generated according to the network connection information fed back by the host, thereby effectively improving efficiency of acquiring network information faults.
In an embodiment, as shown in fig. 4, a second embodiment of the method for generating a service topology map according to the present invention is provided based on the first embodiment, where the step S30 includes:
step S301, the to-be-connected instructions are respectively sent to corresponding hosts, so that after the hosts receive the to-be-connected instructions, connection tests are carried out on the to-be-connected instructions and other hosts to obtain corresponding test results, and corresponding network connection information is fed back based on the test results and preset return parameters.
It is understood that the test results are divided into three types: the preset return parameters refer to that after receiving a to-be-connected instruction, each host performs connection test with other hosts according to the to-be-connected instruction to obtain a corresponding test result, and when returning the test result, corresponding return information is obtained, wherein the return information is the preset return parameters, and the preset return parameters include: all paths traversed, route IP, and time spent arriving at each route.
It should be understood that, after obtaining the test result, it is necessary to determine whether the instruction to be connected of each host in the service system is reachable, if the instruction to be connected of each host in the service system is reachable, the passing information of the corresponding instruction to be connected is obtained, the corresponding network connection information is fed back according to the passing information and the preset return parameter, if the instruction to be connected of each host in the service system is unreachable, the network is prompted to be in an unreachable state on the interface if the network is unreachable, if the network is reachable, a port for connecting the service is tried again, if the connection is successful, the service is accessible, otherwise, the service is inaccessible.
In specific implementation, the generating device of the service topological graph sends the to-be-connected instruction to the corresponding host respectively, so that after the host receives the to-be-connected instruction, the host performs connection test with other hosts through the to-be-connected instruction to obtain a corresponding test result, and feeds back corresponding network connection information based on the test result and preset return parameters.
It can be understood that after the service topological graph is obtained, network connection information of the host and the route in the service system is obtained according to the service topological graph; according to the network connection information of the hosts and the routes in the service system, network connection failure information is obtained and displayed on the service topological graph, colors displayed on the service topological graph are different, and an administrator can quickly locate the network connection failure information through the service topological graph, for example, as shown in fig. 5, fig. 5 is a second service topological graph of an embodiment of the method for generating the service topological graph of the present invention, a B host 192.168.4.5 to a C host 222.166.7.8 are selected through the service topological graph to perform a connection test, and the obtained test result is: the pending connection command is reachable to route No. 3 192.168.1.1, route No. 2 200.115.1.1, and unreachable to C host 222.166.7.8. The following effects are shown on the topology: the reachable route and the host on the connection path are marked by a dotted line box, and the unreachable route and the host are not marked by the dotted line box, so that the network problem from the route 200.115.1.1 No. 2 to the route 222.166.1.1 No. 4 can be quickly diagnosed, and the command to be connected cannot reach the host C222.166.7.8.
In this embodiment, the to-be-connected instructions are respectively sent to the corresponding hosts, so that after the host receives the to-be-connected instructions, the host performs connection tests with other hosts through the to-be-connected instructions to obtain corresponding test results, and feeds back corresponding network connection information based on the test results and preset return parameters. In this embodiment, the to-be-connected instructions are respectively sent to the corresponding hosts, so that after receiving the to-be-connected instructions, the hosts perform connection tests with other hosts through the to-be-connected instructions to obtain corresponding test results, and according to the test results, whether the to-be-connected instructions of the hosts in the service system can be reached is judged, if the to-be-connected instructions of the hosts in the service system can be reached, the passing information of the corresponding to-be-connected instructions is obtained, and according to the passing information and the preset return parameters, the corresponding network connection information is fed back, so that the efficiency of feeding back the network connection information is effectively improved.
In an embodiment, as shown in fig. 6, a third embodiment of the method for generating a service topology map according to the present invention is provided based on the first embodiment, where the step S30 includes:
step S302, the to-be-connected instructions are respectively sent to the corresponding host computers, so that after the host computers receive the to-be-connected instructions, collecting the monitoring port information of the host computer, sending the monitoring port information to a preset central server, so that the preset central server generates a target connection instruction according to the monitoring port information and sends the target connection instruction to the host computer, so that after the host computer receives the target connection instruction, judging whether the ports of the other hosts are connected or not according to the target connection instruction, if the ports of the other hosts are not connected, performing connection test with the ports of the other hosts which are not connected one by one to generate and feed back network connection information, and displaying a connection test result on the service topological graph, wherein the connection test result comprises accessible and inaccessible.
It should be understood that the monitored port information refers to operation of each port in the service system, network connection information with an opposite-end server, and the like, and a port in a Transmission Control Protocol/international Protocol (TCP/IP) referred to by the port, where the port is divided into a TCP port and a User Datagram Protocol (UDP), and a value range is 0 to 65535, and the network connection information includes: the network connection condition of each host in the service system, the passing route condition of the current host and other hosts, the sequence condition of passing route connection, the IP information of each routing node and the like.
It can be understood that, after the monitoring port information is obtained, the monitoring port information is sent to the client programs of other hosts, at this time, it is necessary to determine whether the port of the host is in a monitoring state, and if the port of the host is already connected to the current server, the connection test of the port is not performed. For example, the IP address of the host is 172.16.2.5, where 3 ports are in the listening state, and 1 port has already established connection with the current server, then the connection test will not be performed on the port having already established connection.
In the specific implementation, the generating device of the service topological graph respectively sends the instructions to be connected to the corresponding hosts, so that the host computer collects the monitoring port information of the host computer after receiving the command to be connected and sends the monitoring port information to a preset central server, so that the preset central server generates a target connection instruction according to the monitoring port information and sends the target connection instruction to the host computer, so that after the host computer receives the target connection instruction, judging whether the ports of the other hosts are connected or not according to the target connection instruction, if the ports of the other hosts are not connected, performing connection test with the ports of the other hosts which are not connected one by one to generate and feed back network connection information, and displaying a connection test result on the service topological graph, wherein the connection test result comprises accessible and inaccessible.
This embodiment is through so that after the host computer receives the instruction of waiting to connect, collect host computer self monitor port information, will monitor port information send to predetermineeing central server, so that predetermine central server basis monitor port information generation target connection instruction, and will target connection instruction send to the host computer, so that the host computer receives behind the target connection instruction, through target connection instruction with other host computers carry out connection test, in order to generate and feed back network connection information to show on the service topological graph and connect the test result, connect the test result including accessible and inaccessible. In the embodiment, the monitoring port information of other hosts is collected, the target connection instruction is generated according to the monitoring port information, whether the ports of the other hosts are connected or not is judged according to the target connection instruction, and if the ports of the other hosts are not connected, the ports are connected with the ports of the other hosts which are not connected one by one for testing, so that the efficiency of testing the to-be-connected instruction is effectively improved.
In addition, an embodiment of the present invention further provides a storage medium, where a generation program of a service topology map is stored on the storage medium, and when executed by a processor, the generation program of the service topology map implements the steps of the generation method of the service topology map as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
In addition, referring to fig. 7, an embodiment of the present invention further provides a device for generating a service topology map, where the device for generating a service topology map includes:
the obtainingmodule 10 is configured to obtain network information of each host in the service system.
It should be understood that the network information of each host in the service system includes: the identification information of each host and the Internet Protocol information, the Internet Protocol Address (IP) in the Internet Protocol information has a subnet mask and gateway information corresponding to the Internet Protocol Address, the identification information of each host can be the name of the host, and the like, each IP Address includes two identification codes ID, i.e. a network ID and a host ID, all hosts on the same physical network use the same network ID, one host on the network (including a workstation on the network, a server, a router, and the like) has a host ID corresponding to the host ID, and the IP addresses uniformly distributed in the global scope are divided into three types: class A1.0.0.1-126.255.255.254, class B128.0.0.1-191.255.255.254, and class C192.0.0.1-223.255.255.254.
It can be understood that the obtaining of the network information of each host in the service system may specifically be implemented by installing a client program on the service system host, and then starting the client program, where the client program may directly collect the network information of each host in the service system, collect and sort the network information, and then send the sorted network information to the generation device of the service topological graph.
In a specific implementation, the generation device of the service topological graph obtains network information of each host in the service system.
The generatingmodule 20 is further configured to generate to-be-connected instructions corresponding to the hosts according to the acquired network information.
It should be understood that the to-be-connected instruction is generated according to the acquired network information, after the network information is acquired, the network information needs to be classified, a type to which the network information belongs is acquired, and a corresponding to-be-connected instruction is generated according to the type to which the network information belongs, where the to-be-connected instruction is used for an instruction for a current host to connect with another host, for example, the acquired network information is divided into A, B and C types, then the generated to-be-connected instruction should be three to-be-connected instructions, i.e., a to-be-connected instruction of a1, B1, and C1, and therefore, the to-be-connected instruction changes with the change of the acquired network information.
In specific implementation, the generating device of the service topological graph generates the to-be-connected instruction corresponding to each host according to the acquired network information.
And thefeedback module 30 is configured to send the to-be-connected instruction to the corresponding host, so that after the host receives the to-be-connected instruction, the host performs connection test with other hosts through the to-be-connected instruction to generate and feed back network connection information.
It should be understood that the network connection information refers to network information in which the hosts are connected through a to-be-connected instruction, where the network connection information includes network information in which the current host and the other hosts are successfully connected or the connection is failed, specifically, the to-be-connected instruction is sent to the corresponding host, so that each host sends a connection request to the other hosts through the to-be-connected instruction after receiving the to-be-connected instruction, and if the other hosts do not make a feedback after receiving the request, it indicates that the current host and the other hosts are failed to be connected, and the information of the network connection failure is fed back.
In specific implementation, the generating device of the service topological graph respectively sends the to-be-connected instruction to the corresponding host, so that the host performs connection test with other hosts through the to-be-connected instruction after receiving the to-be-connected instruction, so as to generate and feed back network connection information.
The generatingmodule 20 is further configured to generate a service topology map of the service system according to the network connection information fed back by each host.
It should be understood that the service topology map of the service system is generated according to the network connection information fed back by the hosts, and the network connection information includes: after the network connection information of each host, the routing condition of the current host and other hosts, the sequence condition of the passing routing connection, and the IP information of each routing node in the service system are obtained, the network connection information is represented on the same graph, and the obtained graph is the constructed service topology graph, for example, as shown in fig. 3, the IP address of the host a is 172.16.2.5, the IP address of the host B is 192.168.4.5, and the IP address of the host C is 222.166.7.8, at this time, if the service topology graph among the host a, the host B, and the host C is to be obtained, the network connection information among the host a, the host B, and the host C needs to be obtained, and the network connection information between the host a and the host B is: the network sequentially passes through three routes of route No. 1 172.16.1.1, route No. 2 200.115.1.1 and route No. 3 192.168.1.1, and the network connection information between the host a 172.16.2.5 and the host C is: fig. 3 shows a service topology diagram obtained by the network connection through three routes, i.e., route 1 172.16.1.1, route 2 200.115.1.1, and route 4 222.166.1.1.
In a specific implementation, the service topological graph generating device generates the service topological graph of the service system according to the network connection information fed back by each host.
In the embodiment, network information of each host in a service system is acquired; generating a to-be-connected instruction corresponding to each host according to the acquired network information; respectively sending the to-be-connected instructions to corresponding hosts, so that after receiving the to-be-connected instructions, the hosts perform connection tests with other hosts through the to-be-connected instructions to generate and feed back network connection information; generating a service topological graph of the service system according to the network connection information fed back by each host; in this embodiment, network information of each host in a service system is acquired, a to-be-connected instruction corresponding to each host is generated according to the network information, and the to-be-connected instruction is sent to the corresponding host, so that the host performs connection test with other hosts according to the to-be-connected instruction after receiving the to-be-connected instruction to generate and feed back corresponding network connection information, and a service topology map of the service system is generated according to the network connection information fed back by the host, thereby effectively improving efficiency of acquiring network information faults.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to a method for generating a service topology map provided in any embodiment of the present invention, and are not described herein again.
In an embodiment, the obtainingmodule 10 is further configured to obtain identification information and IP information of each host in a service system; and acquiring a corresponding subnet mask and gateway information according to the IP information, and taking the identification information, the subnet mask and the gateway information as the network information of each host in the service system.
In an embodiment, the generatingmodule 20 is further configured to obtain network connection information of a host and a route in a service system according to the service topology map; and acquiring network connection fault information according to the network connection information of the host and the route in the service system, and displaying the network connection fault information on the service topological graph.
In an embodiment, thefeedback module 30 is further configured to send the to-be-connected instruction to the corresponding hosts respectively, so that after receiving the to-be-connected instruction, the hosts collect monitoring port information of the hosts themselves, send the monitoring port information to a preset central server, so that the preset central server generates a target connection instruction according to the monitoring port information, and sends the target connection instruction to the hosts, so that after receiving the target connection instruction, the hosts perform connection tests with the other hosts through the target connection instruction, and generate and feed back network connection information.
In an embodiment, thefeedback module 30 is further configured to send the to-be-connected instructions to corresponding hosts, so that the hosts collect monitoring port information of the hosts after receiving the to-be-connected instructions, send the monitoring port information to a preset central server, so that the preset central server generates a target connection instruction according to the monitoring port information, and send the target connection instruction to the hosts, so that the hosts judge whether the ports of the other hosts are connected according to the target connection instruction after receiving the target connection instruction, if the ports of the other hosts are not connected, perform connection tests with the ports of the other hosts one by one to generate and feed back network connection information, and display a connection test result on a service topology diagram, the connection test results include accessible and inaccessible.
In an embodiment, thefeedback module 30 is further configured to send the to-be-connected instruction to the corresponding host, so that after receiving the to-be-connected instruction, the host performs connection test with other hosts through the to-be-connected instruction to obtain a corresponding test result, and feeds back corresponding network connection information based on the test result and a preset return parameter.
In an embodiment, thefeedback module 30 is further configured to determine whether the instruction to be connected of each host in the service system is reachable according to the test result, obtain the passing information of the corresponding instruction to be connected if the instruction to be connected of each host in the service system is reachable, and feed back the corresponding network connection information according to the passing information and the preset return parameter.
Other embodiments or implementations of the apparatus for generating a service topology map according to the present invention refer to the above method embodiments, and are not redundant here.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

respectively sending the to-be-connected instructions to corresponding hosts so that after the hosts receive the to-be-connected instructions, collecting the monitoring port information of the host computer, sending the monitoring port information to a preset central server, so that the preset central server generates a target connection instruction according to the monitoring port information and sends the target connection instruction to the host computer, so that after the host computer receives the target connection instruction, judging whether the ports of the other hosts are connected or not according to the target connection instruction, if the ports of the other hosts are not connected, performing connection test with the ports of the other hosts which are not connected one by one to generate and feed back network connection information, and displaying a connection test result on the service topological graph, wherein the connection test result comprises accessible and inaccessible.
CN202110509111.5A2021-05-112021-05-11Method, device and equipment for generating service topological graph and storage mediumActiveCN112995042B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110509111.5ACN112995042B (en)2021-05-112021-05-11Method, device and equipment for generating service topological graph and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110509111.5ACN112995042B (en)2021-05-112021-05-11Method, device and equipment for generating service topological graph and storage medium

Publications (2)

Publication NumberPublication Date
CN112995042A CN112995042A (en)2021-06-18
CN112995042Btrue CN112995042B (en)2021-08-17

Family

ID=76337539

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110509111.5AActiveCN112995042B (en)2021-05-112021-05-11Method, device and equipment for generating service topological graph and storage medium

Country Status (1)

CountryLink
CN (1)CN112995042B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN113904921B (en)*2021-10-212024-04-30上海观安信息技术股份有限公司Dynamic network topology graph generation method, system, processing equipment and storage medium based on log and graph
CN114553709B (en)*2022-04-282022-08-23恒生电子股份有限公司Topological relation display method and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107995030A (en)*2017-11-282018-05-04车智互联(北京)科技有限公司A kind of network detection method, network fault detecting method and system
CN109039763A (en)*2018-08-282018-12-18曙光信息产业(北京)有限公司A kind of network failure nodal test method and Network Management System based on backtracking method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101155084B (en)*2006-09-282011-04-13华为技术有限公司Method and system for acquiring network topological information
CN101170445B (en)*2007-11-202010-11-24中兴通讯股份有限公司Topology method and system for IP network management cluster in simple network management
CN101369933A (en)*2008-09-262009-02-18中兴通讯股份有限公司Automatic test method and system
CN102739445B (en)*2012-06-182017-12-22中兴通讯股份有限公司A kind of method and system for rapidly positioning faults of looped network
WO2018175781A1 (en)*2017-03-222018-09-27Pressto, Inc.System and method for mesh network streaming
CN112134762B (en)*2020-09-242023-08-22腾讯科技(深圳)有限公司Testing method, device, terminal and storage medium for block chain network structure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107995030A (en)*2017-11-282018-05-04车智互联(北京)科技有限公司A kind of network detection method, network fault detecting method and system
CN109039763A (en)*2018-08-282018-12-18曙光信息产业(北京)有限公司A kind of network failure nodal test method and Network Management System based on backtracking method

Also Published As

Publication numberPublication date
CN112995042A (en)2021-06-18

Similar Documents

PublicationPublication DateTitle
KR101908467B1 (en)Method and apparatus for visualized network operation and maintenance
JP6821800B2 (en) Systems and methods for interactive network analytics platforms
CN111934922B (en)Method, device, equipment and storage medium for constructing network topology
US8208381B2 (en)Root-cause approach to problem diagnosis in data networks
US11509552B2 (en)Application aware device monitoring correlation and visualization
CN111142878B (en)SDN operation and maintenance method, device, equipment and readable storage medium
US11032124B1 (en)Application aware device monitoring
CN112995042B (en)Method, device and equipment for generating service topological graph and storage medium
CN111277457A (en)Method, device and equipment for switching network environment and readable storage medium
US7903569B2 (en)Diagnosing network problems in an IPV6 dual stack network
CN112291075A (en)Network fault positioning method and device, computer equipment and storage medium
WO2006046309A1 (en)Apparatus and method for locating trouble occurrence position in communication network
CN102387028A (en)Network system, network management server, and OAM test method
WO2018214928A1 (en)Method and apparatus for locating resolution fault, computer readable storage medium thereof, and computer device
CN106209515A (en)Automatic test system for access network equipment
Safrianti et al.Real-time network device monitoring system with simple network management protocol (SNMP) model
CN109981377A (en)A kind of distributive data center link monitoring method and system
US20140325279A1 (en)Target failure based root cause analysis of network probe failures
CN108833129B (en) A network topology discovery method and device
Tang et al.Intelligence enabled SDN fault localization via programmable in-band network telemetry
CN119520242A (en) Virtual machine network switching method, device, computer equipment and storage medium
US7603459B2 (en)System, method and program to troubleshoot a distributed computer system or determine application data flows
US12184528B2 (en)Methods and apparatus for adaptive and holistic network measurements
CN114268578A (en)Data transmission method, device and equipment for switching line and storage medium
CN115834330B (en) Group fault detection method, device, equipment and storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp