CN107919986B - Optimization method for VM migration between MEC nodes in ultra-dense network - Google Patents

Optimization method for VM migration between MEC nodes in ultra-dense network Download PDF

Info

Publication number
CN107919986B
CN107919986B CN201711098566.2A CN201711098566A CN107919986B CN 107919986 B CN107919986 B CN 107919986B CN 201711098566 A CN201711098566 A CN 201711098566A CN 107919986 B CN107919986 B CN 107919986B
Authority
CN
China
Prior art keywords
node
energy consumption
user
nodes
migration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711098566.2A
Other languages
Chinese (zh)
Other versions
CN107919986A (en
Inventor
张鹤立
杨腾
纪红
李曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Posts and Telecommunications
Original Assignee
Beijing University of Posts and Telecommunications
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing University of Posts and Telecommunications filed Critical Beijing University of Posts and Telecommunications
Priority to CN201711098566.2A priority Critical patent/CN107919986B/en
Publication of CN107919986A publication Critical patent/CN107919986A/en
Application granted granted Critical
Publication of CN107919986B publication Critical patent/CN107919986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明属于无线通信技术领域,具体涉及一种超密集网络中移动边缘计算节点间VM迁移优化方法。所应用的超密集网络,包含网关节点、聚合节点和边缘节点;在MEC节点的VM需要迁移时,首先计算初始化特征,根据预测的用户的迁移时间,计算用户在同一个网关节点范围内活动时与VM进行交互所产生的能耗,能耗包括数据传输到目的节点的能耗Wmig、数据传输到源节点的能耗Wpre、以及用户位置变化时在三种节点覆盖区域与VM连接进行数据传输的能耗Wafter;其次建立最优收益模型;最后求解最优收益模型,选出最优的VM迁移策略。本发明方法可以实现特殊场景下的VM的灵活迁移功能,有效地降低系统的能量消耗,提高迁移效率;合理进行资源搭配,满足了用户服务要求。

Figure 201711098566

The invention belongs to the technical field of wireless communication, and in particular relates to a VM migration optimization method between mobile edge computing nodes in an ultra-dense network. The applied ultra-dense network includes gateway nodes, aggregation nodes and edge nodes; when the VM of the MEC node needs to be migrated, the initialization feature is first calculated, and according to the predicted migration time of the user, the time when the user is active in the same gateway node is calculated. The energy consumption generated by interacting with the VM includes the energy consumption W mig of data transmission to the destination node, the energy consumption W pre of data transmission to the source node, and the connection with the VM in the coverage area of three types of nodes when the user's location changes. The energy consumption of data transmission is W after ; secondly, the optimal revenue model is established; finally, the optimal revenue model is solved, and the optimal VM migration strategy is selected. The method of the invention can realize the flexible migration function of the VM in special scenarios, effectively reduce the energy consumption of the system, and improve the migration efficiency; the resource collocation is reasonably carried out to meet the service requirements of users.

Figure 201711098566

Description

超密集网络中MEC节点间VM迁移优化方法Optimization method for VM migration between MEC nodes in ultra-dense network

技术领域technical field

本发明属于无线通信技术领域,具体涉及一种超密集网络(ultra-densenetwork,UDN)中移动边缘计算(Mobile Edge Computing,MEC)节点间VM(虚拟机)迁移优化方法。The invention belongs to the technical field of wireless communication, and in particular relates to an optimization method for VM (virtual machine) migration between mobile edge computing (Mobile Edge Computing, MEC) nodes in an ultra-dense network (ultra-dense network, UDN).

背景技术Background technique

近年来,无线服务的需求迅速增长,根据业界内预测,不久的未来无线服务需求还将有千倍的增长,现有的接入网服务设备难以满足日益增长高速需求,异构蜂窝(smallcell)的密集部署成为这一问题最为关键的解决方案。与此同时,为了适应密集蜂窝的灵活性和降低成本,无线传输方案成为蜂窝通过网关节点与核心网络相连的重要选择。此外,不同波段的无线回程,诸如非视距传播(低于6GHz)和点对点的直线毫米波传播,能够满足特定情况下的无线传输。无线回程技术已经成为蜂窝部署的回程解决方案之一。In recent years, the demand for wireless services has grown rapidly. According to industry forecasts, the demand for wireless services will increase by a thousand times in the near future. The existing access network service equipment is difficult to meet the increasing high-speed demand. Heterogeneous cellular (small cell) The intensive deployment of this problem has become the most critical solution. At the same time, in order to adapt to the flexibility of dense cells and reduce costs, wireless transmission solutions have become an important choice for cells to connect to the core network through gateway nodes. In addition, wireless backhaul in different bands, such as non-line-of-sight propagation (below 6 GHz) and point-to-point straight-line millimeter wave propagation, can satisfy wireless transmission in specific situations. Wireless backhaul technology has emerged as one of the backhaul solutions for cellular deployments.

新型的应用和云服务,对资源的传输时延和计算时延均有严格的要求,进而对云和边缘计算服务器的放置以及传输条件也有着苛刻要求。将边缘计算服务器部署在蜂窝节点,更加靠近用户,可以提供充足的传输和计算资源。但将服务器部署在蜂窝节点,不可避免地减少了服务器的覆盖范围,用户的移动性更加频繁和复杂,VM迁移会更加频繁,尤其是在异构的蜂窝之间。异构的回程链路更加复杂,VM迁移技术需要考虑这些新型因素,以减少系统的能耗、时延和优化吞吐量,保证系统整体的服务效率。New applications and cloud services have strict requirements on the transmission delay and computing delay of resources, and also have strict requirements on the placement and transmission conditions of cloud and edge computing servers. Deploying edge computing servers on cellular nodes, closer to users, can provide sufficient transmission and computing resources. However, deploying servers on cellular nodes inevitably reduces the coverage of the servers, the mobility of users is more frequent and complex, and the migration of VMs will be more frequent, especially between heterogeneous cells. Heterogeneous backhaul links are more complex, and VM migration technology needs to consider these new factors to reduce system energy consumption, delay and optimize throughput, and ensure overall system service efficiency.

迁移位置的选择以及迁移方式是当前的VM迁移技术主要研究工作。多用户情况下,用户的资源占用是一个均衡问题,在VM迁移时,不仅考虑相关服务器的工作负载状况,即服务器上其他用户的工作状况,也要考虑传输状况和用户的移动性。VM迁移由于要考虑VM组件和内存更新的情况,在迁移过程中要有内存转移和计算的代价,迁移收益成为VM迁移的主要决定条件。为了提高迁移的收益,移动性预测和成本预测成为新的影响因素。此外,通过迁移方式的改变来减少迁移时间,比如通过压缩算法实现传输较少数据量等方式和通过内存预迁移的模式来减少VM中断时间,来减少迁移代价,从而不仅可以减少执行时延,同时也可以增加系统的吞吐量,减少系统负载的压力。The choice of the migration location and the migration method are the main research work of the current VM migration technology. In the case of multiple users, the resource occupancy of users is a balancing issue. During VM migration, not only the workload status of the relevant server, that is, the working status of other users on the server, but also the transmission status and user mobility are considered. Due to the consideration of VM components and memory updates, VM migration requires memory transfer and computation costs during the migration process, and migration benefits become the main determinant of VM migration. To improve the benefits of migration, mobility forecast and cost forecast become new influencing factors. In addition, the migration time can be reduced by changing the migration method, such as transferring a smaller amount of data through a compression algorithm, and reducing the VM interruption time through the memory pre-migration mode to reduce the migration cost, which can not only reduce the execution delay, but also reduce the migration cost. At the same time, it can increase the throughput of the system and reduce the pressure of the system load.

文献[1](L.Tong,Y.Li and W.Gao,"A hierarchical edge cloud architecturefor mobile computing,"IEEE INFOCOM 2016-The 35th Annual IEEE InternationalConference on Computer Communications,San Francisco,CA,2016,pp.1-9.)中建立了异构的MEC服务器框架,分层的框架,可以提供更加灵活的服务,保证资源的合理利用和用户的服务卸载效率,解决了边缘服务器的在任务量在不同时间变化下的部署问题,但没有具体的讨论此种情况的回程链路和VM迁移问题。Literature [1] (L.Tong, Y.Li and W.Gao, "A hierarchical edge cloud architecture for mobile computing," IEEE INFOCOM 2016-The 35th Annual IEEE International Conference on Computer Communications, San Francisco, CA, 2016, pp.1 -9.) has established a heterogeneous MEC server framework, a layered framework, which can provide more flexible services, ensure the rational use of resources and the efficiency of user service unloading, and solve the task load of edge servers that change at different times. The deployment issues under the section, but there is no specific discussion of the backhaul link and VM migration issues in this case.

文献[2](M.N.Islam,A.Sampath,A.Maharshi,O.Koymen and N.B.Mandayam,"Wireless backhaul node placement for small cell networks,"2014 48th AnnualConference on Information Sciences and Systems(CISS),Princeton,NJ,2014,pp.1-6.)中讨论了一种部署在密集网络中的无线回程节点,这种回程方式利用不同的波段进行节点间的通信,使得小区能够灵活部署,解决了在城市中的垂直节点的部署问题,但没有结合其他应用场景,比如MEC计算资源的部署,以及VM迁移相关的部分。Literature [2] (M.N.Islam, A.Sampath, A.Maharshi, O.Koymen and N.B.Mandayam, "Wireless backhaul node placement for small cell networks," 2014 48th Annual Conference on Information Sciences and Systems (CISS), Princeton, NJ, 2014, pp.1-6.) discussed a wireless backhaul node deployed in a dense network. This backhaul method utilizes different frequency bands for communication between nodes, which enables flexible deployment of cells and solves the problem in urban areas. The deployment of vertical nodes is not combined with other application scenarios, such as the deployment of MEC computing resources, and the parts related to VM migration.

在超密集网络场景下,接入节点部署密集,边缘计算服务器也越来越靠近用户,其服务范围也在变小,随着用户的移动,边缘服务器上虚拟机需要迁移到合适的节点,才能保证用户的服务效率和网络中的能量消耗,现有的VM迁移没有考虑到异构网络的部署特性;此外,许多节点的部署需要很高的灵活性,无线回程成为了场景中的回程技术选择,不同的波段的发射的功率和传输速率也不相同,这些在VM迁移中也需要被考虑。In an ultra-dense network scenario, access nodes are densely deployed, edge computing servers are getting closer and closer to users, and their service scope is also becoming smaller. As users move, virtual machines on edge servers need to be migrated to appropriate nodes. To ensure user service efficiency and energy consumption in the network, the existing VM migration does not take into account the deployment characteristics of heterogeneous networks; in addition, the deployment of many nodes requires high flexibility, and wireless backhaul has become the backhaul technology choice in the scenario , the transmission power and transmission rate of different bands are also different, which also need to be considered in VM migration.

发明内容SUMMARY OF THE INVENTION

本发明针对目前超密集网络场景下VM迁移没有考虑异构网络的特性,为了减少超密集网络中的能量消耗,提高VM迁移效率,引入小区的异构场景,提供了一种超密集网络中MEC节点间VM迁移优化方法。In order to reduce the energy consumption in the ultra-dense network and improve the VM migration efficiency, the present invention does not consider the characteristics of the heterogeneous network for the VM migration in the current ultra-dense network scenario, and introduces the heterogeneous scenario of the cell to provide a MEC in the ultra-dense network. An optimization method for VM migration between nodes.

本发明提供的超密集网络中MEC节点间VM迁移优化方法,所应用的超密集网络中,包含网关节点、聚合节点和边缘节点,三类节点的覆盖范围从大到小,各异构的接入点带有MEC服务器,MEC节点是指部署有MEC服务器的节点,在MEC节点的VM需要迁移时,执行如下步骤:In the method for optimizing VM migration between MEC nodes in an ultra-dense network provided by the present invention, the applied ultra-dense network includes gateway nodes, aggregation nodes and edge nodes. The coverage of the three types of nodes is from large to small. The entry point has an MEC server. The MEC node refers to the node where the MEC server is deployed. When the VM of the MEC node needs to be migrated, perform the following steps:

首先,计算初始化特征,包括:根据预测的用户的迁移时间

Figure BDA0001462841750000021
计算用户在同一个网关节点范围内活动时与VM进行交互所产生的能耗,能耗包括数据传输到目的节点的能耗Wmig,数据传输到源节点的能耗Wpre,以及用户位置变化时在三种节点覆盖区域与VM连接进行数据传输的能耗Wafter;First, calculate the initialization features, including: according to the predicted user's migration time
Figure BDA0001462841750000021
Calculate the energy consumption generated by the interaction between the user and the VM when the user is active within the same gateway node. The energy consumption includes the energy consumption W mig of data transmission to the destination node, the energy consumption W pre of data transmission to the source node, and the change of user location. The energy consumption W after of connecting with the VM for data transmission in the three types of node coverage areas;

能耗Wafter分为三个阶段:第一阶段,用户位于VM所在的边缘节点A的覆盖范围下,该阶段用户与VM进行数据传输的能耗为

Figure BDA0001462841750000022
第二阶段,用户在边缘节点B的覆盖范围下,边缘节点A和B在同一个聚合节点下,该阶段用户与VM进行数据传输的能耗为
Figure BDA0001462841750000023
第三阶段,用户移动到边缘节点C,边缘节点A和C在同一个网关节点下,该阶段用户与VM进行数据传输的能耗为
Figure BDA0001462841750000024
The energy consumption W after is divided into three stages: in the first stage, the user is under the coverage of the edge node A where the VM is located, and the energy consumption of data transmission between the user and the VM in this stage is
Figure BDA0001462841750000022
In the second stage, the user is under the coverage of edge node B, and edge nodes A and B are under the same aggregation node. In this stage, the energy consumption of data transmission between the user and the VM is:
Figure BDA0001462841750000023
In the third stage, the user moves to the edge node C, and the edge nodes A and C are under the same gateway node. In this stage, the energy consumption of data transmission between the user and the VM is:
Figure BDA0001462841750000024

其次,建立最优收益模型:

Figure BDA0001462841750000025
Second, establish the optimal revenue model:
Figure BDA0001462841750000025

其中,

Figure BDA0001462841750000031
表示VM的数量,ψ表示网络中节点的集合;g(l)取值为1时,表示VM迁移到节点l上,g(l)取值为0时,表示VM未迁移到节点l上;Dk表示VM k需要占用的资源;Ml表示节点l的资源总量。in,
Figure BDA0001462841750000031
Represents the number of VMs, ψ represents the set of nodes in the network; when g(l) is 1, it means that the VM has migrated to node l, and when g(l) is 0, it means that the VM has not been migrated to node l; D k represents the resources that VM k needs to occupy; M l represents the total resources of node l.

最后,求解最优收益模型,选出最优的VM迁移策略。Finally, the optimal revenue model is solved, and the optimal VM migration strategy is selected.

相对于现有技术,本发明的优点和积极效果在于:Compared with the prior art, the advantages and positive effects of the present invention are:

(1)本发明方法可以实现特殊场景下的VM的灵活迁移功能,结合了无线回程、用户的移动性预测等技术,根据仿真结果可以看出,本发明方法能有效地降低系统的能量消耗,提高迁移效率;(1) The method of the present invention can realize the flexible migration function of VMs in special scenarios, and combines technologies such as wireless backhaul and user mobility prediction. According to the simulation results, it can be seen that the method of the present invention can effectively reduce the energy consumption of the system, Improve migration efficiency;

(2)本发明方法考虑了超密集网络场景中的不同节点的覆盖范围,根据节点覆盖范围的大小,综合考虑资源部署、用户的移动特性和需求、信道状况等多种因素,为需要迁移的VM选择合适的节点,合理进行资源搭配,保证了计算的需求,满足了用户服务要求。(2) The method of the present invention considers the coverage of different nodes in the ultra-dense network scenario, and comprehensively considers various factors such as resource deployment, user mobility characteristics and needs, channel conditions and other factors according to the size of the node coverage. The VM selects appropriate nodes and reasonably allocates resources to ensure computing requirements and meet user service requirements.

附图说明Description of drawings

图1是一个超密集网络的系统模型示意图;Figure 1 is a schematic diagram of a system model of an ultra-dense network;

图2是本发明提供的VM迁移优化方法主要流程示意图;Fig. 2 is a schematic flow diagram of the main flow of the VM migration optimization method provided by the present invention;

图3是不同方案在用户数量线性增加的能耗变化图;Figure 3 is a graph showing the change in energy consumption of different schemes when the number of users increases linearly;

图4是应用本发明方法时不同类型节点随用户增加的能耗收益变化图;Fig. 4 is the change diagram of the energy consumption benefit that different types of nodes increase with the user when the method of the present invention is applied;

图5是应用本发明方法时不同类型情况下平均用户的能耗收益变化图;Fig. 5 is the change diagram of the energy consumption benefit of the average user under different types of situations when the method of the present invention is applied;

图6是应用本发明方法时不同类型节点随VM的均内存占用量的能耗收益变化图。Fig. 6 is a graph showing the change of energy consumption benefit of different types of nodes with the average memory occupancy of the VM when the method of the present invention is applied.

具体实施方式Detailed ways

下面将结合附图和实施例对本发明作进一步的详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments.

超密集网络中MEC节点间VM迁移优化问题,是一个多服务器多用户的问题,在VM迁移过程中,由于VM有多种位置的选择,并且多用户变化是复杂和随机的,完全优化的情况下,则变成一个纳什均衡问题,其复杂度会大幅的增加,在极短时间内会难以计算,基于VM动态迁移的能耗优化策略是一个简化算法,本发明方法将把收益最大化作为优化目标。这种目标方程有一定的资源占用量,也产生了对应的价值,可以把这个选择问题转化为背包问题,利用动态规划进行求解。由于MEC服务器的异构性,改进的分布式动态规划能够保证服务的收益最大化,也能够保证单个MEC过载的问题,保证用户的服务质量。The VM migration optimization problem between MEC nodes in an ultra-dense network is a multi-server and multi-user problem. During the VM migration process, since the VM has a variety of locations to choose from, and the multi-user changes are complex and random, it is completely optimized. , it becomes a Nash equilibrium problem, its complexity will increase greatly, and it will be difficult to calculate in a very short time. The energy consumption optimization strategy based on VM dynamic migration is a simplified algorithm, and the method of the present invention will maximize the profit as optimize the target. This kind of objective equation has a certain amount of resources and also produces corresponding value. This selection problem can be transformed into a knapsack problem and solved by dynamic programming. Due to the heterogeneity of MEC servers, the improved distributed dynamic planning can ensure that the service revenue is maximized, and it can also ensure the problem of overloading a single MEC and ensure the service quality of users.

如图1所示,为一个超密集网络模型,网关节点(Gateway Nodes,GN)位于建筑物的顶端,其特殊功能是通过光纤通信接入核心网络。聚合节点(Aggregator Nodes,AN)位于部署蜂窝的建筑物的顶端,一方面可以连接到网关节点,并通过网关节点进入核心网。边缘节点(Edge Nodes,EN)位于建筑物内部,此节点直接为用户提供网络服务。三种节点负责不同的任务,其不同的覆盖范围,决定其服务器大小部署。本发明方法所应用的超密集网络中,各接入点都布置有MEC服务器,本发明所述的MEC节点是指部署有MEC服务器的节点,例如图1所示,包括异构的网关节点、聚合节点和边缘节点,三者信号覆盖范围依次减小。As shown in Figure 1, it is an ultra-dense network model. Gateway Nodes (GN) are located at the top of the building, and its special function is to access the core network through optical fiber communication. Aggregator Nodes (AN) are located at the top of the building where the cells are deployed. On the one hand, they can be connected to the gateway node and enter the core network through the gateway node. Edge Nodes (EN) are located inside the building, and this node directly provides network services to users. The three types of nodes are responsible for different tasks, and their different coverages determine their server size deployment. In the ultra-dense network to which the method of the present invention is applied, each access point is arranged with an MEC server. The MEC node in the present invention refers to a node on which an MEC server is deployed, such as shown in FIG. 1 , including heterogeneous gateway nodes, Aggregation nodes and edge nodes, the signal coverage of the three decreases in turn.

本发明的超密集网络中MEC节点间VM迁移优化方法,针对单一用户时,针对用户的移动特性,选择合适的节点进行VM迁移,能够提高VM的工作效率,减少因VM迁移所产生的中断情况,并且可以减少总体的能量消耗。针对多用户的情况,则需要考虑资源占用等情况,调整VM迁移的位置,保证整体收益。The method for optimizing VM migration between MEC nodes in an ultra-dense network of the present invention, for a single user, selects an appropriate node for VM migration according to the user's mobility characteristics, which can improve the work efficiency of the VM and reduce the interruption caused by the VM migration. , and can reduce the overall energy consumption. In the case of multiple users, it is necessary to consider the resource occupation and other situations, and adjust the location of VM migration to ensure the overall benefits.

迁移过程中,为了保证用户的QoS,用户设备仍然要与初始位置的VM保持正常的工作状态,VM迁移时间越长,能耗越多,相对来说迁移的频率也会降低。本发明方法首先基于用户的移动特性对用户移动的时间进行合理预测,然后计算出迁移的能量消耗,根据计算结果进行分配,再对各节点进行优化选择,得出最佳结果。During the migration process, in order to ensure the user's QoS, the user equipment still needs to maintain a normal working state with the VM at the initial location. The longer the VM migration time is, the more energy consumption will be, and the frequency of migration will decrease relatively. The method of the invention firstly predicts the user's moving time reasonably based on the user's moving characteristics, then calculates the energy consumption of the migration, allocates according to the calculation result, and then optimizes the selection of each node to obtain the best result.

节点i到节点j间的功率pi,j可以通过香农公式求解得出,如下:The power p i, j between node i and node j can be obtained by the Shannon formula, as follows:

Figure BDA0001462841750000041
Figure BDA0001462841750000041

其中,r是传输速率,N0是信道噪声,w表示信道带宽,gi,j表示链路增益。Among them, r is the transmission rate, N 0 is the channel noise, w is the channel bandwidth, and g i,j is the link gain.

Figure BDA0001462841750000042
为VM迁移的总时间,在传输速率固定的情况下,迁移时间满足以下公式:
Figure BDA0001462841750000042
is the total time of VM migration. In the case of a fixed transmission rate, the migration time satisfies the following formula:

Figure BDA0001462841750000043
Figure BDA0001462841750000043

其中,Mk,0代表标号为k的VM的初始内存大小,VM的标号按照自然数顺序编号;R是VM迁移的数据传输速率,在这里被设为固定的值;Dk是脏页率,表示内存的生成速率,其中必然满足R>Dk,否则迁移过程无法收敛,VM预迁移恶化,极度占用服务器资源;Mth是脏页阈值,达到阈值,则进入切换阶段。Among them, M k,0 represents the initial memory size of the VM with the label k, and the labels of the VM are numbered in the order of natural numbers; R is the data transfer rate of VM migration, which is set to a fixed value here; D k is the dirty page rate, Represents the generation rate of memory, which must satisfy R>D k , otherwise the migration process cannot converge, VM pre-migration deteriorates, and server resources are extremely occupied; M th is the dirty page threshold, and when the threshold is reached, the switching stage is entered.

下面结合图2来说明本发明VM迁移优化方法的一个实现流程。An implementation process of the VM migration optimization method of the present invention will be described below with reference to FIG. 2 .

步骤一:首先判断VM是否需要迁移。若用户的计算数据量不足够大,或者目的服务器的资源不足,则不需要进行迁移操作。若需要迁移,则调取用户的移动特性。Step 1: First determine whether the VM needs to be migrated. If the amount of computing data of the user is not large enough, or the resources of the destination server are insufficient, the migration operation is not required. If migration is required, the user's mobility characteristics are retrieved.

步骤二:初始化特征计算。异构节点导致VM有多个位置可以放置,当用户移动到一个位置时,这个位置都会在三种不同的节点覆盖范围内,理论上VM可以迁移到这三种节点的任一节点,但需要选择最佳收益的。本发明针对每个任务(即VM)在覆盖用户的所有不同类型节点,都要计算在不同节点的能量消耗速率,并根据用户的移动特性,对迁移能耗进行预估,然后计算出相对的收益,根据收益大小将VM分配到最优的MEC服务器节点。VM在迁移过程中,需要保证链路的连通,并需要保证一定的传输速率,这段时间的消耗与上述的迁移时间

Figure BDA0001462841750000044
有直接的关系。Step 2: Initialize feature calculation. Heterogeneous nodes result in multiple locations for VMs to be placed. When a user moves to a location, the location will be covered by three different nodes. In theory, VMs can be migrated to any of these three nodes, but it needs to be Choose the one with the best yield. In the present invention, for each task (ie VM) covering all different types of nodes of the user, the energy consumption rate at different nodes should be calculated, and the migration energy consumption should be estimated according to the user's mobility characteristics, and then the relative energy consumption should be calculated. Revenue, allocate VMs to the optimal MEC server nodes according to the size of the revenue. During the migration process of the VM, it is necessary to ensure the connection of the link and a certain transmission rate. The consumption of this time is the same as the above-mentioned migration time.
Figure BDA0001462841750000044
have a direct relationship.

Figure BDA0001462841750000051
Figure BDA0001462841750000051

Wmig表示VM迁移过程中,VM所包含的配置文件和必须的数据缓存传输到目的节点所消耗的能量。W mig represents the energy consumed by the configuration files contained in the VM and the necessary data cache transferred to the destination node during the VM migration process.

f(x)为归一化函数,当x=0时,f(x)=0,当x≠0时,f(x)=1。f(x) is a normalization function, when x=0, f(x)=0, and when x≠0, f(x)=1.

φk=(i,j,z)表示虚拟机k的位置,i表示VM所在节点的网关节点序号,j是VM所在节点的聚合节点序号,z表示VM所在节点的边缘节点序号,若VM不在边缘节点上,那z为0,若也不在聚合节点上,那j为0,i是网关节点代号,不会为0,VM不一定在边缘节点或聚合节点服务器上,但一定会在某一个网关节点覆盖下,其中

Figure BDA0001462841750000052
为不同类型节点的代号,上标t+1和t代表两个不同的时间段,t表示上一个时段,一般代表VM的源节点位置,t+1代表用户当前所在位置。
Figure BDA0001462841750000053
分别代表VM在上一时刻和当前时刻所在的边缘节点,
Figure BDA0001462841750000054
分别代表VM在上一时刻和当前时刻所在的聚合节点,
Figure BDA0001462841750000055
分别代表VM在上一时刻和当前时刻所在的网关节点。以
Figure BDA0001462841750000056
为例,若
Figure BDA0001462841750000057
为1,表明VM k在t时刻在代号为
Figure BDA0001462841750000058
的边缘节点上运行。φ k = (i, j, z) represents the location of virtual machine k, i represents the gateway node number of the node where the VM is located, j is the aggregation node number of the node where the VM is located, and z represents the edge node number of the node where the VM is located. On the edge node, z is 0, if it is not on the aggregation node, then j is 0, i is the gateway node code, it will not be 0, the VM is not necessarily on the edge node or the aggregation node server, but must be on a certain one covered by the gateway node, where
Figure BDA0001462841750000052
For the codes of different types of nodes, the superscripts t+1 and t represent two different time periods, t represents the previous period, which generally represents the location of the source node of the VM, and t+1 represents the current location of the user.
Figure BDA0001462841750000053
represent the edge nodes where the VM is located at the previous moment and the current moment, respectively,
Figure BDA0001462841750000054
Represents the aggregation node where the VM is located at the previous moment and the current moment, respectively.
Figure BDA0001462841750000055
Represents the gateway node where the VM is located at the previous moment and the current moment, respectively. by
Figure BDA0001462841750000056
For example, if
Figure BDA0001462841750000057
is 1, indicating that VM k is at time t at codename
Figure BDA0001462841750000058
run on edge nodes.

VM的迁移涉及四种节点间迁移,包括边缘节点与聚合节点之间的迁移,聚合节点和网关节点之间的迁移。设en代表边缘节点,an代表聚合节点,D表示目的,R代表源。

Figure BDA0001462841750000059
表示任务k从聚合节点向边缘节点传输时的能耗功率,
Figure BDA00014628417500000510
表示任务k从网关节点向聚合节点传输时的能耗功率,
Figure BDA00014628417500000511
表示任务k从聚合节点向网关节点传输时的能耗功率,
Figure BDA00014628417500000512
表示任务k边缘节点向聚合节点传输时的能耗功率。
Figure BDA00014628417500000513
表示任务k光纤传输的能耗功率。The migration of VM involves four kinds of inter-node migration, including migration between edge nodes and aggregation nodes, and migration between aggregation nodes and gateway nodes. Let en represent the edge node, an represent the aggregation node, D represent the destination, and R represent the source.
Figure BDA0001462841750000059
represents the energy consumption of task k when it is transmitted from the aggregation node to the edge node,
Figure BDA00014628417500000510
represents the energy consumption of task k when it is transmitted from the gateway node to the aggregation node,
Figure BDA00014628417500000511
represents the energy consumption of task k when it is transmitted from the aggregation node to the gateway node,
Figure BDA00014628417500000512
Represents the energy consumption when the task k edge node transmits to the aggregation node.
Figure BDA00014628417500000513
Represents the energy consumption power of task k fiber transmission.

VM迁移过程中计算数据传输消耗的能量Wpre,代表迁移时间内计算数据仍需要传输至源服务器,传输能耗为:The energy W pre of calculating data transmission consumption during VM migration means that the calculated data still needs to be transmitted to the source server during the migration time, and the transmission energy consumption is:

Figure BDA00014628417500000514
Figure BDA00014628417500000514

VM迁移完成后,用户的位置发生变化,其位置可以分为三个类型的区域,因此消耗也可以分为三个阶段,计算数据传输的消耗WafterAfter the VM migration is completed, the user's location changes, and its location can be divided into three types of areas, so the consumption can also be divided into three stages, and the consumption of data transfer W after is calculated:

1)第一阶段,时间为

