Nothing Special   »   [go: up one dir, main page]

CN106101211B - A Carrier Migration Method Based on Memory Page Rewrite Probability Prediction - Google Patents

A Carrier Migration Method Based on Memory Page Rewrite Probability Prediction Download PDF

Info

Publication number
CN106101211B
CN106101211B CN201610403919.4A CN201610403919A CN106101211B CN 106101211 B CN106101211 B CN 106101211B CN 201610403919 A CN201610403919 A CN 201610403919A CN 106101211 B CN106101211 B CN 106101211B
Authority
CN
China
Prior art keywords
memory page
memory
migration
probability
transmitted
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
CN201610403919.4A
Other languages
Chinese (zh)
Other versions
CN106101211A (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.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CN201610403919.4A priority Critical patent/CN106101211B/en
Publication of CN106101211A publication Critical patent/CN106101211A/en
Application granted granted Critical
Publication of CN106101211B publication Critical patent/CN106101211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • G06F9/4856Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration

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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种基于内存页改写概率预测的载波迁移方法,所述方法包括:收到载波迁移信号,进入预迁移阶段,收集载波对应的虚拟基站中所有内存页的最近N次内存状态变化信息;进入迭代迁移阶段;预测所有待传输内存页的内存页改写概率;将内存页改写概率超过改写概率门限值的待传输内存页放到停机迁移阶段进行传输,将内存页改写概率不超过改写概率门限值的待传输内存页放到本轮迭代进行传输;判断是否满足停机迁移条件。本发明有效减少了载波迁移过程中虚拟基站内存页的冗余迭代拷贝,从而减少了载波迁移的总迁移时间、迁移停机时间和传输数据量,降低载波迁移不收敛的可能性,提高了载波迁移的迁移性能。

The invention discloses a carrier migration method based on memory page rewriting probability prediction. The method includes: receiving a carrier migration signal, entering a pre-migration stage, and collecting the latest N memory state changes of all memory pages in a virtual base station corresponding to the carrier information; enter the iterative migration stage; predict the memory page rewrite probability of all memory pages to be transferred; put the memory pages to be transferred with memory page rewrite probability exceeding the rewrite probability threshold value into the shutdown migration stage for transmission, and the memory page rewrite probability does not exceed The memory page to be transmitted with the rewriting probability threshold value is placed in the current round of iterations for transmission; it is judged whether the downtime migration condition is met. The present invention effectively reduces redundant iterative copies of virtual base station memory pages in the carrier migration process, thereby reducing the total migration time, migration downtime and transmission data volume of carrier migration, reducing the possibility of carrier migration non-convergence, and improving carrier migration migration performance.

Description

一种基于内存页改写概率预测的载波迁移方法A Carrier Migration Method Based on Memory Page Rewrite Probability Prediction

技术领域technical field

本发明属于移动通信技术领域,尤其涉及一种基于内存页改写概率预测的载波迁移方法。The invention belongs to the technical field of mobile communication, and in particular relates to a carrier migration method based on memory page rewriting probability prediction.

背景技术Background technique

随着移动通信无线接入网的发展,无线接入设备正经历着从传统的一体化基站向分布式基站再到基站资源池的演进过程。分布式基站通过将射频单元从基站中分离,分布式基站和远端的天线放在一起,成为远端射频单元(Remote Radio Unit,RRU),而原来的基站机柜只留下基带单元(Baseband Unit,BBU)。一方面,RRU与天线放在一起,降低了天馈线的衰减,可以降低基站的发射功率;另一方面,剥离RRU后的BBU机柜体积可以大幅度减小,且安放于天面的RRU依靠自然条件恒温,不再需要专门的空调设备,进一步降低了能耗。基站资源池的概念是在分布式基站的基础上提出的,通过将一定范围内的BBU互联,将各BBU的基带处理能力共享,形成按需分配、统一调度的基带资源池。通过合理的规划,可以使得基站资源池内的基站不在同一时间处于最大业务量状态,基带资源池的载波处理资源就可以不按所有的最大需求总和来配备,从而降低了运营商的投资成本和网络整体的能耗,提高了载波处理资源的整体利用率。由于云计算技术的高速发展,虚拟化技术以及虚拟机迁移技术逐步被引入至基站资源池中。结合虚拟化技术,基站资源池中的载波处理资源可以被抽象成虚拟机的形式,并按需抽取基带池处理资源,构成相应的虚拟基站以处理载波的基带信号,提高了资源的利用率,且能够以更加细腻粒度更方便的进行不同载波的弹性分配和统一调度。结合虚拟机迁移技术,可以将处理载波基带信号的虚拟基站从一台物理服务器迁移到另一台物理服务器,从而实现载波迁移;在载波处理资源不足的情况下,通过载波迁移,缓解载波处理资源不足的情况,提高通信业务质量;通过载波迁移,将某一物理服务器上所有载波迁移到其他物理服务器上,就能对该物理服务器进行检修或升级等维护操作,或者将其关电以达到节能减排的目的。With the development of wireless access networks for mobile communications, wireless access equipment is undergoing an evolution process from traditional integrated base stations to distributed base stations and then to base station resource pools. The distributed base station separates the radio frequency unit from the base station, and puts the distributed base station and the remote antenna together to form a remote radio unit (Remote Radio Unit, RRU), while the original base station cabinet only leaves the baseband unit (Baseband Unit). , BBU). On the one hand, putting the RRU and the antenna together reduces the attenuation of the antenna feeder and can reduce the transmission power of the base station; The condition is constant temperature, no need for special air-conditioning equipment, further reducing energy consumption. The concept of base station resource pool is proposed on the basis of distributed base stations. By interconnecting BBUs within a certain range, the baseband processing capabilities of each BBU are shared to form a baseband resource pool that is allocated on demand and uniformly scheduled. Through reasonable planning, the base stations in the base station resource pool can not be in the maximum traffic state at the same time, and the carrier processing resources of the baseband resource pool can not be allocated according to the sum of all the maximum requirements, thereby reducing the operator's investment cost and network The overall energy consumption improves the overall utilization of carrier processing resources. Due to the rapid development of cloud computing technology, virtualization technology and virtual machine migration technology are gradually introduced into the base station resource pool. Combined with virtualization technology, the carrier processing resources in the base station resource pool can be abstracted into the form of virtual machines, and baseband pool processing resources are extracted as needed to form corresponding virtual base stations to process carrier baseband signals, which improves resource utilization. In addition, flexible allocation and unified scheduling of different carriers can be performed more conveniently with finer granularity. Combined with virtual machine migration technology, the virtual base station that processes carrier baseband signals can be migrated from one physical server to another physical server, thereby realizing carrier migration; in the case of insufficient carrier processing resources, carrier migration can be used to alleviate carrier processing resources In the case of insufficiency, improve the quality of communication services; through carrier migration, all carriers on a physical server are migrated to other physical servers, and maintenance operations such as maintenance or upgrade can be performed on the physical server, or it can be powered off to achieve energy saving purpose of emission reduction.

