An optimal decoupling method for end-edge-cloud computing for transmission resources
The optimization problem is decoupled into sub-problems of the edge server, mobile terminal and cloud server through the Cauchy-Schwarz inequality, which solves the delay problem caused by the discrete input of mobile terminal data in the edge computing system and achieves a significant reduction in system delay. .
Patent Information
- Application Number
- CN202210212998.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-04
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-03-04
AI Technical Summary
Existing technologies fail to effectively handle the discrete input of mobile data in edge computing systems, resulting in high system latency.
The Cauchy-Schwarz inequality is used to decouple the optimization problem into three sub-problems of edge servers, mobile terminals and cloud servers. By determining the task allocation ratio and resource allocation amount, specific constraints and optimization algorithms are met to calculate data block transmission. The average system delay of the time interval, thereby optimizing the system delay.
Significantly reduces system latency. When the wireless transmission resource between the mobile terminal and the edge server is 300Kbps, and the wired transmission resource between the edge server and the cloud server is 1Mbps, the system latency of the traditional method is 4.5s and 4.2s, while this method The system delay of the method is 0.5s, far exceeding the existing technology.
Smart Images

Figure CN114785777B
Abstract
Description
Technical Field
[0001] The present invention relates to an optimal decoupling method, and in particular to an optimal decoupling method for end-edge-cloud computing for transmitting data resources, belonging to the technical field of cloud computing. Background Art
[0002] By using an edge computing system consisting of a mobile terminal, an edge server, and a cloud server, computing tasks can be assigned to different network nodes, making full use of the system's computing and communication resources to complete computing tasks in a shorter time. In this system, we need to make comprehensive use of the computing and communication resources of different nodes, so we need to allocate tasks and resources to minimize the system's latency.
[0003] A task and resource allocation method is proposed in the prior art, but its disadvantage is that it only considers the situation where data is continuously input at the mobile terminal. In actual systems, the data at the mobile terminal is input discretely in blocks, which can no longer meet people's requirements. Summary of the invention
[0004] The purpose of the present invention is to provide an optimal decoupling method for end-edge-cloud computing for transmitting data resources, which fully considers the block-by-block discrete input situation of mobile end data in practice and solves the shortcomings of the prior art.
[0005] The present invention is implemented by the following technical solutions:
[0006] An optimal decoupling method for end-edge-cloud computing for transmission resources, characterized in that the optimal decoupling method specifically includes:
[0007] Determine the optimization problem: determine the task allocation ratio of edge servers, mobile terminals, and cloud servers, calculate the computing resource allocation and communication resource allocation of edge servers, mobile terminals, and cloud servers, and determine the delay when all computing tasks are completed by mobile terminals, edge servers, or cloud servers;
[0008] Identify constraints, including:
[0009] The amount of data transmitted and the data compression ratio on the mobile terminal;
[0010] Allocation constraints on communication and computing resources of edge servers;
[0011] Communication and computing resource allocation limitations of cloud servers;
[0012] Determine the optimization algorithm: Use the Cauchy-Schwarz inequality to decouple the optimization problem into three sub-problems: optimizing edge servers, optimizing mobile terminals, and optimizing cloud servers.
[0013] Based on the optimization algorithm and constraints, the optimization problem is solved.
[0014] Furthermore, the optimization problem is determined: within a period of sampling times, the average system delay of the data block transmission time interval satisfies the following formula:
[0015]
[0016] The edge server allocates communication resources to multiple mobile terminals, and the cloud server allocates computing resources to multiple edge servers. The meaning of the formula variables is:
[0017] MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, s represents the task allocation ratio of the mobile terminal, θ represents the task allocation ratio of the edge server, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, K represents the number of sampling times, M represents the number of edge servers, and N represents the number of mobile terminals.
[0018] Furthermore, we determine the optimization problem: the delayed satisfaction formula when all computing tasks are completed by the mobile terminal:
[0019]
[0020] MD represents the mobile terminal, ES represents the edge server, and θ represents the task allocation ratio of the edge server. represents the task allocation ratio of the cloud server, and ρ represents the data compression ratio.
[0021] Furthermore, the optimization problem is determined: the delayed satisfaction formula when all computing tasks are completed by the edge server is:
[0022]
[0023] MD represents the mobile terminal, ES represents the edge server, and θ represents the task allocation ratio of the edge server. represents the task allocation ratio of the cloud server, and ρ represents the data compression ratio.
[0024] Furthermore, we determine the optimization problem: the delayed satisfaction formula when all computing tasks are completed by the cloud server:
[0025]
[0026] MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, and θ represents the task allocation ratio of the edge server. represents the task allocation ratio of the cloud server, and ρ represents the data compression ratio.
[0027] Furthermore, the mobile terminal's restriction condition is: when the amount of data transmitted by the mobile terminal is less than the communication capacity, the following formula is satisfied:
[0028]
[0029] MD represents the mobile terminal, s represents the task allocation ratio of the mobile terminal, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, and ρ is the data compression ratio.
[0030] Furthermore, according to the actual constraints of the system, the constraints of the edge server are determined:
[0031] The allocation constraints of the communication resources of the edge server satisfy the following formula:
[0032]
[0033] The allocation constraints of computing resources of edge servers satisfy the following formula:
[0034]
[0035] The amount of data transmitted by the edge server is less than the communication capacity:
[0036]
[0037] ES represents the edge server, s represents the task allocation ratio of the mobile terminal, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, and β represents the amount of data processed by the mobile terminal.
[0038] Furthermore, the computing resource allocation of cloud servers is limited as follows:
[0039] The communication resource allocation constraints of the cloud server satisfy the following formula:
[0040]
[0041] ES stands for edge server, CC stands for cloud server, Indicates the task allocation ratio of the cloud server;
[0042] The computing resource allocation limit of the cloud server satisfies the following formula:
[0043]
[0044] Furthermore, the Cauchy-Schwarz inequality is used to decouple the above optimization problem into three sub-problems: mobile terminal, edge server and cloud server, where:
[0045] The optimization subproblem of the edge server satisfies the formula:
[0046]
[0047] The optimization sub-problems of the mobile terminal and the cloud server satisfy the following formula to find the optimal solution to minimize the system delay:
[0048]
[0049]
[0050]
[0051]
[0052]
[0053] MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, s represents the task allocation ratio of the mobile terminal, θ represents the task allocation ratio of the edge server, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, and K represents the number of sampling times.
[0054] Furthermore, the Cauchy-Schwarz inequality is used to decouple the above optimization problem into three sub-problems of mobile terminal, edge server and cloud server, and the following steps are also included:
[0055] Get the range of feasible solutions: calculate the vertices found when the equality sign of any constraint condition holds, and the set of vertices is the range of feasible solutions;
[0056] The optimal solution of s is obtained by convex optimization method; the cvx function of Matlab is used to solve it, and θ and θ are obtained by optimizing subproblems on the mobile terminal and cloud server. Optimal solution;
[0057] There are multiple optimal solutions s, θ and Select the solution that makes the original optimization problem achieve the optimal value, substitute the value of each vertex into the system delay formula, and the result with the lowest delay is the optimal solution.
[0058] The beneficial technical effect of the present invention is: in the actual application of cloud computing and edge computing, the wireless transmission resources between the mobile terminal and the edge server are 300Kbps, and the wired transmission resources between the edge server and the cloud server are 1Mbps. When the average data input rate of the mobile terminal is 180Kb / s, the system delay of the traditional cloud computing method is 4.5s, and the system delay of the traditional edge computing method is 4.2s, while the system delay of this patent is 0.5s, which is far higher than the system delay of the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the specific implementation methods of the present invention 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0060] Figure 1 It is a system architecture diagram of the present invention.
[0061] Figure 2 This is one of the coordinate graphs of average task delay at different rates.
[0062] Figure 3 This is the second coordinate diagram of the average task delay at different rates.
[0063] Figure 4 It is one of the coordinate diagrams of data processing rate at different data input rates.
[0064] Figure 5 This is the second coordinate diagram of data processing rate at different data input rates. DETAILED DESCRIPTION
[0065] The following description of the embodiments will help the public better understand the present invention, but the specific embodiments given by the applicant cannot and should not be regarded as limitations on the technical solutions of the present invention. Any changes to the definitions of components or technical features and / or formal but not substantial changes to the overall structure should be regarded as the scope of protection defined by the technical solutions of the present invention.
[0066] The main idea of the present invention is to provide an optimal decoupling method for end-edge-cloud computing for transmitting resources. The optimal decoupling method specifically includes the following contents:
[0067] Determine the optimization problem: determine the task allocation ratio of edge servers, mobile terminals, and cloud servers, calculate the resource allocation and communication resource allocation of edge servers, mobile terminals, and cloud servers, and determine the delay when all computing tasks are completed by mobile terminals, edge servers, or cloud servers;
[0068] When confirming the optimization problem, you must also determine the constraints and optimization algorithm. When determining the constraints:
[0069] The amount of data transmitted by the mobile terminal is less than the communication capacity, and the amount of data transmitted by the mobile terminal and the data compression ratio are determined;
[0070] The amount of data transmitted by the edge server is less than the communication capacity. The amount of data that has been processed by the mobile terminal is determined, and the allocation limits of the communication resources and computing resources of the edge server are determined, and then the allocation limits of the communication resources and computing resources of the cloud server are determined.
[0071] Determine the optimization algorithm: Use the Cauchy-Schwarz inequality to decouple the optimization problem into three sub-problems: optimizing edge servers, optimizing mobile terminals, and optimizing cloud servers.
[0072] Based on the optimization algorithm and constraints, the optimization problem is solved.
[0073] Preferably, based on the above embodiment, the optimization problem is determined: within a period of sampling times, the average system delay of the data block transmission time interval satisfies the following formula:
[0074]
[0075] The edge server ES allocates communication resources to N mobile terminals MD, and the cloud server CC allocates computing resources to multiple edge servers ES. The meaning of the formula variables: MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, s represents the task allocation ratio of the mobile terminal, and θ represents the task allocation ratio of the edge server. represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, and K represents the number of sampling times. This embodiment can be combined with other embodiments to form more embodiments, which will not be described in detail due to space limitations.
[0076] Preferably, based on the above embodiment, the optimization problem is improved to make full use of the computing power of the mobile terminal, edge server and cloud server:
[0077] The delayed gratification formula when all computing tasks are completed by the mobile terminal is:
[0078]
[0079] The delayed satisfaction formula when all computing tasks are completed by the edge server is:
[0080]
[0081] The delayed satisfaction formula when all computing tasks are completed by the cloud server is:
[0082]
[0083] MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, and θ represents the task allocation ratio of the edge server. The content of the above embodiment can be combined with other implementations to form more embodiments, which will not be described in detail due to space limitations.
[0084] Preferably, considering that the amount of data transmitted by the mobile terminal is limited, if the amount of data is too large, the data will accumulate and be blocked on the mobile terminal and cannot be processed. Therefore, the limiting conditions of the mobile terminal, edge server and cloud server should be determined. The limiting condition of the mobile terminal: when the amount of data transmitted by the mobile terminal is less than the communication capacity, the following formula is satisfied:
[0085]
[0086] Limitations of edge servers:
[0087] The allocation constraints of the communication resources of the edge server satisfy the following formula:
[0088]
[0089] The allocation constraints of computing resources of edge servers satisfy the following formula:
[0090]
[0091] The amount of data transmitted by the edge server is less than the communication capacity:
[0092]
[0093] Computing resource allocation limits of cloud servers:
[0094] The communication resource allocation constraints of the cloud server satisfy the following formula:
[0095]
[0096] The computing resource allocation limit of the cloud server satisfies the following formula:
[0097]
[0098] ES stands for edge server, CC stands for cloud server, represents the task allocation ratio of the cloud server, θ represents the task allocation ratio of the edge server, β is the amount of data processed by the mobile terminal, and ρ represents the data compression ratio. The contents of the above embodiments can be combined with other implementations to form more embodiments, which will not be described in detail due to space limitations.
[0099] Preferably, the Cauchy-Schwartz inequality is used to decouple the above optimization problem into three sub-problems of mobile terminal, edge server and cloud server, where:
[0100] The optimization subproblem of the edge server satisfies the formula:
[0101]
[0102] The optimization sub-problems of the mobile terminal and the cloud server satisfy the following formula to find the optimal solution to minimize the system delay:
[0103]
[0104]
[0105]
[0106]
[0107]
[0108] MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, s represents the task allocation ratio of the mobile terminal, θ represents the task allocation ratio of the edge server, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, and K represents the number of sampling times.
[0109] Preferably, the Cauchy-Schwartz inequality is used to decouple the above optimization problem into three sub-problems of the mobile terminal, the edge server and the cloud server, and the following steps are also included:
[0110] Get the range of feasible solutions: calculate the vertices found when the equality sign of any constraint condition holds. The set of vertices is the range of feasible solutions.
[0111] The optimal solution of s is obtained by convex optimization method; the cvx function of Matlab is used to solve it, and θ and θ are obtained by optimizing subproblems on the mobile terminal and cloud server. Optimal solution;
[0112] There are multiple optimal solutions s, θ and Select the solution that makes the original optimization problem achieve the optimal value, substitute the value of each vertex into the system delay formula, and the result with the lowest delay is the optimal solution.
[0113] The present invention can be applied in many technical fields such as cloud storage, cloud medical care, cloud collaborative development, public cloud, desktop cloud, Internet of Things, artificial intelligence, big data, intelligent manufacturing, smart city, etc. In the actual application of cloud computing and edge computing, the present invention takes the application in cloud medical care as an example. After the mobile terminal collects user data (such as pathological pictures), the user hopes to receive the diagnosis results as soon as possible. At this time, this solution can be applied to distribute the computing tasks to the mobile terminal, edge, and cloud, thereby greatly reducing the system delay. In actual applications, the wireless transmission resources between the mobile terminal and the edge server are 300Kbps, and the wired transmission resources between the edge server and the cloud server are 1Mbps. When the average data input rate of the mobile terminal is 180Kb / s, the system delay of the traditional cloud computing method is 4.5s, the system delay of the traditional edge computing method is 4.2s, and the system delay of this patent is 0.5s, which far exceeds the system delay of the prior art.
[0114] like Figures 2 to 5 The bar charts shown in the figure compare the following data: a) the patent method, b) cloud-edge computing (MDP), c) edge computing, d) cloud computing, and e) local computing. Figures 2 to 5 The horizontal axis in the table is the data input rate / (Kbps). Figure 2 The vertical axis is the average task delay / s. Figure 3 The vertical axis is the average task delay / s. Figure 4 The vertical axis is the data processing rate / Mbps. Figure 5 The vertical axis is the data processing rate / Mbps. By comparing the patent method a, cloud-edge computing b (MDP, based on Markov decision algorithm), edge computing c, cloud computing d, and local computing e, it can be seen that after allocating computing tasks to mobile terminals, edges, and clouds, the system latency can be greatly reduced, and the data processing rate is higher than other methods.
[0115] For the convenience of description, the above device is described by being divided into various units and modules according to their functions. Of course, when implementing the present application, the functions of each unit and module can be implemented in the same one or more software and / or hardware. It can be seen from the description of the above implementation mode that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation mode of the present application or some parts of the implementation mode.
[0116] The device implementation described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present implementation scheme. Those of ordinary skill in the art may understand and implement it without creative work.
[0117] The present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0118] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0119] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, technicians familiar with the field may make various corresponding changes and deformations based on the present invention, but these corresponding changes and deformations should all fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for optimal decoupling of end-edge-cloud computing for transmission resources, characterized in that: The optimal decoupling method specifically includes: Determine the optimization problem: determine the task allocation ratio of edge servers, mobile terminals, and cloud servers, calculate the computing resource allocation and communication resource allocation of edge servers, mobile terminals, and cloud servers, and determine the delay when all computing tasks are completed by mobile terminals, edge servers, or cloud servers; Identify constraints, including: The amount of data transmitted and the data compression ratio on the mobile terminal; Allocation constraints on communication and computing resources of edge servers; Communication and computing resource allocation limitations of cloud servers; Determine the optimization algorithm: Use the Cauchy-Schwarz inequality to decouple the optimization problem into three sub-problems: optimizing edge servers, optimizing mobile terminals, and optimizing cloud servers. Solving the optimization problem based on the optimization algorithm and constraints; The Cauchy-Schwarz inequality is used to decouple the above optimization problem into three sub-problems: mobile terminal, edge server, and cloud server, where: The optimization subproblem of the edge server satisfies the formula: The optimization sub-problems of the mobile terminal and the cloud server satisfy the following formula to find the optimal solution to minimize the system delay: MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, s represents the task allocation ratio of the mobile terminal, θ represents the task allocation ratio of the edge server, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, K represents the number of sampling times, M represents the number of edge servers, N represents the number of mobile terminals, and ρ represents the data compression ratio; The Cauchy-Schwarz inequality is used to decouple the above optimization problem into three sub-problems: mobile terminal, edge server and cloud server, and the following steps are also included: Get the range of feasible solutions: calculate the vertices found when the equality sign of any constraint condition holds. The set of vertices is the range of feasible solutions. The optimal solution of s is obtained by convex optimization method; the cvx function of Matlab is used to solve it, and θ and θ are obtained by optimizing subproblems on the mobile terminal and cloud server. Optimal solution; There are multiple optimal solutions s, θ and Select the solution that makes the original optimization problem achieve the optimal value, substitute the value of each vertex into the system delay formula, and the result with the lowest delay is the optimal solution.
2. The optimal decoupling method for end-edge-cloud computing for transmission resources according to claim 1, characterized in that: Determine the optimization problem: within a period of sampling times, the average system delay of the data block transmission time interval satisfies the following formula: The edge server allocates communication resources to multiple mobile terminals, and the cloud server allocates computing resources to multiple edge servers. The meaning of the formula variables is: MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, s represents the task allocation ratio of the mobile terminal, θ represents the task allocation ratio of the edge server, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, K represents the number of sampling times, M represents the number of edge servers, and N represents the number of mobile terminals; Indicates the delay when all computing tasks are completed by the mobile terminal. represents the delay when all computing tasks are completed by the edge server, Indicates the delay when all computing tasks are completed by the cloud server.
3. The optimal decoupling method for end-edge-cloud computing for transmission resources according to claim 1, characterized in that: Determine the optimization problem: Delayed gratification formula when all computing tasks are completed by the mobile terminal: MD represents the mobile terminal, ES represents the edge server, and θ represents the task allocation ratio of the edge server. represents the task allocation ratio of the cloud server, and ρ represents the data compression ratio.
4. The optimal decoupling method for end-edge-cloud computing for transmission resources according to claim 1, characterized in that: Determine the optimization problem: Delayed satisfaction formula when all computing tasks are completed by edge servers: MD represents the mobile terminal, ES represents the edge server, and θ represents the task allocation ratio of the edge server. represents the task allocation ratio of the cloud server, and ρ represents the data compression ratio.
5. The optimal decoupling method for end-edge-cloud computing for transmission resources according to claim 1, characterized in that: Determine the optimization problem: Delayed satisfaction formula when all computing tasks are completed by cloud servers: MD represents the mobile terminal, ES represents the edge server, CC represents the cloud server, and θ represents the task allocation ratio of the edge server. represents the task allocation ratio of the cloud server, and ρ represents the data compression ratio.
6. The optimal decoupling method for end-edge-cloud computing for transmission resources according to claim 1, characterized in that: Mobile terminal restriction: When the amount of data transmitted by the mobile terminal is less than the communication capacity, the following formula is satisfied: MD represents the mobile terminal, s represents the task allocation ratio of the mobile terminal, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, and ρ is the data compression ratio.
7. The optimal decoupling method for end-edge-cloud computing for transmission resources according to claim 1 or 6, characterized in that: Determine the constraints of the edge server based on the actual constraints of the system: The allocation constraints of the communication resources of the edge server satisfy the following formula: The allocation constraints of computing resources of edge servers satisfy the following formula: The amount of data transmitted by the edge server is less than the communication capacity: ES represents the edge server, s represents the task allocation ratio of the mobile terminal, represents the task allocation ratio of the cloud server, f represents the size of the data block, ΔT represents the time interval for data block transmission, and β represents the amount of data processed by the mobile terminal.
8. The optimal decoupling method for end-edge-cloud computing for transmission resources according to claim 1, characterized in that: Computing resource allocation limits of cloud servers: The communication resource allocation constraints of the cloud server satisfy the following formula: ES stands for edge server, CC stands for cloud server, Indicates the task allocation ratio of the cloud server; The computing resource allocation limit of the cloud server satisfies the following formula:
