Abstract

With the rapid development of the Internet of Things (IoT), more and more computation-intensive tasks are generated by IoT devices. Due to their own limitations, IoT devices cannot process all tasks locally, and some tasks need to be offloaded to edge servers for processing. In addition, nonorthogonal multiple access (NOMA) technology allows multiple IoT devices to share the same frequency resource. IoT devices can use NOMA technology to transmit data to increase the data transmission rate. In this article, we study the problem of NOMA-enabled dynamic task offloading in heterogeneous networks. We formulate a stochastic optimization problem to minimize system energy consumption. Using stochastic optimization techniques, we transform this problem into a deterministic optimization problem and decompose it into five sub-problems to solve. At the same time, we propose a NOMA-enabled dynamic task offloading (NDTO) algorithm. Then, we mathematically analyze the performance of the NDTO algorithm. We conduct a series of parameter analysis experiments and comparative experiments, and the results verify the performance of the NDTO algorithm.

1. Introduction

In recent years, with the rapid development of Internet of Things (IoT) technology, various IoT devices have appeared in people’s lives [1, 2]. At the same time, more and more computation-intensive applications are emerging, such as virtual reality. These computation-intensive applications generate a large number of computation-intensive tasks as they work. However, due to the limited computing resources and battery capacity of IoT devices, these computation-intensive tasks cannot be fully handled [35]. To cope with this situation, mobile cloud computing (MCC) came into being [68]. However, offloading tasks to cloud computing centers for processing will introduce significant delays [911]. The emergence of mobile edge computing (MEC) provides a new solution [1214]. At the same time, in order to cope with the problem of data traffic explosion brought by the increasing number of IoT devices, a two-layer heterogeneous small cell network (SCN) is proposed [15]. The SCN is usually composed of macro base station (MBS) and small base station (SBS). Both the MBS and the SBS are generally deployed with an MEC server for providing services. SCN can expand network coverage and further improve user experience quality. Therefore, SCN will play an important role in the future [16].

With the rapid increase of IoT devices and various computation-intensive applications, the traditional orthogonal multiple access (OMA) technology can no longer meet the increasing communication demands. Non-orthogonal multiple access (NOMA) technology is a promising technology that can alleviate the problem of scarcity of spectrum resources [1719]. NOMA uses power multiplexing technology that allows multiple devices to share the same spectrum resources. Thus, NOMA can greatly improve the resource utilization efficiency of the wireless access network [20, 21].

Since both the computing resources of IoT devices and the computing resources that MEC can provide are limited, it is challenging to design a suitable task offloading scheme to maximize the use of available computing resources [2224]. First, the generation and arrival of tasks are dynamic. Second, the quality of the wireless channel is time-varying. Whether the wireless channel state is good or bad will have a great impact on task offloading. At the same time, the statistics of these factors are difficult to predict. Therefore, it is urgent to design a task offloading scheme that can dynamically adapt to changes in wireless channels and task arrivals.

In this article, we study the NOMA-enabled dynamic task offloading problem in MEC. We work to minimize the long-term average energy consumption of the system. Meanwhile, we design a NOMA-enabled dynamic task offloading (NDTO) algorithm using stochastic optimization techniques. Moreover, we evaluate the performance of the NDTO algorithm through a series of experiments. Our contributions are as follows:(1)We study the problem of dynamic task offloading for SBSs and devices based on NOMA. Both SBSs and MBS are deployed with MEC servers. IoT devices can offload tasks to SBS for processing through NOMA technology. At the same time, the SBS can also offload the collected tasks to the MBS for processing. Our goal is to minimize the long-term average energy consumption of the system.(2)Since task arrival and channel state are time-varying. Therefore, we transform the above problem into a deterministic optimization problem using stochastic optimization techniques. Then, we decompose it into multiple sub-problems to solve. Meanwhile, we design the NDTO algorithm to solve this problem.(3)We verify the effectiveness of the NDTO algorithm through parameter analysis and comparative experiments. Experimental results demonstrate the effectiveness of the NDTO algorithm in minimizing system energy consumption and maintaining task queue stability.

The remainder of this article is as follows. In Section 2, we present the system model and problem formulation. A NOMA-enabled dynamic task offloading algorithm is proposed in Section 3. In Section 4, we analyze the NDTO algorithm mathematically. In Section 5, we experimentally verify the performance of the NDTO algorithm. In Section 6, we discuss related works. In Section 7, we conclude this study.