目前,针对虚拟机迁移的研究大都是面向传统互联网业务的。电信业务与传统互联网业务有较大的差异性,尤其是语音相关的电信业务,对可靠性和实时性的要求很高,是一种高QoS保证的业务。同时,载波基带信号具有接口速率高、数据带宽大的特性,导致虚拟基站内部的数据变化速度相当快,因此虚拟基站的内存读写非常快。所以目前的虚拟机迁移技术应用于载波迁移时,并不能提供很好的迁移性能,主要表现为停机迁移时间太长、总迁移时间太长和总传输数据量太大,甚至会出现载波迁移不收敛而失败的情况。At present, most research on virtual machine migration is oriented to traditional Internet services. Telecom services are quite different from traditional Internet services, especially voice-related telecommunication services, which have high requirements on reliability and real-time performance, and are services with high QoS guarantee. At the same time, the carrier baseband signal has the characteristics of high interface rate and large data bandwidth, which causes the data inside the virtual base station to change very quickly, so the memory read and write of the virtual base station is very fast. Therefore, when the current virtual machine migration technology is applied to carrier migration, it cannot provide good migration performance. Convergence fails.

发明内容Contents of the invention

本发明的目的在于提供一种基于内存页改写概率预测的载波迁移方法,旨在解决目前的虚拟机迁移技术应用于载波迁移时存在停机迁移时间太长、总迁移时间太长和总传输数据量太大的问题。The purpose of the present invention is to provide a carrier migration method based on memory page rewriting probability prediction, aiming to solve the problems of too long shutdown migration time, too long total migration time and the total amount of transmitted data when the current virtual machine migration technology is applied to carrier migration Too big a question.

本发明是这样实现的,一种基于内存页改写概率预测的载波迁移方法,所述基于内存页改写概率预测的载波迁移方法包括以下步骤:The present invention is achieved in this way, a carrier migration method based on memory page rewriting probability prediction, the carrier migration method based on memory page rewriting probability prediction includes the following steps:

步骤一,收到载波迁移信号,进入预迁移阶段,收集载波对应的虚拟基站中所有内存页的最近N次内存状态变化信息;Step 1, receiving the carrier migration signal, entering the pre-migration stage, and collecting the latest N memory state change information of all memory pages in the virtual base station corresponding to the carrier;

步骤二,进入迭代迁移阶段,首轮迭代,则更新所有内存页的最近N次内存状态变化信息,然后将虚拟基站的全部内存页发送到目的端,转入步骤五,不是首轮迭代,则更新所有内存页的最近N次内存状态变化信息,以及待传输内存页信息,转入步骤三;Step 2: Enter the iterative migration stage. In the first round of iteration, the latest N memory state change information of all memory pages is updated, and then all memory pages of the virtual base station are sent to the destination, and then go to step 5. If it is not the first round of iteration, then Update the latest N memory state change information of all memory pages, and the memory page information to be transmitted, and turn to step 3;

步骤三,预测所有待传输内存页的内存页改写概率;Step 3, predicting the memory page rewriting probability of all memory pages to be transmitted;

步骤四,将内存页改写概率超过改写概率门限值的待传输内存页放到停机迁移阶段进行传输,将内存页改写概率不超过改写概率门限值的待传输内存页放到本轮迭代进行传输;Step 4: Put the memory pages to be transmitted with the memory page rewrite probability exceeding the rewrite probability threshold value into the shutdown migration stage for transmission, and put the memory pages to be transmitted with the memory page rewrite probability not exceeding the rewrite probability threshold value into the current round of iterations transmission;

步骤五,判断是否满足停机迁移条件,不满足,转入步骤二,满足,进入停机迁移阶段,完成载波迁移。Step 5, judging whether the downtime relocation condition is met, if not, go to step 2, if satisfied, enter the downtime relocation stage, and complete the carrier relocation.

进一步,所述收集载波的虚拟基站中所有内存页的最近N次内存页状态变化信息具体包括:Further, the collection of the latest N memory page state change information of all memory pages in the virtual base station of the carrier specifically includes:

第一步,收到载波迁移信号,生成一个行数为N、列数为载波的虚拟基站内存页数M的内存页状态信息表state_table;In the first step, a carrier migration signal is received, and a memory page status information table state_table with the number of rows N and the number of columns of the virtual base station memory pages M is generated;

第二步,以内存页状态采集周期Tc统计被改写的内存页信息,从state_table的第一行开始,根据统计的被改写内存页信息,内存页h被改写,则将state_table中第一行、第h列的数置为1,内存页h未被改写,则将state_table中第一行、第h列的数置为0;再根据下一次统计的被改写内存页的信息,将所有内存页的变化状态信息存入state_table的第二行,依次进行,直到其第N行被存入虚拟基站中所有内存页的变化状态信息,内存页变化状态信息收集完毕。The second step is to use the memory page state collection cycle T c to count the rewritten memory page information. Starting from the first row of state_table, according to the statistical rewritten memory page information, the memory page h is rewritten, then the first row in the state_table , the number in column h is set to 1, and the memory page h has not been rewritten, then the number in the first row and column h in the state_table is set to 0; then according to the information of the rewritten memory page in the next statistics, all memory pages The change state information of the page is stored in the second row of state_table, and it is carried out sequentially until the Nth row is stored in the change state information of all memory pages in the virtual base station, and the change state information of the memory page is collected.

进一步,所述更新所有内存页的最近N次内存状态变化信息具体包括:Further, the update of the latest N memory state change information of all memory pages specifically includes:

第一步,用state_table的第2行的数据去更新替换第1行的数据,用state_table的第3行的数据去更新替换第2行的数据,依次类推,直到将其第N行数据更新替换第N-1行数据;The first step is to update and replace the data in row 1 with the data in row 2 of state_table, update and replace the data in row 2 with the data in row 3 of state_table, and so on until the data in row N is updated and replaced Row N-1 data;

第二步,是首轮迭代,则将state_table中第N行的所有数更新为1;不是首轮迭代,则统计上一轮迭代迭代迁移过程中被改写内存页的信息,然后更新state_table的第N行,内存页h被改写,则将state_table中第N行、第h列的数置为1,内存页h未被改写,则将state_table中第N行、第h列的数置为0。The second step is the first round of iteration, update all the numbers in the Nth row of state_table to 1; if it is not the first round of iteration, count the information of the rewritten memory page during the previous round of iterative migration, and then update the first row of state_table N lines, the memory page h is rewritten, then the number of the Nth row and the hth column in the state_table is set to 1, and the memory page h is not rewritten, then the number of the Nth row and the hth column of the state_table is set to 0.

进一步,所述更新待传输内存页信息,待传输内存页包括:Further, the update of the information of the memory page to be transmitted, the memory page to be transmitted includes:

(1)上一轮迭代迁移过程中被改写的内存页;(1) Memory pages rewritten during the previous round of iterative migration;

(2)放到停机迁移阶段进行传输的内存页。(2) Put the memory page for transmission in the downtime migration stage.

进一步,所述对所有待传输内存页进行内存页改写概率预测具体包括:Further, the memory page rewriting probability prediction for all memory pages to be transmitted specifically includes:

