Node management method and system and computer equipment

Relaying through proxy nodes, the problem of edge node resource constraints cannot communicate effectively with the central node is solved, registration and task allocation of edge nodes is realized, and management efficiency and resource utilization are improved.

CN119520523AActive Publication Date: 2025-02-25SHENZHEN COMTOP INFORMATION TECH
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Due to resource limitations, edge nodes are difficult to communicate and interact with the central node effectively, resulting in low management and scheduling efficiency.

Method used

Relaying is performed through the proxy node, the edge node communicates with the proxy node through the serial port, and the proxy node communicates with the central node through the network. The proxy node sends registration request instructions to the edge node, receives and forwards the registration data packets of the edge node to the center node, completes the registration of the edge node, and passes the task information of the center node to the edge node after the registration is successful.

Benefits of technology

The data interaction between edge nodes and central nodes is realized, which solves the problem of edge nodes being limited in resources and cannot communicate, and improves management efficiency and resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520523A_ABST
    Figure CN119520523A_ABST
Patent Text Reader

Abstract

The invention relates to a node management method and system and computer equipment, and is applied to a proxy node, the proxy 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 under the condition that the target edge node is successfully registered, sending task information to the target edge node in response to a control instruction of the central node so as to indicate the target edge node to execute a corresponding task according to the task information. According to the technical scheme, the edge node does not need to have strong network connection capability and processing capability, registration to the central node can be realized only by communicating with the proxy node through the serial port, and the problem that the edge node cannot communicate with the central node due to resource limitation is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of Internet technology, edge computing, as a new computing model that stores computing and data close to data sources and users, has received widespread attention and application. In edge computing, edge nodes can process and analyze local data in real time, alleviating the data processing pressure of central nodes. Edge nodes are usually deployed at the edge of the network, with limited resources, and may not be able to support complex communication protocols or high-frequency data transmission, making it difficult to communicate with central nodes. Summary of the invention

[0003] Based on this, it is necessary to provide a node management method, system and computer device to address the above technical issues.

[0004] In a first aspect, the present application provides a node management method, which is applied to an agent node, wherein the agent node communicates with an edge node through a serial port and communicates with a central node through a network; the method comprises:

[0005] Send a registration request instruction to the 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 central node to register the target edge node;

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

[0009] In one embodiment, before sending the registration request instruction to the edge node, the method further includes:

[0010] Sending a detection message to all edge nodes connected to the proxy node;

[0011] Obtaining response messages generated by all edge nodes based on the detection message;

[0012] The edge node corresponding to the response message that meets the preset registration condition is used as the target edge node.

[0013] In one embodiment, sending the registration data packet to the central node to register the target edge node includes:

[0014] Determining whether the registration data packet is complete according to the data format and checksum of the registration data packet;

[0015] When the registration data packet is complete, converting the registration data packet into registration information that meets the format requirements of the central node;

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

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

[0018] Acquire task execution information generated by the target edge node during the process of executing the task;

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

[0020] In a second aspect, the present application further provides a node management method, which is applied to an edge node, wherein the edge node communicates with the proxy node via a serial port, and the method comprises:

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

[0022] When the edge node is successfully registered, obtaining task information generated by the proxy node according to the control instruction of the central node;

[0023] Execute corresponding tasks according to the task information.

[0024] In one of the embodiments, before sending the registration data packet to the proxy node, the method further includes:

[0025] Sending a query command to a serial port device connected to the generation edge node to obtain identification information of the serial port device;

[0026] Get its own status information;

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

[0028] In a third aspect, the present application further provides a node management method, which is applied to a central node, wherein the central node communicates with an agent node through a network, and the method comprises:

[0029] Registering 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;

[0030] If the target edge node is successfully registered, generating a control instruction;

[0031] The control instruction 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 performs the corresponding task according to the task information.

[0032] In one of the embodiments, when the target edge node is successfully registered, generating a control instruction includes:

[0033] When the target edge node is successfully registered, obtaining the function and resource usage of the target edge node according to the registration data packet;

[0034] According to the functions and the resource usage, query the tasks to be assigned in the central node and determine the target assigned tasks;

[0035] The control instruction is generated according to the task information of the target allocation task.

[0036] In a fourth aspect, the present application further provides a node management system, including an agent node, a central node and an edge node, wherein the agent node communicates with the edge node via a serial port and communicates with the central node via a network;

[0037] The proxy node is used to send a registration request instruction to the target edge node;

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

[0039] The proxy node is also used to obtain the registration data packet, send the registration data packet to the central node, register the target edge node, and when the target edge node is successfully registered, respond to the control instruction of the central node and send task information to the target edge node to instruct the target edge node to perform the corresponding task according to the task information.

[0040] In a fifth aspect, the present application further provides a computer device, including a memory and a processor, wherein 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 above-mentioned node management method, system and computer device, a registration request instruction is sent to the target edge node through the proxy node, a registration data packet returned by the target edge node based on the registration request instruction is received, and the registration data packet is sent to the central node to register the target edge node. When the target edge node is successfully registered, task information is sent to the target edge node in response to the control instruction of the central node to instruct the target edge node to perform the corresponding task according to the task information, thereby realizing data interaction between the edge node and the central node. It can be understood that the proxy node can serve as a bridge between the central node and the edge node, sending the registration information of the edge node to the central node, and sending the task information generated by the central node to the edge node. In this way, the edge node does not need to have strong network connection capabilities and processing capabilities, and only needs to communicate with the proxy node through the serial port to realize registration with the central node, which effectively solves the problem that the edge node cannot communicate with the central node due to limited resources. In addition, the central node can uniformly manage and schedule the edge nodes through the proxy node, thereby improving management efficiency and resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[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 one embodiment;

[0046] Figure 4 The second flowchart of the node management method in one embodiment;

[0047] Figure 5 is a structural block diagram of an edge server in one embodiment;

[0048] Figure 6 The third flowchart of the node management method in one embodiment;

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

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

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

[0052] Fig.10 FIG. 4 is a diagram showing the internal structure of a central server in one embodiment. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] The node management method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the proxy node 102 communicates with the edge node 104 through the serial port and communicates with the central node 106 through the network. The edge node 104 can be connected to the serial port device through the serial port, has low processing power and storage resources, and is used to collect and process the data of the serial port device. The edge node 104 can be a computer device, a hardware server, etc. The proxy node 102 has strong processing power, storage capacity and network connection capabilities, and can serve as a bridge between the edge node 104 and the central node 106. The proxy node 102 can be a computer device, a hardware server, etc. The central node 106 is the core of the edge network, which is responsible for unified management, task allocation and resource scheduling of the edge node 104 according to the information collected by the proxy node 102. The central node 106 can be a computer device, a hardware server, a virtual machine and a cloud server, etc.

[0055] In one embodiment, Figure 2 As shown, the present application provides a node management method, using Figure 1 Taking the edge node in as an 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 proxy node or the central node. The registration request instruction includes information such as data format requirements and registration timeout. The proxy node can send a registration request instruction to the target edge node through the serial port to instruct the target edge node to send the registration information within the registration timeout according to the data format requirements.

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

[0059] The registration data packet includes the identification information and status information of the target edge node, and the registration data packet can be encapsulated in JSON format. Among them, the identification information may include information such as device ID, device type, and function description, and the status information includes information such as operating status and resource usage.

[0060] Step 206: Send the registration data packet to the central node to register the target edge node.

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

[0062] Step 208, when the target edge node is successfully registered, in response to the control instruction of the central node, task information is sent to the target edge node to instruct the target edge node to perform the corresponding task according to the task information.

[0063] After the target edge node successfully registers with the central node, the central node will include the target edge node in the management scope and perform task allocation and scheduling on the target node. Specifically, the central node will send a control instruction to the proxy node through the network, and the proxy node will respond to the control instruction and send task information to the target edge node. After receiving the task information, the target edge node will execute the corresponding task according to the task information.

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

[0065] In one embodiment, before sending a registration request instruction to the edge node, the node management method also includes: sending a detection message to all edge nodes connected to the proxy node, obtaining a response message generated by all edge nodes based on the detection message, and taking the edge node corresponding to the response message that meets the preset registration conditions as the target edge node.

[0066] The detection message includes the node ID of the proxy node. The response message includes the device ID of the edge node. The preset registration condition means that the device ID of the edge node is within the device ID range managed by the proxy node and has not completed registration in the central node.

[0067] It can be understood that the proxy node can periodically send detection messages to all edge nodes connected to it, and obtain the response messages generated by all edge nodes in response to the detection messages, and obtain the device ID of the corresponding edge node according to the response message. If the device ID is within the device ID range, the edge node corresponding to the device ID is used as the target edge node, and the serial port address and device ID of the target edge node and other information are saved to prepare for the subsequent registration process.

[0068] In one embodiment, a registration data packet is sent to a central node to register a target edge node, including: judging whether the registration data packet is complete based on a data format and a checksum of the registration data packet; if the registration data packet is complete, converting the registration data packet into registration information that meets the format requirements of the central node; and sending the registration information to the central node to register the target edge node.

[0069] It can be understood that the proxy node first obtains the data format and checksum of the registration data packet, and determines whether the registration data packet is complete based on the data format and checksum. If the registration data packet is determined to be complete based on the data format and checksum, the proxy node will convert the registration data packet into registration information that meets the format requirements of the central node, and send the registration information to the central node to register the target edge node. At the same time, the proxy node will send a verified message to the edge node. If the registration data packet is determined to be wrong or incomplete based on the data format and checksum, the proxy node will send a verified message to the edge node through the serial port to instruct the edge node to resend the registration data packet.

[0070] In one embodiment, the node management method further includes the steps of obtaining task execution information generated by the target edge node during the task execution process, and sending the task execution information to the central node.

[0071] The task execution information includes the intermediate result files and operation data generated during the task execution of the target edge node. The proxy node can obtain the task execution information of the target edge node and send the task execution information to the central node so that the central node can monitor the operation of the target edge node in real time.

[0072] Based on the same inventive concept, the embodiment of the present application also provides a proxy server for implementing the node management method involved above. The implementation scheme for solving the problem provided by the proxy server is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more proxy servers provided below can refer to the limitations on the node management method above, and will not be repeated here.

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

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

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

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

[0077] The task sending module 308 is used to send task information to the target edge node in response to the control instruction of the central node when the target edge node is successfully registered, so as to instruct the target edge node to perform the corresponding task according to the task information.

[0078] In one embodiment, the proxy server also includes a target edge node determination module, which is used to send detection messages to all edge nodes connected to the proxy node; obtain response messages generated by all edge nodes based on the detection messages; and use the edge node corresponding to the response message that meets the preset registration conditions as the target edge node.

[0079] In one embodiment, the registration module is also used to determine whether the registration data packet is complete based on the data format and checksum of the registration data packet; if the registration data packet is complete, convert the registration data packet into registration information that meets the format requirements of the central node; and send the registration information to the central node to register the target edge node.

[0080] In one embodiment, the proxy server further includes a proxy monitoring module, which is used to obtain task execution information generated by the target edge node during the task execution process; and send the task execution information to the central node.

[0081] In one embodiment, Figure 4 As shown, the present application also provides a node management method, which is applied to Figure 1 The edge node in the embodiment includes steps 402-406.

[0082] Step 402, in response to the registration request instruction of the proxy node, sending a registration data packet to the proxy node to instruct the proxy node to send the registration data packet to the central node to register the edge node.

[0083] After receiving the registration request instruction from the proxy node, the edge node will send 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 central node to register the edge node.

[0084] Step 404: When the edge node is successfully registered, the task information generated by the proxy node according to the control instruction of the central node is obtained.

[0085] After the edge node successfully registers with the central node, the central node will include the edge node in the management scope and assign tasks to the edge node based on the edge node's functional description and resource usage information. Specifically, the central node can first send a control instruction to the proxy node, and the proxy node generates the corresponding task information based on the control instruction and sends the task information to the edge node.

[0086] Step 406, executing the corresponding task according to the task information.

[0087] Edge nodes can perform corresponding tasks based on 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 the registration request instruction of the proxy node, so as to instruct the proxy node to send the registration data packet to the central node to register the edge node. When the edge node is successfully registered, the task information generated by the proxy node according to the control instruction of the central node is obtained, and the corresponding task is performed according to the task information, so as to realize the registration and management of the central node. The edge node can interact with the central node through the proxy node immediately, which effectively solves the problem that the edge node cannot communicate with the central node due to limited resources.

[0089] In one embodiment, before sending a registration data packet to the proxy node, the node management method also includes sending a query instruction to the serial port device connected to the edge node to obtain identification information of the serial port device, obtain its own status information, and generate a registration data packet based on the identification information and status information.

[0090] The identification information includes information such as device ID, device type and function description. The status information includes information such as operation status (normal operation or failure) and resource usage. It can be understood that when the edge node is started, it can send a query command to the serial port device through the serial port to obtain the identification information of the serial port device and its own status information, and then encapsulate the identification information and status information into a registration data packet in json format.

[0091] In one embodiment, during the execution of a task, the edge node may also periodically send the generated task execution information to the proxy node, so that the proxy node sends the task execution information to the central node, so that the central node can monitor the operating status of the edge node in real time.

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

[0093] In one embodiment, Figure 5 As shown, an edge server is provided, including a data packet sending module 502 , a task acquisition module 504 and a task execution module 506 .

[0094] The data packet sending module 502 is used to send a registration data packet to the proxy node in response to the registration request instruction of the proxy node, so as to instruct the proxy node to send the registration data packet to the central node to register the edge node.

[0095] The task acquisition module 504 is used to acquire the task information generated by the proxy node according to the control instruction of the central node when the edge node is successfully registered.

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

[0097] In one embodiment, the edge server also includes a data packet generation module, which is used to send a query instruction to the serial port device connected to the generation edge node to obtain identification information of the serial port device; obtain its own status information; and generate a registration data packet based on the identification information and status information.

[0098] In one embodiment, Figure 6 As shown, the present application also provides a node management method, which is applied to Figure 1 Taking the central node in as an example, steps 602-606 are included.

[0099] Step 602, registering 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 is understood that the central node can register the target edge node according to the registration data packet sent by the proxy node. Specifically, the central node will first verify the integrity and legality of the registration data packet. If the verification is successful, the central node will send a central message of verification to the proxy node and include the target edge node in the management scope.

[0101] Step 604: When the target edge node is successfully registered, a control instruction is generated.

[0102] Step 606: Send a 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 central node can assign corresponding tasks to the target edge node, send control instructions containing task information to the agent node, and the agent node sends the task information to the target edge node, so that the target edge node can perform corresponding tasks according to the task information.

[0104] In an embodiment of the present application, the central node registers the target edge node based on 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. When the target edge node is successfully registered, a control instruction is generated and sent to the proxy node to instruct the proxy node to send task information to the target edge node. The target edge node performs the corresponding task according to the task information, thereby realizing the registration and unified management of the edge nodes and improving the management efficiency of the system.

[0105] In one embodiment, when the target edge node is successfully registered, 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, querying the tasks to be assigned in the central node according to the function and resource usage, determining the target assigned task, and generating a control instruction according to the task information of the target assigned 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 the task suitable for the target edge node from the tasks to be assigned, that is, the target allocation task, and generate a control instruction according to the task information of the target allocation task. For example, if the functional description of the target edge node is to collect sensor data, then the central node can assign the data collection task in the tasks to be assigned as the target allocation task, generate a control instruction according to the task information of the data collection task, and send it to the proxy node, and then the proxy node sends the task information to the target edge node, so that the target edge node performs the data collection task.

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

[0108] In one embodiment, Figure 7 As shown, a central server is provided, including a registration module 702 , a control instruction generating module 704 and a control instruction sending module 706 .

[0109] The registration module 702 is used 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 used to generate a control instruction when the target edge node is successfully registered.

[0111] The control instruction sending module 706 is used to send a 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.

[0112] In one embodiment, the control instruction generation module is also used to obtain the function and resource usage of the target edge node according to the registration data packet when the target edge node is successfully registered; query the tasks to be assigned in the central node according to the function and resource usage, and determine the target assigned tasks; generate control instructions according to the task information of the target assigned tasks.

[0113] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0114] In one embodiment, the present application also provides a node management system, such as Figure 1 As shown, it includes an agent node 102, a central node 106 and an edge node 104, wherein the agent node 102 communicates with the edge node 104 through a serial port and communicates with the central node 106 through a network.

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

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

[0117] The proxy node 102 is also used to obtain a registration data packet, send the registration data packet to the central node 106, register the target edge node, and when the target edge node is successfully registered, respond to the control instruction of the central node 106 and send task information to the target edge node to instruct the target edge node to perform the corresponding task according to the task information.

[0118] In an exemplary embodiment, a proxy server is provided, whose internal structure diagram can be shown as follows: Figure 8As shown. 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 a 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 capabilities. 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 information such as registration data packets and serial port addresses of edge nodes. The input / output interface of the proxy server is used to exchange information between the processor and an external device. The communication interface of the proxy server is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a node management method is implemented.

[0119] In an exemplary embodiment, an edge server is provided, and its internal structure diagram can be as follows: Fig. 9 As shown. 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 a 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 capabilities. 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 information such as identification information and status information. The input / output interface of the edge server is used to exchange information between the processor and an external device. The communication interface of the edge server is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a node management method is implemented.

[0120] In an exemplary embodiment, a central server is provided, and its internal structure diagram can be as follows: Fig.10As shown. The central 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 a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the central server is used to provide computing and control capabilities. The memory of the central 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 central server is used to store information such as registration data packets and tasks to be assigned. The input / output interface of the central server is used to exchange information between the processor and external devices. The communication interface of the central server is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a node management method is implemented.

[0121] Those skilled in the art will understand that Figure 8-Figure 10 The structure shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the servers to which the solution of the present application is applied. The specific server may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0122] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the node management method provided in any of the above embodiments is implemented.

[0123] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the node management method provided in any of the above embodiments is implemented.

[0124] In one embodiment, a computer program product is provided, including a computer program, which implements the node management method provided in any of the above embodiments when executed by a processor.

[0125] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the 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. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0126] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0127] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A node management method, characterized in that: Applied to a proxy node, the proxy node communicates with an edge node via a serial port and communicates with a central node via a network; the method comprises: Send 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 central node to register the target edge node; In the case that the target edge node is successfully registered, in response to the control instruction of the central node, task information is sent to the target edge node to instruct the target edge node to perform a corresponding task according to the task information.

2. The method according to claim 1, characterized in that Before sending the registration request instruction to the edge node, the method further includes: Sending a detection message to all edge nodes connected to the proxy node; Obtaining response messages generated by all edge nodes based on the detection message; The edge node corresponding to the response message that meets the preset registration condition is used as the target edge node.

3. The method according to claim 1, characterized in that The sending the registration data packet to the central node to register the target edge node includes: Determining whether the registration data packet is complete according to the data format and checksum of the registration data packet; When the registration data packet is complete, converting the registration data packet into registration information that meets the format requirements of the central node; The registration information is sent to the central node to register the target edge node.

4. The method according to claim 1, characterized in that: The method further comprises: Acquire task execution information generated by the target edge node during the process of executing the task; The task execution information is sent to the central node.

5. A node management method, characterized in that: Applied to an edge node, the edge node communicates with an agent node via a serial port, the method comprising: In response to the registration request instruction of the proxy node, sending a registration data packet to the proxy node to instruct the proxy node to send the registration data packet to the central node to register the edge node; When the edge node is successfully registered, obtaining task information generated by the proxy node according to the control instruction of the central node; Execute corresponding tasks according to the task information.

6. The method according to claim 5, characterized in that Before sending the registration data packet to the proxy node, the method further includes: Sending a query command to a serial port device connected to the edge node to obtain identification information of the serial port device; Get its own status information; The registration data packet is generated according to the identification information and the status information.

7. A node management method, characterized in that: Applied to a central node, the central node communicates with an agent node via a network, the method comprising: Registering 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; If the target edge node is successfully registered, generating a control instruction; The control instruction 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 performs the corresponding task according to the task information.

8. The method according to claim 7, characterized in that When the target edge node is successfully registered, generating a control instruction includes: When the target edge node is successfully registered, obtaining the function and resource usage of the target edge node according to the registration data packet; According to the functions and the resource usage, query the tasks to be assigned in the central node and determine the target assigned tasks; The control instruction is generated according to the task information of the target allocation task.

9. A node management system, characterized in that: It includes an agent node, a central node and an edge node, wherein the agent node communicates with the edge node through a serial port and communicates with the central node through a network; The proxy node is used to send a registration request instruction to the target edge node; The target edge node is used to send a registration data packet to the proxy node in response to the registration request instruction; The proxy node is also used to obtain the registration data packet, send the registration data packet to the central node, register the target edge node, and when the target edge node is successfully registered, respond to the control instruction of the central node and send task information to the target edge node to instruct the target edge node to perform the corresponding task according to the task information.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Industrial Interent-oriented edge computing server load balancing method and system

    CN110933134A

  • Edge controller, communication system, communication method and computer equipment

    CN116887223A

  • Data processing method and device, equipment, storage medium and program product

    CN117459360A

  • Management method and system for computing node

    WO2022237255A1

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

    WO2023173720A1