 Research
 Open access
 Published:
Adaptive offloading in mobileedge computing for ultradense cellular networks based on genetic algorithm
Journal of Cloud Computing volumeÂ 10, ArticleÂ number:Â 15 (2021)
Abstract
With the combination of Mobile Edge Computing (MEC) and the next generation cellular networks, computation requests from end devices can be offloaded promptly and accurately by edge servers equipped on Base Stations (BSs). However, due to the densified heterogeneous deployment of BSs, the end device may be covered by more than one BS, which brings new challenges for offloading decision, that is whether and where to offload computing tasks for low latency and energy cost. This paper formulates a multiusertomultiservers (MUMS) edge computing problem in ultradense cellular networks. The MUMS problem is divided and conquered by two phases, which are server selection and offloading decision. For the server selection phases, mobile users are grouped to one BS considering both physical distance and workload. After the grouping, the original problem is divided into parallel multiusertooneserver offloading decision subproblems. To get fast and nearoptimal solutions for these subproblems, a distributed offloading strategy based on a binarycoded genetic algorithm is designed to get an adaptive offloading decision. Convergence analysis of the genetic algorithm is given and extensive simulations show that the proposed strategy significantly reduces the average latency and energy consumption of mobile devices. Compared with the stateoftheart offloading researches, our strategy reduces the average delay by 56% and total energy consumption by 14% in the ultradense cellular networks.
Introduction
The development of mobile applications facilitates peopleâ€™s life, such as augmented reality and intelligent interconnection, etc. These applications are characterized by a large amount of computation and a low tolerance for latency. However, mobile devices are limited in computation and endurance capacity. Mobile edge computing (MEC) technology has been regarded as an effective solution to the above constraints. Mobile devices get powerful computing capacity and lower energy consumption when the computing tasks are offloaded to edge servers [1]. Moreover, the integration of the MEC technology and next generation networks, such as the fifth/sixth generation networks (5G/6G), can save bandwidth resources and improve user experience [2, 3].
Though enjoying the superhigh data transmission rate brought by the next generation networks, mobile devices still face new problems, such as the network densification [4] and low signal penetration. Many existing works formulated the MEC problem in 4G cellular networks as multiuser to one singleserver model [5â€“7], and their concern was task local processing or remote offloading to the base station. Compared with 4G, the frequency of the 5G network is much higher, which means the faster its attenuation will be. Considering the development of antenna technology and the compensation of radio frequency technology, the 5G construction density of China Unicom and China Telecom should be about 1.7 times that of the 4G base station, and 3.2 times for China Mobile [8]. The ultra density of base stations means overlapped coverage of mobile devices, which brings a new challenge for offloading decisions: which accessible BS is the best one to offload tasks to achieve low latency and energy consumption?
In this paper, we formulate the offloading decision problem in the ultradense BSs environment as a nonlinear integer optimization problem, which is proved to be NPHard [9]. Then a suboptimal algorithm is designed to solve this problem. First, by considering the preference of both proximity and workload, mobile users are grouped to one BS with the highest preference as a destination to offload tasks. With the result of grouping, the original problem is decomposed into several distributed 01 integer optimization subproblems. After that, a binarycoded Genetic Algorithm Based Distributed Offloading Strategy (GABDOS) is proposed to solve these subproblems in parallel. The main contributions of this paper are as follows:

1
A MultiUsertoMultiServers edge computing offloading problem, termed as MUMS, is proposed, which is especially for the ultradense 5G cellular networks.

2
The multiusertomultiservers problem is divided and conquered by two phases, which are server selection and offloading decision. For the server selection phases, mobile users are grouped to the BS with the highest preference, which fully considers physical distance and workload of base stations.

3
After the grouping, the original multiusertomultiservers problem is converted into several parallel offloading decision subproblems, each of which can be formulated as a nonlinear integer optimization problem. To get a fast nearoptimal solution, a binarycoded Genetic Algorithm Based Distributed Offloading Strategy (GABDOS) is designed to get an adaptive offloading decision.

4
Convergence analysis of the genetic algorithm is given and extensive simulations show the performance of our solution from the impact of user amount, user device CPU frequency, and tradeoff parameter for offloading latency and energy of users.
The rest part of the paper is organized as follows. The related works are reviewed in Related works section. The system model is elaborated in System model section. Problem formulation and solutions section gives the problem formulation and detailed solutions. Performance evaluations are described in Performance evaluation section, and finally, the paper is concluded in Conclusion section.
Related works
By deploying servers near users, MEC can provide additional computing services for mobile devices. Users can get lower latency and less energy consumption by offloading their computing tasks to edge servers. In order to fully realize the convenience of edge computing under the limitation of channel resources and computing capacity of edge servers, scholars used different excellent methods to optimize edge computing.
Common methods are primaldual optimization [10, 11], nonlinear optimization [7, 12, 13] and mixedinteger linear programming problem [14, 15]. In [10], an online truthful mechanism based on the primaldual optimization framework integrating computation and communication resource allocation is proposed. For multiuser wireless powered mobile edge computing (WPMEC) systems, an online computation rate maximization (OCRM) algorithm is proposed by jointly managing the radio, computational resources, allocating time for energy transfer and data transmission [11].
Qi et al.[7] formulated the offloading decision as a resource scheduling problem with single or multiple objective functions and constraints. Bai et al.[12] conceived an energyefficient computation offloading technique for UAVMEC systems and formulated many energyefficiency problems, which are then transformed into convex problems. In [13], Alghamdi et al. tackled the MEC problem by adopting the principles of optimal stopping theory contributing to two timeoptimized sequential decisionmaking models. Guo et al. [14] forced on the problem of assigning resources for offloading the computationally intensive tasks of mobile applications. The original static offloading problem was formulated as a mixedinteger linear programming problem, and then be solved by an efficient heuristic approach based on congestion awareness. A cloudmobile edge computing collaborative task offloading scheme with service orchestration (CTOSO) is proposed in [15]. In [16], a novel Baseline Data based Verifiable Trust Evaluation (BDVTE) scheme is proposed to guarantee credibility at a low cost.
In recent years, optimization methods based on reinforcement learning [17â€“20] and artificial intelligence [21, 22] have emerged. A reinforcement learningbased online computation offloading approach for block chainempowered mobile edge computing was proposed in [17]. In [18], deep reinforcement learning is first proposed to solve the offloading problem of multiple service nodes for the cluster and multiple dependencies for mobile tasks in largescale heterogeneous MEC. Gao et al. investigated a DNN based MEC scheme considering multiple mobile devices and one MEC server in [19]. A Qlearning based flexible task scheduling with global view (QFTSGV) scheme is proposed to improve task scheduling success rate, reduce delay, and extend lifetime for the IoT in [20]. Miao et al. [21] put forward a new intelligent computation offloading based MEC architecture in combination with artificial intelligence (AI) technology. A matrix completionbased Sampling Points Selection joint Intelligent Unmanned Aerial Vehicle (UAVs) Trajectory Optimization (SPSIUTO) scheme for data acquisition is proposed in [22]. With different system models, existing researches have contributed a lot to solve the above problems in MEC. However, most of them do not consider the queuing delay after the task is offloaded to the server, and also rarely consider the channel interference between mobile devices.
Genetic algorithm (GA) is a mature optimization algorithm, which is very stable in solving optimization problems. GA can obtain the global optimal solution which is independent of the initial conditions. Also, GA has strong robustness and is suitable for solving complex optimization problems. In some researches, GA has been applied to the optimization of MEC and fog computing.
Xu et al.[23] proposed an energyaware computation offloading method for smart edge computing in wireless metropolitan area networks, which adopt Nondominated Sorting Genetic Algorithm II (NSGAII) to realize multiobjective optimization to shorten the offloading time of the computing tasks and reduce the energy consumption of the ECNs. Goudarzi et al. [24] used GA and adjust it for the multisite offloading problem. Also, genetic operators are modified to reduce ineffective solutions and hence obtain the best possible solutions in a reasonable time. A modified GA, named energy sensitive GA, is developed and integrated to get the optimized task offloading result in [25], which is critical to most cloud robotic network applications.
Du et al. [26] minimize the total system overhead of the MEC system by jointly optimizing computation offloading decision making and communication channel allocation with GA. Li et al. solved a costminimization problem for the MEC problem using an improved genetic algorithm [27], but the offloading latency is not taken into account and tested. Wu et al. [28] proposed a distributed priority offloading mechanism with joint offloading proportion and transmission (PROMOT) energy algorithm based on Genetic Algorithm. PROMOT uses the offloading probability, which is given by the prior information of past offloading feedbacks, to determine if a task should be processed locally or remotely. Many of the above studies have cleverly combined GA with MEC. One disadvantage of GA is its uncertain convergence. The poor parameter setting is easy to lead to local optimum or slow convergence. However, many of the above works do not consider the convergence of the genetic algorithm.
Different from existing researches, in this paper, (1) a user grouping strategy is proposed considering both geographical distribution and base station load of the servers. (2) Queuing theory is introduced to analyze the queueing time of tasks and signal interference between mobile devices is fully considered. (3) To improve the scalability of the algorithm, the original multiuserto multiserver problem is divided into several independent subproblems, which can be processed independently and in parallel. (4) To optimize the convergence performance of GA, the crossover probability(C_{P}) and mutation probability(M_{P}) are fully analyzed and the optimal value is recommended. Finally, a genetic algorithmbased distributed offloading strategy is proposed to obtain the optimal solution with high efficiency and low deployment overhead.
System model
Without loss of generalit, Orthogonal Frequency Division Multiple Access (OFDMA) technology is adopted for the 5G environment in this work. Each BS is equipped with an edge server with limited computing capacity. The data transmission delay between the BS and its edge server is so small that it can be counted as zero. The geographical distribution of users follows the Geometric distribution. On the other hand, each user device generates a computing task obeying the Poisson distribution in each time slot. And each computing task can not be divided, i.e., the task must be processed either locally or offloaded.
Network model
As shown in Fig.Â 1, m base stations are denoted as set B={b_{1},b_{2},â€¦,b_{m}}, each of which is fixed with an edge server. The set of m servers is marked as S={s_{1},s_{2},â€¦,s_{m}}. End users U={u_{1},u_{2},â€¦,u_{n}} are distributed in the area with geometric distribution. The set of computing tasks generated by all users is denoted as T={t_{1},t_{2},â€¦,t_{n}}. Because of the high density of 5G BSs, the coverage area of servers will overlap with each other. That is to say, most users will be covered by more than one BS.
About the mobility of endusers. In the area of high population density, users move at 23 kilometers per hour and vehicles run at about 20 kilometers per hour, whose shift is relatively small for a 5G cellular station with a coverage radius of 500 to 1000 meters. Therefore, it can be assumed that the endusersâ€™ position is approximately stationary in each given time slot.
Communication model
As mentioned earlier, user devices transmit data with the BS through the wireless channel. The data transmission rate is determined by the general communication model, ShannonHartley theorem [29]:
where \(W_{b_{j}}\) denotes the bandwidth of BS b_{j}, N denotes the number of users the BS b_{j} served, \(p_{u_{i}}\) denotes the transmission power of user \(\phantom {\dot {i}\!}u_{i}, g_{u_{i}, b_{j}}\) denotes the channel gain between user u_{i} and BS b_{j}, and Ï‰ denotes background noise. Because the edge server is equipped on the BS, the transmission delay between them is very small, which can be regarded as zero. Therefore, the data transmission rate between the BS and the user equipment can directly be used to represent the data transmission rate between the user equipment and the edge server:
The notations of this paper are summarized in TableÂ 1.
Computation model
\(F_{s_{j}}\) is used to represent the CPU frequency of the edge server s_{j}. \(W_{b_{j}}\) is the bandwidth of BS b_{j}. For a task t_{i}, two indicators are used to describe it, one is the size of input data \(D_{t_{i}}\), the other is the CPU cycle \(C_{t_{i}}\) it needs. Due to the small amount of data in the calculation result, the latency of the result back to the userâ€™s device is ignored.
Local processing model
If a task t_{i} is processed locally, its energy consumption and latency can be easily calculated, because the data transmission is not needed to be considered. Its latency will only be related to the computing capacity of the mobile device and the CPU cycle needed to calculate the task:
Its energy consumption can be calculated by the following formula:
where Î± represents the energy consumption generated by the device in each CPU cycle. In this paper, the model in [30] is used to calculate the value of Î±:
where Îº is the energy consumption coefficient.
MEC processing model
In the model of this work, we assume that it is serial computing rather than parallel computing when the tasks are offloaded to the edge server, so we should consider the queuing situation of the tasks. If a task t_{i} is offloaded to the edge server for processing, its latency includes three parts: transmission latency, queuing latency, and calculation latency, and its energy consumption is equal to the transmission energy consumption. The following formula can calculate the transmission latency of the task:
We consider an M/M/1 queue on the edge server s_{j}. Therefore, the queuing latency and calculation latency mentioned above will be combined as processing latency. According to queuing theory, average processing delay can be calculated by the following formula:
where \(\mu _{s_{j}}\) represents the task processing rate on the server s_{j} and \(\lambda _{s_{j}}\) is the task arrival rate. In this case, the energy consumption generated by the equipment only includes data transmission energy consumption:
Problem formulation and solutions
In this section, the problem is formulated mathematically and the proposed solution is described in detail.
Problem formulation
The ultimate optimization goal of this work is to make an offloading decision for balanced latency and user energy consumption. For a single user, its possible offload options include local processing and offloading task to a reachable BS server for processing. k_{i} is used to represent the offloading decision of task t_{i}. If k_{i} is equal to 0, it indicates that the task is processed locally, otherwise, k_{i} indicates the BS server index of task offloading. Then, a set K={k_{1},k_{2},â€¦,k_{n}} is used to represent the offloading decisions of all users.
For a certain offloading decision k_{i}, the latency of task t_{i} can be calculated according to the following formula:
Similarly, the following formula can be used to calculate the energy consumption of t_{i}:
Here, a user overhead \(H_{u_{i}}\) is introduced, which is equal to user task latency plus energy consumption. Since these two values are of similar magnitude, overhead is not normalized.
where Î² is a tradeoff parameter. When Î² is close to 1, it pays more attention to latency performance. When Î² is close to 0, it pays more attention to energy consumption performance. Users can set it according to their own needs. Thus, the total overhead of all users can be calculated by following formula:
The optimization objective of this paper is to reduce the total latency and energy consumption of users, which can be summarized as the following optimization objective function:
Constraint (1) indicates that offloading selection is an integer optimization problem, and constraint (2) indicates that the task arrival rate on the BS server is less than the processing rate. This problem is a very difficult nonlinear integer optimization problem [9], which motivates us to explore an efficient scheme to find suboptimal solutions.
User grouping strategy based on preferences
To reduce the complexity of the original problem, we first group the users. This means that the user will first select a specific BS as the destination for task offloading. Generally speaking, an intuitive solution is to assign mobile users to the nearest BS since a closer distance means better communication conditions. However, when the spatial distribution of mobile users is uneven, this solution will lead to an overload of BS for high user density. Therefore, this proposes the strategy of preference first to allocate users. \(pre_{u_{i}}^{b_{j}}\) is used to express the preference from user i to BS j, which is determined by the following formula:
where \(d_{u_{i}}^{b_{j}}\) is distance between user i and BS j. \(C_{b_{j}}\) represents the signal coverage of BS j. The user device will request load data from the base station. Then \(load_{b_{j}}\) indicates the load of BS j, that is, the number of users that have been allocated to it. n is the total number of users.
We traverse all users and use grouping strategy to decide where to offload its task, and here is a detailed description of the user grouping strategy based on preferences.

