Abstract

Integrating nonorthogonal multiple access (NOMA) and edge computing into the Internet of Things (IoT) for resource allocation and computing offloading can effectively reduce delay and energy consumption and improve spectrum efficiency. Computation tasks can be split into several independent subtasks and can be locally processed by IoT devices or offloaded to the MEC servers to process. The limited computing resources deteriorate the system performance. Thus, it is crucial to design the reasonable allocation strategies of computation resource and transmission power resource. In this paper, we jointly determine the CPU-cycle frequency allocation and transmission power allocation and formulate a stochastic optimization to minimize the energy consumption of IoT devices. Based on the Lyapunov optimization theory, we decompose the optimization problem into two deterministic subproblems to solve separately. One of them is obtained by seeking the first derivative, and the other is solved by using the best response idea after establishing the game model. Meanwhile, we propose a dynamic resource allocation and task offloading (DRATO) algorithm. Moreover, the simulation experiments show that the proposed algorithm effectively improves system performance and reduces energy consumption compared to three other benchmark methods.

1. Introduction

With the rapid development of Internet of Things (IoT) and mobile communication technology, there are more and more types of IoT devices and IoT applications, which provide abundant and convenient services for end users [13]. However, the computing load and energy load for IoT devices are also aggravated [46]. The computing resource and energy resource of IoT devices are limited, which cannot effectively support these applications [7, 8]. The mobile cloud computing (MCC) allows IoT devices to offload computing tasks to the cloud servers for processing and make use of the powerful computing power to make up for the shortage of computing resources [911]. However, the long-distance transmission of tasks will lead to high transmission delay and communication energy consumption.

The mobile edge computing (MEC) technology is proposed as a new computing paradigm to tackle this challenge [1214]. It can provide computing resources and service to edge devices and users. Specifically, the IoT devices can offload local tasks to the MEC server deployed in the BS for processing, which can effectively reduce system delay and energy consumption [1517]. With the connection demand of massive devices and increasingly scarce spectrum resources, the traditional orthogonal multiple access (OMA) technology cannot meet the communication demand. Thus, the nonorthogonal multiple access (NOMA) has attracted extensive attention as a new generation of mobile communication access technology. The NOMA technology enables multiple devices to be multiplexed on the same time-frequency resource block, which increases the number of user access [18]. In the uplink, BS can use successive interference cancellation (SIC) technology to effectively eliminate the interference among IoT devices, which can improve the spectrum resource utilization.

In particular, the current research works focus on the application of NOMA in the single BS and multiuser scenario, which only studies the intracell interference among devices and ignores the intercell interference [19]. Based on the above analysis, our paper considers the resource allocation and computing offloading scenario based NOMA among multiple BSs and multiple devices. We aim to minimize the energy consumption of IoT devices. According to the Lyapunov optimization technology, the optimization problem is divided into two parts and solved separately. This includes CPU-cycle frequency allocation and transmission power allocation. In addition, a dynamic resource allocation and task offloading (DRATO) algorithm is proposed [20], and we evaluate the performance of the DRATO algorithm through simulation experiments. Our main contributions are as follows:(i)We consider a joint resource allocation and computation offloading for the multi-BS and multidevice-based NOMA system. The BSs are allocated to the MEC servers to provide computing resources for the IoT devices. When IoT devices transmit tasks to the MEC servers, we regard not only the interference of devices in the same BS using the same channel but also the interference of other BSs using the same channel.(ii)We formulate the problem to minimize the energy consumption of all devices by jointly optimizing the computation resource allocation and transmission power allocation. We use the Lyapunov technology to transform problem and build model game to solve it. Firstly, based on Lyapunov theory, we divide our optimization problem into two subproblems. Then, one is solved by derivation, and the other is modeled as a noncooperative game model to solve.(iii)We propose a DRATO algorithm to obtain the desired strategy sets of CPU-cycle frequency allocation and transmission power allocation. In addition, the effectiveness of our algorithm is verified by the parameter analysis and comparison experiments.

