CN115811482A - Apparatus and method for detecting connectivity of cloud platform network - Google Patents

Apparatus and method for detecting connectivity of cloud platform network Download PDF

Info

Publication number
CN115811482A
CN115811482A CN202211018843.5A CN202211018843A CN115811482A CN 115811482 A CN115811482 A CN 115811482A CN 202211018843 A CN202211018843 A CN 202211018843A CN 115811482 A CN115811482 A CN 115811482A
Authority
CN
China
Prior art keywords
detection
connectivity
hosts
cloud platform
tasks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211018843.5A
Other languages
Chinese (zh)
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.)
China Unionpay Co Ltd
Original Assignee
China Unionpay 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 China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN202211018843.5A priority Critical patent/CN115811482A/en
Publication of CN115811482A publication Critical patent/CN115811482A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to computer network technology, and more particularly, to an apparatus, method, and computer-readable storage medium having stored thereon a computer program for implementing the above method for detecting connectivity of a cloud platform network. An apparatus for detecting connectivity of a cloud platform network according to an aspect of the present application includes: the analysis unit is configured to generate a detection task set from the input detection scheme, wherein the detection task set comprises detection tasks for detecting connectivity between hosts in the cloud platform network; an execution unit configured to execute a set of detection tasks to obtain a connectivity status between hosts in the cloud platform network; a result analysis unit configured to generate an analysis result based on the connectivity state.

Description

