Node management method, system and computer device

By using proxy nodes to facilitate data interaction between edge nodes and central nodes, the communication difficulties caused by limited resources at edge nodes are resolved, enabling efficient data interaction and management.

CN119520523BActive Publication Date: 2025-11-07SHENZHEN COMTOP INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411748139.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-11-07
Estimated Expiration
2044-12-02

AI Technical Summary

Technical Problem

Edge nodes, due to limited resources, struggle to communicate and manage effectively with the central node, leading to difficulties in data interaction.

Method used

Using proxy nodes as a bridge, edge nodes and central nodes interact with each other. The proxy node sends a registration request instruction to the edge node and receives the registration data packet, registers with the central node, and sends task information to instruct the edge node to execute the task after successful registration.

Benefits of technology

It enables data interaction between edge nodes and central nodes, solves the problem of limited resources, and improves management efficiency and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520523B_ABST
    Figure CN119520523B_ABST
Patent Text Reader

Abstract

The application relates to a node management method, system and computer device, which is applied to an agent node, the agent node communicates with an edge node through a serial port and communicates with a center node through a network, and the method comprises the following steps: sending a registration request instruction to a target edge node; receiving a registration data packet returned by the target edge node based on the registration request instruction; sending the registration data packet to the center node to register the target edge node; and in the case that the target edge node is successfully registered, sending task information to the target edge node in response to a control instruction of the center node to instruct the target edge node to execute corresponding tasks according to the task information. The edge node does not need to have powerful network connection capability and processing capability, and only needs to communicate with the agent node through the serial port, so that the registration of the center node can be realized, and the problem that the edge node cannot communicate with the center node due to limited resources is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of edge computing, and in particular to a node management method and system and a computer device. BACKGROUND

[0002] With the development of Internet technology, edge computing, as a new computing mode that stores data close to data sources and users, has been widely concerned and applied. In edge computing, edge nodes can process and analyze local data in real time, relieving the data processing pressure of the center node. Edge nodes are usually deployed at the network edge and are resource-constrained, which may not support complex communication protocols or high-frequency data transmission, making it difficult to communicate with the center node. SUMMARY

[0003] Therefore, it is necessary to provide a node management method, system and computer device to solve the above technical problems.

[0004] In a first aspect, the present application provides a node management method applied to a proxy node, the proxy node being in communication with edge nodes through a serial port and in communication with a center node through a network; the method comprising:

[0005] sending a registration request instruction to a target edge node;

[0006] receiving a registration data packet returned by the target edge node based on the registration request instruction;

[0007] sending the registration data packet to the center node to register the target edge node;

[0008] in the case where the target edge node is successfully registered, sending task information to the target edge node in response to a control instruction of the center node, to instruct the target edge node to perform a corresponding task according to the task information.

[0009] In one of the embodiments, before sending the registration request instruction to the edge node, the method further comprises:

[0010] sending a probe packet to all edge nodes connected to the proxy node;

[0011] obtaining response packets generated by the all edge nodes based on the probe packet;

[0012] taking an edge node corresponding to a response packet satisfying a preset registration condition as the target edge node.

[0013] In one of the embodiments, the sending of the registration data packet to the center node to register the target edge node comprises:

[0014] According to the data format and checksum of the registration data packet, it is judged whether the registration data packet is complete;

[0015] In the case that the registration data packet is complete, the registration data packet is converted into registration information meeting the format requirement of the center node;

[0016] The registration information is sent to the center node to register the target edge node.

[0017] In one embodiment, the method further comprises:

[0018] Obtaining task execution information generated by the target edge node in the process of executing a task;

[0019] The task execution information is sent to the center node.

[0020] In a second aspect, the application further provides a node management method, applied to an edge node, the edge node communicating with a proxy node through a serial port, the method comprising:

[0021] In response to a registration request instruction of the proxy node, a registration data packet is sent to the proxy node to instruct the proxy node to send the registration data packet to a center node to register the edge node;

[0022] In the case that the edge node is successfully registered, task information generated by the proxy node according to a control instruction of the center node is obtained;

[0023] According to the task information, a corresponding task is executed.