2. System Model and Problem Formulation

2.1. System Model

In this study, we consider a system with one MBS and multiple SBSs. Each SBS is deployed with an MEC server to serve IoT devices. In this work, IoT devices can offload tasks to SBS for processing. In our model, there are SBSs, which are defined as . Each SBS has a fixed service area, and the service areas of any two SBSs do not overlap. Among them, there are IoT devices located in the service area of SBS , which is represented as . For the convenience of description, we denote the IoT device within the service area of SBS as . We consider a discrete slot model denoted as . At the same time, , and the length of each slot is . The main symbols are listed in Table 1.

2.2. Task and Communication Model

In this study, each IoT device maintains two task queues, namely the local computing queue and the local offloading queue. The tasks in the local computing queue are processed locally by IoT devices. The tasks in the local offloading queue are offloaded to the SBS for processing. In each time slot, the size of the task generated by the IoT device is denoted as . is an offload decision, indicating whether newly arrived tasks are placed on the local computing queue or the local offloading queue. When , the newly arrived task is placed in the local computing queue, otherwise, it is placed in the local offloading queue.

IoT devices communicate with SBS via NOMA wireless network. represents the channel gain from the IoT device to the SBS . We assume that the channel gain of IoT devices within the SBS’s service area is in nonincreasing order, i.e., . Using the SIC technique, the signal is iteratively decoded in order of the IoT device’s channel gain [25]. Therefore, we can get the signal-to-noise ratio when the IoT device communicates with the SBS as follows:where represents the transmit power of the IoT device and represents the channel noise power.

Therefore, the achievable data transmission rate when the IoT device communicates with the SBS is expressed as follows:where represents the channel bandwidth allocated by SBS to IoT devices.

Orthogonal frequency division multiple access technology is used when SBS communicates with MBS. represents the channel gain when the SBS communicates with the MBS. represents the transmit power of the SBS . Therefore, we can get the achievable data transmission rate when the SBS communicates with the MBS as follows:where represents the channel bandwidth allocated by MBS to SBSs.

2.3. Queuing Model

Each IoT device maintains a local computing queue and a local offloading queue. The number of CPU cycles consumed by the IoT device to process 1 bit of data is . The amount of tasks processed locally by the IoT device in the time slot is denoted as , and the specific calculation method is as follows:where represents the CPU cycle frequency of the IoT device .

We define the maximum CPU cycle frequency of the IoT device as . Thus, we can get:

We use to denote the task backlog of the local computing queue of IoT device . Then, the evolution of can be obtained as follows:

The amount of tasks offloaded by IoT device in time slot is denoted as . Because the data transmission rate of IoT devices has an upper limit, the amount of offloaded tasks should satisfy:

We define as the task backlog of the local offloading queue of IoT device . Then, we give the evolution of as follows:

Each SBS maintains a task queue for each IoT device in its service area to store tasks offloaded from IoT devices. In each time slot, the amount of tasks from the IoT device processed locally by the SBS is . Then, represents the amount of tasks from the IoT device that the SBS offloads to the MBS.

We define to represent the task queue backlog that IoT device offloads to SBS . Then, the evolution of is as follows:

2.4. Energy Consumption Model

For each IoT device, its energy consumption includes two parts, namely local computing energy consumption and local offloading energy consumption. We know that the local computing energy consumption of an IoT device is closely related to its CPU frequency [26]. We denote the energy consumption of IoT device locally calculated in time slot as , as follows:where denotes the effective switched capacitance of the CPU.

The offloading energy consumption of IoT devices is closely related to its transmit power. The energy consumption generated by IoT device offloading tasks to SBS in time slot is denoted by:

In each time slot, the energy consumption generated by SBS includes two parts, one part is computing energy consumption, and the other part is offloading energy consumption. During time slot , the energy consumption generated by the tasks from the IoT device processed by the SBS is denoted as:where denotes the energy consumption coefficient of the MEC server in SBS [27].

Then, the energy consumption generated by SBS offloading tasks to MBS is denoted as:

