Edge node-based computing power scheduling method and device and terminal equipment

By establishing a point-to-point communication connection between the access layer proxy module of the user terminal and the target edge node, the service request is processed directly at the target edge node, which solves the problem of resource waste caused by virtualization operations and achieves efficient resource utilization and cost reduction. .

CN118802935APending Publication Date: 2024-10-18SHENZHEN ONETHING TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410715857.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing technologies require a large amount of processing resources to perform virtualization operations when providing computing services, resulting in a waste of resources. How to save processing resources on the basis of using edge nodes to determine service results is a technical challenge.

Method used

By setting up the access layer proxy module in the user terminal, the service request is obtained and the target edge node is determined from the candidate edge nodes, a point-to-point communication connection is established, and the service request is processed directly at the target edge node to avoid virtualization operations and make full use of computing resources.

Benefits of technology

It achieves saving of processing resources based on the service results determined by edge nodes, improves the efficiency of computing power scheduling and resource utilization, and reduces computing power costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802935A_ABST
    Figure CN118802935A_ABST
Patent Text Reader

Abstract

The invention provides a computing power scheduling method and device based on edge nodes and terminal equipment. The method comprises the steps of obtaining service requests of other applications in a user terminal; the service request is a request needing calculation service; determining a target edge node matched with the service request from the candidate edge nodes; the target edge node is used for providing computing power resources for the user terminal; after point-to-point communication connection with the target edge node is established, the service request is sent to the target edge node; and after the target edge node determines a corresponding request result according to the service request, the access layer agent module obtains the request result and sends the request result to other applications of the user terminal. According to the method, virtualization operation on the edge nodes can be avoided, and computing resources can be fully utilized, so that the method can save processing resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and in particular to a computing power scheduling method, apparatus and terminal device based on edge nodes. Background Art

[0002] In recent years, with the rapid development of artificial intelligence (AI) technology, especially the large language model (LLM) represented by GPT (Generative Pre-Trained Transformer), the development of artificial intelligence technology has been pushed to a new stage. However, the problem that comes with it is the rapid expansion of demand for computing power. Therefore, how to provide a set of efficient and low-cost computing power services has become a hot competitive topic.

[0003] The existing mainstream computing cloud platforms all provide external services based on centralized computing resources. Users access the computing API (Application Programming Interface) interface provided by the cloud platform. After the interface is processed, the AI ​​reasoning result is returned. The computing area provides AI-related resources, including computing clusters (GPU (Graphics Processing Unit, Graphics Processing Unit), NPU (Neural-network Processing Unit, Embedded Neural Network Processing Unit), TPU (Tensor Processing Unit, Tensor Processing Unit) and FPGA (Field-Programmable Gate Array, Field Programmable Gate Array), etc.), AI training models, AI data sets and other core systems. All AI reasoning-related content is completed on the AI ​​computing cluster, and the processing results are returned to the core service module of the DCN area. In order to improve the computing effect of the computing area, the current technical solution is to virtualize the computing nodes (edge ​​nodes), and the user terminal sends a service request to the virtualized computing node; the virtualized computing node provides corresponding services based on the service request. However, the current technical solution requires a large amount of processing resources for virtualization operations.

[0004] Therefore, how to save processing resources on the basis of determining service results by using edge nodes is a technical problem that those skilled in the art currently need to solve. Summary of the invention

[0005] The purpose of the present application is to provide a computing power scheduling method, apparatus, terminal device and computer-readable storage medium based on edge nodes, which can save processing resources on the basis of determining service results by utilizing edge nodes.

[0006] In a first aspect, the present application provides a computing power scheduling method based on edge nodes, which is applied to an access layer proxy module, wherein the access layer proxy module is arranged in a user terminal, and the method comprises:

[0007] Obtaining service requests of other applications in the user terminal; the service requests are requests for computing services;

[0008] Determine a target edge node matching the service request from the candidate edge nodes; the target edge node is used to provide computing resources for the user terminal;

[0009] After establishing a point-to-point communication connection with a target edge node, sending the service request to the target edge node;

[0010] After the target edge node determines the corresponding request result according to the service request, the access layer proxy module obtains the request result and sends the request result to the other application of the user terminal.

[0011] In one of the embodiments, determining a target edge node matching the service request from candidate edge nodes includes:

[0012] Send the service request to the computing power scheduling server, and receive a service node list fed back by the computing power scheduling server based on the service request;

[0013] A target edge node is determined from the service node list.

[0014] In one embodiment, the process of establishing a point-to-point communication connection with the target edge node includes:

[0015] A point-to-point communication connection is established with the target edge node through the hole punching server.

[0016] In one embodiment, establishing a point-to-point communication connection with the target edge node through a hole punching server includes:

[0017] Sending a hole punching service request to a hole punching server, and receiving target node information of the target edge node fed back by the hole punching server based on the hole punching service request;

[0018] A point-to-point communication connection is established with the target edge node according to the target node information.