(1)根据待传输内存页i的最近N次内存状态变化信息,计算待传输内存页i的时间内存页改写概率Pit(1) Calculate the time memory page rewriting probability P it of the memory page i to be transmitted according to the latest N memory state change information of the memory page i to be transmitted;

(2)根据待传输内存页i的相邻内存页的最近一次内存状态变化信息,计算待传输内存页i的空间内存页改写概率Pis(2) According to the latest memory state change information of the adjacent memory page of the memory page i to be transmitted, calculate the space memory page rewriting probability P is of the memory page i to be transmitted;

(3)根据Pit和Pis,计算待传输内存页i的内存页改写概率Pi(3) According to P it and P is , calculate the memory page rewriting probability P i of the memory page i to be transmitted:

Pi=ωtPitsPisP i = ω t P it + ω s P is ;

其中ωt是时间内存页改写概率权重值,ωs是空间内存页改写概率权重值,ωst=1;Wherein ω t is the time memory page rewrite probability weight value, ω s is the space memory page rewrite probability weight value, ω st =1;

(4)遍历所有待传输内存页,计算出所有待传输内存页的内存页改写概率。(4) Traverse all memory pages to be transmitted, and calculate memory page rewriting probabilities of all memory pages to be transmitted.

进一步,所述根据待传输内存页i的最近N次内存状态变化信息,计算待传输内存页i的时间内存页改写概率Pit具体包括:Further, the calculation of the time memory page rewriting probability P it of the memory page i to be transmitted according to the latest N memory state change information of the memory page i to be transmitted specifically includes:

(1)从state_table中获取待传输内存页i的最近N次内存状态变化信息,构成待传输内存页i的内存状态变化信息向量Ai=(a1i,a2i,...,aNi)T,Ai等于state_table的第i列;(1) Obtain the latest N memory state change information of the memory page i to be transferred from the state_table, and form the memory state change information vector A i =(a 1i , a 2i ,...,a Ni ) of the memory page i to be transferred T , A i is equal to the i-th column of state_table;

(2)Ai≠(1,1,...,1)T 1×N且Ai≠(0,0,...,0)T 1×N,通过Ai计算不同预测步长的权重值,预测步长k的权重值为:(2) A i ≠(1,1,...,1) T 1×N and A i ≠(0,0,...,0) T 1×N , calculate the Weight value, the weight value of the prediction step size k is:

其中是待传输内存页i的内存状态变化信息向量的平均值,j为最大预测步长;in is the average value of the memory state change information vector of the memory page i to be transferred, j is the maximum prediction step size;

(3)将不同预测步长的权重值进行规范化,得到不同预测步长的权重系数,预测步长k的权重系数为:(3) Normalize the weight values of different prediction steps to obtain the weight coefficients of different prediction steps. The weight coefficient of the prediction step k is:

(4)Ai=(1,1,...,1)1×N或Ai=(0,0,...,0)1×N,则直接计算出不同预测步长的权重系数,预测步长k的权重系数为:(4) A i =(1,1,...,1) 1×N or A i =(0,0,...,0) 1×N , then directly calculate the weight coefficients of different prediction steps , the weight coefficient of the prediction step size k is:

(5)通过Ai计算不同预测步长的转移概率矩阵,预测步长k的转移概率矩阵为:(5) Calculate the transition probability matrix of different prediction steps through A i , and the transition probability matrix of prediction step k is:

其中m=0或1,n=0或1, in m=0 or 1, n=0 or 1,

(6)通过不同预测步长的权重系数、不同预测步长的转移概率矩阵和待传输内存页i的最近j次内存状态变化信息计算出时间的内存页状态预测向量Pitv(6) Calculate the temporal memory page state prediction vector P itv through the weight coefficients of different prediction steps, the transition probability matrix of different prediction steps and the latest j memory state change information of the memory page i to be transmitted:

(7)Pit=Pitv(2),Pitv(2)表示Pitv的第二个元素。(7) P it =P itv (2), P itv (2) represents the second element of P itv .

进一步,所述根据待传输内存页i的相邻内存页的最近一次内存状态变化信息,计算待传输内存页i的空间内存页改写概率Pis具体包括:Further, the calculation of the space memory page rewriting probability Pis of the memory page i to be transmitted according to the latest memory state change information of the adjacent memory page of the memory page i to be transmitted specifically includes:

(1)从state_table中获取待传输内存页i的相邻内存页i-2、相邻内存页i-1、相邻内存页i+1、相邻内存页i+2的最近一次内存状态变化信息aN(i-2)、aN(i-1)、aN(i+1)、aN(i+2),aN(i-2)等于state_table的第N行、第i-2列,aN(i-1)等于state_table的第N行、第i-1列,aN(i+1)等于state_table的第N行、第i+1列,aN(i+2)等于state_table的第N行、第i+2列;(1) Obtain the latest memory state change of the adjacent memory page i-2, adjacent memory page i-1, adjacent memory page i+1, and adjacent memory page i+2 of the memory page i to be transferred from the state_table Information a N(i-2) , a N(i-1) , a N(i+1) , a N(i+2) , a N(i-2) is equal to row N of state_table, row i- 2 columns, a N(i-1) is equal to row N and column i-1 of state_table, a N(i+1) is equal to row N and column i+1 of state_table, a N(i+2) Equal to row N and column i+2 of state_table;

(2)根据aN(i-2)、aN(i-1)、aN(i+1)、aN(i+2),计算出Pis:(2) According to a N(i-2) , a N(i-1) , a N(i+1) , a N(i+2) , calculate P is :

Pis=αi-2aN(i-2)i-1aN(i-1)i+1aN(i+1)i+2aN(i+2)P is =α i-2 a N(i-2)i-1 a N(i-1)i+1 a N(i+1)i+2 a N(i+2) ;

其中αi-2为内存页i-2的权重系数,αi-1为内存页i-1的权重系数、αi+1为内存页i+1的权重系数、αi+2为内存页i+2的权重系数,αi-1=αi+1,αi-2=αi+2,αi-1=2αi-2,αi-2i-1i+1i+2=1;Among them, α i-2 is the weight coefficient of memory page i-2, α i-1 is the weight coefficient of memory page i-1, α i+1 is the weight coefficient of memory page i+1, and α i+2 is the weight coefficient of memory page The weight coefficient of i+2, α i-1 =α i+1 , α i-2 =α i+2 , α i-1 =2α i-2 , α i-2i-1i+ 1i+2 = 1;

(3)对于待传输内存页i是边缘内存页的情况,Pis的计算参数进行如下处理:(3) For the situation that the memory page i to be transmitted is an edge memory page, the calculation parameters of P is are processed as follows:

当i=1的时候,aN(i-2)=0,aN(i-1)=0,αi-2=0,αi-1=0,αi+1=2αi+2,αi+1i+2=1;When i=1, a N(i-2) =0, a N(i-1) =0, α i-2 =0, α i-1 =0, α i+1 =2α i+2 , α i+1i+2 =1;

当i=2的时候,aN(i-2)=0,αi-2=0,αi-1=αi+1,αi+1=2αi+2,αi-1i+1i+2=1;When i=2, a N(i-2) =0, α i-2 =0, α i-1 =α i+1 , α i+1 =2α i+2 , α i-1i+1i+2 = 1;

