A method and device for collaborative resource allocation in a mobile edge computing network

By allocating resources according to application latency requirements and mobility priorities in the mobile edge computing network, the problems of high processing latency and low resource utilization are solved, and rational allocation and efficient utilization of resources are achieved.

CN115022928BActive Publication Date: 2024-10-15SHANGHAI CETRON NETWORK TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210624379.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-10-15
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

In mobile edge computing networks, existing technologies are difficult to effectively reduce processing delays and improve resource utilization, especially in terms of resource allocation on edge servers at different levels.

Method used

By traversing the application instances of resources to be allocated, the application instances are allocated to remote data center, metropolitan area or base station level resources according to the delay requirements and mobility priorities, giving priority to those with higher mobility priorities or higher resource requirements. Large application instances allocate resources and transfer them step by step when resources are insufficient to ensure reasonable allocation of resources.

Benefits of technology

It realizes resource allocation based on the application's temporal requirements and mobility characteristics, reduces processing delays and improves resource utilization, ensuring users' high-quality network experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115022928B_ABST
    Figure CN115022928B_ABST
Patent Text Reader

Abstract

The present application discloses a method for collaborative resource allocation in a mobile edge computing network, including: traversing all application instances of resources to be allocated, and if the delay requirement of the application instance is greater than or equal to the delay threshold of the corresponding application, adding it to the instance set RUA; otherwise, adding the application instance with a mobility priority less than the mobility threshold G to the instance set BUA, and adding the application instance with a mobility priority greater than or equal to the mobility threshold G to the MUA; in the MUA, allocating metropolitan-level resources to application instances with a greater mobility priority; in the BUA, allocating base station-level resources to application instances with a smaller mobility priority; in the RUA, allocating remote data center resources to application instances with a greater resource requirement. By applying the present application, it is possible to reasonably select resources at different levels for application instances, reduce processing delays as much as possible, and improve resource utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to mobile edge computing technology, and in particular to a method and device for collaborative resource allocation in a mobile edge computing network. Background Art

[0002] Mobile Edge Computing (MEC) is a network architecture that provides user services and cloud computing functions on the wireless side. Compared with traditional centralized cloud data center resources, edge cloud resources are closer to users in terms of both geographical location and logical location, which can accelerate the rapid download of various applications in the network, allowing users to enjoy an uninterrupted high-quality network experience, with ultra-low latency, ultra-high bandwidth, strong real-time performance and other characteristics.

[0003] To improve resource utilization, computing resources are allocated based on container instances as the basic unit, and applications running in container instances are called application instances. The edge servers of edge cloud resources are deployed in layers, involving multiple levels from remote, metropolitan areas to base stations. Various application instances in actual applications need to be deployed on edge servers at different levels, and the specific resource deployment method needs to be reasonable to minimize processing latency and improve network experience. Summary of the invention

[0004] The present application provides a method and device for collaborative resource allocation in a mobile edge computing network, which can reasonably select resources at different levels for application instances, minimize processing latency, and improve resource utilization.

[0005] To achieve the above objectives, this application adopts the following technical solutions:

[0006] A resource collaborative allocation method in a mobile edge computing network, comprising:

[0007] a. Traverse all application instances of resources to be allocated. If the delay requirement of the application instance is greater than or equal to the delay threshold of the corresponding application, add the application instance to the instance set RUA of remote data center resources to be allocated; otherwise, add the application instance whose mobility priority is less than the preset mobility threshold G to the instance set BUA of base station-level resources to be allocated, and add the application instance whose mobility priority is greater than or equal to the preset mobility threshold G to the instance set MUA of metropolitan-level resources to be allocated;

[0008] b. In the MUA, give priority to application instances with greater mobility priority, allocate required resources to them in the metropolitan resources, and move the application instances to which the metropolitan resources have been allocated out of the MUA until the metropolitan resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty;

[0009] In the BUA, application instances with a lower mobility priority are given priority, required resources are allocated to them in the base station level resources, and application instances to which base station level resources have been allocated are moved out of the BUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the BUA or the BUA is empty;

[0010] In the RUA, priority is given to application instances with greater resource requirements, and the required resources are allocated to them in the remote data center resources, and application instances that have been allocated base station-level resources are moved out of the RUA until the base station-level resources can no longer meet the requirements of the remaining application instances in the RUA or the RUA is empty.

[0011] Preferably, after allocating required resources to the application instance in the metropolitan area level resources, the method further comprises:

[0012] If the MUA is not empty, priority is given to application instances with greater mobility priority, required resources are allocated to them in the base station level resources, and application instances to which base station level resources have been allocated are moved out of the MUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty;

[0013] After allocating required resources to the application instance in the base station level resources, the method further includes:

[0014] If the BUA is not empty, application instances with lower mobility priority are prioritized and required resources are allocated to them in the metropolitan-level resources, and application instances to which metropolitan-level resources have been allocated are moved out of the BUA until the metropolitan-level resources can no longer meet the resource requirements of the remaining application instances in the BUA or the BUA is empty.

[0015] Preferably, the giving priority to application instances with a greater mobility priority, and allocating required resources to them in the metropolitan area resources comprises: allocating required resources to corresponding application instances in the metropolitan area resources for application instances whose resource requirements are sufficient to be met by metropolitan area resources in descending order of mobility priority;

[0016] The giving priority to application instances with a smaller mobility priority and allocating required resources to them in the base station-level resources comprises: allocating required resources to the corresponding application instances in the base station-level resources for application instances whose resource requirements are sufficient to be met by the base station-level resources in order of increasing mobility priority;

[0017] The giving priority to application instances with greater resource requirements and allocating the required resources to them in the remote data center resources includes: allocating the required resources to the corresponding application instances in the remote data center resources in order of resource requirements from large to small, for application instances whose resource requirements are sufficient to be met by the remote data center resources.

