A management system for edge node probing tasks based on tagging
Patent Information
- Application Number
- CN202310766506.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-27
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2043-06-27
AI Technical Summary
该方法简单并易于实施,但在现实中存在着一些弊端,主要包括:(1)资源利用不足:节点上多是统一的简单探测任务,无法利用边缘节点得到更丰富的网络质量数据,无法为优化调度提供数据依据;(2)灵活度不够,无法实现定制化的探测需求
[0044] 1. By tagging various types of basic tasks, multiple latest task tags are obtained. A corresponding relationship is established between each detection device and the latest task tags, thus realizing the tag-based management of detection devices.
Smart Images

Figure CN116668366B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network communication technology, and more specifically to a management system for edge node detection tasks based on tagging. Background Technology
[0002] In large-scale edge networks, the number of nodes can reach thousands or even tens of thousands. A single node consists of several physical or virtual devices, so the total number of devices can reach tens of thousands or even hundreds of thousands. Timely awareness of the network status is crucial as nodes perform tasks, making detection systems a key component of edge networks.
[0003] Common network communication performance indicators include TCP connection success rate and round-trip time, ICMP packet loss rate and latency, MTR routing information (used for auxiliary judgment when network problems occur) and DNS resolution status. Due to the complexity of edge network conditions, passive probing (referring to the device as the target of probing) is sometimes impossible for some devices after network address translation. To solve this problem, the current traditional approach is to add active probing on the basis of passive probing, for example, actively probing the quality of the external network on the node. Currently, active probing is mostly performed by the probing program on the device to periodically probe fixed destination domain names or IPs. This method is simple and easy to implement, but it has some drawbacks in reality, mainly including: (1) Insufficient resource utilization: the nodes are mostly uniform and simple probing tasks, which cannot utilize the edge nodes to obtain richer network quality data and cannot provide data basis for optimized scheduling; (2) Insufficient flexibility, unable to realize customized probing needs. Summary of the Invention
[0004] The technical problem this invention aims to solve is that existing detection equipment has low flexibility in its detection work, making it difficult to meet customized detection needs. Furthermore, for large-scale edge nodes, the system experiences significant pressure when detection equipment requests data related to detection tasks, increasing system operation and maintenance costs. To address this problem, this invention provides a management system for edge node detection tasks based on tagging.
[0005] The technical solution of the present invention to solve the above-mentioned technical problems is as follows:
[0006] A management system for edge node detection tasks based on tagging includes a device task tag configuration terminal, a task generation terminal, and multiple detection devices. The device task tag configuration terminal and each of the detection devices are connected to the task generation terminal. Each detection device is a component device of an edge node, and each detection device corresponds to one edge node.
[0007] The device task tag configuration terminal is used to tag each basic task in the pre-established basic task file to obtain multiple latest task tags. Each latest task tag corresponds to at least one basic task. The terminal also determines the detection device corresponding to each latest task tag according to a preset first time interval.
[0008] The task generation end is used to update the basic task file according to a preset second time interval, and to determine the synthetic task in the pre-established synthetic task file according to the current basic task file and each of the latest task tags, and to determine a synthetic task corresponding to each of the detection devices. The synthetic task file includes multiple synthetic tasks, and each synthetic task is a set of basic tasks corresponding to at least one of the latest task tags.
[0009] For each of the detection devices, the detection device is used to obtain the detection task of the detection device from the task generation end according to a preset third time interval, wherein the detection task is each of the basic tasks included in the synthetic task corresponding to the detection device.
[0010] Based on the above technical solution, the present invention can be further improved as follows.
[0011] Furthermore, the device task tag configuration terminal includes a task tag configuration module and a device filtering module, wherein:
[0012] The task tag configuration module is used to establish a new task tag set based on the basic task file; wherein, each basic task included in the basic task file is a first basic task or a second basic task, each first basic task is a basic task that each detection device needs to execute, the second basic task is a basic task that the detection device can execute, each basic task has its own identification information, the new task tag set includes multiple new task tags, each new task tag corresponds to a new task, and the new task is a set of each first basic task or a second basic task;
[0013] The device filtering module is used to determine, at a first time interval, the target detection device corresponding to each latest task tag and the device information of each target detection device according to a preset device information database and the latest task corresponding to each latest task tag; wherein, each target detection device is one of a plurality of detection devices, each detection device corresponds to at least one latest task tag, the device information of each detection device includes the identification information of each basic task corresponding to the detection device, and the device information of each detection device is stored in the device information database.
[0014] Furthermore, the latest task tags are divided into a first-class task tag and a second-class task tag. The first-class task tag indicates that the latest task is the latest task tag of the set of each first basic task, and the second-class task tag indicates that the latest task is the latest task tag of a second basic task.
[0015] The equipment screening module includes a first-class screening unit and a second-class screening unit, wherein:
[0016] The first type of filtering unit is used to, for the first type of task tag, at the first time interval, regard each of the detection devices as the target detection devices corresponding to the first type of task tag, and determine the device information of each of the target detection devices corresponding to the first type of task tag according to the device information database;
[0017] The second-class filtering unit is used, for each of the second-class task tags, to query the device information of each of the detection devices based on the device information database at the first time interval, according to the preset detection rules and preset filtering rules corresponding to the latest task corresponding to the second-class task tag, to determine the target detection device corresponding to the second-class task tag and the device information of each of the target detection devices, wherein the target detection device corresponding to the second-class task tag is the detection device that needs to perform the latest task corresponding to the second-class task tag.
[0018] Furthermore, the task generation terminal includes a basic task update module, a basic task monitoring module, a synthetic task generation module, and a task storage module, wherein:
[0019] The basic task update module is used to obtain the latest detection target IP address of each basic task at the second time interval, and update the detection target IP address of the basic task in the basic task file according to the latest detection target IP address.
[0020] The basic task monitoring module is used to monitor whether the target monitoring data in the basic task file has changed, and when the target monitoring data has changed, to send the identification information of each basic task in the current basic task file to the synthetic task generation module.
[0021] The synthetic task generation module is used to determine the synthetic task in the synthetic task file based on the identification information of each basic task in the current basic task file; wherein, each synthetic task corresponds to at least one latest task tag, and each detection device corresponds to one synthetic task.
[0022] The association generation module is used to determine the correspondence between each of the detection devices and each of the synthesis tasks based on the current synthesis task file and the device information of each of the detection devices;
[0023] The task storage module is used to acquire and store the correspondence between each of the detection devices and each of the synthetic tasks.
[0024] Furthermore, each of the basic tasks has its own interface configuration, and the basic task file includes basic information of each basic task, including the identification information, interface configuration, and target IP address of the basic task.
[0025] For each of the basic tasks, when the basic task update module obtains the latest detection target IP address of the basic task at the second time interval, it is specifically used for:
[0026] Based on the interface configuration of the basic task, the latest detection target IP address of the basic task is obtained at the second time interval.
[0027] Furthermore, the target monitoring data includes the identification information of each of the basic tasks and the total number of the basic tasks.
[0028] Furthermore, the synthesis task generation module includes an initial synthesis task determination unit, a synthesis task deduplication unit, and a synthesis task update unit, wherein:
[0029] The initial synthesis task determination unit is used to determine, for each of the detection devices, each of the latest tasks corresponding to the detection device based on the device information of the detection device, so as to determine the initial synthesis task corresponding to the detection device, wherein the initial synthesis task is a set of each of the latest tasks corresponding to the corresponding detection device;
[0030] The deduplication unit for the synthesis task is used to perform deduplication processing on each of the initial synthesis tasks to obtain multiple target synthesis tasks.
[0031] The synthesis task update unit is used to update the synthesis tasks in the synthesis task file according to each of the target synthesis tasks.
[0032] Furthermore, each of the target synthesis tasks has its own identification information. For each target synthesis task, the identification information of the target synthesis task is determined based on the identification information of each of the latest tasks that make up the target synthesis task.
[0033] The deduplication unit for the synthesis task is specifically used for:
[0034] Based on the identification information of each initial synthesis task, deduplication is performed to obtain multiple target synthesis tasks.
[0035] Furthermore, for each of the aforementioned detection devices, the detection device includes a task download module, a detection task update module, and a detection module, wherein:
[0036] The task download module is used to obtain the synthetic task corresponding to the detection device from the task storage module at the third time interval according to the preset device parameters corresponding to the detection device and the parameter values of the preset device parameters, and determine the download status code corresponding to the detection device according to the synthetic task; wherein, the parameter values of the preset device parameters are the attribute values of the preset device parameters;
[0037] The detection task update module is used to determine whether to update the current detection task of the detection device according to the download status code corresponding to the detection device. The current detection task of the detection device includes at least one target detection task, and the target detection task is one of the multiple basic tasks.
[0038] The detection module is used to perform detection work based on the identification information of each target detection task and the IP address of the detection target.
[0039] Furthermore, the detection device stores the download status code corresponding to the current detection task of the detection device;
[0040] The detection task update module includes a first status code determination unit and a second status code determination unit, wherein:
[0041] The first status code determination unit is used to take the download status code corresponding to the current detection task of the detection device as the historical status code and the download status code corresponding to the synthesis task of the detection device as the latest status code.
[0042] The second status code determination unit is configured to: if the historical status code and the latest status code are the same, then not update the current detection task of the detection device; if the historical status code and the latest status code are different, then take each of the basic tasks included in the synthetic task as the current detection task of the detection device, and update the download status code stored in the detection device.
[0043] The beneficial effects of this invention are as follows:
[0044] 1. By tagging various types of basic tasks, multiple latest task tags are obtained. A corresponding relationship is established between each detection device and the latest task tags, thus realizing the tag-based management of detection devices.
[0045] 2. By periodically updating the basic task file (specifically the IP address of the detection target for the basic task), and updating the synthetic task in the synthetic task file whenever the target monitoring data changes, the correspondence between each detection device and the synthetic task is determined. Based on the correspondence between each detection device and the synthetic task, each detection device can quickly obtain new detection tasks. This solves the pressure on the detection devices of large-scale edge nodes to request data related to detection tasks, reduces the error probability of the detection program of the detection devices of large-scale edge nodes, and reduces the development, management and operation and maintenance costs of the system.
[0046] 3. When it is necessary to adjust the detection tasks of the detection equipment, the basic tasks in the basic task file can be directly adjusted, which optimizes the time and method of adjusting the detection tasks of the detection equipment, improves the flexibility, adaptability and efficiency of the detection equipment, and makes it better suited to different usage scenarios and user needs, further improving the user experience.
[0047] 4. By updating the detection tasks of the detection equipment, the safety and reliability of the detection equipment are improved, while the detection equipment can always be kept in a new and usable state, thus extending its service life. Attached Figure Description
[0048] Figure 1 This is a schematic diagram of the management system for the tag-based edge node detection task in this invention;
[0049] Figure 2 This is a schematic diagram of the device task tag configuration terminal in this invention;
[0050] Figure 3 This is a schematic diagram of the task generation end in this invention;
[0051] Figure 4 This is a schematic diagram of the detection device in this invention;
[0052] Figure 5 This is a schematic diagram of the process for updating the download task code in this invention. Detailed Implementation
[0053] The principles and features of the present invention are described below. The examples given are only for explaining the present invention and are not intended to limit the scope of the present invention.
[0054] like Figures 1 to 4 As shown, this embodiment provides a management system for edge node detection tasks based on tagging, including a device task tag configuration terminal, a task generation terminal, and multiple detection devices. The device task tag configuration terminal and each of the detection devices are connected to the task generation terminal. Each detection device is a component device of an edge node, and each detection device corresponds to one edge node, wherein:
[0055] The device task tag configuration terminal is used to tag each basic task in the pre-established basic task file to obtain multiple latest task tags. Each latest task tag corresponds to at least one basic task. The terminal also determines the detection device corresponding to each latest task tag according to a preset first time interval.
[0056] The task generation end is used to update the basic task file according to a preset second time interval, and to determine the synthetic task in the pre-established synthetic task file according to the current basic task file and each of the latest task tags, and to determine a synthetic task corresponding to each of the detection devices. The synthetic task file includes multiple synthetic tasks, and each synthetic task is a set of basic tasks corresponding to at least one of the latest task tags.
[0057] For each of the detection devices, the detection device is used to obtain the detection task of the detection device from the task generation end according to a preset third time interval, wherein the detection task is each of the basic tasks included in the synthetic task corresponding to the detection device.
[0058] The device task tag configuration terminal includes a task tag configuration module and a device filtering module, wherein:
[0059] The task tag configuration module is used to establish a latest task tag set based on the basic task file. The basic task file includes multiple basic tasks, each of which is a first basic task or a second basic task. Each first basic task is a basic task that each detection device needs to perform. Each basic task has its own identification information. The latest task tag set includes multiple latest task tags, each of which has its own identification information. Each latest task tag corresponds to a latest task, and each latest task has its own identification information. The latest task is a set of each of the first basic tasks or a second basic task.
[0060] The device filtering module is used to determine, at a first time interval, the target detection device corresponding to each latest task tag and the device information of each target detection device according to a preset device information database and the latest task corresponding to each latest task tag; wherein, each target detection device is one of a plurality of detection devices, each detection device corresponds to at least one latest task tag, the device information of each detection device includes the identification information of each basic task corresponding to the detection device, and the device information of each detection device is stored in the device information database.
[0061] In this embodiment, the latest task tag set can be established by a pre-set program or manually; the identification information of each basic task and each latest task is the task name, and the identification information of each latest task tag is the tag name.
[0062] In this embodiment, each basic task has its own interface configuration. The basic task file includes basic information of each basic task, including the identification information, interface configuration, and target IP address of the basic task.
[0063] In this embodiment, in addition to the identification information of each basic task corresponding to the detection device, the device information of the detection device also includes the basic information of the detection device (e.g., device name), the edge node information corresponding to the detection device (e.g., the type of edge node, the number of detection devices contained in the edge node), and the operator information corresponding to the detection device.
[0064] In this embodiment, the device filtering module is also used to store the target detection device corresponding to each of the latest task tags and the device information of each of the target detection devices, and to provide an API (i.e., application programming interface) for querying the device information of each of the target detection devices corresponding to the latest task tag in the device information database based on the identification information of the latest task tag.
[0065] The latest task tags are divided into two categories: a first category of task tags and a second category of task tags. The first category of task tags indicates that the latest task is the latest task tag of the set of each of the first basic tasks, and the second category of task tags indicates that the latest task is the latest task tag of a second basic task.
[0066] The equipment screening module includes a first-class screening unit and a second-class screening unit, wherein:
[0067] The first type of filtering unit is used to, for the first type of task tag, at the first time interval, regard each of the detection devices as the target detection devices corresponding to the first type of task tag, and determine the device information of each of the target detection devices corresponding to the first type of task tag according to the device information database;
[0068] The second-class filtering unit is used, for each of the second-class task tags, to query the device information of each of the detection devices based on the device information database at the first time interval, according to the preset detection rules and preset filtering rules corresponding to the latest task corresponding to the second-class task tag, to determine the target detection device corresponding to the second-class task tag and the device information of each of the target detection devices, wherein the target detection device corresponding to the second-class task tag is the detection device that needs to perform the latest task corresponding to the second-class task tag.
[0069] In this embodiment, the preset detection rules include: the type of edge node that needs to perform the latest task, and the number of detection devices that need to perform the latest task among the multiple detection devices contained in the target edge node (i.e., the edge node that needs to perform the latest task).
[0070] In this embodiment, examples of the first basic task are shown in Table 1 below.
[0071] Table 1 - Task Names and Related Descriptions for the First Basic Task
[0072] TCP General TCP basic tasks, including TCP-related probe configurations. ICMP General ICMP basic tasks, including ICMP-related probe configurations. DNS General DNS basic tasks, including DNS-related probing configurations.
[0073] In this embodiment, examples of the second basic task are shown in Table 2 below.
[0074] Table 2 - Task Names and Related Descriptions for the Second Basic Task
[0075]
[0076] In this embodiment, examples of the latest task tags are shown in Table 3 below.
[0077] Table 3 - Latest Task Tags: Tag Names and Related Descriptions
[0078]
[0079]
[0080] The task generation module includes a basic task update module, a basic task monitoring module, a synthetic task generation module, and a task storage module, wherein:
[0081] The basic task update module is used to obtain the latest detection target IP address of each basic task at the second time interval, and update the detection target IP address of the basic task in the basic task file according to the latest detection target IP address.
[0082] The basic task monitoring module is used to monitor whether the target monitoring data in the basic task file has changed, and when the target monitoring data changes, to send the identification information of each basic task in the current basic task file to the synthetic task generation module; in this embodiment, the target monitoring data includes the identification information of each basic task and the total number of basic tasks.
[0083] The synthetic task generation module is used to determine the synthetic task in the synthetic task file based on the identification information of each basic task in the current basic task file; wherein, each synthetic task has its own identification information, each synthetic task corresponds to at least one detection device and at least one latest task tag, and each detection device corresponds to one synthetic task; in this embodiment, the identification information of each synthetic task is the task name.
[0084] The association generation module is used to determine the correspondence between each detection device and each synthesis task based on the current synthesis task file and the device information of each detection device.
[0085] The task storage module is used to acquire and store the correspondence between each of the detection devices and each of the synthetic tasks.
[0086] In this embodiment, for each of the basic tasks, when the basic task update module obtains the latest detection target IP address of the basic task at the second time interval, it is specifically used for:
[0087] Based on the interface configuration of the basic task, the latest detection target IP address of the basic task is obtained at the second time interval.
[0088] The synthesis task generation module includes an initial synthesis task determination unit, a synthesis task deduplication unit, and a synthesis task update unit, wherein:
[0089] The initial synthesis task determination unit is used to determine, for each of the detection devices, each of the latest tasks corresponding to the detection device based on the device information of the detection device, so as to determine the initial synthesis task corresponding to the detection device, wherein the initial synthesis task is a set of each of the latest tasks corresponding to the corresponding detection device;
[0090] The deduplication unit for the synthesis task is used to perform deduplication processing on each of the initial synthesis tasks to obtain multiple target synthesis tasks.
[0091] The synthesis task update unit is used to update the synthesis tasks in the synthesis task file according to each of the target synthesis tasks.
[0092] For example, in addition to performing global general tasks, a certain detection device also needs to perform TCP coverage basic tasks, MTR basic tasks, and ICMP switch basic tasks. Then, the latest tag corresponding to the detection device specifically includes global general tasks, ICMP switch tasks, TCP coverage tasks, and MTR tasks. Based on this, the initial synthesis task corresponding to the detection device is a set of global general tasks, ICMP switch tasks, TCP coverage tasks, and MTR tasks.
[0093] In this embodiment, each initial synthesis task (i.e., the target synthesis task) has its own identification information (i.e., task name). For each initial synthesis task, the identification information of the initial synthesis task is determined according to the identification information of each latest task that makes up the initial synthesis task. The synthesis task deduplication unit performs deduplication processing according to the identification information of each initial synthesis task.
[0094] In this embodiment, in the synthesis task file, the synthesis tasks are sorted according to their identifier information (i.e., task name) and in alphabetical order. Examples of the synthesis tasks are shown in Table 4 below.
[0095] Table 4 - Task Names and Related Descriptions for Synthesis Tasks
[0096]
[0097]
[0098] In this embodiment, the goal of the ICMP switch task is to obtain the IP address of the switch that belongs to the same edge node as the probe device executing the ICMP switch task. Since the IP addresses of switches in different data centers may not be the same, the ICMP switch task in the composite task is specific to the device granularity (i.e., device name).
[0099] It should be noted that, for each of the aforementioned detection devices, if the synthesis task corresponding to the detection device includes the TCP coverage base task and the MTR base task, then the first operator variable corresponding to the TCP coverage base task and the second operator variable corresponding to the MTR base task are the same.
[0100] In this embodiment, the task storage module saves the correspondence between each detection device and each synthesis task in the form of a TXT file. An example of the content of the TXT file is as follows:
[0101] device_index:{device1:1, device2:1, device3:2, device4:3, device5:4}
[0102] index_file:
[0103] {
[0104] 1: DNS|ICMP|TCP
[0105] 2: DNS|e2e_ct|ICMP|TCP,
[0106] 3:DNS|ICMP|MTR_Beijing_ct|TCP,
[0107] 4:DNS|e2e_cnc|ICMP|MTR_Beijing_cnc|TCP,
[0108] 5:DNS|e2e_cnc|ICMP_022323211222|MTR_Beijing_cnc|TCP
[0109] }
[0110] Wherein, device_index represents the set of correspondences, and index_file represents the set of synthetic tasks. Each element in the set of correspondences contains the device name of a probe device and the index value of the synthetic task corresponding to that probe device. For example, the element "device1:1" means that the index value of the synthetic task corresponding to the probe device with the device name "device1" is "1". Each element in the set of synthetic tasks contains the index value of a synthetic task and the various basic tasks that make up the synthetic task. For example, the element "1:DNS|ICMP|TCP" means that the basic tasks that the probe device with the index value of "1" of the corresponding synthetic task needs to perform include DNS, ICMP and TCP.
[0111] Optionally, if the number of detection devices exceeds a preset threshold, the correspondence set is optimized to reduce the size of the TXT file. For example, for multiple detection devices with the same index value for the corresponding synthesis task, the device names of the multiple detection devices are stored in the correspondence set as an array or set, such as "{device6, device7, device8, device9}:3".
[0112] For each of the aforementioned detection devices, the detection device includes a task download module, a detection task update module, and a detection module, wherein:
[0113] The task download module is used to obtain the synthetic task corresponding to the detection device from the task storage module at the third time interval according to the preset device parameters corresponding to the detection device and the parameter values of the preset device parameters, and determine the download status code corresponding to the detection device according to the synthetic task; wherein, the detection device corresponds to at least one preset device parameter, and for each preset device parameter, the parameter value of the preset device parameter is the attribute value of the preset device parameter.
[0114] The detection task update module is used to determine whether to update the current detection task of the detection device based on the download status code corresponding to the detection device. The current detection task of the detection device includes at least one target detection task, and the target detection task is one of the multiple basic tasks.
[0115] The detection module is used to perform detection work based on the identification information of each target detection task and the IP address of the detection target.
[0116] In this embodiment, the preset device parameter can be the hostname. That is, for each detection device, according to the hostname (i.e. device name) of the detection device, the corresponding synthetic task of the detection device is obtained from the task storage module at the third time interval to determine whether to update its own detection task.
[0117] In this embodiment, each detection device runs a detection program and periodically (i.e., the third time interval) downloads the latest task file from the task download module based on its basic information. For each detection device, the latest task file obtained by the detection device includes the synthetic task corresponding to the detection device. The synthetic task includes each of the first basic tasks and at least one second basic task. Based on the identifier information (i.e., task name) of the synthetic task corresponding to the detection device, a download status code corresponding to the detection device is generated through a preset encoding rule. Based on the download status code, it is determined whether to update its own detection task. Figure 5 As shown.
[0118] The detection device stores the download status code corresponding to the current detection task of the detection device;
[0119] The detection task update module includes a first status code determination unit and a second status code determination unit, wherein:
[0120] The first status code determination unit is used to take the download status code corresponding to the current detection task of the detection device as the historical status code and the download status code corresponding to the synthesis task of the detection device as the latest status code.
[0121] The second status code determination unit is configured to: if the historical status code and the latest status code are the same, then not update the current detection task of the detection device; if the historical status code and the latest status code are different, then take each of the basic tasks included in the synthetic task as the current detection task of the detection device, and update the download status code stored in the detection device.
[0122] In the description of this invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0123] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0124] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," and "some examples" indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0125] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A management system for edge node detection tasks based on tagging, characterized in that, It includes a device task tag configuration terminal, a task generation terminal, and multiple detection devices. The device task tag configuration terminal and each of the detection devices are connected to the task generation terminal. Each of the detection devices is a component of an edge node, and each detection device corresponds to one edge node. The device task tag configuration terminal is used to tag each basic task in the pre-established basic task file to obtain multiple latest task tags. Each latest task tag corresponds to at least one basic task. The terminal also determines the detection device corresponding to each latest task tag according to a preset first time interval. The task generation end is used to update the basic task file according to a preset second time interval, and to determine the synthetic task in the pre-established synthetic task file according to the current basic task file and each of the latest task tags, and to determine a synthetic task corresponding to each of the detection devices. The synthetic task file includes multiple synthetic tasks, and each synthetic task is a set of basic tasks corresponding to at least one of the latest task tags. For each of the detection devices, the detection device is used to obtain the detection task of the detection device from the task generation end according to a preset third time interval, wherein the detection task is each of the basic tasks included in the synthetic task corresponding to the detection device; The device task tag configuration terminal includes a task tag configuration module and a device filtering module, wherein: The task tag configuration module is used to establish a new task tag set based on the basic task file; wherein, each basic task included in the basic task file is a first basic task or a second basic task, each first basic task is a basic task that each detection device needs to execute, the second basic task is a basic task that the detection device can execute, each basic task has its own identification information, the new task tag set includes multiple new task tags, each new task tag corresponds to a new task, and the new task is a set of each first basic task or a second basic task; The device filtering module is used to determine, at a first time interval, the target detection device corresponding to each latest task tag and the device information of each target detection device according to a preset device information database and the latest task corresponding to each latest task tag; wherein, each target detection device is one of a plurality of detection devices, each detection device corresponds to at least one latest task tag, the device information of each detection device includes the identification information of each basic task corresponding to the detection device, and the device information of each detection device is stored in the device information database; The task generation module includes a basic task update module, a basic task monitoring module, a composite task generation module, an association relationship generation module, and a task storage module, wherein: The basic task update module is used to obtain the latest detection target IP address of each basic task at the second time interval, and update the detection target IP address of the basic task in the basic task file according to the latest detection target IP address. The basic task monitoring module is used to monitor whether the target monitoring data in the basic task file has changed, and when the target monitoring data has changed, to send the identification information of each basic task in the current basic task file to the synthetic task generation module. The synthetic task generation module is used to determine the synthetic task in the synthetic task file based on the identification information of each basic task in the current basic task file; wherein, each synthetic task corresponds to at least one latest task tag, and each detection device corresponds to one synthetic task. The association generation module is used to determine the correspondence between each of the detection devices and each of the synthesis tasks based on the current synthesis task file and the device information of each of the detection devices; The task storage module is used to acquire and store the correspondence between each of the detection devices and each of the synthetic tasks.
2. The system according to claim 1, characterized in that, The latest task tags are divided into two categories: Category 1 task tags and Category 2 task tags. Category 1 task tags represent the latest task tags of the set of each of the first basic tasks, while Category 2 task tags represent the latest task tags of a single second basic task. The equipment screening module includes a first-class screening unit and a second-class screening unit, wherein: The first type of filtering unit is used to, for the first type of task tag, at the first time interval, regard each of the detection devices as the target detection devices corresponding to the first type of task tag, and determine the device information of each of the target detection devices corresponding to the first type of task tag according to the device information database; The second-class filtering unit is used, for each of the second-class task tags, to query the device information of each of the detection devices based on the device information database at the first time interval, according to the preset detection rules and preset filtering rules corresponding to the latest task corresponding to the second-class task tag, to determine the target detection device corresponding to the second-class task tag and the device information of each of the target detection devices, wherein the target detection device corresponding to the second-class task tag is the detection device that needs to perform the latest task corresponding to the second-class task tag.
3. The system according to claim 1, characterized in that, Each of the basic tasks has its own interface configuration. The basic task file includes basic information about each basic task, including the identification information, interface configuration, and target IP address of the basic task. For each of the basic tasks, when the basic task update module obtains the latest detection target IP address of the basic task at the second time interval, it is specifically used for: Based on the interface configuration of the basic task, the latest detection target IP address of the basic task is obtained at the second time interval.
4. The system according to claim 1, characterized in that, The target monitoring data includes the identification information of each of the basic tasks and the total number of the basic tasks.
5. The system according to claim 1, characterized in that, The synthesis task generation module includes an initial synthesis task determination unit, a synthesis task deduplication unit, and a synthesis task update unit, wherein: The initial synthesis task determination unit is used to determine, for each of the detection devices, each of the latest tasks corresponding to the detection device based on the device information of the detection device, so as to determine the initial synthesis task corresponding to the detection device, wherein the initial synthesis task is a set of each of the latest tasks corresponding to the corresponding detection device; The deduplication unit for the synthesis task is used to perform deduplication processing on each of the initial synthesis tasks to obtain multiple target synthesis tasks. The synthesis task update unit is used to update the synthesis tasks in the synthesis task file according to each of the target synthesis tasks.
6. The system according to claim 5, characterized in that, Each of the target synthesis tasks has its own identification information. For each target synthesis task, the identification information of the target synthesis task is determined according to the identification information of each of the latest tasks that make up the target synthesis task. The deduplication unit for the synthesis task is specifically used for: Based on the identification information of each initial synthesis task, deduplication is performed to obtain multiple target synthesis tasks.
7. The system according to claim 1, characterized in that, For each of the aforementioned detection devices, the detection device includes a task download module, a detection task update module, and a detection module, wherein: The task download module is used to obtain the synthetic task corresponding to the detection device from the task storage module at the third time interval according to the preset device parameters corresponding to the detection device and the parameter values of the preset device parameters, and determine the download status code corresponding to the detection device according to the synthetic task; wherein, the parameter values of the preset device parameters are the attribute values of the preset device parameters; The detection task update module is used to determine whether to update the current detection task of the detection device based on the download status code corresponding to the detection device. The current detection task of the detection device includes at least one target detection task, and the target detection task is one of the multiple basic tasks. The detection module is used to perform detection work based on the identification information of each target detection task and the IP address of the detection target.
8. The system according to claim 7, characterized in that, The detection device stores the download status code corresponding to the current detection task of the detection device; The detection task update module includes a first status code determination unit and a second status code determination unit, wherein: The first status code determination unit is used to take the download status code corresponding to the current detection task of the detection device as the historical status code and the download status code corresponding to the synthesis task of the detection device as the latest status code. The second status code determination unit is configured to: if the historical status code and the latest status code are the same, then not update the current detection task of the detection device; if the historical status code and the latest status code are different, then take each of the basic tasks included in the synthetic task as the current detection task of the detection device, and update the download status code stored in the detection device.
Citation Information
Patent Citations
Edge container cloud detection method, device and equipment and storage medium
CN114745292A