Task offloading and resource allocation method based on mobile edge computing
The multi-agent deep reinforcement learning algorithm is used to optimize task offloading and resource allocation in the mobile edge computing system, solving the problems of large task processing delays and improper resource allocation in dynamic network environments, and achieving low latency and high cache hit rate resources. Allocate on demand.
Patent Information
- Application Number
- PCT/CN2023/100968
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2023-06-19
- Publication Date
- 2024-08-29
AI Technical Summary
In a dynamically changing network environment, existing technologies are difficult to design dynamic and flexible distributed computing offloading and resource allocation strategies, resulting in long task processing delays, improper resource allocation, and inability to meet the needs of high energy consumption and high complexity computing tasks.
Using the multi-agent deep reinforcement learning algorithm (DSRA), by constructing the mobile edge computing system model, service cache model and service assignment model, combined with the LSTM network, it is abstracted into a partially observable Markov decision-making process to optimize task offloading and resource allocation. , realizing distributed intelligent service orchestration and computing network resource allocation.
It achieves minimizing task processing delays in decentralized MEC scenarios, improving cache hit rates, realizing resource allocation on demand, adapting to dynamic changes in the network environment, and meeting high-performance computing needs.
Smart Images

Figure CN2023100968_29082024_PF_FP_ABST
Abstract
Description
A task offloading and resource allocation method based on mobile edge computing
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 20, 2023, with application number 202310138344.8 and invention name “A task offloading and resource allocation method based on mobile edge computing”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present invention belongs to the technical field of wireless communications, and in particular relates to a task offloading and resource allocation method based on mobile edge computing. Background Art
[0003] With the rapid development of the Internet of Things and the explosive growth of smart mobile devices (MDs), new applications characterized by big data and intelligence are constantly emerging (such as online games, virtual reality (VR), augmented reality (AR), telemedicine, etc.), and these application services are usually computationally intensive and latency-sensitive. However, due to the limitations of mobile device size, computing power, storage capacity, and battery power, MDs often suffer from insufficient computing power, high latency, and low battery life when processing high-energy consumption and high-complexity computing tasks. Mobile Edge Computing (MEC) has been proposed as an advanced computing method to achieve the vision of ultra-large capacity, ultra-low latency, ultra-high bandwidth, and low-energy data processing at the edge of the network. MEC sinks computing power, storage, and other resources from the cloud center to the edge of the network, and drives users to offload computing tasks to the edge of the network to enjoy a high-performance computing service experience.
[0004] Deep reinforcement learning (DRL) combines the perception capabilities of deep learning with the decision-making capabilities of reinforcement learning, effectively addressing various decision-making problems in MEC systems. For example, a prior art resource management method for deep reinforcement learning in multi-access edge computing for vehicles studies the joint allocation of spectrum, computing, and storage resources in MEC vehicle networks. Using DDPG and hierarchical learning, it achieves rapid resource allocation, meeting the quality of service requirements of vehicle applications. A dynamic computation offloading and resource allocation method based on deep reinforcement learning in a cache-assisted mobile edge computing system studies the dynamic caching, computation offloading, and resource allocation problems in cache-assisted MEC systems and proposes an intelligent dynamic scheduling strategy based on DRL. However, all of the above methods use single-agent deep reinforcement learning algorithms. Single-agent deep reinforcement learning algorithms require a stable environment, while real-world network environments are often dynamically changing and unstable, which is not conducive to convergence and also prevents the direct use of techniques such as experience replay.
[0005] Therefore, in the future of edge networks, where network structures are becoming increasingly dense and heterogeneous, and resource deployment is decentralized, designing and implementing more dynamic and flexible distributed computing offloading and resource allocation strategies is of great significance. Furthermore, given the impact of network environment characteristics such as partial observability and the time dependency of service requests on network service orchestration and computing network resource allocation, the issues of task offloading and multi-dimensional resource allocation in decentralized MEC scenarios are of great research value.
[0006] Summary of the Invention
[0007] In view of the shortcomings of the existing technology, the present invention proposes a task offloading and resource allocation method based on mobile edge computing, which includes:
[0008] S1: Build a mobile edge computing system model;
[0009] S2: Construct a service cache model and a service assignment model based on the mobile edge computing system model;
[0010] S3: Based on the service cache model and service assignment model, establish task offloading and resource allocation constraints;
[0011] S4: Based on the constraints of task offloading and resource allocation, a joint optimization problem of task offloading and resource allocation is constructed with the goal of minimizing task processing delay;
[0012] S5: Use the DSRA algorithm to solve the joint optimization problem of task offloading and resource allocation, and obtain the task offloading and resource allocation strategies.
[0013] Preferably, step S1 specifically includes: constructing a mobile edge computing system model, including M base stations BS, and the base station set is represented as Each base station is equipped with a MEC server; for the base station BS m There is N below m User devices MD, the user set is represented as The system operates in discrete time slots, defining the time set T = {0, 1, 2, ...}; for the base station BS m Next user The computationally intensive task generated at time slot t(t∈T) is defined as in, Indicates the data size of the task, Indicates the maximum tolerable delay of the task, Indicates the number of CPU cycles required to process a unit bit task. Indicates the service type required for processing tasks; base station BS m All tasks generated by users are represented as
[0014] Preferably, constructing the service cache model in step S2 specifically includes: defining a service type set as Let a k,m (t)∈{0,1} represents the BS at time slot t m The cache indicator function of service k in a k,m (t)=1 means that at BS m Cache service k, otherwise BS m Service k will not be cached; base station BS m exist t The service cache strategy set of the time slot is represented as a m (t) = {a 1,m (t),…,a k,m (t),…,a K,m (t)}.
[0015] Preferably, the construction of the service assignment model in step S2 specifically includes: for any user There are four task processing modes, each with different processing delays; the four task processing modes are: local computing, offloading to the associated BS m For processing, forward the offloaded tasks to other BSs for processing through associated base stations, and offload to the cloud center for processing.
[0016] Furthermore, the user's task processing delay is expressed as:
[0017] in, Indicates the base station BS at time slot t m Users under The task processing delay, Indicates the task processing delay when the user performs local computing. Indicates the transmission delay of the task offloaded to the associated base station, represents the delay of the associated base station processing task, T tr,m (t) represents the time delay for the task to be forwarded by the associated base station, Indicates the time delay of other base stations processing tasks, T m,c (t) represents the transmission delay of the task forwarded to the cloud center through the associated base station, represents the local task processing strategy, Indicates the strategy of offloading tasks to the associated base station for processing. Indicates the strategy of offloading tasks to other base stations for processing. Indicates the strategy for offloading tasks to the cloud center for processing.
[0018] Preferably, the task offloading and resource allocation joint optimization problem is expressed as:
[0019] Where T represents the system operation time, M represents the number of base stations, Indicates the base station BS at time slot t m Users under task processing delay, a(t) represents the base station service cache strategy, b(t) represents the task offloading strategy, α(t) represents the spectrum resource allocation strategy, β(t) represents the base station computing resource allocation strategy, N m Indicates the number of user equipment under the mth base station, Indicates the base station BS at time slot t m Users under The maximum tolerable delay of the task is Represents a user Local task processing strategy, Represents a user The strategy of offloading the task to the associated base station for processing, Represents a user The strategy of offloading the task to other base stations for processing, Represents a user The strategy of offloading tasks to the cloud center for processing, a k,m(t) represents the mth base station BS at time slot t m Regarding the cache indicator function of service k, K represents the number of service types, l k represents the storage space occupied by the service k that processes the task, R m Indicates the storage space size of the mth MEC server, Indicates BS m In time slot t, The spectrum resource allocation coefficient, Indicates BS m In time slot t, The CPU frequency distribution coefficient.
[0020] Preferably, the process of using the DSRA algorithm to solve the joint optimization problem of task offloading and resource allocation includes: abstracting the joint optimization problem of task offloading and resource allocation into a partially observable Markov decision process, with the base station acting as an intelligent agent, and constructing the corresponding observation space, action space and reward function; each intelligent agent has an actor network and a critic network embedded in the LSTM network; the actor network generates corresponding actions according to the current local observation state of a single intelligent agent and updates the reward function according to the action, and enters the next state; the critic network estimates the strategies of other intelligent agents based on the global observation state and action; generates experience information based on the current state, next state, action and reward value; samples multiple pieces of experience information to train the actor network and critic network, updates the network parameters, and obtains the trained actor network and critic network; obtains the task offloading and resource allocation strategy based on the actor network training results.
[0021] Furthermore, the reward function is expressed as:
[0022] Among them, r m (t) represents the base station BS at time slot t m The reward value, T Indicates the system running time, M Indicates the number of base stations, N m Indicates the number of user equipment under the mth base station, represents the base station BS at time slot t m Users under The task processing delay, Y m (t) represents the reward when the task processing delay satisfies the delay constraint, U m (t) represents the reward for caching without exceeding the storage capacity limit of the edge server.
[0023] The beneficial effects of this invention are as follows: This invention addresses the service orchestration and network resource allocation issues in decentralized MEC scenarios, with the goal of minimizing task processing latency. It proposes a task offloading and resource allocation method based on mobile edge computing. Taking into account the temporal dependencies of user service requests and the coupling relationship between service requests and service caches, an LSTM network is introduced to extract historical status information about service requests, enabling users to make better decisions by learning from this historical information. Simulation experiments have shown that this method can achieve lower latency and higher cache hit rates, enabling on-demand resource allocation. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] FIG1 is a flow chart of a method for task offloading and resource allocation based on mobile edge computing in the present invention;
[0025] FIG2 is a schematic diagram of a mobile edge computing system model in the present invention;
[0026] FIG3 is a block diagram of the DSRA algorithm of the present invention;
[0027] FIG4 is a diagram showing the average delay of the DSRA algorithm and the comparison algorithm in the present invention and the change of the training number of iterations;
[0028] FIG5 is a diagram showing how the average cache hit rate of the DSRA algorithm of the present invention and the comparison algorithm changes with the number of training iterations. DETAILED DESCRIPTION
[0029] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts are within the scope of protection of the present invention.
[0030] The present invention proposes a task offloading and resource allocation method based on mobile edge computing, as shown in FIG1 , the method includes the following contents:
[0031] S1: Build a mobile edge computing system model.
[0032] As shown in Figure 2, the present invention considers a typical MEC system, which includes M base stations (BSs) and defines a base station set: Each BS is equipped with a MEC server with certain computing and storage resources; at the mth base station BS m There is N below m There are user devices MD, and the user set under the m-th base station is defined as The system operates in discrete time slots, defining the time set For BS m The i-th user setting under Time slot t The resulting computationally intensive task is defined as in, Indicates the data size of the task, in bits; Indicates the maximum tolerable delay of the task, Indicates the number of CPU cycles required to process a unit bit task; Indicates the type of service required to process the task. m All tasks generated by users are represented as
[0033] S2: Construct a service cache model and a service assignment model based on the mobile edge computing system model.
[0034] Building a service cache model specifically includes:
[0035] In this invention, services refer to specific programs or data required to run various types of tasks (such as games, virtual / augmented reality). In any time slot, only the MEC server that has cached the corresponding service can provide computing services for the MD's offloaded tasks. Assuming that there are a total of K different types of services in the network, the service type set is defined as Let a k,m (t)∈{0,1} represents the time slot t Time BS m Regarding the cache indicator function of service k, a k,m (t)=1 means that at BS m Cache service k, otherwise BS m Service k will not be cached; base station BS m The service cache strategy set at time slot t is represented as a m (t) = {a 1,m (t),…,a k,m (t),…,a K,m (t)}.
[0036] Building a service assignment model specifically includes:
[0037] If BS m Cached processing Type of service required for the task Then the task can be performed by BS m Otherwise, the task can only be processed locally on the device or offloaded to other servers. There are four task processing modes, each with different processing delays; the four task processing modes are: 1) local computing; 2) offloading to the associated BS m 3) forward the offloaded task to other BSs for processing through the associated base station; 4) offload to the cloud center for processing. Indicates that at time slot t, The task offloading strategy. express Local task processing strategy, Indicates that the task can be processed locally. Similarly, Indicates the strategy of offloading tasks to the associated base station for processing. represents the strategy of offloading tasks to neighboring base stations for processing, It represents the strategy of offloading tasks to the cloud center for processing; time slot t base station BS m The task offloading policy for all users is
[0038] 1) Tasks are computed locally
[0039] When tasks are processed locally, i.e. make express The local CPU frequency of the task can be expressed as Indicates the data size of the task, in bits. Indicates the number of CPU cycles required to process a unit bit task.
[0040] 2) Tasks are offloaded to associated base stations for processing
[0041] like The associated base station BS m If service k is cached, then The task can be offloaded to the BS through the wireless link m Processing, that is According to Shannon's formula, to BS m The uplink transmission rate is Among them, B m BS m bandwidth, BS m In time slot t, The spectrum resource allocation coefficient satisfies BS m Assigned to bandwidth, then BSm The spectrum resource allocation strategy can be expressed as express The transmission power, express With BS m The channel gain between 2 (t) represents the time slot t The transmission delay of the task is
[0042] BS m The processing time of the task is Among them, f m Indicates BS m CPU frequency, BS m In time slot t, The CPU frequency allocation coefficient satisfies Indicates BS m Assigned to CPU frequency, then BS m The computing resource allocation strategy can be expressed as The processing result of the task is usually much smaller than the uploaded data, and the present invention ignores the delay of returning the result.
[0043] From the above analysis, we can see that The task is offloaded to the associated base station BS m The processing delay is
[0044] 3) Tasks are transferred to nearby base stations for processing
[0045] like The associated base station BS m There is no cache service k on the network, but its nearby base station BS n (n∈{1,2,…,M} and n≠m) caches service k, then The task can be performed by the associated base station BS m Forward and migrate to other nearby base stations BS n Processing, that is At time slot t, the transmission rate of tasks forwarded from the associated base station to nearby base stations is Among them, ω m is the bandwidth of base station m when forwarding tasks, P m is the forwarding power of base station m, G m,n is the channel gain between base station m and base station n, then the time for the task to be forwarded by the associated base station is:
[0046] From the above analysis, we can see that BS n The processing time of the task is Therefore, the task is forwarded to BS n The computational offloading delay of the processing is
[0047] 4) Tasks are offloaded to the cloud center for processing
[0048] like The associated base station BS m If there is no cached service to handle the task, the task can also be handled by the associated base station BS m Forwarded to the cloud center for processing, i.e. The cloud center has abundant computing resources and storage resources, and the present invention ignores the task processing time and result transmission time of the cloud center.
[0049] The task is to associate the base station BS m The computation offloading time forwarded to the cloud center is Among them, r m,c (t) is BS m The transmission rate of forwarding tasks to the cloud center. The delay of offloading tasks to the cloud center for processing is
[0050] In summary, in time slot t, the user's task processing delay is expressed as:
[0051] in, Indicates the base station BS at time slot t m Users under The task processing delay, Indicates the base station BS at time slot t m Users under Task processing latency when performing local computations, Indicates the base station BS at time slot t m Users under The transmission delay of offloading the task to the associated base station, represents the delay of the associated base station processing task, T tr,m (t) represents the time delay for the task to be forwarded by the associated base station, Indicates the time delay of other base stations processing tasks, T m,c (t) represents the base station BS at time slot t m Users under The transmission delay of the task forwarded to the cloud center through the associated base station.
[0052] S3: Based on the service cache model and service assignment model, establish task offloading and resource allocation constraints.
[0053] The storage space of the MEC server is limited, and the storage space occupied by the cached services cannot exceed the storage capacity of the MEC server. Define the size of the storage space of the mth MEC server MECm as R m , then where l k Indicates the size of the storage space occupied by the service that processes the task.
[0054] At time slot t,
[0055] The task processing delay cannot exceed the maximum tolerable delay:
[0056] The total amount of allocated spectrum resources should not exceed the base station bandwidth:
[0057] The total amount of allocated computing resources should not be greater than the base station computing resources:
[0058] S4: Based on the task offloading and resource allocation constraints, a joint optimization problem of task offloading and resource allocation is constructed with the goal of minimizing task processing delay.
[0059] Due to the limitations of server resources (such as computing, spectrum, and storage space), task offloading and resource allocation are coupled. In view of this, the present invention aims to minimize the long-term processing latency of tasks and establishes a joint optimization problem for service caching and computing network resource allocation, which can be expressed as:
[0060] Where T represents the system operation time, M represents the number of base stations, represents the user in time slot t The task processing delay is a(t)={a1(t),…,a M (t)} represents the base station service cache strategy, b(t)={b1(t),…,b M (t)} represents the task offloading strategy, α(t)={α1(t),…,α M (t)} represents the spectrum resource allocation strategy, β(t)={β1(t),…,β M (t)} represents the base station computing resource allocation strategy, N m Indicates the number of user equipment under the mth base station, Indicates the base station BS at time slot t m Users under The maximum tolerable delay of the task is Indicates the base station BS at time slot t m Users under Local task processing strategy, Represents a user The strategy of offloading the task to the associated base station for processing, Represents a user The strategy of offloading the task to other base stations for processing, Represents a user The strategy of offloading tasks to the cloud center for processing, a k,m (t) represents the mth base station BS at time slot t m Regarding the cache indicator function of service k, K represents the number of service types, l k represents the storage space occupied by the service k that processes the task, R m Indicates the size of the storage space of the mth MEC server, Indicates BS m In time slot t, The spectrum resource allocation coefficient, Indicates BS m In time slot t, The CPU frequency distribution coefficient.
[0061] S5: Use the DSRA algorithm to solve the joint optimization problem of task offloading and resource allocation, and obtain the task offloading and resource allocation strategies.
[0062] In the edge network environment, the decentralized deployment of computing network resources, the highly dynamic network environment, and the increasingly dense network structure make the centralized management method unable to cope well with the highly dynamic decentralized MEC environment. It is necessary to design a more dynamic and flexible distributed computing offloading and resource allocation strategy. Multi-agent deep reinforcement learning, as a distributed DRL algorithm, can be well applied to problem solving in a decentralized MEC environment. In view of this, the present invention designs a distributed intelligent service orchestration and computing network resource allocation algorithm (Distributed Service Arrangement and Resource Allocation Algorithm, DSRA) based on multi-agent deep reinforcement learning, in which the base station acts as an agent to learn task offloading strategies, service caching strategies, and computing network resource allocation strategies. At the same time, taking into account the time dependency of user service requests and the coupling relationship between service requests and service caches, the LSTM network is used to extract historical status information about service requests. By learning these historical information, the agent can better understand the future environmental status and make better decisions. As shown in Figure 3, it specifically includes the following contents:
[0063] The joint optimization problem of task offloading and resource allocation is abstracted into a partially observable Markov decision process (POMDP), with the base station acting as the intelligent agent, and the corresponding observation space, action space and reward function are constructed; the tuple is defined Describe the above Markov game process, where Represents the global state space, and the environment of time slot t is the global state is the observation space set of the agent, is the global action space set, is the reward set. At time slot t, agent m observes Adopt strategy π m : Select the corresponding action Get corresponding rewards
[0064] 1) Environmental status
[0065] At time slot t, the agent can receive detailed task information from mobile devices within its coverage area, including the task data size, maximum tolerable delay, the number of CPU cycles required to process the task per bit, and the required service type. The environment state can be defined as s(t) = {d1, d2, …, d M ,P1,P2,…,P M,f1,f2,…,f M ,B1,B2,…,B M ,G1,G2,…,G M},in, Indicates BS m All user-generated tasks, f m Indicates BS m CPU frequency, BS m The transmission power set of all users under BS m All users and BS m The channel gain set between time slots t, the environment state observed by agent m The definition is as follows:
[0066] 2) Action Space
[0067] Agent m observes the environment state o m (t) and the current policy π m , select the corresponding action from the action space, time slot t, the action of agent m The definition is as follows:
[0068] a 1,m (t),a 2,m (t),…,a K,m (t)}
[0069] The binary variable a k,m (t), and Relaxation to real-valued variables and a' k,m (t)>0.5 indicates BS m cache service k, otherwise BS m Service k will not be cached. and The task will select the unloading mode corresponding to the maximum value for calculation unloading. According to the definition of action space and a m The value range of each element in (t) shows the action space It is a continuous set.
[0070] 3) Reward Function
[0071] The reward function measures the effect of an agent taking an action in a given state. During the training process, the agent takes an action in the t-1 time slot, and the corresponding reward will be returned to the agent in the t time slot. Based on the reward obtained, the agent will update its strategy to obtain the optimal result. Since the reward causes each agent to reach its optimal strategy, and the strategy directly determines the computing network resource allocation strategy, computing offloading strategy and service caching strategy of the corresponding MEC server, the reward function should be designed according to the original optimization problem. The reward function constructed by the present invention includes three parts: the first part is the reward for the task processing time, and the second part is the reward for the task processing delay to meet the delay constraint, that is, The third part is the reward for caching that does not exceed the storage capacity limit of the edge server, i.e. The optimization goal is to minimize the long-term processing delay of the task and maximize the long-term reward, so the cumulative reward of agent m should be:
[0072] Where H(·) is the Heaviside step function; λ1 and λ2 represent the first and second weight coefficients respectively, and Y m (t) represents the reward when the task processing delay satisfies the delay constraint, U m (t) represents the reward for caching without exceeding the storage capacity limit of the edge server.
[0073] Each base station has an actor network and a critic network embedded in an LSTM network. Both the actor network and the critic network include a current network and a target network. The DSRA algorithm framework consists of an environment and M agents, namely base stations. Each agent has a centralized training phase and a decentralized execution phase. During training, centralized learning is used to train the critic and actor networks. The critic network training requires state information from other agents. During distributed execution, the actor networks only need to know local information. That is, during training, each agent uses the global state and actions to estimate the strategies of other agents and adjusts its local strategies based on the estimated strategies of other agents to achieve global optimization. The Multi-Agent Deep Deterministic Policy Gradient (MADDPG) algorithm effectively handles fully observable environments, while the actual environment state is often partially observable. To address the partial observability of the environment and the temporal dependence of service requests, the present invention incorporates a long short-term memory (LSTM) network into the actor and critic networks. LSTM is a recurrent neural network that can extract historical state information about service requests. By learning this historical information, the intelligent agent can better understand the future state and make better decisions.
[0074] The actor network generates corresponding actions based on the current local observation state of a single agent. Specifically, the actor network obtains the current task offloading and resource allocation strategy based on the local observation state, and generates corresponding actions from the action space based on the task offloading and resource allocation strategy. The agent then enters the next state.
[0075] Update the reward function according to the action; generate experience information based on the current state, next state, action and reward value; sample multiple pieces of experience information to train the actor network and critic network, update the network parameters, and obtain the trained actor network. Specifically: During the training process, let and Represents the historical information of the actor network and the critic network about the business request before and after taking the action, and uses the experience from the experience replay memory D to iteratively update the DSRA algorithm. The experience replay memory D of the agent m contains a set of experience tuples, Among them m (t) represents the observed state of agent m in time slot t, a m (t) represents the time slot t where agent m is based on the current observation o m (t) the action taken, r m (t) indicates that agent m takes action a in time slot t m(t) after the reward, o' m (t+1) represents the state of agent m at time slot t+1, Represents the historical information about business requests in the actor network in time slot t. Represents the historical information of the critic network related to the service request in time slot t, Represents the historical information of business requests in the actor network in time slot t+1. Represents the historical information of the critic network about service requests in time slot t+1.
[0076] In the decentralized execution phase, at time slot t, each agent’s actor network observes the state o according to its local state. m (t), current historical status information and its own strategies Select Action
[0077] During the centralized training phase, each critic network can obtain observations o of other agents. m (t) and action a m (t), then the Q function of agent m can be expressed as
[0078] The Q function evaluates the actions of the actor network from a global perspective and guides the actor network to choose a better action. During training, the critic network updates the network parameters by minimizing the loss function, which is defined as follows:
[0079] in γ is the discount factor. At the same time, the actor network updates the network parameters θ based on the centralized Q function calculated by the critic network and its own observation information, and outputs the action a. The actor network parameters θ are updated by maximizing the policy gradient, that is:
[0080] The parameters of the target network are updated by soft updating, namely:
[0081] After the actor network is trained, the actions taken by the actor network can be used to derive strategies for task offloading, service caching, and resource allocation within a time period T. By performing task offloading and resource allocation based on these strategies, the total processing latency of tasks can be minimized while satisfying various constraints.
[0082] Evaluation of the present invention:
[0083] The present invention is compared with the multi-agent deep deterministic policy gradient algorithm MADDPG (Multi-agent Deep Deterministic Policy Gradient), the single-agent deep deterministic gradient algorithm SADDPG (Single agent Deep Deterministic Policy Gradient) and the LSTM-based single-agent deep deterministic gradient algorithm TADPG. As shown in Figure 4, it can be seen that with the increase in the number of training episodes, the average processing delay of the task is constantly decreasing, and gradually tends to be stable, and finally reaches convergence. The delay of the DSRA algorithm is the smallest, indicating that the DSRA algorithm can make better offloading and computing network resource allocation decisions, thereby obtaining a smaller delay and realizing on-demand resource allocation, which proves the effectiveness of the algorithm. As can be seen from Figure 5, with the increase in episodes, the cache hit rate curve shows an upward trend and eventually reaches convergence, and the cache hit rate of DSRA is the largest, which proves the effectiveness of the algorithm.
[0084] The above embodiments further illustrate the purpose, technical solutions and advantages of the present invention in detail. It should be understood that the above embodiments are only preferred implementation plans of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made to the present invention within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A task offloading and resource allocation method based on mobile edge computing, characterized in that: include: S1: Build a mobile edge computing system model; S2: Construct service cache model and service assignment model based on mobile edge computing system model; S3: Based on the service cache model and service assignment model, establish task offloading and resource allocation constraints; S4: According to the constraints of task offloading and resource allocation, the joint optimization problem of task offloading and resource allocation is constructed with the goal of minimizing task processing delay; S5: The DSRA algorithm is used to solve the joint optimization problem of task offloading and resource allocation, and the task offloading and resource allocation strategies are obtained.
2. According to a method for task offloading and resource allocation based on mobile edge computing according to claim 1, it is characterized in that: Step S1 specifically includes: constructing a mobile edge computing system model, including M base stations BS, and the base station set is represented as Each base station is equipped with a MEC server; for the base station There is N below m User devices MD, the user set is represented as The system operates in discrete time slots, defining the time set T = {0, 1, 2, ...}; for the base station BS m Next user The computationally intensive task generated at time slot t(t∈T) is defined as in, Indicates the data size of the task. represents the maximum tolerable delay of the task, Indicates the number of CPU cycles required to process a unit bit task. Indicates the type of service required for processing tasks; Base station BS m All tasks generated by users are represented as 3. The method for task offloading and resource allocation based on mobile edge computing according to claim 1 is characterized in that: The construction of the service cache model in step S2 specifically includes: defining a service type set as Let a k,m (t)∈{0,1} means that BS m The cache indicator function of service k in a k,m (t) = 1 means that at BS m cache service k, otherwise BS m Service k will not be cached; base station BS m The service cache strategy set at time slot t is represented as a m (t) = {a 1,m (t),…,a k,m (t),…,a K,m (t)}.
4. The method for task offloading and resource allocation based on mobile edge computing according to claim 1, characterized in that: The construction of the service assignment model in step S2 specifically includes: for any user There are four task processing modes, each with different processing delays; the four task processing modes are: local computing, offloading to the associated BS m For processing, forward the offloaded tasks to other BSs for processing through associated base stations, and offload to the cloud center for processing.
5. The method for task offloading and resource allocation based on mobile edge computing according to claim 4 is characterized in that: The user's task processing delay is expressed as: in, Indicates that the base station BS is in time slot t m Users under The task processing delay is Indicates the task processing delay when the user performs local computing. represents the transmission delay of the task offloaded to the associated base station, represents the latency of the associated base station processing task, T tr,m (t) represents the delay of the task being forwarded by the associated base station, represents the delay of other base stations processing tasks, T m,c (t) represents the transmission delay of the task forwarded from the associated base station to the cloud center, represents the local task processing strategy, Indicates the strategy of offloading tasks to the associated base station for processing. It indicates the strategy of offloading tasks to other base stations for processing. Indicates the strategy of offloading tasks to the cloud center for processing.
6. The method for task offloading and resource allocation based on mobile edge computing according to claim 1, characterized in that: The joint optimization problem of task offloading and resource allocation is expressed as: Where T represents the system operation time, M represents the number of base stations, Indicates that the base station BS is in time slot t m Users under task processing delay, a(t) represents the base station service cache strategy, b(t) represents the task offloading strategy, α(t) represents the spectrum resource allocation strategy, β(t) represents the base station computing resource allocation strategy, N m represents the number of user equipment under the mth base station, Indicates that the base station BS is in time slot t m Users under The maximum tolerable delay of the task is Indicates user The local task processing strategy, Indicates user The strategy of offloading the task to the associated base station for processing, Indicates user The strategy of offloading the task to other base stations for processing is Indicates user The strategy of offloading tasks to the cloud center for processing, a k,m (t) represents the mth base station BS at time slot t m The cache indicator function for service k, K represents the number of service types, l k represents the storage space occupied by service k that processes the task, R m Indicates the storage space size of the mth MEC server, Indicates BS m In time slot t, The spectrum resource allocation coefficient is Indicates BS m In time slot t, The CPU frequency allocation coefficient.
7. The method for task offloading and resource allocation based on mobile edge computing according to claim 1, characterized in that: The process of using the DSRA algorithm to solve the joint optimization problem of task offloading and resource allocation includes: abstracting the joint optimization problem of task offloading and resource allocation into a partially observable Markov decision process, with the base station acting as an intelligent agent, and constructing the corresponding observation space, action space and reward function; each intelligent agent has an actor network and a critic network embedded in the LSTM network; the actor network generates corresponding actions according to the current local observation state of a single intelligent agent and updates the reward function according to the action to enter the next state; the critic network estimates the strategies of other intelligent agents based on the global observation state and action; generates experience information based on the current state, next state, action and reward value; samples multiple pieces of experience information to train the actor network and critic network, updates the network parameters, and obtains the trained actor network and critic network; and obtains the task offloading and resource allocation strategy based on the actor network training results.
8. The method for task offloading and resource allocation based on mobile edge computing according to claim 7 is characterized in that: The reward function is expressed as: Among them, r m (t) represents the base station BS at time slot t m The reward value, T represents the system running time, M represents the number of base stations, N m represents the number of user equipment under the mth base station, The base station BS represents the time slot t m Users under The task processing delay, Y m (t) represents the reward when the task processing delay satisfies the delay constraint, U m (t) represents the reward for caching within the storage capacity limit of the edge server.
Citation Information
Patent Citations
Joint task unloading, caching and resource allocation method for mobile edge computing server
CN111132191A
Optimized service caching and calculation unloading method for mobile edge network system
CN114760311A
Task unloading and service caching joint optimization method based on edge collaboration
CN115297013A
Task unloading and resource allocation method based on mobile edge computing
CN116137724A
Systems and methods for generating a task offloading strategy for a vehicular edge-computing environment
US20220032933A1
Cited By
Resource allocation method, system and equipment of satellite-ground convergence network and medium
CN118764878A
End side equipment unloading method and system based on edge arrangement technology
CN118819684A
Secure computing unloading method for cache-assisted ultra-dense heterogeneous MEC network
CN119031393A
Security collaborative caching and computing unloading method oriented to ultra-dense network
CN119052831A
Task unloading method of rail transit 5G edge computing network system
CN119088477A
