Cluster management method, device, electronic device and storage medium

By receiving and verifying the registration request of the target device, it is automatically added to or removed from the device cluster network, which solves the problem of low efficiency of device cluster network management in the existing technology and achieves more efficient and intelligent device management.

CN113348454BActive Publication Date: 2024-09-20BEIJING JIECHUANGYA TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202180001733.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-06-25
Filing Date
2021-06-28
Publication Date
2024-09-20
Estimated Expiration
2041-06-28

AI Technical Summary

Technical Problem

In the existing technology, changes to electronic devices in the device cluster network (such as fault replacement, hardware upgrades, and new device additions) require users to manually adjust node information on the cloud server, resulting in low management efficiency and intelligence.

Method used

By receiving the registration request of the target device, its identity information is obtained for identity verification. After success, the node information is obtained and stored in the registration information of the device cluster network, so that the device can be automatically added or removed.

Benefits of technology

It improves the efficiency and intelligence of cluster management, realizes automatic discovery and addition or removal of devices, and reduces the need for manual operations by users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113348454B_ABST
    Figure CN113348454B_ABST
Patent Text Reader

Abstract

The present disclosure provides a cluster management method, apparatus, electronic device and storage medium, the method comprising: upon receiving a registration request sent by a target device, obtaining identity information of the target device from the registration request; performing identity verification on the target device based on the identity information to obtain a verification result; when the verification result is that the verification is successful, obtaining node information of the target device from the registration request; storing the node information in the registration information of the device cluster network, so that the target device joins the device cluster network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer communication technology, and in particular to a cluster management method, device, electronic device and storage medium. Background Art

[0002] In the field of Internet of Things, a completed system project usually involves a large number of electronic devices, each of which acts as a node in the network, thus forming a device cluster network.

[0003] At present, it is often necessary to adjust the electronic devices in the device cluster network according to the actual needs and changes in application scenarios. For example, it is necessary to replace the electronic devices in the device cluster network that are faulty or require hardware upgrades, add new electronic devices in the device cluster network, etc., and accordingly, the device cluster network needs to make information changes. Usually, in response to changes in electronic devices in the device cluster network, users are usually required to manually adjust the corresponding node information on the cloud server that manages the device cluster network, and the efficiency and intelligence of cluster management are low. Summary of the invention

[0004] The embodiments of the present disclosure are intended to provide a cluster management method, device, electronic device, and storage medium.

[0005] The technical solution of the embodiment of the present disclosure is implemented as follows:

[0006] The present disclosure provides a cluster management method, the method comprising:

[0007] When receiving a registration request sent by a target device, obtaining identity information of the target device from the registration request;

[0008] Performing identity verification on the target device based on the identity information to obtain a verification result;

[0009] When the verification result is successful, obtaining the node information of the target device from the registration request;

[0010] The node information is stored in the registration information of the device cluster network, so that the target device joins the device cluster network.

[0011] In some embodiments, the identity information includes attribute information and a digital certificate of the target device, and performing identity verification on the target device based on the identity information to obtain a verification result includes:

[0012] Using the attribute information, verify the validity of the target device to obtain a first verification result;

[0013] Performing a legitimacy verification on the digital certificate to obtain a second verification result;

[0014] If both the first verification result and the second verification result are successful verifications, determining that the verification result is successful verification; and / or

[0015] When any one of the first verification result and the second verification result is verification failure, the verification result is determined to be verification failure.

[0016] In some embodiments, the node information includes: device information and network port information of the target device, and storing the node information in the registration information of the device cluster network includes:

[0017] Searching the network port information from the registration information;

[0018] When the network port information is found, updating the device information associated with the network port information in the registration information to the device information; and / or

[0019] If the network port information is not found, the device information and the network port information are added to the registration information.

[0020] In some embodiments, after storing the node information in the registration information of the device cluster network, the method further includes:

[0021] When the status information reported by the target device is received, the node information in the registration information and the last connection time of the target device are updated according to the status information.