The rest of this paper is organized as follows. We build the system model and formulate the research problem in Section 2. The optimization problem is divided into two parts and we design DRATO algorithm in Section 3. In Section 4, the performance of DRATO algorithm is verified. The related work is presented in Section 5. Furthermore, we summarize this paper in Section 6.

2. System Model and Problem Formulation

In this section, we present the system model of resource allocation and computation offloading among the multi-BS and multidevice-based NOMA, while we also formulate the problem to minimize the energy consumption of all devices by jointly optimizing the computation resource allocation and transmission power allocation.

2.1. System Framework

As depicted in Figure 1, we consider a joint resource allocation and computation offloading system among multi-BS and multi-IoT-device-based NOMA. The BSs are equipped with MEC servers and denoted by a set . The IoT devices are defined by a set , which can process their tasks locally or offload them to MEC servers to process via several wireless channels. There is interference among devices sharing the same wireless channel. Based on [21], a discrete time-slotted model is considered; we define each time slot length as and . In addition, the main notations are listed in Table 1.

2.2. Local Processing Model

The tasks of IoT devices can be processed locally or offloaded to MEC servers to process. In the -th time slot, the number of data bits computed locally for device of BS is given as follows:where represents the CPU-cycle frequency for device of BS . denotes the required CPU-cycles for computing 1 bit of device and is the time slot length.

In the -th time slot, the computation energy consumption for local processing of device of BS is obtained as follows:where is the effective switched capacitance, which depends on the chip structure of the IoT device [22].

2.3. Task Offloading Model

We denote the transmission power and the transmission power constraint for IoT device of BS on channel in -th time slot as and , respectively [23]. Thus, we have

In NOMA, a subchannel can be allocated to multiple devices in the same time slot . Based on [19], the BS adopts SIC technique to eliminate the interference from the received signal. The devices with higher channel gains are decoded in turn and the other devices are seen as the interference. In time slot , represents the uplink channel gain from device to BS on channel . We assume that the channel gain of each device is in an increasing order; that is, . The signal-to-interference-plus-noise ratio (SINR) of the signal received by device is given as follows:where is the set of devices transmitting tasks to BS on channel . means that device is in and its channel gain is greater than device . represents the transmission power of the IoT device from BS on channel in -th time slot [24, 25].

On channel , device is not only interfered by devices in the same BS but also interfered by devices in other BSs on channel . Thus, the received SINR of device from BS on channel in time slot is given as follows:

Referring to , the data transmission rate for device of BS on the -th channel at time slot is shown as follows:where is bandwidth of BSs. For each IoT device , we define as the noise power.

The energy consumed by offloading tasks from device to BS during time period is obtained as follows:

If we denote as the number of new generated tasks by the -th device in time slot and the tasks can be processed in the next time slot , the queue length of the -th IoT device’s task buffer in time slot is denoted by . Thus, the queue length in time slot is as follows:where represents the number of data bits computed locally for device of BS in -th time slot. is the number of data bits transmitted from device to BS in -th time slot.

2.4. Problem Formulation

According to above local processing model and task offloading model, the total energy consumption is represented as

In this paper, the objective is to minimize the average total energy consumption of all devices by jointly optimizing computation resource allocation and transmission power allocation under CPU-cycle frequency constraint, transmission power constraint, and task buffers constraint. Then, the optimization problem can be formulated as follows:

It is obvious that problem P1 is a stochastic optimization problem. It is because the new arrival tasks and the transmission power of IoT devices are difficult to predict, which are dynamic and stochastic. Thus, we take advantage of Lyapunov optimization technology, which can decompose the stochastic optimization problem into several deterministic optimization subproblems [26, 27].

3. Dynamic Resource Allocation and Task Offloading for IoT in MEC

3.1. Problem Transformation

According to Lyapunov optimization technology, the optimization problem (10) is transformed into two deterministic optimization subproblems [28]. We define as the queue backlog matrix, and . When  = 0,  = 0. The is defined as

Specifically, represents the queue backlog state of the IoT devices. If and only if the task queues’ congestion is large, will be large. When the queue backlogs of IoT devices become small, will be small. Thus, we can reduce the value of to obtain the low congestion state of queue.

The - is represented as follows:

