Abstract
Mobile edge computing has attracted great interests in the popularity of fifth-generation (5G) networks and Internet of Things. It aims to supply low-latency and high-interaction services for delay-sensitive applications. Utilizing mobile edge computing with Smart Home, which is one of the most important fields of Internet of Things, is a method to satisfy users’ demand for higher computing power and storage capacity. However, due to limited computing resource, how to improve efficiency of resource allocation is a challenge. In this article, we propose a hierarchical architecture in Smart Home with mobile edge computing, providing low-latency services and promoting edge process for smart devices. Based on that, a Stackelberg Game is designed in order to allocate computing resource to devices efficiently. Then, one-to-many matching is established to handle resource allocation problems. It is proved that the allocation strategy can optimize the utility of mobile edge computing server and improve allocating efficiency. Simulation results show the effectiveness of the proposed strategy compared with schemes based on auction game, and present performance with different changing system parameters.
Keywords
Introduction
Imminent fifth-generation (5G) cellular networks are expected to play a major role in supporting Internet of Things (IoT) to achieve ubiquitous coverage, inherent security, high connectivity, and quality of service (QoS). It can provide unique advantages considering its widespread infrastructures already deployed on a large scale, and service reliability offered by a mature wireless standard with various technologies. Due to the limited existing spectrum and the need for high-speed data rates, 5G is expected to incorporate higher frequency spectra in the millimeter wavebands, such as 30 and 60 GHz.1,2 However, with rapid extension, the IoT need computation and storage in proximity of sensors and actuators to support delay-sensitive and computation-intensive applications. According to Cisco Global Cloud Index Networking, 3 data generated by various end devices are expected to reach 600 ZB (zettabyte) in 2020. Traditional IoT frameworks adopt cloud computing to deal with large torrent of data generated by all kinds of IoT devices. Generally speaking, large-scale data centers or cloud is built in remote areas far from edge terminals. These architectures perform poorly in real-time response, edge security, and edge processing, which is intolerable for IoT applications that require real-time response. Under this circumstance, mobile edge computing (MEC) is proposed as a critical solution to provide low-latency, fast-response, and high-interaction service for edge terminals.
As a new computing paradigm that combines Internet, computation, and storage at the edge of network, MEC has promising benefits. 4 With multiple edge nodes, called access points (APs), deployed in the edge of network, MEC brings “cloud” to the edge. It can meet real-time requirements or achieve interactive behaviors of a large variety of new edge applications, as it is deployed much closer to edge terminals. Furthermore, MEC also relieves data congestion within core Internet and satisfies demands of devices for a higher computational power and storage capacity, allowing them to offload their tasks. It has been applied in many aspects of IoT. Hui et al. 5 proposed a fog computing-based resolution framework to efficiently resolve the individuals identity. Su et al. 6 developed an edge caching scheme in vehicular networks based on edge computing. Tang et al. 7 designed a hierarchical distributed fog computing architecture to support data-intensive analysis in future smart cities.
Nevertheless, extending of MEC in Smart Home meets challenges caused by limited computation and bandwidth resources. Research suggests that Chinese market of Smart Home is expected to increase by 48% on average each year. With the demand for Smart Home increasing rapidly, it faces severe deficiency of bandwidth and wasting of computational resources. Definitely, it is established at home for a better life quality, combining technology and services through networking process.8,9 Applications in the system can communicate with one another and provide instant services in different phenomenon, raising high standard for computational capability and bandwidth. Faced with these issues, improving resource allocation efficiency is inevitable in Smart Home. Therefore, this article discusses how to design effective resource allocation strategy based on MEC. To meet demands for low-latency services of delay-sensitive applications, APs are deployed near the Smart Home system, forming a three-layered architecture. Applications can utilize computational and storage resources of AP to conduct tasks. In addition, effective allocation strategy needs to be designed, aiming to satisfy requirements of more applications with limited resources.
In this article, we propose a strategy for computational resource allocation to improve performance of Smart Home system with MEC. A hierarchical architecture is designed, consisting of user equipment (UE), AP, and MEC server. AP can aggregate data generated by UE and improve edge processing. Then, based on Stackelberg game and matching, an efficient and dynamic allocation strategy for computational resources is put up. Our main contributions are summarized as follows:
Build a resource allocation model for Smart Home system with MEC. A three-tier framework is built to support applications’ demands for real-time interaction services. And optimization problems are formulated, limited by computational resources, taking diverse tolerance in delay and rate of applications into consideration.
A Stackelberg Game is proposed to represent relations between AP and UE. In Stackelberg Game, AP sets prices for virtual computational resource unit as a leader, and UE can determine the number of requiring resource as a follower. Through the game, higher utilities for UE and AP can be obtained.
One-to-many matching is introduced to maximize utility of MEC server. AP competes for computational resources owned by MEC server, forming a one-to-many matching. Similarly, AP reallocates their resources to users. It is proved that MEC server can obtain the best outcomes according to matching. In other words, computational resources can be distributed optimally.
The performance of the proposed system is evaluated and compared with the existing model with respect to performance metrics.
The rest of this article is organized as follows: The “Related work” section reviews the related work. The “System model” section presents the system model, including system architecture, network model, and problem analysis. An resource allocation strategy based on the Stackelberg game and one-to-many matching is introduced in the “Resource allocation strategy based on game theory and one-to-many matching” section, after which we propose the experimental results and corresponding discussions in the “Simulation results and analysis” section. The “Conclusion and future work” section is the conclusion and future work.
Related work
Cloud computing in IoT
During the last decade, cloud computing drew considerable attention as it offers lower cost solutions for fluctuating and unforeseen computational demand. 10 It has been adopted by many organizations or enterprises to meet their demands for massive data processing.
In terms of environment monitoring, in order to derive the physical topology at the cloud for effective real-time event detection, Yu et al. 11 proposed a cloud-orchestrated physical topology discovery scheme for large-scale IoT systems. A network-wide three-dimensional (3D) localization algorithm is developed to improve the efficiency and accuracy of topology discovery. In order to establish a sensing as a service model, Perera et al. 12 proposed a scalable energy-efficient data analytics platform for on-demand distributed mobile crowd sensing called C-MOSDEN, which considered different domains to facilitate all conditions.
In manufacturing, Tao et al. 13 gave a brief overview of the application of cloud computing in IoT first. And then they established a cloud computing and IoT-based cloud manufacturing service architecture and designed technology systems, to realize the full sharing, free circulation, and optimal allocation of manufacturing resources and capabilities. In IoT big data storage, Cai et al. 14 gave an overview about current technology and research in IoT application, and analyzed perspectives and challenges in establishing IoT-based data storage systems in cloud computing.
Though conventional data center design is highly regular with identical servers and networking hardware aligned in a grid-like fashion, the centralized form of remote computing resources is not compatible with enormous traffic originated from geographically distributed edge devices. In microgrids, Harmon et al. 15 presented a cloud-based and hybrid wireless mesh communication framework in microgrids. A diffusion-based, fully distributed algorithm and a quasi-distributed approach on wide-area Internet-based cloud are implemented. To overcome security challenges for data mutuality between two parties in IoT, Wang et al. 16 presented a framework based on cryptographic methods to support data security in cloud-assisted IoT. However, other types of security issues, such as authentication, were not considered in this article.
Above all, meeting the needs and QoS requirements of various tasks that are demanded by IoT devices cannot be achieved by solely employing cloud servers or edge computing servers. In order to cover and serve wide range of envisioned services, both cloud and edge computing facilities need to be incorporated into a joint architecture.
Resource allocation strategy based on edge computing in IoT
Recently, many literatures have studied resource allocation strategies in different edge computing scenes. Wang et al. 17 proposed an integrated framework form computation offloading and interference management in wireless cellular networks with MEC. They performed resource allocation using the graph coloring methods. Nevertheless, they did not consider competence between applications. Munoz et al. 18 focused on wireless application offloading for radio and computational resources, optimizing trade-off between energy consumption and latency in femto-cloud. The allocation framework could save terminal battery and reduce latency in executing application.
Game theory is adopted by many works to solve data offloading. Zhang et al. 19 presented a coalitional game based on pricing scheme to offload big data to the MEC server. Lian et al. 20 designed a game-theoretic framework under the communication cost constraint to enable economically viable communications. They optimized performance of MEC depending on location of edge servers. Zhang et al. 21 gave an algorithm based on differential game to control energy consumption for cognitive radio (CR) system. Zhang et al. 22 discussed a joint optimization approach combining Stackelberg Game and matching to achieve computing resource allocation in three-tier networks. It realizes utility maximization for servers based on fog computing.
Although these works have dedicated to different edge computing scenes, most of them focused on power control or resource allocation for servers or base stations. In Smart Home, considering requirement for high QoS and real-time response of delay-sensitive applications, it is crucial to establish an efficient and distributed framework with low interference based on MEC.
System model
System architecture
To meet requirements of different applications for real-time interaction and low-latency services in Smart Home, a three-tier architecture is considered, where UE can offload its service to MEC data centers through an AP as shown in Figure 1. APs are located in middle layer, linking MEC server in upper layer and serving UE in bottom layer. Generally, UE is connected wirelessly in Smart Home. It consists of different subsystems, such as lighting control, surveillance, and HVAC (heating, ventilation, and air conditioning), 23 which supply different services and have diverse tolerance for delay and transmission speed. Therefore, an allocation strategy for computational resource based on pricing mechanism is designed, aiming to meet demands of applications with higher computational speed or lower latency for priority.