当i=M-1的时候,aN(i+2)=0,αi+2=0,αi-1=αi+1,αi-1=2αi-2,αi-1i+1i+2=1;When i=M-1, a N(i+2) =0, α i+2 =0, α i-1 =α i+1 , α i-1 =2α i-2 , α i-1i+1i+2 = 1;

当i=M的时候,aN(i+2)=0,aN(i+1)=0,αi+2=0,αi+1=0,αi-1=2αi-2,αi-1i-2=1。When i=M, a N(i+2) =0, a N(i+1) =0, α i+2 =0, α i+1 =0, α i-1 =2α i-2 , α i-1i-2 =1.

进一步,所述停机迁移条件包括:Further, the shutdown migration conditions include:

(1)迭代迁移次数超过30次;(1) The number of iterative migrations exceeds 30;

(2)放到停机迁移阶段传输的内存页数和本轮迭代迁移过程中被改写的内存页数之和不超过50页。(2) The sum of the number of memory pages transferred during the shutdown migration phase and the number of memory pages rewritten during the current round of iterative migration does not exceed 50 pages.

进一步,所述进入停机迁移阶段,完成载波迁移具体包括:Further, the step of entering the downtime relocation stage and completing the carrier relocation specifically includes:

(1)关闭源虚拟基站;(1) close the source virtual base station;

(2)将最后一轮迭代迁移过程中被改写的内存页和放到停机阶段传输的内存页传送到目的虚拟基站,同时将CPU状态传送到目的虚拟基站;(2) Transfer the memory pages rewritten in the last round of iterative migration process and the memory pages transferred in the downtime phase to the destination virtual base station, and transfer the CPU status to the destination virtual base station at the same time;

(3)启动目的虚拟基站,载波迁移完成。(3) The destination virtual base station is started, and the carrier migration is completed.

本发明提供的基于内存页改写概率预测的载波迁移方法,优化了载波迁移过程中虚拟基站内存页的冗余迭代拷贝,相比传统预拷贝迭代的载波迁移方法,其最多能减少约90%的总迁移时间和传输数据量,最多能减少约80%的停机迁移时间,提高了载波迁移的迁移性能。The carrier migration method based on the memory page rewriting probability prediction provided by the present invention optimizes the redundant iterative copy of the memory page of the virtual base station during the carrier migration process, and can reduce the cost by at most about 90% compared with the traditional pre-copy iterative carrier migration method. The total migration time and the amount of transmitted data can reduce the downtime migration time by about 80% at most, and improve the migration performance of carrier migration.

附图说明Description of drawings

图1是本发明实施例提供的基于内存页改写概率预测的载波迁移方法流程图。FIG. 1 is a flowchart of a carrier migration method based on memory page rewrite probability prediction provided by an embodiment of the present invention.

图2是本发明实施例提供的时间内存页改写概率的计算流程图。FIG. 2 is a flow chart of calculating the rewriting probability of a temporal memory page provided by an embodiment of the present invention.

图3是本发明实施例提供的空间内存页改写概率的计算流程图。Fig. 3 is a flow chart of calculating the rewriting probability of a space memory page provided by an embodiment of the present invention.

图4是本发明实施例提供的基于内存页改写概率预测的载波迁移方法与传统预拷贝迭代载波迁移方法在不同用户业务数情况下载波迁移的总迁移时间示意图。Fig. 4 is a schematic diagram of the total migration time of the carrier migration method based on memory page rewriting probability prediction provided by the embodiment of the present invention and the traditional pre-copy iterative carrier migration method under different user service numbers.

图5是本发明实施例提供的基于内存页改写概率预测的载波迁移方法与传统预拷贝迭代载波迁移方法在不同用户业务数情况下载波迁移的停机迁移时间示意图。Fig. 5 is a schematic diagram of the downtime migration time of the carrier migration method based on memory page rewriting probability prediction provided by the embodiment of the present invention and the traditional pre-copy iterative carrier migration method under different user service numbers.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention more clear, the present invention will be further described in detail below in conjunction with the examples. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

下面结合附图对本发明的应用原理作详细的描述。The application principle of the present invention will be described in detail below in conjunction with the accompanying drawings.

如图1所示,本发明实施例的基于内存页改写概率预测的载波迁移方法包括以下步骤:As shown in Figure 1, the carrier migration method based on memory page rewriting probability prediction according to the embodiment of the present invention includes the following steps:

S101:收到载波迁移信号,进入预迁移阶段,收集载波对应的虚拟基站中所有内存页的最近N次内存状态变化信息;S101: Receive the carrier migration signal, enter the pre-migration stage, and collect the latest N memory state change information of all memory pages in the virtual base station corresponding to the carrier;

S102:进入迭代迁移阶段,如果是首轮迭代,则更新所有内存页的最近N次内存状态变化信息,然后将虚拟基站的全部内存页发送到目的端,转入步骤S105,如果不是首轮迭代,更新所有内存页的最近N次内存状态变化信息,以及待传输内存页信息,转入步骤S103;S102: Enter the iterative migration stage. If it is the first round of iteration, update the latest N memory state change information of all memory pages, and then send all the memory pages of the virtual base station to the destination, and go to step S105. If it is not the first round of iteration , update the latest N memory state change information of all memory pages, and the memory page information to be transmitted, and turn to step S103;

S103:预测所有待传输内存页的内存页改写概率;S103: Predict memory page rewriting probabilities of all memory pages to be transmitted;

S104:将内存页改写概率超过改写概率门限值的待传输内存页放到停机迁移阶段进行传输,将内存页改写概率不超过改写概率门限值的待传输内存页放到本轮迭代进行传输;S104: Put the memory pages to be transmitted with the memory page rewrite probability exceeding the rewrite probability threshold value in the shutdown migration stage for transmission, and put the memory pages to be transmitted with the memory page rewrite probability not exceeding the rewrite probability threshold value into the current round of iteration for transmission ;

S105:判断是否满足停机迁移条件,如果不满足,转入步骤S102,如果满足,进入停机迁移阶段,完成载波迁移。S105: Judging whether the shutdown migration condition is met, if not, proceed to step S102, if yes, enter the shutdown migration stage, and complete the carrier migration.

步骤S101中,收集载波的虚拟基站中所有内存页的最近N次内存页状态变化信息,具体按以下步骤执行:In step S101, the latest N memory page state change information of all memory pages in the virtual base station of the carrier is collected, and the specific steps are as follows:

(1)收到载波迁移信号,生成一个行数为N、列数为载波的虚拟基站内存页数M的内存页状态信息表state_table;(1) Receive the carrier migration signal, generate a memory page state information table state_table with the number of rows as N and the number of columns as the number of memory pages of the virtual base station memory of the carrier;

(2)以内存页状态采集周期Tc统计被改写的内存页信息,从state_table的第一行开始,根据统计的被改写内存页的信息,若内存页h被改写,则将state_table中第一行、第h列的数置为1,若内存页h未被改写,则将state_table中第一行、第h列的数置为0,然后再根据下一次统计的被改写内存页的信息,将所有内存页的变化状态信息存入state_table的第二行,依次进行,直到其第N行被存入虚拟基站中所有内存页的变化状态信息,内存页变化状态信息收集完毕;(2) Use the memory page state collection cycle T c to count the rewritten memory page information, starting from the first line of state_table, according to the statistics of the rewritten memory page information, if the memory page h is rewritten, the first row in the state_table The number of row and column h is set to 1. If the memory page h has not been rewritten, the number of the first row and column h in the state_table is set to 0, and then according to the information of the rewritten memory page in the next statistics, Store the change state information of all memory pages into the second row of state_table, and proceed sequentially until the Nth row is stored in the change state information of all memory pages in the virtual base station, and the memory page change state information is collected;

步骤S102中,更新所有内存页的最近N次内存状态变化信息,具体按以下步骤执行:In step S102, the latest N memory state change information of all memory pages is updated, specifically performed according to the following steps:

(1)用state_table的第2行的数据去更新替换第1行的数据,用state_table的第3行的数据去更新替换第2行的数据,依次类推,直到将其第N行数据更新替换第N-1行数据;(1) Use the data in row 2 of state_table to update and replace the data in row 1, use the data in row 3 of state_table to update and replace the data in row 2, and so on until the data in row N is updated and replaced N-1 rows of data;

(2)如果是首轮迭代,则将state_table中第N行的所有数更新为1,如果不是首轮迭代,则统计上一轮迭代迭代迁移过程中被改写内存页的信息,然后据此更新state_table的第N行,若内存页h被改写,则将state_table中第N行、第h列的数置为1,若内存页h未被改写,则将state_table中第N行、第h列的数置为0。(2) If it is the first round of iteration, update all the numbers in row N of state_table to 1. If it is not the first round of iteration, count the information of the rewritten memory page during the previous round of iterative migration, and then update accordingly In line N of state_table, if the memory page h is rewritten, set the number in line N and column h in state_table to 1; if the memory page h has not been rewritten, set the number in line N and column h in state_table The number is set to 0.

步骤S102中,更新待传输内存页信息,待传输内存页包括:In step S102, the information of the memory page to be transmitted is updated, and the memory page to be transmitted includes:

(1)上一轮迭代迁移过程中被改写的内存页;(1) Memory pages rewritten during the previous round of iterative migration;

(2)放到停机迁移阶段进行传输的内存页。(2) Put the memory page for transmission in the downtime migration stage.

步骤S103中,对所有待传输内存页进行内存页改写概率预测,具体按以下步骤进行:In step S103, memory page rewriting probability prediction is performed on all memory pages to be transmitted, specifically according to the following steps:

(1)根据待传输内存页i的最近N次内存状态变化信息,计算待传输内存页i的时间内存页改写概率Pit(1) Calculate the time memory page rewriting probability P it of the memory page i to be transmitted according to the latest N memory state change information of the memory page i to be transmitted;

(2)根据待传输内存页i的相邻内存页的最近一次内存状态变化信息,计算待传输内存页i的空间内存页改写概率Pis(2) According to the latest memory state change information of the adjacent memory page of the memory page i to be transmitted, calculate the space memory page rewriting probability P is of the memory page i to be transmitted;

(3)根据Pit和Pis,计算待传输内存页i的内存页改写概率Pi(3) According to P it and P is , calculate the memory page rewriting probability P i of the memory page i to be transmitted:

Pi=ωtPitsPisP i = ω t P it + ω s P is ;

其中ωt是时间内存页改写概率权重值,ωs是空间内存页改写概率权重值,ωst=1;Wherein ω t is the time memory page rewrite probability weight value, ω s is the space memory page rewrite probability weight value, ω st =1;

(4)遍历所有待传输内存页,计算出所有待传输内存页的内存页改写概率。(4) Traverse all memory pages to be transmitted, and calculate memory page rewriting probabilities of all memory pages to be transmitted.

如图2所示,根据待传输内存页i的最近N次内存状态变化信息,计算待传输内存页i的时间内存页改写概率Pit,具体按以下步骤进行:As shown in Figure 2, according to the latest N memory state change information of the memory page i to be transmitted, the time memory page rewriting probability P it of the memory page i to be transmitted is calculated, and the specific steps are as follows:

(1)从state_table中获取待传输内存页i的最近N次内存状态变化信息,构成待传输内存页i的内存状态变化信息向量Ai=(a1i,a2i,...,aNi)T,Ai等于state_table的第i列;(1) Obtain the latest N memory state change information of the memory page i to be transferred from the state_table, and form the memory state change information vector A i =(a 1i , a 2i ,...,a Ni ) of the memory page i to be transferred T , A i is equal to the i-th column of state_table;

(2)若Ai≠(1,1,...,1)T 1×N且Ai≠(0,0,...,0)T 1×N,通过Ai计算不同预测步长的权重值,预测步长k的权重值为:(2) If A i ≠(1,1,...,1) T 1×N and A i ≠(0,0,...,0) T 1×N , calculate different prediction steps by A i The weight value of , the weight value of the prediction step size k is:

其中是待传输内存页i的内存状态变化信息向量的平均值,j为最大预测步长;in is the average value of the memory state change information vector of the memory page i to be transferred, j is the maximum prediction step size;

(3)将不同预测步长的权重值进行规范化,得到不同预测步长的权重系数,预测步长k的权重系数为:(3) Normalize the weight values of different prediction steps to obtain the weight coefficients of different prediction steps. The weight coefficient of the prediction step k is:

(4)若Ai=(1,1,...,1)1×N或Ai=(0,0,...,0)1×N,则直接计算出不同预测步长的权重系数,预测步长k的权重系数为:(4) If A i =(1,1,...,1) 1×N or A i =(0,0,...,0) 1×N , then directly calculate the weights of different prediction steps Coefficient, the weight coefficient of the prediction step size k is:

(5)通过Ai计算不同预测步长的转移概率矩阵,预测步长k的转移概率矩阵为:(5) Calculate the transition probability matrix of different prediction steps through A i , and the transition probability matrix of prediction step k is:

其中m=0或1,n=0或1, in m=0 or 1, n=0 or 1,

(6)通过不同预测步长的权重系数、不同预测步长的转移概率矩阵和待传输内存页i的最近j次内存状态变化信息计算出时间的内存页状态预测向量Pitv(6) Calculate the temporal memory page state prediction vector P itv through the weight coefficients of different prediction steps, the transition probability matrix of different prediction steps and the latest j memory state change information of the memory page i to be transmitted:

(7)Pit=Pitv(2),Pitv(2)表示Pitv的第二个元素。(7) P it =P itv (2), P itv (2) represents the second element of P itv .

如图3所示,根据待传输内存页i的相邻内存页的最近一次内存状态变化信息,计算待传输内存页i的空间内存页改写概率Pis,具体按以下步骤进行:As shown in Figure 3, according to the latest memory state change information of the adjacent memory pages of the memory page i to be transmitted, the space memory page rewriting probability P is of the memory page i to be transmitted is calculated, and the specific steps are as follows:

(1)从state_table中获取待传输内存页i的相邻内存页i-2、相邻内存页i-1、相邻内存页i+1、相邻内存页i+2的最近一次内存状态变化信息aN(i-2)、aN(i-1)、aN(i+1)、aN(i+2),aN(i-2)等于state_table的第N行、第i-2列,aN(i-1)等于state_table的第N行、第i-1列,aN(i+1)等于state_table的第N行、第i+1列,aN(i+2)等于state_table的第N行、第i+2列;(1) Obtain the latest memory state change of the adjacent memory page i-2, adjacent memory page i-1, adjacent memory page i+1, and adjacent memory page i+2 of the memory page i to be transferred from the state_table Information a N(i-2) , a N(i-1) , a N(i+1) , a N(i+2) , a N(i-2) is equal to row N of state_table, row i- 2 columns, a N(i-1) is equal to row N and column i-1 of state_table, a N(i+1) is equal to row N and column i+1 of state_table, a N(i+2) Equal to row N and column i+2 of state_table;

(2)根据aN(i-2)、aN(i-1)、aN(i+1)、aN(i+2),计算出Pis:(2) According to a N(i-2) , a N(i-1) , a N(i+1) , a N(i+2) , calculate P is :

Pis=αi-2aN(i-2)i-1aN(i-1)i+1aN(i+1)i+2aN(i+2)P is =α i-2 a N(i-2)i-1 a N(i-1)i+1 a N(i+1)i+2 a N(i+2) ;

其中αi-2为内存页i-2的权重系数,αi-1为内存页i-1的权重系数、αi+1为内存页i+1的权重系数、αi+2为内存页i+2的权重系数,αi-1=αi+1,αi-2=αi+2,αi-1=2αi-2,αi-2i-1i+1i+2=1;Among them, α i-2 is the weight coefficient of memory page i-2, α i-1 is the weight coefficient of memory page i-1, α i+1 is the weight coefficient of memory page i+1, and α i+2 is the weight coefficient of memory page The weight coefficient of i+2, α i-1 =α i+1 , α i-2 =α i+2 , α i-1 =2α i-2 , α i-2i-1i+ 1i+2 = 1;

(3)对于待传输内存页i是边缘内存页的情况,Pis的计算参数进行如下处理:(3) For the situation that the memory page i to be transmitted is an edge memory page, the calculation parameters of P is are processed as follows:

当i=1的时候,aN(i-2)=0,aN(i-1)=0,αi-2=0,αi-1=0,αi+1=2αi+2,αi+1i+2=1;When i=1, a N(i-2) =0, a N(i-1) =0, α i-2 =0, α i-1 =0, α i+1 =2α i+2 , α i+1i+2 =1;

当i=2的时候,aN(i-2)=0,αi-2=0,αi-1=αi+1,αi+1=2αi+2,αi-1i+1i+2=1;When i=2, a N(i-2) =0, α i-2 =0, α i-1 =α i+1 , α i+1 =2α i+2 , α i-1i+1i+2 = 1;

当i=M-1的时候,aN(i+2)=0,αi+2=0,αi-1=αi+1,αi-1=2αi-2,αi-1i+1i+2=1;When i=M-1, a N(i+2) =0, α i+2 =0, α i-1 =α i+1 , α i-1 =2α i-2 , α i-1i+1i+2 = 1;

当i=M的时候,aN(i+2)=0,aN(i+1)=0,αi+2=0,αi+1=0,αi-1=2αi-2,αi-1i-2=1。When i=M, a N(i+2) =0, a N(i+1) =0, α i+2 =0, α i+1 =0, α i-1 =2α i-2 , α i-1i-2 =1.

步骤S105中的停机迁移条件,具体为:满足下列的其中一项:The shutdown migration condition in step S105 is specifically: one of the following is met:

(1)迭代迁移次数超过30次。(1) The number of iterative migrations exceeds 30 times.

(2)放到停机迁移阶段传输的内存页数和本轮迭代迁移过程中被改写的内存页数之和不超过50页。(2) The sum of the number of memory pages transferred during the shutdown migration phase and the number of memory pages rewritten during the current round of iterative migration does not exceed 50 pages.

进入停机迁移阶段,完成载波迁移,具体按以下步骤执行:Enter the downtime migration stage and complete the carrier migration. Specifically, follow the steps below:

(1)关闭源虚拟基站。(1) Close the source virtual base station.

(2)将最后一轮迭代迁移过程中被改写的内存页和放到停机阶段传输的内存页传送到目的虚拟基站,同时将CPU状态传送到目的虚拟基站。(2) Transfer the rewritten memory pages in the last round of iterative migration process and the memory pages transferred in the downtime phase to the destination virtual base station, and transfer the CPU status to the destination virtual base station at the same time.

(3)启动目的虚拟基站,载波迁移完成。(3) The destination virtual base station is started, and the carrier migration is completed.

下面结合仿真对本发明的应用效果作详细的描述。The application effect of the present invention will be described in detail below in conjunction with simulation.

为了测试本发明的迁移性能,参数设置如下:载波的虚拟基站内存大小为2048MB;迁移带宽为1000Mb/s;采集周期为2s;改写概率门限值为0.7;N=20;最大预测步长为4;时间内存页改写概率权重值为0.5;空间内存页改写概率权重值为0.5。选用传统预拷贝迭代的载波迁移方法作为对比方法,进行30次蒙特卡洛实验仿真,得到如图4所示的载波迁移的总迁移时间和如图5所示的载波迁移的停机迁移时间。In order to test the migration performance of the present invention, the parameters are set as follows: the virtual base station memory size of the carrier is 2048MB; the migration bandwidth is 1000Mb/s; the acquisition cycle is 2s; the rewriting probability threshold is 0.7; N=20; the maximum prediction step size is 4. The time memory page rewrite probability weight value is 0.5; the space memory page rewrite probability weight value is 0.5. The traditional pre-copy and iterative carrier migration method was selected as a comparison method, and 30 Monte Carlo experiment simulations were performed to obtain the total migration time of carrier migration as shown in Figure 4 and the downtime migration time of carrier migration as shown in Figure 5.

由图4和图5可知,本发明最多能减少约90%的总迁移时间和传输数据量,最多能减少约80%的停机迁移时间,提高了载波迁移的迁移性能。It can be seen from FIG. 4 and FIG. 5 that the present invention can reduce the total migration time and transmission data volume by about 90% at most, reduce the downtime migration time by about 80% at most, and improve the migration performance of carrier migration.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (1)

1.一种基于内存页改写概率预测的载波迁移方法,其特征在于,所述基于内存页改写概率预测的载波迁移方法包括以下步骤:1. A carrier migration method based on memory page rewriting probability prediction, characterized in that, the carrier migration method based on memory page rewriting probability prediction comprises the following steps: 步骤一,收到载波迁移信号,进入预迁移阶段,收集载波对应的虚拟基站中所有内存页的最近N次内存状态变化信息;Step 1, receiving the carrier migration signal, entering the pre-migration stage, and collecting the latest N memory state change information of all memory pages in the virtual base station corresponding to the carrier; 步骤二,进入迭代迁移阶段,如果是首轮迭代,则更新所有内存页的最近N次内存状态变化信息,然后将虚拟基站的全部内存页发送到目的端,转入步骤五,如果不是首轮迭代,更新所有内存页的最近N次内存状态变化信息,以及待传输内存页信息,转入步骤三;Step 2: Enter the iterative migration stage. If it is the first round of iteration, update the latest N memory state change information of all memory pages, and then send all the memory pages of the virtual base station to the destination, and go to step 5. If it is not the first round Iterate, update the latest N memory state change information of all memory pages, and the memory page information to be transmitted, and turn to step 3; 步骤三,预测所有待传输内存页的内存页改写概率;Step 3, predicting the memory page rewriting probability of all memory pages to be transmitted; 步骤四,将内存页改写概率超过改写概率门限值的待传输内存页放到停机迁移阶段进行传输,将内存页改写概率不超过改写概率门限值的待传输内存页放到本轮迭代进行传输;Step 4: Put the memory pages to be transmitted with the memory page rewrite probability exceeding the rewrite probability threshold value into the shutdown migration stage for transmission, and put the memory pages to be transmitted with the memory page rewrite probability not exceeding the rewrite probability threshold value into the current round of iterations transmission; 步骤五,判断是否满足停机迁移条件,不满足,转入步骤二,满足,进入停机迁移阶段,完成载波迁移;Step 5, judge whether the downtime migration condition is met, if not, go to step 2, if satisfied, enter the downtime migration stage, and complete the carrier migration; 对所有待传输内存页进行内存页改写概率预测具体包括以下步骤:Predicting the memory page rewriting probability for all memory pages to be transferred specifically includes the following steps: 第一步,根据待传输内存页i的最近N次内存状态变化信息,计算待传输内存页i的时间内存页改写概率PitThe first step is to calculate the time memory page rewriting probability P it of the memory page i to be transferred according to the latest N memory state change information of the memory page i to be transferred; 第二步,根据待传输内存页i的相邻内存页的最近一次内存状态变化信息,计算待传输内存页i的空间内存页改写概率PisThe second step is to calculate the space memory page rewriting probability P is of the memory page i to be transmitted according to the latest memory state change information of the adjacent memory page of the memory page i to be transmitted; 第三步,根据Pit和Pis,计算待传输内存页i的内存页改写概率PiThe third step is to calculate the memory page rewriting probability P i of the memory page i to be transferred according to P it and P is : Pi=ωtPitsPisP i = ω t P it + ω s P is ; 其中ωt是时间内存页改写概率权重值,ωs是空间内存页改写概率权重值,ωst=1;Wherein ω t is the time memory page rewrite probability weight value, ω s is the space memory page rewrite probability weight value, ω st =1; 第四步,遍历所有待传输内存页,计算出所有待传输内存页的内存页改写概率;The fourth step is to traverse all memory pages to be transmitted, and calculate the memory page rewriting probability of all memory pages to be transmitted; 所述第一步具体按以下步骤进行:The first step is specifically carried out in the following steps: (1)从内存页状态信息表state_table中获取待传输内存页i的最近N次内存状态变化信息,构成待传输内存页i的内存状态变化信息向量Ai=(a1i,a2i,...,aNi)T,Ai等于state_table的第i列;(1) Obtain the latest N memory state change information of the memory page i to be transmitted from the memory page state information table state_table, and form the memory state change information vector A i of the memory page i to be transmitted = (a 1i , a 2i , .. ., a Ni ) T , A i is equal to the ith column of state_table; (2)若Ai≠(1,1,...,1)T 1×N且Ai≠(0,0,...,0)T 1×N,通过Ai计算不同预测步长的权重值,预测步长k的权重值为:(2) If A i ≠(1, 1,...,1) T 1×N and A i ≠(0, 0,...,0) T 1×N , calculate different prediction steps by A i The weight value of , the weight value of the prediction step size k is: 其中是待传输内存页i的内存状态变化信息向量的平均值,j为最大预测步长;in is the average value of the memory state change information vector of the memory page i to be transferred, j is the maximum prediction step size; (3)将不同预测步长的权重值进行规范化,得到不同预测步长的权重系数,预测步长k的权重系数为:(3) Normalize the weight values of different prediction steps to obtain the weight coefficients of different prediction steps. The weight coefficient of the prediction step k is: (4)若Ai=(1,1,...,1)1×N或Ai=(0,0,...,0)1×N,则直接计算出不同预测步长的权重系数,预测步长k的权重系数为:(4) If A i = (1, 1, ..., 1) 1×N or A i = (0, 0, ..., 0) 1×N , then directly calculate the weights of different prediction steps Coefficient, the weight coefficient of the prediction step size k is: (5)通过Ai计算不同预测步长的转移概率矩阵,预测步长k的转移概率矩阵为:(5) Calculate the transition probability matrix of different prediction steps through A i , and the transition probability matrix of prediction step k is: 其中m=0或1,n=0或1, 等于Ai中aji是m且a(j+k)i是n的次数,1≤j≤N-k;in m=0 or 1, n=0 or 1, Equal to the number of times a ji is m and a (j+k)i is n in A i , 1≤j≤Nk; (6)通过不同预测步长的权重系数、不同预测步长的转移概率矩阵和待传输内存页i的最近j次内存状态变化信息计算出时间的内存页状态预测向量Pitv(6) Calculate the temporal memory page state prediction vector P itv through the weight coefficients of different prediction steps, the transition probability matrix of different prediction steps and the latest j memory state change information of the memory page i to be transmitted: (7)Pit=Pitv(2),Pitv(2)表示Pitv的第二个元素;(7) P it =P itv (2), P itv (2) represents the second element of P itv ; 所述根据待传输内存页i的相邻内存页的最近一次内存状态变化信息,计算待传输内存页i的空间内存页改写概率Pis,具体按以下步骤进行:According to the latest memory state change information of the adjacent memory page of the memory page i to be transmitted, the space memory page rewriting probability Pis of the memory page i to be transmitted is calculated, specifically according to the following steps: (1)从state_table中获取待传输内存页i的相邻内存页i-2、相邻内存页i-1、相邻内存页i+1、相邻内存页i+2的最近一次内存状态变化信息aN(i-2)、aN(i-1)、aN(i+1)、aN(i+2),aN(i-2)等于state_table的第N行、第i-2列,aN(i-1)等于state_table的第N行、第i-1列,aN(i+1)等于state_table的第N行、第i+1列,aN(i+2)等于state_table的第N行、第i+2列;(1) Obtain the latest memory state change of the adjacent memory page i-2, adjacent memory page i-1, adjacent memory page i+1, and adjacent memory page i+2 of the memory page i to be transferred from the state_table Information a N(i-2) , a N(i-1) , a N(i+1) , a N(i+2) , a N(i-2) is equal to row N of state_table, row i- 2 columns, a N(i-1) is equal to row N and column i-1 of state_table, a N(i+1) is equal to row N and column i+1 of state_table, a N(i+2) Equal to row N and column i+2 of state_table; (2)根据aN(i-2)、aN(i-1)、aN(i+1)、aN(i+2),计算出Pis(2) According to a N(i-2) , a N(i-1) , a N(i+1) , a N(i+2) , calculate P is : Pis=αi-2aN(i-2)i-1aN(i-1)i+1aN(i+1)i+2aN(i+2)P is =α i-2 a N(i-2)i-1 a N(i-1)i+1 a N(i+1)i+2 a N(i+2) ; 其中αi-2为内存页i-2的权重系数,αi-1为内存页i-1的权重系数、αi+1为内存页i+1的权重系数、αi+2为内存页i+2的权重系数,αi-1=αi+1,αi-2=αi+2,αi-1=2αi-2,αi-2i-1i+1i+2=1;Among them, α i-2 is the weight coefficient of memory page i-2, α i-1 is the weight coefficient of memory page i-1, α i+1 is the weight coefficient of memory page i+1, and α i+2 is the weight coefficient of memory page The weight coefficient of i+2, α i-1 =α i+1 , α i-2 =α i+2 , α i-1 =2α i-2 , α i-2i-1i+ 1i+2 = 1; (3)对于待传输内存页i是边缘内存页的情况,Pis的计算参数进行如下处理:M为载波的虚拟基站内存页数;(3) For the situation that the memory page i to be transmitted is an edge memory page, the calculation parameters of Pis are processed as follows: M is the number of virtual base station memory pages of the carrier; 当i=1时候,aN(i-2)=0,aN(i-1)=0,αi-2=0,αi-1=0,αi+1=2αi+2,αi+1i+2=1;When i=1, a N(i-2) =0, a N(i-1) =0, α i-2 =0, α i-1 =0, α i+1 =2α i+2 , α i+1i+2 = 1; 当i=2时候,aN(i-2)=0,αi-2=0,αi-1=αi+1,αi+1=2αi+2,αi-1i+1i+2=1;When i=2, a N(i-2) =0, α i-2 =0, α i-1 =α i+1 , α i+1 =2α i+2 , α i-1i +1i+2 = 1; 当i=M-1时候,aN(i+2)=0,αi+2=0,αi-1=αi+1,αi-1=2αi-2,αi-1i+1i+2=1;When i=M-1, a N(i+2) =0, α i+2 =0, α i-1 =α i+1 , α i-1 =2α i-2 , α i-1 + α i+1i+2 = 1; 当i=M时候,aN(i+2)=0,aN(i+1)=0,αi+2=0,αi+1=0,αi-1=2αi2,αi-1i-2=1。When i=M, a N(i+2) =0, a N(i+1) =0, α i+2 =0, α i+1 =0, α i-1 =2α i2 , α i -1i-2 =1.
CN201610403919.4A 2016-06-08 2016-06-08 A Carrier Migration Method Based on Memory Page Rewrite Probability Prediction Active CN106101211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610403919.4A CN106101211B (en) 2016-06-08 2016-06-08 A Carrier Migration Method Based on Memory Page Rewrite Probability Prediction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610403919.4A CN106101211B (en) 2016-06-08 2016-06-08 A Carrier Migration Method Based on Memory Page Rewrite Probability Prediction

