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.
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.