1
First, the user calculates the distance to all the reachable BSs and queries the workload of all BSs.

2
Second, the user calculates its preference for all reachable BSs according to Formula (14).

3
Finally, the user selects a BS offloading task with the greatest preference value.
Algorithm 1 is the pseudocode of SPF.
Genetic algorithm based distributed offloading strategy
Mobile users need to select one of the reachable edge servers for task offloading. To obtain the optimal offloading option is a combinatorial explosion problem. In this paper, a genetic algorithm based distributed offloading strategy is proposed. The general idea of the strategy is as follows and Fig.Â 2 gives an intuitive flow chart of process.

First, according to the user grouping strategy based on preferences (Algorithm 1), mobile users are assigned to the BS with the highest preference as a destination to offload tasks. The preference is determined by a tradeoff computation of both distance and workload. On the one hand, the closer the distance between the BS and the user, the larger the preference value is. On the other hand, the smaller the BSâ€™s workload, the larger the preference value.

Then, the original problem will be decomposed into multiusertosingleserver subproblems, which means that each BS is responsible for only a few users. In each group, users either process locally or offload tasks. So the subproblems are 01 selection problems. Because these subproblems are independent of each other, they can be processed in a distributed parallel.

Finally, genetic algorithm (GA) is used on each edge server to solve the 01 selection problems and get nearoptimal offloading decisions.
The optimization objective of this paper is modeled as a very complex 01 nonlinear optimization problem. Moreover, there is no polynomialtime complexity algorithm for this problem. Therefore, this paper uses a heuristic algorithm to reduce the complexity and obtain the approximate solution. GA is a method to search the optimal solution by simulating the natural evolution process [31], and itâ€™s widely used in optimization problems.
In this paper, due to the 01 selectivity of subproblems, the binary coding is adopted to encode genes. Each chromosome represents the offloading decision of a subproblem. If the gene of a user is 0, the task will be processed locally, and if 1, the task will be offloaded.
In the theory of evolution, fitness refers to the adaptability of an individual to the environment and the ability of the individual to reproduce. The fitness function of the GA is also called the evaluation function, which is used to judge the quality of individuals in the group. It is evaluated according to the objective function of the problem. The optimization goal of our model is to make the total latency and energy consumption of users as small as possible, so the following fitness function is adopted:
The formula above shows that, the larger the total overhead, the lower the fitness.
Three operators in GA are as follows:

1
Selection operator: Roulette wheel selection is used in this paper. The basic idea is that the probability of each individual being selected is proportional to its fitness.

2
Crossover operator: As shown in Fig.Â 3, a twopoint crossover operator is adopted, which refers to the random selection of two points in an individual gene, and then carry out gene exchange. The crossover probability is denoted as C_{P}. After extensive preliminary tests and convergence analysis, C_{P} is set to 0.5.

3
Mutation operator: Uniform mutation is adopted here, which means every gene is mutated according to a certain probability. The mutation probability is denoted as M_{P}. M_{P} is set to 0.001 according to preliminary test results.
The setting of C_{P} and M_{P} are detailed in Impact of tradeoff parameter on GABDOS section Algorithm 2 is the pseudocode of GA.
Time complexity analysis of proposed offloading strategy
Assuming there are N BSs and M users, the proposed offloading strategy can be divided into two parts. First, each user needs to traverse all the reachable base stations to select the base station with the highest preference. Therefore, the time complexity of this part is O(NÃ—M). Then, each base station needs to calculate the optimal offloading decision. Since all base stations can process the step in parallel, the time complexity of a certain base station can represent the time complexity of this part. Since GA is adopted here, the time complexity of this part is mainly related to the parameters of GA. G is used to represent the generation of GA. P is used to represent the population.The size of the individuals is equal to the number of users. Therefore, the time complexity in this part can be summed up as O(GÃ—PÃ—M). The time complexity of the latter part accounts for the main part of the whole algorithm. The convergence of GA has a great impact on its time complexity, so its convergence described in detail in the next section.
Performance evaluation
In this section, the impact of various indicators on user latency and energy consumption is tested, including user amount, the computing capacity, and the transmission power of user equipment. At the same time, the influence of the tradeoff parameter Î² and the convergence of GA is also evaluated.
The following offloading strategies are used as benchmarks for this work:

1
All local processing strategy (ALP). In this extreme case, all tasks of the user are processed locally, which is the optimal solution for the minimum latency without considering usersâ€™ energy consumption.

2
All offloading strategy (AOS), which means all the user tasks are offloaded to a random reachable edge server. Generally, offloading local tasks to the edge server will help reduce latency and save energy for users. However, due to the limited channel resources, if all usersâ€™ tasks are offloaded, it is likely to cause serious signal interference and channel preemption, thus greatly reducing the efficiency of data transmission. Eventually, the energy consumption and latency of AOS will be greatly increased.

3
PROMOT [28], which is based on the Genetic technology as our work, is a priority offloading mechanism with joint offloading proportion and transmission (PROMOT) energy algorithm. It uses an offloading probability to determine if a task should be processed locally or remotely. The probability is computed from the prior information of past offloading feedbacks.
As shown in Fig.Â 4, the simulation is set in a 500mÃ—500m square area. There are 9 BSs in total, and the plane positions of all users are randomly distributed. The basic parameters of the simulation are summarized in TableÂ 2.
Performance for offloading efficiency
The proposed grouping strategy and GABDOS are compared with the ALP (referred to as the optimal solution for the lowest latency), the AOS and the PROMOT, in terms of the total overhead, the average latency and the energy consumption of user devices.
Impact of user amount on offloading efficiency
FigureÂ 5 gives the overhead of different solutions with different user density. The overhead is a comprehensive measurement of user task latency plus energy consumption. It can be concluded that GABDOS has minimal overhead with various user density. This advantage is more and more obvious with the increase of the user amount compared with AOS. This is because the GABDOS can split the load of BS, while the PROMOT did not consider the workload variation of BSs. When the user amount is too large, AOS will lead to fierce channel resources and server resources preemption, thus significantly improving the latency and energy consumption of users. Compared to ALP, although GABDOS will cost user devicesâ€™ energy consumption for offloading, it leads to an effective improvement in latency performance.
FigureÂ 6 gives the latency performance. As expected, without considering energy consumption, ALP reaches the optimal latency for processing all tasks locally, which in practice can be used as the lower bound of latency. GABDOS performs very close to ALP which has the best latency performance, PROMOT places in the middle, while AOS performs the worst. This because when all users offload the task in AOS, they will interfere with each other and occupy limited channel resources. This will inevitably lead to a decrease in data transmission rate, thus increasing the transmission latency. At the same time, AOS will make the edge server overburdened and increase the task processing latency. PROMOT has two highest delay points at user amount 60 and 100, respectively. This may because when the user density exceeds some threshold, it spends time collecting the prior offloading information to refresh its offloading probability to make a further decision.
FigureÂ 7 shows the energy consumption performance of these strategies. When the user amount is less than 50, AOS has the best energy performance. Because, in this situation, the channel resources are relatively abundant, even if all users offload tasks, they can get a very high transmission rate. However, with the increase of user amount, the total energy consumption of AOS first exceeds that of GABDOS and PROMOT, and finally exceeds that of ALP. Because with the increase of the user amount, AOS will lead to a sharp decline in the channel transmission rate, thus greatly increasing the transmission energy consumption. Obviously, when the user amount is large, GABDOS has the best energy performance.
Impact of user device CPU frequency on offloading efficiency
In this section, the impact of the computing power of mobile devices on the total latency and energy consumption is tested.
It can be concluded from Fig.Â 8 that as the computing capacity of mobile devices increases, the decreasing effect of average latency becomes smaller and smaller. The curve of GABDOS and ALP is very close, which shows that GABDOS has made full use of the latency performance gain brought by the increase of device CPU frequency. PROMOT is more insensitive to the increase of device CPU frequency since it makes the offloading decision based on prior probability. The reason why the decreasing effect of average latency becomes smaller with the computing capacity of mobile devices increasing will be discussed in our future work.
From Fig.Â 9, it can be told that all the curves except AOS are almost linear growth. GABDOS has the lowest energy consumption when the device CPU frequency is higher than 0.2 GHz. PROMOT consumes the most energy except AOS when the device CPU frequency is low. With the increase of device CPU frequency, PROMOTâ€™s energy consumption exceeds ALP. Thatâ€™s because the higher the device CPU frequency is, the higher the energy consumption of local processing tasks is. The above simulation results show that it is uneconomical to blindly increase the computing capacity of mobile devices.
Impact of tradeoff parameter on GABDOS
The tradeoff parameter Î² can be used to adjust the userâ€™s optimization preference. If the optimization latency is focused on, the Î² value can be set closer to 1. If the energy consumption optimization is focused on, the Î² value can be set closer to 0. For example, when the remaining power of the userâ€™s equipment is small and the task is not sensitive to latency, like image recognition, then the value of Î² can be set closer to 0. On the contrary, if the userâ€™s device is fully charged and many tasks are delaysensitive, such as online games, Î² can be set closer to 1, so that the user can get a better experience. It can be concluded that the proposed GABDOS is flexible.
It can be concluded from Fig.Â 10 that with an increase of Î², the average latency of users has a significant decline. From Fig.Â 11, it can be concluded that the total energy consumption of users increases with an increase of Î². This means that adjusting Î² can effectively control the objective of the optimization.
Convergence analysis of GABDOS
Convergence is a matter of concern in GA. Since the proposed GABDOS is based on genetic algorithm, it is necessary to analyze the convergence of the algorithm.
Impact of crossover and mutation probability
It is known that the crossover probability C_{P} and the mutation probability M_{P} have a direct impact on the convergence of the genetic algorithm. The larger C_{P} is, the faster the new individuals will be generated. However, excessive C_{P} will lead to the destruction of the genetic model. On the contrary, if C_{P} is too small, the search process will be slow or even stagnant. For M_{P}, a small value will lead to the slow generation of new individuals, and it is easy for the algorithm to fall into the local optimum. A toolarge M_{P} will make the algorithm become a pure random search algorithm.
To derive the optimal setting of C_{P} and M_{P}, the convergent generation and maximum fitness of the algorithm under different crossover and M_{P} are tested. As shown in Fig.Â 12, the algorithm converges extraordinary fast when M_{P} is small. However, through Fig.Â 13, it can be found out that the maximum fitness of the population is not optimal. It shows that the algorithm does not converge to the optimal solution, but falls into the local optimum. On the other hand, it is almost difficult for the algorithm to converge when M_{P} is set to a large number since the algorithm is close to random search. In the same way, we can see from Fig.Â 12 that the convergence of the algorithm is very slow when M_{P} is set very largely. Finally, according to Figs.Â 12 and 13 we confirm that the optimal crossover and M_{P} are 0.5 and 0.001 respectively.
Convergence of GA
In this subsection, we analyzed the maximum fitness in each generation when C_{P} and M_{P} were set to 0.5 and 0.001 respectively. The xaxis of Fig.Â 14 represents the generation of algorithm iteration, and the yaxis is maximum fitness in each generation of the population. The maximum fitness individual in the population corresponds to a specific offloading strategy. The larger its value is, the smaller the userâ€™s overhead is. Also, it can be concluded that the algorithm converges in the 50th generation. Moreover, according to the analysis of C_{P} and M_{P}, we can make sure that the algorithm has converged to the global optimum.
Evaluation summary
Among all the simulation benchmarks, the proposed GABDOS has the best performance in terms of delay and energy consumption. In a 120users network, compared with PROMOT, GABDOS reduces latency by 78% and energy consumption by 11%.
Conclusion
In this paper, a multiusertomultiservers offloading decision (MUMS) problem is proposed for edge computing in ultradense 5G cellular networks. The MUMS problem is divided into two phases and conquered one by one. The first phase is to group users to BS according to a preference metric that considers both proximity and workload of the BS. After that, the original problem is decomposed into several subproblems with 01 selectivity, and then a genetic algorithm named as GABDOS is designed to solve these subproblems in parallel. It is verified that the proposed scheme can give a balanced offloading decision for low latency and user energy consumption.
Availability of data and materials
There is no supporting data available.
References
Mach P, Becvar Z (2017) Mobile Edge Computing: A Survey on Architecture and Computation Offloading. IEEE Commun Surv Tutorials 19(3):1628â€“1656. https://doi.org/10.1109/COMST.2017.2682318.
Hsieh HC, Chen JL, Benslimane A (2018) 5g virtualized multiaccess edge computing platform for iot applications. J Netw Comput Appl 115:94â€“102. https://doi.org/10.1016/j.jnca.2018.05.001.
Tomkos I, Klonidis D, Pikasis E, Theodoridis S (2020) Toward the 6g network era: Opportunities and challenges. IT Prof 22(1):34â€“38.
Bhushan N, Li J, Malladi D, Gilmore R, Brenner D, Damnjanovic A, Sukhavasi RT, Patel C, Geirhofer S (2014) Network densification: the dominant theme for wireless evolution into 5g. IEEE Commun Mag 52(2):82â€“89.
Du J, Yu FR, Chu X, Feng J, Lu G (2019) Computation offloading and resource allocation in vehicular networks based on dualside cost minimization. IEEE Trans Veh Technol 68(2):1079â€“1092. https://doi.org/10.1109/TVT.2018.2883156.
Sun H, Zhou F, Hu RQ (2019) Joint Offloading and Computation Energy Efficiency Maximization in a Mobile Edge Computing System. IEEE Trans Veh Technol 68(3):3052â€“3056. https://doi.org/10.1109/TVT.2019.2893094.
Qi Q, Wang J, Ma Z, Sun H, Cao Y, Zhang L, Liao J (2019) KnowledgeDriven Service Offloading Decision for Vehicular Edge Computing: A Deep Reinforcement Learning Approach. IEEE Trans Veh Technol 68(5):4192â€“4203. https://doi.org/10.1109/TVT.2019.2894437.
Poularakis K, Llorca J, Tulino AM, Taylor I, Tassiulas L (2019) Joint Service Placement and Request Routing in Multicell Mobile Edge Computing Networks. Proc IEEE INFOCOM 2019April:10â€“18. https://doi.org/10.1109/INFOCOM.2019.8737385.
Tran TX, Pompili D (2019) Joint task offloading and resource allocation for multiserver mobileedge computing networks. IEEE Trans Veh Technol 68(1):856â€“868. https://doi.org/10.1109/TVT.2018.2881191.
Li G, Cai J (2020) An online incentive mechanism for collaborative task offloading in mobile edge computing. IEEE Trans Wirel Commun 19(1):624â€“636. https://doi.org/10.1109/TWC.2019.2947046.
Li C, Tang J, Luo Y (2019) Dynamic multiuser computation offloading for wireless powered mobile edge computing. J Netw Comput Appl 131:1â€“15. https://doi.org/10.1016/j.jnca.2019.01.020.
Bai T, Wang J, Ren Y, Hanzo L (2019) Energyefficient computation offloading for secure uavedgecomputing systems. IEEE Trans Veh Technol 68(6):6074â€“6087. https://doi.org/10.1109/TVT.2019.2912227.
Alghamdi I, Anagnostopoulos C, Pezaros DP (2019) On the optimality of task offloading in mobile edge computing environments In: 2019 IEEE Global Communications Conference (GLOBECOM), 1â€“6, Hawaii. ISBN 9781728109626. https://doi.org/10.1109/GLOBECOM38437.2019.9014081.
Guo K, Yang M, Zhang Y, Jia X (2019) Efficient resource assignment in mobile edge computing: A dynamic congestionaware offloading approach. J Netw Comput Appl 134:40â€“51. https://doi.org/10.1016/j.jnca.2019.02.017.
Huang M, Liu W, Wang T, Liu A, Zhang S (2020) A cloudâ€“mec collaborative task offloading scheme with service orchestration. IEEE Internet Things J 7(7):5792â€“5805. https://doi.org/10.1109/JIOT.2019.2952767.
Huang S, Liu A, Zhang S, Wang T, Xiong N (2020) Bdvte: A novel baseline data based verifiable trust evaluation scheme for smart network systems. Trans Netw Sci Eng I:1â€“1. https://doi.org/10.1109/TNSE.2020.3014455.
Qiu X, Liu L, Chen W, Hong Z, Zheng Z (2019) Online Deep Reinforcement Learning for Computation Offloading in BlockchainEmpowered Mobile Edge Computing. IEEE Trans Veh Technol 68(8):8050â€“8062. https://doi.org/10.1109/tvt.2019.2924015.
Lu H, Gu C, Luo F, Ding W, Liu X (2020) Optimization of lightweight task offloading strategy for mobile edge computing based on deep reinforcement learning. Futur Gener Comput Syst 102:847â€“861. https://doi.org/10.1016/j.future.2019.07.019.
Gao M, Cui W, Gao D, Shen R, Li J, Zhou Y (2019) Deep neural network task partitioning and offloading for mobile edge computing In: 2019 IEEE Global Communications Conference (GLOBECOM), Waikoloa, 1â€“6. https://doi.org/10.1109/GLOBECOM38437.2019.9013404.
Ge J, Liu B, Wang T, Yang Q, Liu A, Li AQlearning based flexible task scheduling in a global view for the internet of things. Trans Emerg Telecommun Technol:4111. https://doi.org/10.1002/ett.4111.
Miao Y, Wu G, Li M, Ghoneim A, AlRakhami M, Hossain MS (2020) Intelligent task prediction and computation offloading based on mobileedge cloud computing. Futur Gener Comput Syst 102:925â€“931. https://doi.org/10.1016/j.future.2019.09.035.
Liu X, Song H, Liu A (2020) Intelligent uavs trajectory optimization from spacetime for data collection in social networks. Trans Netw Sci Eng I:1â€“1. https://doi.org/10.1109/TNSE.2020.3017556.
Xu X, Li Y, Huang T, Xue Y, Peng K, Qi L, Dou W (2019) An energyaware computation offloading method for smart edge computing in wireless metropolitan area networks. J Netw Comput Appl 133:75â€“85. https://doi.org/10.1016/j.jnca.2019.02.008.
Goudarzi M, Zamani M, Toroghi?Haghighat A (2017) A geneticbased decision algorithm for multisite computation offloading in mobile cloud computing. Int J Commun Syst 30(10):1â€“13. https://doi.org/10.1002/dac.3241.
Guo Y, Mi Z, Yang Y, Obaidat MS (2019) An energy sensitive computation offloading strategy in cloud robotic network based on ga. IEEE Syst J 13(3):3513â€“3523.
Du C, Chen Y, Li Z, Rudolph G (2019) Joint optimization of offloading and communication resources in mobile edge computing In: 2019 IEEE Symposium Series on Computational Intelligence (SSCI), 2729â€“2734, Xiamen. https://doi.org/10.1109/SSCI44817.2019.9003099.
Kuang L, Gong T, OuYang S, Gao H, Deng S (2020) Offloading decision methods for multiple users with structured tasks in edge computing for smart cities. Futur Gener Comput Syst 105:717â€“729. https://doi.org/10.1016/j.future.2019.12.039.
Wang J, Wu W, Liao Z, Simon Sherratt R, Kim G, Alfarraj O, Alzubi A, Tolba A (2020) A probability preferred priori offloading mechanism in mobile edge computing. IEEE Access 8:39758â€“39767.
Mao Y, Zhang J, Letaief KB (2016) Dynamic computation offloading for mobileedge computing with energy harvesting devices. IEEE J Sel Areas Commun 34(12):3590â€“3605.
Tran TX, Pompili D (2019) Joint task offloading and resource allocation for multiserver mobileedge computing networks. IEEE Trans Veh Technol 68(1):856â€“868. https://doi.org/10.1109/TVT.2018.2881191.
Goldberg DE (1989) Genetic Algorithms in Search Optimization and Machine Learning. AddisonWesley Professional.
Yang Y, Ma Y, Xiang W, Gu X, Zhao H (2018) Joint optimization of energy consumption and packet scheduling for mobile edge computing in cyberphysical networks. IEEE Access 6:15576â€“15586. https://doi.org/10.1109/ACCESS.2018.2810115.
Chu X, LopezPerez D, Yang Y, Gunnarsson F (2013) Heterogeneous Cellular Networks Theory, Simulation and Deployment. Cambridge University Press. ISBN13: 9781107023093.
Acknowledgements
We thank Central South University and Changsha University of Science and Technology for funding this work by the Degree & Postgraduate Education Reform Project of Hunan Province under Grant 2019JGZD057, and the National Science Foundation of China under Grant 61872387, 61972055.
Funding
This work has been institutionally supported by the Degree & Postgraduate Education Reform Project of Hunan Province under Grant 2019JGZD057, and the National Science Foundation of China under Grant 61872387, 61972055.
Author information
Authors and Affiliations
Contributions
Authorsâ€™ contributions
Z. Liao carried out the experimental design, data analysis, interpretation, mathematical model design, and drafted the manuscript. J. Peng carried out the mathematical model design, B. Xiong participated in the experimental design, and J. Huang participated in conceptualization, implementation and approved the final manuscript.
Authorsâ€™ information
Zhuofan Liao received the Ph.D degree in computer science from Central South University, China, in 2012. From 2017 to 2018, she worked as a Visiting Scholar in University of Victoria in Canada. She is currently an Assistant Professor in the School of Computer and Communication Engineering at Changsha University of Science and Technology, China. Her research interests includes wireless networks optimization, big data and edge computing for 5G. Email: zfliao@csust.edu.cn.
Jingsheng Peng is currently pursuing the masterâ€™s degree with the Changsha University of Science and Technology. His research interests include mobile edge computing and big data placement optimization. He is good at C/C++ programming under Linux, and also familiar with Python. Email: jasonpeng@stu.csust.edu.cn.
Bing Xiong received the Ph.D. degree in Computer Science by masterdoctorate program from Huazhong University of Science and Technology (HUST), China, in 2009. Supported by China Scholarship Council, he worked as a visiting scholar in University of Temple, USA, from 2018 to 2019. He is currently an associate professor in the School of Computer and Communication Engineering, Changsha University of Science and Technology, China. His main research interests include softwaredefined networking, network measurements, and network security. He is a member of IEEE and China Computer Federation. Email: xiongbing@csust.edu.cn.
Jiawei Huang received the bachelorâ€™s degree from the School of Computer Science, Hunan University, in 1999, and the masterâ€™s and Ph.D. degrees from the School of Computer Science and Engineering, Central South University, China, in 2004 and 2008, respectively. He is currently a Professor with the School of Computer Science and Engineering, Central South University. His research interests include performance modeling, analysis, and optimization for wireless networks, and data center networks. Email: jiaweihuang@csu.edu.cn
Corresponding author
Ethics declarations
Competing interests
The authors declare that they have no competing interests.
Additional information
Publisherâ€™s Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the articleâ€™s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the articleâ€™s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Liao, Z., Peng, J., Xiong, B. et al. Adaptive offloading in mobileedge computing for ultradense cellular networks based on genetic algorithm. J Cloud Comp 10, 15 (2021). https://doi.org/10.1186/s1367702100232y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1186/s1367702100232y