A method for discovering and managing collector equipment in an industrial audit system
By using the zookeeper data model in the industrial audit system, creating node chains and monitoring node status, the problems of inaccurate device discovery and unified policy management are solved, and rapid discovery and accurate device resource updates are achieved.
Patent Information
- Application Number
- CN202211594200.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-13
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-12-13
AI Technical Summary
In the existing industrial audit system, equipment discovery is inaccurate and cannot take into account equipment status detection and policy management, resulting in equipment discovery is inaccurate and inconsistent management.
The zookeeper data model is adopted to create node chains and monitor node status to realize device discovery, monitoring and management, ensuring timely update of resources, and avoiding the problems of inaccurate discovery of equipment and inconsistent policy management. Specific steps include creating persistent nodes and temporary nodes, synchronizing key parameters of the collector device, and monitoring online status and policy data transmission through child nodes.
It realizes rapid discovery of collector equipment and timely updates equipment resources, ensuring the accuracy of policy management, and avoiding the problem of inaccurate equipment discovery.
Smart Images

Figure CN115834449B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method for discovering and managing collector equipment in an industrial audit system. Background Art
[0002] With the development of technology, industrial control audit monitoring products are deployed on a large scale in industrial systems to realize the monitoring and analysis of industrial networks. The deployment method usually adopts the central node to deploy the audit center system, and the sub-node to deploy the audit collector system. The collector reports the collected industrial system network data to the audit center for unified analysis and processing.
[0003] At present, in order to facilitate the audit center to discover collector devices and conduct unified management, including monitoring the online status and resource utilization of collectors, issuing policies has become an important requirement. However, in the existing device discovery technology, devices are discovered by scanning network-reachable addresses, which is inaccurate and scans a large number of devices that do not meet the requirements; and it cannot take into account the status detection and policy management of the scanned devices. Summary of the invention
[0004] In view of this, the present invention provides a method for discovering and managing collector devices in an industrial audit system. Based on the zookeeper data model, the method discovers, monitors and manages devices by creating a node chain and monitoring the node status, so as to update device resources in a timely manner and avoid problems such as inaccurate device discovery and inability to uniformly manage policies.
[0005] The present invention discloses a method for discovering and managing collector devices in an industrial audit system, which comprises the following steps:
[0006] Step 1: The audit center creates persistent node Boxes, where persistent node Boxes are permanent nodes.
[0007] Step 2: Create a temporary node during initialization;
[0008] Step 3: Based on the temporary node and zookeeper node monitoring principle, create a child node Boxes / BoxID1 for the persistent node Boxes, and create child nodes Boxes / BoxID1 / request and Boxes / BoxID1 / response for the child node Boxes / BoxID1, so that the audit center can send policy data to the child node Boxes / BoxID1 / request and obtain node data processing results from the child node Boxes / BoxID1 / response.
[0009] Furthermore, the temporary node stores key parameters of the collector device; the key parameters include serial number, IP address, device name, number of ports and online status.
[0010] Furthermore, after step 2 and before step 3, the method further includes:
[0011] When the collector device configuration points to the IP, that is, the IP address of the audit center, a session is established with the persistent node Boxes, and the key parameters of the collector device stored in the temporary node are synchronized to the persistent node Boxes.
[0012] Furthermore, the step 3 comprises:
[0013] Step 31: The audit center creates a child node Boxes / BoxID1 for the persistent node Boxes based on the key parameters; wherein the child node Boxes / BoxID1 is the serial number of the collector device;
[0014] Step 32: The audit center creates a temporary node Boxes / BoxID1 / heartBeat for the child node and sets a monitor to monitor the online status of the collector device and the device network port connection status;
[0015] Step 33: The audit center creates subnodes Boxes / BoxID1 / request and Boxes / BoxID1 / response for the subnodes, which are used to send and distribute policy data and obtain node data processing results.
[0016] Furthermore, the step 31 further includes:
[0017] Set a monitor for the child node Boxes / BoxID1 to monitor data changes of the child node Boxes / BoxID1.
[0018] Furthermore, after step 32 and before step 33, the method further includes:
[0019] According to the monitoring principle of Zookeeper nodes, the collector device will be automatically found in the asset list of the audit center, and the key parameters of the collector device will be stored in the database.
[0020] Furthermore, the step 32 further includes:
[0021] The temporary node will be deleted when the session is disconnected, and a message will be pushed to the persistent node Boxes. After the persistent node Boxes detects the deletion of the temporary node, it will set the collector device status to offline.
[0022] Further, the step 33 comprises:
[0023] The audit center sends policy data to the child node Boxes / BoxID1. The collector device monitors the child node Boxes / BoxID1 / request, obtains the issued policy data, and writes back the response data to the child node Boxes / BoxID1 / response. The audit center server monitors Boxes / BoxID1 / response to obtain the data processing response result.
[0024] Due to the adoption of the above technical solution, the present invention has the following advantages: the present invention can quickly discover collector devices, and timely update device resources and policy management to avoid inaccurate device discovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0026] Figure 1 A flowchart of a method for discovering and managing collector devices in an industrial audit system according to an embodiment of the present invention;
[0027] Figure 2 A schematic diagram of a discovery and management device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The present invention is further described in conjunction with the accompanying drawings and embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field should fall within the scope of protection of the embodiments of the present invention.
[0029] See also Figure 1 and Figure 2 The present invention provides an embodiment of a method for discovering and managing collector devices in an industrial audit system, which includes the following steps:
[0030] S1: The audit center creates persistent node Boxes, where persistent node Boxes are permanent nodes.
[0031] S2: Create a temporary node during initialization;
[0032] S3: Based on the temporary node and zookeeper node monitoring principle, create a child node Boxes / BoxID1 for the persistent node Boxes, and create child nodes Boxes / BoxID1 / request and Boxes / BoxID1 / response for the child node Boxes / BoxID1, so that the audit center can send policy data to the child node Boxes / BoxID1 / request and obtain node data processing results from the child node Boxes / BoxID1 / response.
[0033] In this embodiment, the temporary node stores key parameters of the collector device; the key parameters include serial number, IP address, device name, number of ports and online status.
[0034] In this embodiment, after S2 and before S3, it also includes:
[0035] When the collector device configuration points to the IP, that is, the IP address of the audit center, a session is established with the persistent node Boxes, and the key parameters of the collector device stored in the temporary node are synchronized to the persistent node Boxes.
[0036] In this embodiment, S3 includes:
[0037] S31: The audit center creates a child node Boxes / BoxID1 for the persistent node Boxes based on the key parameters; wherein the child node Boxes / BoxID1 is the serial number of the collector device;
[0038] S32: The audit center creates a temporary node Boxes / BoxID1 / heartBeat for the child node and sets a monitor to monitor the online status of the collector device and the device network port connection status;
[0039] S33: The audit center creates subnodes Boxes / BoxID1 / request and Boxes / BoxID1 / response for the subnodes, which are used to send and distribute policy data and obtain node data processing results.
[0040] In this embodiment, S31 also includes:
[0041] Set a monitor for the child node Boxes / BoxID1 to monitor data changes of the child node Boxes / BoxID1.
[0042] In this embodiment, after S32 and before S33, the following is further included:
[0043] According to the monitoring principle of Zookeeper nodes, the collector device will be automatically found in the asset list of the audit center, and the key parameters of the collector device will be stored in the database.
[0044] In this embodiment, S32 also includes:
[0045] The temporary node will be deleted when the session is disconnected, and a message will be pushed to the persistent node Boxes. After the persistent node Boxes detects the deletion of the temporary node, it will set the collector device status to offline.
[0046] In this embodiment, S33 includes:
[0047] The audit center sends policy data to the child node Boxes / BoxID1. The collector device monitors the child node Boxes / BoxID1 / request, obtains the issued policy data, and writes back the response data to the child node Boxes / BoxID1 / response. The audit center server monitors Boxes / BoxID1 / response to obtain the data processing response result.
[0048] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for discovering and managing collector devices in an industrial audit system, characterized in that: The following steps are involved: Step 1: The audit center creates persistent node Boxes, where persistent node Boxes are permanent nodes. Step 2: Create a temporary node during initialization; Step 3: Based on the temporary node and zookeeper node monitoring principle, create a child node Boxes / BoxID1 for the persistent node Boxes, and create child nodes Boxes / BoxID1 / request and Boxes / BoxID1 / response for the child node Boxes / BoxID1, so that the audit center can send policy data to the child node Boxes / BoxID1 / request and obtain node data processing results from the child node Boxes / BoxID1 / response; After step 2 and before step 3, the method further includes: When the collector device configuration points to the IP, that is, the IP address of the audit center, a session is established with the persistent node Boxes, and the key parameters of the collector device stored in the temporary node are synchronized to the persistent node Boxes; The step 3 comprises: Step 31: The audit center creates a child node Boxes / BoxID1 for the persistent node Boxes based on the key parameters; wherein the child node Boxes / BoxID1 is the serial number of the collector device; Step 32: The audit center creates a temporary node Boxes / BoxID1 / heartBeat for the child node and sets a monitor to monitor the online status of the collector device and the device network port connection status; Step 33: The audit center creates subnodes Boxes / BoxID1 / request and Boxes / BoxID1 / response for the subnodes, which are used to send and distribute policy data and obtain node data processing results; The step 31 further comprises: Set a monitor for the child node Boxes / BoxID1 to monitor the data changes of the child node Boxes / BoxID1; After step 32 and before step 33, the following steps are further included: According to the monitoring principle of Zookeeper nodes, the collector device will be automatically found in the asset list of the audit center, and the key parameters of the collector device will be stored in the database; The step 32 further comprises: The temporary node will be deleted when the session is disconnected, and a message will be pushed to the persistent node Boxes. After the persistent node Boxes detects the deletion of the temporary node, it will set the collector device status to offline; The step 33 comprises: The audit center sends policy data to the child node Boxes / BoxID1. The collector device monitors the child node Boxes / BoxID1 / request, obtains the issued policy data, and writes back the response data to the child node Boxes / BoxID1 / response. The audit center server monitors Boxes / BoxID1 / response to obtain the data processing response result.
2. The method according to claim 1, characterized in that The temporary node stores key parameters of the collector device; the key parameters include serial number, IP address, device name, port number and online status.