[0024] In one embodiment, before the registration data packet is sent to the proxy node, the method further comprises:

[0025] A query instruction is sent to a serial port device connected to the edge node to obtain identification information of the serial port device;

[0026] State information of itself is obtained;

[0027] The registration data packet is generated according to the identification information and the state information.

[0028] In a third aspect, the application further provides a node management method, applied to a center node, the center node communicating with a proxy node through a network, the method comprising:

[0029] According to a registration data packet sent by the proxy node, a target edge node is registered; the registration data packet is generated by the target edge node in response to a registration request instruction of the proxy node.

[0030] generate a control instruction in a case where the target edge node is registered successfully;

[0031] send the control instruction to the proxy node to instruct the proxy node to send task information to the target edge node, and instruct the target edge node to perform a corresponding task according to the task information.

[0032] In one of the embodiments, the generating the control instruction in the case where the target edge node is registered successfully comprises:

[0033] acquiring a function and a resource usage of the target edge node according to the registration data packet in the case where the target edge node is registered successfully;

[0034] querying a task to be allocated in a center node according to the function and the resource usage, and determining a target allocation task;

[0035] generating the control instruction according to task information of the target allocation task.

[0036] In a fourth aspect, the present application further provides a node management system, comprising a proxy node, a center node and an edge node, wherein the proxy node communicates with the edge node through a serial port and communicates with the center node through a network;

[0037] The proxy node is configured to send a registration request instruction to a target edge node.

[0038] The target edge node is configured to send a registration data packet to the proxy node in response to the registration request instruction.

[0039] The proxy node is further configured to acquire the registration data packet, send the registration data packet to the center node, register the target edge node, and in a case where the target edge node is registered successfully, send task information to the target edge node in response to a control instruction of the center node to instruct the target edge node to perform a corresponding task according to the task information.

[0040] In a fifth aspect, the present application further provides a computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the steps of the node management method provided in any of the above embodiments when executing the computer program.

[0041] In the node management method, the system, and the computer device, the proxy node sends a registration request instruction to the target edge node, receives a registration data packet returned by the target edge node based on the registration request instruction, sends the registration data packet to the center node to register the target edge node, and in the case that the target edge node is successfully registered, sends task information to the target edge node in response to a control instruction of the center node to instruct the target edge node to perform a corresponding task according to the task information, so that data interaction between the edge node and the center node is realized. It can be understood that the proxy node can serve as a bridge between the center node and the edge node, send registration information of the edge node to the center node, and send task information generated by the center node to the edge node, so that the edge node does not need to have strong network connection capability and processing capability, and only needs to communicate with the proxy node through a serial port to realize registration to the center node, thereby effectively solving the problem that the edge node cannot communicate with the center node due to limited resources. Moreover, the center node can uniformly manage and schedule the edge node through the proxy node, thereby improving management efficiency and resource utilization. BRIEF DESCRIPTION OF DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the following will briefly introduce the drawings needed to be used in the description of the embodiments of the present application or the related art. Obviously, the drawings in the following description only some embodiments of the present application, and for those skilled in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0043] Figure 1 An application environment diagram of a node management method in an embodiment;

[0044] Figure 2 One of the flowcharts of a node management method in an embodiment;

[0045] Figure 3 A structural block diagram of a proxy server in an embodiment;

[0046] Figure 4 The second flowchart of a node management method in an embodiment;

[0047] Figure 5 A structural block diagram of an edge server in an embodiment;

[0048] Figure 6 The third flowchart of a node management method in an embodiment;

[0049] Figure 7 A structural block diagram of a center server in an embodiment;

[0050] Figure 8This is a diagram of the internal structure of a proxy server in one embodiment;

[0051] Figure 9 This is an internal structure diagram of an edge server in one embodiment;

[0052] Figure 10 This is a diagram of the internal structure of the central server in one embodiment. Detailed Implementation