[0019] In one of the embodiments, each of the candidate edge nodes in the service node list determines a service priority according to a distance from a service location of the user terminal;

[0020] and / or, each of the candidate edge nodes determines a service priority according to a degree of matching with a request type of the service request;

[0021] And / or each of the candidate edge nodes determines a service priority according to a degree of matching with a computing power requirement of the service request.

[0022] In a second aspect, the present application also provides a computing power scheduling method based on edge nodes, which is applied to a target edge node, and the method includes:

[0023] After establishing a point-to-point communication connection with the access layer proxy module, obtaining a service request sent by the access layer proxy module; the service request is a request for computing service; the access layer proxy module obtains service requests of other applications in the user terminal, and determines a target edge node matching the service request from candidate edge nodes; the target edge node is used to provide computing resources for the user terminal; the access layer proxy module executes the steps of the above method;

[0024] A corresponding request result is determined according to the service request, and the request result is sent to the access layer proxy module, so that the access layer proxy module sends the request result to other applications of the user terminal.

[0025] In one embodiment, the process of determining the candidate edge node includes:

[0026] If the current time belongs to the preset time period, each edge node is determined as a candidate edge node;

[0027] And / or, if the usage rate of the edge node is lower than a preset usage rate threshold, the edge node is determined as the candidate edge node.

[0028] In a third aspect, the present application further provides a computing power scheduling device based on edge nodes, which is applied to an access layer proxy module, wherein the access layer proxy module is arranged in a user terminal, and the device comprises:

[0029] A service request acquisition module, used to acquire service requests of other applications in the user terminal; the service request is a request for computing service;

[0030] A target edge node determination module, used to determine a target edge node matching the service request from candidate edge nodes; the target edge node is used to provide computing resources for the user terminal;

[0031] A service request sending module, configured to send the service request to the target edge node after establishing a point-to-point communication connection with the target edge node;

[0032] The request result acquisition module is used for, after the target edge node determines the corresponding request result according to the service request, the access layer proxy module acquires the request result and sends the request result to the other application of the user terminal.

[0033] In a fourth aspect, the present application further provides a terminal device, wherein the terminal device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0034] In a fifth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0035] An embodiment of the present application provides a computing power scheduling method based on edge nodes, which is applied to an access layer proxy module. The access layer proxy module is arranged in a user terminal. After determining the target edge node, the method directly communicates with the target edge node through the access layer proxy module, processes the service request through the target edge node, determines the corresponding request result, and feeds back the request result to other applications of the user terminal; not only can the virtualization operation of the edge node be avoided, but also the computing resources can be fully utilized, so the method can save processing resources.

[0036] It can be understood that the edge node-based computing power scheduling device, terminal device and computer-readable storage medium provided in the embodiments of the present application have the same beneficial effects as the above-mentioned edge node-based computing power scheduling method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0038] Figure 1 An architecture diagram of a computing power scheduling system based on edge nodes provided in an embodiment of the present application;

[0039] Figure 2 A flowchart of a computing power scheduling method based on edge nodes provided in an embodiment of the present application;

[0040] Figure 3 A flowchart of another edge node-based computing power scheduling method provided in an embodiment of the present application;

[0041] Figure 4 A timing diagram of another edge node-based computing power scheduling method provided in an embodiment of the present application;

[0042] Figure 5 The figure shows a schematic diagram of the structure of a computing power scheduling device based on edge nodes provided in an embodiment of the present application;

[0043] Figure 6 The figure shows a schematic diagram of the structure of another computing power scheduling device based on edge nodes provided in an embodiment of the present application;

[0044] Figure 7 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0046] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0047] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0048] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0049] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0050] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. "Multiple" means "two or more".

[0051] An edge node-based computing power scheduling method provided in an embodiment of the present application is applied to an access layer proxy module, and the access layer proxy module is arranged in a user terminal. Figure 1 This is an architecture diagram of a computing power scheduling system based on edge nodes provided in an embodiment of the present application. Figure 1 As shown, a computing power scheduling system 100 based on edge nodes includes a user terminal 110 and a candidate edge node 120; an access layer proxy module 111 is provided in the user terminal 110; a computing power node proxy module 121 is provided in the candidate edge node 120, and the candidate edge node 120 uses the computing power node proxy module 121 to provide computing power resources for the user terminal 110; the computing power node proxy module 121 can be specifically a GPU (Graphics Processing Unit), NPU (embedded neural network processor), TPU (Tensor Processing Unit), FPGA (Field-Programmable Gate Array), etc.

[0052] Figure 2 A flowchart of a computing power scheduling method based on edge nodes provided in an embodiment of the present application. For ease of explanation, only the part related to the present embodiment is shown. The method provided in the present embodiment includes the following steps:

[0053] S210: Obtain service requests of other applications in the user terminal; the service request is a request for computing service.

[0054] Among them, the service request is a request for computing service, that is, a request for the target edge node to provide AI (Artificial Intelligence) computing, image processing, data processing and other services. The type of service request is determined according to other application types in the user terminal. This embodiment does not limit the specific type of service request, nor does it limit the specific types of other applications.