Device and method for detecting connectivity of cloud platform network
Technical Field
The present application relates to computer network technology, and more particularly, to an apparatus, method, and computer-readable storage medium having stored thereon a computer program for implementing the above method for detecting connectivity of a cloud platform network.
Background
The cloud platform has a huge number of nodes, and various different service systems are intensively deployed in the same physical environment of the cloud platform. In order to meet the requirements of security, isolation and the like of a service system, various network security policies are generally deployed to realize network communication or isolation among service systems, so that the network connectivity among nodes in a cloud platform is diversified.
Operation and maintenance personnel need to frequently detect the network communication state among all nodes in the cloud platform in daily maintenance work. When a new service system is deployed online, the connectivity of the relevant nodes needs to be detected in a targeted manner, and the network access of the nodes is opened or limited based on the detection result.
However, the current connectivity detection technology does not have the capability of quickly and fully covering each detection requirement (especially when the number of nodes is large), so that a mode of randomly detecting part of the nodes has to be adopted. In addition, as the complexity of the system increases, the demands and scenarios of network connectivity detection also tend to be diversified, but at present, connectivity detection devices capable of flexibly adapting to various demands and scenarios are lacked, and the reusability is weak.
Disclosure of Invention
An object of the present application is to provide an apparatus and a method for detecting connectivity of a cloud platform network, which have the advantages of strong versatility and high efficiency.
According to an aspect of the present application, there is provided an apparatus for detecting connectivity of a cloud platform network, including:
the analysis unit is configured to generate a detection task set from the input detection scheme, wherein the detection task set comprises detection tasks for detecting connectivity between hosts in the cloud platform network;
an execution unit configured to execute a set of detection tasks to obtain a connectivity state between hosts in the cloud platform network;
a result analysis unit configured to generate an analysis result based on the connectivity state.
Optionally, the above apparatus further includes a task scheduling unit configured to start or terminate a connectivity detection process, where the connectivity detection process includes a sub-process of generating a detection task set by the parsing unit, a sub-process of executing the detection task set by the execution unit, and a sub-process of generating an analysis result by the result analysis unit.
Optionally, in the above apparatus, the detection scheme is described in a file of a set format.
Optionally, in the above apparatus, the file with a set format includes the following items: a source host IP address, a source host port, a target host IP address, a target host address, and a type of connectivity detection tool used.
Optionally, in the above apparatus, the connectivity detection tool comprises one or more of: a curl command line tool, a netstat command line tool, a ping command line tool, and a telnet command line tool.
Optionally, in the above apparatus, the host includes a pair of source host and target host, and the execution unit executes the detection tasks associated with the respective source hosts in a concurrent manner.
Optionally, in the above apparatus, the host includes a pair of a source host and a target host, and the execution unit executes the detection task associated with the same source host in a serial manner.
In addition to one or more of the above features, optionally, in the above apparatus, the execution unit is implemented by using an automation operation and maintenance tool infrastructure, and the detection task is described by using a Playbook.
Optionally, in the above apparatus, the analysis of the connectivity status comprises comparing a current connectivity status with a previous connectivity status.
Optionally, in the above apparatus, the task scheduling unit is configured to initiate the connectivity detection process in the following manner: in response to user input, a single timed actuation, and a periodic actuation.
According to still another aspect of the present application, there is provided a method for detecting connectivity of a cloud platform network, comprising the steps of:
generating a detection task set by an input detection scheme, wherein the detection task set comprises detection tasks for detecting connectivity between hosts in the cloud platform network;
executing a detection task set to obtain a connectivity state between hosts in the cloud platform network;
an analysis result is generated based on the connectivity status.
According to another aspect of the present application, there is provided a computer-readable storage medium having stored therein instructions for implementing the method as described above by execution of the instructions by a processor.
Drawings
The foregoing and/or other aspects and advantages of the present application will become more apparent and more readily appreciated from the following description of the various aspects, taken in conjunction with the accompanying drawings, wherein like or similar elements are designated by like reference numerals. The drawings comprise:
fig. 1 is an architecture diagram of an apparatus for detecting connectivity of a cloud platform network according to some embodiments of the present application.
FIG. 2 is a schematic diagram of detection scheme management functionality according to further embodiments of the present application.
Fig. 3 is a flow diagram of a method for detecting connectivity of a cloud platform network in accordance with further embodiments of the present application.
Detailed Description
The present application will now be described more fully hereinafter with reference to the accompanying drawings, in which exemplary embodiments of the application are shown. This application may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth herein. The embodiments described above are intended to be a complete and complete disclosure of the disclosure, so as to more fully convey the scope of the disclosure to those skilled in the art.
In the present specification, words such as "comprise" and "comprising" mean that in addition to elements and steps directly and unequivocally stated in the specification and claims, the technical solutions of the present application do not exclude other elements and steps not directly or unequivocally stated.
Unless otherwise specified, terms such as "first" and "second" do not denote an order of the elements in time, space, size, etc., but rather are used to distinguish one element from another.
According to one aspect of the application, the detection requirements are described using templated configuration functionality. For example, in some embodiments, a generic requirement template having a set format (e.g., excel file format) is provided, and a user can generate a detection scheme by entering corresponding parameter values (e.g., IP address, port number of the host, and type or name of connectivity detection tool used) in a cell. The method has the advantages of high writing efficiency, intuition, easy reading, flexible configuration and the like, and particularly can support scheme configuration of multi-source hosts, multi-target hosts, multiple ports, multi-detection modes (ping, netstat, telnet, curl and the like) and the like.
According to another aspect of the application, the device for detecting the connectivity of the cloud platform network generates a detection task set according to an input detection scheme, wherein the detection task set comprises detection tasks for detecting the connectivity between hosts in the cloud platform network. In particular, the device performs operations such as splitting, merging, deduplication and combining on the prediction scheme, thereby generating a detection task of a 1-to-1 mapping relationship. In some embodiments, the unit connection module for performing detection tasks is implemented using an automation operation tool analysis, and the detection task set may be described using a Playbook. Optionally, the means for performing detection tasks performs detection tasks associated with respective source hosts in a concurrent manner and performs detection tasks associated with the same source host in a serial manner. The detection efficiency is realized by the concurrency of multiple hosts, and the safety and reliability of the detection platform can be ensured by controlling the concurrency number and the serial detection mechanism of a single host while the resource consumption is reduced, so that the early warning of platform resources caused by too many test target hosts is avoided.
According to still another aspect of the application, through the platform design of the detection device, the unified management of the detection scheme is realized, the detection process can be initiated manually or periodically and periodically executed, and an alarm message is generated when the difference is compared with the historical detection result. The platform design promotes the integration of the detection device and the cloud platform management platform, and is favorable for popularization and application of the detection device.
Connectivity detection architecture
Fig. 1 is an architecture diagram of an apparatus for detecting connectivity of a cloud platform network according to some embodiments of the present application.
The apparatus 10 shown in fig. 1 includes a task scheduling unit 110, a parsing unit 120, an execution unit 130, a result analysis unit 140, and an interaction interface 150.
The task scheduling unit 110 is configured to initiate and terminate a connectivity detection process comprising, for example, a sub-process of generating a set of detection tasks by the parsing unit, a sub-process of executing the set of detection tasks by the execution unit, and a sub-process of generating an analysis result by the result analysis unit.
In some embodiments, after each detected task is completed, the task scheduling module 110 will create a task plan of the type including, but not limited to, a task plan initiated in response to user input, a single-time initiated task plan, and a periodically initiated task plan.
The parsing unit 120 is configured to generate a set T of detection tasks (hereinafter also referred to as a detection task set) for detecting connectivity between hosts in the cloud platform network from the input detection scheme SCH.
Alternatively, the inputted detection scheme may be described using a file of a set format. Table 1 below gives a typical example of a formatting prediction scheme.
TABLE 1
Figure BDA0003813251430000051
In the example shown in table 1, the formatted file contains the following items: source host IP address, source host port, target host IP address, target host address, and the type of connectivity detection tool used (including but not limited to a curl command line tool, a netstat command line tool, a ping command line tool, and a telnet command line tool, etc.).
Illustratively, the parsing unit 120 performs operations of parsing, splitting, deduplication, merging, and the like on the input excel format detection scheme, converts the operation result into a data file of a specified format (e.g., jason format, XML format, and the like), and generates a corresponding Playbook as a front input of the execution unit 130.
Since the detection scheme template can be used to generate a detection scheme file that reflects various personalized detection requirements, the device 100 can be highly configurable, thereby achieving full coverage of connectivity detection requirements.
Execution unit 130 is configured to execute detection task set T to obtain a connectivity status between HOSTs HOST-1-HOST-N in the cloud platform network.
In some embodiments, the execution unit 130 is implemented using an automation operation and maintenance tool infrastructure. In particular, the execution unit 130 concurrently executes corresponding detection tasks on a plurality of different source hosts according to the Playbook generated by the parsing unit 120 to improve detection efficiency, and executes a plurality of detection tasks on the same source host in a serial manner to reduce the influence of detection operations on the performance of the source hosts. In addition, the resources occupied by the execution unit 130 can be controlled by configuring the maximum number of concurrent hosts.
Table 2 below shows an example of the detection result.
TABLE 2
Figure BDA0003813251430000061
The result analysis unit 140 is configured to generate an analysis result based on the connectivity status acquired by the execution unit 130. In some embodiments, the result analysis unit 140 analyzes and summarizes the detection results output by the execution unit 130 and generates a detection result file; on the other hand, the result analysis unit 140 may compare the detection result with the historical detection result to find a change in the network connectivity state, and generate an alarm message when there is a difference therebetween.
The interactive interface 150 is configured to provide a user with a number of administrative functions of the detection scheme, such as the functions shown in fig. 2. In some embodiments, the user may input various detection schemes to the parsing unit 120 via the interactive interface 150, thereby enabling configurability of connectivity detection. In addition, the user may also view and modify the detection schemes of the input parsing unit 120 at the interactive interface 150, and different detection schemes are displayed in a list manner, so that the user may select to view specific contents of each detection scheme, and may also select to view historical detection results of the scheme. The interactive interface 150 also provides a detection scheme creation interface to facilitate creation of a detection scheme.
Connectivity detection method
Fig. 3 is a flow diagram of a method for detecting connectivity of a cloud platform network in accordance with further embodiments of the present application. By way of example, the following description is developed with reference to the architecture shown in FIG. 1.
The process shown in FIG. 3 includes the following steps:
step 301: the task scheduling unit 110 initiates a connectivity detection process comprising the steps of generating a set of detection tasks 302, performing a set of detection tasks 303, generating analysis results 304, etc. as described below.
The initiation of the connectivity detection process may be triggered by various events. Such events include, but are not limited to, for example, a start command input by a user via the interactive unit 150, a single timed start command, a periodic start command, and the like.
Step 302: the parsing unit 120 receives a detection scheme input by a user via the interaction unit 150 and generates a detection task set based on the detection scheme. The detection task set comprises detection tasks for detecting connectivity between hosts in the cloud platform network.
As described above, the detection scheme may set a file description in a format (e.g., excel format) including, but not limited to, a source host IP address, a source host port, a target host IP address, a target host address, and a type of connectivity detection tool used, for example.
Step 303: the execution unit 130 executes the detection task set to obtain a connectivity state between hosts in the cloud platform network. Alternatively, in this step, the execution unit 130 may execute the detection tasks associated with the respective source hosts in a concurrent manner. Alternatively, execution unit 130 may perform detection tasks associated with the same source host in a serial manner.
In some embodiments, the execution of the detection task set may be implemented using an automation operation and maintenance tool, and the detection task set is described using a Playbook.
Step 304: the result analysis unit 140 generates an analysis result based on the connectivity state. For example, the result analysis unit may compare the current connectivity state with a previous connectivity state and generate an analysis result.
Step 305: the task scheduling unit 110 terminates the connectivity detection process. This step may be triggered by various events, such as a termination command input by the user via the interaction unit 150, and the like.
According to another aspect of the present application, there is also provided a computer-readable storage medium, on which a computer program is stored which, when executed by a processor, may implement one or more of the steps comprised in the method described above with reference to fig. 3.
Computer-readable storage media, as referred to in this application, includes all types of computer storage media, which can be any available media that can be accessed by a general purpose or special purpose computer. By way of example, computer-readable storage media may comprise RAM, ROM, EPROM, E2PROM, registers, hard disk, a removable disk, a CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other transitory or non-transitory medium that can be used to carry or store desired program code means in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Combinations of the above should also be included within the scope of computer-readable storage media. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In the alternative, the processor and the storage medium may reside as discrete components in a user terminal.
Those of skill in the art would understand that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To demonstrate interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Such functionality, whether implemented in hardware or software, depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Although only a few specific embodiments of the present application have been described, those skilled in the art will appreciate that the present application may be embodied in many other forms without departing from the spirit or scope thereof. Accordingly, the present examples and embodiments are to be considered as illustrative and not restrictive, and various modifications and substitutions may be made therein without departing from the spirit and scope of the present application as defined by the appended claims.
The embodiments and examples set forth herein are presented to best explain the embodiments in accordance with the present technology and its particular application and to thereby enable those skilled in the art to make and utilize the application. However, those skilled in the art will recognize that the foregoing description and examples have been presented for the purpose of illustration and example only. The description as set forth is not intended to cover all aspects of the application or to limit the application to the precise form disclosed.

