Full text
Optimized provisioning technique of future services with different QoS requirements in multi-access edge computing John Bosco Ssemakula, Juan-Luis Gorricho, Godfrey Kibalya, Joan Serrat-Fernandez Dept. of Network Engineering, Universitat Politecnica de Catalunya, c/ Jordi Girona, 1-3, 08034, Barcelona, Spain A R T I C L E I N F O Keywords: Multi-access edge computing (MEC) Microservice composition (MC) ODA MSFs Critical path (CP) ABSTRACT With the present trend towards the use of microservices instead of monolithic software, future applications with diverse computational and delay-sensitive requirements, such as virtual reality (VR) or holographic communications (HC), will be redesigned based on loosely coupled microservices due to their more efficient deployment according to available resources. However, it remains a big challenge to provide such services under stringent quality of service (QoS) requirements at minimum time and cost and with an efficient utilization of the network. Presently, multi-access edge computing (MEC) has been proposed as a promising alternative to deploy future microservice-based applications to achieve faster response times while reducing the overall network load. However, network conditions, edge nodes state and service requests are dynamic, increasing the difficulty for the provisioning of services by MECs. In this context, we propose an optimization deployment heuristic (ODA) to obtain sub-optimal deployments in reasonable time, meeting the requirements of some representative future applications under study. In particular, according to latency requirements, there will be delay-tolerant and delay-sensitive applications, playing a major role regarding the alternatives for the deployment onto single or multiple MEC systems. The evaluation analysis shows that our proposal performs significantly better than other benchmark solutions in most of the metrics used for the experiments, especially in minimizing deployment costs in minimal time. 1. Introduction Emerging new applications such as vehicle collision avoidance, holographic communications (HC), future manufacturing in Industry 4.0, virtual and augmented reality (VR /AR), with different computational and delay requirements, are expected to be extensively used in many spheres of society in the near future. Predictably, there is a clear need to look for new strategies that will support a diversity of computeintensive and time-sensitive services in future 6G telecommunication systems [1]. For such applications, it will be convenient to shift from monolithic approaches to microservice-based solutions, as the latter will be more flexible in their deployment, meeting their diverse requirements and according to available resources at the time of the request. Therefore, future more complex applications will be developed based on a microservice architecture, which is emerging as an evolution of the classical service-oriented architecture (SOA) in conjunction with the strategy of deployment of services in the cloud [2]. Each microservice will be a lightweight, independent, and loosely coupled business unit, that aims to promote the use of combinations of microservices to produce elaborated end-user applications [3,4]; applications like, for instance, immersive gaming services based on VR that are subject to image rendering constraints of 15 ms delays [5]; therefore, most probably, discarding their deployment onto distant cloud computing centres [6,7]. However, the network should be designed to support future delay-tolerant forwarding applications (FAs), such as IoT applications, along with delay-sensitive closed loop applications (CLAs), such as VR/AR or vehicle collision avoidance applications, among others. In addition, immersive applications usually require an intensive processing of multiple video inputs to produce the intended immersive experience, resulting in a highly compute-resources consumption [8,9]. To address this working scenario, a MEC architecture has been proposed by several standardization bodies, such as the International Telecommunication Union (ITU-T) at Focus Group Technologies for Network 2030 (FG-NET2030) [10], as one of the most favourable technologies for delivering future delay-sensitive services [6,11] to relatively nearby end users. Complementary, to avoid the overloading of resource-constrained edge servers, standardization bodies like the ITU- T at FG NET2030 [6,9] have recommended that such compute-intensive
applications should be decomposed into multiple microservices for their easier deployment. This will lead to new strategies in networking and data processing to optimally deploy different microservice compositions (MCs), taking into account available resources and service requirements, and considering the dependencies in between the different microservices of the application. The decomposition of applications into different interdependent microservices can be well represented by a directed acyclic graph (DAG), as shown in Fig. 1 for our proposed use cases. Moreover, some proposals have already been made to implement IoT, vehicle collision avoidance or VR/AR applications using a DAG modelling for their deployment onto MECs [12,13]. On this basis, we will model the applications under study as DAG graphs with different interdependent microservices, where each microservice is of a specific type and has specific requirements, and they are supplied by specific microservice instances running in MEC systems composed of different numbers of edge nodes [14–18]. Meanwhile, the provisioning of any application may incur in transmission, processing and activation costs, according to the composition of microservices required to supply the service. Moreover, in a MEC environment, the state of the network and computing nodes, as well as the distribution of service requests, are dynamic; therefore, any proposal must be fast enough to work properly in real time conditions. Moreover, there is currently little research on the deployment of future services that are decomposed into microservices and that will take into account the aforementioned factors, in addition to achieving a balanced deployment of applications of different categories, taking into account the dependencies between microservices as identified by the critical path (CP). The CP is used to determine how an application will be deployed when considering FA requests as it is the longest serial connection of microservices with the highest resource demand and delay requirements. Therefore, we propose a heuristic that enables the deployment of microservice-based applications with minimal deployment cost, in a reasonable time, and for a MEC working scenario. With the exception of CLAs, which are inherently a single serial connection of microservices, without the possibility of a parallel execution, for all FA requests, the critical path of the MC will be identified, and after the optimal provisioning of the CP, any remaining microservice that is not part of the CP will be provisioned in some of the computing nodes where the CP microservices have already been provisioned, pursuing their parallel execution, as shown in Fig. 3. This will promote a parallel processing and reuse of MECs, compared to deployments on single MECs due to application requirements. Moreover, different MEC state features (MSFs) will be considered for the optimal selection of an individual MEC or a group of MECs depending on the category of the requested application in order to provision that application, as discussed in more detail in Section 5. The various MSFs considered by the proposed heuristic are primarily tailored for an optimal provisioning of such stringent future services. In addition, the proposed technique exhibits an indirect resources reservation for CLA requests, whose provisioning is only possible on a single MEC, by prioritizing the provisioning of applications with tolerable delays in multiple MECs, in order to preserve resources on individual MECs for further allowances of CLA service requests. This promotes a balance between the provisioning of CLAs and FAs, in most cases when those requests arrive at the same time, by also attempting to balance the load in the network. Our work proposes a new approach to the future services deployment problem, a solution based on considering the identification of the CP for delay-tolerant microservice compositions, various key attributes arising from the network state, and the QoS requirements of the services themselves. Our main contributions are the following: 1. A formulation of the problem for the provisioning of various representative future services with their associated resource requirements. 2. The proposal of an algorithm for the optimal selection of single MECs or multiple MECs with the goal of achieving a time and cost-efficient as well as resource-efficient provisioning of future services based on the use of microservices. Moreover, for resource-dominant and delay-tolerant service requests, the CP of the requested service is first identified for its optimal provisioning. 3. We define and adapt different MSFs for the optimal selection of MECs or a group of MECs to provision the service request in the edge network. The different attributes reflect the different aspects of MECs in the edge network and facilitate an optimal allocation and provisioning of services from different perspectives. 4. We performed extensive simulations to evaluate our proposed ODA algorithm considering four different heuristics, and compared the performance of the proposed algorithm with state-of- the-art heuristics, considering a range of performance metrics and scenarios. The remainder of this paper is organized as follows: Section 2 discusses the related work, while Section 3discusses the motivation and use cases adopted for evaluation. Section 4presents the system model and its problem formulation. The proposed heuristic algorithm ODA is described in Section 5. Section 6discusses the performance evaluation of the proposed algorithm, including a description of the simulation scenarios and benchmark algorithms. The paper is concluded in Section 7. 2. Related works Decentralized network management and service delivery, which has led to the emergence of MEC approaches, has become increasingly important in recent years. Cisco introduced the concept of Fog/Edge computing for IoT devices, which moves storage and processing from the cloud to the network edge, so that the data processing and storage can take place close to the data sources. These efforts have provided a solid foundation for novel strategies for beyond fifth generation (B5G) service delivery, where many services are latency sensitive and computationally intensive, and need to be split into multiple tasks for their optimal delivery [6,9,10]. In this way, research has gained momentum based on applications decomposed into microservices with diverse and stringent resource requirements, such as the works in [19–25]. Guerrero et al. [26] investigated the optimization of microservices deployment, where a novel virtualization solution in cloud computing, based on containers, provides a secure low-overhead executing environment of the microservices [25,27]. For this reason, research related to the deployment of containerized microservices has become an area of interest as well. There are several proposals for developing deployment frameworks and algorithms for specific scenarios to meet specific requirements. For example, Vogler et al. [23] proposed a framework for dynamically creating optimized deployment topologies for IoT cloud applications that are tailored to the currently available physical infrastructure and in which components of an application can flexibly provision services on the edge network. Wen et al. [28] presented a reliable microservice orchestration to maximize the dependability satisfaction in terms of security requirements and network QoS in geographically distributed data centres. From the perspective of solving a service provisioning problem in edge computing and under limited resources, Li et al. [29] proposed an approximation approach to find near-optimal solutions by modelling a robustness-based application provisioning problem as a constrained optimization problem. Furthermore, Faticanti et al. [30] investigated how to optimally minimize the throughput of native fog applications by deploying microservice-based applications in heterogeneous regions in fog environments. In addition, Yin et al. [31] proposed an approach in which all users in a given area are grouped into different clusters,
and then, application instances are deployed on the edge servers closest to the centre of each cluster. This approach can improve efficiency and reduce edge deployment costs while covering all users. To address optimization issues under latency constraints in MEC environments, the authors in [32] proposed a hybrid approach to minimize the service delay and transmission costs thanks to virtual machine migrations, a scheme to determine whether the latency-critical tasks should be executed locally on the user equipment (UE) or remotely on MEC servers. In [33], Chen and Hao studied the task offloading problem in an ultra-dense network with the main objective of minimizing the delay while reducing the energy cost for the user equipment (UE). Chen et al. [34] applied a distributed game-theory method to reduce the overall network overhead due to energy consumption and latency. The study was further extended to a scenario of computational offloading for multiple users in a wireless multichannel contention environment, and the proposed algorithm achieved a satisfactory performance in offloading computation and scaled well when the number of users increased. In contrast, the authors in [35] proposed an approach to minimize the overall energy consumption by considering jointly computation and application partitioning. This resulted in UEs assisting each other for executing tasks to meet the application completion deadline. Furthermore, in [36], Ren et al. jointly investigated resource allocation and communication in a multiuser MEC system while optimizing the latency. To gain further insights into their work, they also analysed a special case with a specific scenario where communication resources were adequate and computational resources were limited. Although the above works consider latency, which is also part of our research for such services, and a requirement that needs to be taken into account for the deployment of future sensitive services to ensure QoS and immersive communications, they are mainly concerned with the minimization of latency or energy consumption or both of them, while cost aspects are not well addressed, which is an important concern for B5G services dealing with differentiated computational requirements. For this reason, there is a need for a further research that considers the cost minimization when working with MECs to correlate with the provisioning of microservice-based requests, as it is the case in our current work. In [37], the authors investigated the challenge of determining an efficient placement of the components of a mobile application on edge servers that minimizes the cost of running the application in the MEC system. They proposed an efficient online heuristic to solve the problem of placing multi-component applications in edge computing nodes, taking into account the dynamic nature of user location and network capacity. Hamid et al. [38] proposed a Fog computing-based scheme, called MIST, to support crowd-sensing applications in the context of the Internet of Things (IoT) for cost-effective provisioning with limited resources, and a subsequent study was also conducted, considering jointly the data consumer association, task distribution and virtual machine placement. In [39], the authors designed an online control algorithm for the decoupled problem that is shown to be costoptimal in the edge cloud network. The algorithm does not require a statistical knowledge of the system parameters and can be implemented efficiently. Moreover, the work in [40] mathematically formulates the service distribution problem (SDP) in IoT cloud networks, referred to as IoT-CSDP, as a minimum-cost mixed-cast flow problem that can be efficiently solved by linear programming. While we do focus on the context of microservices-based applications delivery, a more general problem has been explored in terms of cost-efficient dynamic chaining of service functions, and the ranking of nodes, in the context of geo-distributed data centres, e.g. [41,41– 43]. Most of these studies rely on the use of software-defined networks and virtualized network functions. In [43], a virtual network (VN) deployment technique called ViNEYard is proposed to introduce a better correlation between node mapping and link mapping using two greedy techniques of deterministic VN embedding (D-ViNE) and randomized VN embedding (R-ViNE). In this study, virtual nodes are mapped to substrate nodes in a way that facilitates the mapping of virtual links Table 1 Per-Use-Case Anticipated Requirements. Use case Requirements Bandwidth Latency/ms CPU/cycles Surveillance 10–40 Mbps 50–150 ≈11.616 × 109 Public Safety 10–40 Mbps 50–200 ≈9.68 × 109 Virtual Reality 10–100 Mbps >10–30 ≈160 × 109 Collision Avoidance 5 Kbps–1 Mbps 10–100 ≈172 × 106 to physical paths in the subsequent phase, to achieve an optimal delivery of service requests. Furthermore, Pasteris et al. [41] also focused on multiple applications deployment and proposed a deterministic approximation approach to maximize the overall benefit. In addition, Deng et al. [44] proposed an Instance Deployment Approximation Algorithm for Resource-constrained Edges (IDA4ReE) for microservice-based applications, a method to minimize the cost of deploying services under resource-constrained conditions in mobile edge computing (MEC). This work is well suited as a benchmark for our research because it is a recent study and closely related to our work in terms of the metrics used to evaluate the performance. Moreover, the deployment of microservice-based applications is done in an edge computing environment, the same as in our work. In this respect, all algorithms in our experiments are subject to the same evaluation metrics to allow a fair comparison. Moreover, for all algorithms, we consider a DAG modelling for the requested MC. Additionally, the originality of all strategies of the benchmark algorithms will be preserved. This article proposes the ODA algorithm to tackle the problem of future service provisioning for different categories of applications with different QoS requirements in a MEC environment. Its objective is to provision multiple service requests from end users and microservicebased applications onto MEC nodes with limited resources, with the goal of maximizing the user-perceived quality of service at minimal provisioning costs and under stringent delay constraints. 3. Motivation and application use cases Inspired by future 6G services with different delay, bandwidth and computing requirements [1,6,9,10], as shown in Table 1, in the network edge, MEC resources must be appropriately allocated to run multiple serial microservice chains (as for CLAs) or aggregations of microservice chains (as for FAs). Moreover, different microservice types in the same MC have different resource and delay requirements. Therefore, due to the limited resources of MEC edge nodes, any decision of single MECs or multiple MECs should aim at achieving a minimal resource consumption and also to utilize those resources close to the end user. This results in the necessary flexibility of deployments to support the provisioning of services with different latencies. We use Fig. 1 as an illustration to further explain the applications considered in our study, where each microservice is characterized by a set of resource requirements, i.e., a tuple (data size, CPU, RAM) as specified in Table 3. For the four applications considered in our working scenario, we assume that the data generated by cameras or sensors have different input sizes depending on the application type and category, as shown in Fig. 1. Moreover, we mainly address two application categories, i.e., FAs such as IoT applications, which are delay-tolerant and have relatively long sessions, and CLAs such as Collision Avoidance and VR, which are delay-sensitive, with timed sessions, and whose deployment can only be done on a single MEC in the network edge. 3.1. Internet of Things (IoT) The IoT has benefited from the increasing use of cell phones. Numerous mobile applications have been developed to connect the world of things (wearables, home automation systems, sensors, RFID tags, etc.) to the Internet. In some cases, these are resource-intensive applications
Fig. 1. Application models generated to represent the different service use cases with different microservice resource requirements. with tolerant delay requirements. In this way, identifying the critical paths from MCs promotes the MEC reuse and parallel execution of microservices, which provides a great benefit and incentive for deployment onto multiple MECs. We consider the following representative applications to test the proposed heuristic. 3.1.1. Surveillance application This application consists of six microservices (𝑀1𝑡𝑜 𝑀6), as shown in Fig. 1(a). In the DAG workflow, the microservices include the camera, motion detector, object/person detector, object/person tracker, PTZ control (pan, tilt, and zoom), and user interface. The camera produces a video stream compressed and forwarded to the motion detector for filtering. Motion is detected, and selected videos are forwarded to the object/person detector, which critically identifies moving objects/persons. Once the identification is completed, it sends the resultant information along with their position to the object/people tracker, which then calculates the desired PTZ settings and sends the necessary instructions to the PTZ controller. Finally, a user interface displays a segment of the video stream with the tracked objects/persons. 3.1.2. Public safety application In the public safety application, there are five microservices (𝑀1𝑡𝑜 𝑀5), as shown in Fig. 1(d), that are designed to assist agencies with video analytics in the field. Cameras such as closedcircuit television (CCTV) capture and compress video data that is relayed for motion detection. Based on the detected movements, the detected objects/persons video-frames are forwarded for object/person tracking for recognition, determining estimates or position predictions of locations and other relevant information if artificial intelligence is integrated into the system. Finally, the results are generated for the actions to be taken. 3.2. Virtual reality (VR) VR mainly consists of four microservices (𝑀1𝑡𝑜 𝑀4) in a serial chain, as shown in Fig. 1(b). It is included in the CLA category with strict latency requirements. Data is produced from a scene merging set by several cameras located in a 360◦field of view to merge the different video streams into a suitable and unique representation. The merged video is passed to the next microservice for quality scaling to enhance the appeal of a virtual reality experience. Then, the graphics are pre-rendered by the microservice for motion prediction, which is also an important latency reduction technique used in VR. In addition, predetermined motion patterns can be used to collect motion data that can be used to train an artificial neural network to achieve a better result when machine learning is used in this microservice component. Finally, sensory images representing a virtual world are generated by the rendering microservice. 3.3. Collision avoidance As part of a global effort to make roads safer in the near future, active safety applications are increasingly being used in vehicles to prevent or mitigate accidents through driver warnings or direct vehicle actions (braking, steering). As shown in Fig. 1(c), the collision avoidance application consists of four microservices (𝑀1𝑡𝑜 𝑀4) with strict delay requirements. Object detection and situation assessment combines information from various input sensors and databases such as digital maps to provide a risk assessment microservice with an estimate of the actual state of the environment. The risk assessment uses this information to calculate the collision risk of the current situation. Based on the collision risk, the decision-making microservice then makes the decision whether to intervene to mitigate the situation by either warning the driver of an impending collision or autonomously applying the brakes. The decision made is finally passed on to actuators or human–machine interfaces that perform the necessary actions. 4. Model and formulation 4.1. System model The type of infrastructure we define in this work is a multi-access edge computing architecture, as shown in Fig. 2. End users can simultaneously request applications by forwarding all service requests to the
Fig. 2. Network architecture. MECs, which consist of different edge nodes in a multi-MEC system. Regarding the service deployment, we will use the function indicator 𝑍(𝜓)=1or 𝑍(𝜓)>1to specify if the service must be deployed onto a single MEC or it can use multiple MECs. In this way, there is no local processing in our working scenario. A system model is proposed to minimize the deployment costs under strict end-to-end delay by executing the service for each end user while satisfying all constraints. We assume that a satisfactory user experience can be achieved as long as the end-to-end delay on executing the requested application is within the delay constraint. We define a MEC infrastructure as 𝐼= (𝛹, 𝐿), where 𝛹is the set of MEC systems, i.e., 𝛹={𝜓𝑖|1≤𝑖≤|𝛹|}and 𝐿are the network links between MECs. Different MECs consist of different numbers of edge nodes, so we define a MEC as 𝜓𝑖= (𝑁𝑖, 𝐿𝑖), where 𝜓𝑖,𝑁𝑖and 𝐿𝑖are the 𝑖th MEC, the set of edge nodes within that MEC 𝜓𝑖, and the links between edge nodes in the MEC 𝜓𝑖, respectively. We define a set of edge nodes in the MEC by 𝑁𝑖={𝑛𝑗|1≤𝑗≤|𝑁𝑖|}. For each link 𝑙𝑖,𝑗 ∈𝐿𝑖we define the latency between 𝑛𝑖and 𝑛𝑗which is assumed to be negligible in our working scenario due to the assumed high-speed fibre connection between edge nodes within the same MEC system. End users request for services in the form of microservice compositions (MC) from the set of types of applications 𝐾={𝑘1, 𝑘2, 𝑘3, 𝑘|𝐾|}, where 𝑘𝑖is a single MC representing the corresponding requested application to provide the functionality for the service request, |𝐾|denotes the number of different types of applications. We also assume that edge nodes are first activated in order to accept requested microservices to be run on a specific Virtual Machine (VM) hosting the microservice [45]. Therefore, for each MEC system, there may be activated edge nodes and nonactivated edge nodes. The use of VMs promotes security and isolation capabilities, appropriate for the execution environment. However, the management of VMs is not considered in our work. Different MECs have different computational resources because of the different number of edge nodes. Two key features of any edge node are: (1) its amount of resources and (2) its geographical location. We define an edge node 𝑛𝑗∈𝑁𝑖within a MEC as 𝑛𝑗= (𝐶𝑃 𝑈, 𝑅𝐴𝑀), where 𝐶𝑃 𝑈(𝑛𝑗)is the amount of available CPU in cycles per unit of time and 𝑅𝐴𝑀(𝑛𝑗)is the amount of available RAM in 𝑛𝑗. Also, for 𝐿, |𝐿|=|𝛹|×|𝛹|. For each link 𝑙𝑖𝑗 ∈𝐿, we define the latency between 𝜓𝑖 and 𝜓𝑗𝑑(𝜓𝑖, 𝜓𝑗), where 𝑑(𝜓𝑖, 𝜓𝑖)=0, and the link bandwidth 𝑏𝑤(𝜓𝑖, 𝜓𝑗) between MECs 𝜓𝑖and 𝜓𝑗, where 𝑏𝑤(𝜓𝑖, 𝜓𝑖) = ∞. End-user devices are connected to this MEC system via a wireless or a wired connection to a nearby MEC (own MEC). It should be noted that the analysis of the wireless or wired local loop is not the subject of this research, since our main interest is focused on the optimal deployment of the requested microservices onto the MEC data centres. 4.2. Application model Application modelling requires the specification of microservice requirements and the interdependencies between microservices, as shown in Fig. 1, where different applications have different delay constraints 𝑡𝑐𝑙𝑎 𝑘and 𝑡𝑓𝑎 𝑘for CLA and FA, respectively. Applications are modelled as DAGs 𝑘={𝑀, 𝐸}, where 𝑀={𝑚𝑗|1≤𝑗≤|𝑀|}, and the microservice composition 𝑀represents the MC of the application 𝑘, where 𝑚𝑗 denotes the 𝑗th microservice. Moreover, 𝐸={𝑒𝑖,𝑗 |𝑚𝑖, 𝑚𝑗∈𝑀, 𝑖 ≠𝑗} represents the edge set in which 𝑒𝑖,𝑗 means that there is a data flow between 𝑚𝑖(i.e., the predecessor) and 𝑚𝑗(i.e., the successor), and thus 𝑚𝑗cannot execute before 𝑚𝑖. Due to the different applications considered in our work, i.e., CLA and FA, as shown in Fig. 1, we have two different categories of service request compositions 𝑘∈𝐾denoted by 𝑘𝑐𝑙𝑎 and 𝑘𝑓 𝑎 to represent the requested microservice composition for CLA and the requested microservice composition for FA, respectively. Accordingly, for each microservice 𝑚𝑗, we define a predecessor microservice set 𝑃(𝑚𝑗)that contains all microservices that need to be executed before 𝑚𝑗. Note that for each DAG 𝑘, exit microservices are referenced as microservices without successors. To describe the parametric context of each microservice, we define a tuple representation as 𝑚𝑗= (𝑚𝜔 𝑗, 𝑚𝑓 𝑗, 𝑚𝑟𝑎𝑚 𝑗). Specifically, 𝑚𝜔 𝑗,𝑚𝑓 𝑗 and 𝑚𝑟𝑎𝑚 𝑗are the size of the input data, the amount of CPU cycles, and the RAM required to run the 𝑖th microservice of the application, respectively. Since we only consider the bandwidth between MECs for the deployment on different MECs, the data rate requirement 𝑏𝑤𝑚𝑖,𝑚𝑗 between 𝑚𝑖and 𝑚𝑗should be satisfied by the available bandwidth between MECs, i.e., 𝑏𝑤(𝜓𝑖, 𝜓𝑗)if 𝑚𝑖is deployed on MEC 𝜓𝑖and 𝑚𝑗 is deployed on MEC 𝜓𝑗. Also, the weight of each edge 𝑒𝑓 𝑖,𝑗 represents the amount of data that microservice 𝑚𝑖sends to microservice 𝑚𝑗, and the relationship between 𝑚𝜔 𝑗and 𝑚𝑓 𝑗is expressed as 𝑚𝑓 𝑗=𝜓𝑚𝑗.𝑚𝜔 𝑗, where 𝜓𝑚𝑗denotes the computing workload per bit [46,47]. Moreover, delay plays an important role in the quality of experience of future applications; therefore, different delay constraints are set for CLAs and FAs, and if the end-to-end delay exceeds its threshold, the quality of experience will be unsatisfactory. The main notations used in this work are listed in Table 2 for quick reference.
Table 2 Parameters. Notation Description 𝐼Network infrastructure 𝛹and 𝜓Set of MECs, 𝑖th MEC and MEC index 𝑘DAG representation of the application 𝑚 𝑖th microservice of an application 𝑁𝑖and 𝑛𝑗Number of edge nodes and index of the edge node 𝐿Links between MECs 𝑏𝑤(𝜓𝑖, 𝜓𝑗)Link bandwidth between MECs 𝐿𝑖Links between edge nodes in a MEC 𝜓𝑖 𝑘,𝐾, and |𝐾|Requested MC (application), total number of requests in the system and all the four applications 𝑑(𝜓𝑖, 𝜓𝑗)delay between MECs 𝑍(𝜓) = 1 and 𝑍(𝜓)>1 function indicator for single MEC and function indicator for multiple MECs deployment 𝑡𝑐𝑙𝑎 𝑎and 𝑡𝑓𝑎 𝑎tolerable delay of CLAs and tolerable delay of FAs 𝑡𝑐𝑜𝑚𝑝 𝑥𝑚𝑗,𝑡𝑐𝑜𝑚𝑚 𝑥𝑚𝑗 and 𝛷𝑥𝑚𝑗 microservice computation time, microservice communication time and microservice deployment cost 𝜙𝑎𝑐𝑡 constant activation cost 𝐶𝑃 critical path 𝐶𝑃 (𝑚𝑗)function indicator for forming a CP CLAs closed loop applications FAs forwarding applications 𝑥𝑚𝑗deployment of a microservice 𝜓𝑛𝑗,𝑣 𝑖deployment in a given MEC 𝑋𝑘deployment configuration of an application 4.3. Problem formulation Deploying an application onto a given infrastructure 𝐼becomes a mapping exercise of its constituent microservices to the VMs of the edge nodes that will host them using a single MEC (i.e., 𝑍(𝜓)=1) or several MECs (i.e., 𝑍(𝜓)>1), depending on the type of application. Each MEC is represented as 𝜓𝑁𝑖,𝑣 𝑖∈𝛹, where 𝑣are the already instantiated VMs hosting specific microservices and running on the edge nodes of the MEC. Therefore, the deployment of a microservice 𝑚𝑗belonging to any application can be specified as follows: 𝑥𝑚𝑗=𝜓𝑛𝑗,𝑣 𝑖(1) therefore, the deployment of the whole application 𝑋𝑘is defined as the set of deployments of all its microservices: 𝑋𝑘={𝑥𝑚𝑗|𝑚𝑗∈𝑘, 1≤𝑗≤|𝑀|}(2) We also assume that microservices are sorted in such a way that all predecessor microservices are scheduled for execution before their successors, thus satisfying the dependencies between microservices. From that sorting, the critical path of the application 𝑘is obtained, we use the function 𝐶𝑃 (𝑚𝑗)to indicate if 𝑚𝑗is in the critical path. In the end, the CP determines the execution cost and the end-to-end delay of the requested application. Since CLAs are already in the form of a single microservice chain, retrieving the CP is only done for FA applications; besides, only FA applications can be deployed onto several MECs. After identifying the CP of microservices, the remaining microservices (i.e., 𝐶𝑃 (𝑚𝑗)=0), as shown in Fig. 3, will be deployed onto the available MECs already used to run the CP microservices, if feasible. This strategy will promote the reuse of MECs, minimizing transmission delays and the spread of microservices among MECs. Therefore, the delay analysis for both single MEC and multiple MECs deployments is always based on the identified CP. From Fig. 3, we can see two candidate chains of microservices to become the CP of both IoT applications. Fig. 3(a) illustrates the candidate CPs for the surveillance application, where CP1 (highlighted in blue) excludes the two microservices 𝑀4and 𝑀5, while CP2 (highlighted in red) excludes only 𝑀6. For the public safety application, both candidate CPs result from excluding only one microservice, as shown in Fig. 3(b). To avoid activating new edge nodes that will lead to an increasing cost, the excluded microservices from the CP in both scenarios should be deployed in any of the MECs where CP microservices will have to be deployed. 4.3.1. Computation model The computation time 𝑡𝑐𝑜𝑚𝑝 𝑥𝑚𝑗of each microservice 𝑚𝑗results from the waiting time 𝑡𝜔 𝑥𝑚𝑗 before processing, and its processing time 𝑡𝑝𝑟𝑜𝑐 𝑥𝑚𝑗on the assigned edge node of the MEC, which is expressed as follows: 𝑡𝑐𝑜𝑚𝑝 𝑥𝑚𝑗 =𝑡𝑝𝑟𝑜𝑐 𝑥𝑚𝑗 +𝑡𝜔 𝑥𝑚𝑗 ,(3) where 𝑡𝑝𝑟𝑜𝑐 𝑥𝑚𝑗depends on the amount of required CPU cycles 𝑚𝑓 𝑗for that microservice 𝑚𝑗and the processing speed 𝑓𝑛𝑗 𝑥𝑚𝑗of the assigned edge node in the MEC, calculated as follows: 𝑡𝑝𝑟𝑜𝑐 𝑥𝑚𝑗 = 𝑚𝑓 𝑗 𝑓𝑛𝑗 𝑥𝑚𝑗 .(4) The 𝑡𝜔 𝑥𝑚𝑗 is computed as the waiting time to finish the execution of the preceding microservice instance on that edge node: 𝑡𝜔 𝑥𝑚𝑗 = 𝑚𝑓 𝑗𝜔 𝑓𝑛𝑗 𝑥𝑚𝑗𝜔 ,(5) where 𝑚𝑓 𝑗𝜔and 𝑓𝑛𝑗 𝑥𝑚𝑗𝜔are the computational requirement of the unfinished microservice at the edge node 𝑛𝑗and the compute resources assigned to the unfinished microservice by the MEC edge node, respectively. However, applications are executed in two different scenarios depending on the provisioning paradigm, i.e., either in their own MEC 𝜓𝑖 or in another/neighbouring MEC 𝜓𝑗(when the access/own MEC does not have enough resources). The computation time for all scenarios is defined as follows: own MEC for a single MEC execution (𝑍(𝜓)=1) 𝑡𝜓𝑖 𝑋𝑘= 𝑀 ∑ 𝑚𝑗=1 𝑡𝑐𝑜𝑚𝑝 𝑥𝑚𝑗 (6) another MEC for a single MEC execution (𝑍(𝜓)=1) In this case, there is an additional delay 𝑑(𝜓𝑖, 𝜓𝑗)on the link between MECs, in the form of network hops (we assume that 1 hop = 10 ms, as discussed in Section 6.2) from the access MEC 𝜓𝑖to the selected MEC 𝜓𝑗, when provisioning is not done by its own MEC 𝜓𝑖. 𝑡𝜓𝑗 𝑋𝑘=𝑑(𝜓𝑖, 𝜓𝑗) + 𝑀 ∑ 𝑚𝑗=1 𝑡𝑐𝑜𝑚𝑝 𝑥𝑚𝑗 (7) multi-MEC execution (𝑍(𝜓)>1) In this case, only microservices that are part of the CP are considered for this calculation, which is as follows: 𝑡𝑍(𝜓)>1 𝑋𝑘= 𝑀 ∑ 𝑚𝑗=1 𝑡𝑐𝑜𝑚𝑝 𝑥𝑚𝑗 ×𝐶𝑃 (𝑚𝑗)(8) 4.3.2. Communication model We assume that each service request is forwarded to its access MEC (own MEC), and that only requests with tolerable delays served by multiple MECs are affected by transmission delays. This is because the delay between MECs 𝑑(𝜓𝑖, 𝜓𝑗)for any deployment in a single MEC, when the own MEC is not suitable, has already been taken into account in the computational model according to Eq. (7). Thus, considering the
Fig. 3. Formation of different critical paths (CPs) for optimal provisioning of delay-tolerant IoT use cases. deployment onto a group of MECs, the transmission time 𝑡𝑐𝑜𝑚𝑚 𝑥𝑚𝑗 of the microservice is given by: 𝑡𝑐𝑜𝑚𝑚 𝑥𝑚𝑗 = 𝑒𝑓 𝑖,𝑗 𝑏𝑤(𝜓𝑖, 𝜓𝑗),∀𝑚𝑗∈𝐶𝑃 (𝑚𝑗)(9) Recall that 𝑒𝑓 𝑖,𝑗 is the data flow between 𝑚𝑖and 𝑚𝑗. However, for any application request 𝑘∈𝐾, we consider two different scenarios: (𝑖) when the own MEC is in charge of executing the first microservice of the CP and it is included in the selected group 𝜓𝑖∈𝛤𝜓to provision the request, and (𝑖𝑖)when the own MEC will not execute the first microservice of the CP, and therefore experiences an additional delay between the own MEC and the MEC executing the first microservice. In both scenarios, we must consider the transmission delay between MECs if executing consecutive microservices in different MECs of the group: own MEC 𝜓𝑖is part of the group 𝛤𝜓(𝑍(𝜓)>1) 𝑡𝑐𝑜𝑚𝜓𝑖 𝑋𝑘= 𝑀 ∑ 𝑚𝑗=1 𝑡𝑐𝑜𝑚𝑚 𝑥𝑚𝑗 ×𝐶𝑃 (𝑚𝑗)(10) own MEC not part of the group 𝛤𝜓(𝑍(𝜓)>1) 𝑡𝑐𝑜𝑚𝜓𝑗 𝑋𝑘=𝑑(𝜓𝑖, 𝜓𝑗) + 𝑀 ∑ 𝑚𝑗=1 𝑡𝑐𝑜𝑚𝑚 𝑥𝑚𝑗 ×𝐶𝑃 (𝑚𝑗)(11) The execution time of any microservice is defined as: 𝑡𝑥𝑚𝑗=𝑡𝑐𝑜𝑚𝑝 𝑥𝑚𝑗 +𝑡𝑐𝑜𝑚𝑚 𝑥𝑚𝑗 (12) And for an application 𝑘∈𝐾with 𝑀microservices, we need to ensure that the overall execution time of the application is less than the end-to-end delay constraint, which is expressed as follows: 𝑇(𝑋𝑘) = 𝑀 ∑ 𝑗=1 𝐶𝑃 (𝑚𝑗) × 𝑡𝑥𝑚𝑗∀𝑘∈𝐾, (13) where 𝐶𝑃 (𝑚𝑗)has value 1 if microservice 𝑚𝑗is at CP, and 0 otherwise. 4.3.3. Cost model The service provider should always aim for minimum deployment costs to maximize its revenue. The total cost 𝛷𝑥𝑚𝑗of provisioning a microservice is quantified by the cost of consumed resources (compute power and data transfer) and any additional activation cost due to the need of activating an edge node to run a VM to host that microservice, this is expressed as follows: 𝛷𝑥𝑚𝑗= (𝜂×𝑡𝑐𝑜𝑚𝑝 𝑥𝑚𝑗 )+(𝜗×𝑡𝑐𝑜𝑚𝑚 𝑥𝑚𝑗 ) + 𝜙𝑎𝑐𝑡 (14) Where 𝜂,𝜗, and 𝜙𝑎𝑐𝑡 denote the cost of processing of a microservice per unit of time, the transmission cost per unit of time, and the activation cost of a new edge node to run that microservice in a VM, respectively. We assume that edge nodes in a given MEC are shut down when no microservice is running, which reduces the service provider’s expenditure on energy consumption. Therefore, each initial microservice deployed on a new edge node results in the activation of the edge node, leading to an additional constant activation cost. This activation cost can be due to the cooling or any other maintenance activity on the edge node, regardless of the service deployed. And for all microservices of an application deployed on new edge nodes, the combined activation cost 𝜙𝑎𝑐𝑡 𝑋𝑘is calculated as follows: 𝜙𝑎𝑐𝑡 𝑋𝑘=|𝑀𝑛𝑗|×𝜙𝑎𝑐𝑡,(15) Where |𝑀𝑛𝑗|denotes the number of activated nodes due to the deployment of all the microservices of the request. Thus, for the application with 𝑀microservices, our goal using this cost model will be to find a deployment with the lowest cost. The overall cost is calculated as follows: 𝛷(𝑋𝑘) = 𝑀 ∑ 𝑗=1 𝛷𝑥𝑚𝑗∀𝑘∈𝐾. (16) 4.4. Deployment problem The challenge behind a proper microservice-based application deployment comes from identifying the strategy to achieve the best workload distribution of the different requests among the available MECs, and according to the demand received along the time. Presently, the deployment optimization problem is formulated as follows: 𝑀𝑖𝑛𝑖𝑚𝑖𝑧𝑒 ∶𝛷(𝑋𝑘),(17) subject to the following constraints: 𝐶1 ∶ 𝑚𝑓 𝑗≤𝐶𝑃 𝑈(𝑛𝑗) ∀𝑚𝑗∈𝑀(18) 𝐶2 ∶ 𝑚𝑟𝑎𝑚 𝑗≤𝑅𝐴𝑀(𝑛𝑗) ∀𝑚𝑗∈𝑀(19) 𝐶3 ∶ 𝑏𝑤𝑚𝑖,𝑚𝑗≤𝑏𝑤𝜓𝑖,𝜓𝑗∀𝑒𝑖,𝑗 ∈𝐿(20) 𝐶4 ∶ 𝑆𝑖𝑧𝑒(𝑥𝑚𝑗) = 1 ∀𝑥𝑚𝑗∈𝑋𝑘(21) 𝐶5 ∶ 𝑡𝑚𝑗≤𝑡𝑥𝑚𝑗∀𝑚𝑗∈𝑀(22) 𝐶6 ∶ 𝑡𝑐𝑙𝑎,𝑓 𝑎 𝑎≤𝑡𝑐𝑙𝑎,𝑓 𝑎 𝑥𝑘∀𝑘𝑐𝑙𝑎,𝑓 𝑎 ∈𝐾(23) 𝐶7 ∶ 𝑚𝑗∈𝜓𝑛𝑗,𝑚𝑗∀𝑚𝑗∈𝑀(24) 𝐶1,𝐶2, and 𝐶3state that the edge node 𝑛𝑗assigned to a microservice 𝑚𝑗 should have enough free computational capacity, storage capacity and data rate capacity between MECs, respectively. In addition, 𝐶4states that each microservice will be assigned to a single edge node. Furthermore, 𝐶5and 𝐶6state that the provisioning time of a microservice 𝑡𝑥𝑚𝑗should not exceed the maximum time 𝑡𝑚𝑗that a microservice can tolerate for a particular application, and that the provisioning time 𝑡𝑥𝑘 of a requested MC 𝑘should not exceed the end-to-end threshold time
for provisioning that particular application, either CLA or FA 𝑡𝑐 𝑘 𝑙𝑎,𝑓 𝑎. Finally, 𝐶7 emphasizes that for provisioning a particular microservice 𝑚𝑗 in a MEC, the requested 𝑚𝑗 must be one of the microservice instances hosted by one of the edge nodes 𝑛𝑗 in that MEC. 5. Operation with the ODA heuristic algorithm The proposed heuristic aims to minimize the deployment cost by making appropriate provisioning decisions depending on the requested application category (CLA and FA), taking into account the state of the network and encouraging both parallel processing and the reuse of edge nodes and MECs, aside from using as few MECs as possible in case of service requests with tolerable delays that can be provisioned in multiple MECs. This can be achieved by assigning as many microservices as possible to individual already activated edge nodes in specific MECs or in specific MECs with the best scores of MSFs as we will explain later, resulting in reduced latency, minimized spreading of microservices, and minimized activation costs, which in turn leads to reduced deployment costs. Moreover, identifying the longest CP in each 𝑘∈𝑘𝑓𝑎 of the requested application reduces the likelihood of failures and leads to optimal bandwidth utilization due to a minimized distribution of microservices across multiple MECs. For each FA request, we prioritize the deployment in multiple MECs to indirectly reserve resources in individual MECs to achieve more admissions of CLA requests, in addition to balancing the deployment of application requests, promoting MECs reuse and a parallel processing. Therefore, for each FA, we assign all microservices 𝑚𝑗∈𝐶𝑃 (𝑚𝑗)to the 𝛤𝜓that can minimize 𝛷𝑥𝑚𝑗using the least 𝑇(𝑋𝑘)while satisfying all constraints; then, the remaining microservices are assigned to edge nodes in specific MECs where CP microservices are already allocated in strict compliance with the microservices interdependencies. And after each successful deployment, the available resources on each edge node of any MEC are immediately updated for the next allocation. 5.1. Formation of the critical path (CP) of the requested application The deployment algorithm is designed to trade off resources utilization/availability and latency. Therefore, we adopt the formation of the CP with modifications that match our deployment target, as shown in Algorithm 1, to help the deployment algorithm make a quick deployment decision. The procedure for forming the CP is explained below: For each service request 𝑘∈𝐾, if the request is a FA request 𝑘𝑓𝑎 ∈𝐾, we form the CP, and if it is a CLA request, we immediately forward it to the provisioning algorithm, since CLA takes the form of a single CP. From the graphical representation of our proposed FA use cases, it is clear that CPs can be identified in advance as the longest serial connection of microservices with the highest latency and resource requirements in the requested application. Therefore, we introduce a function indicator 𝐶𝑃 (𝑚𝑗), if 𝐶𝑃 (𝑚𝑗) = 1, the microservice 𝑚𝑗∈𝑘𝑓 𝑎 belongs to the CP, otherwise 𝐶𝑃 (𝑚𝑗) = 0, which means that such microservice in the application is not part of the CP and therefore can be executed in parallel with CP microservices. Moreover, the latter microservices are simply assigned to the edge nodes selected to run CP microservices that still have sufficient resources, considering our deployment goals accordingly: (𝑖)the MECs closest to the user request; (𝑖𝑖)already enabled edge nodes with VMs running the requested microservices; (𝑖𝑖𝑖)no duplication of microservices during deployment, which would lead to excessive resource consumption; and (𝑖𝑣)if MECs in the selected deployment group 𝛤𝜓are far apart, then the closest MECs with minimal network hop distances are considered. This will lead to a reduction in resource consumption and activation costs in the system. Nevertheless, the requirements of each microservice in the CP will be met to ensure an optimal and appropriate service delivery. Therefore, the CP with the highest resource requirements, which represents the latency of the microservices composition, is considered first for deployment, followed by the remaining microservices allocation. This is illustrated by the pseudocode in Algorithm 1. Algorithm 1 Critical path (CP) formation algorithm Required: Requests 𝐾from both application categories (CLA and FA) with different microservices 𝑚𝑗∈𝑘𝑐𝑙𝑎,𝑓 𝑎 to form a CP using function indicator 𝐶𝑃 (𝑚𝑗) Ensure: Formation of CP from FA requests 𝑚𝑗∈𝑘𝑓𝑎. for Each request, 𝑘∈|𝐾|do if 𝑘=𝑘𝑓𝑎 then Identify the longest serial connection of microservices 𝑚𝑗∈ 𝑘𝑓𝑎 to determine CP because the FAs were dealing with, we can easily identify the CP else Microservices 𝑚𝑗∈𝑘𝑐𝑙𝑎 already exist in nature in the form of CP and should be forwarded to the next step end end Using the indicator 𝐶𝑃 (𝑚𝑗), sort the microservices of the requested composition 𝑚𝑗∈𝑘𝑓𝑎 if 𝐶𝑃 (𝑚𝑗)=1then Microservices 𝑚𝑗∈𝑘𝑓𝑎 belong to CP else Microservices 𝑚𝑗∈𝑘𝑓𝑎 are not part of CP (i.e., 𝐶𝑃 (𝑚𝑗)=0), and can be processed in parallel with CP microservices end end end Check the interdependence of microservices 𝑚𝑗∈𝑘𝑓𝑎 for Right Interdependencies of microservices 𝑚𝑗∈𝑘𝑓𝑎 do if 𝐶𝑃 = Highest resource requirement 𝑚𝑗∈𝑘𝑓𝑎 then Prioritize CP for deployment first, followed by the remaining microservices to be processed in parallel during deployment end end 5.2. Deployment of service requests At this stage, ODA considers a set of MSFs of individual MECs 𝜓𝑖∈𝛹and groups of MECs 𝛤𝜓∈𝛹where the available resources are sufficient to adequately serve a request while satisfying all required service request constraints. This approach is different from other heuristics proposed in the literature, such as the algorithms used in our comparisons. In our case, the best MEC or group of MECs is selected based on the type of request (CLA or FA) and the MSFs of candidate MECs to achieve the deployment goal while meeting all the deployment constraints explained above. Furthermore, in the case of FAs, which can be deployed in both single MECs or multiple MECs, the deployment in multiple MECs is preferred for the reasons discussed above. The various MSFs considered to select the best candidate MECs for deployment are discussed in the following subsections: 5.2.1. Optimal selection of MECs for service request provisioning Classical heuristics rely on ranking the MECs to select the optimal ones for provisioning, a ranking set by resource availability. This is based on the available total CPU capacity of each MEC system 𝐶𝑃 𝑈(𝜓), which in our case is the sum of the capacities of all edge nodes CPU in the MEC ∑𝑁 𝑛=1 𝐶𝑃 𝑈(𝑛𝑗), and the available total bandwidth of their outgoing links, where their product provides insights into the MEC’s state as: 𝑀𝐸𝐶_𝑆(𝜓𝑖) = 𝐶𝑃 𝑈(𝜓𝑖) × ∑ 𝑛𝑏𝑟(𝜓𝑖) 𝐵𝑊 (𝑒𝑖,𝑗 ),(25)
Fig. 4. Illustrations of the shortcomings with the classical mapping and deployment approaches. where 𝑀𝐸𝐶_𝑆(𝜓𝑖)and 𝐶𝑃 𝑈(𝜓𝑖)represent the MEC state (MEC_S) and the CPU capacity for MEC 𝜓𝑖, respectively. 𝐵𝑊 (𝑒𝑖,𝑗 )represents the available bandwidth of link 𝑒𝑖,𝑗 , and 𝑛𝑏𝑟(𝜓𝑖)represents the set of links directly connected to MEC 𝜓𝑖. However, if we adopt the approach in Eq. (25), this may not lead to an adequate allocation and provisioning of different service categories under strict provisioning constraints, especially for microservice-based service requests that could be provisioned in more than one MEC centre. This is because, on not considering some relevant MSFs, the following shortcomings will come up: (𝑖)Only the local resources of the MECs are considered, while the resource capacities of the neighbouring MECs are ignored, which is not useful in a multi-MEC system. This is illustrated in Fig. 4(a), where the numbers in the boxes represent the CPU capacity of the MECs and the numbers on the lines represent the available bandwidth of the links. In this way, for MEC A, 𝑀𝐸𝐶_𝑆(𝐴)is calculated as 𝑀𝐸𝐶_𝑆(𝐴) = 20 × (20 + 20 + 20) = 120, and the calculation for MEC E is 𝑀𝐸𝐶_𝑆(𝐸) = 20 × (20 + 20 + 20) = 120, resulting in the same 𝑀𝐸𝐶_𝑆(𝜓𝑖)as for MEC A. However, selecting MEC E provides more opportunities for successful allocation and provisioning because there are more CPUs available in the neighbouring MECs, i.e., MECs F and G have more CPU resources than MECs B and C, respectively. In this way, we assume that the provisioning potential of MEC E is greater than that of MEC A. Therefore, this property will be considered by the proposed ODA algorithm. (𝑖𝑖)For the case of FA requests with a tolerant delay, whose deployment in more than one MEC is feasible, the optimal deployment requires considering the delay incurred between different microservices that can be deployed in different MECs. This consideration is not made in classical approaches, which can lead to jitter effects. Besides, it is also convenient to map microservices to MECs that are not far apart, to reduce the unnecessary bandwidth consumption of substrate links and the corresponding fragmentation of computational resources of the edge computing system. (𝑖𝑖𝑖)Classical approaches ignore as well key features of the topology of the multi-MEC system, such as the MEC degree or ability of the MECs in the system to easily form a group of MECs to meet computationally intensive demands. From Fig. 4(b), it can be seen that MEC A and E have the same 𝑀𝐸𝐶_𝑆(𝜓𝑖), but their degrees are different, where 𝑑𝑒𝑔𝑟𝑒𝑒(𝐴) = 3, while 𝑑𝑒𝑔𝑟𝑒𝑒(𝐸)=4. In this regard, deploying the service in MEC E provides a better chance of achieving a successful deployment, since more MECs are only a few hops apart, accounting for more resources of the formed group of MECs. (𝑖𝑣)From the illustrations in Fig. 4(c), it can be seen that the neighbour MECs for A and E have the same CPU capacities, but MEC D has less bandwidth resources than MEC H. Obviously, the provisioning in MEC E is better than in MEC A, since MEC H has more local resources than MEC D. This is still a good consideration for provisioning resource-intensive services with non sensitive delay requirements, since provisioning will most likely occur in more than one MEC. (𝑣)Finally, the average CPU utilization ratio of MECs, which is crucial for the deployment of computationally intensive and delaysensitive applications, is not considered in classical approaches. For example, consider the 𝐶𝑃𝑖as shown in Fig. 4(d), it consists of four microservices (𝑀1𝑡𝑜 𝑀4)with a total demand of 30 CPU. MECs A and B are suitable candidates for provisioning 𝐶𝑃𝑖. But provisioning 𝐶𝑃𝑖in MEC A will consume all its CPU resources and will almost invalidate the connection between neighbouring MECs B and D, leading to a fragmentation of network resources. Such a situation will most likely cause the subsequent link mapping to fail. Therefore, the CPU utilization ratio of the MECs should also be taken into account to avoid such situations. Conversely, our proposed algorithm considers the following MSFs to select an appropriate MEC or group of MECs for optimal service provisioning, as explained below: 5.2.2. MSFs considered by the ODA algorithm, and tailored for microservicebased service provisioning in MECs Here, we present the MSFs that enable optimal selection of individual MECs and groups of MECs for provisioning requests while minimizing deployment costs, which also leads to efficient and effective resource utilization of the substrate network.
Fig. 7. Experiment 3: Performance evaluation of the impact of network size by varying the number of MECs from 5 to 25 for a fixed number of 60 service requests. 6.4.3. System size analysis In Experiment 3, we vary the number of MECs from 5 to 25 to analyse the effect of the system size on different provisioning algorithms, as shown in Fig. 7. The main objective is to determine the provisioning cost and time with respect to the network size, showing the robustness of the proposed algorithm. We also study the performance of our proposal in terms of acceptance ratio with different network sizes. The results in Fig. 7(a) show that the cost gradually decreases with the increase in the number of MECs for all algorithms, which is similar in Fig. 7(b), where the acceptance ratio increases with the increase in the number of MECs in all deployment algorithms due to the increase in resources availability, resulting in larger opportunities and options for accepting more requests. However, ODA achieves the lowest deployment cost with an average cost of $2.5compared to $10.7,$8.1,$14.0, and $11.3for IDA4ReE, GSP, RAA, and AP, respectively. ODA leads to a significant improvement of about 76.6% and 69.2% compared to IDA4Re and GSP, respectively. Despite the plenty of resources in the network due to the increased number of MECs, RAA and AP show the worst performance in terms of deployment cost, with average values of $14.0and $11.3, respectively, which are higher than those of the proposed algorithm. This is because the average provisioning of requests by AP and the random nature of RAA lead to an excessive resource consumption and activation of new edge nodes during deployment. In addition, GSP performs better than IDA4Re and lags behind ODA because ODA makes critical decisions during deployment considering the nature of the application request, resulting in a lower deployment cost per request. In terms of average acceptance ratio, both ODA and GSP show almost the same best performance on average, with GSP performing 1.9% better with an average value of 62.4% compared to ODA with 61.2%. While IDA4ReE, RAA and AP yield average values of 51.4%, 45.2% and 45.9% respectively, which are lower than those of ODA. Moreover, compared to the other algorithms, GSP shows superior performance for large networks of 16 MECs and above. This is because as the number of MECs increases, there is plenty of resources in the system that are distributed close to the end users. This type of distribution gives greedy techniques, such as GSP, the opportunity to greedily occupy any nearby resource that can be utilized by nearby service requests without suffering bottleneck situations. However, the proposed algorithm remains competitive on average and has the best acceptance ratio for small network sizes compared to all other algorithms, as shown in Fig. 7(b). Moreover, its requests are served at minimal cost compared to other algorithms, as shown in Fig. 7(a). This justifies its high scalability, robustness, and efficient resource utilization of the network, which makes it a good strategy for providing future sensitive services. In terms of average provisioning time, as shown in Fig. 7(c), GSP requires the most average provisioning time with 51.6 ms per admitted request, which corresponds to an overhead of about 81% and 65.4% compared to average values of 9.8 and 17.9 ms for ODA and IDA4ReE, respectively. Moreover, the runtime of RAA and AP gradually increases as the number of MECs increases, in contrast to ODA, whose deployment time gradually decreases as the number of MECs increases. This is due to the fact that there are many possible candidate solutions for each request and the greedy and random algorithms can provision requests using arbitrary MECs, even distant MECs as far as the constraints are met, which increases the average provisioning time per accepted request. On the other hand, ODA uses a systematic optimal selection of MECs before provisioning any service request. This justifies that our proposed algorithm is suitable for provisioning delay-sensitive and delay-tolerant services, jointly, in the same network and under different network sizes. In conclusion, the proposed strategy has a satisfactory performance working with different network sizes in achieving the goal of minimizing both provisioning time and cost, and thus it will be a good strategy for the provisioning of future more elaborated sensitive services. 6.4.4. Impact of the microservice instance number The results shown in Fig. 8 correspond to Experiment 4, where we vary the number of instances in steps of 2 from 2 to 10 to compare the performance of the five algorithms. As seen in Figs. 8(a) and 8(b), gradually increasing the number of instances leads to a decrease in cost and an increase in acceptance ratio for all algorithms. This is because the more microservice instances available, the more opportunities the algorithms have to serve the requests. Since provisioning is feasible in more MECs of the system, they can take advantage of MEC edge nodes incurring in lower costs, which improves performance in both acceptance ratio and provisioning cost. However, ODA, IDA4ReE and GSP perform almost equally in terms of acceptance ratio with average values of 60.1%, 56.7% and 57.7%, respectively. In contrast to IDA4ReE, whose average deployment cost is $5.4, with an increase of only 15.1% compared to $4.6 with ODA. GSP achieves a high acceptance ratio at the expense of high processing costs and times. From Fig. 8(c), ODA deploys each request in 12.74 ms on average, which is about 25.3%, 61.3%, 50.1%, and 36.3% faster than IDA4ReE, GSP, RAA, and AP, whose processing time per request is 17.1 ms, 32.9 ms, 25.5 ms, and 20 ms, respectively. GSP exhibits the worst deployment time when the number of instances increases, as this leads to an increase in decision time for feasible candidates to serve the service requests. The best performance of ODA is due to its systematic approach making deployment decisions, as explained in Experiment 3. Moreover, since 6 microservice instances, almost the same provisioning time is used, which means that deploying more than 6 microservice instances is a waste of resources for our proposed algorithm, making it a cost-effective and resource-efficient strategy, suitable for provisioning future services with different QoS requirements in the same network. 7. Conclusion Based on the dynamics of a MEC environment, the state of the network and computing nodes, and the distribution of end users requesting
Fig. 8. Experiment 4: Performance evaluation of the impact of microservice instances by varying the number of instances from 2 to 10 for a fixed number of 60 requests and 25 MECs. different categories of applications with different QoS requirements, we have analysed the challenges behind the deployment of four representative future applications when deployed onto a MEC system. As a consequence, we have proposed the ODA algorithm to minimize the associated deployment costs while satisfying all request constraints for the four applications. We have evaluated the performance of ODA using a number of metrics. The results show that ODA is superior to several other representative deployment techniques in most of the evaluation metrics, especially in deployment cost and time. However, there are some limitations with the proposal. Currently, we only consider the cost of consumed resources and the activation of edge nodes when deploying microservices of an application. In addition, the proposed ODA algorithm may not be suitable for all types of MEC environments or service requirements. In future work, we will consider other issues such as the probability of failure and the reliability of the network components, in addition to new scenarios such as multi-domain systems, to model a more extended geographical distribution of end users. In addition, we intend to further improve the scope of the algorithm when considering more elaborated timesensitive future services, modelled by more complex DAGs. And we will also test the algorithm on a more general cloud–edge hybrid scenario and evaluate its performance on deploying such more complex future applications. CRediT authorship contribution statement John Bosco Ssemakula: Conceptualization, Project administration, Validation, Writing – original draft, Writing – review & editing. Juan- Luis Gorricho: Conceptualization, Project administration, Supervision, Validation, Writing – review & editing. Godfrey Kibalya: Formal analysis, Validation, Writing – original draft, Writing – review & editing. Joan Serrat-Fernandez: Funding acquisition, Supervision, Validation, Visualization, Writing – review & editing. Declaration of competing interest The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper. Data availability Data will be made available on request. Acknowledgements This work has been partially funded by the project ‘‘UNICO-5G I+D-OPTIMAIX - TSI - 063000-2021-34’’, and supported by the Agencia Estatal de Investigación of Ministerio de Ciencia e Innovación of Spain under project PID2022-137329OB-C41/MCIN/AEI/10.13039/ 501100011033. References [1] M. Simsek, A. Aijaz, M. Dohler, J. Sachs, G. Fettweis, 5G-enabled tactile internet, IEEE J. Sel. Areas Commun. 34 (3) (2016) 460–473, http://dx.doi.org/10.1109/ JSAC.2016.2525398. [2] X. He, Z. Tu, X. Xu, Z. Wang, Programming framework and infrastructure for self-adaptation and optimized evolution method for microservice systems in cloud–edge environments, Future Gener. Comput. Syst. 118 (2021) 263–281, http://dx.doi.org/10.1016/j.future.2021.01.008, URL https://www.sciencedirect. com/science/article/pii/S0167739X21000170. [3] G. Liu, B. Huang, Z. Liang, M. Qin, H. Zhou, Z. Li, Microservices: architecture, container, and challenges, in: 2020 IEEE 20th International Conference on Software Quality, Reliability and Security Companion, QRS-C, IEEE, 2020, pp. 629–635. [4] J.B. Ssemakula, J.-L. Gorricho, G. Kibalya, J. Serrat-Fernandez, An artificial intelligence strategy for teh deployment of future microservice-based applications in 6G networks, Neural Comput. Appl. (2024) 1–27. [5] M.S. Elbamby, C. Perfecto, M. Bennis, K. Doppler, Toward low-latency and ultra-reliable virtual reality, IEEE Netw. 32 (2) (2018) 78–84. [6] A. Clemm, M.F. Zhani, R. Boutaba, Network management 2030: Operations and control of network 2030 services, J. Netw. Syst. Manage. 28 (4) (2020) 721–750. [7] N.D. Nguyen, L.-A. Phan, D.-H. Park, S. Kim, T. Kim, ElasticFog: Elastic resource provisioning in container-based fog computing, IEEE Access 8 (2020) 183879–183890. [8] A. Clemm, M.T. Vega, H.K. Ravuri, T. Wauters, F. De Turck, Toward truly immersive holographic-type communication: Challenges and solutions, IEEE Commun. Mag. 58 (1) (2020) 93–99. [9] A. Yastrebova, R. Kirichek, Y. Koucheryavy, A. Borodin, A. Koucheryavy, Future networks 2030: Architecture & requirements, in: 2018 10th International Congress on Ultra Modern Telecommunications and Control Systems and Workshops, ICUMT, IEEE, 2018, pp. 1–8. [10] I. FG-NET2030, New services and capabilities for network 2030: description, technical gap and performance target analysis, 2019, FG-NET2030 document NET2030-O-027. [11] A. Karimi, K.m. Pedersen, N.H. Mahmood, G. Berardinelli, P. Mogensen, On the multiplexing of data and metadata for ultra-reliable low-latency communications in 5G, IEEE Trans. Veh. Technol. 69 (10) (2020) 12136–12147. [12] P.A. Rauschnabel, Augmented reality is eating teh real-world! Teh substitution of physical products by holograms, Int. J. Inf. Manage. 57 (2021) 102279. [13] L. Lu, H. Wang, P. Liu, R. Liu, J. Zhang, Y. Xie, S. Liu, T. Huo, M. Xie, X. Wu, et al., Applications of mixed reality technology in orthopedics surgery: a pilot study, Front. Bioeng. Biotechnol. 10 (2022). [14] E. Cuervo, A. Balasubramanian, D.-k. Cho, A. Wolman, S. Saroiu, R. Chandra, P. Bahl, Maui: making smartphones last longer with code offload, in: Proceedings of the 8th International Conference on Mobile Systems, Applications, and Services, 2010, pp. 49–62. [15] V. De Maio, I. Brandic, First hop mobile offloading of dag computations, in: 2018 18th IEEE/ACM International Symposium on Cluster, Cloud and Grid Computing, CCGRID, IEEE, 2018, pp. 83–92. [16] C. Avasalcai, C. Tsigkanos, S. Dustdar, Resource management for latencysensitive IoT applications wif satisfiability, IEEE Trans. Serv. Comput. 15 (5) (2021) 2982–2993. [17] S.R. Hassan, I. Ahmad, A.U. Rehman, S. Hussen, H. Hamam, Design of resourceaware load allocation for heterogeneous fog computing environments, Wirel. Commun. Mob. Comput. 2022 (2022) 1–11. [18] S. Lefèvre, R. Bajcsy, C. Laugier, Probabilistic decision making for collision avoidance systems: Postponing decisions, in: 2013 IEEE/RSJ International Conference on Intelligent Robots and Systems, IEEE, 2013, pp. 4370–4375. [19] G. Cherradi, A. El Bouziri, A. Boulmakoul, K. Zeitouni, Real-time hazmat environmental information system: A micro-service based architecture, Procedia Comput. Sci. 109 (2017) 982–987.
[20] I.-D. Filip, F. Pop, C. Serbanescu, C. Choi, Microservices scheduling model over heterogeneous cloud-edge environments as support for IoT applications, IEEE Internet Things J. 5 (4) (2018) 2672–2681. [21] P. Di Francesco, P. Lago, I. Malavolta, Migrating towards microservice architectures: an industrial survey, in: 2018 IEEE International Conference on Software Architecture, ICSA, IEEE, 2018, pp. 29–2909. [22] F. Boyer, X. Etchevers, N. De Palma, X. Tao, Architecture-based automated updates of distributed microservices, in: Service-Oriented Computing: 16th International Conference, ICSOC 2018, Hangzhou, China, November 12-15, 2018, Proceedings 16, Springer, 2018, pp. 21–36. [23] M. Voegler, J.M. Schleicher, C. Inzinger, S. Dustdar, Optimizing elastic IoT application deployments, IEEE Trans. Serv. Comput. 11 (5) (2016) 879–892. [24] M. Abdullah, W. Iqbal, A. Erradi, Unsupervised learning approach for web application auto-decomposition into microservices, J. Syst. Softw. 151 (2019) 243–257. [25] X. Wan, X. Guan, T. Wang, G. Bai, B.-Y. Choi, Application deployment using microservice and docker containers: Framework and optimization, J. Netw. Comput. Appl. 119 (2018) 97–109. [26] C. Guerrero, I. Lera, C. Juiz, Resource optimization of container orchestration: a case study in multi-cloud microservices-based applications, J. Supercomput. 74 (7) (2018) 2956–2983. [27] B. Tan, H. Ma, Y. Mei, A NSGA-II-based approach for multi-objective micro-service allocation in container-based clouds, in: 2020 20th IEEE/ACM International Symposium on Cluster, Cloud and Internet Computing, CCGRID, IEEE, 2020, pp. 282–289. [28] Z. Wen, T. Lin, R. Yang, S. Ji, R. Ranjan, A. Romanovsky, C. Lin, J. Xu, Gapar: Dependable microservice orchestration framework for geo-distributed clouds, IEEE Trans. Parallel Distrib. Syst. 31 (1) (2019) 129–143. [29] B. Li, Q. He, G. Cui, X. Xia, F. Chen, H. Jin, Y. Yang, READ: Robustness-oriented edge application deployment in edge computing environment, IEEE Trans. Serv. Comput. 15 (3) (2020) 1746–1759. [30] F. Faticanti, F. De Pellegrini, D. Siracusa, D. Santoro, S. Cretti, Throughput-aware partitioning and placement of applications in fog computing, IEEE Trans. Netw. Serv. Manag. 17 (4) (2020) 2436–2450. [31] H. Yin, X. Zhang, H.H. Liu, Y. Luo, C. Tian, S. Zhao, F. Li, Edge provisioning wif flexible server placement, IEEE Trans. Parallel Distrib. Syst. 28 (4) (2016) 1031–1045. [32] T.G. Rodrigues, K. Suto, H. Nishiyama, N. Kato, Hybrid method for minimizing service delay in edge cloud computing through VM migration and transmission power control, IEEE Trans. Comput. 66 (5) (2016) 810–819. [33] M. Chen, Y. Hao, Task offloading for mobile edge computing in software defined ultra-dense network, IEEE J. Sel. Areas Commun. 36 (3) (2018) 587–597. [34] X. Chen, L. Jiao, W. Li, X. Fu, Efficient multi-user computation offloading for mobile-edge cloud computing, IEEE/ACM Trans. Netw. 24 (5) (2015) 2795–2808. [35] S. Mu, Z. Zhong, D. Zhao, M. Ni, Joint job partitioning and collaborative computation offloading for Internet of Things, IEEE Internet Things J. 6 (1) (2018) 1046–1059. [36] J. Ren, G. Yu, Y. Cai, Y. He, Latency optimization for resource allocation in mobile-edge computation offloading, IEEE Trans. Wireless Commun. 17 (8) (2018) 5506–5519. [37] T. Bahreini, D. Grosu, Efficient placement of multi-component applications in edge computing systems, in: Proceedings of Teh Second ACM/IEEE Symposium on Edge Computing, 2017, pp. 1–11. [38] H.R. Arkian, A. Diyanat, A. Pourkhalili, MIST: Fog-based data analytics scheme with cost-efficient resource provisioning for IoT crowdsensing applications, J. Netw. Comput. Appl. 82 (2017) 152–165. [39] R. Urgaonkar, S. Wang, T. He, M. Zafer, K. Chan, K.K. Leung, Dynamic service migration and workload scheduling in edge-clouds, Perform. Eval. 91 (2015) 205–228. [40] M. Barcelo, A. Correa, J. Llorca, A.M. Tulino, J.L. Vicario, A. Morell, IoT-cloud service optimization in next generation smart environments, IEEE J. Sel. Areas Commun. 34 (12) (2016) 4077–4090. [41] J. Pei, P. Hong, K. Xue, D. Li, Efficiently embedding service function chains wif dynamic virtual network function placement in geo-distributed cloud system, IEEE Trans. Parallel Distrib. Syst. 30 (10) (2018) 2179–2192. [42] Z. Luo, C. Wu, Z. Li, W. Zhou, Scaling geo-distributed network function chains: A prediction and learning framework, IEEE J. Sel. Areas Commun. 37 (8) (2019) 1838–1850. [43] M. Chowdhury, M.R. Rahman, R. Boutaba, Vineyard: Virtual network embedding algorithms wif coordinated node and link mapping, IEEE/ACM Trans. Netw. 20 (1) (2011) 206–219. [44] S. Deng, Z. Xiang, J. Taheri, M.A. Khoshkholghi, J. Yin, A.Y. Zomaya, S. Dustdar, Optimal application deployment in resource constrained distributed edges, IEEE Trans. Mob. Comput. 20 (5) (2020) 1907–1923. [45] L.F. Bittencourt, M.M. Lopes, I. Petri, O.F. Rana, Towards virtual machine migration in fog computing, in: 2015 10th International Conference on P2P, Parallel, Grid, Cloud and Internet Computing, 3PGCIC, IEEE, 2015, pp. 1–8. [46] Q. Li, S. Wang, A. Zhou, X. Ma, F. Yang, A.X. Liu, QoS driven task offloading with statistical guarantee in mobile edge computing, IEEE Trans. Mob. Comput. 21 (1) (2020) 278–290. [47] W. Zhan, et al., Deep-reinforcement-learning-based offloading scheduling for vehicular edge computing, IEEE Internet Things J. 7 (6) (2020) 5449–5465. [48] G. Sun, Y. Li, D. Liao, V. Chang, Service function chain orchestration across multiple domains: A full mesh aggregation approach, IEEE Trans. Netw. Serv. Manag. 15 (3) (2018) 1175–1191. [49] G. Kibalya, J. Serrat, J.-L. Gorricho, D. Okello, P. Zhang, A deep reinforcement learning-based algorithm for reliability-aware multi-domain service deployment in smart ecosystems, Neural Comput. Appl. (2020) 1–23. [50] K. Hejja, X. Hesselbach, Online power aware coordinated virtual network embedding wif 5G delay constraint, J. Netw. Comput. Appl. 124 (2018) 121–136. [51] J. Wang, J. Hu, G. Min, A.Y. Zomaya, N. Georgalas, Fast adaptive task offloading in edge computing based on meta reinforcement learning, IEEE Trans. Parallel Distrib. Syst. 32 (1) (2020) 242–253. [52] A. Machen, S. Wang, K.K. Leung, B.J. Ko, T. Salonidis, Live service migration in mobile edge clouds, IEEE Wirel. Commun. 25 (1) (2017) 140–147. [53] G. KIbalya, J. Serrat-Fernández, J.-L. Gorricho, P. Zhang, A reinforcement learning approach for virtual network function chaining and sharing in softwarized networks, IEEE Trans. Netw. Serv. Manag. 19 (3) (2022) 3352–3370. [54] J.B. Ssemakula, J.-L. Gorricho, G. Kibalya, J. Serrat-Fernandez, Deployment of future services in a multi-access edge computing environment using intelligence at teh edge, J. Netw. Syst. Manage. 31 (4) (2023) 72. [55] C. Niu, Y. Li, R.Q. Hu, F. Ye, Fast and efficient radio resource allocation in dynamic ultra-dense heterogeneous networks, IEEE Access 5 (2017) 1911–1924, http://dx.doi.org/10.1109/ACCESS.2017.2653798. [56] T. Ahmaniemi, H. Lindholm, K. Muller, T. Taipalus, Virtual reality experience as a stress recovery solution in workplace, in: 2017 IEEE Life Sciences Conference, LSC, 2017, pp. 206–209, http://dx.doi.org/10.1109/LSC.2017.8268179. [57] K. Raaen, I. Kjellmo, Measuring latency in virtual reality systems, in: K. Chorianopoulos, M. Divitini, J. Baalsrud Hauge, L. Jaccheri, R. Malaka (Eds.), Entertainment Computing - ICEC 2015, Springer International Publishing, Cham, 2015, pp. 457–462. [58] A. Pekar, J. Mocnej, W.K. Seah, I. Zolotova, Application domain-based overview of IoT network traffic characteristics, ACM Comput. Surv. 53 (4) (2020) 1–33.