[0055] In this embodiment, the user terminal includes an access layer proxy module and other applications. When other applications have computing power requirements, corresponding service requests are generated; then the service requests are sent to the access layer proxy module; correspondingly, the access layer proxy module obtains the service requests sent by other applications in the user terminal.

[0056] In actual applications, other applications in the user terminal can send service requests to the access layer proxy module via the http protocol (HyperText TransferProtocol) or other custom protocols. This embodiment does not limit this, and it only requires that other applications in the user terminal match the protocol of the access layer proxy module.

[0057] S220: Determine a target edge node that matches the service request from the candidate edge nodes; the target edge node is used to provide computing resources for the user terminal.

[0058] Among them, the candidate edge node is an edge node that can be used to participate in computing power scheduling in the computing power scheduling system based on edge nodes; and there are generally multiple candidate edge nodes in the computing power scheduling system based on edge nodes. This embodiment does not limit the number of candidate edge nodes in the computing power scheduling system based on edge nodes.

[0059] The target edge node is a candidate edge node determined from the candidate edge nodes to respond to the service request. It is understandable that different service requests require different computing resources, and different candidate edge nodes can provide different computing resources. Therefore, it is necessary to determine a matching target edge node from the candidate edge nodes according to the service request.

[0060] In actual applications, only one candidate edge node may be needed to respond to the service request, or multiple candidate edge nodes may be needed to work together to respond to the service request. Therefore, the number of target edge nodes can be one or more. It is necessary to determine the corresponding number of target edge nodes from the candidate edge nodes according to actual needs, and use the determined one or more target edge nodes to provide computing resources for the user terminal.

[0061] S230: After establishing a point-to-point communication connection with the target edge node, sending a service request to the target edge node.

[0062] Among them, peer to peer (P2P) communication refers to a communication method for sharing computer resources and services through direct exchange; peer to peer in this embodiment refers to establishing a communication connection between a user terminal and a target edge node to directly exchange information, thereby eliminating the need to rely on an intermediate server for data forwarding.

[0063] Specifically, after the access layer proxy module establishes a point-to-point communication connection with the target edge node, it also means that the user terminal establishes a point-to-point communication connection with the target edge node; therefore, the access layer proxy module sends the service request to the target edge node based on the established point-to-point communication connection.

[0064] S240: After the target edge node determines the corresponding request result according to the service request, the access layer proxy module obtains the request result and sends the request result to other applications of the user terminal.

[0065] Specifically, after the access layer proxy module sends the service request to the target edge node, the target edge node can provide computing resources for the user terminal. Specifically, the target edge node uses its own computing node proxy module to respond to the service request, obtains the corresponding request result, and then sends the request result to the access layer proxy module based on point-to-point communication; correspondingly, the access layer proxy module obtains the request result and sends the request result to other applications of the user terminal.

[0066] It should be noted that the request result may be data content such as pictures, videos, voice, etc. corresponding to the service request. This embodiment does not limit the specific content of the request result.

[0067] An embodiment of the present application provides a computing power scheduling method based on edge nodes, which is applied to an access layer proxy module. The access layer proxy module is arranged in a user terminal. After determining the target edge node, the method directly communicates with the target edge node through the access layer proxy module, processes the service request through the target edge node, determines the corresponding request result, and feeds back the request result to other applications of the user terminal; not only can the virtualization operation of the edge node be avoided, but also the computing resources can be fully utilized, so the method can save processing resources.

[0068] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, determining a target edge node matching the service request from candidate edge nodes includes:

[0069] Send the service request to the computing power scheduling server, and receive the service node list based on the service request feedback from the computing power scheduling server;

[0070] Determine the target edge node from the service node list.

[0071] Among them, the computing power scheduling server refers to a server used for computing power scheduling, and the computing power scheduling server can be implemented by an independent server or a server cluster composed of multiple servers.

[0072] Specifically, a computing power node proxy module is provided in the candidate edge node, and the corresponding model is deployed in the computing power node proxy module. After the deployment is completed, it is registered in the computing power scheduling server, and then after other applications of the subsequent user terminal initiate computing power requests, the computing power scheduling server can determine the corresponding service node list according to the service request. Among them, each candidate edge node can update the computing power node proxy module deployed by itself or update the registration content to the computing power scheduling server according to a preset period. In this embodiment, after receiving the service request, the access layer proxy module sends the service request to the computing power scheduling server; the computing power scheduling server screens each candidate edge node based on the service request, determines the candidate edge node that can be used to respond to the service request, and determines the corresponding service node list based on the screened candidate edge nodes. In other words, the service node list includes candidate edge nodes that can provide computing power resources for the service request of the user terminal.

[0073] It can be understood that the service node list includes at least one candidate edge node; after the service node list is determined, the target edge node can be determined from the service node list according to preset rules, or the user can perform a point-and-select operation based on the user terminal to determine the target edge node from the candidate edge nodes in the service node list.