Combining our optimization problem to minimize the transmission energy consumption and the IoT devices’ queue length, we define the -- equation in each time slot as follows:where is the trade-off parameter between the queue length and energy consumption. Without loss of generality, . The greater the value of and the greater the weight of energy consumption, we give the upper bound of the --.

Theorem 1. For and , the function satisfies the following inequality:where is a fixed value.

Proof. According to equation (8) and for , we let , where or . Thus, we haveSubtracting from both sides of the inequality in (15) and dividing by 2, we haveSummarizing the above equations (11) and (12) and the inequality in (16), we obtainFinally, we add to both sides of equation (17) and get conditional expectation value, which is as follows:Note that with condition is deterministic; hence,Defining , the proof of Theorem 1 is completed.

3.2. Dynamic Resource Allocation and Task Offloading Algorithm Design

Because and are the constants in each slot, the optimization problem is rewritten as follows:

Obviously, problem P2 can be divided into two parts to optimize. The optimization of the first part is related to local computing, and the main parameter of optimization is the device’s CPU-cycle frequency strategy. The optimization of the second part is related to the task offloading. The optimization parameter is the transmission power strategy of the device offloading tasks to the MEC servers. Thus, problem (20) can be converted into two independent subproblems P2.1 and P2.2, and we will solve them separately.

3.2.1. Computation Resource Allocation

This part mainly studies the CPU-cycle frequency strategy optimization in local calculation.s.t.

Problem P2.1 is convex and the optimal solution is straightforward. The formula took the derivative with respect to , which is expressed as . Firstly, we make the derivative be zero and get . Then, we get its second derivative function as . Thus, we obtain the optimal solution of , which is as follows:

3.2.2. Transmission Power Allocation

This part mainly studies the optimization of transmission power strategy in task offloading process.s.t.

In the transmission power decision-making problem among multiple devices, the power decision of each device depends not only on its own power strategy but also on the power strategies of other devices. All devices want to choose the optimal power strategies to reduce owner energy consumption, so there is a competitive relationship of transmission power resources among devices. Game theory is a good tool to solve the problem of competition decision-making among players, which uses a mathematical model to solve the interest conflict among multiple players and obtain the best strategy set [29]. Thus, we can use game theory to address the problem of transmission power decision-making.

In this part, the transmission power decision-making problem among devices is modeled as a transmission power game. In this game, the players are all devices competing for power resources to minimize their owner energy consumption. The transmission power strategy game can be defined as , where is the set of devices and is the feasible strategy set of devices. The energy consumption function is . Each device seeks a profitable power strategy to minimize its own energy consumption.

Formula (26) is simplified and expressed as

Definition 1 (Nash Equilibrium). For a noncooperative game , if there is a strategy set and no device wants to reduce its own energy consumption by changing owner strategy, then we call an NE strategy profile.where is device ’s energy consumption and presents the strategies chosen by devices excluding device .

The NE is a stable state, in which no device has any intention to change its strategy for reducing energy consumption. Thus, we can obtain the optimal strategy set by proving the existence of NE. The definition of the exact potential game is given as follows.

Definition 2. (Potential Game) For , if and only if there is a potential function , the relationship between and is as follows: is an exact potential game, and there is at least a pure strategy NE, which should be proved by us. The specific certification process is as follows.

Theorem 2. is an exact potential game, and the potential function is as follows:

Proof. Based on formula (31), when devices’ power strategies change, we get the following equation:where .
With the devices’ power strategies changing, we get the change of the potential function as follows:Thus,Theorem 2 is proved.

Summarizing the above two parts, we can determine the optimal computing resource allocation decisions and transmission power allocation decisions. The specific steps are described in Algorithm 1.

Require:
(1) Input: , , , , , , , , ;
(2) Output: The CPU-cycle frequency decision and transmission power decision ;
(3)for to do
(4)  for to do
(5)   Compute according to the formula (25);
(6)   Compute according to (1);
(7)    are calculated according to the formula (28);
(8)   Obtain the power strategy of device with the minimal energy consumption ;
(9)   Compute based on the known variable values;
(10)   Update queue length according to (8);
(11)  end for
(12)  Each device attains the best power strategies in the -th iterations;
(13)  Generate the updated strategy profile, ;
(14)end for