System architecture.
Assume that the computational resource of MEC server is stable during a certain time. The server can allocate resources to linked wireless base stations. Each base station has an AP that is associated with covered UE. When executing low-latency or real-time interaction tasks, UE can submit requests for AP and offload tasks to MEC server through telecommunication links after receiving response from AP.
In this article, MEC server links with AP directly and distributes resources to them. After AP purchases computational resources from the server, it can make optimal allocating decisions on connected UE to gain better utility.
Network model
It is assumed that there are
The table of parameters.
AP, access point; UE, user equipment; CRB, computing resource block; MEC, mobile edge computing.
User terminals can get CRBs from MEC server to conduct high QoS applications. The quality of QoS can be measured by service delay
According to models in Liu et al.,
24
Research suggests that the network delay
Users have different valuation of the edge computing services, depended on certain factors such as latency and service rates. These factors influence the computing resource demands of users. The demand should be derived to maximize the utility of terminals. Therefore, a price mechanism is introduced in the article. UE can gain reward in the process of executing real-time tasks. The number of tasks is related to the workload arrival rate,
According to requests from UE, AP can receive revenues for distributing CRBs. And it should pay for MEC server for renting CRBs as well. CRB amounts that AP allocates to connected UE should not exceed what it rents from MEC server. Therefore, utility function of
MEC server can get payments from APs for renting CRBs. The expenditure of MEC server includes costs in transmitting and maintaining normal function of the network. To sum up, discounted utility function for MEC server is
Through adopting the price mechanism, computing tasks and resources can be measured by incomes or expenditure. In this way, utility of these objects can represent the efficiency of computational resource allocation.
Problem analysis
In summary, problems that need to be considered are listed as follows.
Resource allocation strategy based on game theory and one-to-many matching
In this section, optimal problems and allocation strategy based on game theory and matching are proposed. Utility functions of MEC server, AP, and UE are formulated as optimization problems according to equations (4)–(6), respectively. To obtain maximum utility for MEC server, first, a Stackelberg Game is established to find optimal CRB number for UE and solve pricing problem for AP. Second, CRBs are distributed through a one-to-many matching between MEC server and AP. Finally, an optimal allocation scheme between AP and UE is given.
Optimization problems
Taking workloads arrival rate, service delay, and number of requiring resources into accounts, utilities of MEC server, AP, and UE are formulated. In this way, they can be used to measure efficiency and quantity of supplying real-time services. In this section, utilities of three objects are formulated as optimization problems.
After observing behaviors of UE, AP can set a renting price for purchasing CRBs from MEC server. It may cause interference when CRB amount that AP allocates to UE exceeds what AP owns, since same bandwidth frequency may be shared by different users. Utility of AP is also greater than zero. Optimal CRB amount required by all AP is denoted by
When MEC server receives renting prices from AP, it allocates CRBs relying on the preference list over AP. Renting price set by AP should be greater than transmission cost that MEC server undertakes. As total number of CRBs in network is
Stackelberg game for AP and UE
In Stackelberg game, 25 AP acts as a leader, predicting serving prices and required CRB number for user devices. UE acts as a follower, purchasing CRBs from AP when knowing the setting price. In the whole process, AP can observe actions of UE and determine service price finally. According to the Stackelberg game, lemma 1 can be concluded as follows:
For
Let the first derivation of
According to equation (7) and equation (11), the optimization problem of AP can be adjusted as follows
Utility function of
First derivation of
As
Furthermore, service delay of UE cannot surpass maximum tolerance of delay
Therefore, following results in equation (10), an upper bound of
According to equation (10), AP can gain the optimal number of CRBs that it expects to rent from MEC server as below
One-to-many matching for MEC server and AP
Knowing the number of CRBs that AP wants to rent, MEC server makes decision on how to distribute CRBs to AP. Based on renting price and transmission cost, server has different preference over all AP, denoted as
According to analysis of formulated framework, a one-to-many matching between MEC server and AP is designed. As shown in Algorithm 1, after constructing a preference list over all AP in step 1, one pointer is set as an indicator pointing at the most preferred AP initially in step 2. In steps 8–11, if server can supply more CRBs than what AP needs, demands of AP can be satisfied. Otherwise, MEC server will allocate all the left CRBs to AP. At the end of each round, if all CRBs of server have been allocated, the pointer will remain unchanged, or it will move to next AP. In summary, AP with a low preference may gain insufficient CRBs. Then, it needs to reallocate resources to UE. According to Algorithm 1, we can get a conclusion as lemma 2 shows.
After renting CRBs from MEC server, AP needs to reallocate them to UE if it cannot meet users’ demand. Based on serving price, AP has difference preference over all UE, denoted as
According to relationship between AP and UE, we establish a one-to-many matching in Algorithm 2. The procedures are similar to that in Algorithm 1. Matching objects are the main difference between them. Since a real-time task is considered inseparably generally, it is worth noting that if number of CRBs that AP can supply is less than what UE needs, the UE will be abandoned, and pointer moves to next one as shown in steps 9–12. On the basis of Algorithm 2, the AP which can rent CRBs from MEC server is able to gain the best profits.
Simulation results and analysis
In this section, simulation results of the proposed scheme are presented with MATLAB. Generally, there are a MEC server and 10 APs, which are deployed randomly in a circle with diameter of 10 km. Each AP is connected to several UE located within a distance of 1 km. Amount of UE connected to one AP is 20 approximately. MEC server can supply 1000 CRBs to users. According to Liu et al., 24 the service rate of each computational block is set as 0.1 ms−1, and workload arrival rate of each device is a random number averaged 0.5 ms−1. And maximum tolerance of delay is 60 ms. Weight factors in utility function of UE are set as 50, 0.01, 0.001.
In simulation, experiments are conducted with different parameters changing, that is, total amounts of user devices, number of AP, workload arrival rate, service rate, and so on, to evaluate the proposed scheme in terms of utilities of different objects. Furthermore, we make a comparison between the proposed scheme and an allocation strategy based on auction game, 26 to evaluate performance and efficiency of the allocation mechanism.
As shown in Figure 2, utilities of MEC server and ratio of UE that can be served in two allocation strategies are compared with total number of equipment changing, ranging from 50 to 400. The simulation is carried out for 100 times. The figure describes that as amount of user devices rises, utility of MEC server increases gradually and coverages to an upper bound eventually. Schemes based on Stackelberg game outperform the situation under auction game all the time. The Stackelberg equilibrium ensures that the optimal CRB amounts and service price, chosen by UE, can maximize utility of MEC server. However, in auction game, UE is distributed fewer CRBs within maximum tolerance of delay, affecting profits that MEC server can receive. Utility gap will decrease as devices get more, as computing resource gets saturated. Nevertheless, the mechanism according to auction game is more stable with smaller variances.

Comparison between schemes based on Stackelberg game or auction game.
On the contrary, ratio of UE that can be served under two curves both decline with equipment increasing. And compared with Stackelberg game, auction game can satisfy requirements of more UE. Due to CRBs amounts that UE requests are fewer, the server can meet their demands with higher ratio based on auction game.
Figure 3 describes that utility of MEC server changes with different workload arrival rate,

Utility of MEC server with different parameters.
With respect to
The maximum tolerance of delay,

Utility with
From Figures 5–7, utilities of MEC server, AP, and UE are shown as number of available CRBs increasing in four conditions, where different amounts of AP are deployed in network. Number of AP are 5, 10, 15, and 20, respectively. Figure 5 illustrates that utility of MEC server increases and reaches an upper bound finally when CRBs increase. Utility with more AP rises in faster speed. Figure 6 shows that as CRBs increase, utility rises and remains stable finally. In Figure 7, utility of UE is proportional to number of CRBs. To sum up, when CRBs increase, MEC server can supply computing services for more UE, and utility of all objects get higher. Once demands of UE in the framework become saturated, utilities increase to a certain point. Furthermore, they all get higher utilities with more AP deployed. Analyzing these figures, we can conclude that when number of AP is 5, number of CRBs required by UE are about 1500. In other three conditions, total CRBs required are 3500, 4500 and 6000, respectively.

Utility of MEC server with different number of CRBs.

Utility of AP with different number of CRBs.

Utility of UE with different number of CRBs.
Conclusion and future work
In this article, we establish a hierarchical framework including MEC server, AP, and UE for Smart Home networks based on MEC. And an optimization problem is formulated, limited by computational resources, taking diverse requirements for delay and rate of users into consideration. Stackelberg game is proposed to solve resource purchasing problem and pricing problem for AP. Then, one-to-many matching is adopted to handle computational resource allocation problems for MEC server and AP. With maximum utility, the allocation strategy can improve allocating efficiency and guaranteeing real-time QoS for user terminals. Simulation results demonstrate the influence of different parameters such as number of CRBs and workload arrival rate. It is proved that compared with allocating mechanism based on auction game, the proposed framework can achieve a higher utility for server under Stackelberg equilibrium.
For the future work, we will take mobility and interactivity of smart terminals into account and apply the mechanism into smart city.
Supplemental Material
supplemental_files_for_review – Supplemental material for Mobile edge computing resource allocation: A joint Stackelberg game and matching strategy
Supplemental material, supplemental_files_for_review for Mobile edge computing resource allocation: A joint Stackelberg game and matching strategy by Shaoyong Guo, Xing Hu, Gangsong Dong, Wencui Li and Xuesong Qiu in International Journal of Distributed Sensor Networks
Footnotes
Handling Editor: Feng Ye
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by National Natural Science Foundation of China (Grant No. 601702048) and Industrial Internet platform standard management service public support platform.
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