[0074] It should be noted that if the number of target edge nodes to be determined is 1, and there is only one candidate edge node in the service node list, the candidate edge node is determined as the target edge node; if the number of target edge nodes to be determined is 1, and there are multiple candidate edge nodes in the service node list, one target edge node is determined from the multiple candidate edge nodes in the service node list.

[0075] In addition, if multiple target edge nodes need to be determined, and the number of candidate edge nodes in the service node list is less than the required number of target edge nodes, an abnormal prompt message is sent to the user terminal; if multiple target edge nodes need to be determined, and the number of candidate edge nodes in the service node list is greater than or equal to the required number of target edge nodes, the required target edge node is determined from the multiple candidate edge nodes in the service node list.

[0076] It can be seen that according to the method of this embodiment, the target edge node can be determined efficiently and conveniently, thereby improving the efficiency of computing power scheduling based on edge nodes.

[0077] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, the process of establishing a point-to-point communication connection with the target edge node includes:

[0078] A point-to-point communication connection is established with the target edge node through the hole punching server.

[0079] It should be noted that the hole punching server in this embodiment refers to a server used to establish a direct point-to-point communication connection between the access layer proxy module and the target edge node. This embodiment does not limit the specific type of the hole punching server, and it can also be implemented using an independent server or a server cluster consisting of multiple servers.

[0080] Specifically, the hole punching server can punch holes through UDP (User Datagram Protocol) or TCP (Transmission Control Protocol) so that the access layer proxy module establishes a point-to-point communication connection with the target edge node. In a specific embodiment, the hole punching server can be specifically a STUN server.

[0081] It should be noted that the point-to-point communication connection established between the access layer proxy module and the target edge node is generally a long connection.

[0082] According to the method of this embodiment, the access layer proxy module can efficiently and conveniently establish a point-to-point communication connection with the target edge node, thereby improving the efficiency of computing power scheduling based on edge nodes.

[0083] On the basis of the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, a point-to-point communication connection is established with a target edge node through a hole punching server, including:

[0084] Send a hole punching service request to the hole punching server, and receive target node information of the target edge node fed back by the hole punching server based on the hole punching service request;

[0085] Establish a point-to-point communication connection with the target edge node based on the target node information.

[0086] The hole punching service request refers to a request for a hole punching server to punch a hole so that the access layer proxy module establishes a point-to-point communication connection with the target edge node. It should be noted that the hole punching service request at least includes identification information of the hole punching object, that is, identification information of the target edge node.

[0087] In this embodiment, the hole punching server establishes a communication connection with each candidate edge node in advance, and the communication connection can be a long connection; after the access layer proxy module sends a hole punching service request to the hole punching server, the hole punching server obtains the target node information of the target edge node based on the identification information of the target edge node based on the pre-established communication connection; wherein the target node information includes but is not limited to the port number and IP address (Internet Protocol Address) of the target edge node; then, the hole punching server sends the target node information of the target edge node to the access layer proxy module, that is, the access layer proxy module obtains the target node information of the target edge node; the access layer proxy module can then establish a point-to-point communication connection with the target edge node based on the target node information.

[0088] It can be seen that according to the method of this embodiment, the access layer proxy module can efficiently and conveniently establish a point-to-point communication connection with the target edge node, thereby improving the efficiency of computing power scheduling based on edge nodes.

[0089] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, each candidate edge node in the service node list determines the service priority according to the distance from the service location of the user terminal;

[0090] and / or, each candidate edge node determines a service priority according to a degree of matching with a request type of the service request;

[0091] And / or each candidate edge node determines the service priority according to the matching degree with the computing power requirement of the service request.

[0092] The service priority indicates the degree of match between the candidate edge node and the service request; generally, the higher the service priority, the higher the degree of match between the candidate edge node and the service request, and the greater the probability of determining the candidate edge node as the target edge node.

[0093] In this embodiment, the computing power scheduling server can determine the service priority of the candidate edge node in the following three ways, and feedback the corresponding service node list to the access layer proxy module.

[0094] Mode 1: Determine the service priority of the candidate edge node according to the distance between the candidate edge node and the service location of the user terminal.

[0095] It can be understood that the access layer proxy module is set in the user terminal. The farther the distance between the candidate edge node and the user terminal, the longer the time required for data transmission between the candidate edge node and the user terminal (access layer proxy module), and the greater the probability of data transmission failure and abnormality. Therefore, the service priority is negatively correlated with the distance, that is, by using each candidate edge node to serve the user nearby, the request result corresponding to the service request can be obtained more conveniently and timely.

[0096] In practical applications, the service location of the user terminal (access layer proxy module) is obtained, and the location information corresponding to each candidate edge node is obtained. The distance between each candidate edge node and the user terminal (access layer proxy module) is determined according to the service location and each location information. The service priority corresponding to each candidate edge node is determined according to the ascending order of each distance; that is, if the distance between the candidate edge node and the user terminal (access layer proxy module) is smaller, the service priority corresponding to the candidate edge node is higher; the greater the distance between the candidate edge node and the user terminal (access layer proxy module), the lower the service priority corresponding to the candidate edge node.

[0097] Method 2: Determine the service priority based on the matching degree between the candidate edge node and the request type of the service request.

[0098] It should be noted that a computing node proxy module is provided in the candidate edge node, and different computing node proxy modules can provide different types of services, including AI computing, image processing, and data processing. The request type of the service request is the type of service that needs to be provided by the target edge node. In response to the request type of the service request, a computing node proxy module including the corresponding service type is used. Therefore, the higher the matching degree between the service type of the computing node proxy module in the candidate edge node and the request type of the service request, the higher the resource utilization rate of the candidate edge node, and the higher the service priority corresponding to the candidate edge node, that is, the service priority is positively correlated with the matching degree of the request type.

[0099] Method 3: Determine the service priority based on the matching degree between the candidate edge nodes and the computing power requirements of the service request.

[0100] It should be noted that the candidate edge nodes have different resource configurations and can deploy different models, that is, the corresponding configured computing node proxy modules are different. For example, assuming that the user needs to have an AI conversation, the computing node proxy module of the candidate edge node should be configured with a large language model (LLM-7B, Large Language Model-7B). If a more intelligent AI conversation is required, the computing node proxy module should be configured with a large language model with a higher computing power level (LLM-13B, Large LanguageModel-13B). Or, assuming that the user needs to draw a picture based on the text description, the computing node proxy module of the candidate edge node should be configured with a multimodal AI model, such as the SD model (Stable Diffusion model).

[0101] It should also be noted that multiple different models can be configured in the same candidate edge node.

[0102] Generally, the higher the resource configuration corresponding to the candidate edge node, the higher the computing power level of the computing power node proxy module that can be deployed, and the higher the computing power demand that can be met. For example, A100 can deploy a large language model (LLM-13B), and 4090 can only deploy a large language model (LLM-7B); therefore, the candidate edge nodes deployed with computing power node proxy modules of different computing power levels can meet the computing power requirements of different computing power levels; correspondingly, for the computing power requirements of the service request, it is necessary to select the candidate edge node of the corresponding computing power level. In this embodiment, the matching degree of the service priority is positively correlated with the computing power requirement, that is, the higher the matching degree of the computing power level of the computing power node proxy module in the candidate edge node and the computing power requirement of the service request, the higher the resource utilization rate of the candidate edge node, and the higher the service priority corresponding to the candidate edge node.

[0103] In a specific embodiment, the service priority of each candidate edge node can be determined based on the distance between the candidate edge node and the service location of the user terminal, the matching degree between the request type of the service request and the service type of the candidate edge node, and the matching degree between the computing power requirement of the service request and the computing power level of the candidate edge node.

[0104] According to the method of this embodiment, a candidate edge node matching the service request can be determined, thereby improving the efficiency of computing power scheduling based on edge nodes.

[0105] Figure 3 A flowchart of another edge node-based computing power scheduling method provided in an embodiment of the present application; a edge node-based computing power scheduling method provided in an embodiment of the present application is applied to a target edge node, and the method includes:

[0106] S310: After establishing a point-to-point communication connection with the access layer proxy module, obtain a service request sent by the access layer proxy module; the service request is a request for computing service; the access layer proxy module obtains service requests of other applications in the user terminal, and determines a target edge node that matches the service request from the candidate edge nodes; the target edge node is used to provide computing resources for the user terminal; the access layer proxy module executes the steps in the above-mentioned various method embodiments;

[0107] S320: Determine a corresponding request result according to the service request, and send the request result to the access layer proxy module, so that the access layer proxy module sends the request result to other applications of the user terminal.

[0108] For the specific implementation process of each step in this embodiment, please refer to the description in the above embodiments, which will not be repeated here.

[0109] An embodiment of the present application provides a computing power scheduling method based on edge nodes, which is applied to an access layer proxy module. The access layer proxy module is arranged in a user terminal. After determining the target edge node, the method directly communicates with the target edge node through the access layer proxy module, processes the service request through the target edge node, determines the corresponding request result, and feeds back the request result to other applications of the user terminal; not only can the virtualization operation of the edge node be avoided, but also the computing resources can be fully utilized, so the method can save processing resources.

[0110] Based on the above embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically, in this embodiment, the process of determining the candidate edge node includes:

[0111] If the current time belongs to the preset time period, each edge node is determined as a candidate edge node;

[0112] And / or, if the usage rate of the edge node is lower than a preset usage rate threshold, the edge node is determined as a candidate edge node.

[0113] Specifically, the preset time period is generally determined based on the idle time period of each edge node; in actual applications, the preset time period can be determined based on user usage habits or big data analysis; specifically, the preset time period can be determined based on the time period when the edge node is idle or the time period when the usage rate of the edge node is lower than the preset usage rate threshold.

[0114] When it is necessary to determine the candidate edge nodes, the current time is obtained, and it is determined whether the current time belongs to the preset time period; if the current time belongs to the preset time period, each edge node is determined as a candidate edge node; if the current time does not belong to the preset time period, there is no need to determine the candidate edge nodes.

[0115] Specifically, the utilization rate of the edge node indicates the proportion of processing resources used by the edge node to the total processing resources. In this embodiment, the utilization rate of the edge node is determined, and a preset utilization rate threshold of the edge node is obtained. If the utilization rate of the edge node is lower than the preset utilization rate threshold, it means that the edge node has surplus processing resources that can be used to respond to the service request of the user terminal, that is, the edge node can be used to participate in computing power scheduling, so the edge node is determined as a candidate edge node.

[0116] According to the method of this embodiment, candidate edge nodes are screened out from edge nodes through the design of node redundancy and disaster recovery scheduling, and the candidate edge nodes are used to participate in computing power scheduling, which can relatively improve the availability of each candidate edge node participating in computing power scheduling and improve the efficiency of computing power scheduling based on edge nodes.

[0117] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application are described in detail below in combination with actual application scenarios. Figure 4 A timing diagram of another computing power scheduling method based on edge nodes provided in an embodiment of the present application, such as Figure 4 As shown, in an embodiment of the present application, the specific steps of a computing power scheduling method based on edge nodes are as follows:

[0118] Other applications (APP, Application) in the user terminal generate service requests and send the service requests to the access layer proxy module (local access layer proxy);

[0119] After receiving the service request, the access layer proxy module (local access layer proxy) sends the service request to the computing power scheduling server;

[0120] The computing power scheduling server determines the service node list based on the service request and sends the service node list to the access layer proxy module (local access layer proxy);

[0121] The access layer proxy module (local access layer proxy) determines the target edge node from the service node list;

[0122] The access layer proxy module (local access layer proxy) sends a hole punching service request to the hole punching server;

[0123] The hole punching server obtains the target node information of the target edge node based on the hole punching service request, and sends the target node information to the access layer proxy module (local access layer proxy);

[0124] The access layer proxy module (local access layer proxy) establishes a point-to-point communication connection with the target edge node according to the target node information; that is, the user terminal establishes a point-to-point communication connection (p2p communication connection) with the target edge node;

[0125] The access layer proxy module (local access layer proxy) encapsulates the service request according to the preset communication protocol (protocol conversion), obtains the encapsulated service request, and sends the encapsulated service request to the target edge node through a point-to-point communication connection;

[0126] The target edge node unpacks the encapsulated service request (content restoration) and sends the unpacked service request to its own computing node proxy module;

[0127] The target edge node uses its own computing power node proxy module to respond to the service request and determine the corresponding request result. The computing power node proxy module then sends the request result to the target edge node.

[0128] The target edge node sends the request result to the access layer proxy module (local access layer proxy) based on the pre-established point-to-point communication connection;

[0129] The access layer proxy module (local access layer proxy) encapsulates the request result (protocol conversion) and sends the encapsulated request result to other applications (application APP) of the user terminal;

[0130] Other applications (APP) unpack the encapsulated request results (restore the content), and obtain the request results corresponding to the service request; thus completing the entire computing power scheduling process.

[0131] An embodiment of the present application provides a computing power scheduling method based on edge nodes, which is applied to an access layer proxy module. The access layer proxy module is arranged in a user terminal. After determining the target edge node, the method directly communicates with the target edge node through the access layer proxy module, processes the service request through the target edge node, determines the corresponding request result, and feeds back the request result to other applications of the user terminal; not only can the virtualization operation of the edge node be avoided, but also the computing resources can be fully utilized, so the method can save processing resources.

[0132] In addition, this embodiment realizes computing power scheduling and result distribution based on p2p communication connection through the access layer proxy module (local access layer proxy), without the need for additional adjustments on the application APP side; through the design of node redundancy and disaster recovery scheduling, candidate edge nodes are selected from the edge nodes, and the candidate edge nodes are used to participate in computing power scheduling, which can relatively improve the availability of each candidate edge node participating in computing power scheduling and improve the efficiency of computing power scheduling based on edge nodes; and, through p2p communication, the computing power of the application APP of the user terminal is transferred to the low-cost edge node, that is, the edge node is used to share computing power with the user terminal, thereby reducing the computing power cost; in addition, the corresponding request results (such as pictures, videos, voice, etc.) can also be directly distributed to the user terminal without processing through the centralized IDC (data center), which can further avoid the generation of additional bandwidth costs.

[0133] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0134] Figure 5 FIG. 1 is a schematic diagram of a computing power scheduling device based on edge nodes provided in an embodiment of the present application. Figure 5 As shown, the computing power scheduling device based on edge nodes of this embodiment is applied to the access layer proxy module, and the access layer proxy module is set in the user terminal, including a service request acquisition module 510, a target edge node determination module 520, a service request sending module 530 and a request result acquisition module 540; wherein,

[0135] A service request acquisition module 510 is used to acquire service requests of other applications in the user terminal; the service request is a request for computing service;

[0136] A target edge node determination module 520 is used to determine a target edge node that matches the service request from candidate edge nodes; the target edge node is used to provide computing resources for the user terminal;

[0137] A service request sending module 530, configured to send the service request to the target edge node after establishing a point-to-point communication connection with the target edge node;

[0138] The request result acquisition module 540 is used for the access layer proxy module to acquire the request result and send the request result to the other application of the user terminal after the target edge node determines the corresponding request result according to the service request.

[0139] An edge node-based computing power scheduling device provided in an embodiment of the present application has the same beneficial effects as the above-mentioned edge node-based computing power scheduling method.

[0140] In one of the embodiments, the target edge node determination module includes:

[0141] A service node list acquisition submodule is used to send the service request to the computing power scheduling server and receive the service node list fed back by the computing power scheduling server based on the service request;

[0142] The target edge node determination submodule is used to determine the target edge node from the service node list.

[0143] In one embodiment, the process of establishing a point-to-point communication connection between the service request sending module and the target edge node includes:

[0144] The communication connection establishing submodule is used to establish a point-to-point communication connection with the target edge node through the hole punching server.

[0145] In one embodiment, the communication connection establishment submodule includes:

[0146] A target node information acquisition unit, configured to send a hole punching service request to a hole punching server, and receive target node information of the target edge node fed back by the hole punching server based on the hole punching service request;

[0147] A communication connection establishing unit is used to establish a point-to-point communication connection with the target edge node according to the target node information.

[0148] In one of the embodiments, each of the candidate edge nodes in the service node list determines a service priority according to a distance from a service location of the user terminal;

[0149] and / or, each of the candidate edge nodes determines a service priority according to a degree of matching with a request type of the service request;

[0150] And / or each of the candidate edge nodes determines a service priority according to a degree of matching with a computing power requirement of the service request.

[0151] Figure 6 FIG. 1 is a schematic diagram of the structure of another computing power scheduling device based on edge nodes provided in an embodiment of the present application. Figure 6 As shown, the computing power scheduling device based on edge nodes of this embodiment is applied to the target edge node, including a service request determination module 610 and a request result feedback module 620, wherein:

[0152] The service request determination module 610 is used to obtain the service request sent by the access layer proxy module after establishing a point-to-point communication connection with the access layer proxy module; the service request is a request for computing service; the access layer proxy module obtains the service request of other applications in the user terminal, and determines the target edge node matching the service request from the candidate edge nodes; the target edge node is used to provide computing resources for the user terminal; the access layer proxy module executes the steps in the above-mentioned various method embodiments;

[0153] The request result feedback module 620 is used to determine the corresponding request result according to the service request, and send the request result to the access layer proxy module, so that the access layer proxy module sends the request result to other applications of the user terminal.

[0154] In one embodiment, the service request acquisition module includes:

[0155] A first candidate edge node determination submodule, configured to determine each edge node as a candidate edge node if the current time belongs to a preset time period;

[0156] And / or, a second candidate edge node determination submodule is configured to determine the edge node as the candidate edge node if the usage rate of the edge node is lower than a preset usage rate threshold.

[0157] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0158] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0159] Figure 7 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 7As shown, the terminal device 700 of this embodiment includes a memory 701, a processor 702, and a computer program 703 stored in the memory 701 and executable on the processor 702; when the processor 702 executes the computer program 703, the steps in the above-mentioned embodiments of the computing power scheduling method based on edge nodes are implemented; or when the processor 702 executes the computer program 703, the functions of each module / unit in the above-mentioned device embodiments are implemented.

[0160] Exemplarily, the computer program 703 may be divided into one or more modules / units, one or more modules / units are stored in the memory 701, and are executed by the processor 702 to implement the method of the embodiment of the present application. One or more modules / units may be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program 703 in the terminal device 700. For example, the computer program 703 may be divided into a service request acquisition module, a target edge node determination module, a service request sending module, and a request result acquisition module, and the specific functions of each module are as follows:

[0161] A service request acquisition module, used to acquire service requests of other applications in the user terminal; the service request is a request for computing service;

[0162] A target edge node determination module, used to determine a target edge node matching the service request from candidate edge nodes; the target edge node is used to provide computing resources for the user terminal;

[0163] A service request sending module, configured to send the service request to the target edge node after establishing a point-to-point communication connection with the target edge node;

[0164] The request result acquisition module is used for, after the target edge node determines the corresponding request result according to the service request, the access layer proxy module acquires the request result and sends the request result to the other application of the user terminal.

[0165] Alternatively, the computer program 703 may be divided into a service request acquisition module and a request result feedback module, and the specific functions of each module are as follows:

[0166] The service request acquisition module is used to acquire the service request sent by the access layer proxy module after establishing a point-to-point communication connection with the access layer proxy module; the service request is a request for computing service; the access layer proxy module acquires the service request of other applications in the user terminal, and determines the target edge node matching the service request from the candidate edge nodes; the target edge node is used to provide computing resources for the user terminal; the access layer proxy module executes the steps in the above-mentioned various method embodiments;

[0167] The request result feedback module is used to determine the corresponding request result according to the service request, and send the request result to the access layer proxy module, so that the access layer proxy module sends the request result to other applications of the user terminal.

[0168] In application, the terminal device 700 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device 700 may include but is not limited to a memory 701 and a processor 702. Those skilled in the art will appreciate that Figure 7 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.; among which, the input and output devices may include cameras, audio acquisition / playback devices, display screens, etc.; the network access device may include a communication module for wireless communication with external devices.

[0169] In applications, the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0170] In applications, the memory can be an internal storage unit of a terminal device, such as a hard disk or memory of the terminal device; it can also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a smart media card (SMC), a secure digital (SD) card, a flash card, etc.; it can also include both the internal storage unit and the external storage device of the terminal device. The memory is used to store operating systems, applications, boot loaders, data, and other programs, such as program codes of computer programs. The memory can also be used to temporarily store data that has been output or is about to be output.

[0171] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0172] A computer-readable storage medium provided in an embodiment of the present application has the same beneficial effects as the above-mentioned edge node-based computing power scheduling method.

[0173] The present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying the computer program code to a terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.

[0174] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0175] Those of ordinary skill in the art will appreciate that the devices and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0176] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interface, indirect coupling or communication connection of devices, which can be electrical, mechanical or other forms.

[0177] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A computing power scheduling method based on edge nodes, characterized in that: Applied to an access layer proxy module, the access layer proxy module is arranged in a user terminal, the method comprises: Obtaining service requests of other applications in the user terminal; the service requests are requests for computing services; Determine a target edge node matching the service request from the candidate edge nodes; the target edge node is used to provide computing resources for the user terminal; After establishing a point-to-point communication connection with a target edge node, sending the service request to the target edge node; After the target edge node determines the corresponding request result according to the service request, the access layer proxy module obtains the request result and sends the request result to the other application of the user terminal.

2. The method according to claim 1, characterized in that: The determining a target edge node matching the service request from the candidate edge nodes includes: Send the service request to the computing power scheduling server, and receive a service node list fed back by the computing power scheduling server based on the service request; A target edge node is determined from the service node list.

3. The method according to claim 1, characterized in that The process of establishing a point-to-point communication connection with the target edge node includes: A point-to-point communication connection is established with the target edge node through the hole punching server.

4. The method according to claim 3, characterized in that: The step of establishing a point-to-point communication connection with the target edge node through the hole punching server includes: Sending a hole punching service request to a hole punching server, and receiving target node information of the target edge node fed back by the hole punching server based on the hole punching service request; A point-to-point communication connection is established with the target edge node according to the target node information.

5. The method according to claim 2, characterized in that: Determine the service priority of each candidate edge node in the service node list according to the distance from the service location of the user terminal; and / or, each of the candidate edge nodes determines a service priority according to a degree of matching with a request type of the service request; And / or each of the candidate edge nodes determines a service priority according to a degree of matching with a computing power requirement of the service request.

6. A computing power scheduling method based on edge nodes, characterized in that: Applied to a target edge node, the method includes: After establishing a point-to-point communication connection with the access layer proxy module, obtaining a service request sent by the access layer proxy module; the service request is a request for computing service; the access layer proxy module obtains service requests of other applications in the user terminal, and determines a target edge node that matches the service request from candidate edge nodes; the target edge node is used to provide computing resources for the user terminal; the access layer proxy module executes the method according to any one of claims 1 to 5; A corresponding request result is determined according to the service request, and the request result is sent to the access layer proxy module, so that the access layer proxy module sends the request result to other applications of the user terminal.

7. The method according to claim 6, characterized in that The process of determining the candidate edge node includes: If the current time belongs to the preset time period, each edge node is determined as a candidate edge node; And / or, if the usage rate of the edge node is lower than a preset usage rate threshold, the edge node is determined as the candidate edge node.

8. A computing power scheduling device based on edge nodes, characterized in that: Applied to an access layer proxy module, the access layer proxy module is arranged in a user terminal, and the device comprises: A service request acquisition module, used to acquire service requests of other applications in the user terminal; the service request is a request for computing service; A target edge node determination module, used to determine a target edge node matching the service request from candidate edge nodes; the target edge node is used to provide computing resources for the user terminal; A service request sending module, configured to send the service request to the target edge node after establishing a point-to-point communication connection with the target edge node; The request result acquisition module is used for, after the target edge node determines the corresponding request result according to the service request, the access layer proxy module acquires the request result and sends the request result to the other application of the user terminal.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 or claims 6 to 7 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 or claims 6 to 7 are implemented.

Citation Information

Cited By

  • Text abstract generation method and system based on edge computing power

    CN119988606A

  • Edge node management method and edge node management system

    CN121396983A