[0053] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0054] The node management method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, agent node 102 communicates with edge node 104 via a serial port and with central node 106 via a network. Edge node 104 connects to serial devices via a serial port, has low processing power and storage resources, and is used to collect and process data from serial devices. Edge node 104 can be a computer device, hardware server, etc. Agent node 102 has strong processing power, storage capacity, and network connectivity, and can act as a bridge between edge node 104 and central node 106. Agent node 102 can be a computer device, hardware server, etc. Central node 106 is the core of the edge network, responsible for unified management, task allocation, and resource scheduling of edge node 104 based on the information collected by agent node 102. Central node 106 can be a computer device, hardware server, virtual machine, cloud server, etc.

[0055] In one embodiment, such as Figure 2 As shown, this application provides a node management method for application Figure 1 Taking the edge nodes in the example, steps 202-208 are included.

[0056] Step 202: Send a registration request instruction to the target edge node.

[0057] The target edge node is an edge node in the edge network that has not yet completed registration with the agent node or the central node. The registration request instruction includes information such as data format requirements and registration timeout. The agent node can send the registration request instruction to the target edge node via serial port, instructing the target edge node to send the registration information according to the data format requirements within the registration timeout period.

[0058] Step 204: Receive the registration data packet returned by the target edge node based on the registration request instruction.

[0059] The registration data packet includes identification information and state information of the target edge node, and can be encapsulated in a json format. The identification information can include device ID, device type, function description and the like, and the state information includes running state, resource usage and the like.

[0060] In step 206, the registration data packet is sent to the center node to register the target edge node.

[0061] After the proxy node establishes a network connection with the center node, the registration data packet of the target edge node can be sent to the center node to register the target edge node in the center node.

[0062] In step 208, in the case that the target edge node is successfully registered, task information is sent to the target edge node in response to a control instruction of the center node to instruct the target edge node to perform a corresponding task according to the task information.

[0063] After the target edge node is successfully registered in the center node, the center node includes the target node in the management range and performs task allocation and scheduling on the target node. Specifically, the center node sends a control instruction to the proxy node through the network, and the proxy node sends task information to the target edge node in response to the control instruction. After the target edge node receives the task information, it performs a corresponding task according to the task information.

[0064] In this embodiment, by sending a registration request instruction to the target edge node, receiving a registration data packet returned by the target edge node based on the registration request instruction, sending the registration data packet to the center node to register the target edge node, and in the case that the target edge node is successfully registered, sending task information to the target edge node in response to a control instruction of the center node to instruct the target edge node to perform a corresponding task according to the task information, data interaction between the edge node and the center node is realized. It can be understood that the proxy node can serve as a bridge between the center node and the edge node, send the registration information of the edge node to the center node, and send the task information generated by the center node to the edge node. In this way, the edge node does not need to have strong network connection capability and processing capability, and only needs to communicate with the proxy node through a serial port to realize registration to the center node, effectively solving the problem that the edge node cannot communicate with the center node due to limited resources. Moreover, the center node can uniformly manage and schedule the edge node through the proxy node, improving management efficiency and resource utilization.

[0065] In one embodiment, before sending the registration request instruction to the edge node, the node management method further comprises the steps of: sending a probe message to all edge nodes connected to the proxy node, obtaining response messages generated by all edge nodes based on the probe message, and taking the edge node corresponding to the response message meeting the preset registration condition as the target edge node.

[0066] The probe message comprises the node ID of the proxy node. The response message comprises the device ID of the edge node. The preset registration condition indicates that the device ID of the edge node is within the device ID range managed by the proxy node and has not completed registration at the center node.

[0067] It can be understood that the proxy node can periodically send a probe message to all edge nodes connected thereto, obtain response messages generated by all edge nodes based on the probe message, obtain the device ID of the corresponding edge node according to the response message, take the edge node corresponding to the device ID as the target edge node if the device ID is within the device ID range, and save the serial port address and device ID of the target edge node and the like information to prepare for the subsequent registration process.

[0068] In one embodiment, sending the registration data packet to the center node to register the target edge node comprises the steps of: judging whether the registration data packet is complete according to the data format and the checksum of the registration data packet, converting the registration data packet into registration information meeting the format requirements of the center node in the case that the registration data packet is complete, and sending the registration information to the center node to register the target edge node.

[0069] It can be understood that the proxy node first obtains the data format and the checksum of the registration data packet, judges whether the registration data packet is complete according to the data format and the checksum, converts the registration data packet into registration information meeting the format requirements of the center node if it is determined that the registration data packet is complete according to the data format and the checksum, and sends the registration information to the center node to register the target edge node, while the proxy node sends a verification passed message to the edge node.

[0070] In one embodiment, the node management method further comprises the steps of: obtaining task execution information generated by the target edge node in the process of executing a task, and sending the task execution information to the center node.

[0071] The task execution information includes intermediate result files and running data generated during the target edge node executing the task, and the like. The proxy node can acquire the task execution information of the target edge node, and send the task execution information to the center node, so that the center node can monitor the running status of the target edge node in real time.

[0072] Based on the same inventive concept, the embodiments of the present application also provide a proxy server for implementing the above-mentioned node management method. The proxy server provides a solution to the problem similar to the solution provided in the above-mentioned method, and therefore the specific limitations in one or more embodiments of the proxy server provided below can refer to the limitations of the node management method provided above, and will not be described here again.

[0073] In one embodiment, as shown in Figure 3 a proxy server is provided, which includes a request registration module 302, a data packet acquisition module 304, a registration data sending module 306, and a task sending module 308.

[0074] The request registration module 302 is configured to send a registration request instruction to the target edge node.

[0075] The data packet acquisition module 304 is configured to receive a registration data packet returned by the target edge node based on the registration request instruction.

[0076] The registration data sending module 306 is configured to send the registration data packet to the center node to register the target edge node.

[0077] The task sending module 308 is configured to, in the case that the target edge node is successfully registered, send task information to the target edge node in response to a control instruction of the center node, so as to instruct the target edge node to execute a corresponding task according to the task information.

[0078] In one embodiment, the proxy server further includes a target edge node determination module configured to send a probe packet to all edge nodes connected to the proxy node, acquire response packets generated by all edge nodes based on the probe packet, and determine an edge node corresponding to a response packet satisfying a preset registration condition as the target edge node.

[0079] In one embodiment, the registration module is further configured to determine whether the registration data packet is complete according to a data format and a checksum of the registration data packet, convert the registration data packet into registration information satisfying a format requirement of the center node in the case that the registration data packet is complete, and send the registration information to the center node to register the target edge node.

[0080] In one embodiment, the proxy server further comprises a proxy monitoring module configured to acquire task execution information generated by the target edge node in the process of executing the task, and send the task execution information to the center node.

[0081] In one embodiment, as shown in Figure 4 The present application further provides a node management method, applied to an edge node in Figure 1 , and comprising steps 402-406.

[0082] In step 402, in response to a registration request instruction of a proxy node, a registration data packet is sent to the proxy node to instruct the proxy node to send the registration data packet to a center node to register the edge node.

[0083] After receiving the registration request instruction of the proxy node, the edge node sends a registration data packet to the proxy node. The proxy node can receive the registration data packet and send the registration data packet to the center node to register the edge node.

[0084] In step 404, in the case where the edge node is successfully registered, task information generated by the proxy node according to a control instruction of the center node is acquired.

[0085] After the edge node is successfully registered in the center node, the center node includes the edge node in the management range, and assigns a task to the edge node according to the function description and resource usage of the edge node. Specifically, the center node can first send a control instruction to the proxy node, the proxy node generates corresponding task information according to the control instruction, and sends the task information to the edge node.

[0086] In step 406, a corresponding task is executed according to the task information.

[0087] The edge node can execute a corresponding task according to the task information.

[0088] In the embodiment of the present application, the edge node sends a registration data packet to the proxy node in response to a registration request instruction of the proxy node to instruct the proxy node to send the registration data packet to the center node to register the edge node, acquires task information generated by the proxy node according to a control instruction of the center node in the case where the edge node is successfully registered, and executes a corresponding task according to the task information, thereby realizing registration in the center node and being managed. The edge node can immediately interact with the center node through the proxy node, and effectively solves the problem that the edge node cannot communicate with the center node due to limited resources.

[0089] In one embodiment, before sending the registration data packet to the agent node, the node management method further comprises the steps of sending a query instruction to a serial device connected to the edge node to obtain identification information of the serial device, obtaining state information of itself, and generating the registration data packet according to the identification information and the state information.

[0090] The identification information includes device ID, device type, and function description, etc. The state information includes running state (normal operation or fault) and resource usage, etc. It can be understood that the edge node can send a query instruction to the serial device through the serial port when starting, obtain the identification information of the serial device, and obtain the state information of itself, and then encapsulate the identification information and the state information into a registration data packet in json format.

[0091] In one embodiment, the edge node can also send the generated task execution information to the agent node periodically during the execution of the task, so that the agent node sends the task execution information to the center node, and the center node can monitor the running status of the edge node in real time.

[0092] Based on the same inventive concept, the embodiments of the present application also provide an edge server for implementing the above-mentioned node management method. The implementation scheme of the edge server provided by the present application for solving the problem is similar to the implementation scheme described in the above method, and therefore the specific limitations in one or more edge server embodiments provided below can refer to the limitations of the node management method described above, which will not be repeated here.

[0093] In one embodiment, as shown in Figure 5 , an edge server is provided, which includes a data packet sending module 502, a task obtaining module 504, and a task execution module 506.

[0094] The data packet sending module 502 is configured to send a registration data packet to an agent node in response to a registration request instruction of the agent node, so as to instruct the agent node to send the registration data packet to a center node and register the edge node.

[0095] The task obtaining module 504 is configured to obtain task information generated by the agent node according to a control instruction of the center node in the case that the edge node is successfully registered.

[0096] The task execution module 506 is configured to execute a corresponding task according to the task information.

[0097] In one embodiment, the edge server further includes a data packet generation module configured to send a query instruction to a serial device connected to the edge node to obtain identification information of the serial device, obtain state information of itself, and generate a registration data packet according to the identification information and the state information.

[0098] In one embodiment, as shown in Figure 6 The application also provides a node management method, which is applied to Figure 1 The center node in the system includes steps 602-606.

[0099] Step 602: Register the target edge node according to the registration data packet sent by the proxy node; the registration data packet is generated by the target edge node in response to the registration request instruction of the proxy node.

[0100] It can be understood that the center node can register the target edge node according to the registration data packet sent by the proxy node. Specifically, the center node will first verify the integrity and legality of the registration data packet. If the verification is passed, the center node will send a verification passed center message to the proxy node and include the target edge node in the management range.

[0101] Step 604: Generate a control instruction in the case of successful registration of the target edge node.

[0102] Step 606: Send the control instruction to the proxy node to instruct the proxy node to send task information to the target edge node, and the target edge node executes the corresponding task according to the task information.

[0103] After the target edge node is successfully registered, the center node can assign a corresponding task to the target edge node, send a control instruction containing task information to the proxy node, and send the task information to the target edge node by the proxy node, so that the target edge node can execute the corresponding task according to the task information.

[0104] In the embodiment of the application, the center node registers the target edge node according to the registration data packet sent by the proxy node, the registration data packet is generated by the target edge node in response to the registration request instruction of the proxy node, and in the case of successful registration of the target edge node, a control instruction is generated, which is sent to the proxy node to instruct the proxy node to send task information to the target edge node, and the target edge node executes the corresponding task according to the task information, which realizes the registration and unified management of the edge node and improves the management efficiency of the system.

[0105] In one embodiment, in the case of successful registration of the target edge node, a control instruction is generated, including the steps of obtaining the function and resource usage of the target edge node according to the registration data packet in the case of successful registration of the target edge node, querying the center node for the to-be-assigned task according to the function and resource usage, determining the target assignment task, and generating the control instruction according to the task information of the target assignment task.

[0106] It can be understood that the central node can obtain the function and resource usage of the target edge node by analyzing the registration data packet, configure a task suitable for the target edge node from the to-be-assigned tasks, i.e., a target assignment task, and generate a control instruction according to the task information of the target assignment task. For example, if the function description of the target edge node is to collect data of a sensor, the central node can assign a data collection task in the to-be-assigned tasks as the target assignment task, generate a control instruction according to the task information of the data collection task, and send the control instruction to the proxy node, which then sends the task information to the target edge node, so that the target edge node executes the data collection task.

[0107] Based on the same inventive concept, the embodiments of the present application also provide a central server for implementing the above-mentioned node management method. The implementation scheme of the central server for solving the problem is similar to the implementation scheme described in the above method, so the specific limitations in one or more embodiments of the central server provided below can refer to the limitations of the node management method in the above, which will not be repeated here.

[0108] In one embodiment, as shown in Figure 7 a central server is provided, which includes a registration module 702, a control instruction generation module 704, and a control instruction sending module 706.

[0109] The registration module 702 is configured to register the target edge node according to the registration data packet sent by the proxy node; the registration data packet is generated by the target edge node in response to the registration request instruction of the proxy node.

[0110] The control instruction generation module 704 is configured to generate a control instruction in the case that the registration of the target edge node is successful.

[0111] The control instruction sending module 706 is configured to send the control instruction to the proxy node to instruct the proxy node to send task information to the target edge node, and the target edge node executes a corresponding task according to the task information.

[0112] In one embodiment, the control instruction generation module is further configured to obtain the function and resource usage of the target edge node according to the registration data packet in the case that the registration of the target edge node is successful; query the to-be-assigned tasks in the central node according to the function and resource usage, determine a target assignment task, and generate a control instruction according to the task information of the target assignment task.

[0113] It should be understood that although each step in the flowchart involved in each embodiment as described above is shown in sequence according to the direction of the arrow, these steps are not necessarily executed in sequence according to the direction of the arrow. Unless explicitly stated herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each embodiment as described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.

[0114] In one embodiment, the present application also provides a node management system, as shown in Figure 1 The proxy node 102 communicates with the edge node 104 through a serial port and communicates with the center node 106 through a network.

[0115] The proxy node 102 is configured to send a registration request instruction to the target edge node.

[0116] The target edge node is configured to send a registration data packet to the proxy node 102 in response to the registration request instruction.

[0117] The proxy node 102 is further configured to obtain the registration data packet, send the registration data packet to the center node 106, register the target edge node, and in the case that the target edge node is successfully registered, send task information to the target edge node in response to a control instruction from the center node 106, to instruct the target edge node to perform a corresponding task according to the task information.

[0118] In one exemplary embodiment, a proxy server is provided, and its internal structure diagram can be as shown in Figure 8As shown in the figure. The proxy server includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the proxy server is used to provide computing and control ability. The memory of the proxy server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the proxy server is used to store registration data packets, serial port addresses of edge nodes and other information. The input / output interface of the proxy server is used to exchange information between the processor and external devices. The communication interface of the proxy server is used to communicate with external terminals through network connection. The computer program is executed by the processor to realize a node management method.

[0119] In an exemplary embodiment, an edge server is provided, and its internal structure diagram can be as shown in the figure. Figure 9 As shown in the figure. The edge server includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through the system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the edge server is used to provide computing and control ability. The memory of the edge server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the edge server is used to store identification information and state information and other information. The input / output interface of the edge server is used to exchange information between the processor and external devices. The communication interface of the edge server is used to communicate with external terminals through network connection. The computer program is executed by the processor to realize a node management method.

[0120] In an exemplary embodiment, a center server is provided, and its internal structure diagram can be as shown in the figure. Figure 10The center server includes a processor, a memory, an input / output interface (I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the center server is configured to provide computing and control capabilities. The memory of the center server includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the center server is configured to store registration data packets, to-be-assigned tasks and the like. The input / output interface of the center server is configured to exchange information between the processor and external devices. The communication interface of the center server is configured to communicate with external terminals through network connection. The computer program is executed by the processor to implement a node management method.

[0121] Those skilled in the art can understand that, Figures 8-10 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the servers to which the scheme of the present application is applied. Specifically, a server can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0122] In an exemplary embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the node management method provided in any of the above embodiments.

[0123] In an embodiment, a computer readable storage medium is provided, storing a computer program, and the computer program is executed by a processor to implement the node management method provided in any of the above embodiments.

[0124] In an embodiment, a computer program product is provided, including a computer program, and the computer program is executed by a processor to implement the node management method provided in any of the above embodiments.

[0125] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.

[0126] The technical features of the above embodiments can be combined in any manner. To make the description concise, all possible combinations of the technical features in the above embodiments are not described, but as long as the combinations of the technical features do not exist, they should be considered as the scope of the present application.

[0127] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.

Claims

1. A node management method characterized by comprising: The method is applied to an agent node, the agent node communicates with an edge node through a serial port and communicates with a center node through a network, and the method comprises the following steps: sending a registration request instruction to a target edge node; receiving a registration data packet returned by the target edge node based on the registration request instruction; sending the registration data packet to the center node to register the target edge node; in the case that the target edge node is successfully registered, sending task information to the target edge node in response to a control instruction of the center node to instruct the target edge node to perform a corresponding task according to the task information.

2. The method of claim 1, wherein, Before the step of sending the registration request instruction to the target edge node, the method further comprises the following steps: sending a probe packet to all edge nodes connected to the agent node; obtaining response packets generated by the edge nodes based on the probe packet; taking an edge node corresponding to a response packet meeting a preset registration condition as the target edge node.

3. The method of claim 1, wherein, The step of sending the registration data packet to the center node to register the target edge node comprises the following steps: judging whether the registration data packet is complete according to a data format and a checksum of the registration data packet; in the case that the registration data packet is complete, converting the registration data packet into registration information meeting a format requirement of the center node; sending the registration information to the center node to register the target edge node.

4. The method of claim 1, wherein, The method further comprises the following steps: obtaining task execution information generated by the target edge node in the process of performing a task; sending the task execution information to the center node.

5. A node management method characterized by, The method is applied to an edge node, the edge node communicates with an agent node through a serial port, and the method comprises the following steps: in response to a registration request instruction of the agent node, sending a registration data packet to the agent node to instruct the agent node to send the registration data packet to a center node to register the edge node; in the case that the edge node is successfully registered, obtaining task information generated by the agent node according to a control instruction of the center node; performing a corresponding task according to the task information.

6. The method of claim 5, wherein, Before the step of sending the registration data packet to the agent node, the method further comprises the following steps: sending a query instruction to a serial port device connected to the edge node to obtain identification information of the serial port device; obtaining state information of the edge node; generating the registration data packet according to the identification information and the state information.

7. A node management method characterized by comprising: The method is applied to a center node, the center node communicates with an agent node through a network, and the method comprises the following steps: registering a target edge node according to a registration data packet sent by the agent node; the registration data packet is generated by the target edge node in response to a registration request instruction of the agent node; in the case that the target edge node is successfully registered, generating a control instruction; sending the control instruction to the agent node to instruct the agent node to send task information to the target edge node, and instructing the target edge node to perform a corresponding task according to the task information.

8. The method of claim 7, wherein, The step of generating the control instruction in the case that the target edge node is successfully registered comprises the following steps: In a case where the target edge node is successfully registered, function and resource usage of the target edge node is obtained according to the registration data packet; According to the function and the resource usage, a task to be allocated in a center node is queried to determine a target allocation task; According to task information of the target allocation task, the control instruction is generated.

9. A node management system, characterized by The system comprises an agent node, a center node and an edge node, wherein the agent node communicates with the edge node through a serial port and communicates with the center node through a network; The agent node is configured to send a registration request instruction to a target edge node; The target edge node is configured to send a registration data packet to the agent node in response to the registration request instruction; The agent node is further configured to obtain the registration data packet, send the registration data packet to the center node, register the target edge node, and in a case where the target edge node is successfully registered, send task information to the target edge node in response to a control instruction of the center node to instruct the target edge node to perform a corresponding task according to the task information. 10.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-9. The processor executes the computer program to implement the steps of the method in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Management method and system for computing node

    WO2022237255A1

  • Application access method, cloud proxy assembly, node proxy assembly, device and medium

    WO2023173720A1