Edge node access processing method and device

By judging the priority of access requests in edge nodes and cutting off the processing of low-priority requests, the problem of high-priority request response timeout is solved and processing efficiency is improved.

CN115174689BActive Publication Date: 2024-10-01NINGBO YITAI IND INTERNET OF THINGS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210684596.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-17
Publication Date
2024-10-01
Estimated Expiration
2042-06-17

AI Technical Summary

Technical Problem

In the existing technology, when edge nodes process a large number of access requests, high-priority requests are prone to response timeouts.

Method used

When the edge node receives an access request sent by the cloud server, it determines the priority of the request. If a higher-priority request arrives, it cuts off the processing process of the currently processed request, reprocesses the high-priority request, and sends a notification message to the cloud server. , causing it to resend the request.

Benefits of technology

Significantly reduces the response timeout of high-priority requests and improves the processing efficiency of access requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115174689B_ABST
    Figure CN115174689B_ABST
Patent Text Reader

Abstract

The present application provides an access processing method and device for an edge node, and relates to the field of communication technology. The method includes: an edge node receives a first access request sent by a cloud server; the edge node determines whether the priority of the first access request is higher than the priority of the second access request currently being processed; if the priority of the first access request is higher than the priority of the second access request, the edge node determines whether the current processing status of the second access request is in a result transmission state; if the current processing status of the second access request is not in a result transmission state, the edge node cuts off the processing of the second access request, processes the first access request, and sends a notification message to the cloud server, so that the cloud server resends the second access request. The method of the present application reduces the phenomenon of timeout of high priority access request responses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an access processing method and device for an edge node. Background Art

[0002] In recent years, with the development of industrial Internet of Things, various IoT applications and cloud platforms have begun to emerge, and the amount of data has increased dramatically. In order to improve data processing efficiency, a collaborative mechanism of cloud servers and edge nodes is used to process user requests.

[0003] In the prior art, after receiving the service request from the user, the cloud server can distribute some low-latency access requests to each edge node; the edge node can respond to the access request sent by the cloud server, and return the processing result to the cloud server so that the processing result can be fed back to the user through the cloud server, or the processing result can be directly fed back to the user. As a server, the edge node can usually respond to each access request from the cloud server in a timely manner. When the cloud server sends a large number of access requests to the edge node, the edge node can detect and sort the priority of these access requests, and then the edge node can process these access requests in order from high to low priority.

[0004] However, the prior art still has the phenomenon of high priority access request response timeout. Summary of the invention

[0005] The present disclosure provides an edge node access processing method and device to solve the problem that access requests are prone to response timeout in the prior art.

[0006] On the one hand, the present application provides an access processing method for an edge node, comprising:

[0007] The edge node receives a first access request sent by the cloud server;

[0008] The edge node determines whether the priority of the first access request is higher than the priority of the second access request currently being processed;

[0009] If the priority of the first access request is higher than the priority of the second access request, the edge node determines whether the current processing state of the second access request is in a result transmission state;

[0010] If the current processing status of the second access request is not in the result transmission status, the edge node cuts off the processing of the second access request, processes the first access request, and sends a notification message to the cloud server so that the cloud server resends the second access request.

[0011] In a second aspect, the present application provides an access processing device for an edge node, including:

[0012] A receiving module, used for the edge node to receive a first access request sent by the cloud server;

[0013] A first determination module, configured for the edge node to determine whether the priority of the first access request is higher than the priority of the second access request currently being processed;

[0014] a second determination module, for determining, by the edge node, whether a current processing state of the second access request is in a result transmission state if the priority of the first access request is higher than the priority of the second access request;

[0015] A cutting module is used for the edge node to cut off the processing of the second access request if the current processing status of the second access request is not in the result transmission status, process the first access request, and send a notification message to the cloud server to enable the cloud server to resend the second access request.

[0016] In a third aspect, the present invention provides an electronic device, comprising:

[0017] The memory stores computer-executable instructions;

[0018] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the access processing method for the edge node as described in any one of the first aspects above.