Publications (2)

Publication Number Publication Date
CN106101211A CN106101211A (en) 2016-11-09
CN106101211B true CN106101211B (en) 2019-09-06

Family

ID=57228223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610403919.4A Active CN106101211B (en) 2016-06-08 2016-06-08 A Carrier Migration Method Based on Memory Page Rewrite Probability Prediction

Country Status (1)

Country Link
CN (1) CN106101211B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107248928B (en) * 2017-05-25 2020-03-03 西安电子科技大学 Multi-objective optimization carrier migration objective baseband pool selection method based on conflict equalization
CN110109614B (en) * 2019-03-22 2022-02-18 浙江工商大学 Probability-based data migration method for PRAM/DRAM (random access memory/dynamic random access memory)
CN110990133B (en) * 2019-11-15 2022-11-04 杭州未名信科科技有限公司 Edge computing service migration method and device, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365704A (en) * 2012-03-26 2013-10-23 中国移动通信集团公司 Memory pre-copying method in virtual machine migration, device executing memory pre-copying method and system
CN103955399A (en) * 2014-04-30 2014-07-30 华为技术有限公司 Migrating method and device for virtual machine, as well as physical host
CN104268003A (en) * 2014-09-30 2015-01-07 南京理工大学 Memory state migration method applicable to dynamic migration of virtual machine

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7484208B1 (en) * 2002-12-12 2009-01-27 Michael Nelson Virtual machine migration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365704A (en) * 2012-03-26 2013-10-23 中国移动通信集团公司 Memory pre-copying method in virtual machine migration, device executing memory pre-copying method and system
CN103955399A (en) * 2014-04-30 2014-07-30 华为技术有限公司 Migrating method and device for virtual machine, as well as physical host
CN104268003A (en) * 2014-09-30 2015-01-07 南京理工大学 Memory state migration method applicable to dynamic migration of virtual machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于预拷贝的虚拟机动态内存迁移机制改进;孙国飞 等;《计算机工程》;20110731;第37卷(第13期);全文

Also Published As

Publication number Publication date
CN106101211A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN110941667B (en) Method and system for calculating and unloading in mobile edge calculation network
Foukas et al. Concordia: Teaching the 5G vRAN to share compute
CN110113195B (en) Method for joint unloading judgment and resource allocation in mobile edge computing system
CN110928654B (en) Distributed online task unloading scheduling method in edge computing system
CN109905888B (en) Jointly optimized migration decision and resource allocation method in mobile edge computing
CN108304256B (en) A low-overhead task scheduling method and device in edge computing
CN110247793A (en) A kind of application department arranging method in mobile edge cloud
CN106101211B (en) A Carrier Migration Method Based on Memory Page Rewrite Probability Prediction
CN104619029A (en) Method and device for allocating baseband pool resources under integrated cellular network architecture
CN106095529B (en) A carrier migration method under C-RAN architecture
CN110191489B (en) Resource allocation method and device based on reinforcement learning in ultra-dense network
Lee et al. Online optimization for low-latency computational caching in fog networks
CN103945549B (en) Baseband processing resource allocation system under C-RAN architecture
CN109005211A (en) Thin cloud deployment and scheduling user task method under a kind of wireless MAN environment
CN115278779A (en) Dynamic placement method of VR service module based on rendering perception in MEC network
CN112994911B (en) Computing Offloading Method, Device, and Computer-Readable Storage Medium
CN103501509B (en) A kind of method and device equalizing radio network controller load
CN109818788B (en) Secondary-mode optimization-based calculation resource allocation method in edge cache C-RAN
CN106874108A (en) Thin cloud is minimized in mobile cloud computing use number technology
US9917789B2 (en) Computing element allocation in data receiving link
CN116384697A (en) A pipe production scheduling method, system and storage medium based on simulated annealing algorithm
CN110689175A (en) Energy consumption optimization method of distributed green cloud data center in chaotic multiverse
CN105517176A (en) Method for dynamic scheduling of resources of virtualized base station
CN114880038B (en) Mobile edge computing system resource optimization configuration method
CN107248928B (en) Multi-objective optimization carrier migration objective baseband pool selection method based on conflict equalization

Legal Events

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