[0022] In some embodiments, after storing the node information in the registration information of the device cluster network, the method further includes:

[0023] In the case where the status information reported by the target device is not received within a preset time period, querying the temporary absence flag corresponding to the target device from the registration information;

[0024] In case the temporary absence identifier is found, retaining the node information in the registration information; and / or

[0025] In the case where the temporary leave identifier is not found, the node information is deleted from the registration information, so that the target device is removed from the device cluster network.

[0026] The present disclosure provides a cluster management device, including:

[0027] An acquisition module, configured to acquire identity information of the target device from the registration request when receiving a registration request sent by the target device;

[0028] A verification module, used to perform identity verification on the target device based on the identity information to obtain a verification result;

[0029] The acquisition module is further configured to acquire the node information of the target device from the registration request when the verification result is successful;

[0030] The management module is used to store the node information in the registration information of the device cluster network to enable the target device to join the device cluster network.

[0031] In some embodiments, the identity information includes attribute information and a digital certificate of the target device, and the verification module is specifically used to use the attribute information to verify the validity of the target device to obtain a first verification result; to verify the legitimacy of the digital certificate to obtain a second verification result; if both the first verification result and the second verification result are successful verification, determine the verification result as a successful verification; and / or, if either the first verification result or the second verification result is a verification failure, determine the verification result as a verification failure.

[0032] In some embodiments, the node information includes: device information and network port information of the target device, and the management module is specifically used to search for the network port information from the registration information; when the network port information is found, the device information associated with the network port information in the registration information is updated to the device information; and / or, when the network port information is not found, the device information and the network port information are added to the registration information.

[0033] In some embodiments, the management module is further configured to update the node information in the registration information and the last connection time of the target device according to the status information when status information reported by the target device is received.

[0034] In some embodiments, the management module is also used to query the temporary absence flag corresponding to the target device from the registration information when no status information reported by the target device is received within a preset time period; when the temporary absence flag is queried, retain the node information in the registration information; and / or, when the temporary absence flag is not queried, delete the node information from the registration information, so as to remove the target device from the device cluster network.

[0035] The present disclosure provides an electronic device, including: a processor, a memory, and a communication bus; wherein:

[0036] The communication bus is used to realize the connection and communication between the processor and the memory;

[0037] The processor is used to execute one or more programs stored in the memory to implement the above cluster management method.

[0038] An embodiment of the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above cluster management method.

[0039] The disclosed embodiments provide a cluster management method, device, electronic device and storage medium, the method comprising: upon receiving a registration request sent by a target device, obtaining the identity information of the target device from the registration request; performing identity verification on the target device based on the identity information to obtain a verification result; upon the verification result being a successful verification, obtaining the node information of the target device from the registration request; storing the node information in the registration information of the device cluster network to enable the target device to join the device cluster network. The technical solution provided by the disclosed embodiments is that the cluster management device automatically discovers the target device that needs to join the device cluster network, and then upon successful identity verification of the target device, adds the target device to the device cluster network, thereby improving the efficiency and intelligence of cluster management. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A schematic diagram of a cluster management method provided by an embodiment of the present disclosure;

[0041] Figure 2 A schematic diagram of an exemplary network architecture provided for an embodiment of the present disclosure;

[0042] Figure 3 A schematic diagram of an exemplary process of a target device joining a device cluster network provided in an embodiment of the present disclosure;

[0043] Figure 4 A schematic diagram of a process of performing cluster management based on status information by an exemplary cluster management device provided in an embodiment of the present disclosure;

[0044] Figure 5 A schematic diagram of the structure of a cluster management device provided by an embodiment of the present disclosure;

[0045] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0046] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure.

[0047] The embodiment of the present disclosure provides a cluster management method, the execution subject of which may be a cluster management device, for example, the cluster management method may be executed by a terminal device or a server or other electronic device, wherein the terminal device may be a user equipment (UE), a mobile device, a user terminal, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc. In some possible implementations, the cluster management method may be implemented by a processor calling a computer-readable instruction stored in a memory.