[0019] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the access processing method of the edge node as described in any one of the first aspects above is implemented.

[0020] The present application provides an access processing method and device for an edge node. When the edge node is processing a second access request, it receives a first access request with a higher priority, determines the current processing status of the second access request, and if it is not in a result transmission status, cuts off the processing process of the second access request and processes the first access request; if it is in a result transmission status, waits until the second access request is processed before processing the first access request, thereby reducing the occurrence of response timeouts for the higher priority first access request. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0022] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0023] Figure 2 Schematic diagram of the process of edge node access processing method provided in the embodiment of the present application Figure 1 ;

[0024] Figure 3 Schematic diagram of the process of edge node access processing method provided in the embodiment of the present application Figure 2 ;

[0025] Figure 4 A schematic diagram of the process of the edge node access processing method provided in an embodiment of the present application;

[0026] Figure 5 A schematic diagram of the structure of an access processing device for an edge node provided in an embodiment of the present application;

[0027] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0028] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0029] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0030] To facilitate understanding, the application scenarios of the embodiments of the present disclosure are first introduced.

[0031] Figure 1 Schematic diagram of application scenarios provided for embodiments of the present application. Cloud server 101 is a server or server cluster set up on the network side. Terminal 102 can be a smart phone, desktop computer, tablet computer and other devices, and various application software can be loaded on terminal 102, and users can perform corresponding operations through each application software. Edge node 103 refers to a business platform built on the edge side of the network close to the user, which has common capabilities such as edge-side real-time data analysis, local data storage, and real-time network connection. Compared with cloud server 101, edge node 103 is closer to terminal 102.

[0032] The terminal 102 sends a service request to the cloud server 101, and the cloud server 101 distributes part of the task to the edge node 103. Under the synergy of the edge node 103 and the cloud server 101, the service request of the terminal 102 is efficiently processed. In the entire processing process, the cloud server 101 plays the role of the "brain center" and each edge node 103 plays the role of the "nerve endings". The cloud server 101 reasonably distributes access requests to the edge node 103. The edge node 103 continuously receives the access requests from the cloud server 101 and processes them in turn.

[0033] The edge node 103 prioritizes the access requests sent by each cloud server 101 and processes them in order from high to low priority, thereby reducing the phenomenon of timeout response to some delay-sensitive access requests.

[0034] When an edge node processes access requests in the priority queue in descending order of priority, if a new access request with a higher priority arrives at the edge node, the edge node will usually add the new access request with a higher priority to the priority queue for sorting. When the currently processed access request is completed, the new access request with a higher priority will be processed. However, if the currently processed access request takes a long time, the new access request with a higher priority is prone to response timeout.

[0035] In order to solve at least one of the above technical problems, the embodiments of the present disclosure provide an access processing method and device for an edge node, which are applied in the field of communication technology to solve the above problem of timeout of response to some access requests.

[0036] The following specific embodiments are used to describe in detail the technical solution of the present invention and how the technical solution of the present invention solves the above technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0037] Figure 2 A schematic diagram of a method for processing access to an edge node provided in an embodiment of the present application Figure 1 .like Figure 2 As shown, the method of this embodiment includes:

[0038] S201: The edge node receives a first access request sent by a cloud server;

[0039] S202: The edge node determines whether the priority of the first access request is higher than the priority of the second access request currently being processed;

[0040] In the embodiment of the present disclosure, priority is a convention, and the edge node detects the priority of the access request based on some considerations, and executes the high priority first and the low priority later. The considerations may include but are not limited to: the latency sensitivity, impact range, impact degree, etc. of the access request.

[0041] Those skilled in the art will understand that when the edge node receives each access request sent by the cloud server, it will detect the priority of the access request. In the embodiment of the present disclosure, when the edge node receives the first access request, it first detects the priority of the first access request, then compares the priority of the first access request with the priority of the second access request, and determines the subsequent processing flow according to the comparison result of the priority of the first access request and the second access request.