Claims (21)

1. An apparatus for detecting connectivity of a cloud platform network, comprising:
the analysis unit is configured to generate a detection task set from the input detection scheme, wherein the detection task set comprises detection tasks for detecting connectivity between hosts in the cloud platform network;
an execution unit configured to execute a set of detection tasks to obtain a connectivity state between hosts in the cloud platform network;
a result analysis unit configured to generate an analysis result based on the connectivity state.
2. The apparatus of claim 1, further comprising a task scheduling unit configured to initiate or terminate a connectivity detection process, the connectivity detection process comprising a sub-process of generating a set of detection tasks by the parsing unit, a sub-process of executing the set of detection tasks by the execution unit, and a sub-process of generating an analysis result by the result analysis unit.
3. The apparatus of claim 1, wherein the detection scheme is described in a formatted file.
4. The apparatus of claim 3, wherein the formatted file comprises the following: a source host IP address, a source host port, a target host IP address, a target host address, and a type of connectivity detection tool used.
5. The apparatus of claim 4, wherein the connectivity detection tool comprises one or more of: a curl command line tool, a netstat command line tool, a ping command line tool, and a telnet command line tool.
6. The apparatus of claim 1, wherein the hosts comprise a pair of source and target hosts, the execution unit to execute the detection tasks associated with the respective source hosts in a concurrent manner.
7. The apparatus of claim 1, wherein the hosts comprise a pair of source and target hosts, the execution unit to execute detection tasks associated with the same source host in a serial manner.
8. The device of any one of claims 1-7, wherein the execution unit is implemented by an automation operation and maintenance tool, an capable, and the detection task set is described by a Playbook.
9. The apparatus of claim 1, wherein the analysis of the connectivity state comprises comparing a current connectivity state to a previous connectivity state.
10. The apparatus of claim 2, wherein the task scheduling unit is configured to initiate the connectivity detection procedure in the following manner: in response to user input, single timed actuation, and periodic actuation.
11. A method for detecting connectivity of a cloud platform network, comprising the steps of:
generating a detection task set by the input detection scheme, wherein the detection task set comprises detection tasks for detecting connectivity between hosts in the cloud platform network;
executing a detection task set to obtain a connectivity state between hosts in the cloud platform network;
generating an analysis result based on the connectivity status.
12. The method of claim 11, further comprising the steps of:
and starting or terminating a connectivity detection process, wherein the connectivity detection process comprises a step of generating a detection task set, a step of executing the detection task set and a step of generating an analysis result.
13. The method of claim 11, wherein the detection scheme is described in a formatted file.
14. The method of claim 13, wherein the formatted file comprises the following: a source host IP address, a source host port, a target host IP address, a target host address, and a type of connectivity detection tool used.
15. The method of claim 14, wherein the connectivity detection tool comprises one or more of: a curl command line tool, a netstat command line tool, a ping command line tool, and a telnet command line tool.
16. The method of claim 11, wherein the hosts comprise a pair of source and target hosts, and in the step of executing the set of inspection tasks, the inspection tasks associated with the respective source hosts are executed in a concurrent manner.
17. The method of claim 1, wherein the hosts comprise a source host and a target host in a pair, and in the step of executing the set of test tasks, the test tasks associated with the same source host are executed in a serial manner.
18. The method according to any one of claims 11-17, wherein in the step of executing the detection task set, the execution of the detection task set is implemented by using an automation maintenance tool, anchor, and the detection task set is described by using a Playbook.
19. The method of claim 11, wherein generating analysis results based on the connectivity status comprises comparing a current connectivity status to a previous connectivity status.
20. The method of claim 12, wherein the connectivity detection procedure is initiated in the following manner: in response to user input, single timed actuation, and periodic actuation.
21. A computer-readable storage medium having instructions stored thereon, wherein the method of any one of claims 11-20 is implemented by executing the instructions by a processor.
CN202211018843.5A 2022-08-24 2022-08-24 Apparatus and method for detecting connectivity of cloud platform network Pending CN115811482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211018843.5A CN115811482A (en) 2022-08-24 2022-08-24 Apparatus and method for detecting connectivity of cloud platform network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211018843.5A CN115811482A (en) 2022-08-24 2022-08-24 Apparatus and method for detecting connectivity of cloud platform network