[0048] Figure 1 A flow chart of a cluster management method provided by an embodiment of the present disclosure. Figure 1 As shown, in the embodiment of the present disclosure, the cluster management method mainly includes the following steps:

[0049] S101. When receiving a registration request sent by a target device, obtain identity information of the target device from the registration request.

[0050] In an embodiment of the present disclosure, when receiving a registration request sent by a target device, the cluster management apparatus obtains the identity information of the target device from the registration request.

[0051] It should be noted that in the embodiments of the present disclosure, the target device may be any device that needs to join the device cluster network managed by the cluster management device, which may be a mobile phone, tablet computer and other devices, and the specific target device is not limited in the embodiments of the present disclosure.

[0052] It should be noted that in the embodiments of the present disclosure, the cluster management device can manage a device cluster network, which can include one or more electronic devices. The target device can send a registration request to the cluster management device to request to join the device cluster management network and accept management by the cluster management device.

[0053] It should be noted that in the embodiments of the present disclosure, the registration request sent by the target device to the cluster management device includes the identity information of the target device, and the cluster management device can parse the registration request to obtain the identity information. The specific identity information may include the attribute information and digital certificate of the target device, which is used to verify the legitimacy of the target device. Among them, the attribute information may be the device model, software version, hardware version and other information of the target device, which is not limited in the embodiments of the present disclosure.

[0054] S102: Perform identity verification on the target device based on the identity information to obtain a verification result.

[0055] In the embodiment of the present disclosure, after obtaining the identity information of the target device, the cluster management device may perform identity verification on the target device based on the identity information, thereby obtaining a verification result.

[0056] Specifically, in an embodiment of the present disclosure, the identity information of the target device includes attribute information and a digital certificate. The cluster management device performs identity verification on the target device based on the identity information to obtain a verification result, including: using the attribute information to verify the validity of the target device to obtain a first verification result; verifying the legitimacy of the digital certificate to obtain a second verification result; when the first verification result and the second verification result are both successful verifications, determining the verification result to be a successful verification; and / or, when either the first verification result or the second verification result is a verification failure, determining the verification result to be a verification failure.

[0057] It can be understood that in the embodiment of the present disclosure, the cluster management device can verify the identity of the target device from two aspects, one aspect is to verify whether the target device is a valid device, and the other aspect is to verify the legitimacy of the digital certificate of the target device. The cluster management device determines that the verification result of the identity verification of the target device is a successful verification only when both aspects are successfully verified, otherwise, the verification result is determined to be a failed verification.

[0058] It should be noted that in the embodiments of the present disclosure, the cluster management device verifies whether the target device is a valid device. The attribute information used may include information such as the device model of the target device. The cluster management device can determine whether it supports the management of the target device based on information such as device signals, thereby determining whether the target device is a valid device. Of course, the cluster management device can also verify the validity of the target device based on the attribute information according to other specific rules, which is not limited in the embodiments of the present disclosure.

[0059] S103: When the verification result is successful, obtain the node information of the target device from the registration request.

[0060] In an embodiment of the present disclosure, when the verification result of the target device is successful, the cluster management apparatus further obtains the node information of the target device from the registration request.

[0061] It should be noted that in the embodiments of the present disclosure, the cluster management device can parse the registration request to obtain the node information of the target device. The node information is the information that the target device needs to provide as a node in the device cluster network, and can include the device information and network port information of the target device, wherein the device information can include the basic information and status information of the device, for example, the physical location, network address, device model, hardware version and software version of the target device and other related information, and the network port information is the information of the network port to which the target device is connected. The specific node information is not limited in the embodiments of the present disclosure.

[0062] S104: Storing the node information in the registration information of the device cluster network, so that the target device joins the device cluster network.

[0063] In the embodiment of the present disclosure, after obtaining the node information of the target device, the cluster management device can store the node information in the registration information of the device cluster network, thereby enabling the target device to join the device cluster network.

[0064] It should be noted that in the embodiments of the present disclosure, the registration information of the device cluster network may be presented in the form of a registration table, that is, the cluster management device may store the node information in the registration table, so that the target device also joins the device cluster network.

[0065] Figure 2 The following is a schematic diagram of an exemplary network architecture provided by an embodiment of the present disclosure. Figure 2 As shown, a device cluster network may include multiple devices, and a cluster management device may manage the device cluster network. The registration information included in the cluster management device includes node information of each device in the device cluster network, such as an IP address.

[0066] Specifically, in an embodiment of the present disclosure, the node information includes: device information and network port information of the target device. The cluster management device stores the node information in the registration information of the device cluster network, including: searching for the network port information from the registration information; when the network port information is found, updating the device information associated with the network port information in the registration information to the device information of the target device; and / or, when the network port information is not found, adding the device information and network port information of the target device to the registration information.

[0067] It can be understood that in the embodiments of the present disclosure, the node information may include device information and network port information of the target device, and the network port information is the relevant information of the network port to which the target device is connected. Since the connected device can be replaced for one network port, the network port to which the target device is connected may have been connected to other devices before being connected to the target device, and the other devices have joined the device cluster network. Therefore, the network port information of the network port may have been stored in the registration information. However, the device information associated with the network port information is the device information of other devices. Therefore, the cluster management device can first search the registration information for whether the network port information exists. If so, only the device information of the target device needs to be updated to the registration information. If not, both the device information and the network port information need to be added to the registration information.

[0068] Figure 3 The following is a flow chart of an exemplary target device joining a device cluster network provided by an embodiment of the present disclosure. Figure 3 As shown, the target device can first send a registration request to the cluster management device, and the cluster management device will then verify the identity of the target device. If the verification is successful, the node information will be read, and further checked whether the registration information already includes the network port information in the node information, so as to update or add the node information, and complete the target device joining the device cluster network. In addition, if the verification of the target device fails, the cluster management device can directly determine that the registration has failed, and no longer execute the step of joining the target device to the device cluster network.

[0069] It can be understood that in the embodiments of the present disclosure, the cluster management device automatically discovers the target device that needs to join the device cluster network, and then when the identity verification of the target device is successful, the target device is added to the registration information of the device cluster network, so that the target device joins the device cluster network, without the need for the user to manually enter the target device related information in the cluster management device to add the target device to the device cluster network, thereby improving the efficiency and intelligence of cluster management.

[0070] In an embodiment of the present disclosure, after storing the node information in the registration information of the device cluster network, the cluster management device may further perform the following steps: upon receiving status information reported by the target device, update the node information in the registration information and the last connection time of the target device according to the status information.

[0071] It is understandable that in the embodiments of the present disclosure, after joining the device cluster network, the target device can periodically report its own status information to the cluster management device. When the cluster management device receives the status information, it can update the node information in the registration information and the last connection time of the target device.

[0072] In an embodiment of the present disclosure, after the cluster management device stores the node information in the registration information of the device cluster network, it can also perform the following steps: when no status information reported by the target device is received within a preset time period, query the temporary absence flag corresponding to the target device from the registration information; when the temporary absence flag is queried, retain the node information in the registration information; and / or, when the temporary absence flag is not queried, delete the node information from the registration information, so as to remove the target device from the device cluster network.

[0073] It can be understood that in the embodiments of the present disclosure, if the cluster management device has not received the status information reported by the target device within the preset time period, it indicates that the target device has been offline and is not working properly. At this time, the user may actively control the target device to suspend work due to some reasons, and will continue to use the target device afterwards. The user actually sets a corresponding temporary absence flag for the target device in the registration information stored in the cluster management device in advance. In this way, if the cluster management device has not received the status information reported by the target device within the preset time period, it can first query the temporary absence flag corresponding to the target device. If it is queried, the target device is still controlled to belong to the device cluster network, so that when the target device resumes normal operation later, the target device can continue to be managed directly. If it is not queried, the target device is directly removed from the device cluster network.

[0074] Figure 4 The present invention provides an exemplary cluster management device for cluster management based on state information. Figure 4 As shown, in an embodiment of the present disclosure, the cluster management device can receive status information reported by any device X in the device cluster network and update the corresponding node information and the last connection time according to the information. In addition, for devices in the network device cluster that fail to report status information on time, it can be checked whether there is a temporary leave mark. If so, the node information of other devices can continue to be updated. If not, the device that fails to report status information on time will be removed from the device cluster network.

[0075] It can be understood that in the embodiments of the present disclosure, the target device can automatically report status information to the cluster management device, and the cluster management device can update the relevant information in a timely manner without the need for manual update by the user. Moreover, if the cluster management device does not receive status information for a long time, it can automatically remove the target device without the need for manual removal by the user, thereby improving the efficiency and intelligence of cluster management.

[0076] The disclosed embodiment provides a cluster management method, including: upon receiving a registration request sent by a target device, obtaining identity information of the target device from the registration request; performing identity verification on the target device based on the identity information to obtain a verification result; upon the verification result being a successful verification, obtaining node information of the target device from the registration request; storing the node information in the registration information of the device cluster network to enable the target device to join the device cluster network. In the cluster management method provided by the disclosed embodiment, the cluster management device automatically discovers the target device that needs to join the device cluster network, and thus, upon successful identity verification of the target device, adds the target device to the device cluster network, thereby improving the efficiency and intelligence of cluster management.

[0077] An embodiment of the present disclosure provides a cluster management device. Figure 5 The structure diagram of a cluster management device provided by an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the cluster management device includes:

[0078] The acquisition module 501 is used to acquire the identity information of the target device from the registration request when receiving the registration request sent by the target device;

[0079] A verification module 502, configured to perform identity verification on the target device based on the identity information to obtain a verification result;

[0080] The acquisition module 501 is further configured to acquire the node information of the target device from the registration request when the verification result is successful.

[0081] The management module 503 is used to store the node information into the registration information of the device cluster network, so as to enable the target device to join the device cluster network.

[0082] In a disclosed embodiment, the identity information includes attribute information and a digital certificate of the target device, and the verification module 502 is specifically used to use the attribute information to verify the validity of the target device to obtain a first verification result; to verify the legitimacy of the digital certificate to obtain a second verification result; if both the first verification result and the second verification result are successful verifications, determine that the verification result is a successful verification; and / or, if either the first verification result or the second verification result is a failed verification, determine that the verification result is a failed verification.

[0083] In one embodiment of the present disclosure, the node information includes: device information and network port information of the target device, and the management module 503 is specifically used to search for the network port information from the registration information; when the network port information is found, the device information associated with the network port information in the registration information is updated to the device information; and / or, when the network port information is not found, the device information and the network port information are added to the registration information.

[0084] In an embodiment of the present disclosure, the management module 503 is further configured to update the node information in the registration information and the last connection time of the target device according to the status information when receiving the status information reported by the target device.

[0085] In one embodiment of the present disclosure, the management module 503 is also used to query the temporary absence flag corresponding to the target device from the registration information when no status information reported by the target device is received within a preset time period; when the temporary absence flag is queried, retain the node information in the registration information; and / or, when the temporary absence flag is not queried, delete the node information from the registration information, so as to remove the target device from the device cluster network.

[0086] The disclosed embodiment provides a cluster management device, which, upon receiving a registration request sent by a target device, obtains the identity information of the target device from the registration request; performs identity verification on the target device based on the identity information to obtain a verification result; and, if the verification result is successful, obtains the node information of the target device from the registration request; stores the node information in the registration information of the device cluster network, thereby enabling the target device to join the device cluster network. The cluster management device provided by the disclosed embodiment automatically discovers the target device that needs to join the device cluster network, and, if the identity verification of the target device is successful, adds the target device to the device cluster network, thereby improving the efficiency and intelligence of cluster management.

[0087] An embodiment of the present disclosure provides an electronic device. Figure 6 The structure diagram of an electronic device provided by the embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the electronic device includes: a processor 601, a memory 602 and a communication bus 603; wherein,

[0088] The communication bus 603 is used to realize the connection and communication between the processor 601 and the memory 602;

[0089] The processor 601 is used to execute one or more programs stored in the memory 602 to implement the above cluster management method.

[0090] The embodiment of the present disclosure also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned cluster management method. The computer-readable storage medium can be a volatile memory (volatile memory), such as a random access memory (Random-Access Memory, RAM); or a non-volatile memory (non-volatile memory), such as a read-only memory (Read-Only Memory, ROM), a flash memory (flash memory), a hard disk (Hard Disk Drive, HDD) or a solid-state drive (Solid-State Drive, SSD); or it can be a respective device including one or any combination of the above-mentioned memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.

[0091] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0092] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable signal processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable signal processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0093] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable signal processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0094] These computer program instructions may also be loaded onto a computer or other programmable signal processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0095] The above description is only a preferred embodiment of the present disclosure and is not intended to limit the protection scope of the present disclosure.

Claims

1. A cluster management method, characterized in that: The method comprises: When receiving a registration request sent by a target device, obtaining identity information of the target device from the registration request; Performing identity verification on the target device based on the identity information to obtain a verification result; When the verification result is successful, obtaining the node information of the target device from the registration request; The node information is stored in the registration information of the device cluster network, so that the target device joins the device cluster network, and the node information includes the network port information of the target device; Receiving status information reported by the target device in the device cluster network, and updating the node information in the registration information and the last connection time of the target device according to the status information; For the target device that has not received the status information within a preset time, performing a removal operation; The performing a removal operation on the target device that has not received the status information within a preset time includes: In the case where the status information reported by the target device is not received within a preset time period, querying the temporary absence flag corresponding to the target device from the registration information; and Do at least one of the following: In case the temporary absence identifier is queried, retaining the node information in the registration information; and In the case where the temporary leave identifier is not found, the node information is deleted from the registration information, so that the target device is removed from the device cluster network.

2. The method according to claim 1, characterized in that The identity information includes attribute information and a digital certificate of the target device, and the identity verification of the target device based on the identity information to obtain a verification result includes: Using the attribute information, verify the validity of the target device to obtain a first verification result; Performing a legitimacy verification on the digital certificate to obtain a second verification result; and Do at least one of the following: If both the first verification result and the second verification result are verification successes, determining the verification result is verification success; and When any one of the first verification result and the second verification result is verification failure, the verification result is determined to be verification failure.

3. The method according to claim 1, characterized in that The node information includes: device information and network port information of the target device, and storing the node information in the registration information of the device cluster network includes: Searching the network port information from the registration information; and Do at least one of the following: When the network port information is found, updating the device information associated with the network port information in the registration information to the device information; and If the network port information is not found, the device information and the network port information are added to the registration information.

4. A cluster management device, characterized in that: include: An acquisition module, configured to acquire identity information of the target device from the registration request when receiving a registration request sent by the target device; A verification module, used to perform identity verification on the target device based on the identity information to obtain a verification result; The acquisition module is further configured to acquire the node information of the target device from the registration request when the verification result is successful; A management module, used to store the node information into the registration information of the device cluster network, so as to enable the target device to join the device cluster network, wherein the node information includes the network port information of the target device; A processing module, configured to receive status information reported by the target device in the device cluster network, and update the node information in the registration information and the last connection time of the target device according to the status information; Also used for performing a removal operation on the target device that has not received the status information within a preset time; The management module is further configured to query the temporary absence flag corresponding to the target device from the registration information when no status information reported by the target device is received within a preset time period; When the temporary absence identifier is found, retaining the node information in the registration information; And / or, when the temporary leave identifier is not found, the node information is deleted from the registration information, so that the target device is removed from the device cluster network.

5. An electronic device, characterized in that: include: processor, memory, and communication bus; wherein, The communication bus is used to realize the connection and communication between the processor and the memory; The processor, when executing one or more programs stored in the memory, is configured to: When receiving a registration request sent by a target device, obtaining identity information of the target device from the registration request; Performing identity verification on the target device based on the identity information to obtain a verification result; When the verification result is successful, obtaining the node information of the target device from the registration request; The node information is stored in the registration information of the device cluster network, so that the target device joins the device cluster network, and the node information includes the network port information of the target device; Receiving status information reported by the target device in the device cluster network, and updating the node information in the registration information and the last connection time of the target device according to the status information; For the target device that has not received the status information within a preset time, performing a removal operation; The processor is further configured to: In the case where the status information reported by the target device is not received within a preset time period, querying the temporary absence flag corresponding to the target device from the registration information; and Do at least one of the following: In case the temporary absence identifier is queried, retaining the node information in the registration information; and In the case where the temporary leave identifier is not found, the node information is deleted from the registration information, so that the target device is removed from the device cluster network.

6. The electronic device according to claim 5, characterized in that: The identity information includes attribute information and a digital certificate of the target device, and the processor is configured to: Using the attribute information, verify the validity of the target device to obtain a first verification result; Performing a legitimacy verification on the digital certificate to obtain a second verification result; as well as Do at least one of the following: If both the first verification result and the second verification result are successful verification, determining the verification result is successful verification; and When any one of the first verification result and the second verification result is verification failure, the verification result is determined to be verification failure.

7. The electronic device according to claim 5, characterized in that: The node information includes: device information and network port information of the target device, and the processor is configured as follows: Searching the network port information from the registration information; and Do at least one of the following: When the network port information is found, updating the device information associated with the network port information in the registration information to the device information; and If the network port information is not found, the device information and the network port information are added to the registration information.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement: When receiving a registration request sent by a target device, obtaining identity information of the target device from the registration request; Performing identity verification on the target device based on the identity information to obtain a verification result; When the verification result is successful, obtaining the node information of the target device from the registration request; The node information is stored in the registration information of the device cluster network, so that the target device joins the device cluster network, and the node information includes the network port information of the target device; Receiving status information reported by the target device in the device cluster network, and updating the node information in the registration information and the last connection time of the target device according to the status information; For the target device that has not received the status information within a preset time, performing a removal operation; Wherein, when the status information reported by the target device is not received within a preset time period, querying the temporary absence flag corresponding to the target device from the registration information; and Do at least one of the following: In case the temporary absence identifier is queried, retaining the node information in the registration information; and In the case where the temporary leave identifier is not found, the node information is deleted from the registration information, so that the target device is removed from the device cluster network.

9. The storage medium according to claim 8, characterized in that The identity information includes attribute information and a digital certificate of the target device, and the one or more programs may be executed by one or more processors to implement: Using the attribute information, verify the validity of the target device to obtain a first verification result; Performing a legitimacy verification on the digital certificate to obtain a second verification result; as well as Do at least one of the following: If both the first verification result and the second verification result are successful verification, determining the verification result is successful verification; and When any one of the first verification result and the second verification result is verification failure, the verification result is determined to be verification failure.

10. The storage medium according to claim 8, characterized in that The node information includes: device information and network port information of the target device, and the one or more programs can be executed by one or more processors to implement: Searching the network port information from the registration information; and Do at least one of the following: When the network port information is found, updating the device information associated with the network port information in the registration information to the device information; and If the network port information is not found, the device information and the network port information are added to the registration information.

11. A computer program stored in a memory, wherein: The computer program implements the steps of the method according to any one of claims 1 to 3 when executed by a processor.

Citation Information

Patent Citations

  • Terminal identification method, machine identification code registration method, and corresponding system and equipment

    CN104184713A

  • Access device, authentication server, terminal device access control method and terminal device access control system

    CN108811043A

  • Gateway, Internet of Things device, Internet of Things system, registration method and information processing method

    CN108848025A

  • Network connection method and device, and storage medium

    CN111064749A

  • Message transmission method and device, electronic equipment and readable storage medium

    CN111866092A