[0018] Preferably, the giving priority to the application instance with a greater mobility priority, allocating required resources to it in the base station level resources comprises: allocating required resources to the corresponding application instance in the base station level resources in descending order of mobility priority for the application instance whose resource demand is sufficient to be met by the base station level resources;

[0019] The giving priority to application instances with smaller mobility priorities and allocating required resources to them in metropolitan-level resources includes: allocating required resources to corresponding application instances in metropolitan-level resources in order of mobility priorities from small to large, for application instances whose resource requirements are sufficient to be met by metropolitan-level resources.

[0020] Preferably, when allocating required resources for any application instance in the metropolitan area resources, a server with the most currently available resources that can allocate resources for any application instance is selected to complete resource allocation;

[0021] When allocating required resources for any application instance in the base station-level resources, a server with the most currently available resources that can allocate resources for any application instance is selected to complete resource allocation;

[0022] When allocating required resources for any application instance in the remote data center resources, a server with the most currently available resources that can allocate resources for any application instance is selected to complete the resource allocation.

[0023] Preferably, for different applications, corresponding delay thresholds are preset.

[0024] Preferably, the mobility priority of the application instance g(y)=g(y→S,y→U)=y→S / y→U,y∈Y, wherein Y represents the set of all application instances, y is the application instance, y→S represents the historical base station switching times of the application to which the application instance belongs, and y→U represents the historical usage times of the application to which the application instance belongs.

[0025] A resource collaborative allocation device in a mobile edge computing network, comprising: a preprocessing unit, a MUA processing unit, a BUA processing unit and a RUA processing unit;

[0026] The preprocessing unit is used to traverse all application instances of resources to be allocated, and if the delay requirement of the application instance is greater than or equal to the delay threshold of the corresponding application, the application instance is added to the instance set RUA of the remote data center resources to be allocated; otherwise, the application instance whose mobility priority is less than the preset mobility threshold G is added to the instance set BUA of the base station-level resources to be allocated, and the application instance whose mobility priority is greater than or equal to the preset mobility threshold G is added to the instance set MUA of the metropolitan-level resources to be allocated;

[0027] The MUA processing unit is used to give priority to application instances with greater mobility priority in the MUA, allocate required resources to them in the metropolitan level resources, and move the application instances to which the metropolitan level resources have been allocated out of the MUA until the metropolitan level resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty;

[0028] The BUA processing unit is used to give priority to application instances with lower mobility priority in the BUA, allocate required resources to them in the base station level resources, and move the application instances to which the base station level resources have been allocated out of the BUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the BUA or the BUA is empty;

[0029] The RUA processing unit is used to give priority to application instances with greater resource requirements in the RUA, allocate required resources to them in the remote data center resources, and move application instances to which base station-level resources have been allocated out of the RUA until the base station-level resources can no longer meet the requirements of the remaining application instances in the RUA or the RUA is empty.

[0030] Preferably, the MUA unit is further used to allocate required resources to application instances in metropolitan-level resources, and if the MUA is not empty, give priority to application instances with greater mobility priority, allocate required resources to them in base station-level resources, and move application instances to which base station-level resources have been allocated out of the MUA until the base station-level resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty;

[0031] The BUA unit is further used to allocate required resources to application instances in base station level resources. If the BUA is not empty, it will give priority to application instances with lower mobility priority and allocate required resources to them in metropolitan level resources, and move application instances to which metropolitan level resources have been allocated out of the BUA until the metropolitan level resources can no longer meet the resource requirements of the remaining application instances in the BUA or the BUA is empty.

[0032] It can be seen from the above technical solution that in this application, all application instances of resources to be allocated are traversed. If the delay requirement of the application instance is greater than or equal to the delay threshold of the corresponding application, the application instance is added to the instance set RUA of the remote data center resources to be allocated; otherwise, the application instance with a mobility priority less than the preset mobility threshold G is added to the instance set BUA of the base station-level resources to be allocated, and the application instance with a mobility priority greater than or equal to the preset mobility threshold G is added to the instance set MUA of the metropolitan-level resources to be allocated. In the above manner, it is possible to decide whether the application is deployed in edge resources or data centers according to the time requirements of the application. Next, in MUA, priority is given to application instances with greater mobility priority, and required resources are allocated to them in metropolitan-level resources, and application instances that have been allocated metropolitan-level resources are moved out of MUA until the metropolitan-level resources cannot meet the resource requirements of the remaining application instances in MUA or the MUA is empty; in BUA, priority is given to application instances with lower mobility priority, and required resources are allocated to them in base station-level resources, and application instances that have been allocated base station-level resources are moved out of BUA until the base station-level resources cannot meet the resource requirements of the remaining application instances in BUA or the BUA is empty; in RUA, priority is given to application instances with greater resource requirements, and required resources are allocated to them in remote data center resources, and application instances that have been allocated base station-level resources are moved out of RUA until the base station-level resources cannot meet the requirements of the remaining application instances in RUA or the RUA is empty. In the above manner, it is possible to decide whether the application is deployed on metropolitan-level edge resources or base station-level resources according to the mobility characteristics of the application. In this way, the temporal requirements and mobility characteristics of the above-mentioned different application instances are used to allocate resources for the application instances. By reasonably placing multiple application instances of different applications, resource utilization can be improved as much as possible and processing delay can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the basic flow of the resource collaborative allocation method in the mobile edge computing network in this application;

[0034] Figure 2 This is a basic structural diagram of a resource collaborative allocation device in a mobile edge computing network in this application. DETAILED DESCRIPTION

[0035] In order to make the objectives, technical means and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings.