Publications (1)

Publication Number Publication Date
CN115811482A true CN115811482A (en) 2023-03-17

Family

ID=85482498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211018843.5A Pending CN115811482A (en) 2022-08-24 2022-08-24 Apparatus and method for detecting connectivity of cloud platform network

Country Status (1)

Country Link
CN (1) CN115811482A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116781564A (en) * 2023-07-26 2023-09-19 上海道客网络科技有限公司 Network detection method and system for container cloud platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116781564A (en) * 2023-07-26 2023-09-19 上海道客网络科技有限公司 Network detection method and system for container cloud platform
CN116781564B (en) * 2023-07-26 2024-02-13 上海道客网络科技有限公司 Network detection method, system, medium and electronic equipment of container cloud platform

Similar Documents

Publication Publication Date Title
US20190068702A1 (en) Processing search responses retunred by search peers
CN107608852B (en) A kind of process monitoring method and device
JPS63174135A (en) Self-configuration of node for decentralized type message base operating system
EP3446440A1 (en) Multi-stage network discovery
CN111966465B (en) Method, system, equipment and medium for modifying host configuration parameters in real time
CN115811482A (en) Apparatus and method for detecting connectivity of cloud platform network
EP3413149B1 (en) Field device commissioning system and field device commissioning method
CN112882817A (en) Workflow processing method based on super computer
KR20210034558A (en) Artificial intelligence development platform managing method, device, and medium
CN106850614B (en) Multifunctional digital network joint debugging device
CN111738467A (en) Running state abnormity detection method, device and equipment
CN104598214A (en) Method and device for timed task management of oil-gas pipeline system application service
CN113791792A (en) Application calling information acquisition method and device and storage medium
US20220405104A1 (en) Cross platform and platform agnostic accelerator remoting service
CN113778455B (en) Code conversion method and device, electronic equipment and storage medium
CN116016209A (en) Network automation method and device
CN109495302A (en) Link monitoring method, cloud server and computer readable storage medium
CN111108453A (en) Control system, control method, and control program
US20140351643A1 (en) Smart terminal fuzzing apparatus and method using multi-node structure
CN114547206A (en) Data synchronization method and data synchronization system
CN105353975B (en) A kind of method and device of storage device management
KR100918840B1 (en) Method and Apparatus for Testing Target Sensor Node to compose Sensor Network
CN116319245B (en) 5G protocol-oriented distributed test system
CN113014511B (en) Data processing method and device, electronic equipment and storage medium
CN112765056B (en) Method, system, equipment and medium for reserving storage cluster LUN

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination