An edge server deployment method based on optimal benefit and genetic algorithm

With the speedy advancement and accelerated popularization of 5G networks, the provision and request of services through mobile smart terminals have become a hot topic in the development of mobile service computing. In this scenario, an efficient and reasonable edge server deployment solution can effectively reduce the deployment cost and communication latency of mobile smart terminals, while significantly improving investment efficiency and resource utilization. Focusing on the issue of edge server placement in mobile service computing environment, this paper proposes an edge server deployment method based on optimal benefit quantity and genetic algorithm. This method is firstly, based on a channel selection strategy for optimal communication impact benefits, it calculates the quantity of edge servers which can achieve optimal benefit. Then, the issue of edge server deployment is converted to a dual-objective optimization problem under three constraints to find the best locations to deploy edge servers, according to balancing the workload of edge servers and minimizing the communication delay among clients and edge servers. Finally, the genetic algorithm is utilized to iteratively optimize for finding the optimal resolution of edge server deployment. A series of experiments are performed on the Mobile Communication Base Station Data Set of Shanghai Telecom, and the experimental results verify that beneath the limit of the optimal benefit quantity of edge servers, the proposed method outperforms MIP, K-means, ESPHA, Top-K, and Random in terms of effectively reducing communication delays and balancing workloads.


Introduction
With the rapid development of mobile Internet, mobile intelligent terminals fully penetrate social life and personate a mushrooming number of crucial roles in people's regular life [1].With the advent of the 5G era [2], the concept of "premises on safety construction, guided by data aggregation and computing, and driven by an extensive smart applications" has promoted the development of smart cities [3], and it has also led to the explosive growth in mobile service computing [4].Due to the limitation of mobile intelligent terminals' own computing resources, it is unable to process the growing requests in time for mobile service computing, which seriously affects the user experience of mobile users [5].Therefore, edge computing is formally proposed and developed rapidly [6][7][8].In edge computing environment, the functions of data processing are added at the edge close to data producers (that is, the uplink part of mobile service computing), and computing power and storage resources are distributed close to mobile intelligent terminals to supplement and optimize cloud computing.That is to say, the cloud is no longer responsible for all service requests in edge computing.The mobile intelligent terminal unloads the task to the edge server(ES) which is liable for base stations to process through the mobile communication base stations and returns the processing results [9].If the edge server cannot handle the task, it will be further unloaded to the cloud server [10,11].Therefore, in timely data analysis and intelligent handling of mobile service computing, edge computing has a broader application [12], and it is more effective and secure than simple cloud computing [13,14] .In the domain of edge service computing, most research works currently focus on the service tasks of mobile smart terminals, such as service offloading [15][16][17], service migration [18][19][20][21], micro-service Mashup [22], and so on.
To achieve efficient edge service resource optimization, many researchers model it as an optimization problem to solve [23][24][25][26].Furthermore, it is also a hot topic to introduce machine learning methods into edge computing [27][28][29][30].However, few researchers have observed that the effective deployment of edge servers is a pre-requisite for large-scale mobile service computing applications [31].An efficient and feasible edge server deployment has a significant impact on reducing deployment cost and communication delay, and improving efficiency and resource utilization [32,33].
In view of this, this paper focuses on the issue of providing an efficient and feasible edge server deployment scheme in mobile service computing environment, and proposes an edge server deployment model named HE-GA, which is used to achieve edge server deployment with the lowest communication delay and the most loadbalanced under the optimal benefit quantity limit.In this model, firstly, the volume benefit curve of deploying each edge server is calculated by probability modeling, and the optimal number of benefit deployment is obtained.Then, the load-balance and communication delay of the edge server are modeled.Finally, under the restriction of the optimal benefit quantity, it exploits genetic algorithm [34] to resolve the dual-objectives of balancing the load and reducing the communication delay, and gains an efficient and feasible deployment scheme of edge server.In summary, the main contributions of this paper are indicated as below: • Aiming at the issue of edge server deployment, the HE-GA model is proposed to achieve the dual-objective optimization of communication delay and load balance under the premise of satisfying the optimal benefits quantity.The HE-GA model can be applied to edge server deployment in smart cities.As far as we know, few scholars have conducted in-depth research in this topic.• Based on the HE-GA model, with the optimal benefit quantity limitation, the genetic algorithm is exploited to solve the dual-objective issue under multiple constraints to balance the load and reduce the commu-nication delay, to obtain an efficient and feasible edge server deployment solution.• On the basis of Mobile Communication Base Station Data Set of Shanghai Telecom, the comparative experiments and in-depth analysis are performed.
The experimental results demonstrate that, under the premise of satisfying the optimal benefit quantity, the proposed approach comprehensively outperforms five typical deployment methods such as MIP, K-means, AK-means, Top-K, and Random according to reducing the communication delay and balancing the workload.
The organization of this paper is arranged as: Introduction section briefly presents the research background and the main work of this paper; Related work section introduces the related work; HE-GA method section describes the provided HE-GA model exhaustively; Experiment and analysis section gives the experimental results and analysis.Eventually, Conclusion and prospect section summarizes this paper and expects its future work.

Related work
With the large-scale commercial application of the 5G network, service computing is penetrating social life in an all-around way at an unprecedented speed [35].Meanwhile, mobile intelligent terminals are widely used in our daily life, resulting in an unprecedented demand for ultralow latency, powerful computing, and storage capacity [36,37].Therefore, distributed deployment of computing power and resources close to customers has become a trend [38].In this context, mobile service computing can be regarded as an effective solution to promote the highquality development of smart city construction [4,6].
In the field of mobile service computing, there are many high-quality researches in the domestic and international, most of which focus on service offloading, service migration, server deployment and other aspects [7,8,39].However, every service computing task can only be performed after the successful placement of edge servers [40].So effective placement of edge servers is becoming a significant challenge in the field of mobile service computing [41], and this has led to a wealth of research results.For example, Yin et al. [42] proposed a decision-making sustain framework called Tentacle to deploy edge servers.Tentacle exploits dominant position of the increasingly elastic layout of edge servers to find appropriate unforeseen edge locations to optimize the total property and price of edge infrastructure, thus significantly improving efficiency and reducing the price of edge configuration.Cui et al. [43] modeled the problem of joint user coverage and edge server placement for network robustness, then proposed an optimal method based on integer programming.Wang et al. [32] formulated the edge server deposition issue of intelligent cities in mobile edge computing environments as a multi-objective constrained optimization issue.Then, to counterpoise the workload of edge server and minimize the access delay among mobile intelligent terminals and edge servers, they use MIP to gain the optimal response.Guo Feiyan [44] raised a mobile edge server placement medium called ESPHA based on an improved heuristic algorithm by combining K-means algorithm and AG algorithm to minimize access delay and load difference.Kasi et al. [39] formulated the edge server deposition issue as a multi-objective constrained optimization issue and then applied Genetic Algorithm and fractional search algorithm to obtain the optimal edge server deposition scheme.To provide low-latency and low-cost services in VANET networks, Zhang et al. [40] proposed a joint optimization approach for the deployment locations of edge servers and service coverage in urban areas.To address the limitations of service-intensive deployment in 6G environments, Cong et al. [9] presented a mobile resource sharing framework utilizing mobile edge servers.This framework enables large-scale edge resource sharing in the context of the IoT environment.Cui et al. [43] designed a redundant service deployment model in a heterogeneous edge environment to achieve high-quality QoS.The model targets the redundant deployment of services for different applications and utilizes a priority-based genetic algorithm to obtain an optimized solution.To obtain a more optimal resource allocation solution, Asghari et al. [41] refined the cellular mobile network into smaller regions and used the CRO algorithm to optimize resource allocation in each region.Fan et al. [38] proposed a novel joint resource management scheme based on the time-slot system that leverages endto-cloud collaboration, which effectively ameliorates the performance of DNN inference services in industrial IoT applications.The aforementioned works have optimized the deployment of edge servers from different perspectives and achieved good results.However, these works have not considered how to minimize the deployment cost of edge servers while obtaining maximum performance, i.e., achieving the deployment of edge servers with the lowest latency and balanced load under the constraint of optimal benefits.This would effectively balance the conflicting interests of operators and end users.
Inspired by above researches and the best communication collision benefit designed by Ji et al. [45], this paper proposes an edge server deployment method named HE-GA to obtain the lowest delay and the most load balance under the optimal benefit quantity limit, which is used to achieve high-quality distributed deployment of edge servers.The experimental results on the data set of mobile communication base station of Shanghai Telecom show that under the optimal benefit quantity limitation, the HE-GA method effectively counterpoises the load of the edge server and reduces the communication delay between edge servers and the base stations.

HE-GA method
This section includes four parts: Motivation section presents the research motivation of this paper, then lists the main symbols used below; Edge server deployment model section details the edge server deployment model; Finally, genetic algorithm is exploited to solve the issue in Genetic algorithm section.

Motivation
The edge server deployment is composed of cloud center layer, edge node layer, and terminal node layer in a typical mobile service computing system.And the main components of it include: • Cloud Service Center: it is still consistent with current cloud computing center.In mobile service computing system, it possesses the most powerful computing power and storage resources in the system.It provides all services for end users.The cloud service center communicates with all edge nodes.It is responsible for processing tasks with huge computing power demand and storing all results.At the same time, the cloud service center carries out distributed policy distribution management for the tasks of edge mobile service computing system.• Edge Node: it is mainly composed of edge server which has certain computing power and storage resources.It provides services to terminal users within its ability through reasonable deployment.Every edge server is liable for handling terminal user requests in a certain area through the base station.All edge servers unite to achieve the full coverage of the intelligent city at edge layer.Simultaneously, all edge servers are linked to cloud service center.They become the connection hub between the end users, mobile communication base stations, and the cloud service center.
The number and manner of deployment of edge servers are also the core of this paper's research.• Terminal Node: it mainly refers to mobile intelligent terminal.It has extremely limited computing power and storage resources.Its main task is to establish contact with the edge server through base stations, transmit the mobile intelligent terminal's service requisition to edge nodes or cloud service center, and present the final result to the user.
For the sake of the easement of characterization, the main insignias used below are enumerated here, as Table 1 shows.In mobile service computing environment, the edge server, communication base station, and mobile intelligent terminal can be modeled as a network, as Fig. 1 shows.The network can be defined as an undirected graph G = (V , E) , when V = B ∪ S(B represents base stations, S represents edge servers), and E indicates the communication link among base stations and edge servers.No connection between any two base stations, but they communicate through their respective edge servers.The communication links among mobile intelligent terminals and base stations are ignored because the issue is not the focus of this paper.Each base station and edge server have a fixed service area.The mobile intelligent terminal communicates with the edge server through the communication base station responsible for its own area and obtains the corresponding services.The number of mobile intelligent terminal services received by each edge server is regarded as its actual workload.The distance between edge servers and mobile communication base stations is regarded as the communication delay.In the following, we utilize t b to represent the workload of base station b, l b to represent the location of base station b, and l s to indicate the possible locations of edge server s, where b ∈ B , s ∈ S. Some key problems need to be identified.For example, How to calculate the optimal benefit quantity K (K = 1, 2, 3...) of the edge server, under the limitation of the optimal benefit quantity, how to select K (K = 1, 2, 3...) locations from the existing base station locations to deploy edge servers.In addition, how to achieve simultaneous optimization of communication delay and load equilibrium of edge server deployment under the premise of satisfying the optimal benefit quantity (dual-objective optimization)?It should be noted that in realistic scenarios, edge servers may be homogeneous or heterogeneous in each procurement and deployment, i.e., the computational and storage resources of edge servers may not be uniform.Therefore, it is indeed necessary to consider the deployment of edge servers in homogeneous and heterogeneous conditions separately in realistic scenarios.As the deployment of homogeneous edge servers still has certain practical significance, and this paper focuses on how to reasonably allocate existing mobile communication base stations to edge servers, the impact of the computing and storage resources of edge servers themselves on resource scheduling is not the main focus of this paper.Therefore, for the sake of modeling simplicity, this paper assumes that all edge servers have consistent computing power and storage resources, thus simplifying the application scenario.To sum up, based on realistic scenarios, the following assumptions are made in this paper: 1.Each edge server has the same delimited computing power and storage resources to process the service request of mobile intelligent terminal, and each base station will directly communicate with its own edge server to offload the tasks and return the result.2. No base station is shared between every edge server, and the sum of base stations responsible for edge servers is B. 3. The total workload assigned to each edge server does not exceed a predefined maximum value.Subsequently, the optimization objectives can be represented as: 1.The workload can be allocated to each edge server in a balanced way.2. Minimize the correspondence delay between edge servers and base stations.Take edge server S 2 in Fig. 1 as an example.Suppose there are four mobile communication base stations that communicate with the edge server S 2 and request respective services.The requested load by each base station is 4 for b 1 , 5 for b 2 , 8 for b 3 , and 9 for b 4 , respectively.Thus, the total load to be handled by the edge server S 2 is the sum of the loads requested by the mobile communication base stations b 1 − b 4 , i.e., T s 2 = 26 .It is necessary to identify a suitable location l s 2 to deploy the edge server S 2 to minimize the total communication delay d s 2 between the edge server S 2 and the four base stations.At the same time, it is necessary to balance the workload of the S 2 and other edge servers.That is, when deploying edge servers S 1 ,S 3 , it is necessary to minimize the gap between the total load T s 1 ,T s 2 , T s 3 handled by edge servers S 1 ,S 2 ,S 3 .

Setting of constraints and calculation of optimal benefit quantity
In above mobile edge computing network, suppose deployment locations of the edge servers as Probability of successful allocation of all base stations l = l 1 , l 2 , l 3 , . . ., l K , the edge server is represented as S = s 1 , s 2 , s 3 , . . ., s K , and the three constraints of the edge server deployment problem are formalized as follows: • Constraint 1: Any two edge servers do not share any base station directly, and the total amount of base stations that all edge servers are responsible for justly is mobile communication base station set B. • Constraint 2: For the edge server, any service request of the mobile intelligent terminal that establishes contact with it through its responsible mobile communication base station must be processed.• Constraint 3: To ensure the highest input-output benefit of mobile edge servers, the amount of deployed edge servers is less than the optimal benefit quantity, and the total load on each edge server does not exceed a predefined maximum value.

Lemma 1 If the edge server deployment benefit rate is
) , the number of edge server deployment with the highest benefits number is T opt s = arg max ρ.

Proof
Ji et al. [45] raised a channel selection method derived from the optimal communication collision benefit in 2014.

Inspired by this, we design a work benefit function for edge server deployment problems as follows:
As all edge servers in the application scenario of this paper are assumed to be homogeneous, it is convenient for calculation to assume that the hardware and deployment cost of each edge server are uniform.Thus, the deployment cost of a single edge server can be defined as the unit cost of deploying an edge server.Therefore, it can be assumed that the number of deployed edge servers is directly proportional to the deployment cost.
Assuming the total amount of base stations to be distributed is n, the total load of the i-th base station is t i , the load will be allotted to the edge server, and E s is the assemblage of base stations responsible for each edge server, then the total load T s of every edge server is: In the edge server deployment problem, every base station will be distributed to an edge server to be responsible for communication.There are two types of base station allocation states: 1 Unallocated status: the target base station has not been allocated yet. 2 Successful allocation status: the target base station has been successfully allocated to an edge server.
As all edge servers in the application scenarios considered in this paper are assumed to be homogeneous, the problem can be analogized to the following problem: there is a batch of available storage bins.The capacity of each storage box is equal and meets the requirements.We try to evenly distribute n balls into K bins under the premise of using as few bins as possible and maximize the use of each storage bin as possible.In this scenario, mobile communication base stations can be analogized to balls, and edge servers can be analogized to storage boxes.The probability p of each storage box being selected is equal.Therefore, the possibility of selecting any one of the K servers of one mobile base station is as below: Since there are n mobile communication base stations to be assigned, an edge server selects a base station while not selecting other base stations.At this time, the probability of a base station being allocated is p(1 − p) (n−1) , and the process is repeated for n times.Then the probability P s that all base stations have been assigned states on an edge server is: (1) Then, according to the above obtained probability, the number of successfully assigned base stations on K edge servers in a single complete assignment is: Thus, the successfully distributed workload t s to edge servers is: All other additional costs, such as hardware cost and communication loss, are converted into additional fixed load, which is recorded as t c .The deployment benefits rate ρ of edge server is as follows: Therefore, the number of deployments with the highest benefits for edge server deployment is:

Multi-objective optimization modeling
In the deployment process of an edge server, it is expected to achieve the lowest communication delay and the most balanced load simultaneously.Therefore, the deployment issue of edge servers can be converted to a multi-objective optimization problem under multiple constraints.That is to say, under the limits described in Setting of constraints and calculation of optimal benefit quantity section, the workload of any two edge servers is minimized, and the communication delay between edge servers and mobile communication base stations is also minimized [32].They can be formulated as the below formulas: Let L be total possible edge server deployment scheme, then l ∈ L is an edge server deployment scheme including K edge server deployment locations.T(l) and D(l) respectively represent the minimum load balancing of edge servers and the minimum access delay between edge servers and mobile communication base stations under scheme l.Let E s is the set of base ( 4) stations served by each edge server.At the same time, the constraints are formalized as follows: • All edge servers will be deployed, and no base station is shared between every edge server, and total base stations will be allotted to edge servers, i.e., • The deployment location of the edge server will be opted from the deployment locations of the mobile communication base stations, and the location will be shared with the base stations.Through the mobile communication base station responsible for the area, any mobile intelligent terminal will correspond with edge servers responsible for base stations and request services.The edge server will process the service request from the user and return the result (as Formula (1) shows).• To ensure the highest input-output benefit of mobile edge servers, the number of deployed edge servers must be conformed to the limit of optimal benefit quantity of deployed edge servers, and the total load on each edge server does not exceed a predefined maximum value, i.e., Generally speaking, the longer the physical/communication distance between two communication entities, the longer the signal propagation time/the routing transit time, resulting in a higher overall communication delay.Therefore, we define the distance between the mobile communication base station l b and the edge server at l s as the communication delay d(l b , l s ) , and the distance unit km is exploited as the basic unit for measuring communication delay.
In a word, we take all the mobile communication base station locations as candidates and find the best K locations to deploy K edge servers on premise of meeting three constraints and simultaneously achieving two optimization objectives.
Accordingly, the edge server deployment issue can be transformed to a single-objective optimization under multiple constraints with optimal solutions in a weighted form.The concrete process is described as below.
By integrating Formula (1) -Formula ( 12), and summarizing all assumptions and limitations in the paper, (10) the edge server deployment problem in mobile service computing network can be defined by the following formula: Where l is a m-dimensional decision variable, which represents the possible deployment position of the K edge server, minT(l) and minD(l) are the optimization objective functions of l under three constraints.Therefore, Formula (1) -Formula ( 12) are converted to a dual-objective optimization issue with three constraints recorded as Issue 1.Therefore, to gain Pareto optimal solution or the weak Pareto optimal solution of Issue 1, we utilize weighting medium to convert the dual-objective optimization issue under the three constraints expressed by Formula ( 13) to the single-objective optimization issue under the three constraints.
Suppose the weighting coefficients as w 1 and w 2 , where w w 1 ≥ 0 , w 2 ≥ 0 , and w 1 + w 2 = 1 .In this way, Issue 1 is converted to a single-objective optimization issue under three constraints called as Issue 2: The following will prove the edge server deployment issue is a NP-hard problem.