Figure BDA00014628417500000515
这一阶段是用户在初始边缘节点的能耗时间,用户的能量消耗:1) The first stage, the time is
Figure BDA00014628417500000515
This stage is the energy consumption time of the user at the initial edge node, and the energy consumption of the user:

Figure BDA00014628417500000516
Figure BDA00014628417500000516

其中,T表示时间,设Ttier_3、Ttier_2、Ttier_1分别表示用户在与VM同一个边缘节点、同一个聚合节点、同一个网关节点下的预测停留时间。

Figure BDA00014628417500000517
表示VM迁移所需的时间。由公式(5)可知,若VM迁移到边缘节点,此时
Figure BDA00014628417500000518
为0,表示VM在边缘节点就可以为用户服务,节点之间没有能量消耗;若迁移到聚合节点或者网关节点,此时节点之间需要数据传输,有能量消耗。Among them, T represents time, and let T tier_3 , T tier_2 , and T tier_1 represent the predicted stay time of the user under the same edge node, the same aggregation node, and the same gateway node as the VM, respectively.
Figure BDA00014628417500000517
Indicates the time required for VM migration. It can be seen from formula (5) that if the VM migrates to the edge node, then
Figure BDA00014628417500000518
If it is 0, it means that the VM can serve users at the edge node, and there is no energy consumption between nodes; if it is migrated to an aggregation node or a gateway node, data transmission is required between nodes at this time, and there is energy consumption.