[0042] S203: If the priority of the first access request is higher than the priority of the second access request, the edge node determines whether the current processing state of the second access request is in a result transmission state;

[0043] In the disclosed embodiment, the processing process of the edge node for the second access request sent by the cloud server can be divided into: the transmission process of the second access request from the cloud server to the edge node; the analysis and calculation process of the second access request by the edge node; the transmission process of the processing result of the second access request from the edge node to the cloud server or terminal, that is, the result transmission status.

[0044] Those skilled in the art can understand that if the priority of the first access request is higher than that of the second access request, the first access request needs to be processed by the edge node first, otherwise, when the second access request takes a long time to process, the first access request may have a response timeout, etc. Therefore, it is necessary to detect the processing status of the second access request.

[0045] In the three processing processes of the edge node for the second access request, the analysis and calculation process of the edge node for the second access request usually takes a long time. The transmission process of the second access request from the cloud server to the edge node, and the transmission process of the processing result of the second access request from the edge node to the cloud server or terminal, usually take a short time. And the result transmission time can usually be determined based on factors such as the physical distance between the edge node and the cloud server, and the edge node and the terminal. Therefore, by judging the processing status of the edge node for the second access, it is possible to judge how long it takes to complete the processing of the second access request.

[0046] In one possible implementation, if the priority of the first access request is lower than or equal to the priority of the second access request, the first access request is added to a priority queue for processing. The priority queue refers to a queue of access requests other than the first access request and the second access request in the edge node.

[0047] S204: If the current processing status of the second access request is not the processing result transmission status, the edge node cuts off the processing of the second access request, processes the first access request, and sends a notification message to the cloud server to enable the cloud server to resend the second access request.

[0048] In the embodiment of the present disclosure, cutting off the processing of the second access request can be understood as the CPU of the edge node stopping the execution of the second access request by the current program and not saving the current processing state of the second access request.

[0049] In one possible implementation, the edge node cuts off processing of the second access request, which may be specifically: the edge node deletes the processing process of the second access request, releases processing resources for the second access request, and deletes the second access request and data generated during the processing of the second access request.

[0050] Deleting the processing process of the second access request means interrupting the thread used to process the second access request and stopping the processing of the second access request. Processing resources refer to all software and / or hardware resources such as memory, threads, and applications used to process the second access request. The released processing resources of the second access request can be further switched to process the first access request, or can be in a waiting state for standby. Deleting the second access request and the data generated during the processing of the second access request means not saving any information during the processing of the second access request, which can release all processing resources for the second access request and reduce the time for saving the data generated during the processing of the second access request. At the same time, it can release all processing resources to the maximum extent, which is convenient for subsequent calls when processing the first access request.

[0051] In another possible implementation, the edge node cuts off the processing of the second access request, which may also specifically include: the edge node deletes the processing process of the second access request, releases the processing resources of the second access request, deletes the data generated during the processing of the second access request, and stores the original request data in the second access request.

[0052] The original request data is the data in the second access request sent by the cloud server to the edge node. In a specific example, the second access request sent by the cloud server to the edge node is: filter A among A, B, C, D, E. At this time, the original request data can be: A, B, C, D, E, or: A, B, C. The original request data can be any data in the second access request sent by the cloud server to the edge node.

[0053] After the edge node cuts off the processing of the second access request, it saves the original request data. When the cloud server sends the second access request to the edge node again, it does not need to send all the data again. For example, when the original request data is: A, B, C, D, E, the cloud server sends the second access request to the edge node again, and only needs to send: filter A. By adopting the above solution, the amount of data that needs to be sent when the cloud server sends the second access request again can be reduced.

[0054] Those skilled in the art will appreciate that when the edge node's processing of the second access request is cut off, the second access request needs to be processed again later, and therefore, the cloud server needs to be informed to resend the second access request.

[0055] The access processing method of the edge node provided in the embodiment of the present application, when the priority of the first access request is higher than that of the second access request, by judging the current processing status of the second access request, if the second access request is not currently in the result transmission state, the processing of the second access request is cut off, so that the edge node can process the first access request with a higher priority in a shorter time, which significantly reduces the situation of timeout of the response to the first access request.

[0056] Figure 3 A schematic diagram of a method for processing access to an edge node provided in an embodiment of the present disclosure Figure 1 .like Figure 3 As shown, the method of this embodiment includes:

[0057] S301: The edge node receives a first access request sent by a cloud server;

[0058] It should be understood that the specific implementation process of S301 is the same as Figure 2 It is similar to S201 in , and will not be repeated here.

[0059] S302: The edge node determines whether the priority of the first access request is higher than the priority of the second access request currently being processed;

[0060] If it is less than or equal to, execute step S303;

[0061] If it is higher, execute step S304;

[0062] S303: Add the first access request to a priority queue and wait for processing;

[0063] The priority queue refers to the queue of access requests other than the first access request and the second access request in the edge node. For example, when in addition to the first access request and the second access request, there are also access requests A, D, X, and W in the edge node. And according to the priority sorting, the above four access requests are ranked from high to low in priority: access request A, access request D, access request W, and access request X. Then access request A, access request D, access request W, and access request X are the priority queues of the edge node.

[0064] To add the first access request to the priority queue, it is necessary to first detect the priority of the first access request, and compare the priority of the first access request with access request A, access request D, access request W, and access request X, so as to determine the position of the first access request to be added to the priority queue. For example, if it is detected that the priority of the first access request is higher than that of access request W and lower than that of access request D, then the first access request is added between access request D and access request W. The new priority queue obtained is: access request A, access request D, first access request, access request W, access request X. At this time, by processing the access requests in the new priority queue in sequence, the situation of access request response timeout is reduced.

[0065] At the same time, if the first access request and the second access request have the same priority, the first access request and the second access request have the same urgency to be processed. Therefore, the edge node can select any one access request to process. Since the second access request is already being processed, if the second access request is interrupted, it will cause unnecessary waste of resources and time. Therefore, the edge node processes the first access request after processing the second access request.

[0066] S304: The edge node determines whether the current processing state of the second access request is in a result transmission state;

[0067] If it is in the result transmission state, execute S305;

[0068] If it is not in the result transmission state, execute S306;

[0069] S305: After completing the transmission of the processing result of the second access request, the edge node processes the first access request;

[0070] When the current processing state of the second access request is in the result transmission state, it means that the second access request will take a short time to complete processing. Therefore, the first access request is processed after the processing result of the second access request is transmitted. Through the above solution, the edge can complete the processing of the second access request in a short time, avoiding the phenomenon of timeout of the first access request response, and completing the processing of the second access request at the same time.

[0071] S306: The edge node determines whether the number of disconnections for the second access request exceeds a first preset threshold;

[0072] If not, execute step S307;

[0073] If it exceeds, execute step S303;

[0074] S307: The edge node cuts off the processing of the second access request, and the edge node updates the number of times the second access request has been cut off;

[0075] The first preset threshold is a natural number, which may be 1, 2, 3, etc.

[0076] When the priority of the second access request is low, during the execution of the second access request, when the cloud server sends new access requests to the edge node, there may be new access requests that are higher than the second access request. This causes the second access request to be frequently cut off during the processing. Even for access requests with low priority, a response is required within a certain period of time. Therefore, the second access request is always cut off, which may easily cause the second access request response to time out. A first preset threshold value is set, that is, the value that cannot be exceeded for the number of times the second access request is cut off, to reduce the phenomenon of second access request response timeout.

[0077] The first preset threshold can be set according to the priority of the second access request. When the priority of the second access request is higher, the first preset threshold can be set smaller to ensure that the second access request can be processed in a shorter time. When the priority of the second access request is lower and it is not sensitive to latency, the first preset threshold can be set relatively larger so that the edge node can give priority to other access requests with higher priorities. By setting the first preset threshold, the phenomenon of timeout in response to the first access request can be reduced while the phenomenon of timeout in response to the second access request can be reduced.

[0078] In addition, in order to ensure the accuracy of the number of times the second access request has been cut off, it is necessary to update the number of times the second access request has been cut off each time the second access request is cut off.

[0079] S308: The edge node determines whether the number of disconnections exceeds a second preset threshold;

[0080] If it exceeds, execute step S309;

[0081] If not, execute step S310;

[0082] S309: Process the first access request and send an instruction message to the cloud server, so that the cloud server sends a second access request to the edge node after waiting for a preset time;

[0083] The second preset threshold is a natural number, which can be 1, 2, 3, 4, etc. The number of cut-offs is the total number of times the edge node cuts off the access request. For example, the second access request has been cut off 2 times, and the remaining access requests have been cut off 3 times, then the number of cut-offs is 5 times. And, each time the edge node cuts off the processing process of an access request, the number of cut-offs increases by 1. The preset duration is a configurable duration.

[0084] Those skilled in the art can understand that when the edge node processes an access request, there will be access requests of other priorities waiting to be processed. If the priority of the access requests newly received by the edge node is higher than the access requests waiting to be processed, the access requests with lower priority among the access requests waiting to be processed will continue to be in a waiting state. For example, when the edge node is processing the second access request, there are still access requests A, B, C, and D waiting in the edge node at this time, and in order of priority from high to low, the priority queues of the above four access requests are: access request B, access request A, C, and D. Before executing access request C, the cloud server sends multiple access requests to the edge node, and the priorities of the above multiple access requests are higher than access request A. When the edge node processes access request A or B, it continuously cuts off the processing of access request A or B, so that access request C and access request D are always in a waiting state.

[0085] In order to avoid low-priority access requests being in a waiting state, a second preset threshold is set. When the number of disconnections exceeds the second preset threshold, that is, the edge node has been disconnected a large number of times, there may be a situation where low-priority access requests are in a waiting state. At this time, it is necessary to process the low-priority access requests that have been in a waiting state first to avoid low-priority access request response timeout.

[0086] However, when processing a low-priority access request, if a new high-priority task enters, when waiting for the low-priority task to be processed and then processing the new high-priority task, the high-priority task may time out in response. For example, when the number of times the edge node has been disconnected exceeds the second preset threshold, and low-priority access requests C and D have been in a waiting state, the edge node will first process access requests C and D. If during the process of processing access requests C and D, the edge node receives a second access request with a higher priority than access request C, after processing access requests C and D, the second access request may time out in response.

[0087] Therefore, when the number of disconnections exceeds the second preset threshold, an indication message is sent to the cloud server so that the cloud server sends the second access request to the edge node after waiting for a preset time. The preset time can be determined based on the time it takes the edge node to process low-priority access requests. For example, when the low-priority access requests that have been in a waiting state are access requests C and access requests D, the preset time can be determined based on the total time it takes the edge node to process access requests C and access requests D. As a result, when the edge node receives the second access request again, access requests C and access requests D are about to be processed, avoiding the situation where the second access request response times out.

[0088] S310: Process the first access request and send a notification message including a first duration to the cloud server, so that the cloud server waits for the first duration after receiving the notification message and then resends the second access request.

[0089] When the number of times the edge node has been disconnected does not exceed the second preset threshold, it means that the low-priority access request in the waiting state of the edge node has a short waiting time, and the access request with a higher priority can be processed first. Therefore, a notification message is sent to the cloud server, so that the cloud server resends the second access request after waiting for the first time.

[0090] The first duration is a configurable duration. The first duration can be determined according to the processing time of the first access request, so that when the cloud server sends the second access request again, the second access request can be quickly processed by the edge node.

[0091] Based on any one of the above embodiments, Figure 4 , through specific examples, the technical solutions shown in the embodiments of the present application are described in detail.

[0092] Figure 4 A schematic diagram of a process of an edge node access processing method provided in an embodiment of the present application, including process 1, process 2, process 3, and process 4.