All tasks offloaded by SBS will be handled by MBS. We set the energy consumption generated by the MBS to process the tasks from the IoT device U offloaded by the SBS as:where is the energy consumption coefficient of MBS.

Therefore, in a time slot , the total energy consumption generated by the system is as follows:

2.5. Problem Formulation

Within each slot, we make a decision to determine whether newly arrived tasks should be executed locally or offloaded to the SBS for processing. Our goal is to minimize the long-term average energy consumption of the system, as follows:

There are certain challenges to solving this problem. First, the generation and arrival of tasks are random. Second, the wireless channel state is also constantly changing. Therefore, next, we use stochastic optimization techniques to solve this problem.

3. NOMA-Enabled Dynamic Task Offloading Algorithm Design

In this section, we introduce stochastic optimization techniques to solve problem (16). Using stochastic optimization techniques, we design a NOMA-enabled Dynamic Task Offloading (NDTO) algorithm [28]. The NDTO algorithm can make optimal offloading decisions without the need for future statistics. Then, we decompose the optimization problem into five sub-problems to solve.

3.1. Problem Transformation

In order to maintain the stability of the task queue, we define the Lyapunov function as follows:where indicates the queue backlog vector.

Then, the Lyapunov drift function is given as follows:

Our goal is to keep the task queue stable while minimizing energy consumption. To this end, we give the Lyapunov drift plus penalty function as follows:where is the trade-off parameter.

We can minimize energy consumption by minimizing the upper bound of (19). The following theorem gives the upper bound of (19).

Theorem 1. The upper bound of the drift plus penalty function is shown below.where is a constant.

Proof. From , we can get:Then, combining (17) and (18), we can get:where .

3.2. NOMA-Enabled Dynamic Task Offloading Algorithm

In this section, we propose the NDTO algorithm to minimize the upper bound of (19). We define . Since is a constant, the upper bound minimization problem can be formulated as follows:

In Problem (25), its decision variables are , , , , and . Because the decision variables are decoupled, we can decompose Problem (25) into five corresponding sub-problems. Below, we will give the optimal solution for each sub-problem.

3.3. Offloading Decision

By separating out the part related to in Problem (25), the offloading decision sub-problem is given as follows:

Problem (26) is a zero-one integer programming problem. Therefore, we give the optimal solution for the offloading decision as follows:

3.4. CPU Frequency for IoT Devices

The optimal CPU frequency of IoT devices in each time slot can be obtained by solving the following sub-problems:

Problem (28) is a convex optimization problem. Its first derivative function is . When its first derivative function is equal to 0, we can get . Then, we can get its second derivative function as . Thus, the optimal solution of as follows:where .

3.5. Offloading Computation for IoT Devices

The sub-problem of offloading computation for IoT devices is described as follows:

Problem (30) is a linear programming problem. We define . Thus, the offloading computation of the IoT device is calculated as follows:

3.6. SBS Local Computation Allocation

The SBS local computation allocation sub-problem is formulated as follows:

Problem (32) can be viewed as a knapsack problem, where the weights of are . The specific steps to solve this problem are given as follows:(1)We initialize the amount of tasks that SBS can handle in the time slot as .(2)For each SBS, the IoT devices in its service area are sorted according to the value of from low to high.(3)The SBS sequentially assigns the size of the SBS local computation to the IoT device according to the sorting results, as follows:where .(4)Updating the amount of tasks that SBS can still process in the time slot is .

3.7. SBS Offloading Computation Allocation

The SBS Offloading computation allocation sub-problem is formulated as follows:

We define . Similar to solving Problem (32), the specific steps to solve this problem are given as follows:(1)We initialize the amount of tasks that SBS can offload in time slot as .(2)For each SBS, the IoT devices in its service area are sorted according to the value of from low to high.(3)The SBS sequentially assigns the size of the SBS local computation to the IoT device according to the sorting results, as follows:where .(4)Updating the amount of tasks that SBS can still offload in time slot is .

Details of the NDTO algorithm are given in Algorithm 1.