[0036] Because the capacity of edge servers is limited, in this application, servers at different levels are placed according to the characteristics of application instances, so that the user's request delay is as short as possible and the network experience is as high as possible. In practice, endpoint devices such as smart cameras should be as physically close as possible to the users, devices or business processes they serve. For applications with high user mobility, in order to avoid frequent base station switching affecting service quality, it is possible to consider placing the application in metropolitan-level edge cloud resources. The remote data center is the farthest from the physical endpoint and often serves applications with large data volume requirements and low latency requirements. At the same time, the services on the edge servers are often transmitted from the remote data center, and the transmission service also needs to occupy resources such as bandwidth on the network. Therefore, cost is also an important factor to be considered in service placement.

[0037] This application is based on the layered cloud-edge architecture, with application instance placement as the problem to be solved, and proposes a solution for application instance placement, that is, a solution for edge cloud resource allocation. Specifically, in this application, the available resources are divided into remote data centers, metropolitan-level edge resources, and base station-level edge resources; among them, the remote data center is a server cluster connected to the data center network, the metropolitan-level resources are server clusters connected to the local area network, and each base station-level edge resource is a server cluster connected to the local area network. The amount of allocatable resources is known, and the latency is ranked from large to small as follows: remote data center resources> metropolitan-level edge resources> base station-level edge resources.

[0038] Based on this, the solution of this application uses a three-layer architecture of remote data centers, metropolitan-level edge resources, and base station-level edge resources. The application is deployed in edge resources or data centers based on the time requirements of the application, and in metropolitan-level edge resources or base station-level resources based on the mobility characteristics of the application. This allows multiple application instances of different applications to be placed reasonably to maximize resource utilization.

[0039] Specifically, the resource collaborative allocation method in the mobile edge computing network of the present application is as follows: Figure 1 As shown, including:

[0040] Step 101, traverse all application instances of resources to be allocated. If the delay requirement of the application instance is greater than or equal to the delay threshold of the corresponding application, add the application instance to the instance set RUA of remote data center resources to be allocated; otherwise, add the application instance whose mobility priority is less than the preset mobility threshold G to the instance set BUA of base station-level resources to be allocated, and add the application instance whose mobility priority is greater than or equal to the preset mobility threshold G to the instance set MUA of metropolitan-level resources to be allocated.

[0041] In this step, first determine whether to allocate resources from a remote data center to the application instance based on its latency requirements; then, for application instances that do not allocate resources from a remote data center, make a preliminary decision on whether to allocate metropolitan-level resources or base station-level resources based on their mobility priorities.

[0042] Step 102, in MUA, application instances with higher mobility priority are given priority, and the required resources are allocated to them in the metropolitan-level resources, and the application instances to which the metropolitan-level resources have been allocated are moved out of the MUA until the metropolitan-level resources can no longer meet the resource requirements of the remaining application instances in the MUA or the MUA is empty.

[0043] When making specific allocations of metropolitan-level resources, the process of allocating resources preferentially to application instances with greater mobility priorities may specifically include: allocating required resources to corresponding application instances in metropolitan-level resources for application instances whose resource requirements are sufficient to be met by metropolitan-level resources, in descending order of mobility priority. For application instances to which resources have been allocated, they can be moved out of the MUA and into the instance set MA to which metropolitan-level resources have been allocated to record application instances to which metropolitan-level edge resources have been allocated. Among them, the mobility priority can be determined based on the average number of base station switching times for the application instance.

[0044] When implementing resource allocation, for application instances in MUA, resource allocation can be implemented by performing the following processing in descending order of mobility priority, where the application instance being processed is referred to as the current application instance:

[0045] a. For the current application instance, determine whether the metropolitan-level resources can meet its resource requirements. If so, execute step b; if not, execute step c;

[0046] b. Allocate metropolitan-level resources to the application instance and move the application instance out of the MUA;

[0047] c. Find the next application instance as the current application instance and return to step a until the metropolitan area resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty.

[0048] The resource allocation implemented by the above steps a to c is only an example. Other methods can also be used for resource allocation as long as it can be guaranteed that: metropolitan-level resources are allocated preferentially to application instances with higher mobility priority in MUA, unless the metropolitan-level resources cannot meet the needs of the corresponding application instances.

[0049] After determining to allocate metropolitan-level resources to a certain application instance, preferably, a server with the most currently available resources that can allocate resources to the application instance can be selected to complete the actual resource allocation.

[0050] Step 103, in the BUA, application instances with lower mobility priority are given priority, required resources are allocated to them in the base station level resources, and application instances to which base station level resources have been allocated are moved out of the BUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the BUA or the BUA is empty.

[0051] When performing specific allocation of base station-level resources, the process of allocating resources preferentially to application instances with lower mobility priorities may specifically include: in order of mobility priorities from small to large, for application instances whose resource requirements are sufficient to be met by base station-level resources, allocating required resources to corresponding application instances in the base station-level resources. For application instances that have been allocated resources, they are moved out of the BUA and can be moved into the instance set BA that has been allocated base station-level resources to record the application instances that have been allocated base station-level edge resources.

[0052] When implementing resource allocation, for application instances in the BUA, resource allocation can be implemented by performing the following processing in ascending order of mobility priority, where the application instance being processed is referred to as the current application instance:

[0053] a. For the current application instance, determine whether the base station-level resources can meet its resource requirements. If so, execute step b; if not, execute step c;

[0054] b. Allocate base station-level resources to the application instance and move the application instance out of the BUA;

[0055] c. Find the next application instance as the current application instance and return to step a until the base station-level resources cannot meet the resource requirements of the remaining application instances in the BUA or the BUA is empty.

[0056] The resource allocation implemented by the above steps a-c is only an example. Other methods can also be used for resource allocation as long as it can be guaranteed that: base station-level resources are allocated preferentially to application instances with lower mobility priority in the BUA, unless the base station-level resources cannot meet the needs of the corresponding application instances.