[0093] Among them, level 1, level 2, level 3, level 5, level 6, and level 7 are the priorities of each access request, and the order of priority is: level 0>level 1>level 2>level 3>level 4>level 5>level 6>level 7. In addition, the first access request, the second access request, the third access request, the fifth access request, the seventh access request, and the sixth access request are different names for each access request, and the numbers in the names do not represent any meaning.

[0094] like Figure 4 As shown in process 1, the edge node 103 is processing the second access request, and at this time there is a priority queue in the edge node in a waiting state. At this time, the cloud server 101 sends the first access request to the above-mentioned edge node 103. Then, as shown in process 2, the edge node 103 detects the priorities of the first access request and the second access request, and the detection result is that the priority of the first access result is level 1, and the priority of the second access request is level 2. Through the judgment of the edge node 103, level 1>level 2, it is determined that the priority of the first access request is higher than the second access request. As shown in process 3, the edge node 103 analyzes the current processing status of the second access request, and determines through analysis that the second access request is not currently in a result transmission state. Finally, as shown in process 4, the processing of the second access request is cut off, and the processing of the first access request is started at the same time, and because the second access request is cut off and needs to be reprocessed, a notification message is sent to the cloud server 101 to inform that the second access request needs to be resent. In addition, during process 2-3, the access requests in the priority queue continue to be in a waiting state.

[0095] Figure 5 A schematic diagram of the structure of an access processing device for an edge node provided in an embodiment of the present application. Figure 5 As shown, the access processing device 50 of the edge node provided in this embodiment includes: a receiving module 501, a first determining module 502, a second determining module 503, and a disconnecting module 504.

[0096] Receiving module 501, used for the edge node to receive a first access request sent by the cloud server;

[0097] A first determination module 502, configured for the edge node to determine whether the priority of the first access request is higher than the priority of the second access request currently being processed;

[0098] A second determination module 503, for the edge node to determine whether the current processing state of the second access request is in a result transmission state if the priority of the first access request is higher than the priority of the second access request;

[0099] The cutting module 504 is used for the edge node to cut off the processing of the second access request if the current processing status of the second access request is not in the result transmission status, process the first access request, and send a notification message to the cloud server to enable the cloud server to resend the second access request.

[0100] Optionally, the device further includes: a processing module, configured to, if the current processing state of the second access request is a processing result transmission state, cause the edge node to process the first access request after completing the transmission of the processing result of the second access request.

[0101] Optionally, the cut-off module is specifically used for:

[0102] The edge node deletes the processing process of the second access request, releases the processing resources of the second access request, and deletes the second access request and the data generated during the processing of the second access request.

[0103] Optionally, the cut-off module may also be specifically used for:

[0104] The edge node deletes the processing process of the second access request, releases the processing resources of the second access request, deletes the data generated during the processing of the second access request, and stores the original request data in the second access request.

[0105] Optionally, the cut-off module may also be specifically used for:

[0106] A notification message including a first duration is sent to the cloud server, so that after receiving the notification message, the cloud server waits for the first duration and then resends the second access request.

[0107] Optionally, the cut-off module can also be used to:

[0108] determining whether the number of disconnections for the second access request exceeds a first preset threshold;

[0109] If not, the step of causing the edge node to cut off processing of the second access request is executed.

[0110] Optionally, the cut-off module can also be used to:

[0111] After the edge node cuts off the processing of the second access request, updating the number of times the second access request has been cut off;

[0112] Determine whether the number of disconnections exceeds a second preset threshold, and if so, send an indication message to the cloud server so that the cloud server sends the second access request to the edge node after waiting for a preset time.

[0113] The access processing device of the edge node provided in this embodiment can be used to execute the above method embodiments. Its implementation method and technical effects are similar, and this embodiment will not be repeated here.

[0114] Figure 6 The hardware structure diagram of the access processing device of the edge node provided in the embodiment of the present application. Figure 6 As shown, the access processing device 60 of the edge node includes:

[0115] At least one processor 601 and memory 602;

[0116] The memory 602 stores computer-executable instructions;

[0117] The at least one processor 601 executes the computer-executable instructions stored in the memory 602 , so that the at least one processor 601 executes the access processing method of the edge node as described above.

[0118] The specific implementation process of the processor 601 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0119] The processor 601 and the memory 602 are connected via a bus 603 .

[0120] An embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the access processing method of the edge node as described above.

[0121] In the above-mentioned embodiments, 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, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0122] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0123] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned module-composed unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0124] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor (English: processor) to perform some steps of the methods described in various embodiments of the present application.

[0125] It should be understood that the processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented by a hardware processor or implemented by a combination of hardware and software modules in the processor.

[0126] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0127] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0128] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0129] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in a terminal or server.

[0130] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for processing access to an edge node, It is characterized in that include: The edge node receives a first access request sent by the cloud server; The edge node determines whether the priority of the first access request is higher than the priority of the second access request currently being processed; If the priority of the first access request is higher than the priority of the second access request, the edge node analyzes the current processing status of the second access request to determine whether the current processing status of the second access request is in a result transmission status, where the result transmission status refers to the transmission process of the processing result of the second access request from the edge node to the cloud server or terminal; If the current processing state of the second access request is not in the result transmission state, the edge node cuts off the processing of the second access request, processes the first access request, and sends a notification message to the cloud server so that the cloud server resends the second access request; Before the edge node cuts off the processing of the second access request, the method further includes: Determining, by the edge node, whether the number of disconnections for the second access request exceeds a first preset threshold; If not, executing the step of the edge node cutting off the processing of the second access request; After the edge node cuts off the processing of the second access request, the method further includes: The edge node updates the number of times the second access request has been cut off; The edge node determines whether the number of disconnections exceeds a second preset threshold, and if so, sends an indication message to the cloud server, so that the cloud server sends the second access request to the edge node after waiting for a preset time.

2. The method according to claim 1, It is characterized in that Also includes: If the current processing state of the second access request is a processing result transmission state, the edge node processes the first access request after completing the transmission of the processing result of the second access request.

3. The method according to claim 1 or 2, It is characterized in that The edge node cuts off the processing of the second access request, specifically including: The edge node deletes the processing process of the second access request, releases the processing resources of the second access request, and deletes the second access request and the data generated during the processing of the second access request.

4. The method according to claim 1 or 2, It is characterized in that The edge node cuts off the processing of the second access request, specifically including: The edge node deletes the processing process of the second access request, releases the processing resources of the second access request, deletes the data generated during the processing of the second access request, and stores the original request data in the second access request.

5. The method according to claim 1 or 2, It is characterized in that The sending of a notification message to the cloud server specifically includes: The edge node sends a notification message including a first duration to the cloud server, so that after receiving the notification message, the cloud server waits for the first duration and then resends the second access request.

6. An access processing device for an edge node, It is characterized in that include: A receiving module, used for the edge node to receive a first access request sent by the cloud server; A first determination module, configured for the edge node to determine whether the priority of the first access request is higher than the priority of the second access request currently being processed; a second determination module, for the edge node to analyze the current processing status of the second access request and determine whether the current processing status of the second access request is in a result transmission status if the priority of the first access request is higher than the priority of the second access request; the result transmission status refers to the transmission process of the processing result of the second access request from the edge node to the cloud server or terminal; a cutting module, for the edge node to cut off processing of the second access request if the current processing state of the second access request is not in a result transmission state, to process the first access request, and to send a notification message to the cloud server so that the cloud server resends the second access request; The cutting module is further used to determine whether the number of times the second access request has been cut off exceeds a first preset threshold; If not, executing the step of the edge node cutting off the processing of the second access request; and, after the edge node cuts off processing of the second access request, updating the number of times the second access request has been cut off; Determine whether the number of disconnections exceeds a second preset threshold, and if so, send an indication message to the cloud server so that the cloud server sends the second access request to the edge node after waiting for a preset time.

7. An electronic device, It is characterized in that include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the access processing method for the edge node as described in any one of claims 1 to 5.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the access processing method for the edge node according to any one of claims 1 to 5.