Input: , , ,
Output:
(1)for all do
(2)for all do
(3)Set the according to (27).
(4)end for
(5)end for
(6)for all do
(7)for all do
(8)Calculate the value of .
(9)Set the according to (29).
(10)end for
(11)end for
(12)for all do
(13)for all do
(14)Calculate the value of .
(15)Set the according to (31).
(16)end for
(17)end for
(18)for all do
(19)Initialize .
(20)Sort IoT devices from low to high according to the value of .
(21)for all do
(22)Set the according to (33).
(23).
(24)end for
(25)end for
(26)for all do
(27)Initialize .
(28)Sort IoT devices from low to high according to the value of .
(29)for all do
(30)Set the according to (35).
(31).
(32)end for
(33)end for
(34)for all do
(35)for all do
(36)Update the values of queues , and .
(37)end for
(38)end for

4. Analysis of NOMA-Enabled Dynamic Task Offloading Algorithm

In this section, we analyze the performance of the NDTO algorithm mathematically.

We give the following lemma to demonstrate the performance of the NDTO algorithm.

Lemma 1. No matter how the task arrival rate changes, there is always an optimal decision that is independent of the queue length. From this, we can get:where is minimum energy consumption with .

Proof. Caratheodory’s theorem can be used to prove Lemma 1. Here, we will not repeat them. □
It is worth noting that the task arrival rate is capped. Therefore, the upper limit of the system energy consumption is denoted as , and the lower limit is denoted as . We define . According to Lemma 1, we give Theorem 2 to analyze the performance of NDTO.

Theorem 2. For any value of , when the task arrival rate is , according to NDTO, we have:

Proof. Based on Lemma 1, for any decision and task arrival rate , we can get:Our NDTO algorithm is to minimize the value of (19). Thus, for decision , we have:Combining (39) and (40), we can get:Generally speaking, . Taking expectations on both sides of (41) and giving the cumulative sum over time, we obtain:Since , , and are nonnegative, we have:Then, divide both sides of (43) by . When , , we can get (37).
With (42), we also get:Since is nonnegative, we have:By dividing (45) by , when , we get (38).

5. Evaluation

In this section, we evaluate the performance of the NDTO algorithm through a series of experiments.

5.1. Experiment Setup

In the experiments, we consider a system with 100 IoT devices, 5 SBSs, and 1 MBS. Within each time slot, the task arrival rate satisfies a uniform distribution, i.e., Mb. For each IoT device, the maximum CPU frequency is 1 GHz, and the transmit power is uniformly distributed, which is . For each SBS, the transmit power is uniformly distributed, which is . We set the wireless channel bandwidth to Hz, the channel noise power to , and the number of CPU cycles required to process 1-bit data to 1000. Furthermore, the effective switched capacitance is , the time slot length is 1 s, and  J/b [29, 30].

5.2. Parameter Analysis
5.2.1. Impact of Parameter V

Figure 1 shows the effect of different parameter on energy consumption. It can be seen that energy consumption decreases as increases, which is consistent with the result of (37). This is because the greater the value of , the greater the weight of the system energy consumption. Therefore, the NDTO algorithm will dynamically adjust the offloading strategy to reduce energy consumption. Figure 2 shows the effect of different parameter on the queue length. It can be seen that the queue length increases as increases, which is consistent with the result of (38). Combining Figures 1 and 2, it can be seen that the NDTO algorithm can achieve a trade-off between energy consumption and queue length.

5.2.2. Impact of Task Arrival Rate

Figures 3 and 4 show the effect of different task arrival rates on energy consumption and queue length. We set the task arrival rate to , where , 1.0, and 1.2. As can be seen from Figure 3, the higher the task arrival rate, the higher the system energy consumption. An increase in the task arrival rate leads to an increase in computing tasks, and thus an increase in energy consumption. As can be seen from Figure 4, the higher the task arrival rate, the larger the queue length. Because the transmission capacity and computing power of IoT devices will not change due to the change of task arrival rate. Taken together, the NDTO algorithm can adapt to changes of the task arrival rate to achieve a trade-off between energy consumption and queue length.

5.2.3. Impact of Number of IoT Devices

Figures 5 and 6 show the effect of the number of IoT devices on energy consumption and queue length. We set the number of IoT devices to increase from 30 to 120 in increments of 10 each. Figure 5 shows that energy consumption increases as the number of devices increases. Because the amount of generated tasks increases with the number of devices, energy consumption increases accordingly. But the computing power and transmission capacity of SBS are limited. Therefore, as shown in Figure 6, the queue length increases with the number of devices.