Proof
We turn the K-median issue into an edge server deployment problem.That is to say, given an integrated graph G ′ = (V ′ , E ′ ) , we measure its K-median.Therefore, we first construct a mobile service computing network The next problem is to choose a suitable location from G to deploy K edge servers.Aiming at this issue, we imitate it as a single-objective optimization with three constraints in G ′ in polynomial time complexity.The K-median problem of G ′ is justly the optimal solution for deploying edge servers (13 in G. Since K-median issue is a NP-hard problem [46], the edge server deployment issue in this paper is also a NP-hard problem.
The following parts will prove that the optimal solution of Issue 2 is justly the optimal solution of Issue 1.

Theorem 1
The solution of Issue 2 is the weak Pareto optimal solution of Issue 1.

Proof
If l ′ ∈ L is the solution of Issue 2, then invite l ′ ∈ L not be the weak Pareto optimal solution of Issue 1.It must be a solution l ∈ L making T (l) ≤ T (l ′ ) , D(l) ≤ D(l ′ ) .In the light of the assumption, when the weighting moduli w 1 , w 2 ≥ 0 , then w 1 * T (l) + w 2 * D(l) ≤ w 1 * T (l ′ ) + w 2 * D(l ′ ) .These conflicts the issue of supposing l ′ is the solution of Issue 2. Therefore, the hypothesis is not true, and l ′ is the weak Pareto optimal solution of Issue 1.
Theorem 2 If the weighting moduli w 1 , w 2 ≥ 0 , the solu- tion of Issue 2 is the Pareto optimal solution.

Proof
If l ′′ ∈ L is the solution of Issue 2 with correct weight- ing coefficient, then let l ′′ ∈ L not be the Pareto opti- mal solution.There must be a solution l ∈ L mak- ing T (l) ≤ T (l ′ ) , D(l) ≤ D(l ′ ) , and T (l) ≤ T (l ′′ ) , D(l) ≤ D(l ′′ ) .When the weighting coefficient w 1 , w 2 ≥ 0 , then w 1 * T (l) + w 2 * D(l) ≤ w 1 * T (l ′′ ) + w 2 * D(l ′′ ) .These conflicts the problem of supposing that l ′′ is the solu- tion of Issue 2. Thus, the assumption is not true, l ′′ is the Pareto optimal solution.

Genetic algorithm
In this section, GA [34] is exploited to solve the singleobjective problem under the three constraints.It's a random entire search and optimization medium.In this process, the optimal search space is automatically obtained and guided.The search direction is adaptively adjusted to acquire the optimal solution simultaneously.The general MIP method to solve this issue is iterative operation, but the generalized iterative medium is prone to mire in the local minimum pitfall, then emerge in an endless loop making the iteration impossible.As a global optimization algorithm, the GA well conquers the weakness.Moreover, the minimized communication delay and workload balance in this paper belong to a discrete optimization problem.The GA has a good application in this field, while other heuristic algorithms, such as particle swarm optimization, are more suitable for solving and optimizing some continuous problems.Therefore, GA is utilized to optimize the deployment of edge servers in mobile service computing environment, then some basic concepts and settings of GA are defined as follows: 1 Population: Different biological individuals combine to form different groups, such a group is called a population.The edge server set is respectively regarded as the edge server population. 2 Individual: Single organisms that make up a population.Each single edge server in the edge server set is justly an individual.3 Gene: A DNA fragment containing biological genetic information, that is, the individual genetic characteristics of the edge server.We utilize the transformed binary code of location information in the edge server as genes.4 Phenotype: The algorithm forms the external performance of individual according to the genetic information, that is, the external performance of individual is formed according to the genes of the edge server.5 Adaptability: The organisms that survive and reproduce in competition are better adapted to the environment.So, the adaptability is the evolutionary direction of the population.In the edge server deployment problem, the adaptability function is justly the final objective optimization function.6 Heredity: In the process of reproduction, the genes will be replicated and crossed normally, and they will mutate with a low probability.In the deployment of edge server, each generation is a set of solutions.7 Natural Selection: Individuals with high adaptability to their living environment in competition have more opportunities to participate in reproduction, and their offspring will be more and more.We utilize Stochastic Tournament to perform natural selection.That is to say, a pair of individuals are selected by roulette for each time, we let them to compete with each other, leaving individuals with high adaptability, then iterating until full edge servers are selected.8 Evolution: In this process, the adaptability of organisms to the external environment (objective function) is utilized as the criterion, and the traits of organisms are constantly improved and evolved which defined as an optimization process in the issue of edge server deployment.

Algorithm 1 HE-GA
Algorithm 1 shows the process of optimizing and solving the edge server deployment problem.It can be seen from Algorithm 1 that the edge server deployment problem to be solved by the GA is simulated as a biological evolution process, and the optimal solution of the issue is sought through continuous iterative evolution.The concrete process of it is as follows: 1 Randomly initialize the binary gene sequence of the edge server. 2 Take the objective function (formula 14) as the fitness of the individual.3 Assemble the genes of each population edge server as chromosomes.4 Screen the individuals of organisms based on their adaptability.5 The selected offspring is constantly reproduced through genetic operators, i.e., duplication, crossover, mutation, to complete natural selection and evolution.
6 When all chromosomes' adaptability scores exceed the threshold or reach the preset number of iterations, stop the loop to obtain the last generation population, i.e., edge server deployment location.
Since the individual adaptability in the final population obtained by genetic algorithm is relatively high, the minimum value of the multimodal function has a higher probability to exist in this population.If we take the matter having supreme adaptability in the population as the solution of the edge server deployment issue, the solution has a higher probability to be the optimal solution to the edge server deployment issue.

Data set and experimental settings
By the speedy advancement and accelerated penetration of 5G networks, the construction requirement of mobile communication base stations is growing rapidly.Its siting There are about 3000 valid base station information in 3233 base station data.There is no computing resource data such as CPU and memory in the data set.It only includes the initiate time and complete time of the access of mobile intelligent terminal.Therefore, we regard the application service time of the mobile intelligent terminal as the workload of edge servers and the distance between base stations calculated from the base station location information as the communication delay.Table 2 shows the statistical information of some base stations in the data set of Shanghai mobile communication base station.The Fig. 2 illustrates the assignment of 3233 mobile communication base stations in the data set of Shanghai Telecom mobile communication base station.Each red landmark in the Fig. 2 represents the deployment position of a mobile communication base station, and we can see that the overall distribution of it is uneven.Among them, the upper part of Fig. 2 is the distribution of base stations in key urban areas such as schools, commercial  centers and railway stations, and its coverage density is higher; the left and the lower part of Fig. 2 are mainly the distribution of base stations in other non-urban areas, and its coverage density is relatively low.In this context, the deployment of base stations should balance the interests of operators and the needs of mobile intelligent terminal users, while considering the load of edge servers and mobile communication delays under the limitation of optimal benefits, which is the motivation of this research.The experiment is performed in the programming environment of Python 3.6, and the GA package in the Scikit-opt swarm intelligence optimization algorithm library is utilized to achieve the optimization solution of edge server deployment.Through multiple adjustments, the optimal parameters of the GA are identified, i.e., the initial population=200, the number of iterations=500, and the mutation rate=0.5.

Load balancing
The standard deviation of load between edge servers is utilized as the evaluation metric of load balancing.If K edge servers must to be deployed in the mobile communication base station group, the standard deviation of load between edge servers is defined as: Where T i is the workload of the i-th edge server, T is the average workload of all edge servers.From Formula (15), we can see that the smaller the standard deviation of load between edge servers, the more balanced its load.

Communication delay
Another metric is the communication delay between edge servers and mobile communication base station.Due to the lack of communication delay data in the data set, we utilize the average distance between the edge server and the mobile communication base station to represent the communication delay.

Deployment rate
The deployment rate of edge server is defined as ER = K /n , when K is the quantity of edge servers deployed, then n is the number of mobile communication base stations.

Baseline methods
• MIP [32]: The mixed integer programming (MIP) method utilizes binary decision variables to indicate whether to allocate mobile communication base sta- tions to edge servers, and the location of each base station is a candidate for edge server deployment.
For each candidate value, a tag is given to consider both distance and workload to determine whether it is suitable for deploying edge servers.• ESPHA [44]: Firstly, it combines the K-means algorithm and the ant colony algorithm to introduce a pheromone feedback mechanism in the deployment of the edge server.And then, it sets the taboo table in the ant colony algorithm to accelerate the algorithms' convergence.At length, the ameliorated heuristic algorithm is utilized to gain the optimal deployment scheme of edge servers.• SA: It simulates the annealing process of solid materials in a physical scenario.Then, it takes a relatively high initial temperature as the starting state and undergoes a temperature parameter reduction process.At the same time, it employs the joint probability mutation characteristic to randomly search for the global optimal solution of the objective function.• K-means: First, it randomly assigns K cluster centers in the mobile communication base station cluster, and divides the base stations to be classified into each cluster according to the nearest neighbor principle.
Then it calculates the centroid of each cluster iteratively according to average medium until the shift distance of the cluster core is less than the threshold.The determined centroid situation is the deployment position of the edge server.• Top-K: The top K mobile communication base stations having the top workload are picked as the deployment locations of the edge servers, and the base stations are allocated to the neighboring edge servers according to the principle of proximity.• Random: K edge servers are randomly placed in the mobile communication base station cluster, and the base stations are apportioned to adjacent edge servers according to the principle of proximity.

Results and analysis
Tables 3, 4, 5, 6, 7, and 8, and Figs. 3, 4, 5, and 6 respectively present all the experimental results and their corresponding variation curves.From experimental results, it can be seen that the performance of HE-GA is superior than that of other methods in communication delay and workload balance.By summarizing the experimental results, we believe that the following two issues need to be considered for the deployment of edge servers.
• The relationship between cost and benefit should be considered during the investment in infrastructure such as mobile communication base stations, edge servers, and cloud service centers.Although the more infrastructure investment, the better technical indicators, but the corresponding cost of investment is higher.If the investment is too high, the rationality of the investment is debatable compared to its return.So, we specifically design the calculation method of the optimal benefit quantity.This is one of the research motivations in this paper.And none of the baseline approaches in this paper, including ESPHA, considers the optimal benefit quantity of edge server deployment.• Optimal benefit, communication delay between edge server and mobile communication base station, load balancing value of edge server all need to compromise with each other, to gain the optimal deployment scheme, but difficult to achieve the optimum for all three simultaneously.

Analysis of the results of different quantity of base stations under the optimal benefit quantity limit
We utilize the data of 3000 effective base stations in the Shanghai Telecom mobile communication base station   data set to obtain the optimal deployment number of edge servers and consequently its value is 300.At this time, the deployment rate ER is equal to 0.1 and the benefit rate ρ is equal to 0.36794.Tables 3, 4, 5, and 6 and Figs. 3 and 4 show the performance curve of edge server deployment under different edge server deployment methods during the number of mobile communication base stations increases from 300 to 3000 in the step of 300 when the deployment rate ER = 0.1 .The abscissa in the figure indicates the quantity of mobile communication base stations, and the ordinate indicates the load balancing of edge server and communication delay.On the whole, in consideration of the optimal benefits, the HE-GA method raised in this paper has the best overall performance.Specifically speaking, • In terms of communication delay, the HE-GA is the best.When the number of base stations is 3000, the communication delay of HE-GA is respectively 3.12%, 4%, 34.85%, 4.74%, 52.16%, and 58.04%, which is lower than those of ESPHA, MIP, SA, K-means, Random, and Top-K.The result indicates that under the constraint of optimizing the benefits, HE-GA achieves better communication delay compared to the baselines.Both Random and Top-K have high communication delay with significant fluctuations, and their overall performance is similar.However, when the number of base stations is 3000, the communication delay of Top-K more than that of Random by 3.87%.It is because that Shanghai, as an international metropolis, has a high population density and uneven distribution.Using the Top-K algorithm will give priority to base stations with a higher load, but ignores the load balance, which leads to higher communication delay.• In terms of the standard deviation of edge server load, Random and Top-k perform best.When the number of base stations is 3000, the load standard deviation of HE-GA is respectively higher than those of Random and Top-K by 390.95%, 492.32%.At this point, the load standard deviation of Top-K is 25.93%, which is lower than that of Random.Because the two methods give priority to process base stations with a higher load, especially Top-K, so that the load gap of edge server is not large.In this case, the load standard deviation of HE-GA is respectively lower than those of ESPHA, MIP, SA, and K-means by 2.8%, 7.09%, 23.07%, and 116.75%.This result illustrates that under the constraints of optimal benefit, HE-GA achieves a better load standard deviation of edge server compared to the mainstream approach.
Although Random and Top-K perform better in terms of load standard deviation, they do not con-sider optimal benefit and has poor communication delay performance.Therefore, their overall performance is average.K-means clusters the base stations with similar characteristics so that the base stations with similar load are more concentrated, that is to say, the base stations with the high load and low load are all more concentrated.However, the population density of Shanghai is too large and uneven, so the clustering effect is not ideal.Therefore, the K-means performs poorly in the comparative experiment of the load standard deviation of the edge server.• Overall, HE-GA achieves better performance under the constraint of optimal benefit.The baselines, such as ESPHA, MIP, SA, K-means, Random, and Top-K, do not consider the constraint of optimal benefit, thus failing to effectively balance the conflicting interests of network operators and end-users.HE-GA considers optimal benefit, communication delay between edge servers and mobile communication base stations, and balances loads of edge servers simultaneously, thereby obtaining the overall optimal deployment solution.

Analysis of the results of different edge server numbers under the same quantity of base stations
To consider impact of different deployment rates on the load balance and communication delay of edge server, we make an experimental analysis without the optimal benefit quantity limit.Tables 7 and 8 and Figs. 5 and 6 show the performance curve of edge server deployment under different edge server deployment methods while the quantity of mobile communication base stations is determined at 3000 and the quantity of edge servers increases from 100 to 500 in footsteps of 100.The abscissa indicates the quantity of edge servers, and the ordinate indicates the load balancing and communication delay of edge servers.On the whole, without the constraint of optimal benefits, the HE-GA method still achieves the best communication delay under the acceptable standard deviation of load, and the entire performance is the optative.Specifically speaking, • In the light of communication delay, the performance of the HE-GA is still the best on the whole.When the number of edge servers is 500, HE-GA achieves the reductions of communication latency by 11.75%, 19.84%, 42.56%, 28.74%, 64.64%, and 62.73% compared to ESPHA, MIP, SA, K-means, Random, and Top-K, respectively.This result indicates that even without the constraint of optimal benefits, HE-GA still achieves better performance in terms of communication latency compared to the baselines.Among all the methods, the communication delays of Random and Top-k decrease the fastest by the increasing quantity of edge servers deployed.Because newly added edge servers greatly improve the imbalance of edge server deployment caused by the above two methods, thus greatly reducing the communication delay, but its performance is still lower than the HE-GA method.It is worth mentioning that before the quantity of edge servers reaches 300, the communication delay of edge servers for all deployment methods decreases significantly, and the decrease is higher than that of the process while the quantity of edge servers increases from 300 to 500.• In the light of loads' standard deviation of edge servers, Random and Top-K still perform the best.When the number of edge servers is 500, the load standard deviation of HE-GA more than those of Random and Top-K by 398.87%, 490.04%, respectively.At this time, the load standard deviation of HE-GA is lower than ESPHA, MIP, SA, and K-means by 8.72%, 10.92%, 29.54%, and 183.53%, respectively.This result indicates that without the constraint of optimal benefits, HE-GA also achieves better load standard deviation of edge server compared to mainstream methods.It is also worth that in process of raising the quantity of edge servers from 100 to 300, except for Random, the loads' standard deviation of other deployment methods decreased significantly, and the decrease is higher than that of the process of raising the quantity of edge servers from 300 to 500.
On the whole, by the increasing quantity of edge server deployment, computing power and storage resources provided by the mobile service computing network also increase, so that each base station has the opportunity to allocate more computing power and storage resources to handle the service task requirements of its mobile intelligent terminal.The communication delay and loads' mean square error of the edge server will decrease rapidly with the raising of the quantity of edge servers, and the deployment effect of the edge server is better before reaching the optimal number of effective deployments.
In general, the HE-GA has the best performance in most cases.

Analysis on deployment rate
Due to the lack of equipment hardware cost, communication loss, and other additional cost data of edge system overhead data in the Shanghai Telecom mobile communication base station data set, we set the additional cost as about 90% of the overall cost according to empirical data.Thus, we obtain the optimal benefit curve of edge servers when the quantity of base stations n = 3000 , as Fig. 7 illustrates.In Fig. 7, the ordinate represents the optimal benefit rate of edge servers, and abscissa is the quantity of edge servers deployed.Before the optimal benefit quantity curve reaches the highest point, by the quantity of deployed edge servers increasing, its deployment benefits are on the rise, and beyond the peak, if edge servers continue to be deployed, their benefits will gradually decline.Without considering the optimal benefit quantity curve, the Figs. 8 and 9 show the changes of the performance of HE-GA model when the edge server deployment rate ER is gradually increased from 0.033 to 0.167.It is obvious from the two figures by the raising of the deployment rate of edge servers, the communication delay between edge servers and mobile communication base stations decreases, and the load difference between edge servers decreases too.It is worth noting that in process of increasing the deployment rate of edge server from 0.033 to 0.1, the communication delay and loads' standard deviation of HE-GA method have decreased significantly, and the decline is higher than that of edge server from 0.1 to 0.167.The reason is that before reaching the optimal benefit deployment rate, with the increase of the deployment rate of the edge server, the edge server will more effectively solve the problem of intercourse delay with the base station, and the service task requests will be more effectively distributed.After exceeding the optimal benefit deployment rate, even if we continue to increase investment, deploy more edge servers and improve the edge server deployment rate, the effect of improving service quality will gradually decrease, showing a state of diminishing benefit margin.This phenomenon fully shows the effectiveness of the optimal benefit quantity calculation method which we utilized.

Discussion
To simplify the calculations and focus on the load distribution of mobile communication base stations, this paper only considers the deployment problem in the scenario where edge servers are homogeneous.The investigation does not take into account how to obtain a more optimal deployment when edge servers have different computation and storage resources.In realistic scenarios, the edge servers deployed by operators may be homogeneous, the proposed method in this paper has certain practical significance.Meanwhile, the edge servers deployed by operators may also be heterogeneous.Therefore, when the computing and storage resources of edge servers are inconsistent, how to achieve the optimal deployment for edge servers is an interesting problem.In addition, the load required for mobile smart terminals to request services also has a significant impact on the deployment of edge servers.Given the joint request load of mobile smart terminals and mobile communication base stations, how to seek the optimal deployment for edge servers is also a problem worth to explore.

Conclusion and prospect
By the speedy advancement growth of 5G technology, edge server deployment has become a very important issue.An effective edge server deployment method can significantly reduce communication latency and energy consumption by integrating computing power and storage resources, thus it promotes the rapid development of mobile edge computing.In a typical mobile edge computing network environment, concentrating on the advancement of edge servers in case of dual-objective optimization of intercourse delay and load balancing under the optimal benefit quantity, we raise an edge server deployment method called HE-GA to achieve high-quality distributed deployment of edge servers.Compared to the mainstream edge server deployment methods, the HE-GA method applies the theory of optimal communication strategies in the communication field to the optimal benefit deployment strategy of edge servers, and achieves clear results in experiments.The experimental results show that the HE-GA validly counterpoises the edge server load and maximum lessens the communication delay between edge servers and base stations under the limitation of the optimal number of deployments.HE-GA method can be widely applied in the deployment of edge servers in smart city construction.In future work, we will apply deep learning algorithms, such as reinforcement learning, on the service deployment, offloading, and migration.

Fig. 1
Fig. 1 Communication scene of mobile edge computing network l = (l s1 , l s2 , ..., l s k ) T which min(w 1 * T (l) + w 2 * D(l)) subject to E i ∩ E j = ∅, � s∈S E s = B, T s ≤ T opt s , T s ≤ argmax2t s where T s = � b∈Es t b , w 1 , w 2 ≥ 0 and w 1 + w 2 = 1 and deployment are becoming increasingly important.The selection principles of urban area site are: 1. Set up in the central area of the target load distribution as much as possible.2. It should consider geography of an urban area and meet the requirements of network cellular topology.3. The network optimization method is mainly used to form good complementarity with other surrounding stations, to balance the distribution of load among various sectors, especially to refrain the impact of cross-area coverage caused by excessive base station distribution on network performance.The non-urban site selection focuses on suburban factories, development zones, villages and towns, highways, large factories and mines, and these areas should be taken as key coverage objectives.It must have a definite object in view to improve the efficiency of base station construction and cover places with real load requirement.As everyone knows, Shanghai is one of Chinese supreme cities with a large population base and high density, so the data set in this area can better reflect the real situation of mobile service computing network environment.Therefore, to effectively evaluate the proposed HE-GA model, we perform the experiments on the real data set of Shanghai Telecom base station1 .This data set includes the locations of 3233 Shanghai mobile communication base stations and the service request time information of the mobile intelligent terminals they serve.Through data analysis and cleaning, we find that there are some invalid data in the data set.

Fig. 2
Fig. 2 Shanghai telecom mobile communication base station data set-distribution map of mobile communication base station

Fig. 3
Fig. 3 Communication delay v.s. the quantity of base stations under optimal benefit limit

Fig. 4 Fig. 5
Fig. 4 Workload balancing v.s. the quantity of base stations under optimal benefit limit

Fig. 6
Fig. 6 Workload balancing v.s. the quantity of edge servers of fixed mobile communication base stations

Fig. 7
Fig. 7 Optimal benefit rate curve of edge servers

Fig. 8 Fig. 9
Fig. 8 Communication delay v.s. the edge server deployment rate

Table 1
Symbol system s The workload of the edge server s, where s ∈ S T opt s Optimal number of cost-effective deployments of edge servers ρ The optimal benefits of edge servers l b Situation of base station b l s Situation of edge server s d Communication delay among edge server and basestation K s Optimal deployment amount of edge servers p Probability of a base station choosing an edge server P s

Table 2
Shanghai mobile communication base station data setstatistics of some base stations

Table 3
Communication delay v.s. the quantity of base stations under optimal benefit limit(a) (km)

Table 4
Communication delay v.s. the quantity of base stations under optimal benefit limit(b) (km)

Table 5
Workload balancing v.s. the quantity of base stations under optimal benefit limit(a)( * 10 6 min)

Table 6
Workload balancing v.s. the quantity of base stations under optimal benefit limit(b)( * 10 6 min)

Table 7
Communication delay v.s. the quantity of edge servers of fixed mobile communication base stations (km)

Table 8
Workload balancing v.s. the quantity of edge servers of fixed mobile communication base stations ( * 10 6 min)