2)第二阶段,时间为Ttier_2-Ttier_3,这一阶段是用户在相同聚合节点但不同边缘节点的能耗时间,用户离开了原边缘节点,但仍在同一个聚合节点覆盖范围内,这一阶段的能量消耗:2) The second stage, the time is T tier_2 -T tier_3 , this stage is the energy consumption time of the user in the same aggregation node but different edge nodes, the user leaves the original edge node, but is still within the coverage of the same aggregation node, Energy consumption at this stage:

Figure BDA0001462841750000061
Figure BDA0001462841750000061

其中,en’表示位于与边缘节点en同一个聚合节点an下的另一个边缘节点。

Figure BDA0001462841750000062
表示任务k从聚合节点向另外一个边缘节点en’传输时的能耗功率。Among them, en' represents another edge node located under the same aggregation node an as the edge node en.
Figure BDA0001462841750000062
Represents the power consumption when task k is transmitted from the aggregation node to another edge node en'.

3)第三阶段,时间为Ttier_1-Ttier_2,表示用户在相同的网关节点但不同的聚合节点的能耗消耗时间。这个阶段是网关节点的覆盖范围下,所以也不用考虑VM再次迁移的情况。其能耗为:3) In the third stage, the time is T tier_1 -T tier_2 , which represents the energy consumption time of the user at the same gateway node but different aggregation nodes. This stage is under the coverage of the gateway node, so there is no need to consider the situation of VM migration again. Its energy consumption is:

Figure BDA0001462841750000063
Figure BDA0001462841750000063

其中,en”表示用户位置在同一个网关节点范围内的另一个聚合节点范围的边缘节点下,an’表示同一个网关节点范围下的另一个聚合节点。Among them, en" indicates that the user's location is under the edge node of another aggregation node in the same gateway node range, and an' indicates another aggregation node in the same gateway node range.

通过本步骤的初始化特征计算,根据用户的预测时间,判断用户在同一个网关节点范围内活动时,与VM进行交互所产生的能耗。Through the initialization feature calculation in this step, according to the predicted time of the user, determine the energy consumption generated by the interaction between the user and the VM when the user is active within the same gateway node range.

步骤三:分布最优收益计算。在初始化计算完成后,任务被预分配到相应的阶段,节点根据自身的资源量、用户的占用空间和价值,计算总的收益如下:Step 3: Calculation of distribution optimal income. After the initialization calculation is completed, the tasks are pre-assigned to the corresponding stages, and the node calculates the total revenue according to its own resources, user space and value as follows:

Figure BDA0001462841750000064
Figure BDA0001462841750000064

其中,

Figure BDA0001462841750000065
表示用户或者VM的数量,用户和VM是一一对应的。ψ表示所有节点的集合。g(l)表示VM是否迁移到节点l上,Ml表示节点l的资源总量。Dk表示用户k或VM k需要占用的资源。公式(8)中的限制条件是,保证一个节点上的VM占用的资源不超该节点的资源最大值。in,
Figure BDA0001462841750000065
Indicates the number of users or VMs. Users and VMs are in one-to-one correspondence. ψ represents the set of all nodes. g( l ) represents whether the VM is migrated to node 1, and M1 represents the total resources of node 1. D k represents the resources required to be occupied by user k or VM k. The restriction in formula (8) is to ensure that the resource occupied by the VM on a node does not exceed the maximum resource value of the node.

本发明将VM没有迁移的能耗Wstatic作为基准线,

Figure BDA0001462841750000066
可以通过更改Wpre条件求出,公式如下:The present invention takes the energy consumption W static of the VM without migration as the baseline,
Figure BDA0001462841750000066
It can be obtained by changing the W pre condition, the formula is as follows:

Figure BDA0001462841750000067
Figure BDA0001462841750000067

VM k的基准能耗为

Figure BDA0001462841750000068
根据公式(9)获得,设
Figure BDA0001462841750000069
则将
Figure BDA00014628417500000610
的差值作为收益目标,计算最优收益的目标表达式可以转化为:The baseline energy consumption of VM k is
Figure BDA0001462841750000068
According to formula (9), we can get
Figure BDA0001462841750000069
will
Figure BDA00014628417500000610
The difference is used as the income target, and the target expression for calculating the optimal income can be transformed into:

Figure BDA00014628417500000611
Figure BDA00014628417500000611

由于服务器分布存在,想求出整体最优解,其计算复杂度和时间消耗非常高,因此本发明的目标为求出次优解,即每个服务器通过动态规划递归地求出局部最优解,其迭代的核心公式如下:Due to the existence of server distribution, to find the overall optimal solution, the computational complexity and time consumption are very high, so the goal of the present invention is to find the sub-optimal solution, that is, each server recursively finds the local optimal solution through dynamic programming , the core formula of its iteration is as follows:

W(n,m)=max{W(n-1,m),W(n-1,m-Dn)+wk} (10)W(n,m)=max{W(n-1,m),W(n-1,mD n )+w k } (10)

其中,n是迭代次数,m是节点上MEC服务器的资源占用量,设该服务器的资源可被占用量的最大值为M。wk是单个VM k的预计收益,

Figure BDA0001462841750000071
通过这种方式可以求出最大收益。Among them, n is the number of iterations, m is the resource occupancy of the MEC server on the node, and the maximum value of the resource that can be occupied by the server is M. w k is the expected return of a single VM k,
Figure BDA0001462841750000071
In this way, the maximum profit can be obtained.

步骤四:循环补缺计算。步骤三中没有资源存放的VM将选择更高层的服务器节点,在原来的基础上在进行一次求解,进行再次迭代求解。Step 4: Circular filling calculation. In step 3, the VM without resource storage will select a higher-level server node, perform a solution on the original basis, and perform an iterative solution again.

本发明提出可一种基于异构节点的VM迁移方案,首先介绍了网络系统模型,紧接着描述了VM迁移场景和具体的放大,最后给出性能仿真。所提出的方法能有效的减少系统的能量消耗,同时提升了用户的服务质量。The present invention proposes a VM migration scheme based on heterogeneous nodes. First, the network system model is introduced, then the VM migration scenario and specific amplification are described, and finally the performance simulation is given. The proposed method can effectively reduce the energy consumption of the system and improve the service quality of users.

实施例:Example:

考虑如下场景:两个网关节点、四个聚合节点和十二个边缘节点。如表1,本实施例选择了5.8GHz带宽作为超视距传输,选择60GHz作为直线视距。设定最大用户数为10000个,其传输速率的要求满足正态分布N(300Mbps,100Mbps),其资源占用量随机分布,其范围为[5,20];脏页率为[10,20]k/s,迁移数据的传输速率定为200Mbps,高斯噪声为104,用户在三个节点下的时间随机生成,生成规则为Ttier_1∈(Ttier_2,3Ttier_2),Ttier_2∈(Ttier_1,3Ttier_1),Ttier_3∈(0,7200)s。Consider the following scenario: two gateway nodes, four aggregation nodes, and twelve edge nodes. As shown in Table 1, in this embodiment, a bandwidth of 5.8 GHz is selected as the over-the-horizon transmission, and 60 GHz is selected as the line-of-sight. The maximum number of users is set to 10,000, the transmission rate requirements meet the normal distribution N (300Mbps, 100Mbps), the resource occupancy is randomly distributed, and its range is [5, 20]; the dirty page rate is [10, 20] k/s, the transfer rate of the migrated data is set to 200Mbps, the Gaussian noise is 10 4 , the time of users under three nodes is randomly generated, and the generation rule is T tier_1 ∈(T tier_2 ,3T tier_2 ), T tier_2 ∈(T tier_1 , 3T tier_1 ), T tier_3 ∈ (0,7200)s.

表1 5.8GHz与60GHz无线信道特征表Table 1 5.8GHz and 60GHz wireless channel characteristics table

特征feature 5.8GHz5.8GHz 60GHz60GHz 雨致衰落(dB)Rain Fading (dB) 00 1010 氧吸收(dB)Oxygen absorption (dB) 00 1515 信道增益(dB)Channel Gain (dB) 1717 3838 最大传输功率(dBm)Maximum transmit power (dBm) 1919 2525 衰落余量(dB)Fading Margin (dB) 1515 2525 信道带宽(MHz)Channel bandwidth (MHz) 4040 160160 信道数number of channels 66 66

对上面场景,对VM采用本发明方法、随用户迁移方案和不迁移方案来进行仿真实验。图3给出了三种不同的方案在用户数量线性增加的能耗变化图,其中本发明方法的曲线采用的是选择迁移策略。这个图主要体现在不同用户的情况下,其总能量消耗总趋势是逐渐增加的,其中不迁移方案的状态,几乎处于线性状态,选择迁移比不迁移要有比较好收敛,但在用户量增大到一定程度才有更好的表现。总的来说,在正常情况下,本发明方法具有很好的节约能耗的效果。For the above scenario, the method of the present invention, the migration scheme with the user and the non-migration scheme are used to conduct simulation experiments on the VM. Fig. 3 shows the change diagram of energy consumption when the number of users increases linearly for three different schemes, wherein the curve of the method of the present invention adopts the selection migration strategy. This figure is mainly reflected in the situation of different users, and the general trend of its total energy consumption is gradually increasing. The state of no migration scheme is almost in a linear state, and the choice of migration is better than no migration. Convergence is better, but when the number of users increases To a certain extent, it will perform better. In general, under normal circumstances, the method of the present invention has a very good effect of saving energy.

图4是优化策略中,能耗随着用户数量的每一类的MEC服务器的能量总收益变化图。其相对于不迁移状态,其中收益最多的是边缘节点,因为边缘节点作为最为接近用户的节点,若用户的特征属于长时间处于某地时,若VM迁移到边缘节点上,此时能量消耗速率是最低的,所以迁移到边缘节点上的VM的收益最大,成为总收益中的主要部分,所以边缘节点的部署成为关键。Figure 4 is a graph showing the change of energy consumption with the total energy return of each type of MEC server in the optimization strategy. Compared with the non-migration state, the most profitable is the edge node, because the edge node is the node closest to the user, if the user's characteristics belong to a long time in a certain place, if the VM migrates to the edge node, the energy consumption rate at this time is is the lowest, so the benefits of VMs migrated to edge nodes are the largest and become the main part of the total revenue, so the deployment of edge nodes becomes the key.

图5表示平均每个用户的能耗变化,随着用户的增加,不同服务器节点上的收益不断减少,这是由于用户的增加,其资源的冲突,造成某些VM进行二次选择服务器,其收益必然下降。这两点都表明想要更好的取得减少能耗的效果,需要部署更多合适的边缘节点,并且需要有更多的资源满足VM灵活的迁移。Figure 5 shows the average energy consumption change of each user. With the increase of users, the revenue on different server nodes continues to decrease. This is due to the increase of users and the conflict of their resources, causing some VMs to select servers for the second time. Earnings are bound to decline. Both of these points indicate that in order to achieve a better effect of reducing energy consumption, more suitable edge nodes need to be deployed, and more resources need to be available for flexible VM migration.

图6中,展示了随着VM的均内存占用量的能耗收益变化图。随着VM的资源量的增加,不同类型服务器的能耗收益都有所减少。在不同类别的服务器上,网关节点的能耗最大,体现出用户的移动性的比较高,其VM迁移的位置覆盖范围越大,则收益越高,因此,在服务器资源部署时,覆盖范围大的节点,比如网关节点,可以部署更多的资源,但其传输的距离边长,有可能会牺牲一部分的传输时延,从而降低任务的计算速率。In Figure 6, a graph of the change in energy consumption benefit with the average memory footprint of the VM is shown. As the resource volume of the VM increases, the energy benefit of different types of servers decreases. On different types of servers, the energy consumption of the gateway node is the largest, which reflects the relatively high mobility of users. The larger the coverage area of the VM migration location, the higher the income. Therefore, when the server resources are deployed, the coverage area is large. Nodes, such as gateway nodes, can deploy more resources, but their transmission distance is long, which may sacrifice part of the transmission delay, thereby reducing the calculation rate of the task.

Claims (7)

1.一种超密集网络中MEC节点间VM迁移优化方法,其特征在于,所应用的超密集网络中包含网关节点、聚合节点和边缘节点,各节点部署有MEC服务器,其中,将部署有MEC服务器的节点称为MEC节点,MEC表示移动边缘计算,VM表示虚拟机;1. VM migration optimization method between MEC nodes in an ultra-dense network, is characterized in that, in the applied ultra-dense network, gateway node, aggregation node and edge node are included, and each node is deployed with MEC server, wherein, MEC will be deployed with The node of the server is called MEC node, MEC means mobile edge computing, VM means virtual machine; 所述的方法,在MEC节点的VM需要迁移时,执行如下步骤:In the described method, when the VM of the MEC node needs to be migrated, the following steps are performed: 首先,计算初始化特征,包括:根据预测的用户的迁移时间
Figure FDA0002494417660000011
计算用户在同一个网关节点范围内活动时与VM进行交互所产生的能耗,能耗包括数据传输到目的节点的能耗Wmig,数据传输到源节点的能耗Wpre,以及用户位置变化时在三种节点覆盖区域与VM连接的能耗Wafter
First, calculate the initialization features, including: according to the predicted user's migration time
Figure FDA0002494417660000011
Calculate the energy consumption generated by the interaction between the user and the VM when the user is active within the same gateway node. The energy consumption includes the energy consumption W mig of data transmission to the destination node, the energy consumption W pre of data transmission to the source node, and the change of user location. The energy consumption W after of connecting to the VM in the three types of node coverage areas;
能耗Wafter分为三个阶段:第一阶段,用户位于VM所在的边缘节点A的覆盖范围下,该阶段用户与VM进行数据传输的能耗为W1 after;第二阶段,用户在边缘节点B的覆盖范围下,边缘节点A和B在同一个聚合节点下,该阶段用户与VM进行数据传输的能耗为
Figure FDA0002494417660000012
第三阶段,用户移动到边缘节点C,边缘节点A和C在同一个网关节点下,该阶段用户与VM进行数据传输的能耗为
Figure FDA0002494417660000013
The energy consumption W after is divided into three stages: in the first stage, the user is located under the coverage of the edge node A where the VM is located, and the energy consumption of data transmission between the user and the VM in this stage is W 1 after ; in the second stage, the user is on the edge Under the coverage of node B, edge nodes A and B are under the same aggregation node, and the energy consumption of data transmission between users and VMs at this stage is
Figure FDA0002494417660000012
In the third stage, the user moves to the edge node C, and the edge nodes A and C are under the same gateway node. In this stage, the energy consumption of data transmission between the user and the VM is:
Figure FDA0002494417660000013
其次,建立最优收益模型,如下:Secondly, establish the optimal income model, as follows:
Figure FDA0002494417660000014
Figure FDA0002494417660000014
Figure FDA0002494417660000015
Figure FDA0002494417660000015
g(x)∈(0,1)g(x)∈(0,1) 其中,
Figure FDA0002494417660000016
表示VM的数量,ψ表示网络中节点的集合;g(l)表示VM是否迁移到节点l上,取值为1表示迁移到,取值为0表示未迁移到;Dk表示VM k需要占用的资源;Ml表示节点l的资源总量;
in,
Figure FDA0002494417660000016
Represents the number of VMs, ψ represents the set of nodes in the network; g(l) represents whether the VM is migrated to node l, a value of 1 means migrated to, and a value of 0 means not migrated to; D k means that VM k needs to occupy resources; M l represents the total resources of node l;
最后,求解最优收益模型,选出最优的VM迁移策略。Finally, the optimal revenue model is solved, and the optimal VM migration strategy is selected.
2.根据权利要求1所述的方法,其特征在于,所述的用户的迁移时间
Figure FDA0002494417660000017
根据下面公式计算获得:
2. The method according to claim 1, wherein the migration time of the user is
Figure FDA0002494417660000017
Calculated according to the following formula:
Figure FDA0002494417660000018
Figure FDA0002494417660000018
其中,Mk,0代表标号为k的VM的初始内存大小;R为VM迁移的数据传输速率;Dk是脏页率;Mth是脏页阈值。Among them, M k,0 represents the initial memory size of the VM labeled k; R is the data transfer rate of VM migration; D k is the dirty page rate; M th is the dirty page threshold.
3.根据权利要求1所述的方法,其特征在于,所述的数据传输到目的节点的能耗Wmig根据下面公式计算获得:3. The method according to claim 1, wherein the energy consumption W mig of the data transmission to the destination node is calculated and obtained according to the following formula:
Figure FDA0002494417660000019
Figure FDA0002494417660000019
其中,f(x)为归一化函数,当x=0时,f(x)=0,当x≠0时,f(x)=1;f(x)=0表示VM 在节点x上不运行,f(x)=1表示VM在节点x上运行;Among them, f(x) is a normalization function, when x=0, f(x)=0, when x≠0, f(x)=1; f(x)=0 means that VM is on node x Not running, f(x)=1 means the VM is running on node x; 设φk=(i,j,z)表示虚拟机k的位置,i表示VM所在节点的网关节点序号,j表示VM所在节点的聚合节点序号,z表示VM所在节点的边缘节点序号;
Figure FDA0002494417660000021
表示当前时刻VM k所在的边缘节点;
Figure FDA0002494417660000022
表示当前时刻VM k所在的聚合节点;
Figure FDA0002494417660000023
分别表示上一时刻VM k所在的边缘节点、聚合节点;其中
Figure FDA0002494417660000024
为不同类型节点的代号,上标t+1和t代表两个不同的时间段,t表示上一个时段,代表VM的源节点位置,t+1代表用户当前所在位置;
Let φ k =(i,j,z) represent the position of virtual machine k, i represents the gateway node serial number of the node where the VM is located, j represents the aggregation node serial number of the node where the VM is located, and z represents the edge node serial number of the node where the VM is located;
Figure FDA0002494417660000021
Indicates the edge node where VM k is located at the current moment;
Figure FDA0002494417660000022
Indicates the aggregation node where VM k is located at the current moment;
Figure FDA0002494417660000023
respectively represent the edge node and aggregation node where VM k is located at the last moment; where
Figure FDA0002494417660000024
are the code names of different types of nodes, the superscripts t+1 and t represent two different time periods, t represents the previous time period, representing the source node location of the VM, and t+1 represents the current location of the user;
Figure FDA0002494417660000025
表示任务k从聚合节点向边缘节点传输时的能耗功率,
Figure FDA0002494417660000026
表示任务k从网关节点向聚合节点传输时的能耗功率,
Figure FDA0002494417660000027
表示任务k从边缘节点向聚合节点传输时的能耗功率,
Figure FDA0002494417660000028
表示任务k从聚合节点向网关节点传输时的能耗功率,
Figure FDA0002494417660000029
表示任务k的光纤传输的能耗功率。
Figure FDA0002494417660000025
represents the energy consumption of task k when it is transmitted from the aggregation node to the edge node,
Figure FDA0002494417660000026
represents the energy consumption of task k when it is transmitted from the gateway node to the aggregation node,
Figure FDA0002494417660000027
represents the energy consumption of task k when it is transmitted from the edge node to the aggregation node,
Figure FDA0002494417660000028
represents the energy consumption of task k when it is transmitted from the aggregation node to the gateway node,
Figure FDA0002494417660000029
represents the energy consumption power of optical fiber transmission of task k.
4.根据权利要求3所述的方法,其特征在于,所述的能耗Wpre根据下面公式获得:4. method according to claim 3, is characterized in that, described energy consumption W pre is obtained according to following formula:
Figure FDA00024944176600000210
Figure FDA00024944176600000210
其中,
Figure FDA00024944176600000211
表示任务k从聚合节点向边缘节点传输时的能耗功率,
Figure FDA00024944176600000212
表示任务k从网关节点向聚合节点传输时的能耗功率,
Figure FDA00024944176600000213
表示任务k从边缘节点向聚合节点传输时的能耗功率,
Figure FDA00024944176600000214
表示任务k从聚合节点向网关节点传输时的能耗功率,
Figure FDA00024944176600000215
表示任务k的光纤传输的能耗功率。
in,
Figure FDA00024944176600000211
represents the energy consumption of task k when it is transmitted from the aggregation node to the edge node,
Figure FDA00024944176600000212
represents the energy consumption of task k when it is transmitted from the gateway node to the aggregation node,
Figure FDA00024944176600000213
represents the energy consumption of task k when it is transmitted from the edge node to the aggregation node,
Figure FDA00024944176600000214
represents the energy consumption of task k when it is transmitted from the aggregation node to the gateway node,
Figure FDA00024944176600000215
represents the energy consumption power of optical fiber transmission of task k.
5.根据权利要求3所述的方法,其特征在于,所述的消耗Wafter根据用户的位置变化分为三个阶段,设Ttier_3、Ttier_2、Ttier_1分别表示用户在与VM同一个边缘节点、同一个聚合节点、同一个网关节点下的预测停留时间;5. The method according to claim 3, wherein the consumption W after is divided into three stages according to the position change of the user, and let T tier_3 , T tier_2 , T tier_1 respectively represent that the user is on the same edge as the VM Predicted residence time under the same node, the same aggregation node, and the same gateway node; (1)第一阶段,时间为
Figure FDA00024944176600000216
能耗W1 after为:
(1) The first stage, the time is
Figure FDA00024944176600000216
The energy consumption W 1 after is:
Figure FDA00024944176600000217
Figure FDA00024944176600000217
其中,
Figure FDA00024944176600000218
表示任务k从网关节点向聚合节点an传输时的能耗功率,
Figure FDA00024944176600000219
表示任务k从聚合节点an向边缘节点en传输时的能耗功率;
in,
Figure FDA00024944176600000218
represents the energy consumption of task k when it is transmitted from the gateway node to the aggregation node an,
Figure FDA00024944176600000219
Represents the energy consumption of task k when it is transmitted from the aggregation node an to the edge node en;
(2)第二阶段,时间为Ttier_2-Ttier_3,能耗
Figure FDA00024944176600000220
为:
(2) The second stage, the time is T tier_2 -T tier_3 , the energy consumption
Figure FDA00024944176600000220
for:
Figure FDA00024944176600000221
Figure FDA00024944176600000221
其中,
Figure FDA00024944176600000222
表示任务k从聚合节点an向另外一个边缘节点en’传输时的能耗功率,节点en’与en同在聚合节点an下;
in,
Figure FDA00024944176600000222
Represents the energy consumption when task k is transmitted from the aggregation node an to another edge node en', and the nodes en' and en are under the aggregation node an;
(3)第三阶段,时间为Ttier_1-Ttier_2,能耗
Figure FDA00024944176600000223
为:
(3) The third stage, the time is T tier_1 -T tier_2 , the energy consumption
Figure FDA00024944176600000223
for:
Figure FDA00024944176600000224
Figure FDA00024944176600000224
其中,
Figure FDA00024944176600000225
表示任务k从聚合节点an向另外一个边缘节点en”传输时的能耗功率,节点en”与en在同一个网关节点下的不同聚合节点下;
Figure FDA00024944176600000226
表示任务k从网关节点向聚合节点an’传输时的能耗功率,节点an’和an同在一个网关节点下。
in,
Figure FDA00024944176600000225
Represents the energy consumption of task k when it is transmitted from the aggregation node an to another edge node en”, and the nodes en” and en are under different aggregation nodes under the same gateway node;
Figure FDA00024944176600000226
Represents the energy consumption when task k is transmitted from the gateway node to the aggregation node an', and nodes an' and an are under the same gateway node.
6.根据权利要求1或3所述的方法,其特征在于,所述的最优收益模型在求解时,各VM将没有迁移的能耗作为基准能耗;6. The method according to claim 1 or 3, wherein, when the optimal revenue model is solved, each VM takes the energy consumption without migration as the reference energy consumption; 基准能耗
Figure FDA0002494417660000031
Ttier_1表示用户在与VM同一个网关节点下的预测停留时间;
Baseline energy consumption
Figure FDA0002494417660000031
T tier_1 represents the predicted stay time of the user under the same gateway node as the VM;
对于用户k,设其基准能耗为
Figure FDA0002494417660000032
与VM进行交互所产生的总能耗
Figure FDA0002494417660000033
For user k, let its baseline energy consumption be
Figure FDA0002494417660000032
Total energy consumption from interacting with the VM
Figure FDA0002494417660000033
Figure FDA0002494417660000034
的差值作为收益目标,则将计算最优收益的目标表达式转化为:
Will
Figure FDA0002494417660000034
The difference of is the revenue target, then the target expression for calculating the optimal revenue is transformed into:
Figure FDA0002494417660000035
Figure FDA0002494417660000035
Figure FDA0002494417660000036
Figure FDA0002494417660000036
7.根据权利要求6所述的方法,其特征在于,所述的最优收益模型在求解时,通过对每个节点动态递归地求出局部最优解来实现;7. The method according to claim 6, wherein, when the optimal income model is solved, it is realized by dynamically recursively finding a local optimal solution for each node; 设某节点第n次迭代时的能耗W(n,m)=max{W(n-1,m),W(n-1,m-Dn)+wk};Let the energy consumption of a node at the nth iteration W(n,m)=max{W(n-1,m),W( n -1,mDn)+ wk }; 其中,n是迭代次数,m是节点上MEC服务器的资源占用量,Dn是VM的内存大小,wk是VM k的预计收益,
Figure FDA0002494417660000037
where n is the number of iterations, m is the resource occupancy of the MEC server on the node, D n is the memory size of the VM, w k is the expected revenue of VM k,
Figure FDA0002494417660000037
当节点没有资源存放VM k时,将为VM k选择更高层的服务器节点,再对该节点进行递归迭代求解。When the node has no resources to store VM k, a higher-level server node will be selected for VM k, and then recursively iteratively solve the node.
CN201711098566.2A 2017-11-09 2017-11-09 Optimization method for VM migration between MEC nodes in ultra-dense network Active CN107919986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711098566.2A CN107919986B (en) 2017-11-09 2017-11-09 Optimization method for VM migration between MEC nodes in ultra-dense network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711098566.2A CN107919986B (en) 2017-11-09 2017-11-09 Optimization method for VM migration between MEC nodes in ultra-dense network