5.3. Comparison Experiment

We compare the NDTO algorithm with two other baseline algorithms to further evaluate the performance of NDTO.(i)Local-only Computation Algorithm. The tasks generated by IoT devices are all placed on the local computing queue.(ii)Offload-only Computation Algorithm. The tasks generated by IoT devices are all placed on the local offloading queue.

Figures 7 and 8 show the relationship between energy consumption and queue length for different algorithms, respectively. As can be seen from Figure 7, the energy consumption of the offload-only computation algorithm is the lowest, followed by the NDTO algorithm, and finally the local-only computation algorithm.

It can be seen from Figure 8 that the queue length of the offload-only computation algorithm increases linearly, which will lead to instability of the task queue. At the same time, we can see that the change in queue length of the NDTO algorithm and the local-only computation algorithm is basically the same. Taken together, our NDTO algorithm is more advantageous in minimizing system energy consumption and maintaining task queue stability.

In recent years, with the development and popularization of IoT and wireless communication technologies, the number of IoT devices has exploded [31, 32]. In addition, the proliferation of mobile devices has facilitated the development of computation-intensive applications [33, 34]. The emergence of the MEC paradigm has attracted great attention from industry and academia. Mao et al. [35] proposed an online joint radio and computational resource management algorithm for multi-user MEC systems. The algorithm implements a trade-off between power consumption and execution delay. Chen et al. [36] studied the problem of energy-saving task offloading in MEC systems. Then, they propose an energy-efficient dynamic offloading algorithm. The algorithm can minimize the transmission energy consumption while limiting the queue length. Huang et al. [37] considered wirelessly powered MEC networks with the binary offload. They propose an online algorithm that adapts task offloading decisions and radio resource allocation to time-varying radio channel conditions. The above work only considers the situation that one base station provides services for multiple users, but does not consider the situation that one MBS covers multiple SCNs.

The problem of one MBS covering multiple SCNs has also been extensively studied. Guo et al. [38] studied the problem of energy-efficient computation offloading in MEC systems with SCN. Wherein each user equipment not only decided whether to perform offloading, but also decided to which base station to offload. Wang et al. [39] studied the problem of computational offloading and content caching in heterogeneous wireless SCNs. Then, they proposed an ADMM-based distributed algorithm to solve the proposed problem. The above work is based on OMA technology. But with the explosive growth of IoT devices, OMA technology can no longer meet user needs.

Therefore, NOMA technology is applied in SCN as a new generation of mobile communication technology. Yang et al. [40] considered the task offloading problem in NOMA-based small cell MEC networks. Meanwhile, a hybrid genetic hill climbing algorithm is proposed to minimize the weighted total cost of energy consumption and latency. Most of these works can be predicted based on task arrival or channel state. However, task arrival and channel state are affected by many factors, and it is unrealistic to achieve accurate prediction.

In our work, we study the problem of NOMA-based dynamic task offloading in heterogeneous networks. We specify stochastic problems to minimize the total energy consumption of the system. Meanwhile, we transform it into five sub-problems using stochastic optimization techniques. Finally, we design an NDTO algorithm to solve this problem.

7. Conclusion

In this article, we study the NOMA-enabled dynamic task offloading problem in MEC. We describe it as a stochastic optimization problem, where the goal is to minimize system energy consumption while keeping the task queue stable. Using stochastic optimization techniques, we decompose this problem into five deterministic sub-problems to solve. Then, an NDTO algorithm is designed to solve this problem. Meanwhile, we evaluate the performance of the NDTO algorithm through mathematical analysis and experiments. The experimental results show that the NDTO algorithm is effective in minimizing energy consumption while maintaining queue stability.

Data Availability

The data used to support the findings of this study can be obtained from the corresponding author upon request.

Conflicts of Interest

The authors declare that they 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, and 5112211038). This work was supported in part by the National Natural Science Foundation of China, under Grants 61902029, 61972414, and 61973161, the Excellent Talents Projects of Beijing, under Grant 9111923401, the Scientific Research Project of Beijing Municipal Education Commission, under Grant KM202011232015, the Beijing Nova Program, under Grant Z201100006820082, the Beijing Natural Science Foundation, under Grant 4202066, and the Fundamental Research Funds for Central Universities, under Grant 2462018YJRC040.