[0057] After determining to allocate base station-level resources for a certain application instance, preferably, a server with the most currently available resources that can allocate resources for the application instance can be selected to complete the actual resource allocation.

[0058] Through the processing of the above steps 102 and 103, metropolitan-level resources or base station-level resources are allocated to application instances that meet the requirements according to the mobility priority of the application instance and the size of the required resources. Specifically, for application instances with a higher mobility priority in the MUA, if the metropolitan-level resources are sufficient to meet their resource needs, metropolitan-level resources are allocated to the corresponding application instances, that is, in the MUA, metropolitan-level resources are allocated to application instances with a higher mobility priority as much as possible; for application instances with a lower mobility priority in the BUA, if the base station-level resources are sufficient to meet their resource needs, base station-level resources are allocated to the corresponding application instances, that is, in the BUA, base station-level resources are allocated to application instances with a lower mobility priority as much as possible.

[0059] Step 104, in the RUA, priority is given to application instances with greater resource requirements, and the required resources are allocated to them in the remote data center resources, and the application instances that have been allocated remote data center resources are moved out of the RUA until the remote data center resources can no longer meet the requirements of the remaining application instances in the RUA or the RUA is empty.

[0060] This step is used to allocate remote data center resources to application instances in the RUA.

[0061] When performing specific allocation of remote data center resources, the process of allocating resources preferentially to application instances with greater resource requirements may specifically include: in descending order of resource requirements, for application instances whose resource requirements are sufficiently met by remote data center resources, allocating required resources to corresponding application instances in the remote data center resources. For application instances that have been allocated resources, they are moved out of the RUA and into the instance set RA that has been allocated remote data center resources to record the application instances that have been allocated remote data center resources.

[0062] When implementing resource allocation, for application instances in RUA, resource allocation can be implemented by performing the following processing in descending order of resource requirements, wherein the application instance being processed is referred to as the current application instance:

[0063] a. For the current application instance, determine whether the remote data center resources can meet its resource requirements. If so, execute step b; if not, execute step c;

[0064] b. Allocate remote data center resources to the application instance and move the application instance out of the RUA;

[0065] c. Find the next application instance as the current application instance and return to step a until the remote data center resources cannot meet the resource requirements of the remaining application instances in the RUA or the RUA is empty. Of course, since the remote data center resources are usually abundant, they can generally meet the requirements of each application instance.

[0066] The resource allocation implemented by the above steps a-c is only an example. Other methods can also be used for resource allocation as long as it can be guaranteed that: base station-level resources are allocated preferentially to application instances with greater resource requirements in RUA, unless the resources in the remote data center cannot meet the needs of the corresponding application instances.

[0067] The above steps 102, 103 and 104 may be performed independently of each other, and resource allocation may be performed in parallel or in any order.

[0068] At this point, the most basic resource allocation method process in this application ends.

[0069] In the above Figure 1 In the process shown, metropolitan-level resources are allocated to application instances with higher mobility priorities in MUA as much as possible. When the metropolitan-level resources can no longer meet the resource requirements of the remaining application instances in MUA and MUA is not empty, that is, when MUA is not empty after step 102 is executed, preferably, resources can also be allocated to the remaining application instances in MUA in the following manner in step 105:

[0070] Step 105, for the remaining application instances in the MUA, priority is given to application instances with higher mobility priority, and the required resources are allocated to them in the base station level resources, and the application instances to which the base station level resources have been allocated are moved out of the MUA until the base station level resources can no longer meet the resource requirements of the remaining application instances in the MUA or the MUA is empty.

[0071] Specifically, for application instances in MUAs to which metropolitan-level resources cannot allocate resources, base station-level resources are used to allocate resources for them as much as possible according to mobility priority. Among them, priority is given to application instances with greater mobility priority, and the process of allocating required resources for them in base station-level resources can specifically include: in descending order of mobility priority, for application instances whose resource needs are sufficient to be met by base station-level resources, the required resources are allocated to the corresponding application instances in base station-level resources. For application instances to which resources have been allocated, they can be moved out of the MUA and into the instance set BA to which base station-level resources have been allocated to record the application instances to which base station-level edge resources have been allocated.

[0072] At the same time, in the above Figure 1 In the process shown, base station-level resources are allocated to application instances with a smaller mobility priority in the BUA as much as possible. When the base station-level resources can no longer meet the resource requirements of the remaining application instances in the BUA and the BUA is not empty, that is, when the BUA is not empty after step 103 is executed, preferably, resources can also be allocated to the remaining application instances in the BUA in the following manner in step 106:

[0073] Step 106, for the remaining application instances in the BUA, priority is given to application instances with lower mobility priority, and the required resources are allocated to them in the metropolitan area resources, and the application instances to which the metropolitan area resources have been allocated are moved out of the BUA until the metropolitan area resources can no longer meet the resource requirements of the remaining application instances in the BUA or the BUA is empty.

[0074] Specifically, for application instances in the BUA to which base station-level resources cannot allocate resources, metropolitan-level resources are used to allocate resources for them as much as possible according to mobility priority. Among them, giving priority to application instances with lower mobility priority, and allocating required resources for them in metropolitan-level resources may specifically include: in order from small to large mobility priority, for application instances whose resource requirements are sufficient to be met by metropolitan-level resources, allocating required resources to corresponding application instances in metropolitan-level resources. For application instances to which resources have been allocated, they are moved out of the BUA and can be moved into the instance set MA to which metropolitan-level resources have been allocated to record the application instances to which metropolitan-level edge resources have been allocated.

[0075] After completing the above resource allocation process, preferably, the resource allocation result can be output. Specifically, the resource allocation result can include the application instances to which resources have been allocated and their respective allocated resources, and can also include the identifiers of the remaining application instances in the MUA, BUA and RUA, marking these application instances as unallocated resources.

[0076] As described above, in the present application, it is determined whether to allocate remote data center resources to the application instance based on the latency requirements of the application instance. For application instances with looser latency requirements, since the latency requirements are not strict, a larger latency can be tolerated. Therefore, such application instances can be allocated remote data center resources to make full use of the resources of the remote data center without having to perform all resource requirements in the edge network. For application instances with stricter latency requirements, if remote data center resources are allocated, the latency consumed is large and does not meet the requirements of the application instance. Therefore, remote data center resources are not allocated to them, but metropolitan or base station level resources are prepared to be allocated. For application instances to which metropolitan or base station level resources are to be allocated, specific allocation of metropolitan or base station level resources is performed based on mobility priority.

[0077] Through the above processing, it is possible to select appropriate resources for application instances from the three different levels of resources, namely, remote data center resources, metropolitan area resources, and base station resources, based on latency requirements and mobility priorities, thereby improving resource utilization while minimizing processing latency.

[0078] The specific implementation of this application is described below through specific embodiments.

[0079] In the case of comprehensive consideration of application mobility requirements and time requirements, resource allocation is performed on the principle of maximizing resource utilization. The method of this embodiment is described in two steps: 1) modeling of cloud edge resources and application instances to be allocated; 2) collaborative resource allocation method for cloud edge applications.

[0080] 1) Modeling of cloud-edge resources and application instances to be allocated.

[0081] a) Cloud-edge resource feature modeling.

[0082] Similar to the above, the available resources in this embodiment are divided into remote data centers, metropolitan-level edge resources, and base station-level edge resources; among them, the remote data center is a server cluster connected to the data center network, the metropolitan-level resources are server clusters connected to the local area network, and each base station-level edge resource is a server cluster connected to the local area network. The amount of allocable resources is known, and the latency is ranked from large to small as follows: remote data center resources> metropolitan-level edge resources> base station-level edge resources.

[0083] In this embodiment, there is only one remote data center, and the number of servers in its cluster is represented by |C RS | indicates that Represents all servers in the remote data; there is only one metropolitan cloud, and the number of servers in its cluster is |C LS | indicates that Represents all servers in the metropolitan cloud; however, there are multiple base stations within the city The number of servers per base station is Indicates that Represents all servers in the base station n edge cloud.

[0084] I={I 1 ,I 2 ,I 3}, represents a collection of server clusters, where

[0085] Represents a server set, and the number of servers is represented by |X|.

[0086] b) Apply feature modeling.

[0087] The attributes of the application can be represented by a quadruple, Q m =(i0,T,S,U),Q m →id is a quadruple Q m The first item id in Q represents the identifier of the application. m →T is a quadruple Q m The second term T in the equation represents the application’s latency requirement, Q m→S is a quadruple Q m The third item S in the above formula represents the number of historical base station switching times of the application, Q m →U is a quadruple Q m The fourth item U in represents the historical usage count of the application.

[0088] The current set of K applications is T = {Q 1 ,…,Q 5 Each application t∈T needs to place several instances, and the number of instances is represented by |t|. i ∈T,1≤i≤K has a corresponding set O of instances i , Represents an application Q i All container instances of .

[0089] The resources required by container instances belonging to the same application are the same. Then each o∈O i ,1≤i≤K all inherit Q i , then instances belonging to the same application have the same value of the four-tuple (id, T, S, U). o→id represents the identifier of the application to which the instance belongs, o→T represents the delay requirement of the application to which the instance belongs, o→S represents the historical base station switching times of the application to which the instance belongs, and o→U represents the historical usage times of the application to which the instance belongs.

[0090] Y is the collection of container instances of all applications, Y = O 1 ∪...∪O K .

[0091] The resource is described in the form of a triple Resource = (C, K, H), where C represents CPU resources, M represents memory space, and H represents hard disk space.

[0092] The available resources of each server are obtained using the σ(*) function. For example, represent Remaining CPU resources, represent Remaining memory resources, represent Remaining hard disk resources.

[0093] The required resources of each application instance (that is, the container instance of the aforementioned application) are represented by the δ(*) function. For example, represent Required CPU resources, represent Required memory resources, represent Required hard disk resources.

[0094] c) Operation definition.

[0095] Define the comparison operation on the σ(*) function, for S 1 ,S 2 ∈X, if σ(S 1 )→C>σ(S 2 )→C||σ(S 1 )→C=σ(S 2 )→C∧σ(S 1 )→H>σ(S 2 )→H||σ(S 1 )→C=σ(S 2 )→C∧σ(S 1 )→H=σ(S 2 )→H∧σ(S 1 )→K>σ(S 2 )→K, then σ(S 1 )>σ(S 2 ); if σ(S 1 )→C=σ(S 2 )→C∧σ(S 1 )→H=σ(S 2 )→H∧σ(S 1 )→K=σ(S 2 )→K, then σ(S 1 )=σ(S 2 ); otherwise σ(S 1 )<σ(S 2 ).

[0096] Define the comparison operation on the δ(*) function, for D 1 ,D 2 ∈Y, if δ(D 1 )→C>δ(D 2 )→C||δ(D 1 )→C=δ(D 2 )→C∧δ(D 1 )→H>δ(D 2 )→H||δ(D 1 )→C=δ(D 2 )→C∧δ(D 1 )→H=δ(D 2 )→H∧δ(D 1 )→K>δ(D 2 )→K, then δ(D 1 )>δ(D 2 ); if δ(D 1 )→C=δ(D 2 )→C∧δ(D 1 )→H=δ(D2 )→H∧δ(D 1 )→K=δ(D 2 )→K, then δ(D 1 )=δ(D 2 ); otherwise δ(D 1 )<δ(D 2 ).

[0097] Define the comparison operation of σ(*) function and δ(*) function. If for S∈X, D∈Y, σ(S)→C≥δ(D)→C∧σ(S)→K≥δ(D)→K∧σ(S)→H≥δ(D)→H, then σ(S)≥δ(D), otherwise σ(S)<δ(D).

[0098] Define the subtraction operation of the σ(*) function and the δ(*) function, which means allocating the resources of server S to the application instance D, then σ(S)→C=σ(S)→C-δ(D)→C, σ(S)→M=σ(S)→M-δ(D)→M, σ(S)→H=σ(S)→H-δ(D)→H.

[0099] If server S allocates resources to n application instances D i ,1≤i≤n, there is still σ(S)→C≥0∧σ(S)→M≥0→M∧σ(S)→H≥0, then otherwise

[0100] d) Problem model description

[0101] Construct a resource allocation network and regard the network as an unweighted directed graph.

[0102] N=(X,Y,I,A)

[0103] X is the set of originating points, Y is the set of receiving points, I is the set of intermediate points, and the arc set A = {<x,i> |i∈I∧x∈i}∪{<i,y> |i∈I∧y∈Y} represents all possible allocation relationships, which specifies an allocatable resource σ(*) on each x∈X and a resource requirement δ(*) on each y∈Y.

[0104] If exists The in-degree is 1, and the arc set A 1 Construct a subgraph N(A 1 ), and for the set A 1 There is a non-empty subset partition satisfy and Make any There is only one server, and for all when hour, The following conditions must be met:

[0105] σ(*)≥∑δ(*)

[0106] Then it is called This is a feasible resource allocation solution. That is, a server can allocate resources to zero or more application instances, and each application instance is allocated resources by a server. The available resources of each server meet the needs of a certain number of application instances, and the needs of each application instance can be met. This is a feasible resource allocation solution.

[0107] e) Threshold calculation

[0108] There is a time delay in the network communication of the cloud edge. If the delay is too high, it will affect the normal use of the application. Usually, there is a delay threshold in cloud-edge communication. When the delay time is less than this threshold, QoS / QoE will not be affected. However, for different services, the time threshold is not fixed. Therefore, before using the method of this embodiment for resource collaborative allocation, it is necessary to specify the time delay threshold T′ of cloud-edge communication; for different applications, corresponding time delay thresholds can be set. Based on the relationship between the time requirement of the application instance and the time delay threshold of the corresponding application, it can be decided whether to allocate resources of the remote data center to the application instance, or to allocate metropolitan or base station level resources of the edge network. In addition, frequent switching of base stations will cause time delays. The more times an application is called, the longer it occupies resources. Therefore, in order to determine whether an application is deployed at the metropolitan level or the base station level according to the mobility characteristics of the application, the mobility threshold G and the mobility priority function g(y)=g(y→S,y→U)=y→S / y→U, y∈Y can be set. If the value of g(y) corresponding to the application instance is smaller, the priority of the base station-level edge resources is higher when allocating resources to the application instance, and the priority of the metropolitan-level edge resources is lower. The larger the value of g(y), the lower the priority of the base station-level edge resources is when allocating resources to the application instance, and the higher the priority of the metropolitan-level edge resources is. Among them, y→S represents the number of historical base station switching times of the application to which the application instance belongs, y→U represents the number of historical usage times of the application to which the application instance belongs, and y→S / y→U represents the average number of base station switching times of the application instance.

[0109] 2) Cloud-edge application collaborative resource allocation method

[0110] After the previous step, the resource allocation problem has been quantitatively described as: given a server set X, a server cluster set I, an application instance set Y, a time threshold T′, a mobility threshold G and a priority function g(y), y∈Y, and a directed graph N, find a resource allocation problem that can make Subgraph N of N with in-degree 1 1 , and there is a feasible resource allocation scheme for the subgraph, then the corresponding resource allocation scheme is determined as follows:

[0111] a) Initialize A 1 = {<x, i>|i ∈ I ∧ x ∈ i}, N 1 = (X, Y, A 1 ); The set of instances of base station-level resources that have been allocated The set of instances of base station-level resources to be allocated The set of instances of metro-level resources that have been allocated The set of instances of metro-level resources to be allocated The set of instances of remote data center resources that have been allocated The set of instances of remote data center resources to be allocated T' = t, G = g;

[0112] b) Use T' to preliminarily determine the placement location of application instances. For If y → T ≥ T', then RUA = RUA ∪ {y}; The remaining instances are placed at the edge, and for If g(y) < G, then qUA = BUA ∪ {y}; Otherwise, MUA = MUA ∪ {y}; where, Y\RUA represents the difference set between Y and RUA; Application instances with latency requirements greater than the time threshold T' are placed at the remote end; The remaining application instances are prepared to be placed on metro-level or base station-level resources at the edge; For application instances with mobility priority less than the mobility threshold G, base station-level resources are prepared to be allocated, and for application instances with mobility priority greater than or equal to the mobility threshold G, metro-level resources are prepared to be allocated;

[0113] c) Among all instances that can be satisfied by their resource requirements in the current metro-level resources in MUA, find an application instance with the highest metro priority (that is, the highest mobility priority) where, represents "not", represents "exists", represents "any", y f is other application instances in the MUA set except the application instance y. If then execute step d; If It shows that there are application instances that can be allocated resources. Find a server with the most available resources that can allocate resources for max_y Allocate the resources of the server x ∈ max_x to the application instance y ∈ max_, MUA = MUA\max_y, MA = MA ∪ max z , A 1 = A 1 ∪ {<I 2 , y>|y ∈ max y}, and continue to execute step c;

[0114] d) Find an application instance with the highest base station priority (that is, the lowest mobility priority) among all application instances whose resource requirements can be met by the current base station-level resources in the BUA Execute step e; if Indicates that there are instances where resources can be allocated. Find the server with the most available resources that can allocate max_y resources. Allocate the resources of server x∈max_x to application instance y∈max_y on demand, BUA=BUA\max_y, BA=BA∪max_y, A 1 =A 1 ∪{ 1 ,y>|y∈max_y}, continue with step d.

[0115] e) Find the application instance with the highest base station priority among all application instances whose resource requirements can be met by the current metropolitan-level resources in the BUA like Execute step f; if Indicates that there are instances where resources can be allocated. Find the server with the most available resources that can allocate max_y resources. Allocate the resources of server x∈max_x to container instance y∈max_y on demand, BUA=BUA\max_y, KA=KA∪max_y, A 2 =A 2 ∪{ 2 ,y>|y∈max_y}, continue with step e.

[0116] The processing of the above steps c), d) and e) is not limited to being performed sequentially, and can be performed in parallel or in any order.

[0117] f) Find the instance with the highest metropolitan area priority among all instances that can currently be allocated base station-level resources in the MUA Execute step g; if Indicates that there are instances where resources can be allocated. Find the server with the most available resources that can allocate max_y resources. Allocate the resources of server x∈max_x to container instance y∈max_y on demand, MUA=MUA\max_y, BA=BA∪max_y, A 1 =A 1 ∪{ <I​​1 ,y>|y∈max_y}, continue with step f;

[0118] The above step f) can be performed after step c), and is not necessarily performed after step d) and step e).

[0119] g) Find the instance with the largest resource demand among all instances in the RUA that can currently be allocated remote data center resources Execute step h; if Indicates that there are instances where resources can be allocated. Find the server with the most available resources that can allocate max_y resources. Allocate the resources of server x∈max_x to container instance y∈max_y on demand, RUA=RUA\max_y, RA=RA∪max_y, A 1 =A 1 ∪{ 3 ,y>|y∈max_y}, continue with step g;

[0120] The above step g) may be performed after step d), and is not necessarily performed after step e) and step f).

[0121] If all application instances are allocated resources, that is, The allocation is successful. The IDs of all application instances in the BA, MA, and RA to which resources are allocated, and the IDs of application instances in the BUA, MUA, and RUA to which resources are not allocated, are output, and the resource allocation is completed.

[0122] The above is the specific implementation of the present application. Through the above resource allocation method of the present application, appropriate resources can be allocated to application instances in remote data center resources, metropolitan edge resources and base station edge resources according to the latency requirements and mobility characteristics of the application instances, thereby maximizing resource utilization.

[0123] The present application also provides a resource collaborative allocation device in a mobile edge computing network, which can be used to implement the above-mentioned resource collaborative allocation method. Figure 2 FIG. 1 is a basic structural diagram of a resource collaborative allocation device. Figure 2 As shown, the device includes: a pre-processing unit, an MUA processing unit, a BUA processing unit and an RUA processing unit.

[0124] ​Among them, the pre-processing unit is used to traverse all application instances of resources to be allocated. If the delay requirement of the application instance is greater than or equal to the delay threshold of the corresponding application, the application instance is added to the instance set RUA of the remote data center resources to be allocated; otherwise, the application instance with a mobility priority less than the preset mobility threshold G is added to the instance set BUA of the metropolitan area level resources to be allocated, and the application instance with a mobility priority greater than or equal to the preset mobility threshold G is added to the instance set MUA of the base station level resources to be allocated;

[0125] The MUA processing unit is used to give priority to application instances with greater mobility priority in the MUA, allocate required resources to them in the metropolitan-level resources, and move the application instances to which the metropolitan-level resources have been allocated out of the MUA until the metropolitan-level resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty;

[0126] The BUA processing unit is used to preferentially allocate required resources to application instances with lower mobility priority in the BUA from the base station level resources, and to move application instances to which the base station level resources have been allocated out of the BUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the BUA or the BUA is empty;

[0127] The RUA processing unit is used to give priority to application instances with greater resource requirements in the RUA, allocate required resources to them in the remote data center resources, and move application instances that have been allocated base station-level resources out of the RUA until the base station-level resources can no longer meet the requirements of the remaining application instances in the RUA or the RUA is empty.

[0128] In addition, preferably, the MUA unit can be further used to allocate required resources to application instances in metropolitan area resources, and if the MUA is not empty, give priority to application instances with greater mobility priority, allocate required resources to them in base station level resources, and move application instances to which base station level resources have been allocated out of the MUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty;

[0129] The BUA unit can be further used to allocate required resources to application instances in base station-level resources. If the BUA is not empty, the application instances with lower mobility priority are given priority and required resources are allocated to them in metropolitan-level resources. The application instances to which metropolitan-level resources have been allocated are moved out of the BUA until the metropolitan-level resources cannot meet the resource requirements of the remaining application instances in the BUA or the BUA is empty.

[0130] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A resource collaborative allocation method in a mobile edge computing network, It is characterized in that include: a. Traverse all application instances of resources to be allocated. If the delay requirement of the application instance is greater than or equal to the delay threshold of the corresponding application, add the application instance to the instance set RUA of remote data center resources to be allocated; otherwise, add the application instance whose mobility priority is less than the preset mobility threshold G to the instance set BUA of base station-level resources to be allocated, and add the application instance whose mobility priority is greater than or equal to the preset mobility threshold G to the instance set MUA of metropolitan-level resources to be allocated; b. In the MUA, give priority to application instances with greater mobility priority, allocate required resources to them in the metropolitan resources, and move the application instances to which the metropolitan resources have been allocated out of the MUA until the metropolitan resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty; In the BUA, application instances with a lower mobility priority are given priority, required resources are allocated to them in the base station level resources, and application instances to which base station level resources have been allocated are moved out of the BUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the BUA or the BUA is empty; In the RUA, priority is given to application instances with greater resource requirements, and the required resources are allocated to them in the remote data center resources, and application instances that have been allocated base station-level resources are moved out of the RUA until the base station-level resources can no longer meet the requirements of the remaining application instances in the RUA or the RUA is empty.

2. The method according to claim 1, It is characterized in that After allocating required resources to the application instance in the metropolitan area level resources, the method further includes: If the MUA is not empty, priority is given to application instances with greater mobility priority, required resources are allocated to them in the base station level resources, and application instances to which base station level resources have been allocated are moved out of the MUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty; After allocating required resources to the application instance in the base station level resources, the method further includes: If the BUA is not empty, application instances with lower mobility priority are prioritized and required resources are allocated to them in the metropolitan-level resources, and application instances to which metropolitan-level resources have been allocated are moved out of the BUA until the metropolitan-level resources can no longer meet the resource requirements of the remaining application instances in the BUA or the BUA is empty.

3. The method according to claim 1, It is characterized in that The giving priority to application instances with a higher mobility priority and allocating required resources to them in the metropolitan area resources comprises: allocating required resources to corresponding application instances in the metropolitan area resources for application instances whose resource requirements are sufficiently met by the metropolitan area resources in descending order of mobility priority; The giving priority to application instances with a smaller mobility priority and allocating required resources to them in the base station-level resources comprises: allocating required resources to the corresponding application instances in the base station-level resources for application instances whose resource requirements are sufficient to be met by the base station-level resources in order of increasing mobility priority; The giving priority to application instances with greater resource requirements and allocating the required resources to them in the remote data center resources includes: allocating the required resources to the corresponding application instances in the remote data center resources in order of resource requirements from large to small, for application instances whose resource requirements are sufficient to be met by the remote data center resources.

4. The method according to claim 2, It is characterized in that The giving priority to application instances with a higher mobility priority, and allocating required resources to them in the base station level resources includes: allocating required resources to the corresponding application instances in the base station level resources for application instances whose resource requirements are sufficient to be met by the base station level resources in descending order of mobility priority; The giving priority to application instances with smaller mobility priorities and allocating required resources to them in metropolitan-level resources includes: allocating required resources to corresponding application instances in metropolitan-level resources for application instances whose resource requirements are sufficient to be met by metropolitan-level resources in order of mobility priorities from small to large.

5. The method according to any one of claims 1 to 4, It is characterized in that When allocating required resources for any application instance in the metropolitan area resources, a server with the most currently available resources that can allocate resources for any application instance is selected to complete resource allocation; When allocating required resources for any application instance in the base station-level resources, a server with the most currently available resources that can allocate resources for any application instance is selected to complete resource allocation; When allocating required resources for any application instance in the remote data center resources, a server with the most currently available resources that can allocate resources for any application instance is selected to complete the resource allocation.

6. The method according to claim 1, It is characterized in that For different applications, corresponding delay thresholds are pre-set.

7. The method according to claim 1, It is characterized in that The mobility priority of the application instance g(y)=g(y→S,y→U)=y→S / y→U,y∈Y, wherein Y represents the set of all application instances, y is the application instance, y→S represents the historical base station switching times of the application to which the application instance belongs, and y→U represents the historical usage times of the application to which the application instance belongs.

8. A resource collaborative allocation device in a mobile edge computing network, It is characterized in that include: Pre-processing unit, MUA processing unit, BUA processing unit and RUA processing unit; The preprocessing unit is used to traverse all application instances of resources to be allocated, and if the delay requirement of the application instance is greater than or equal to the delay threshold of the corresponding application, the application instance is added to the instance set RUA of the remote data center resources to be allocated; otherwise, the application instance whose mobility priority is less than the preset mobility threshold G is added to the instance set BUA of the base station-level resources to be allocated, and the application instance whose mobility priority is greater than or equal to the preset mobility threshold G is added to the instance set MUA of the metropolitan-level resources to be allocated; The MUA processing unit is used to give priority to application instances with greater mobility priority in the MUA, allocate required resources to them in the metropolitan level resources, and move the application instances to which the metropolitan level resources have been allocated out of the MUA until the metropolitan level resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty; The BUA processing unit is used to give priority to application instances with lower mobility priority in the BUA, allocate required resources to them in the base station level resources, and move the application instances to which the base station level resources have been allocated out of the BUA until the base station level resources cannot meet the resource requirements of the remaining application instances in the BUA or the BUA is empty; The RUA processing unit is used to give priority to application instances with greater resource requirements in the RUA, allocate required resources to them in the remote data center resources, and move application instances to which base station-level resources have been allocated out of the RUA until the base station-level resources can no longer meet the requirements of the remaining application instances in the RUA or the RUA is empty.

9. The device according to claim 8, It is characterized in that The MUA unit is further used to allocate required resources to application instances in metropolitan-level resources, and if the MUA is not empty, give priority to application instances with greater mobility priority, allocate required resources to them in base station-level resources, and move application instances to which base station-level resources have been allocated out of the MUA until the base station-level resources cannot meet the resource requirements of the remaining application instances in the MUA or the MUA is empty; The BUA unit is further used to allocate required resources to application instances in base station level resources. If the BUA is not empty, it will give priority to application instances with lower mobility priority and allocate required resources to them in metropolitan level resources, and move application instances to which metropolitan level resources have been allocated out of the BUA until the metropolitan level resources can no longer meet the resource requirements of the remaining application instances in the BUA or the BUA is empty.