Publications (2)

Publication Number Publication Date
CN107919986A CN107919986A (en) 2018-04-17
CN107919986B true CN107919986B (en) 2020-09-08

Family

ID=61896038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711098566.2A Active CN107919986B (en) 2017-11-09 2017-11-09 Optimization method for VM migration between MEC nodes in ultra-dense network

Country Status (1)

Country Link
CN (1) CN107919986B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984307B (en) * 2018-07-19 2020-11-10 中国联合网络通信集团有限公司 Computing task migration method and computing task migration device
CN109067583A (en) * 2018-08-08 2018-12-21 深圳先进技术研究院 A kind of resource prediction method and system based on edge calculations
CN109376374B (en) * 2018-09-01 2023-04-07 哈尔滨工程大学 Multi-user computing migration method based on multi-radio frequency communication
CN109151864B (en) * 2018-09-18 2022-01-18 贵州电网有限责任公司 Migration decision and resource optimal allocation method for mobile edge computing ultra-dense network
CN109375999A (en) * 2018-10-23 2019-02-22 北京工业大学 A Bayesian Network-based Random Task Transfer Method for MEC
CN109656681B (en) * 2018-12-03 2022-12-02 华中科技大学 Energy scheduling method in cloud fusion environment
CN109710374A (en) * 2018-12-05 2019-05-03 重庆邮电大学 VM migration strategy to minimize task offload cost in mobile edge computing environment
CN109802934A (en) * 2018-12-13 2019-05-24 中国电子科技网络信息安全有限公司 A kind of MEC system based on container cloud platform
DE102018009903A1 (en) * 2018-12-20 2020-06-25 Volkswagen Aktiengesellschaft Device for a vehicle for outsourcing computing power
CN110753117B (en) * 2019-10-24 2022-03-04 南京信息工程大学 A computing migration method considering privacy protection in wireless metropolitan area network environment
CN110933609A (en) * 2019-11-26 2020-03-27 航天科工网络信息发展有限公司 Service migration method and device based on dynamic environment perception
CN113098917B (en) * 2019-12-23 2024-06-04 华为云计算技术有限公司 Method and related device for migrating functional nodes
CN111132253B (en) * 2019-12-31 2021-03-30 北京邮电大学 A joint mobility management method for communication handover and service migration
CN111290835B (en) * 2020-01-22 2023-03-10 重庆锦禹云能源科技有限公司 Method and device for migrating virtual machine of cloud platform and server
CN113301092B (en) * 2020-07-31 2022-04-12 阿里巴巴集团控股有限公司 Network reconnection method, device, system and storage medium
CN112822055B (en) * 2021-01-21 2023-12-22 国网河北省电力有限公司信息通信分公司 Edge computing node deployment method based on DQN
CN113115256B (en) * 2021-04-14 2022-04-19 重庆邮电大学 Online VMEC service network selection migration method
CN113206694B (en) * 2021-04-22 2023-04-07 南京航空航天大学 Computing efficiency optimization method in millimeter wave mobile edge computing system based on hybrid beam forming
CN113656952B (en) * 2021-08-04 2024-04-05 之江实验室 Modeling tool for cloud edge computing environment
CN114096006B (en) * 2021-08-18 2024-07-05 东南大学 Resource allocation and data compression combined optimization method in mobile edge computing system
CN113901145B (en) * 2021-10-20 2025-04-15 中国联合网络通信集团有限公司 Industrial Internet data storage method, system, computer equipment and storage medium
CN114286381B (en) * 2021-12-09 2025-05-30 重庆邮电大学 Terminal aggregation monitoring assisted access control method in ultra-dense heterogeneous wireless networks
CN115765826B (en) * 2022-09-19 2024-05-31 西安电子科技大学 Unmanned aerial vehicle network topology reconstruction method for on-demand service

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454948A (en) * 2016-10-11 2017-02-22 重庆邮电大学 Node re-distribution method in wireless network virtualization
CN106775933A (en) * 2016-11-29 2017-05-31 深圳大学 A kind of virtual machine on server cluster dynamically places optimization method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454948A (en) * 2016-10-11 2017-02-22 重庆邮电大学 Node re-distribution method in wireless network virtualization
CN106775933A (en) * 2016-11-29 2017-05-31 深圳大学 A kind of virtual machine on server cluster dynamically places optimization method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Bandwidth Management VMs Live Migration in Wireless Fog Computing for 5G Networks;Danilo Amendola 等;《2016 5th IEEE International Conference on Cloud Networking (Cloudnet)》;20161208;第21-26页 *
多天线超密集网络统计性能分析与优化;陈正;《中国博士学位论文全文数据库 信息科技辑(月刊 )》;20170915;第I136-30页 *

Also Published As

Publication number Publication date
CN107919986A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
CN107919986B (en) Optimization method for VM migration between MEC nodes in ultra-dense network
CN109413724B (en) MEC-based task unloading and resource allocation scheme
Pham et al. Mobile edge computing with wireless backhaul: Joint task offloading and resource allocation
Masoudi et al. Device vs edge computing for mobile services: Delay-aware decision making to minimize power consumption
TWI753175B (en) Electronic apparatus, method and computer-readable storage medium for wireless communications
Sigwele et al. Energy-efficient cloud radio access networks by cloud based workload consolidation for 5G
Li et al. Mobility-aware offloading and resource allocation in NOMA-MEC systems via DC
CN110856259A (en) Resource allocation and offloading method for adaptive data block size in mobile edge computing environment
CN108684075B (en) Processing resource allocation method under centralized base station architecture
Ye et al. Towards an optimal user association in heterogeneous cellular networks
CN113114721A (en) Software defined Internet of vehicles service migration method based on MEC
CN112512065A (en) Mobility aware offloading and migration algorithms in small cell networks supporting MEC
El Haber et al. Computational cost and energy efficient task offloading in hierarchical edge-clouds
Al-Zubaedi et al. A parameterized and optimized BBU pool virtualization power model for C-RAN architecture
CN115278779A (en) Dynamic placement method of VR service module based on rendering perception in MEC network
Sharma et al. Energy saving in heterogeneous cellular network via transfer reinforcement learning based policy
JP5558551B2 (en) Wireless communication resource management for distributed cellular systems
Zheng et al. Joint downlink and uplink edge computing offloading in ultra-dense HetNets
Ali et al. Energy-efficient RRH-association and resource allocation in D2D enabled multi-tier 5G C-RAN
Sigwele et al. iTREE: Intelligent traffic and resource elastic energy scheme for cloud-RAN
Shi et al. Dual connectivity enabled user association approach for max-throughput in the downlink heterogeneous network
US9516589B2 (en) Trading spectrum for energy savings in green cognitive cellular networks
Somesula et al. Artificial Bee optimization aided joint user association and resource allocation in HCRAN
El Haber et al. An energy-efficient task offloading solution for MEC-based IoT in ultra-dense networks
Dai et al. A cluster-based small cell on/off scheme for energy efficiency optimization in ultra-dense networks

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant