CN105812461A - Mobile cloud environment context awareness computing migration method - Google Patents

Mobile cloud environment context awareness computing migration method Download PDF

Info

Publication number
CN105812461A
CN105812461A CN201610133601.9A CN201610133601A CN105812461A CN 105812461 A CN105812461 A CN 105812461A CN 201610133601 A CN201610133601 A CN 201610133601A CN 105812461 A CN105812461 A CN 105812461A
Authority
CN
China
Prior art keywords
service
resource
task
network
cloud resource
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.)
Granted
Application number
CN201610133601.9A
Other languages
Chinese (zh)
Other versions
CN105812461B (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.)
Fuzhou University
Original Assignee
Fuzhou 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 Fuzhou University filed Critical Fuzhou University
Priority to CN201610133601.9A priority Critical patent/CN105812461B/en
Publication of CN105812461A publication Critical patent/CN105812461A/en
Application granted granted Critical
Publication of CN105812461B publication Critical patent/CN105812461B/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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a mobile cloud environment context awareness computing migration method. The method includes the following steps that: a design pattern supporting computing dynamic migration in an application is provided; an evaluation model is put forward, so that optimal cloud resources can be automatically selected for computing migration based on the context of a mobile device; and a framework for supporting the above design model and the evaluation model is realized. The method of the invention can be flexibly applied to a complex and changeable mobile cloud environment. Compared with a traditional migration method, the method of the invention can greatly improve the performance of the mobile device and user experience and enhance the endurance of the mobile device.

Description

A kind of mobile cloud environment context aware computation migration method
Technical field
The present invention relates to mobile field of cloud calculation, particularly a kind of mobile cloud environment context aware computation migration method.
Background technology
Along with popularizing of intelligent mobile handheld device, emerge numerous abundant in content application so that performance and the energy consumption problem of mobile equipment become increasingly conspicuous.Computation migration becomes currently a popular solution, and it passes through " calculating " task of Mobile solution from terminal transfer to Cloud Server, thus alleviating terminal unit computation burden, reducing the electrical source consumption of terminal unit simultaneously and promoting its flying power.Traditional moving method great majority adopt the server or cloud specified in advance.But, these traditional methods can not be flexibly applied to mobile cloud environment complicated and changeable, and main cause has following two aspects:
On the one hand, along with the movement of equipment, its context environmental (such as position, network condition) changes constantly.Such as, local at some, mobile equipment can use free WIFI to connect;And local at other, it can only use 3G connection to replace.With regard to speed and energy consumption, the performance of each connection is likely to difference.
On the other hand, along with increasing of cloud, mist, intelligent terminal etc., there is a lot of optional cloud resource, such as public cloud computing service, neighbouring cloudlet.At different conditions, it is necessary to select different cloud resources to migrate.Such as, when network environment is poor, we can consider cloudlet compute-intensive applications being moved to surrounding, postpones by reducing, thus improving performance and the Consumer's Experience of mobile equipment.
Summary of the invention
In view of this, the purpose of the present invention is to propose to a kind of mobile cloud environment context aware computation migration method, context environmental and available cloud resource based on current mobile device, it is possible to by a kind of cost-effective in the way of be dynamically selected the best cloud resource for migrating.
The core concept of the present invention is, based on context environmental and the available cloud resource of mobile equipment, selects the cloud resource of the best dynamically at runtime, and the calculating task code dynamic migration migrated will be needed to run to this resource.The present invention is made up of three parts: a kind of design pattern, an assessment models, and a kind of context aware computation migration framework.First, it is proposed that a kind of design pattern supporting to calculate dynamic migration in application so that all parts in application can be on-demand in Local or Remote interoperability.Wherein, calculate task code can dynamically be migrated and dispose.Secondly, it is proposed that an assessment models, according to the context environmental of mobile equipment and available cloud resource, the resource automatically selecting the best migrates.In order to improve the availability of migration service, we have introduced service pool concept, and each service pool has been polymerized local service, optimal service and the most frequent available service.In client, it would be desirable to data such as monitoring in real time and collection computation task, mobile device context environment, and cloud Resource Calculation abilities, and respectively it is modeled.According to model information and runtime data, we select optimal service and the most frequent available service at proposed decision making algorithm with regard to dynamic.Finally, it is achieved that a kind of context aware computation migration framework is for supporting above-mentioned design pattern and assessment models.
The present invention adopts below scheme to realize: a kind of mobile cloud environment context aware computation migration method, specifically includes following steps;
Step S1: propose a kind of design pattern supporting to calculate dynamic migration in application so that all parts in application can be on-demand in Local or Remote interoperability;
Step S2: propose an assessment models, according to the context environmental of mobile equipment and available cloud resource, the resource automatically selecting the best migrates;
Step S3: propose a kind of context aware computation migration framework for supporting design pattern and the step S2 assessment models of step S1.
Further, the design pattern in described step S1 includes programming model, deployment process and servicing operating mode;
As it is shown in figure 1, described programming model includes a primary module and a service registry storehouse;Described primary module defines the code that can not be migrated, described service registry storehouse is registered all services that can migrate;
Described deployment process comprises the following steps: step S11: mobile node finds target cloud resource, and described target cloud resource is carried out authentication;Step S12: upon successful authentication, mobile node sends all information relevant to current service deployment to described target cloud resource;Step S13: described target cloud resource receives request, and starts to check the deployment whether current environment can support this service, if it can, and required service be absent from, enter step S14, otherwise, enter step S15;Step S14: described target cloud resource obtains corresponding service document from mobile node and disposes, and service description file is returned to mobile node;Step S15: described target cloud resource returns the information of " service exists " or " can not dispose " to mobile node;Fig. 2 describes the whole workflow of mechanism.
As it is shown on figure 3, described servicing operating mode provides a kind of object construction supporting to calculate on-demand long-range execution in application, it is allowed to primary module can effectively call other service regardless of currently they operate in same VM or at different resource nodes.This structure includes three core elements: local adapter, long-range adapter, service pool;
Described service pool is single Virtual Service, but has been polymerized the identical candidate service being deployed in different cloud resource of multiple function, and the quality of described candidate service is different from;When receiving call request, preferentially top-quality service can be selected from service pool to call;
The position that the described local adapter primary responsibility identification service of being called is current, and forward the method to call;When primary module calls the method for Service1, first local adapter finds the service pool of correspondence, and obtains the description file of service best in quality in service pool.From service description file, it can recognize that the position that Service1 is current.If Service1 is at local runtime, then local adapter can call by direct retransmission method so that need not through network stack when primary module calls Service1.If Service1 is in long-range execution, local adapter obtains the url of service from service description file, and forwards the method to call to long-range adapter.
Described HTTP request, when receiving HTTP request, can be resolved by described long-range adapter, obtains Service name, method name and parameter information;And invocation target method;After goal approach has performed, corresponding result can be transferred back to client, merges with former application.In whole process, if the position change of called service, such as having transferred to remote node from this locality, or transferred to another node, caller from a certain remote node, namely primary module is not aware that the change of called service position.
Further, the described code that can not be migrated includes following three classes: realize relevant to using user interface;Employ I/O equipment;Employ arbitrary external module.
Specifically, when exploitation application, programming personnel, it is first necessary to the method in application is classified, is divided into anchored and movable two class.The method of Anchored type must be stayed in primary module, can only perform on the mobile apparatus;Mainly include following a few class: 1) realize relevant to using user interface;2) I/O equipment is employed, accelerometer on such as reading equipment, GPS etc.;3) employ arbitrary external module, such as use network to connect and perform e-commerce transaction.These methods have used some resources that can only could obtain on the mobile apparatus.Performing if these methods are transferred in cloud resource, they can cause execution mistake because can not find required resource.The method that additive method outside these methods is all classified as movable type automatically, namely they both can perform can also perform in cloud resource on the mobile apparatus.The method of movable type must be developed to service, and each service encapsulates independent applied function module;And they are required in service registry storehouse to register.Each service in service registry storehouse has the service pool of correspondence, the service that in this service pool, one group of function of dynamic aggregation is identical.At first, only one of which service in service pool, namely local service.When application runs, primary module can by " Service name. method name (parameter information) " form calls service.
Further, described step S2 specifically includes following steps:
Step S21: respectively computation task, mobile device context environment and cloud Resource Calculation ability are modeled, obtain task-function model, network-resource model, task-resource model;Perform when a task is migrated in long-distance cloud resource, total time TtotalMainly it is made up of two parts: Ttotal=Tserver+Ttransfer, wherein, TseverFor server execution time, TtransferFor network latency;
Step S22: structure service pool: according to device context environment and available cloud resource, it is proposed to decision making algorithm dynamically selects optimal service and the most frequent available service;Then optimal service, the most frequent available service and local service are dynamically aggregated into a service pool, when optimal service and the most frequent available service are same service, and only two services in service pool;Meanwhile, service pool can define according to service quality and call order;When service is called, can preferentially call top-quality service in service pool;Described service quality is the execution time;
Step S23: collect model information, including data monitoring and information;
Wherein said data monitoring is in order to monitor the execution of application and current environment in real time;Monitored data include: the title of current network, resource information available under current network, under current network, the transfer rate of all available resources and round-trip delay, current task information, current task move to the total execution time on different resource;
Described information includes actual execution and test execution;Described actual execution is: when mobile equipment enters a network, the service in prioritizing selection service pool truly connects or execution task, and corresponding result is stored in model information;Described test execution is: do not have the resource in service pool to test those.Fast-changing runtime environment is a big characteristic of mobile computing;If be select the resource in service pool, it is more likely that local optimum can be absorbed in every time.Such as, certain resource is likely to be due to Network Abnormal, causes current time performance extreme difference;But this does not represent the next moment, and it will not improve.It would therefore be desirable to do not have the resource in service pool to be also carried out test those.We are provided with information timeliness Time basic time for each cloud resource;If a certain information overaging time, then submitting test assignment to: network-resource model is tested when corresponding network, task-resource model is tested when connecting this resource.If test is basically unchanged, then Time increases every time, otherwise reduces;Same search engine.In order to obtain information required in task-function model, network-resource model, task-resource model, the result of actual execution or test execution all can be saved in data base every time.Additionally, when network changes, it would be desirable to recording the information of a network and current network, the assessment for the most frequent available service provides support.
Further, described in step S21, task-function model is:
Making T represent a group task set, for each the task t in T, its transmission time is calculated by below equation:
T t r a n s f e r ( t , v , r t t ) = m a x { C ( t ) v , r t t }
Wherein, C (t) represents the volume of transmitted data of task t, and it is to be obtained by training in advance, and v represents the message transmission rate size in network, and rtt represents the round-trip delay between equipment and cloud resource;Different Mobile solution have different volumes of transmitted data, including the result of the input data sent and reception.Such as, face recognition application needs bigger volume of transmitted data, and quintet game application only needs relatively small volume of transmitted data.
In described task-function model, all it is independent between all tasks.
Further, described in step S21, network-resource model is:
Make N={n1,n2,...,nh, represent h collection of network, S={s1,s2,...,smRepresenting m cloud resource collection, V and RTT is the matrix of two h × m, have recorded the expected value of the transfer rate of each resource in heterogeneous networks situation and round-trip delay respectively;The definition of V and RTT matrix is as follows:
Wherein, vij, rijIt is illustrated respectively in network niUnder, equipment is to cloud resource sjTransfer rate and the expected value of round-trip delay;For each element v in V and RTTij, rij, they are calculated by following expectation function:
v i j = W T · V i j = w 1 w 2 ... w p v 1 i j v 2 i j ... v p i j ;
r i j = W T · RTT i j = w 1 w 2 ... w p r 1 i j r 2 i j ... r p i j ;
s.t.w1+w2+…+wp=1;
Vector WTIn one weight factor of each element representation, adjust the scale of these elements according to different scenes;VijHave recorded at network niUnder, cloud resource sjThe historical series of transfer rate, RTTijHave recorded at network niUnder, cloud resource sjThe historical series of round-trip delay;Historical series is obtained by actual execution or test execution.
Also defining the Matrix C of a h × h, for recording the variation tendency of customer location, Matrix C definition is as follows:
Wherein, cij(i≠j)Have recorded users from networks niMove to network njNumber of times.
Further, described in step S21, task-resource model is:
Different cloud resources have different disposal ability.The task T={t of given one group of independence1,t2,...,trAnd one group of cloud resource S={s1,s2,...,sm, matrix E have recorded the different task expected value performing the time in each resource, then the matrix E definition of this r × m is as follows:
Wherein, ekjExpression task tkAt cloud resource sjOn perform the time expected value, for each element e in matrix Ekj, it is calculated each through following expectation function:
e k j = W T · E k j = w 1 w 2 ... w p e 1 k j e 2 k j ... e p k j ;
s.t.w1+w2+…+wp=1;
Wherein, EkjHave recorded task tkAt cloud resource sjOn perform the time historical series.
Further, optimal service described in described step S22 refers to the service that the actual efficiency under current network is the highest, for the computation migration of current application, the service that wherein actual efficiency is the highest must is fulfilled for performing total time less than the time calling local service, specifically includes following steps:
Step 1: operationally collecting all of contextual information as input parameter, described contextual information includes current task tk, essential information model and mobile equipment current network ni
Step 2: for given task tk, assess it in local execution total time, be designated as local_cost;
Step 3: according to input parameter, get cloud resource one group available, represent with S;Then, all available cloud resources are all estimated and select assessed value minimum cloud resource as current network optimal service;Valuation functions is:
o f f l o a d i n g _ cos t = min ∀ s j ∈ S ( e k j + T t r a n s f e r ( t k , v i j , r i j ) ) ;
Step 4: if the Network Abnormal of selected cloud resource, then need to select next one and so on according to assessed value;If the network of selected resource is normal, its assessed value is less than local_cost simultaneously, then return this resource, and algorithm terminates;
The most frequent available service described in described step S22 is according to essential information model, the currently available and the most available service that assessment obtains, and namely performs total time less than the time calling local service;It uses when network condition changes, and is used for providing seamless migration service.In order to automatically select out the most frequent available service, we have proposed algorithm 2.The core of algorithm 2 is a performance evaluation function, and this object function is made up of two parts, and a part is for all possible network, is worth the network weight sum moving to this resource, is designated as Worthy;Another part is in the network that all values must migrate, and moves to the temporal summation saved in this resource, is designated as Save.Therefore, in all possible network, task t is specifying the total benefit definition performed in resource as follows:
Benefits (t)=α1*Worthy(t)+α2*Save(t)
Wherein, α1, α2It is weight factor, in our framework, it is possible to adjust the scale of these elements according to different scenes.As shown in algorithm 2, whole decision process includes following four step:
Step 1: operationally collecting all of contextual information as input parameter, described contextual information includes current task tk, essential information model and mobile equipment current network ni
Step 2: for given task tk, assess it in local execution total time, be designated as local_cost;
Step 3: all available resource in current network is estimated, and select the maximum cloud resource of benefit as the most frequent available service;
Step 4: if the Network Abnormal of selected cloud resource, then need to select next one and so on according to assessed value;Otherwise returning this cloud resource, algorithm terminates.
Further, the context aware computation migration framework that described step S3 proposes have employed client-server communication model;Wherein, cloud resource is server, and mobile equipment is client, and it is able to access that the service provided on server, as shown in Figure 4;
Administrative mechanism, computation migration supporting mechanism, services selection supporting mechanism when described client realizes running;During described operation, administrative mechanism includes data monitoring and module management;Described computation migration supporting mechanism includes the proxy call module of the resource registering module of client, service pool module, client;Described services selection supporting mechanism includes model information module, service selecting module, service testing module;
1) service call: when carrying out service call, proxy call module (adapter) according to corresponding Service name, method name, parameter information, can call top-quality service from service pool module.
2) service pool configuration: during operation, administrative mechanism is constantly carrying out data monitoring.If it monitors network and changes or call inefficacy, service selecting module will in conjunction with operation time administrative mechanism the currently monitored to data and model information module in the information collected re-start services selection.Meanwhile, resource registering module and service pool module are updated accordingly.
Described server includes the proxy call module of the resource registering module of server end, service library module and server end;All available resource nodes are responsible for and are registered to the resource registering module of described server end;Described service library module is in order to register the service that be there is a need to be deployed on remote resource;The dynamic call serviced when the proxy call module of described server end is in order to process operation.Proxy call module with client is similar, by call request is resolved, dynamically calls on required service from service library module.
Compared with prior art, on the one hand, due to the mobility of equipment, its context environmental changes constantly;On the other hand, along with increasing of cloud, mist, intelligent terminal etc., there is a lot of optional cloud resource, these all bring new challenge to computation migration.Traditional moving method great majority adopt the server specified in advance, and they according to current environment, cannot be dynamically selected that disposal ability is powerful and the good cloud resource of network condition.The present invention is based on the context environmental of current mobile device and available cloud resource, it is possible to by a kind of cost-effective in the way of be dynamically selected the cloud resource of the best for migrating: first, provide a kind of design pattern supporting to calculate dynamic migration in application;Secondly, it is proposed to an assessment models, based on the context environmental of mobile equipment, it is possible to automatically select the cloud resource of the best for computation migration;Finally, it is achieved a kind of framework supports above-mentioned put forward design pattern and assessment models.The present invention can be flexibly applied to mobile cloud environment complicated and changeable.Compared to traditional moving method, it can improve performance and the Consumer's Experience of mobile equipment significantly, and promotes its flying power.
Accompanying drawing explanation
Fig. 1 is computation migration programming model schematic diagram of the present invention.
Fig. 2 is service arrangement workflow diagrams of the present invention.
Fig. 3 is that the present invention services on-demand far call pattern diagram when running.
Fig. 4 is context aware computation migration block schematic illustration of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention will be further described.
Present embodiments provide a kind of mobile cloud environment context aware computation migration method, specifically include following steps;
Step S1: propose a kind of design pattern supporting to calculate dynamic migration in application so that all parts in application can be on-demand in Local or Remote interoperability;
Step S2: propose an assessment models, according to the context environmental of mobile equipment and available cloud resource, the resource automatically selecting the best migrates;
Step S3: propose a kind of context aware computation migration framework for supporting design pattern and the step S2 assessment models of step S1.
In the present embodiment, the design pattern in described step S1 includes programming model, deployment process and servicing operating mode;
As it is shown in figure 1, described programming model includes a primary module and a service registry storehouse;Described primary module defines the code that can not be migrated, described service registry storehouse is registered all services that can migrate;
Described deployment process comprises the following steps: step S11: mobile node finds target cloud resource, and described target cloud resource is carried out authentication;Step S12: upon successful authentication, mobile node sends all information relevant to current service deployment to described target cloud resource;Step S13: described target cloud resource receives request, and starts to check the deployment whether current environment can support this service, if it can, and required service be absent from, enter step S14, otherwise, enter step S15;Step S14: described target cloud resource obtains corresponding service document from mobile node and disposes, and service description file is returned to mobile node;Step S15: described target cloud resource returns the information of " service exists " or " can not dispose " to mobile node;Fig. 2 describes the whole workflow of mechanism.
As it is shown on figure 3, described servicing operating mode provides a kind of object construction supporting to calculate on-demand long-range execution in application, it is allowed to primary module can effectively call other service regardless of currently they operate in same VM or at different resource nodes.This structure includes three core elements: local adapter, long-range adapter, service pool;
Described service pool is single Virtual Service, but has been polymerized the identical candidate service being deployed in different cloud resource of multiple function, and the quality of described candidate service is different from;When receiving call request, preferentially top-quality service can be selected from service pool to call;
The position that the described local adapter primary responsibility identification service of being called is current, and forward the method to call;When primary module calls the method for Service1, first local adapter finds the service pool of correspondence, and obtains the description file of service best in quality in service pool.From service description file, it can recognize that the position that Service1 is current.If Service1 is at local runtime, then local adapter can call by direct retransmission method so that need not through network stack when primary module calls Service1.If Service1 is in long-range execution, local adapter obtains the url of service from service description file, and forwards the method to call to long-range adapter.
Described HTTP request, when receiving HTTP request, can be resolved by described long-range adapter, obtains Service name, method name and parameter information;And invocation target method;After goal approach has performed, corresponding result can be transferred back to client, merges with former application.In whole process, if the position change of called service, such as having transferred to remote node from this locality, or transferred to another node, caller from a certain remote node, namely primary module is not aware that the change of called service position.
In the present embodiment, the described code that can not be migrated includes following three classes: realize relevant to using user interface;Employ I/O equipment;Employ arbitrary external module.
Specifically, in the present embodiment, when exploitation application, programming personnel, it is first necessary to the method in application is classified, is divided into anchored and movable two class.The method of Anchored type must be stayed in primary module, can only perform on the mobile apparatus;Mainly include following a few class: 1) realize relevant to using user interface;2) I/O equipment is employed, accelerometer on such as reading equipment, GPS etc.;3) employ arbitrary external module, such as use network to connect and perform e-commerce transaction.These methods have used some resources that can only could obtain on the mobile apparatus.Performing if these methods are transferred in cloud resource, they can cause execution mistake because can not find required resource.The method that additive method outside these methods is all classified as movable type automatically, namely they both can perform can also perform in cloud resource on the mobile apparatus.The method of movable type must be developed to service, and each service encapsulates independent applied function module;And they are required in service registry storehouse to register.Each service in service registry storehouse has the service pool of correspondence, the service that in this service pool, one group of function of dynamic aggregation is identical.At first, only one of which service in service pool, namely local service.When application runs, primary module can by " Service name. method name (parameter information) " form calls service.
In the present embodiment, described step S2 specifically includes following steps:
Step S21: respectively computation task, mobile device context environment and cloud Resource Calculation ability are modeled, obtain task-function model, network-resource model, task-resource model;Perform when a task is migrated in long-distance cloud resource, total time TtotalMainly it is made up of two parts: Ttotal=Tserver+Ttransfer, wherein, TseverFor server execution time, TtransferFor network latency;
Step S22: structure service pool: according to device context environment and available cloud resource, it is proposed to decision making algorithm dynamically selects optimal service and the most frequent available service;Then optimal service, the most frequent available service and local service are dynamically aggregated into a service pool, when optimal service and the most frequent available service are same service, and only two services in service pool;Meanwhile, service pool can define according to service quality and call order;When service is called, can preferentially call top-quality service in service pool;Described service quality is the execution time;
Step S23: collect model information, including data monitoring and information;
Wherein said data monitoring is in order to monitor the execution of application and current environment in real time;Monitored data include: the title of current network, resource information available under current network, under current network, the transfer rate of all available resources and round-trip delay, current task information, current task move to the total execution time on different resource;
Described information includes actual execution and test execution;Described actual execution is: when mobile equipment enters a network, the service in prioritizing selection service pool truly connects or execution task, and corresponding result is stored in model information;Described test execution is: do not have the resource in service pool to test those.Fast-changing runtime environment is a big characteristic of mobile computing;If be select the resource in service pool, it is more likely that local optimum can be absorbed in every time.Such as, certain resource is likely to be due to Network Abnormal, causes current time performance extreme difference;But this does not represent the next moment, and it will not improve.It would therefore be desirable to do not have the resource in service pool to be also carried out test those.We are provided with information timeliness Time basic time for each cloud resource;If a certain information overaging time, then submitting test assignment to: network-resource model is tested when corresponding network, task-resource model is tested when connecting this resource.If test is basically unchanged, then Time increases every time, otherwise reduces;Same search engine.In order to obtain information required in task-function model, network-resource model, task-resource model, the result of actual execution or test execution all can be saved in data base every time.Additionally, when network changes, it would be desirable to recording the information of a network and current network, the assessment for the most frequent available service provides support.
In the present embodiment, described in step S21, task-function model is:
Making T represent a group task set, for each the task t in T, its transmission time is calculated by below equation:
T t r a n s f e r ( t , v , r t t ) = m a x { C ( t ) v , r t t }
Wherein, C (t) represents the volume of transmitted data of task t, and it is to be obtained by training in advance, and v represents the message transmission rate size in network, and rtt represents the round-trip delay between equipment and cloud resource;Different Mobile solution have different volumes of transmitted data, including the result of the input data sent and reception.Such as, face recognition application needs bigger volume of transmitted data, and quintet game application only needs relatively small volume of transmitted data.
In described task-function model, all it is independent between all tasks.
In the present embodiment, described in step S21, network-resource model is:
Make N={n1,n2,...,nh, represent h collection of network, S={s1,s2,...,smRepresenting m cloud resource collection, V and RTT is the matrix of two h × m, have recorded the expected value of the transfer rate of each resource in heterogeneous networks situation and round-trip delay respectively;The definition of V and RTT matrix is as follows:
Wherein, vij, rijIt is illustrated respectively in network niUnder, equipment is to cloud resource sjTransfer rate and the expected value of round-trip delay;For each element v in V and RTTij, rij, they are calculated by following expectation function:
v i j = W T · V i j = w 1 w 2 ... w p v 1 i j v 2 i j ... v p i j ;
r i j = W T · RTT i j = w 1 w 2 ... w p r 1 i j r 2 i j ... r p i j ;
s.t.w1+w2+…+wp=1;
Vector WTIn one weight factor of each element representation, adjust the scale of these elements according to different scenes;VijHave recorded at network niUnder, cloud resource sjThe historical series of transfer rate, RTTijHave recorded at network niUnder, cloud resource sjThe historical series of round-trip delay;Historical series is obtained by actual execution or test execution.
Also defining the Matrix C of a h × h, for recording the variation tendency of customer location, Matrix C definition is as follows:
Wherein, cij(i≠j)Have recorded users from networks niMove to network njNumber of times.
In the present embodiment, described in step S21, task-resource model is:
Different cloud resources have different disposal ability.The task T={t of given one group of independence1,t2,...,trAnd one group of cloud resource S={s1,s2,...,sm, matrix E have recorded the different task expected value performing the time in each resource, then the matrix E definition of this r × m is as follows:
Wherein, ekjExpression task tkAt cloud resource sjOn perform the time expected value, for each element e in matrix Ekj, it is calculated each through following expectation function:
e k j = W T · E k j = w 1 w 2 ... w p e 1 k j e 2 k j ... e p k j ;
s.t.w1+w2+…+wp=1;
Wherein, EkjHave recorded task tkAt cloud resource sjOn perform the time historical series.
In the present embodiment, optimal service described in described step S22 refers to the service that the actual efficiency under current network is the highest, for the computation migration of current application, the service that wherein actual efficiency is the highest must is fulfilled for performing total time less than the time calling local service, specifically includes following steps:
Step 1: operationally collecting all of contextual information as input parameter, described contextual information includes current task tk, essential information model and mobile equipment current network ni
Step 2: for given task tk, assess it in local execution total time, be designated as local_cost;
Step 3: according to input parameter, get cloud resource one group available, represent with S;Then, all available cloud resources are all estimated and select assessed value minimum cloud resource as current network optimal service;Valuation functions is:
o f f l o a d i n g _ cos t = min ∀ s j ∈ S ( e k j + T t r a n s f e r ( t k , v i j , r i j ) ) ;
Step 4: if the Network Abnormal of selected cloud resource, then need to select next one and so on according to assessed value;If the network of selected resource is normal, its assessed value is less than local_cost simultaneously, then return this resource, and algorithm terminates;
Specific algorithm is as shown in the table:
The most frequent available service described in described step S22 is according to essential information model, the currently available and the most available service that assessment obtains, and namely performs total time less than the time calling local service;It uses when network condition changes, and is used for providing seamless migration service.In order to automatically select out the most frequent available service, we have proposed algorithm 2.The core of algorithm 2 is a performance evaluation function, and this object function is made up of two parts, and a part is for all possible network, is worth the network weight sum moving to this resource, is designated as Worthy;Another part is in the network that all values must migrate, and moves to the temporal summation saved in this resource, is designated as Save.Therefore, in all possible network, task t is specifying the total benefit definition performed in resource as follows:
Benefits (t)=α1*Worthy(t)+α2*Save(t)
Wherein, α1, α2It is weight factor, in our framework, it is possible to adjust the scale of these elements according to different scenes.As shown in algorithm 2, whole decision process includes following four step:
Step 1: operationally collecting all of contextual information as input parameter, described contextual information includes current task tk, essential information model and mobile equipment current network ni
Step 2: for given task tk, assess it in local execution total time, be designated as local_cost;
Step 3: all available resource in current network is estimated, and select the maximum cloud resource of benefit as the most frequent available service;
Step 4: if the Network Abnormal of selected cloud resource, then need to select next one and so on according to assessed value;Otherwise returning this cloud resource, algorithm terminates.
Shown in algorithm 2 table specific as follows:
In the present embodiment, the context aware computation migration framework that described step S3 proposes have employed client-server communication model;Wherein, cloud resource is server, and mobile equipment is client, and it is able to access that the service provided on server, as shown in Figure 4;
Administrative mechanism, computation migration supporting mechanism, services selection supporting mechanism when described client realizes running;During described operation, administrative mechanism includes data monitoring and module management;Described computation migration supporting mechanism includes the proxy call module of the resource registering module of client, service pool module, client;Described services selection supporting mechanism includes model information module, service selecting module, service testing module;
1) service call: when carrying out service call, proxy call module (adapter) according to corresponding Service name, method name, parameter information, can call top-quality service from service pool module.
2) service pool configuration: during operation, administrative mechanism is constantly carrying out data monitoring.If it monitors network and changes or call inefficacy, service selecting module will in conjunction with operation time administrative mechanism the currently monitored to data and model information module in the information collected re-start services selection.Meanwhile, resource registering module and service pool module are updated accordingly.
Described server includes the proxy call module of the resource registering module of server end, service library module and server end;All available resource nodes are responsible for and are registered to the resource registering module of described server end;Described service library module is in order to register the service that be there is a need to be deployed on remote resource;The dynamic call serviced when the proxy call module of described server end is in order to process operation.Proxy call module with client is similar, by call request is resolved, dynamically calls on required service from service library module.
The foregoing is only presently preferred embodiments of the present invention, all equalizations done according to the present patent application the scope of the claims change and modify, and all should belong to the covering scope of the present invention.

Claims (9)

1. a mobile cloud environment context aware computation migration method, it is characterised in that comprise the following steps;
Step S1: propose a kind of design pattern supporting to calculate dynamic migration in application so that all parts in application can be on-demand in Local or Remote interoperability;
Step S2: propose an assessment models, according to the context environmental of mobile equipment and available cloud resource, the resource automatically selecting the best migrates;
Step S3: propose a kind of context aware computation migration framework for supporting design pattern and the step S2 assessment models of step S1.
2. a kind of mobile cloud environment context aware computation migration method according to claim 1, it is characterised in that: the design pattern in described step S1 includes programming model, deployment process and servicing operating mode;
Described programming model includes a primary module and a service registry storehouse;Described primary module defines the code that can not be migrated, described service registry storehouse is registered all services that can migrate;
Described deployment process comprises the following steps: step S11: mobile node finds target cloud resource, and described target cloud resource is carried out authentication;Step S12: upon successful authentication, mobile node sends all information relevant to current service deployment to described target cloud resource;Step S13: described target cloud resource receives request, and starts to check the deployment whether current environment can support this service, if it can, and required service be absent from, enter step S14, otherwise, enter step S15;Step S14: described target cloud resource obtains corresponding service document from mobile node and disposes, and service description file is returned to mobile node;Step S15: described target cloud resource returns the information of " service exists " or " can not dispose " to mobile node;
Described servicing operating mode provides a kind of object construction supporting to calculate on-demand long-range execution in application, and this structure includes three core elements: local adapter, long-range adapter, service pool;
Described service pool is single Virtual Service, but has been polymerized the identical candidate service being deployed in different cloud resource of multiple function, and the quality of described candidate service is different from;When receiving call request, preferentially top-quality service can be selected from service pool to call;
The position that the described local adapter primary responsibility identification service of being called is current, and forward the method to call;
Described HTTP request, when receiving HTTP request, can be resolved by described long-range adapter, obtains Service name, method name and parameter information;And invocation target method;After goal approach has performed, corresponding result can be transferred back to client, merges with former application.
3. a kind of mobile cloud environment context aware computation migration method according to claim 2, it is characterised in that: the described code that can not be migrated includes following three classes: realize relevant to using user interface;Employ I/O equipment;Employ arbitrary external module.
4. a kind of mobile cloud environment context aware computation migration method according to claim 1, it is characterised in that: described step S2 specifically includes following steps:
Step S21: respectively computation task, mobile device context environment and cloud Resource Calculation ability are modeled, obtain task-function model, network-resource model, task-resource model;Perform when a task is migrated in long-distance cloud resource, total time TtotalMainly it is made up of two parts: Ttotal=Tserver+Ttransfer, wherein, TseverFor server execution time, TtransferFor network latency;
Step S22: structure service pool: according to device context environment and available cloud resource, it is proposed to decision making algorithm dynamically selects optimal service and the most frequent available service;Then optimal service, the most frequent available service and local service are dynamically aggregated into a service pool, when optimal service and the most frequent available service are same service, and only two services in service pool;Meanwhile, service pool can define according to service quality and call order;When service is called, can preferentially call top-quality service in service pool;Described service quality is the execution time;
Step S23: collect model information, including data monitoring and information;
Wherein said data monitoring is in order to monitor the execution of application and current environment in real time;Monitored data include: the title of current network, resource information available under current network, under current network, the transfer rate of all available resources and round-trip delay, current task information, current task move to the total execution time on different resource;
Described information includes actual execution and test execution;Described actual execution is: when mobile equipment enters a network, the service in prioritizing selection service pool truly connects or execution task, and corresponding result is stored in model information;Described test execution is: do not have the resource in service pool to test those.
5. a kind of mobile cloud environment context aware computation migration method according to claim 4, it is characterised in that: described in step S21, task-function model is:
Making T represent a group task set, for each the task t in T, its transmission time is calculated by below equation:
T t r a n s f e r ( t , v , r t t ) = m a x { C ( t ) v , r t t }
Wherein, C (t) represents the volume of transmitted data of task t, and it is to be obtained by training in advance, and v represents the message transmission rate size in network, and rtt represents the round-trip delay between equipment and cloud resource;
In described task-function model, all it is independent between all tasks.
6. a kind of mobile cloud environment context aware computation migration method according to claim 4, it is characterised in that: described in step S21, network-resource model is:
Make N={n1,n2,...,nh, represent h collection of network, S={s1,s2,...,smRepresenting m cloud resource collection, V and RTT is the matrix of two h × m, have recorded the expected value of the transfer rate of each resource in heterogeneous networks situation and round-trip delay respectively;The definition of V and RTT matrix is as follows:
Wherein, vij, rijIt is illustrated respectively in network niUnder, equipment is to cloud resource sjTransfer rate and the expected value of round-trip delay;For each element v in V and RTTij, rij, they are calculated by following expectation function:
v i j = W T · V i j = w 1 w 2 ... w p v 1 i j v 2 i j ... v p i j ;
r i j = W T · RTT i j = w 1 w 2 ... w p r 1 i j r 2 i j ... r p i j ;
s.t.w1+w2+…+wp=1;
Vector WTIn one weight factor of each element representation, adjust the scale of these elements according to different scenes;VijHave recorded at network niUnder, cloud resource sjThe historical series of transfer rate, RTTijHave recorded at network niUnder, cloud resource sjThe historical series of round-trip delay;
Also defining the Matrix C of a h × h, for recording the variation tendency of customer location, Matrix C definition is as follows:
Wherein, cij(i≠j)Have recorded users from networks niMove to network njNumber of times.
7. a kind of mobile cloud environment context aware computation migration method according to claim 4, it is characterised in that: described in step S21, task-resource model is:
The task T={t of given one group of independence1,t2,...,trAnd one group of cloud resource S={s1,s2,...,sm, matrix E have recorded the different task expected value performing the time in each resource, then the matrix E definition of this r × m is as follows:
Wherein, ekjExpression task tkAt cloud resource sjOn perform the time expected value, for each element e in matrix Ekj, it is calculated each through following expectation function:
e k j = W T · E k j = w 1 w 2 ... w p e 1 k j e 2 k j ... e p k j ;
s.t.w1+w2+…+wp=1;
Wherein, EkjHave recorded task tkAt cloud resource sjOn perform the time historical series.
8. a kind of mobile cloud environment context aware computation migration method according to claim 4, it is characterised in that:
Optimal service described in described step S22 refers to the service that the actual efficiency under current network is the highest, computation migration for current application, the service that wherein actual efficiency is the highest must is fulfilled for performing total time less than the time calling local service, specifically includes following steps:
Step 1: operationally collecting all of contextual information as input parameter, described contextual information includes current task tk, essential information model and mobile equipment current network ni
Step 2: for given task tk, assess it in local execution total time, be designated as local_cost;
Step 3: according to input parameter, get cloud resource one group available, represent with S;Then, all available cloud resources are all estimated and select assessed value minimum cloud resource as current network optimal service;Valuation functions is:
o f f l o a d i n g _ cos t = m i n ∀ s j ∈ S ( e k j + T t r a n s f e r ( t k , v i j , r i j ) ) ;
Step 4: if the Network Abnormal of selected cloud resource, then need to select next one and so on according to assessed value;If the network of selected resource is normal, its assessed value is less than local_cost simultaneously, then return this resource, and algorithm terminates;
The most frequent available service described in described step S22 is according to essential information model, the currently available and the most available service that assessment obtains, and namely performs total time less than the time calling local service;Specifically include following steps:
Step 1: operationally collecting all of contextual information as input parameter, described contextual information includes current task tk, essential information model and mobile equipment current network ni
Step 2: for given task tk, assess it in local execution total time, be designated as local_cost;
Step 3: all available resource in current network is estimated, and select the maximum cloud resource of benefit as the most frequent available service;
Step 4: if the Network Abnormal of selected cloud resource, then need to select next one and so on according to assessed value;Otherwise returning this cloud resource, algorithm terminates.
9. a kind of mobile cloud environment context aware computation migration method according to claim 1, it is characterised in that:
The context aware computation migration framework that described step S3 proposes have employed client-server communication model;Wherein, cloud resource is server, and mobile equipment is client;
Administrative mechanism, computation migration supporting mechanism, services selection supporting mechanism when described client realizes running;During described operation, administrative mechanism includes data monitoring and module management;Described computation migration supporting mechanism includes the proxy call module of the resource registering module of client, service pool module, client;Described services selection supporting mechanism includes model information module, service selecting module, service testing module;
Described server includes the proxy call module of the resource registering module of server end, service library module and server end;All available resource nodes are responsible for and are registered to the resource registering module of described server end;Described service library module is in order to register the service that be there is a need to be deployed on remote resource;The dynamic call serviced when the proxy call module of described server end is in order to process operation.
CN201610133601.9A 2016-03-09 2016-03-09 A kind of mobile cloud environment context aware computation migration method Active CN105812461B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610133601.9A CN105812461B (en) 2016-03-09 2016-03-09 A kind of mobile cloud environment context aware computation migration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610133601.9A CN105812461B (en) 2016-03-09 2016-03-09 A kind of mobile cloud environment context aware computation migration method

Publications (2)

Publication Number Publication Date
CN105812461A true CN105812461A (en) 2016-07-27
CN105812461B CN105812461B (en) 2019-03-12

Family

ID=56467985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610133601.9A Active CN105812461B (en) 2016-03-09 2016-03-09 A kind of mobile cloud environment context aware computation migration method

Country Status (1)

Country Link
CN (1) CN105812461B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133101A (en) * 2017-04-27 2017-09-05 福州大学 Adaptive polo placement migration middleware in IoT systems
CN107391031A (en) * 2017-06-27 2017-11-24 北京邮电大学 Data migration method and device in a kind of computing system based on mixing storage
CN108027900A (en) * 2016-08-15 2018-05-11 谷歌有限责任公司 The machine learning system of optimization
CN108376099A (en) * 2018-01-16 2018-08-07 西安建筑科技大学 A kind of mobile terminal computation migration method of optimization time delay and efficiency
CN109062677A (en) * 2018-07-10 2018-12-21 中国人民解放军国防科技大学 Unmanned aerial vehicle system calculation migration method
CN109347926A (en) * 2018-09-21 2019-02-15 西北大学 Edge calculations intelligent perception system building method towards the protection of bright Ruins of Great Wall
CN109756379A (en) * 2019-01-11 2019-05-14 南京航空航天大学 A kind of network performance abnormality detection and localization method based on the decomposition of matrix difference
CN110012021A (en) * 2019-04-12 2019-07-12 福州大学 A kind of adaptive polo placement moving method under mobile edge calculations
CN110109702A (en) * 2019-05-16 2019-08-09 福州大学 Android computation migration on-line decision method based on code analysis
CN110809275A (en) * 2019-11-08 2020-02-18 福州大学 Micro cloud node placement method based on wireless metropolitan area network
CN113015942A (en) * 2018-12-28 2021-06-22 西门子股份公司 Data analysis method, device and system
US11556100B2 (en) 2017-06-30 2023-01-17 Huawei Technologies Co., Ltd. Control method, related device, and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120011521A1 (en) * 2010-06-25 2012-01-12 Daniel Knoodle Novel developer platform
CN102857548A (en) * 2012-04-25 2013-01-02 梁宏斌 Mobile cloud computing resource optimal allocation method
CN104869151A (en) * 2015-04-07 2015-08-26 北京邮电大学 Business unloading method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120011521A1 (en) * 2010-06-25 2012-01-12 Daniel Knoodle Novel developer platform
CN102857548A (en) * 2012-04-25 2013-01-02 梁宏斌 Mobile cloud computing resource optimal allocation method
CN104869151A (en) * 2015-04-07 2015-08-26 北京邮电大学 Business unloading method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
YAO GUO 等: "《Jupiter: Transparent Augmentation of Smartphone》", 《PROCEEDING MOBIHELD "11 PROCEEDINGS OF THE 3RD ACM SOSP WORKSHOP ON NETWORKING, SYSTEMS, AND APPLICATIONS ON MOBILE HANDHELDS》 *
李鹏伟 等: "《弹性移动云计算的研究进展与安全性分析》", 《计算机研究与发展》 *
肖雪芳 等: "《面向移动云计算的关键技术研究》", 《绵阳师范学院学报》 *

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108027900A (en) * 2016-08-15 2018-05-11 谷歌有限责任公司 The machine learning system of optimization
CN107133101B (en) * 2017-04-27 2021-01-29 福州大学 Adaptive computing migration middleware in an IoT system
CN107133101A (en) * 2017-04-27 2017-09-05 福州大学 Adaptive polo placement migration middleware in IoT systems
CN107391031B (en) * 2017-06-27 2020-05-08 北京邮电大学 Data migration method and device in computing system based on hybrid storage
CN107391031A (en) * 2017-06-27 2017-11-24 北京邮电大学 Data migration method and device in a kind of computing system based on mixing storage
US11556100B2 (en) 2017-06-30 2023-01-17 Huawei Technologies Co., Ltd. Control method, related device, and system
CN108376099A (en) * 2018-01-16 2018-08-07 西安建筑科技大学 A kind of mobile terminal computation migration method of optimization time delay and efficiency
CN108376099B (en) * 2018-01-16 2020-06-23 西安建筑科技大学 Mobile terminal calculation migration method for optimizing time delay and energy efficiency
CN109062677B (en) * 2018-07-10 2020-07-31 中国人民解放军国防科技大学 Unmanned aerial vehicle system calculation migration method
CN109062677A (en) * 2018-07-10 2018-12-21 中国人民解放军国防科技大学 Unmanned aerial vehicle system calculation migration method
CN109347926A (en) * 2018-09-21 2019-02-15 西北大学 Edge calculations intelligent perception system building method towards the protection of bright Ruins of Great Wall
CN109347926B (en) * 2018-09-21 2021-04-27 西北大学 Method for constructing intelligent edge computing sensing system for historic site protection
CN113015942A (en) * 2018-12-28 2021-06-22 西门子股份公司 Data analysis method, device and system
CN109756379A (en) * 2019-01-11 2019-05-14 南京航空航天大学 A kind of network performance abnormality detection and localization method based on the decomposition of matrix difference
CN110012021A (en) * 2019-04-12 2019-07-12 福州大学 A kind of adaptive polo placement moving method under mobile edge calculations
CN110012021B (en) * 2019-04-12 2021-06-22 福州大学 Self-adaptive computing migration method under mobile edge computing
CN110109702A (en) * 2019-05-16 2019-08-09 福州大学 Android computation migration on-line decision method based on code analysis
CN110809275A (en) * 2019-11-08 2020-02-18 福州大学 Micro cloud node placement method based on wireless metropolitan area network
CN110809275B (en) * 2019-11-08 2021-09-28 福州大学 Micro cloud node placement method based on wireless metropolitan area network

Also Published As

Publication number Publication date
CN105812461B (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN105812461A (en) Mobile cloud environment context awareness computing migration method
CN112953778B (en) Intention-driven-based service arrangement system and method in intelligent fusion identification network
Cardone et al. The participact mobile crowd sensing living lab: The testbed for smart cities
CN103761309B (en) Operation data processing method and system
CN106528432B (en) The construction method and device of test scene data bury a test method
US10200446B2 (en) Method and system to estimate user desired delay for resource allocation for mobile cloud applications
Jayaraman et al. Scalable energy-efficient distributed data analytics for crowdsensing applications in mobile environments
CN110311987A (en) Node scheduling method, apparatus, equipment and the storage medium of microserver
CN106027328A (en) Cluster monitoring method and system based on application container deployment
CN110083334A (en) The online method and device of model
CN112036577B (en) Method and device for applying machine learning based on data form and electronic equipment
CN104778112B (en) The system and method for adaptive voltage frequency adjustment
US20160277532A1 (en) Method and system for selecting things based on quality of service in web of things
US20230045979A1 (en) Controlling delivery via unmanned delivery service through allocated network resources
CN113286315B (en) Load balance judging method, device, equipment and storage medium
CN106267774A (en) Moving state identification method and apparatus
CN104468257B (en) Cloud application availability Forecasting Methodology and system based on mobile subscriber's time-space behavior
CN103051672A (en) Terminal information obtaining method and device in heterogeneous terminal environment
CN104980525A (en) Pervasive mobile computing frame based on state middleware
CN105260082A (en) Display method for test data and development terminal
CN106688257A (en) Optimizing capacity expansion in a mobile network
CN108345606A (en) The acquisition methods and device of web page resources
CN110442787A (en) A kind of information consulting service platform based on big data analysis acquisition
US11075817B1 (en) Context aware network capacity augmentation using a flying device
CN109313587A (en) Method for enabling data analysis service at service layer

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