To effectively solve the optimization problem, we propose the dynamic resource allocation and task offloading (DRATO) algorithm. In the DRATO algorithm, we adopt the idea of best response to attain the optimal strategy set. In steps 5–7, we obtain the values of , , and based on initialized parameters. In step 8, we always select the transmission power strategy of device with the minimal energy consumption in each iteration . According to the power strategy obtained, we calculate and update the queue length. After each iteration for all devices, we will update the policy set of the device and take it as the initial policy set for the next iteration. Because of the existence of NE, we can obtain the optimal strategy set through finite iterations. When the number of iteration is , the iteration ends. Meanwhile, IoT devices get the lowest energy consumption and the optimal strategy set.

4. Simulation Results

This section consists of parameter analysis and comparison experiments. We have analyzed the influence of four parameters on the energy consumption and queue length. The performance of DRATO algorithm is evaluated by comparison experiments.

We consider a NOMA-MEC-enabled network with 3 BSs and 9 IoT devices. The IoT devices are randomly distributed to the BSs’ coverage area. There are overlapping areas among BSs. The system bandwidth is available to all BSs, which is 1e6 Hz [26]. The time slot of simulation results is 3000 s. Moreover, the simulation parameters used throughout the simulations are set in Table 2.

4.1. Parameter Analysis

(1)Impact of trade-off parameter : Figures 2 and 3 describe the impact of trade-off parameter on energy consumption and queue length. As shown in Figure 2, as increases, the energy consumption will decrease. It is because the larger is, the higher the weight of energy consumption is compared to the queue length. The DRATO algorithm reduces the energy consumption of the system by adjusting the allocation strategies of CPU-cycle frequency and transmission power. According to Figure 3, the queue length also increases with the rise of . With the increase of , the system always waits for the best time to process tasks. For example, devices backlog a number of tasks locally and then offload the backlog of tasks to the edge servers to process in a specific time slot. It will lead to the queue backlog. Combined with Figures 2 and 3, it means that DRATO algorithm can achieve a trade-off between energy consumption and queue length by adjusting parameter , which also can keep the stability of the queue.(2)Impact of task arrival rate: Figures 4 and 5 describe the effect of task arrival rate on energy consumption and queue length. We consider that the task arrival rate is , and is 0.2, 0.4, and 0.6, respectively. As shown in Figure 4, with the growth of task arrival rates, energy consumption has an upward trend. It is because, with more tasks, more tasks need to be computed locally or offloaded to MEC servers to process. Meanwhile, total energy consumption becomes large. According to Figure 5, when the task arrival rate increases, queue length will tend to rise. The reason is that the number of tasks increases and tasks are not handled in time, which will lead to a backlog of tasks and result in the increase of queue length.(3)Impact of computing resource constraint : Figure 6 depicts the effect of computing resource constraint on total energy consumption including energy consumption of local computation and energy consumption of task offloading process. As shown in Figure 6, when the CPU-cycle frequency rises, the energy consumption will increase accordingly. It is because local computing energy consumption increases with the increase of CPU-cycle frequency allocated for devices, which leads to higher total energy consumption for devices.(4)Impact of transmission power constraint : Figure 7 shows the effect of transmission power constraint on total energy consumption. With the increase of the transmission power constraint, the total energy consumption also shows an upward trend. The reason is that the larger the transmission power allocated, the larger transmission energy consumption during task offloading process. Meanwhile, the total energy consumption will increase.

4.2. Comparison Experiment

To further verify the effectiveness of the proposed DRATO algorithm, we compare the energy consumption and queue length with three benchmark algorithms which are stated as follows:(i)AllLocal: In each time slot, all devices choose to compute all tasks locally.(ii)AllOffload: In each time slot, all computation tasks of each device are offloaded to MEC servers to process.(iii)Random: In each time slot, all devices randomly assign tasks to compute locally or offload to MEC servers for execution.

Figure 8 describes the energy consumption of four different algorithms in the fixed time slot. With the change of time, the energy consumption of AllOffload algorithm increases sharply, and energy consumptions of the other three algorithms remain stabilized at a low value all the time. It can be observed that the energy consumption of the DRATO algorithm is lowest among four algorithms, which is 47% lower than that of AllOffload algorithm. It can be seen that the DRATO algorithm can effectively reduce the total energy consumption.

Figure 9 depicts the queue length of four different algorithms in the fixed time slot. Obviously, the queue length of the DRATO algorithm is lowest among four algorithms and it remains stable all the time. It is because the proposed DRATO algorithm can dynamically schedule the CPU-cycle frequency strategy and transmission power strategy to adapt to the changes of tasks arriving. As shown in Figure 9, AllOffload algorithm and AllLocal algorithm increase linearly with time. The reason is that the computation resources and transmission power resources of devices are limited. When the number of tasks is too large, there will be a backlog of tasks and the queue length will continue to increase. In the meantime, we can see that the queue lengths of the DRATO algorithm and the random algorithm remain at a low level.

Together with Figures 8 and 9, the proposed DRATO algorithm can effectively reduce the energy consumption and queue length, which has better performance.

A number of research works focused on resource allocation and computing offloading in MEC in recent years [22, 3135]. In [31], the authors jointly optimized the offline mode, channel allocation, and device-to-device (D2D) pairing to minimize the computational pressure of large-scale computing in MEC. They modeled the problem as the computing offloading task game among multiple users. Yu et al. considered the edge computing system-based NOMA in the power Internet of Things (PIoT). They exploited the Lyapunov technology to decompose the optimization problem into three subproblems: task splitting, resource block allocation, and computation resource allocation [32]. Zhao et al. studied a dynamic optimization problem of minimizing energy consumption and computing resources in MEC and decomposed the problem into four subproblems to solve based on the Lyapunov technology [22]. In [33], the authors considered joint edge computing and the cloud computing to achieve secure task offloading based blockchain scenario. They aimed to minimize energy consumption and the response time of task.

The NOMA technology can effectively improve spectral efficiency, which has been widely studied. Liu et al. considered uplink resource allocation NOMA-based scenario in 6G. They focused on maximizing the average total transmission rate of 6G-enabled cognitive IoT (CIoT) under the minimum transmission rates constraint [36]. In [37], the authors studied the intelligent uplink resource allocation based-NOMA system. They adapted the deep reinforcement learning (DRL) and SARSA-learning to design an effective algorithm. Liu et al. focused on the radio resource allocation and computation allocation-based NOMA for IoT devices scenario. They maximized energy efficiency by adjusting the strategy of the subchannel allocation and power allocation [38].

For the stochastic optimization problem, a number of works use Lyapunov method and reinforcement learning method [3941]. In [39], the authors formulated a nonlinear integral dynamic optimization problem to reduce the cost and number of fresh sensors needed. They firstly transformed the optimization problem to the static problem. Then, they conducted a game model to solve problems, which can effectively reduce the complexity of the algorithm. Based on deep learning, Gu et al. proposed a job resource demand estimation method based on regression model to avoid overallocation of computing resources.

Different from existing research work, we study the computation resource allocation and transmission power allocation in combining resource allocation and computing offloading scenario. We formulate the stochastic problem to minimize the total energy consumption of IoT devices and apply the Lyapunov technology to transform it into two subproblems. In addition, we introduce the NOMA technology to eliminate the interinterference and intrainterference of IoT devices.

6. Conclusion

In this paper, we investigate the computing resource allocation and transmission power allocation to minimize total energy consumption for multidevice-based NOMA in MEC. Based on Lyapunov theory, we transform optimization problem into two deterministic subproblems and build the noncooperative game model to solve. A dynamic resource allocation and task offloading (DRATO) algorithm has been proposed to obtain the desired strategy sets of CPU-cycle frequency and transmission power. In addition, the effectiveness of our algorithm is verified by the simulation results.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

All authors have no conflicts of interest.

Acknowledgments

This work was partly supported by the National Natural Science Foundation of China (No. 61902029), R&D Program of Beijing Municipal Education Commission (No. KM202011232015), Project for Acceleration of University Classification Development (Nos. 5112211036, 5112211037, 5112211038).