A distributed offloading method based on energy harvesting in mobile Ad Hoc cloud
By adopting a distributed offloading method that combines energy collection and game theory in the mobile Ad Hoc cloud network, the problem of limited energy and computing resources of terminal equipment is solved, the system revenue is maximized, the queue backlog is stabilized, and the computing performance is improved. .
Patent Information
- Application Number
- CN202210269015.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-03-18
AI Technical Summary
Existing mobile Ad Hoc cloud computing and mobile edge computing are difficult to effectively solve the problem of limited energy, bandwidth and computing resources of terminal devices when processing computing tasks. Especially in scenarios such as Ad Hoc networks, there is a lack of available cloud servers or local microcomputers. The cloud causes computing tasks to be unable to be processed in a timely manner, affecting user experience.
Propose a distributed offloading method based on energy collection. Through Lyapunov optimization theory and game theory, the revenue maximization problem of buyers and sellers is established. The Lagrange multiplier method and KKT conditions are used to calculate the optimal task offloading strategy and quotation. Strategies to ensure maximum system revenue and stable queue backlog.
It effectively increases system revenue, stabilizes battery energy, reduces task queue backlog, and improves the computing performance of mobile Ad Hoc cloud networks.
Smart Images

Figure CN114650568B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of mobile communications, and in particular relates to a distributed unloading method based on energy collection in a mobile Ad Hoc cloud. Background Art
[0002] Driven by the rapid development of the Internet of Things (IoT), the number of terminal devices and data traffic have exploded, and computing-intensive and delay-sensitive applications (such as autonomous driving, virtual / augmented reality, online games, etc.) have continued to emerge, which has put forward higher requirements for the real-time computing resources of the network. On the other hand, the energy, bandwidth and computing resources of traditional terminal devices are limited, and it is difficult to meet the real-time computing needs and long-term endurance of emerging applications characterized by big data and intelligence. Mobile cloud computing (MCC) and mobile edge computing (MEC) have alleviated the problem of limited computing resources of terminal devices by offloading computing tasks to the cloud for processing, but the problems of insufficient edge computing power and uneven distribution cannot be effectively solved. In some network scenarios (such as Ad Hoc networks, drone networks, vehicle cloud networks, etc.), there are no available cloud servers or local micro clouds, or computing tasks cannot be processed in time due to network congestion, making it difficult to effectively meet the user's business experience.
[0003] Mobile Ad Hoc cloud computing uses the idle or excess resources of a group of neighboring terminal devices (such as smartphones, portable computers, AI monitoring equipment, in-vehicle smart terminals, etc.) to collaboratively process network tasks. Limited by size and hardware cost, the battery capacity of traditional terminal devices is difficult to meet their long-term endurance requirements, especially when the devices are distributed in remote or toxic and hazardous environments, it is difficult to power them through rechargeable batteries or traditional power grids. Energy harvesting (EH) technology supports devices to obtain renewable energy (such as solar energy, wind energy, mechanical energy, etc.) from the environment to support their communications and task processing, and has become an important technology for achieving green mobile communications. Therefore, the integration of mobile Ad Hoc cloud computing and EH technology is of great significance to improving network computing performance.
[0004] In recent years, green communication combining MEC and EH technologies has also received widespread attention, which has greatly inspired the integration of EH technology and AdHoc mobile cloud. Some major achievements are: (1) Dynamic Computation Offloading Based on Imperfect State Information in Energy Harvesting Small Cell Networks: A Partially Observable Stochastic Game (Reference: TANG Q, XIE R, HUANGT, et al. Dynamic Computation Offloading With Imperfect State Information in Energy Harvesting Small Cell Networks: A Partially Observable Stochastic Game [J]. IEEE Wireless Communication Letters, 2020, 9 (8): 1300-1304. DOI: 10.1109 / LWC.2020.2989147.): This algorithm is aimed at the MEC heterogeneous environment with EH small base stations, considering the average delay and average energy demand, and proposes a dynamic offloading algorithm based on distributed predictable stochastic game. The base station uses incomplete state information to make the optimal offloading decision. (2) Distributed computation offloading in IoT fog computing system with energy harvesting: DEC-POMDP method (Reference: TANG Q, XIE R, YU FA, et al. Decentralized computation offloading in IoT fog computing system with energy harvesting: A DEC-POMDP approach [J]. IEEE Internet of Things Journal, 2020, 7 (6): 4898-4911. DOI: 10.1109 / JIOT.2020.2971323.): This algorithm proposes a learning-based distributed offloading algorithm for the problem of predictable distributed offloading in energy-harvesting IoT fog systems, which enables IoT devices to make approximately optimal decisions based on the predicted system status under the delay constraint.(3) Energy-Delay Tradeoff Algorithm for Task Offloading in Mobile Edge Computing Based on Energy Harvesting (Reference: ZHANG G, ZHANG W, CAO Y, et al. Energy-Delay Tradeoff for Dynamic Offloading in Mobile-Edge Computing System with Energy Harvesting Devices[J]. IEEE Transactions on Industrial Informatics, 2018, 14(10): 4642-4655. DOI: 10.1109 / TII.2018.2843365.): This algorithm studies the task offloading problem of MEC systems with energy harvesting capabilities under queue backlog and battery power constraints, and minimizes the average weighted sum of energy consumption and execution delay of mobile devices through a dynamic offloading algorithm based on Lyapunov.
[0005] Different terminal devices with EH functions have different data characteristics and application requirements, which poses a severe challenge to the efficiency of task offloading. Most existing task offloading solutions only consider scenarios with EH functions in mobile terminals, but do not consider scenarios with EH functions in base stations or MEC servers. Therefore, how to develop task offloading strategies with energy harvesting levels in a distributed manner has important research value. Summary of the invention
[0006] In view of this, in order to maximize system benefits and stabilize queue backlog, the present invention proposes a distributed unloading method based on energy harvesting in a mobile AdHoc cloud, which specifically includes the following steps:
[0007] Considering a mobile Ad Hoc cloud network consisting of a group of nearby terminal devices with EH functions, we establish a computing task model, a task offloading model, and an energy harvesting model respectively;
[0008] The client terminal is regarded as the buyer, and purchases resources from the proxy terminal according to its own computing task requirements. The Lyapunov optimization theory is used to establish the buyer's profit maximization problem based on the computing task model, task offloading model and energy collection model.
[0009] The proxy terminal is regarded as the seller, and different computing and storage resources are provided to the client terminal through dynamic resource quotation. The seller's profit maximization problem is established based on the computing task model, task offloading model and energy collection model.
[0010] According to the task backlog of the client terminal, the battery energy level and the quote of the agent terminal, the optimal task offloading strategy for the buyer to the selected agent terminal and the optimal quote strategy for the seller are calculated in each time slot using the Lagrange multiplier method and KKT conditions;
[0011] If the buyer's optimal task offloading strategy and the seller's optimal quotation strategy satisfy the Stackelberg equilibrium solution, the client terminal offloads tasks to the agent terminal according to the optimal task offloading strategy.
[0012] Furthermore, based on the computing task model, task offloading model and energy collection model, the buyer's revenue maximization problem is expressed as:
[0013]
[0014] Constraints: E min ≤E i t 0≤E max ;
[0015]
[0016]
[0017]
[0018]
[0019]
[0020] in, V represents the buyer's revenue maximization problem in the tth time slot; i represents the control parameters of the i-th client terminal; represents the total revenue of the i-th client terminal in time slot t; Indicates that the offloading benefit is related to the task queue; For the i-th client terminal C i The number of tasks arriving in time slot t, Represents the i-th client terminal C i The total amount of tasks processed in time slot t; is the virtual energy queue of the EH device of the i-th client terminal, expressed as θ i is the disturbance parameter of the EH device, is the energy queue backlog of the EH device of the i-th client terminal at the beginning of time slot t; E min Indicates the minimum discharge energy of the battery; represents the total energy consumption of the i-th client terminal in time slot t; Emax Indicates the maximum discharge energy of the battery; represents the jth proxy terminal A in the tth time slot j The computing energy consumption generated when assisting the i-th client terminal in computing tasks; represents the energy queue backlog of the EH device carried by the i-th customer terminal at the beginning of time slot t; represents the amount of tasks offloaded from the i-th client terminal to the j-th proxy terminal in the t-th time slot; It indicates the backlog of the task queue of the i-th client terminal in the t-th time slot; represents the average task queue backlog of the ith client terminal in the tth time slot; T represents the system running time; Expressing expectation.
[0021] Furthermore, the buyer's profit maximization problem based on the computing task model, task offloading model and energy collection model is decomposed into solving the optimal solution of energy collection and task offloading optimization problem, where the optimal solution of energy collection is expressed as:
[0022]
[0023] when hour, when hour,
[0024] After decoupling the energy harvesting optimization problem, the task offloading optimization problem is expressed as:
[0025]
[0026] Constraints:
[0027]
[0028]
[0029]
[0030] in, represents the optimal solution for energy harvesting; γ max It represents the maximum value of energy collected by the EH device in the tth time slot.
[0031] Furthermore, when the computational tasks are processed locally and When , the optimal local calculation frequency of the tth time slot is solved by using the Lagrange multiplier method and KKT conditions:
[0032]
[0033] in, κ i is the effective energy cost coefficient of the i-th client terminal chip; L i represents the unit processing capacity of the i-th client terminal; τ is the unit time slot length; ξ i Offload the benefit weight parameter for the task.
[0034] Furthermore, when the computational tasks are processed locally and When , the optimal local calculation frequency is:
[0035]
[0036] in, Indicates that when the computing task is processed locally and Optimal local computation frequency when Indicates the maximum CPU processing frequency of the i-th customer; represents the maximum discharge energy of the battery of the i-th customer; represents the optimal amount of tasks that the i-th client terminal offloads to the j-th proxy terminal in the t-th time slot; is the transmission power of the i-th client terminal to offload the task to the j-th proxy terminal in the t-th time slot; is the task transmission rate of the i-th client terminal offloading the task to the j-th proxy terminal in the t-th time slot; i is the effective energy cost coefficient of the i-th client terminal chip; τ is the unit time slot length.
[0037] Furthermore, the client terminal chooses to offload part of the tasks to the proxy terminal at the beginning of each time slot, and the rest of the tasks are offloaded locally. The optimal task amount of the i-th client terminal offloaded to the j-th proxy terminal in the t-th time slot is expressed as:
[0038]
[0039]
[0040] Among them, ξ i Offload the benefit weight parameter for the task; is the i-th client terminal C in the t-th time slot i To the jth proxy terminal A j The unit payment cost for purchasing computing resources; is the unit communication cost of offloading the task from the i-th client terminal to the j-th proxy terminal in time slot t; is the transmission power of the i-th client terminal to offload the task to the j-th proxy terminal in time slot t; is the task transmission rate when the i-th client terminal offloads the task to the j-th proxy terminal in time slot t.
[0041] Furthermore, based on the computing task model, task offloading model and energy collection model, the seller's revenue maximization problem is expressed as:
[0042]
[0043] Objective function:
[0044]
[0045]
[0046] in, represents the seller’s revenue maximization problem; V represents the control parameter; represents the total revenue of the jth agent terminal in the tth time slot; is the virtual energy queue of the jth proxy terminal in the tth time slot, expressed as θ j is the disturbance parameter of the EH device, is the energy queue backlog of the EH device carried by the jth proxy terminal at the beginning of time slot t; represents the energy actually collected by the EH device of the jth proxy terminal in time slot t; The jth proxy terminal A in the tth time slot j The computing energy consumption when processing the computing task from the i-th client terminal; E min Indicates the minimum discharge energy of the battery; E max Indicates the maximum discharge energy of the battery; is the i-th client terminal C in the t-th time slot i To the jth proxy terminal A j The unit payment cost for purchasing computing resources.
[0047] Furthermore, the seller's revenue maximization problem based on the computing task model, task offloading model and energy collection model is decomposed into solving the optimal solution of energy collection and task offloading optimization problem, where the optimal solution of energy collection is expressed as:
[0048]
[0049] when hour, when hour,
[0050] After decoupling the energy harvesting optimization problem, the task offloading optimization problem is expressed as;
[0051]
[0052] Constraints:
[0053]
[0054]
[0055] in, represents the optimal solution for energy harvesting; γ max It represents the maximum value of energy collected by the EH device in the tth time slot.
[0056] Furthermore, the optimal bid for the tth time slot obtained by the Lagrange multiplier method and the KKT condition is:
[0057]
[0058] in, For the i-th client terminal C i To the jth proxy terminal A j The optimal unit payment cost for purchasing computing resources; For the i-th client terminal C i Optimal offloading task volume; is the i-th client terminal C in the t-th time slot i To the jth proxy terminal A j The unit payment cost for purchasing computing resources; is the unit communication cost of the i-th client terminal offloading the task to the j-th proxy terminal in the t-th time slot; η ij represents the unit energy consumption cost of the agent terminal processing task; i Offload the benefit weight parameter for the task.
[0059] This paper considers the mobile Ad Hoc cloud network where all terminal devices have EH function and proposes a distributed dynamic unloading scheme. At the same time, rational terminal devices cannot serve other terminal devices for free. In order to optimize the system revenue, this paper uses Lyapunov optimization theory and game theory to propose an incentive mechanism based on dynamic quotation. Compared with the existing scheme, the simulation results show that the proposed scheme can effectively improve the system revenue, stabilize the battery energy and reduce the backlog of the task queue. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 It is a flow chart of a distributed unloading method based on energy collection in a mobile Ad Hoc cloud of the present invention;
[0061] Figure 2 It is an Ad Hoc cloud collaboration system model;
[0062] Figure 3Price update chart for resource dynamic quotation process;
[0063] Figure 4 This is a graph showing CPU frequency updates during dynamic resource quotation. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0065] The present invention proposes a distributed unloading method based on energy collection in a mobile Ad Hoc cloud, comprising the following steps:
[0066] Considering a mobile Ad Hoc cloud network consisting of a group of nearby terminal devices with EH functions, we establish a computing task model, a task offloading model, and an energy harvesting model respectively;
[0067] The client terminal is regarded as the buyer, and purchases resources from the proxy terminal according to its own computing task requirements. The Lyapunov optimization theory is used to establish the buyer's profit maximization problem based on the computing task model, task offloading model and energy collection model.
[0068] The proxy terminal is regarded as the seller, and different computing and storage resources are provided to the client terminal through dynamic resource quotation. The seller's profit maximization problem is established based on the computing task model, task offloading model and energy collection model.
[0069] According to the task backlog of the client terminal, the battery energy level and the quote of the agent terminal, the optimal task offloading strategy for the buyer to the selected agent terminal and the optimal quote strategy for the seller are calculated in each time slot using the Lagrange multiplier method and KKT conditions;
[0070] If the buyer's optimal task offloading strategy and the seller's optimal quotation strategy satisfy the Stackelberg equilibrium solution, the client terminal offloads tasks to the agent terminal according to the optimal task offloading strategy.
[0071] This embodiment illustrates the solution of the present invention from four aspects: system model, problem description, dynamic distributed unloading solution based on game theory, simulation results and analysis.
[0072] 1. System Model
[0073] Consider a mobile Ad Hoc cloud network consisting of a group of nearby terminal devices with EH functions. Each terminal device can be a client terminal or a proxy terminal. When there is a computing task, it can be a client terminal, and when it is idle, it can be a proxy terminal. Assuming that each client terminal has a computing-intensive task, the system model is as follows: Figure 2 As shown, it includes M client terminals (Client, and N proxy terminals Idle or excess computing resources can be shared. i The computational tasks can be processed locally or offloaded to A j Collaborative computing. Where j = 0 means that the task is processed locally. Definition C i Task offloading decision Represents C i Offload the task to the jth agent A at time slot t j ,otherwise, Assuming that time can be slotted, define the unit time slot length as τ and the time slot index as τ d Represents C i The maximum tolerable delay.
[0074] 1. Computational Task Model
[0075] Assumption C i The task arrival process is subject to the parameter λ i Poisson distribution, and the computing tasks can be divided arbitrarily, defining the tth time slot, C i The number of tasks that have arrived, The task queue is backlogged and meets is the maximum number of tasks that arrive, C i The queue characteristics are Indicates that, L i Represents C i The unit processing capacity, Represents C i The total amount of tasks processed in time slot t, Indicates uninstallation to A j The amount of tasks, Indicates the amount of tasks processed locally and satisfies is the maximum amount of tasks that can be processed. A j CPU processing frequency, and meet and Respectively represent the maximum and minimum CPU processing frequency, Represents C i The CPU processing frequency. The task queue backlog in the t+1 time slot is
[0076] 2. Task Offloading Model
[0077] The task offloading process mainly includes the task upload of the client terminal, the collaborative calculation of the offloaded task by the proxy terminal, and the return of the calculation result. The amount of data when the result is returned is very small, and the delay and energy consumption generated can be ignored. For simplicity, only the energy consumption generated by processing the calculation task is considered in the local calculation. Among them, k i is the effective energy cost coefficient associated with the chip architecture.
[0078] Assume that the wireless channel during task uploading is an additive Gaussian white noise channel, and the transmission power is And meet According to Shannon's formula, C i Offload tasks to A j The task transfer rate is in, is the channel bandwidth, is the channel gain, C i With A j The distance between them, k is the fading factor, σ ij is the average noise power on the channel.
[0079] Time slot C i Offload the task to A j The communication energy consumption is The transmission delay is 1{·} is an indicator function. When · is true, 1{·}=1, otherwise it is 0. j When co-processing tasks, it consumes its own computing resources and battery energy. j The computing energy consumption when processing computing tasks is Among them, κ j is the effective energy cost coefficient associated with the chip architecture.
[0080] 3. Energy harvesting model
[0081] Assuming that each mobile terminal device with EH function can obtain renewable energy from the environment for battery power supply, the EH process is modeled as a continuous energy packet arrival process, g = i represents the client terminal, g = j represents the agent terminal, and represents the energy collected in the tth time slot, satisfying And they are independent and identically distributed in different time slots. Due to the randomness and discontinuity of renewable energy collection, only part of the collected energy will be stored in the battery. Therefore, the energy actually collected by the terminal device is And meet Available for local and offloaded computation starting from the next time slot.
[0082] use and Represents the set of EH equipment energy queues of the client terminal and the proxy terminal respectively, where is the energy queue backlog of the g-th EH device at the beginning of time slot t. Usually, C i Only consider the energy consumption of local computing and transmission process
[0083] A j Only consider computing energy consumption To prevent the battery from over-discharging, the battery discharge constraints should be met Among them, E max and E min In addition, in order to ensure the battery life of the mobile terminal, the battery power at the beginning of time slot t must be greater than the energy consumption required by the mobile terminal.
[0084] Therefore, C i The energy queue backlog at time slot t+1 is A j The energy queue backlog at time slot t+1 is
[0085] 2. Problem Description
[0086] In the tth time slot, the communication cost model is defined as The energy cost model is in is the unit communication cost, and local computing does not generate communication energy consumption, that is, η ij It represents the unit energy cost of the agent processing task. Definition C i The benefit of offloading the task is in, ξ i is a task offloading benefit weight parameter greater than zero. In the mobile Ad Hoc cloud, the terminal device offloading decision is subject to the constraints of task queue stability, energy queue stability and task offloading time. The present invention proposes a long-term benefit maximization problem in the sense of time average.
[0087]
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094] Among them, the constraints represent C i The amount of task offloading does not exceed the backlog of its task queue, which is the queue stability constraint.
[0095] 3. Dynamic Distributed Offloading Solution Based on Game Theory
[0096] In a mobile Ad Hoc cloud with energy collection function, the terminal device is affected by factors such as task queue backlog, computing resources and battery energy, and it is difficult to collect the status information of all mobile devices. In addition, the intermittent and discontinuous nature of task arrival and energy collection makes it difficult for the mobile terminal to predict the system state, making the unloading decision more complicated. The traditional centralized solution is difficult to solve this problem. Therefore, the present invention models the unloading decision and price strategy of the terminal device through Lyapunov optimization theory and game theory, takes the proxy terminal as the seller, and provides different computing and storage resources to the client terminal through dynamic resource quotation; the client terminal, as the buyer, purchases resources from the proxy terminal according to its own computing task requirements, thereby optimizing the system revenue.
[0097] 1. Analysis of the buying and selling game model
[0098] Since battery energy is time-dependent, the unloading decisions of terminal devices in different time slots are coupled. The perturbation weighting method is an effective way to solve the above problems.
[16] In order to eliminate the coupling effect, the disturbance parameters and virtual energy queues of the terminal devices are first defined.
[0099] Definition 1: Disturbance parameter θ of the EH device g is a bounded constant. in, represents the maximum energy consumption of local computing, represents the maximum transmission energy consumption, represents the maximum energy consumption of the agent calculation. V is a control parameter and satisfies 0 <V<+∞。
[0100] Definition 2: The virtual energy queue is defined as Represents the actual battery energy that can be consumed by the mobile terminal device. By adjusting the disturbance parameter θ g and control parameter V, so that Stable at the disturbance parameter θ g nearby.
[0101] 1) Buyer game model analysis
[0102] Define the tth time slot C i To A j The unit payment cost for purchasing computing resources is C i The cost paid is When tasks are processed locally, C i The cost of C mainly includes the fee paid to the agent and the communication cost of offloading tasks to the agent. Therefore, the tth time slot C i The optimization goal is
[0103]
[0104]
[0105]
[0106]
[0107]
[0108]
[0109]
[0110] In order to balance the relationship between the client terminal revenue and the queue backlog, the Lyapunov function is introduced to model the queue backlog of each client terminal. The Lyapunov function is the C i Non-negative scalar representation of task queues and energy queues Among them, L[Θ i (t)]≥0.
[0111] Define the change of Lyapunov function between two time slots as Lyapunov drift: Represents the queue backlog growth from time slot t to time slot t+1.
[0112] By minimizing Δ[Θ i (t)] to ensure L[Θ i (t)] is stable. i(t)] is bounded by express. in, And Φ≥0.
[0113] Lyapunov drift plus penalty is expressed as
[0114]
[0115] The goal of optimizing the buyer's return is to minimize the Lyapunov drift plus the penalty function, which can be expressed as the P2 problem
[0116]
[0117]
[0118]
[0119]
[0120]
[0121] 2) Analysis of the seller game model
[0122] For the proxy terminal, the benefit obtained by providing computing resources to the client terminal in time slot t is The agent maximizes its own benefits through optimal pricing, A j Considering only the energy cost of executing the computing task, the tth time slot A j The profit maximization problem is
[0123]
[0124]
[0125] Similarly, the Lyapunov drift plus penalty function of the proxy terminal is
[0126]
[0127] in, And Γ≥0.
[0128] The seller's optimization problem is expressed as the P3 problem
[0129]
[0130]
[0131]
[0132]
[0133] 2. Analysis of buying and selling game strategies
[0134] 1) Buyer strategy analysis
[0135] The buyer's optimization problem can be divided into EH optimization and task offloading strategy optimization. Since the two variables are independent of each other, the P2 problem can be transformed into two sub-problems Q1 and Q2.
[0136] a) Solving the optimal value of energy harvesting
[0137]
[0138] when hour, when hour,
[0139] b) Task offloading optimization strategy
[0140] After decoupling the energy harvesting optimization problem, the task offloading optimization can be expressed as
[0141]
[0142]
[0143]
[0144]
[0145]
[0146] In order to maximize its own interests, the client terminal controls the queue backlog Θ according to the control parameter V. i (t) and the seller’s quote and other status information to determine the purchase strategy. When the computing task is processed locally, hour, therefore About The convex function, and because the constraint condition is an affine function, the optimal local calculation frequency of the t-th time slot is solved by using the Lagrange multiplier method and KKT conditions:
[0147]
[0148] in, when hour, is a The monotonically increasing function of
[0149] Each client terminal has different battery energy, own resources, and computing task types. The differences in computing resources, geographical locations, and battery power between proxy terminals will lead to differences in proxy quotations. When computing tasks are offloaded to proxies, battery discharge constraints and seller quotations will affect the client terminal's offloading decision. Therefore, the client terminal will select a reasonable proxy and offload appropriate tasks at the beginning of each time slot. The maximum and minimum offloaded task amounts can be obtained as and in, when A j The unit resource quotation satisfies When As the amount of unloading tasks Therefore, when and The client will offload the task to the agent for execution. right Find the second-order partial derivative Using the Lagrange multiplier method and KKT conditions, the optimal unloading task allocation for the tth time slot is obtained as
[0150]
[0151] in,
[0152] 2) Sell-side strategy analysis
[0153] Unit resource quotation of agent terminal The higher the price, the higher the agent's profit. However, if the client terminal needs to pay too high a fee, it will reduce the willingness to buy, which will reduce the agent's profit. Therefore, the agent has an optimal offer to balance the buyer's and seller's profits. The P3 problem can be divided into the EH optimization problem and the resource quotation optimization problem Q3 and Q4.
[0154] a) Solving the optimal value of energy harvesting
[0155]
[0156] when hour, when hour,
[0157] b) Resource quotation optimization strategy
[0158] After decoupling the energy harvesting optimization problem, the resource bidding optimization can be expressed as
[0159]
[0160]
[0161]
[0162]
[0163] A j The return should be greater than zero, so when When the price is is the minimum value of the quotation, that is
[0164] when When:
[0165]
[0166] therefore, About The convex function of , and the constraint condition is an affine function, the optimal bid for the t-th time slot obtained by the Lagrange multiplier method and KKT conditions is
[0167]
[0168] 3. Stackelberg equilibrium analysis
[0169] According to the previous analysis, in order to maximize its own benefits, the client terminal will make an offloading decision based on the agent's attributes and channel resources, and select a suitable agent to coordinate the offloading task; and the agent will decide the optimal resource pricing based on the relationship between the client terminal's task volume and its own benefits. Next, we prove the optimal solution It is the SE equilibrium solution.
[0170] Definition 3: When the quote of the agent terminal At a certain time,
[0171]
[0172] When the client terminal unloads the task At a certain time,
[0173]
[0174] like is a SE equilibrium solution, then This can be proved by the following three lemmas.
[0175] Lemma 1: When the quote of the agent terminal At a certain time, the customer terminal's income exist Get the maximum value when .
[0176] Proof: Due to so About is a convex function, so the revenue of the client terminal exist According to Definition 3, It is the SE equilibrium solution Proof
[0177] Lemma 2: When the client terminal offloads the task At a certain time, the profit of the agent terminal exist Get the maximum value when .
[0178] Proof: When the agent's quotation hour, so About is a convex function, so the profit of the agent terminal is exist According to Definition 3, It is the SE equilibrium solution
[0179] Lemma 3: Optimal offloading tasks for client terminals With the quote of the agent terminal decreases with the increase of .
[0180] Proof: Optimal Value right Find the first-order partial derivative
[0181]
[0182] About is a monotonically decreasing function. When the agent's quotation increases, the computing tasks assigned to the client terminal will decrease, resulting in a decrease in the agent's income. Therefore, Get the best offer.
[0183] therefore, is the SE equilibrium solution, that is
[0184] 4. Simulation Results and Analysis
[0185] The present invention simulates and analyzes dynamic resource quotation, battery energy, queue backlog, and system revenue, etc. The method of the present invention is simulated and compared with a local execution scheme, a centralized scheme, and a greedy algorithm to verify the effectiveness of the method proposed by the present invention.
[0186] 1. Simulation scene settings
[0187] The main simulation parameters are set as follows: utility benefit factor ξ i =2, the minimum CPU cycle frequency f of the client terminal i min =100MHz, maximum CPU cycle frequency f i max =2000MHz; the minimum CPU cycle frequency f of the proxy terminal j min =150MHz, maximum CPU cycle frequency f i max =6000MHz. Control parameter V∈(0,600], unit communication cost is Unit energy cost η ij ∈[1×10 -7 ,8×10 -7 ], task processing density L∈[800,1500]cycle / Mbit, energy harvesting power P i h ∈[5,30]mw, The unit time slot length is τ = 1s, and the price update step is 5×10 -7 .
[0188] Figure 3 and Figure 4 The game process of mobile terminal CPU computing frequency and dynamic price is described. Assume that the system has 1 client terminal and 4 agent terminals, and the unit communication cost and energy consumption cost are ρ1 = 0.06 and η1 = 1×10 -7 , V j1 =100, ρ2=0.12, η2=2×10 -7 , V j2 =150, ρ3=0.18, η3=4=10 -7 , V j3 =200, ρ4=0.24, η4=8×10 -7 , V j4 =250.
[0189] Depend on Figure 3 It can be seen that the proxy bid increases with the number of iterations until it converges to the optimal bid. Figure 4 It can be seen that the initial cost price of the proxy is low, and the CPU frequency purchased by the client terminal increases first with the increase in the number of iterations. As the proxy quotation increases, the client's willingness to purchase the CPU frequency decreases, and the purchased CPU frequency decreases with the increase in the number of iterations. Finally, when the proxy quotation tends to be stable, the purchased CPU frequency also tends to be stable. In addition, the higher the unit communication cost and unit computing cost of the proxy terminal, the higher the dynamic resource quotation, and the less CPU frequency the client terminal will purchase.
[0190] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A distributed offloading method based on energy harvesting in a mobile Ad Hoc cloud, characterized in that: The following steps are involved: Considering a mobile Ad Hoc cloud network consisting of a group of nearby terminal devices with EH functions, we establish a computing task model, a task offloading model, and an energy harvesting model respectively; The client terminal is regarded as the buyer, and purchases resources from the proxy terminal according to its own computing task requirements. The Lyapunov optimization theory is used to establish the buyer's profit maximization problem based on the computing task model, task offloading model and energy collection model. The buyer's profit maximization problem based on the computing task model, task offloading model and energy collection model is expressed as: Constraints: in, V represents the buyer's revenue maximization problem in the tth time slot; i represents the control parameters of the i-th client terminal; represents the total revenue of the i-th client terminal in time slot t; Indicates that the offloading benefit is related to the task queue; For the i-th client terminal C i The number of tasks arriving in time slot t, Represents the i-th client terminal C i The total amount of tasks processed in time slot t; is the virtual energy queue of the EH device of the i-th client terminal, expressed as θ i is the disturbance parameter of the EH device, is the energy queue backlog of the EH device carried by the i-th customer terminal at the beginning of time slot t; is the energy actually collected by the EH device of the i-th customer terminal in time slot t; E min Indicates the minimum discharge energy of the battery; represents the total energy consumption of the i-th client terminal in time slot t; E max Indicates the maximum discharge energy of the battery; represents the jth proxy terminal A in the tth time slot j The computing energy consumption generated when assisting the i-th client terminal in computing tasks; represents the amount of tasks offloaded from the i-th client terminal to the j-th proxy terminal in the t-th time slot; It indicates the backlog of the task queue of the i-th client terminal in the t-th time slot; represents the average task queue backlog of the ith client terminal in the tth time slot; T represents the system running time; Expressing hope; The proxy terminal is regarded as the seller, and different computing and storage resources are provided to the client terminal through dynamic resource quotation. The seller's profit maximization problem is established based on the computing task model, task offloading model and energy collection model. The seller's profit maximization problem based on the computing task model, task offloading model and energy collection model is expressed as: Objective function: in, represents the seller’s revenue maximization problem; V represents the control parameter; represents the total revenue of the jth agent terminal in the tth time slot; is the virtual energy queue of the jth proxy terminal in the tth time slot, expressed as θ j is the disturbance parameter of the EH device, is the energy queue backlog of the EH device carried by the jth proxy terminal at the beginning of time slot t; represents the energy actually collected by the EH device of the jth proxy terminal in time slot t; The jth proxy terminal A in the tth time slot j The computing energy consumption when processing the computing task from the i-th client terminal; is the i-th client terminal C in the t-th time slot i To the jth proxy terminal A j The unit payment cost for purchasing computing resources; The seller's revenue maximization problem based on the computing task model, task offloading model and energy collection model is decomposed into solving the optimal solution of energy collection and task offloading optimization problem, where the optimal solution of energy collection is expressed as: when hour, when hour, After decoupling the energy harvesting optimization problem, the task offloading optimization problem is expressed as; Constraints: in, represents the optimal solution for energy harvesting; γ max It represents the maximum value of energy collected by the EH device in the tth time slot; According to the task backlog of the client terminal, the battery energy level and the quote of the agent terminal, the optimal task offloading strategy for the buyer to the selected agent terminal and the optimal quote strategy for the seller are calculated in each time slot using the Lagrange multiplier method and the KKT condition. The optimal quote for the tth time slot obtained by the Lagrange multiplier method and the KKT condition is: in, For the i-th client terminal C i To the jth proxy terminal A j The optimal unit payment cost for purchasing computing resources; For the i-th client terminal C i Optimal offloading task volume; is the unit communication cost of offloading the task from the i-th client terminal to the j-th proxy terminal in the t-th time slot; is the transmission power of the i-th client terminal to offload the task to the j-th proxy terminal in the t-th time slot; is the task transmission rate of the i-th client terminal unloading the task to the j-th proxy terminal in the t-th time slot; η ij represents the unit energy consumption cost of the agent terminal processing task; i is the task offloading benefit weight parameter; κ j is the effective energy cost coefficient of the chip; τ is the unit time slot length. If the buyer's optimal task offloading strategy and the seller's optimal quotation strategy satisfy the Stackelberg equilibrium solution, the client terminal offloads tasks to the agent terminal according to the optimal task offloading strategy.
2. A distributed unloading method based on energy harvesting in a mobile Ad Hoc cloud according to claim 1, characterized in that: The buyer's revenue maximization problem based on the computing task model, task offloading model and energy harvesting model is decomposed into solving the optimal solution of energy harvesting and the task offloading optimization problem, where the optimal solution of energy harvesting is expressed as: when hour, when hour, After decoupling the energy harvesting optimization problem, the task offloading optimization problem is expressed as: Constraints: in, represents the optimal solution for energy harvesting; γ max It represents the maximum value of energy collected by the EH device in the tth time slot.
3. A distributed unloading method based on energy harvesting in a mobile Ad Hoc cloud according to claim 2, characterized in that: When computing tasks are processed locally and When , the optimal local calculation frequency of the tth time slot is solved by using the Lagrange multiplier method and KKT conditions: in, κ i is the effective energy cost coefficient of the i-th client terminal chip; L i represents the unit processing capacity of the i-th client terminal; ξ i Offload the benefit weight parameter for the task.
4. A distributed unloading method based on energy harvesting in a mobile Ad Hoc cloud according to claim 2, characterized in that: When computing tasks are processed locally and When , the optimal local calculation frequency is: in, Indicates that when the computing task is processed locally and Optimal local computation frequency when Indicates the maximum CPU processing frequency of the i-th customer; represents the maximum discharge energy of the battery of the i-th customer; represents the optimal task amount of the i-th client terminal to be unloaded to the j-th proxy terminal in the t-th time slot; κ i is the effective energy cost coefficient of the i-th client terminal chip.
5. The distributed unloading method based on energy harvesting in a mobile Ad Hoc cloud according to claim 3, characterized in that: At the beginning of each time slot, the client terminal chooses to offload part of the tasks to the proxy terminal, and the rest of the tasks are offloaded locally. The optimal amount of tasks that the i-th client terminal offloads to the j-th proxy terminal in the t-th time slot is expressed as: Among them, ξ i Offload the benefit weight parameter for the task; is the unit communication cost of offloading the task from the i-th client terminal to the j-th proxy terminal in time slot t; is the transmission power of the i-th client terminal to offload the task to the j-th proxy terminal in time slot t; is the task transmission rate when the i-th client terminal offloads the task to the j-th proxy terminal in time slot t.
