WO2017182000A1 - Method and device for migration of application instance and computer storage medium - Google Patents

Method and device for migration of application instance and computer storage medium Download PDF

Info

Publication number
WO2017182000A1
WO2017182000A1 PCT/CN2017/081521 CN2017081521W WO2017182000A1 WO 2017182000 A1 WO2017182000 A1 WO 2017182000A1 CN 2017081521 W CN2017081521 W CN 2017081521W WO 2017182000 A1 WO2017182000 A1 WO 2017182000A1
Authority
WO
WIPO (PCT)
Prior art keywords
snapshot
destination
application instance
mobile edge
source
Prior art date
Application number
PCT/CN2017/081521
Other languages
French (fr)
Chinese (zh)
Inventor
宗在峰
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017182000A1 publication Critical patent/WO2017182000A1/en

Links

Images

Classifications

    • 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
    • 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
    • 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/52Network services specially adapted for the location of the user terminal
    • 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/535Tracking the activity of the user
    • 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/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/02Buffering or recovering information during reselection ; Modification of the traffic flow during hand-off
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/22Performing reselection for specific purposes for handling the traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/04Large scale networks; Deep hierarchical networks
    • H04W84/042Public Land Mobile systems, e.g. cellular systems

Definitions

  • the present invention relates to an instance migration technology in the field of communications, and in particular, to a method and device for application instance migration, and a computer storage medium.
  • MEC Mobile Edge Computing
  • CDN local content delivery network
  • ETSI European Telecommunications Standards Institute
  • the Mobile Edge Host includes a Virtualization Infrastructure with a Data plane.
  • a mobile edge platform and a number of mobile edge applications (ME app, Mobile Edge application) are also hosted on the mobile edge host.
  • the mobile edge platform provides several mobile edge services (ME services, Mobile Edge services) for mobile edge applications.
  • Mobile Edge Platform In order to support communication between mobile edge applications and mobile edge services, the mobile edge platform includes a service registry, which provides a publish registration mechanism for mobile edge service publishing services and mobile edge application subscription mobiles. Edge business.
  • Mobile edge platform is also suitable Provide the Domain Name System (DNS) function so that the application can register its own IP address and Fully Qualified Domain Name (FQDN) to the DNS server.
  • DNS Domain Name System
  • the traffic rules control in the mobile edge platform can control the forwarding rules of the data plane function, so that the traffic flowing through the mobile edge host can be redirected, for example, the traffic of a certain service flow is redirected. Go to the mobile edge app on the mobile edge host.
  • the Mobile Edge orchestrator is responsible for lifecycle management of mobile edge applications, configuration of mobile edge platforms, and selection of mobile edge platforms.
  • the Office of Strategic Services (OSS) provides an interface to third parties that allows third parties to load mobile edge applications into the mobile edge system and trigger instantiation and instance termination of mobile edge applications.
  • the Mobile Edge platform manager is responsible for configuring the lifecycle management of the mobile edge platform and the mobile edge application, for example, configuring the mobile edge application corresponding traffic rules and DNS rules to the mobile edge platform, and from the virtualization manager ( Apply resources in the Virtualization infrastructure manager and load the corresponding mobile edge application.
  • the Virtualization Infrastructure Manager is responsible for managing the virtual resources of the Virtualization Infrastructure in the edge host, allocating virtual resources, and loading mobile edge application software packages.
  • the interface Mp3 between the mobile edge hosts is used to support communication between the mobile edge hosts due to user movement, for example, context transfer of the mobile edge application instance between the old and new platforms after the user moves, or migration of the mobile edge application.
  • the application In a mobile network, because the terminal has mobility, the application is deployed to the edge of the network. In order to maintain the continuity of the service, sometimes the path is detoured (for example, the application still resides at the original access point after the terminal moves) .
  • one method is to migrate the application to the user's current access point location when the terminal moves to a new location. Due to the wide range of virtualization technologies Use, application migration is not difficult. However, when an application needs to be processed according to the state of the user, simply migrating the application instance to a new location does not guarantee continuity of the business.
  • an embodiment of the present invention provides a method and device for migrating an application instance, and a computer storage medium.
  • the source mobile edge host takes a snapshot of the source application instance
  • the snapshot is a running space of the source application instance at a shooting time, and the running space includes a running process and status information.
  • the snapshot synchronization between the source mobile edge host and the destination mobile edge host includes:
  • the source mobile edge host compares the captured snapshot with the snapshot sent when the snapshot was last synchronized, and sends the two snapshot changes to the destination mobile edge host;
  • the method further includes:
  • the data packet sent by the terminal to the source application instance is saved, and the last transmission time corresponding to the snapshot shooting is less than or equal to the set threshold;
  • the saved data packets are sent to the destination application instance in the saved order.
  • the source mobile edge host or the destination mobile edge host saves a data packet sent by the terminal to the source application instance
  • the data packet saved by the source mobile edge host or the data packet saved by the destination edge host and simultaneously sent to the source application instance is first The saved sequence is sent to the destination application instance; the data packets saved by the destination mobile edge host and not sent to the source application instance are sent to the destination application instance in the saved order.
  • the mobile edge orchestrator sends a snapshot synchronization command to the source mobile edge sink and/or the destination mobile edge host;
  • the snapshot synchronization command is used to control snapshot synchronization between the source mobile edge host and the destination mobile edge host.
  • the method further includes:
  • the mobile edge orchestrator specifies a snapshot synchronization delay threshold when sending a snapshot synchronization command
  • the mobile edge orchestrator When the snapshot transmission duration is less than the snapshot synchronization delay threshold, the mobile edge orchestrator receives the snapshot synchronization complete message notified by the source mobile edge host or the destination mobile edge host.
  • the method further includes:
  • the mobile edge orchestrator sends an instantiated snapshot command to the destination mobile edge host
  • the instantiated snapshot command is used to control the destination mobile edge host to perform instantiation of the snapshot.
  • the destination mobile edge host receives a snapshot of the source application instance sent by the source mobile edge host
  • the operation is performed according to the running process and the state information of the snapshot.
  • the method further includes:
  • the saved data packets are sent to the destination application instance in the saved order.
  • the method further includes:
  • the data packets saved by the source mobile edge host are first sent to the destination application instance in the saved order, and then the destination is moved.
  • the data packets saved by the edge host are sent to the destination application instance in the order in which they are saved.
  • the method includes:
  • a traffic filtering rule in the destination mobile edge host to send data sent by the terminal to the source application instance and/or the destination application instance to the destination application instance or destination mobile located on the destination mobile edge host according to the traffic filtering rule.
  • the edge on the edge host computes the mobile service.
  • the traffic filtering rule is set in the destination mobile edge host.
  • the traffic filtering rule is set in the destination mobile edge host.
  • a snapshot unit configured to take a snapshot of the source application instance
  • a snapshot synchronization unit configured to perform snapshot synchronization between the source mobile edge host and the destination mobile edge host, so that the destination mobile edge host synchronizes the snapshot to the destination mobile edge host to resume operation
  • the snapshot is an operation space of the source application instance at a shooting moment, and the operation is performed.
  • the space includes operational processes and status information.
  • the snapshot synchronization unit is further configured to compare the captured snapshot with the snapshot sent when the snapshot was last synchronized, and send the changed portions of the two snapshots to the destination mobile edge host; When the transmission duration sent to the destination mobile edge host is greater than the set threshold, snapshot shooting and snapshot synchronization are performed again.
  • the device further includes:
  • a storage unit configured to save a data packet sent by the terminal to the source application instance after the snapshot is taken for the last time, and the sending duration corresponding to the last snapshot taking is less than or equal to a set threshold;
  • the sending unit is configured to send the saved data packets to the destination application instance in the saved order after the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host.
  • the source mobile edge host or the destination mobile edge host saves a data packet sent by the terminal to the source application instance
  • the data packet saved by the source mobile edge host or the data packet saved by the destination edge host and simultaneously sent to the source application instance is first The saved sequence is sent to the destination application instance; the data packets saved by the destination mobile edge host and not sent to the source application instance are sent to the destination application instance in the saved order.
  • a sending unit configured to send a snapshot synchronization command to the source mobile edge sink and/or the destination mobile edge host
  • the snapshot synchronization command is used to control snapshot synchronization between the source mobile edge host and the destination mobile edge host.
  • the device further includes:
  • the receiving unit is configured to receive the snapshot synchronization completion message notified by the source mobile edge host or the destination mobile edge host when the snapshot transmission duration is less than the snapshot synchronization delay threshold.
  • the sending unit is further configured to send an instantiated snapshot command to the destination mobile edge host.
  • the instantiated snapshot command is used to control the destination mobile edge host to perform instantiation of the snapshot.
  • a receiving unit configured to receive a snapshot of a source application instance sent by the source mobile edge host
  • a recovery unit configured to restore the snapshot to the destination application instance on the device
  • the running unit is configured to run the target application instance on the device; wherein, when the target application instance is run, running according to the running process and status information of the snapshot.
  • the device further includes:
  • a saving unit configured to save the data packet sent by the terminal to the destination application instance before the snapshot is restored to the destination application instance on the device;
  • the sending unit is configured to send the saved data packet to the destination application instance in the saved order after the snapshot is restored to the destination application instance on the device.
  • the sending unit is further configured to: after the snapshot is restored to the target application instance on the device, send the data packet saved by the source mobile edge host to the storage device in the order of saving.
  • the application example is described, and the data packets saved by the device are sent to the destination application instance in the order of saving.
  • the device further includes: a setting unit, configured to set a traffic filtering rule, to send, according to the traffic filtering rule, data sent by the terminal to the source application instance and/or the destination application instance to the destination mobile edge Destination application instance or destination moving edge on the host The edge on the host calculates the mobile service.
  • a setting unit configured to set a traffic filtering rule, to send, according to the traffic filtering rule, data sent by the terminal to the source application instance and/or the destination application instance to the destination mobile edge Destination application instance or destination moving edge on the host The edge on the host calculates the mobile service.
  • the embodiment of the present invention further provides a computer storage medium.
  • the computer storage medium provided by the embodiment of the present invention stores a computer program, and the computer program is used to execute the method for migrating the application instance.
  • the source mobile edge host performs snapshot shooting on the source application instance; the source mobile edge host and the destination mobile edge host perform snapshot synchronization, so that the destination mobile edge host synchronizes to the destination moving edge.
  • the snapshot on the host resumes running; wherein the snapshot is a running space of the source application instance at the time of shooting, and the running space includes running process and status information.
  • the mobile edge host receives a snapshot of the source application instance sent by the source mobile edge host; restores the snapshot to the destination application instance on the destination mobile edge sink; and runs the destination application instance on the destination mobile edge host; When the target application instance is run, the operation is performed according to the running process and the state information of the snapshot. It can be seen that when the location of the terminal changes, the application instance is migrated from the source mobile edge host to the destination mobile edge host by using the snapshot mode, and the continuity of the application instance operation is ensured during the migration.
  • Figure 1 is an architectural diagram of a mobile edge calculation
  • FIG. 2 is a schematic flowchart 1 of a method for migrating an application instance according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart 2 of a method for migrating an application instance according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of a mobile edge host according to an embodiment of the present invention.
  • FIG. 5 is a first schematic diagram of a method for migrating an application instance from a source host to a destination host using a snapshot method according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a system architecture corresponding to FIG. 5;
  • FIG. 7 is a schematic diagram 1 of interaction of a migration process according to an embodiment of the present invention.
  • FIG. 8 is a second schematic diagram of a method for migrating an application instance from a source host to a destination host by using a snapshot method according to an embodiment of the present invention
  • Figure 9 is a schematic diagram of a system architecture corresponding to Figure 8.
  • FIG. 10 is a schematic diagram 2 of interaction of a migration process according to an embodiment of the present invention.
  • FIG. 11 is a first schematic structural diagram of a device for migrating an application instance according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram 2 of a device for migrating an application instance according to an embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram 3 of a device for migrating an application instance according to an embodiment of the present invention.
  • the snapshot method is used to perform the migration of the application instance, that is, the snapshot of the source application instance is taken, so that when the application instance migration is required, Purpose Use a snapshot on the mobile edge host to restore the application instance to its pre-migration state.
  • FIG. 2 is a schematic flowchart of a method for migrating an application instance according to an embodiment of the present invention.
  • the method for migrating an application instance in this example is applied to a source mobile edge host.
  • the method for migrating the application instance includes the following steps. :
  • Step 201 Perform snapshot synchronization between the source mobile edge host and the destination mobile edge host.
  • the source mobile application host takes a snapshot of the source application instance and copies the snapshot to a new mobile edge host to resume operation.
  • the new mobile edge host is referred to as the destination mobile edge host.
  • the application instance in the source mobile edge host is referred to as the source application instance
  • the application instance in the destination mobile edge host is referred to as the destination application instance.
  • the snapshot is a running space of the source application instance at the time of shooting, and the running space includes running flow and status information.
  • the snapshot means the running space of the application instance at a certain time, including all running code and status information.
  • the photographing of the embodiment of the present invention specifically refers to the running space of the source application instance at the shooting time. As such, when the snapshot resumes running on the destination mobile edge host, the application instance will resume operation from the snapshot capture point.
  • the synchronization process occurs when the application instance is migrated, or before the application instance is migrated.
  • the synchronization process may include multiple iterative processes, such as:
  • the source mobile edge host copies the entire snapshot to the destination mobile edge host
  • the source mobile edge host compares the newly taken snapshot with the snapshot taken during the last synchronization and sends the changed portion to the destination mobile edge host.
  • the transmission delay required for this synchronization process is gradually reduced as the number of iterations increases.
  • the snapshot synchronization can be considered complete.
  • the snapshot synchronization interval is still performed between the source mobile edge host and the destination mobile edge host even if the snapshot synchronization delay is less than a certain threshold.
  • the synchronization can be performed at a predetermined period (for example, 10 seconds).
  • Step 202 Instantiate the snapshot at the destination mobile edge host.
  • the state change during the period may also cause the service to be discontinuous.
  • the source mobile edge host can continue to respond to user responses. use.
  • the source mobile edge host sends the saved data packets to the restored target application instance in the saved order.
  • the purpose of the mobile edge host needs to confirm that all the data packets sent from the source mobile edge host are processed, and then the terminal is allowed to directly send the data packet to the destination application instance through the destination mobile edge host, if the destination mobile edge host receives the terminal directly for the purpose.
  • the destination mobile edge host can temporarily cache the data packet until all data cached by the source mobile edge host is processed.
  • the destination application instance can restore the state of the source mobile edge host breakpoint after processing all the packets sent by the source mobile edge host, so that the data can be processed from the breakpoint and the user's message can be restarted.
  • the source edge computing platform saves the data packet sent by the terminal to the source application instance; when the snapshot of the source application instance is on the destination mobile edge host After being restored to the destination application instance, the saved data packets are sent to the destination application instance in the order in which they are saved.
  • the destination mobile edge host save terminal is notified to send to the application instance. Packet until the snapshot is restored to the destination application instance on the destination mobile edge host.
  • the application needs to notify the user to update the IP address of the application, except that the application needs to restore the user's status information in the new application instance. If the application layer supports such a change in the IP address, the application layer may notify the terminal of the new IP address. If the application layer does not support the change of the IP address, the new mobile edge host needs to forward all the data packets whose source address is the user IP address and whose destination is the source mobile edge host to the new application instance restored on the new mobile edge host. Therefore, the new mobile edge host needs to configure the forwarding rules of the user plane, and the entire edge computing system avoids assigning the IP address to other application instances for a period of time.
  • the mobile edge computing platform updates the DNS system, and the application instance in the DNS The IP address corresponding to the domain name is updated to the IP address of the new application instance.
  • the terminal initiates DNS resolution. In this process, the terminal can obtain the IP address of the new instance, so that the IP packet can be directly sent to the new instance.
  • the snapshot method is used to migrate the application instance, and the application instance is guaranteed to be restored from the breakpoint (because the snapshot contains all the running information and running status information).
  • FIG. 3 is a schematic flowchart of a method for migrating an application instance according to an embodiment of the present invention.
  • the method for migrating an application instance in this example is applied to a target mobile edge host.
  • the method for migrating the application instance includes the following steps. :
  • Step 301 Snapshot synchronization of the application instance between the destination mobile edge host and the source mobile edge host.
  • Step 302 Restore the snapshot synchronized to the destination mobile edge host to the destination application instance on the destination mobile edge sink.
  • the method further includes: saving the data packet sent by the terminal to the destination application instance before the snapshot is restored to the destination application instance on the destination mobile edge sink; After the target application instance is restored to the destination application instance, the saved data packets are sent to the destination application instance in the saved order.
  • Step 303 Run the target application instance on the destination mobile edge host.
  • the operation is performed according to the running process and the state information of the snapshot.
  • the method further includes: after the snapshot is restored to the destination application instance on the target mobile edge host, the data packet saved by the source mobile edge host is sent to the saved sequence in the order of saving. And the destination application instance, and then sending the data packet saved by the destination mobile edge host to the destination application instance according to the saved sequence.
  • the edge computing mobile service obtains the user's mobile event from a radio network information service (RNIS) that resides on the mobile edge host.
  • RIS radio network information service
  • the Edge Computing Mobile Service monitors the mobile events of users of all registered application instances. Once the edge computing mobile service detects that a user of an application instance has cross-host switching, the edge computing mobile service notifies the mobile edge orchestrator.
  • the edge computing mobile service temporarily caches the data sent by the user to the application instance, and after the application instance is restored, the edge computing mobile service sequentially sends the cached data to the destination application for processing.
  • the virtualization architecture needs to support the ability to take snapshots and snapshot synchronization.
  • the mobile edge arranger and the virtual architecture manager need to support recovery of the snapshot, including allocating resources according to the application configuration file of the original application package corresponding to the application instance, and loading the captured snapshot on the allocated resource, according to the configuration.
  • the additional environment variables for files and snapshots make the necessary configuration of the snapshot.
  • the source mobile edge host is simply referred to as a source host
  • the destination mobile edge host is simply referred to as a destination host.
  • Figure 5 depicts a schematic diagram of a method of migrating an application instance from a source host to a destination host using a snapshot method.
  • the terminal switches from the base station to which the source host is associated to the base station to which the destination host is associated.
  • the data sent by the terminal to the source application instance is forwarded to the source host through the destination host.
  • the notification source and the destination host perform snapshot synchronization.
  • the destination host instantiates the snapshot.
  • the destination host also starts the data cache at the same time.
  • the cached data is sent to the restored application.
  • the instance is processed.
  • the destination host sends the data directly to the restored application instance.
  • Figure 6 is a schematic diagram of the system architecture corresponding to Figure 5.
  • the source application instance 102 is located at the source host 101, and the virtualization framework 104 located in the source host 101 is responsible for taking snapshots 105 of the source application instance 102.
  • the snapshot 105 is copied to the destination host 106 during the migration process and restored to the destination application instance 107.
  • the edge computing mobile service 110 located in the edge computing platform 108 in the destination host 106 is responsible for buffering the data sent by the terminal to the destination application instance 107, and the data is stored in the cache in the edge computing mobile service 110. .
  • the edge computing mobile service 110 sends the cached data to the destination application instance 107 in order.
  • the router 115, and the edge computing platform 103 located in the source host 101 will all participate in the migration process.
  • the source host 101 and the destination host 106 are relatively speaking, and the destination host 106 can also implement the function of the source host 101. Accordingly, the source host 101 can also implement the function of the destination host 106. Based on such understanding, the destination host 106 The same also includes the virtualization architecture 109.
  • FIG. 7 is a schematic diagram 1 of interaction of a migration process according to an embodiment of the present invention.
  • an edge computing mobile service and a wireless network information service are all located in a mobile edge host.
  • the source VIM refers to the source virtualization manager, and the destination VIM refers to the destination virtualization manager.
  • the migration process includes the following steps:
  • the application on the terminal communicates with the source instance located at the source host. Before the snapshot is migrated, the terminal has switched to the base station associated with the destination host. The communication between the terminal and the source instance is forwarded to the source host through the destination host, and then forwarded to the source application instance by the source host.
  • the mobile edge orchestrator decides to initiate the migration of the application instance.
  • the mobile edge orchestrator decides whether to apply the application instance according to the requirements of the application instance (such as delay, load), the attributes of the target host, and the like. Migrate to the destination host and select the destination host for the application.
  • the mobile edge orchestrator sends a snapshot migration request message to the edge platform manager corresponding to the source host.
  • the edge platform manager corresponding to the source host sends a snapshot migration preparation message to the virtual infrastructure manager associated with the source host.
  • the virtual infrastructure manager associated with the source host prepares a snapshot, and prepares to synchronize the snapshot to send a response message to the edge platform manager corresponding to the source host.
  • the virtual infrastructure manager associated with the source host can assign a token to the subsequent synchronization, and the token is sent to the virtual infrastructure manager associated with the destination host through the mobile edge orchestrator, and subsequently
  • the virtual fabric manager associated with the source host is sent so that the virtual fabric manager associated with the source host validates the snapshot synchronization request.
  • the virtual infrastructure manager associated with the source host sends a response message to the mobile edge orchestrator.
  • the virtual infrastructure manager associated with the source host sends information about the virtual infrastructure manager associated with the source host, such as URL, IP address, token, etc., to the mobile edge orchestrator.
  • the mobile edge orchestrator sends a request for snapshot migration to the edge platform manager corresponding to the destination host, where the request carries the information of the application instance to be migrated and the information of the source host.
  • the mobile edge arranger can set the snapshot synchronization delay. When the time required for the snapshot synchronization is less than the set snapshot synchronization delay, the destination host stops the subsequent snapshot synchronization, and stops sending the data from the terminal to the source application instance. And start to restore a snapshot of the application instance on the destination host. In order to reduce the snapshot recovery delay, the mobile edge orchestrator can request the destination edge platform manager to allocate virtual computing, storage and network resources for the application instance to be migrated.
  • the destination edge platform manager sends a synchronous snapshot request to the virtual infrastructure manager associated with the destination host. Based on the request of the mobile edge orchestrator, the destination edge platform manager also requests the virtual infrastructure manager associated with the destination host to allocate virtual computing, storage, and network resources.
  • the virtual infrastructure manager associated with the destination host sends a response message to the destination edge platform manager for the virtual infrastructure manager associated with the destination host to be migrated.
  • the destination host The associated virtual fabric manager allocates virtual computing, storage, and network resources as needed, prepares the virtual machine, and waits for the migration of the application instance.
  • the virtual infrastructure manager associated with the destination host initiates a snapshot of the synchronized application instances between the virtual fabric managers associated with the source host.
  • the virtual infrastructure manager associated with the source host only needs to apply the source application instance.
  • the snapshot is sent to the virtual infrastructure manager associated with the destination host in a different part of the original image in the virtual fabric manager associated with the destination host (ie, the portion that changed during runtime).
  • the virtual infrastructure manager associated with the destination host and the virtual infrastructure manager associated with the source host further synchronize the changes of the application instance snapshot (on the last synchronization) The change that occurred during the period) until the image synchronization time is less than the snapshot synchronization delay.
  • the virtual infrastructure manager associated with the destination host sends the snapshot synchronization completion to the destination edge platform manager.
  • the destination edge platform manager can send the message to the mobile edge orchestrator.
  • the destination edge platform manager commands the edge computing platform to cache data for the application.
  • the edge computing platform configures a forwarding plane filter to redirect data sent to the application instance being migrated to the edge computing mobile service located at the edge computing platform and cache it. If the snapshot recovery time is long, you can consider sending the data to the source application instance while the data is cached locally, so as to shorten the service interruption caused by the application instance migration, and the service on the terminal does not sense the migration of the application instance.
  • step 10 the snapshot synchronization completion message is sent to the mobile edge orchestrator, and the mobile edge orchestrator sends a command to instantiate the application snapshot to the destination virtual architecture manager through the destination edge platform manager; otherwise, the destination edge platform The manager sends a command to instantiate the application snapshot directly to the destination virtual infrastructure manager.
  • the destination virtual architecture manager allocates the required computing, storage, and network resources for the application snapshot to be virtualized, and copies the snapshot to be restored to the allocated resource to resume operation, and performs necessary recovery on the restored snapshot. Configuration, such as configuring an IP address for it. After the snapshot resumes running, the destination virtual architecture manager sends an instantiation completion response message to the destination edge platform manager.
  • the destination edge platform manager sends an instance recovery notification to the edge computing platform in the destination host.
  • the edge computing platform in the destination host After receiving the instance recovery notification from the destination edge platform manager, the edge computing platform in the destination host sends the data cached by the application instance to the restored target application instance in sequence. Moreover, the edge computing platform in the destination host updates the forwarding rule, and redirects the data sent by the terminal to the source or destination application instance to the destination application instance.
  • the destination address of the data packet sent by the terminal to the application instance may be the address of the source application instance or the address of the new application instance. Before the terminal updates the destination address of the application, the terminal still sends data to the address of the source application instance.
  • the edge platform should be configured to allow the data sent by the terminal to the source application instance address to be sent to the destination application instance. If the destination host forwards the data to the source application while the data is being cached, the destination host should discard any response data triggered by the cached data packet until the locally cached data is processed and the target application instance is started. The response packet is sent to the terminal.
  • the edge computing platform in the destination host sends a response message to the destination edge platform manager.
  • the destination edge platform manager sends a snapshot migration complete message to the mobile edge orchestrator.
  • the mobile edge orchestrator sends an instance termination request message to the source edge platform manager to terminate the source application instance.
  • the source edge platform manager sends an instance termination notification message to the edge computing platform in the source host.
  • the edge computing platform in the source host sends a final instance notification to the source application instance, so that the source application instance can gracefully close.
  • Edge calculation in the source host after the source application instance finishes preparing for shutdown The platform deletes configuration information such as DNS rules and traffic filtering rules configured for the source application instance, and sends the instance termination completion to the source edge platform manager.
  • the source edge platform manager commands the virtual infrastructure manager associated with the source host to release the resources occupied by the source instance.
  • the source edge platform manager After the virtual infrastructure manager associated with the source host releases the resources occupied by the completed instance, the source edge platform manager notifies the mobile edge orchestrator that the snapshot migration is completed.
  • Figure 8 depicts another schematic diagram of a method of migrating an application instance from a source host to a destination host using a snapshot method.
  • the mobile edge orchestrator predicts the moving direction of the terminal, and notifies the source and destination mobile edge hosts to perform snapshot synchronization in advance before the terminal switches to the new location, so as to quickly switch to the destination mobile edge host when the terminal actually switches.
  • the switch actually occurs a sufficiently new snapshot has been saved on the destination mobile edge host, and the mobile edge orchestrator can directly command the destination mobile edge host to instantiate the locally synchronized snapshot.
  • the source host needs to cache the data packet that was processed by the last snapshot shooting point, so that the running snapshot will be resumed on the destination host (ie, the destination application instance).
  • the status is updated to be the same as the source application.
  • a synchronized snapshot between the source host and the destination host determines which destination hosts the source host synchronizes the snapshot to based on the prediction of the terminal's movement trajectory.
  • the source host starts the data cache, and the data sent to the source application instance is cached locally until the snapshot is taken or the application instance is migrated.
  • the source host receives a notification message that the terminal from the source base station is ready to switch.
  • the destination host instantiates a locally saved snapshot (last synchronized to a local snapshot).
  • the source application on the source host continues to serve the terminal until the snapshot is restored in the destination host, and the destination host initiates local caching.
  • the source host sends the locally cached data to the destination host. After the application instance is restored in the target host, the destination host first sends the cached data sent from the source host to the destination application instance in sequence, and then sends the locally cached data directly sent from the terminal to the destination application instance.
  • Figure 9 is a schematic diagram of the system architecture corresponding to Figure 8.
  • the source application instance 102 is located at the source host 101, and the virtualization framework 104 located in the source host 101 is responsible for taking snapshots 105 of the source application instance 102.
  • the snapshot 105 is copied to the destination host 106 during the migration process and restored to the destination application instance 107.
  • the edge computing mobile service 116 in the edge computing platform 103 in the source host 101 begins to buffer the data sent to the source application instance.
  • the edge computing platform 108 of the destination host caches the data sent to the source or destination application instance before processing the cached data of the source host 101.
  • the edge computing platform 108 After the target application instance 107 is successfully restored, the edge computing platform 108 firstly sends the data received from the source host to the destination application instance 107 in sequence, and then sequentially sends the locally buffered data directly received by the terminal to the destination application instance 107. .
  • the source platform manager 111 and the source virtualization architecture manager 112 responsible for the source host 101, the destination platform manager 113 responsible for the destination host 106, the destination virtualization architecture manager 114, and the mobile edge computing The arranger 115 will all participate in the migration process.
  • FIG. 10 is a schematic diagram of interaction of a migration process according to an embodiment of the present invention.
  • an edge computing mobile service a wireless network information service, and a Service Registry are all located in a mobile edge host.
  • the source VIM refers to the source virtualization manager
  • the destination VIM refers to the destination virtualization manager; the migration process includes the following steps:
  • the application on the terminal communicates with the source instance located at the source host.
  • the communication between the terminal and the source instance is forwarded to the source application instance through the source host, or forwarded to the source host through the destination host, and then forwarded to the source application instance by the source host.
  • Snapshot synchronization between the source virtualization manager and the destination virtualization manager The mobile orchestrator decides which virtualization managers to synchronize snapshots as needed. Mobile organizer can be based on the end The behavior of the terminal, such as the movement trajectory and the historical movement rule of the terminal, determines which base stations the terminal is to switch to, and then decides whether to synchronize the snapshot of the application instance to the host associated with the target base station in advance to accelerate the migration of the application instance during the handover process. . After the delay of snapshot synchronization between the source virtualization manager and the destination virtualization manager is less than a certain threshold, periodic snapshot synchronization is performed between the source and destination virtualization managers.
  • the edge computing platform in the source host starts the data caching function, and the cache is from the time of the snapshot to the next snapshot or from the last snapshot until the end user data is switched to the destination host.
  • the received data sent by the terminal to the application instance is used to restore the destination application instance to the state of the source application instance before the terminal is switched off by using the cached data.
  • the edge computing platform in the source host receives the mobile event of the terminal.
  • the mobile event indicates that the terminal is ready to switch or the terminal has switched off.
  • the edge computing platform in the source host reports the mobile event of the terminal to the mobile edge orchestrator through the source host platform manager.
  • the mobile event includes a terminal ID in which a mobile event occurs, an application instance that the terminal is accessing, information of the target base station, and the like.
  • the mobile edge orchestrator decides whether to initiate the migration of the application instance.
  • the mobile edge orchestrator decides whether to migrate the application instance to the destination host according to the requirements of the application instance (such as delay, load) that the terminal that the terminal is moving, and the attributes of the destination host, and selects the destination host for the application. If the mobile edge orchestrator decides to migrate the application instance, the mobile edge orchestrator sends an instantiated snapshot command to the corresponding edge platform manager of the destination host.
  • the destination edge platform manager sends an instantiation snapshot request to the virtual infrastructure manager associated with the destination host.
  • the virtual infrastructure manager associated with the destination host allocates the required computing, storage, and network resources to the snapshot, and copies the snapshot to the allocated resources to resume operation, and performs necessary configuration on the snapshot, for example, It is configured with an IP address, etc.
  • the destination edge platform manager sends an instance recovery notification to the edge computing platform in the destination host.
  • the edge computing platform in the destination host notifies the destination application instance that the recovery is complete.
  • the edge computing platform in the destination host configures the local forwarding rule to redirect the data sent to the source application instance and the destination application instance to the local edge computing platform, and the local edge computing platform starts to cache the data.
  • the edge computing platform in the destination host sends a response message to the destination edge platform manager.
  • the destination edge platform manager sends an instantiated snapshot completion message to the mobile edge orchestrator.
  • the mobile edge orchestrator sends a forwarding cache data request message to the source edge computing platform by using the source platform manager, and requests the source edge computing platform to send the locally cached data to the destination edge platform.
  • the source edge computing platform sends the cached data to the destination edge computing platform in the order of the cache, and then sends the data to the destination application instance by the destination edge computing platform. During this period, the destination application instance processes the cached data packet and the outgoing data packets are set to be discarded, thereby preventing the terminal from receiving duplicate data packets. Until the destination edge computing platform determines that all cached data has been processed, the destination edge computing edge platform is enabled to allow the destination application to send data packets to the terminal.
  • the destination edge computing platform After processing the cached data of the source edge computing platform, the destination edge computing platform sends the locally cached data to the destination application in sequence. After all the locally cached data is processed, the destination edge computing platform configures the forwarding rule to send all data sent to the destination or source application instance directly to the destination application instance without local caching.
  • the mobile edge orchestrator sends a final instance command to the source platform manager.
  • the source platform manager notifies the source host of the edge computing platform to terminate the instance.
  • the edge computing platform in the source host sends a final instance notification to the source application instance, so that the source application instance can be gracefully closed.
  • Edge calculation in the source host after the source application instance finishes preparing for shutdown The platform sends an instance termination completion to the source edge platform manager.
  • the source edge platform manager commands the virtual infrastructure manager associated with the source host to release the resources occupied by the source instance.
  • the source edge platform manager After the virtual infrastructure manager associated with the source host releases the resources occupied by the completed instance, the source edge platform manager notifies the mobile edge orchestrator instance that the termination is complete.
  • FIG. 11 is a first schematic structural diagram of a device for migrating an application instance according to an embodiment of the present invention. As shown in FIG. 11, the device includes:
  • the snapshot unit 1101 is configured to take a snapshot of the source application instance
  • the snapshot synchronization unit 1102 is configured to perform snapshot synchronization between the source mobile edge host and the destination mobile edge host, so that the destination mobile edge host synchronizes the snapshot to the destination mobile edge host to resume operation;
  • the snapshot is a running space of the source application instance at a shooting time, and the running space includes a running process and status information.
  • the snapshot synchronization unit 1102 is further configured to compare the captured snapshot with the snapshot sent when the snapshot was last synchronized, and send the changed portions of the two snapshots to the destination mobile edge host; wherein, when sent to the destination mobile When the edge host's transmission duration is greater than the set threshold, snapshot shooting and snapshot synchronization are performed again.
  • the device further includes:
  • the storage unit 1103 is configured to: after the snapshot is taken for the last time, save the data packet sent by the terminal to the source application instance, where the last transmission time corresponding to the snapshot shooting is less than or equal to the set threshold;
  • the sending unit 1104 is configured to send the saved data packets to the destination application instance in the saved order after the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host.
  • the source mobile edge host or the destination mobile edge host saves a data packet sent by the terminal to the source application instance
  • the data packet saved by the source mobile edge host or the data packet saved by the destination edge host and simultaneously sent to the source application instance is first The saved sequence is sent to the destination application instance; the data packets saved by the destination mobile edge host and not sent to the source application instance are sent to the destination application instance in the saved order.
  • each unit in the device migrated by the application instance may be a Central Processing Unit (CPU) or a Micro Processor Unit in a device migrated by the application instance. , MPU), or Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
  • CPU Central Processing Unit
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • FIG. 12 is a second structural diagram of a device for migrating an application instance according to an embodiment of the present invention. As shown in FIG. 12, the device includes:
  • the receiving unit 1201 is configured to receive a snapshot of the source application instance sent by the source mobile edge host;
  • the recovery unit 1202 is configured to restore the snapshot to the destination application instance on the device
  • the running unit 1203 is configured to run the target application instance on the device. When the target application instance is run, the running is performed according to the running process and status information of the snapshot.
  • the device further includes:
  • the saving unit 1204 is configured to save the data packet sent by the terminal to the destination application instance before the snapshot is restored to the destination application instance on the device.
  • the sending unit 1205 is configured to: after the snapshot is restored to the destination application instance on the device, send the saved data packet to the destination application instance in a saved sequence.
  • the sending unit 1205 is further configured to: after the snapshot is restored to the destination application instance on the device, first send the data packets saved by the source mobile edge host according to the saved sequence And sending the data packet saved by the device to the destination application instance according to the saved sequence.
  • the device further includes: a setting unit 1206, configured to set a traffic filtering rule, to send data sent by the terminal to the source application instance and/or the destination application instance to the destination application located on the destination mobile edge host according to the traffic filtering rule.
  • the instance or destination moves the edge on the mobile host to calculate the mobile service.
  • each unit in the device migrated by the application instance may be implemented by a CPU, an MPU, or a DSP, or an FPGA in a device migrated by the application instance.
  • FIG. 13 is a third structural diagram of a device for migrating an application instance according to an embodiment of the present invention. As shown in FIG. 13, the device includes:
  • the sending unit 1301 is configured to send a snapshot synchronization command to the source mobile edge sink and/or the destination mobile edge host;
  • the snapshot synchronization command is used to control snapshot synchronization between the source mobile edge host and the destination mobile edge host.
  • the device further includes:
  • the specifying unit 1302 is configured to: when the snapshot synchronization command is sent, specify a snapshot synchronization delay threshold;
  • the receiving unit 1303 is configured to receive the snapshot synchronization completion message notified by the source mobile edge host or the destination mobile edge host when the snapshot transmission duration is less than the snapshot synchronization delay threshold.
  • the sending unit 1301 is further configured to send an instantiated snapshot command to the destination mobile edge host;
  • the instantiated snapshot command is used to control the destination mobile edge host to perform instantiation of the snapshot.
  • each unit in the device migrated by the application instance may be implemented by a CPU, an MPU, or a DSP, or an FPGA in a device migrated by the application instance.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • an embodiment of the present invention further provides a computer storage medium, wherein a computer program is configured, and the computer program is configured to perform a method for migrating an application instance in the embodiment of the present invention.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the source mobile edge host performs snapshot shooting on the source application instance; the source mobile edge host synchronizes with the target mobile edge host to synchronize the target mobile edge host to the destination mobile edge host.
  • the snapshot is resumed; wherein the snapshot is a running space of the source application instance at the time of shooting, and the running space includes running process and status information.
  • the mobile edge host receives a snapshot of the source application instance sent by the source mobile edge host; restores the snapshot to the destination application instance on the destination mobile edge sink; and runs the destination application instance on the destination mobile edge host; When the target application instance is run, the operation is performed according to the running process and the state information of the snapshot. It can be seen that when the location of the terminal changes, the application instance is migrated from the source mobile edge host to the destination mobile edge host by using the snapshot mode, and the continuity of the application instance operation is ensured during the migration.

Abstract

Provided are a method and a device for migration of application instance, and a computer storage medium, comprising: capturing, by a source mobile edge host, a snapshot of a source application instance; and performing the snapshot synchronization between the source mobile edge host and a destination mobile edge host, so that the destination mobile edge host restores the running of the snapshot synchronized to the destination mobile edge host, wherein the snapshot being a running space of the source application instance at a capturing time, the running space comprising a running process and status information. The destination mobile edge host receives the snapshot of the source application instance sent by the source mobile edge host, the snapshot is restored into a destination application instance on the destination mobile edge host, and the destination application instance is run on the destination mobile edge host. When the destination application instance is run, the running is performed in accordance with the running process and the status information of the snapshot.

Description

一种应用实例迁移的方法及设备、计算机存储介质Method and device for application instance migration, computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请基于申请号为201610252124.8、申请日为2016年04月21日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。The present application is based on a Chinese patent application filed on Apr. 21, 2016, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明涉及通信领域中的实例迁移技术,尤其涉及一种应用实例迁移的方法及设备、计算机存储介质。The present invention relates to an instance migration technology in the field of communications, and in particular, to a method and device for application instance migration, and a computer storage medium.
背景技术Background technique
移动边缘计算(MEC,Mobile Edge Computing)通过将应用(如视频流的边缘化、本地缓存内容分发网络(CDN,Content Delivery Network)等)部署在靠近基站等接入点的位置来降低接入时延、节省带宽、提高吞吐量。欧洲电信标准化协会(ETSI,European Telecommunications Standards Institute)MEC工作组定义了移动边缘计算的架构,如图1所示。Mobile Edge Computing (MEC, Mobile Edge Computing) reduces access by deploying applications such as edge streaming of video streams, local content delivery network (CDN, etc.) to locations close to access points such as base stations. Delay, save bandwidth, and increase throughput. The MEC Working Group of the European Telecommunications Standards Institute (ETSI) defines the architecture of mobile edge computing, as shown in Figure 1.
在该架构中,移动边缘宿主(Mobile Edge Host)包括虚拟架构(Virtualization infrastructure),其上有数据转发功能(Data plane)。在移动边缘宿主上还驻留着一个移动边缘平台(Mobile edge platform)和若干移动边缘应用(ME app,Mobile Edge application)。移动边缘平台为移动边缘应用提供若干移动边缘业务(ME service,Mobile Edge service)。移动边缘平台为了支持移动边缘应用和移动边缘业务间的通信,移动边缘平台中包含了业务注册功能(Service registry),该功能提供发布注册机制,用于移动边缘业务发布业务和移动边缘应用签约移动边缘业务。移动边缘平台还为应 用提供域名系统(DNS,Domain Name System)功能,以便应用能将自己的IP地址与全称域名(FQDN,Fully Qualified Domain Name)注册到DNS服务器中。移动边缘平台中的流量规则控制(Traffic rules control)可以控制数据转发功能(Data plane)的转发规则,从而能对流经移动边缘宿主的流量进行重定向,比如,将某个业务流的流量重定向到位于移动边缘宿主上的移动边缘应用。In this architecture, the Mobile Edge Host includes a Virtualization Infrastructure with a Data plane. A mobile edge platform and a number of mobile edge applications (ME app, Mobile Edge application) are also hosted on the mobile edge host. The mobile edge platform provides several mobile edge services (ME services, Mobile Edge services) for mobile edge applications. Mobile Edge Platform In order to support communication between mobile edge applications and mobile edge services, the mobile edge platform includes a service registry, which provides a publish registration mechanism for mobile edge service publishing services and mobile edge application subscription mobiles. Edge business. Mobile edge platform is also suitable Provide the Domain Name System (DNS) function so that the application can register its own IP address and Fully Qualified Domain Name (FQDN) to the DNS server. The traffic rules control in the mobile edge platform can control the forwarding rules of the data plane function, so that the traffic flowing through the mobile edge host can be redirected, for example, the traffic of a certain service flow is redirected. Go to the mobile edge app on the mobile edge host.
移动边缘编排器(Mobile edge orchestrator)负责移动边缘应用的生命周期管理、移动边缘平台的配置、移动边缘平台的选择等。运营支撑系统(OSS,Office of Strategic Services)提供了与第三方的接口,从而可以允许第三方将移动边缘应用加载到移动边缘系统,并触发移动边缘应用的实例化和实例终结等。移动边缘平台管理器(Mobile edge platform manager)负责配置移动边缘平台和移动边缘应用的生命周期管理,比如,将移动边缘应用对应的流量规则和DNS规则配置到移动边缘平台、从虚拟化管理器(Virtualization infrastructure manager)中申请资源,并加载相应的移动边缘应用。虚拟化管理器(Virtualization infrastructure manager)负责移动边缘宿主中虚拟化架构(Virtualization infrastructure)的虚拟资源的管理,分配虚拟资源,加载移动边缘应用软件包等。The Mobile Edge orchestrator is responsible for lifecycle management of mobile edge applications, configuration of mobile edge platforms, and selection of mobile edge platforms. The Office of Strategic Services (OSS) provides an interface to third parties that allows third parties to load mobile edge applications into the mobile edge system and trigger instantiation and instance termination of mobile edge applications. The Mobile Edge platform manager is responsible for configuring the lifecycle management of the mobile edge platform and the mobile edge application, for example, configuring the mobile edge application corresponding traffic rules and DNS rules to the mobile edge platform, and from the virtualization manager ( Apply resources in the Virtualization infrastructure manager and load the corresponding mobile edge application. The Virtualization Infrastructure Manager is responsible for managing the virtual resources of the Virtualization Infrastructure in the edge host, allocating virtual resources, and loading mobile edge application software packages.
移动边缘宿主之间的接口Mp3用于支持由于用户移动引起的跨移动边缘宿主间的通信,比如,支持用户移动后在新旧平台间的移动边缘应用实例的上下文传递或者移动边缘应用的迁移等。The interface Mp3 between the mobile edge hosts is used to support communication between the mobile edge hosts due to user movement, for example, context transfer of the mobile edge application instance between the old and new platforms after the user moves, or migration of the mobile edge application.
在移动网络中,由于终端具有移动性,将应用部署到网络边缘位置,为了保持业务的连续性,有时却会产生路径的迂回(如,终端移动后应用仍然驻留在原来的接入点)。In a mobile network, because the terminal has mobility, the application is deployed to the edge of the network. In order to maintain the continuity of the service, sometimes the path is detoured (for example, the application still resides at the original access point after the terminal moves) .
为了减少这种移动性引起的路径不优化,一种方法是在终端移动到新的位置时,将应用迁移到用户当前的接入点位置。由于虚拟化技术的广泛 使用,应用的迁移并非难事。然而,当应用需要根据用户的状态进行处理时,简单将应用实例迁移到新的位置并不能保证业务的连续性。In order to reduce the path non-optimization caused by such mobility, one method is to migrate the application to the user's current access point location when the terminal moves to a new location. Due to the wide range of virtualization technologies Use, application migration is not difficult. However, when an application needs to be processed according to the state of the user, simply migrating the application instance to a new location does not guarantee continuity of the business.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例提供了一种应用实例迁移的方法及设备、计算机存储介质。To solve the above technical problem, an embodiment of the present invention provides a method and device for migrating an application instance, and a computer storage medium.
本发明实施例提供的应用实例迁移的方法,包括:The method for migrating an application instance provided by the embodiment of the present invention includes:
源移动边缘宿主对源应用实例进行快照拍摄;The source mobile edge host takes a snapshot of the source application instance;
源移动边缘宿主与目的移动边缘宿主间进行快照同步,以使所述目的移动边缘宿主将同步到目的移动边缘宿主上的快照恢复运行;Performing snapshot synchronization between the source mobile edge host and the destination mobile edge host, so that the destination mobile edge host will resume the snapshot synchronized to the destination mobile edge host;
其中,所述快照是所述源应用实例在拍摄时刻的运行空间,所述运行空间包括运行流程和状态信息。The snapshot is a running space of the source application instance at a shooting time, and the running space includes a running process and status information.
本发明实施例中,所述源移动边缘宿主与目的移动边缘宿主间进行快照同步,包括:In the embodiment of the present invention, the snapshot synchronization between the source mobile edge host and the destination mobile edge host includes:
源移动边缘宿主将所拍摄的快照与上次进行快照同步时所发送的快照进行比较,将两个快照变化的部分发送给目的移动边缘宿主;The source mobile edge host compares the captured snapshot with the snapshot sent when the snapshot was last synchronized, and sends the two snapshot changes to the destination mobile edge host;
其中,当发送给目的移动边缘宿主的发送时长大于设定阈值时,再次进行快照拍摄以及快照同步。Wherein, when the transmission duration sent to the destination mobile edge host is greater than a set threshold, snapshot shooting and snapshot synchronization are performed again.
本发明实施例中,所述方法还包括:In the embodiment of the present invention, the method further includes:
当最后一次进行快照拍摄后,保存终端发送给所述源应用实例的数据包,所述最后一次进行快照拍摄对应的发送时长小于等于设定阈值;After the snapshot is taken for the last time, the data packet sent by the terminal to the source application instance is saved, and the last transmission time corresponding to the snapshot shooting is less than or equal to the set threshold;
当所述源应用实例的快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。After the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host, the saved data packets are sent to the destination application instance in the saved order.
本发明实施例中,所述源移动边缘宿主或所述目的移动边缘宿主保存终端发送给所述源应用实例的数据包; In the embodiment of the present invention, the source mobile edge host or the destination mobile edge host saves a data packet sent by the terminal to the source application instance;
当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包,或目的边缘宿主保存的且同时发往源应用实例的数据包,按照保存的先后顺序发送给所述目的应用实例;再将所述目的移动边缘宿主保存的,且未被发往源应用实例的数据包,按照保存的先后顺序发送给所述目的应用实例。After the snapshot is restored to the destination application instance on the destination mobile edge host, the data packet saved by the source mobile edge host or the data packet saved by the destination edge host and simultaneously sent to the source application instance is first The saved sequence is sent to the destination application instance; the data packets saved by the destination mobile edge host and not sent to the source application instance are sent to the destination application instance in the saved order.
本发明另一实施例提供的应用实例迁移的方法,包括:A method for migration of an application instance provided by another embodiment of the present invention includes:
移动边缘编排器向源移动边缘宿和/或目的移动边缘宿主发送快照同步命令;The mobile edge orchestrator sends a snapshot synchronization command to the source mobile edge sink and/or the destination mobile edge host;
其中,所述快照同步命令用于控制所述源移动边缘宿主与所述目的移动边缘宿主间进行快照同步。The snapshot synchronization command is used to control snapshot synchronization between the source mobile edge host and the destination mobile edge host.
本发明实施例中,所述方法还包括:In the embodiment of the present invention, the method further includes:
移动边缘编排器在发送快照同步命令时,指定快照同步时延阈值;The mobile edge orchestrator specifies a snapshot synchronization delay threshold when sending a snapshot synchronization command;
当快照发送时长小于所述快照同步时延阈值时,所述移动边缘编排器接收所述源移动边缘宿主或目的移动边缘宿主通知的所述快照同步完成消息。When the snapshot transmission duration is less than the snapshot synchronization delay threshold, the mobile edge orchestrator receives the snapshot synchronization complete message notified by the source mobile edge host or the destination mobile edge host.
本发明实施例中,所述方法还包括:In the embodiment of the present invention, the method further includes:
移动边缘编排器给目的移动边缘宿主发送实例化快照命令;The mobile edge orchestrator sends an instantiated snapshot command to the destination mobile edge host;
其中,所述实例化快照命令用于控制所述目的移动边缘宿主执行所述快照的实例化。The instantiated snapshot command is used to control the destination mobile edge host to perform instantiation of the snapshot.
本发明另一实施例提供的应用实例迁移的方法,包括:A method for migration of an application instance provided by another embodiment of the present invention includes:
目的移动边缘宿主接收源移动边缘宿主发送的源应用实例的快照;The destination mobile edge host receives a snapshot of the source application instance sent by the source mobile edge host;
将所述快照在所述目的移动边缘宿上恢复成目的应用实例;Restoring the snapshot to the destination application instance on the destination mobile edge sink;
在所述目的移动边缘宿主上运行所述目的应用实例;Running the target application instance on the destination mobile edge host;
其中,运行所述目的应用实例时,根据所述快照的运行流程和状态信息进行运行。 When the target application instance is run, the operation is performed according to the running process and the state information of the snapshot.
本发明实施例中,所述方法还包括:In the embodiment of the present invention, the method further includes:
将所述快照在所述目的移动边缘宿上恢复成目的应用实例前,保存终端发送给所述目的应用实例的数据包;Before the snapshot is restored to the destination application instance on the destination mobile edge sink, the data packet sent by the terminal to the destination application instance is saved;
当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。After the snapshot is restored to the destination application instance on the destination mobile edge host, the saved data packets are sent to the destination application instance in the saved order.
本发明实施例中,所述方法还包括:In the embodiment of the present invention, the method further includes:
当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例,再将所述目的移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例。After the snapshot is restored to the destination application instance on the destination mobile edge host, the data packets saved by the source mobile edge host are first sent to the destination application instance in the saved order, and then the destination is moved. The data packets saved by the edge host are sent to the destination application instance in the order in which they are saved.
本发明实施例中,所述方法包括:In the embodiment of the present invention, the method includes:
在所述目的移动边缘宿主中设置流量过滤规则,以根据所述流量过滤规则将终端发送给源应用实例和/或目的应用实例的数据发送给位于目的移动边缘宿主上的目的应用实例或目的移动边缘宿主上的边缘计算移动服务。Setting a traffic filtering rule in the destination mobile edge host to send data sent by the terminal to the source application instance and/or the destination application instance to the destination application instance or destination mobile located on the destination mobile edge host according to the traffic filtering rule. The edge on the edge host computes the mobile service.
本发明实施例中,当所述目的移动边缘宿主收到实例化快照请求或者完成快照实例化后,在所述目的移动边缘宿主中设置所述流量过滤规则。In the embodiment of the present invention, after the destination mobile edge host receives the instantiation snapshot request or completes the snapshot instantiation, the traffic filtering rule is set in the destination mobile edge host.
本发明实施例中,当所述目的移动边缘宿主收到实例化快照请求或者完成快照实例化后,在所述目的移动边缘宿主中设置所述流量过滤规则。In the embodiment of the present invention, after the destination mobile edge host receives the instantiation snapshot request or completes the snapshot instantiation, the traffic filtering rule is set in the destination mobile edge host.
本发明实施例提供的应用实例迁移的设备,包括:The device for migrating an application instance provided by the embodiment of the present invention includes:
快照单元,配置为对源应用实例进行快照的拍摄;A snapshot unit configured to take a snapshot of the source application instance;
快照同步单元,配置为执行源移动边缘宿主与目的移动边缘宿主间的快照同步,以使所述目的移动边缘宿主将同步到目的移动边缘宿主上的快照恢复运行;a snapshot synchronization unit configured to perform snapshot synchronization between the source mobile edge host and the destination mobile edge host, so that the destination mobile edge host synchronizes the snapshot to the destination mobile edge host to resume operation;
其中,所述快照是所述源应用实例在拍摄时刻的运行空间,所述运行 空间包括运行流程和状态信息。The snapshot is an operation space of the source application instance at a shooting moment, and the operation is performed. The space includes operational processes and status information.
本发明实施例中,所述快照同步单元,还配置为将所拍摄的快照与上次进行快照同步时所发送的快照进行比较,将两个快照变化的部分发送给目的移动边缘宿主;其中,当发送给目的移动边缘宿主的发送时长大于设定阈值时,再次进行快照拍摄以及快照同步。In the embodiment of the present invention, the snapshot synchronization unit is further configured to compare the captured snapshot with the snapshot sent when the snapshot was last synchronized, and send the changed portions of the two snapshots to the destination mobile edge host; When the transmission duration sent to the destination mobile edge host is greater than the set threshold, snapshot shooting and snapshot synchronization are performed again.
本发明实施例中,所述设备还包括:In the embodiment of the present invention, the device further includes:
存储单元,配置为当最后一次进行快照拍摄后,保存终端发送给所述源应用实例的数据包,所述最后一次进行快照拍摄对应的发送时长小于等于设定阈值;a storage unit configured to save a data packet sent by the terminal to the source application instance after the snapshot is taken for the last time, and the sending duration corresponding to the last snapshot taking is less than or equal to a set threshold;
发送单元,配置为当所述源应用实例的快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。The sending unit is configured to send the saved data packets to the destination application instance in the saved order after the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host.
本发明实施例中,所述源移动边缘宿主或所述目的移动边缘宿主保存终端发送给所述源应用实例的数据包;In the embodiment of the present invention, the source mobile edge host or the destination mobile edge host saves a data packet sent by the terminal to the source application instance;
当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包,或目的边缘宿主保存的且同时发往源应用实例的数据包,按照保存的先后顺序发送给所述目的应用实例;再将所述目的移动边缘宿主保存的,且未被发往源应用实例的数据包,按照保存的先后顺序发送给所述目的应用实例。After the snapshot is restored to the destination application instance on the destination mobile edge host, the data packet saved by the source mobile edge host or the data packet saved by the destination edge host and simultaneously sent to the source application instance is first The saved sequence is sent to the destination application instance; the data packets saved by the destination mobile edge host and not sent to the source application instance are sent to the destination application instance in the saved order.
本发明另一实施例提供的应用实例迁移的设备,包括:An apparatus for migrating an application instance provided by another embodiment of the present invention includes:
发送单元,配置为向源移动边缘宿和/或目的移动边缘宿主发送快照同步命令;a sending unit, configured to send a snapshot synchronization command to the source mobile edge sink and/or the destination mobile edge host;
其中,所述快照同步命令用于控制所述源移动边缘宿主与所述目的移动边缘宿主间进行快照同步。The snapshot synchronization command is used to control snapshot synchronization between the source mobile edge host and the destination mobile edge host.
本发明实施例中,所述设备还包括: In the embodiment of the present invention, the device further includes:
指定单元,配置为在发送快照同步命令时,指定快照同步时延阈值;Specifies a unit to be configured to specify a snapshot synchronization delay threshold when sending a snapshot synchronization command.
接收单元,配置为当快照发送时长小于所述快照同步时延阈值时,接收所述源移动边缘宿主或目的移动边缘宿主通知的所述快照同步完成消息。The receiving unit is configured to receive the snapshot synchronization completion message notified by the source mobile edge host or the destination mobile edge host when the snapshot transmission duration is less than the snapshot synchronization delay threshold.
本发明实施例中,所述发送单元,还配置为给目的移动边缘宿主发送实例化快照命令;In the embodiment of the present invention, the sending unit is further configured to send an instantiated snapshot command to the destination mobile edge host.
其中,所述实例化快照命令用于控制所述目的移动边缘宿主执行所述快照的实例化。The instantiated snapshot command is used to control the destination mobile edge host to perform instantiation of the snapshot.
本发明另一实施例提供的应用实例迁移的设备,包括:An apparatus for migrating an application instance provided by another embodiment of the present invention includes:
接收单元,配置为接收源移动边缘宿主发送的源应用实例的快照;a receiving unit, configured to receive a snapshot of a source application instance sent by the source mobile edge host;
恢复单元,配置为将所述快照在所述设备上恢复成目的应用实例;a recovery unit configured to restore the snapshot to the destination application instance on the device;
运行单元,配置为在所述设备上运行所述目的应用实例;其中,运行所述目的应用实例时,根据所述快照的运行流程和状态信息进行运行。The running unit is configured to run the target application instance on the device; wherein, when the target application instance is run, running according to the running process and status information of the snapshot.
本发明实施例中,所述设备还包括:In the embodiment of the present invention, the device further includes:
保存单元,配置为将所述快照在所述设备上恢复成目的应用实例前,保存终端发送给所述目的应用实例的数据包;a saving unit, configured to save the data packet sent by the terminal to the destination application instance before the snapshot is restored to the destination application instance on the device;
发送单元,配置为当所述快照在所述设备上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。The sending unit is configured to send the saved data packet to the destination application instance in the saved order after the snapshot is restored to the destination application instance on the device.
本发明实施例中,所述发送单元,还配置为当所述快照在所述设备上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例,再将所述设备保存的数据包按照保存的先后顺序发送给所述目的应用实例。In the embodiment of the present invention, the sending unit is further configured to: after the snapshot is restored to the target application instance on the device, send the data packet saved by the source mobile edge host to the storage device in the order of saving. The application example is described, and the data packets saved by the device are sent to the destination application instance in the order of saving.
本发明实施例中,所述设备还包括:设置单元,配置为设置流量过滤规则,以根据所述流量过滤规则将终端发送给源应用实例和/或目的应用实例的数据发送给位于目的移动边缘宿主上的目的应用实例或目的移动边缘 宿主上的边缘计算移动服务。In the embodiment of the present invention, the device further includes: a setting unit, configured to set a traffic filtering rule, to send, according to the traffic filtering rule, data sent by the terminal to the source application instance and/or the destination application instance to the destination mobile edge Destination application instance or destination moving edge on the host The edge on the host calculates the mobile service.
本发明实施例还提供了一种计算机存储介质,本发明实施例提供的计算机存储介质存储有计算机程序,该计算机程序用于执行上述应用实例迁移的方法。The embodiment of the present invention further provides a computer storage medium. The computer storage medium provided by the embodiment of the present invention stores a computer program, and the computer program is used to execute the method for migrating the application instance.
本发明实施例的技术方案中,源移动边缘宿主对源应用实例进行快照的拍摄;源移动边缘宿主与目的移动边缘宿主间进行快照同步,以使所述目的移动边缘宿主将同步到目的移动边缘宿主上的快照恢复运行;其中,所述快照是所述源应用实例在拍摄时刻的运行空间,所述运行空间包括运行流程和状态信息。目的移动边缘宿主接收源移动边缘宿主发送的源应用实例的快照;将所述快照在所述目的移动边缘宿上恢复成目的应用实例;在所述目的移动边缘宿主上运行所述目的应用实例;其中,运行所述目的应用实例时,根据所述快照的运行流程和状态信息进行运行。可见,当终端的位置发生移动变化时,通过快照方式将应用实例由源移动边缘宿主迁移至目的移动边缘宿主,迁移时保障了应用实例运行的连续性。In the technical solution of the embodiment of the present invention, the source mobile edge host performs snapshot shooting on the source application instance; the source mobile edge host and the destination mobile edge host perform snapshot synchronization, so that the destination mobile edge host synchronizes to the destination moving edge. The snapshot on the host resumes running; wherein the snapshot is a running space of the source application instance at the time of shooting, and the running space includes running process and status information. The mobile edge host receives a snapshot of the source application instance sent by the source mobile edge host; restores the snapshot to the destination application instance on the destination mobile edge sink; and runs the destination application instance on the destination mobile edge host; When the target application instance is run, the operation is performed according to the running process and the state information of the snapshot. It can be seen that when the location of the terminal changes, the application instance is migrated from the source mobile edge host to the destination mobile edge host by using the snapshot mode, and the continuity of the application instance operation is ensured during the migration.
附图说明DRAWINGS
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。In the drawings, which are not necessarily to scale, the Like reference numerals with different letter suffixes may indicate different examples of similar components. The drawings generally illustrate the various embodiments discussed herein by way of example and not limitation.
图1为移动边缘计算的架构图;Figure 1 is an architectural diagram of a mobile edge calculation;
图2为本发明实施例的应用实例迁移的方法的流程示意图一;2 is a schematic flowchart 1 of a method for migrating an application instance according to an embodiment of the present invention;
图3为本发明实施例的应用实例迁移的方法的流程示意图二;3 is a schematic flowchart 2 of a method for migrating an application instance according to an embodiment of the present invention;
图4为本发明实施例的移动边缘宿主的结构框图;4 is a structural block diagram of a mobile edge host according to an embodiment of the present invention;
图5为本发明实施例的使用快照法将应用实例从源宿主迁移到目的宿主的方法的示意图一; FIG. 5 is a first schematic diagram of a method for migrating an application instance from a source host to a destination host using a snapshot method according to an embodiment of the present invention; FIG.
图6是对应于图5的系统架构示意图;6 is a schematic diagram of a system architecture corresponding to FIG. 5;
图7为本发明实施例的迁移流程的交互示意图一;FIG. 7 is a schematic diagram 1 of interaction of a migration process according to an embodiment of the present invention;
图8为本发明实施例的使用快照法将应用实例从源宿主迁移到目的宿主的方法的示意图二;FIG. 8 is a second schematic diagram of a method for migrating an application instance from a source host to a destination host by using a snapshot method according to an embodiment of the present invention; FIG.
图9是对应于图8的系统架构示意图;Figure 9 is a schematic diagram of a system architecture corresponding to Figure 8;
图10为本发明实施例的迁移流程的交互示意图二;FIG. 10 is a schematic diagram 2 of interaction of a migration process according to an embodiment of the present invention;
图11为本发明实施例的应用实例迁移的设备的结构组成示意图一;FIG. 11 is a first schematic structural diagram of a device for migrating an application instance according to an embodiment of the present invention;
图12为本发明实施例的应用实例迁移的设备的结构组成示意图二;FIG. 12 is a schematic structural diagram 2 of a device for migrating an application instance according to an embodiment of the present invention;
图13为本发明实施例的应用实例迁移的设备的结构组成示意图三。FIG. 13 is a schematic structural diagram 3 of a device for migrating an application instance according to an embodiment of the present invention.
具体实施方式detailed description
本发明各个实施例的技术方案中,为保证应用实例迁移前后的业务连续性,采用快照法进行应用实例的迁移,即:对源应用实例进行快照的拍摄,以便在需要应用实例迁移时,在目的移动边缘宿主上使用快照将应用实例恢复到迁移前的状态。In the technical solution of the embodiments of the present invention, in order to ensure the business continuity before and after the application instance is migrated, the snapshot method is used to perform the migration of the application instance, that is, the snapshot of the source application instance is taken, so that when the application instance migration is required, Purpose Use a snapshot on the mobile edge host to restore the application instance to its pre-migration state.
图2为本发明实施例的应用实例迁移的方法的流程示意图一,本示例中的应用实例迁移的方法应用于源移动边缘宿主,如图2所示,所述应用实例迁移的方法包括以下步骤:2 is a schematic flowchart of a method for migrating an application instance according to an embodiment of the present invention. The method for migrating an application instance in this example is applied to a source mobile edge host. As shown in FIG. 2, the method for migrating the application instance includes the following steps. :
步骤201:源移动边缘宿主与目的移动边缘宿主间进行快照同步。Step 201: Perform snapshot synchronization between the source mobile edge host and the destination mobile edge host.
具体地,由源移动边缘宿主对源应用实例进行快照的拍摄,并将该快照拷贝到新的移动边缘宿主中恢复运行,这里,将新的移动边缘宿主称为目的移动边缘宿主。将源移动边缘宿主中的应用实例称为源应用实例,将目的移动边缘宿主中的应用实例称为目的应用实例。为了降低快照从源移动边缘宿主拷贝到目的移动边缘宿主的时间,在实际拷贝时,可只源移动边缘宿主中的快照与目的移动边缘宿主中保存的应用映像(或快照)间不同的部分拷贝过去,而无需拷贝整个快照空间。 Specifically, the source mobile application host takes a snapshot of the source application instance and copies the snapshot to a new mobile edge host to resume operation. Here, the new mobile edge host is referred to as the destination mobile edge host. The application instance in the source mobile edge host is referred to as the source application instance, and the application instance in the destination mobile edge host is referred to as the destination application instance. In order to reduce the time from snapshot of the source mobile edge host to the destination mobile edge host, in actual copy, only the partial copy of the snapshot between the mobile edge host and the application image (or snapshot) saved in the destination mobile edge host may be sourced. In the past, there was no need to copy the entire snapshot space.
这里,所述快照是所述源应用实例在拍摄时刻的运行空间,所述运行空间包括运行流程和状态信息。Here, the snapshot is a running space of the source application instance at the time of shooting, and the running space includes running flow and status information.
具体地,快照的意思是应用实例运行时在某一时刻的运行空间,包括所有的运行代码和状态信息。本发明实施例的拍照特指源应用实例在拍摄时刻的运行空间。如此,当所述快照在目的移动边缘宿主恢复运行时,应用实例将从快照拍摄点恢复运行。Specifically, the snapshot means the running space of the application instance at a certain time, including all running code and status information. The photographing of the embodiment of the present invention specifically refers to the running space of the source application instance at the shooting time. As such, when the snapshot resumes running on the destination mobile edge host, the application instance will resume operation from the snapshot capture point.
所述同步过程是在应用实例迁移时发生,或者在应用实例迁移前发生。The synchronization process occurs when the application instance is migrated, or before the application instance is migrated.
所述同步过程可能包括多个迭代的过程,如:The synchronization process may include multiple iterative processes, such as:
第一次快照同步时,源移动边缘宿主将整个快照拷贝到目的移动边缘宿主;When the first snapshot is synchronized, the source mobile edge host copies the entire snapshot to the destination mobile edge host;
后续的快照同步时,源移动边缘宿主将新拍摄快照与上次同步时所拍摄的快照比较,将变化的部分发送给目的移动边缘宿主。During subsequent snapshot synchronization, the source mobile edge host compares the newly taken snapshot with the snapshot taken during the last synchronization and sends the changed portion to the destination mobile edge host.
该同步过程所需花费的传输时延随着迭代次数的增加而逐步减少。当所述同步过程所需时延小于某个阈值时,可认为快照同步完成。The transmission delay required for this synchronization process is gradually reduced as the number of iterations increases. When the synchronization process requires a delay less than a certain threshold, the snapshot synchronization can be considered complete.
若所述同步过程在应用实例迁移前发生,则,即使快照同步时延已经小于某一阈值后,源移动边缘宿主与目的移动边缘宿主间仍然会进行快照同步,只是,此时的快照同步间隔可以按某一预设的周期(如10秒)间隔进行同步。If the synchronization process occurs before the application instance is migrated, the snapshot synchronization interval is still performed between the source mobile edge host and the destination mobile edge host even if the snapshot synchronization delay is less than a certain threshold. The synchronization can be performed at a predetermined period (for example, 10 seconds).
步骤202:在目的移动边缘宿主实例化所述快照。Step 202: Instantiate the snapshot at the destination mobile edge host.
本发明实施例中,从快照同步后到应用实例在目的移动边缘宿主完全恢复这段时间内,如果应用实例发生状态变化,这段时间的状态变化也可能导致业务的不连续。In the embodiment of the present invention, after the snapshot is synchronized and the application instance is completely restored in the target mobile edge host, if the application instance changes state, the state change during the period may also cause the service to be discontinuous.
为此,在快照同步后若仍然有数据包进入到源应用实例,则开始保存从快照同步后进入源应用实例的所有数据包,直到终端的数据流成功切换到目的应用实例为止。在此过程中,源移动边缘宿主可以继续响应用户应 用。当同步的快照在目的移动边缘宿主恢复后,源移动边缘宿主将所保存的上述数据包按保存的先后顺序发生给恢复后的目的应用实例。目的移动边缘宿主需要确认所有从源移动边缘宿主发来的数据包都处理完成后才允许终端直接通过目的移动边缘宿主发送数据包给目的应用实例,若目的移动边缘宿主收到终端直接发给目的移动边缘宿主的数据包,目的移动边缘宿主可以暂时缓存数据包,直到源移动边缘宿主缓存的所有数据都处理完。这样,目的应用实例可在处理完源移动边缘宿主发来的所有数据包后恢复到源移动边缘宿主断点的状态,从而可从断点处开始处理数据,并重新开始回应用户的消息。For this reason, if the data packet still enters the source application instance after the snapshot is synchronized, all the data packets that have entered the source application instance after the synchronization of the snapshot are saved, until the data flow of the terminal is successfully switched to the destination application instance. During this process, the source mobile edge host can continue to respond to user responses. use. After the synchronized snapshot is restored by the destination mobile edge host, the source mobile edge host sends the saved data packets to the restored target application instance in the saved order. The purpose of the mobile edge host needs to confirm that all the data packets sent from the source mobile edge host are processed, and then the terminal is allowed to directly send the data packet to the destination application instance through the destination mobile edge host, if the destination mobile edge host receives the terminal directly for the purpose. Moving the edge host's data packet, the destination mobile edge host can temporarily cache the data packet until all data cached by the source mobile edge host is processed. In this way, the destination application instance can restore the state of the source mobile edge host breakpoint after processing all the packets sent by the source mobile edge host, so that the data can be processed from the breakpoint and the user's message can be restarted.
基于此,本发明一实施例方式中:当进行快照同步后,源边缘计算平台保存终端发送给所述源应用实例的数据包;当所述源应用实例的快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。Based on this, in an embodiment of the present invention, after the snapshot synchronization is performed, the source edge computing platform saves the data packet sent by the terminal to the source application instance; when the snapshot of the source application instance is on the destination mobile edge host After being restored to the destination application instance, the saved data packets are sent to the destination application instance in the order in which they are saved.
基于此,本发明另一实施例方式中:当所述源应用实例的快照在所述目的移动边缘宿主上恢复成目的应用实例前,通知所述目的移动边缘宿主保存终端发送给所述应用实例的数据包,直至所述快照在所述目的移动边缘宿主上恢复成目的应用实例为止。Based on this, in another embodiment of the present invention, before the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host, the destination mobile edge host save terminal is notified to send to the application instance. Packet until the snapshot is restored to the destination application instance on the destination mobile edge host.
为了保证业务连续性,应用除了需要在新应用实例恢复用户的状态信息外,若新实例的IP地址与源实例不同,还需要通知用户更新应用的IP地址。若应用层支持这种IP地址的改变,则可由应用层将新IP地址通知给终端。若应用层不支持IP地址的改变,则需要新移动边缘宿主将源地址为用户IP地址、目的地为源移动边缘宿主的所有数据包转发给在新移动边缘宿主上恢复的新应用实例,为此,新移动边缘宿主需要配置用户面的转发规则,并且,整个边缘计算系统在一段时间内避免将该IP地址分配给其他应用实例。同时,移动边缘计算平台更新DNS系统,将DNS中该应用实例 的域名对应的IP地址更新为新应用实例的IP地址。当用户终端的DNS缓存过期后,终端会发起DNS解析,在此过程中终端可获得新的实例的IP地址,从而可以直接给新实例发送IP数据包。To ensure business continuity, the application needs to notify the user to update the IP address of the application, except that the application needs to restore the user's status information in the new application instance. If the application layer supports such a change in the IP address, the application layer may notify the terminal of the new IP address. If the application layer does not support the change of the IP address, the new mobile edge host needs to forward all the data packets whose source address is the user IP address and whose destination is the source mobile edge host to the new application instance restored on the new mobile edge host. Therefore, the new mobile edge host needs to configure the forwarding rules of the user plane, and the entire edge computing system avoids assigning the IP address to other application instances for a period of time. At the same time, the mobile edge computing platform updates the DNS system, and the application instance in the DNS The IP address corresponding to the domain name is updated to the IP address of the new application instance. After the DNS buffer of the user terminal expires, the terminal initiates DNS resolution. In this process, the terminal can obtain the IP address of the new instance, so that the IP packet can be directly sent to the new instance.
本发明实施例中,使用快照法进行应用实例的迁移,保证了应用实例从断点处无损的恢复(因为快照中包含了运行代码和运行的所有状态信息)。In the embodiment of the present invention, the snapshot method is used to migrate the application instance, and the application instance is guaranteed to be restored from the breakpoint (because the snapshot contains all the running information and running status information).
图3为本发明实施例的应用实例迁移的方法的流程示意图二,本示例中的应用实例迁移的方法应用于目的移动边缘宿主,如图3所示,所述应用实例迁移的方法包括以下步骤:FIG. 3 is a schematic flowchart of a method for migrating an application instance according to an embodiment of the present invention. The method for migrating an application instance in this example is applied to a target mobile edge host. As shown in FIG. 3, the method for migrating the application instance includes the following steps. :
步骤301:目的移动边缘宿主接与源移动边缘宿主间进行应用实例的快照同步。Step 301: Snapshot synchronization of the application instance between the destination mobile edge host and the source mobile edge host.
步骤302:将所述同步到目的移动边缘宿主的快照在所述目的移动边缘宿上恢复成目的应用实例。Step 302: Restore the snapshot synchronized to the destination mobile edge host to the destination application instance on the destination mobile edge sink.
本发明实施例中,所述方法还包括:将所述快照在所述目的移动边缘宿上恢复成目的应用实例前,保存终端发送给所述目的应用实例的数据包;当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。In the embodiment of the present invention, the method further includes: saving the data packet sent by the terminal to the destination application instance before the snapshot is restored to the destination application instance on the destination mobile edge sink; After the target application instance is restored to the destination application instance, the saved data packets are sent to the destination application instance in the saved order.
步骤303:在所述目的移动边缘宿主上运行所述目的应用实例。Step 303: Run the target application instance on the destination mobile edge host.
这里,运行所述目的应用实例时,根据所述快照的运行流程和状态信息进行运行。Here, when the target application instance is run, the operation is performed according to the running process and the state information of the snapshot.
本发明实施例中,所述方法还包括:当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例,再将所述目的移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例。In the embodiment of the present invention, the method further includes: after the snapshot is restored to the destination application instance on the target mobile edge host, the data packet saved by the source mobile edge host is sent to the saved sequence in the order of saving. And the destination application instance, and then sending the data packet saved by the destination mobile edge host to the destination application instance according to the saved sequence.
为了支持基于快照的应用实例无缝迁移,在移动边缘宿主上增加一个 边缘计算移动服务,如图4所示。边缘计算移动服务从驻留在移动边缘宿主上的无线网络信息服务(RNIS,radio network information service)获取用户的移动事件。在应用实例化时,若应用实例有迁移的需求,系统应在边缘计算移动服务中对该应用实例进行注册。边缘计算移动服务监控所有注册的应用实例的用户的移动事件。一旦边缘计算移动服务监测到某一应用实例的用户发生了跨宿主的切换时,边缘计算移动服务通知移动边缘编排器。除此之外,在应用实例迁移过程中,边缘计算移动服务还暂时缓存用户发送给应用实例的数据,在应用实例恢复后边缘计算移动服务按序将缓存的数据发送给目的应用处理。To support seamless migration of snapshot-based application instances, add one to the mobile edge host The edge computing mobile service is shown in Figure 4. The edge computing mobile service obtains the user's mobile event from a radio network information service (RNIS) that resides on the mobile edge host. When the application is instantiated, if the application instance has a migration requirement, the system should register the application instance in the edge computing mobile service. The Edge Computing Mobile Service monitors the mobile events of users of all registered application instances. Once the edge computing mobile service detects that a user of an application instance has cross-host switching, the edge computing mobile service notifies the mobile edge orchestrator. In addition, during the application instance migration process, the edge computing mobile service temporarily caches the data sent by the user to the application instance, and after the application instance is restored, the edge computing mobile service sequentially sends the cached data to the destination application for processing.
同时,为了支持无缝应用实例的迁移,虚拟化架构需支持拍摄快照和快照同步的功能。并且,移动边缘编排器、虚拟架构管理器都需要支持对快照进行恢复,包括,根据应用实例对应的原始应用包的应用配置文件分配资源,并在所分配资源上加载所拍摄的快照,按配置文件和快照的附加的环境变量对快照进行必要配置。At the same time, in order to support the migration of seamless application instances, the virtualization architecture needs to support the ability to take snapshots and snapshot synchronization. In addition, the mobile edge arranger and the virtual architecture manager need to support recovery of the snapshot, including allocating resources according to the application configuration file of the original application package corresponding to the application instance, and loading the captured snapshot on the allocated resource, according to the configuration. The additional environment variables for files and snapshots make the necessary configuration of the snapshot.
本发明下面的各个实施例中,源移动边缘宿主简称为源宿主,目的移动边缘宿主简称为目的宿主。In the following various embodiments of the present invention, the source mobile edge host is simply referred to as a source host, and the destination mobile edge host is simply referred to as a destination host.
图5描述了一种使用快照法将应用实例从源宿主迁移到目的宿主的方法的示意图。在图5中,终端从源宿主所关联的基站切换到了目的宿主所关联的基站。Figure 5 depicts a schematic diagram of a method of migrating an application instance from a source host to a destination host using a snapshot method. In Figure 5, the terminal switches from the base station to which the source host is associated to the base station to which the destination host is associated.
1、终端发送给源应用实例的数据通过目的宿主转发给源宿主。1. The data sent by the terminal to the source application instance is forwarded to the source host through the destination host.
2、移动边缘编排器决定要进行应用实例迁移后,通知源和目的宿主进行快照同步。2. After the mobile edge orchestrator decides to perform the application instance migration, the notification source and the destination host perform snapshot synchronization.
3、当快照同步时延小于某个阈值后,目的宿主将快照实例化。目的宿主同时开始启动数据缓存。3. When the snapshot synchronization delay is less than a certain threshold, the destination host instantiates the snapshot. The destination host also starts the data cache at the same time.
4、目的宿主将快照实例化完成后,将缓存的数据发送给恢复后的应用 实例进行处理。缓存数据处理完后,目的宿主将数据直接发送给恢复后的应用实例。4. After the destination host instantiates the snapshot, the cached data is sent to the restored application. The instance is processed. After the cached data is processed, the destination host sends the data directly to the restored application instance.
图6是对应于图5的系统架构示意图。源应用实例102位于源宿主101,位于源宿主101中的虚拟化架构104负责为源应用实例102拍摄快照105。快照105在迁移过程中被复制到目的宿主106中并恢复为目的应用实例107。在目的应用实例107成功恢复前,位于目的宿主106中的边缘计算平台108中的边缘计算移动服务110负责缓存终端发给目的应用实例107的数据,数据保存在边缘计算移动服务110中的缓存中。目的应用实例107成功恢复后,边缘计算移动服务110将为其缓存的数据按顺序发送给目的应用实例107。在具体的实例迁移过程中,负责源宿主101的源平台管理器111和源虚拟化架构管理器112、负责目的宿主106的目的平台管理器113、目的虚拟化架构管理器114、移动边缘计算编排器115、及位于源宿主101中的边缘计算平台103都将参与迁移流程。此外,源宿主101和目的宿主106是相对而言的,目的宿主106也可以实现源宿主101的功能,相应地,源宿主101也可以实现目的宿主106的功能,基于这样的理解,目的宿主106中同样也包括虚拟化架构109。Figure 6 is a schematic diagram of the system architecture corresponding to Figure 5. The source application instance 102 is located at the source host 101, and the virtualization framework 104 located in the source host 101 is responsible for taking snapshots 105 of the source application instance 102. The snapshot 105 is copied to the destination host 106 during the migration process and restored to the destination application instance 107. Before the destination application instance 107 is successfully restored, the edge computing mobile service 110 located in the edge computing platform 108 in the destination host 106 is responsible for buffering the data sent by the terminal to the destination application instance 107, and the data is stored in the cache in the edge computing mobile service 110. . After the destination application instance 107 is successfully restored, the edge computing mobile service 110 sends the cached data to the destination application instance 107 in order. In the specific instance migration process, the source platform manager 111 and the source virtualization architecture manager 112 responsible for the source host 101, the destination platform manager 113 responsible for the destination host 106, the destination virtualization architecture manager 114, and the mobile edge computing orchestration The router 115, and the edge computing platform 103 located in the source host 101, will all participate in the migration process. In addition, the source host 101 and the destination host 106 are relatively speaking, and the destination host 106 can also implement the function of the source host 101. Accordingly, the source host 101 can also implement the function of the destination host 106. Based on such understanding, the destination host 106 The same also includes the virtualization architecture 109.
图7为本发明实施例的迁移流程的交互示意图一,在图7中,边缘计算移动服务、无线网络信息服务都位于移动边缘宿主中。源VIM是指源虚拟化管理器,目的VIM是指目的虚拟化管理器。所述迁移流程包括如下步骤:FIG. 7 is a schematic diagram 1 of interaction of a migration process according to an embodiment of the present invention. In FIG. 7, an edge computing mobile service and a wireless network information service are all located in a mobile edge host. The source VIM refers to the source virtualization manager, and the destination VIM refers to the destination virtualization manager. The migration process includes the following steps:
1、在终端发生切换前,终端上的应用与位于源宿主的源实例进行通信。在快照迁移前终端已经切换到与目的宿主关联的基站下,终端与源实例间的通信通过目的宿主中转发给源宿主,再由源宿主转发给源应用实例。1. Before the terminal switches, the application on the terminal communicates with the source instance located at the source host. Before the snapshot is migrated, the terminal has switched to the base station associated with the destination host. The communication between the terminal and the source instance is forwarded to the source host through the destination host, and then forwarded to the source application instance by the source host.
2、移动边缘编排器决定发起应用实例的迁移。移动边缘编排器根据应用实例的需求(如时延、负荷)、目的宿主的属性等决定是否将该应用实例 迁移到目的宿主,并且为应用选择目的宿主。移动边缘编排器给源宿主对应的边缘平台管理器发送快照迁移请求消息。2. The mobile edge orchestrator decides to initiate the migration of the application instance. The mobile edge orchestrator decides whether to apply the application instance according to the requirements of the application instance (such as delay, load), the attributes of the target host, and the like. Migrate to the destination host and select the destination host for the application. The mobile edge orchestrator sends a snapshot migration request message to the edge platform manager corresponding to the source host.
3、源宿主对应的边缘平台管理器给源宿主所关联的虚拟架构管理器发送快照迁移准备消息。3. The edge platform manager corresponding to the source host sends a snapshot migration preparation message to the virtual infrastructure manager associated with the source host.
4、源宿主所关联的虚拟架构管理器准备快照,并准备好进行快照同步后给源宿主对应的边缘平台管理器发送响应消息。为了保证通信安全,源宿主所关联的虚拟架构管理器可以为后续的同步分配一个令牌(token),该令牌通过移动边缘编排器发送给目的宿主所关联的虚拟架构管理器,并在后续快照同步时发送源宿主所关联的虚拟架构管理器,以便源宿主所关联的虚拟架构管理器对快照同步请求进行验证。4. The virtual infrastructure manager associated with the source host prepares a snapshot, and prepares to synchronize the snapshot to send a response message to the edge platform manager corresponding to the source host. In order to ensure communication security, the virtual infrastructure manager associated with the source host can assign a token to the subsequent synchronization, and the token is sent to the virtual infrastructure manager associated with the destination host through the mobile edge orchestrator, and subsequently When the snapshot is synchronized, the virtual fabric manager associated with the source host is sent so that the virtual fabric manager associated with the source host validates the snapshot synchronization request.
5、源宿主所关联的虚拟架构管理器给移动边缘编排器发送响应消息。源宿主所关联的虚拟架构管理器将源宿主所关联的虚拟架构管理器的相关信息,如URL、IP地址、令牌等信息发送给移动边缘编排器。5. The virtual infrastructure manager associated with the source host sends a response message to the mobile edge orchestrator. The virtual infrastructure manager associated with the source host sends information about the virtual infrastructure manager associated with the source host, such as URL, IP address, token, etc., to the mobile edge orchestrator.
6、移动边缘编排器给目的宿主对应的边缘平台管理器发送快照迁移的请求,请求中携带即将迁移的应用实例的信息及源宿主的信息。移动边缘编排器可以设定快照同步时延,当快照同步所需的时间小于设定的快照同步时延时,目的宿主停止后续的快照同步,停止将终端来的数据进一步发送给源应用实例,并开始在目的宿主上恢复应用实例的快照。为了减少快照恢复时延,移动边缘编排器可在这一步请求目的边缘平台管理器为即将迁移的应用实例分配虚拟计算、存储和网络资源。6. The mobile edge orchestrator sends a request for snapshot migration to the edge platform manager corresponding to the destination host, where the request carries the information of the application instance to be migrated and the information of the source host. The mobile edge arranger can set the snapshot synchronization delay. When the time required for the snapshot synchronization is less than the set snapshot synchronization delay, the destination host stops the subsequent snapshot synchronization, and stops sending the data from the terminal to the source application instance. And start to restore a snapshot of the application instance on the destination host. In order to reduce the snapshot recovery delay, the mobile edge orchestrator can request the destination edge platform manager to allocate virtual computing, storage and network resources for the application instance to be migrated.
7、目的边缘平台管理器给目的宿主所关联的虚拟架构管理器发送同步快照请求。根据移动边缘编排器的请求,目的边缘平台管理器还请求目的宿主所关联的虚拟架构管理器分配虚拟计算、存储和网络资源。7. The destination edge platform manager sends a synchronous snapshot request to the virtual infrastructure manager associated with the destination host. Based on the request of the mobile edge orchestrator, the destination edge platform manager also requests the virtual infrastructure manager associated with the destination host to allocate virtual computing, storage, and network resources.
8、目的宿主所关联的虚拟架构管理器为即将迁移的目的宿主所关联的虚拟架构管理器给目的边缘平台管理器发送响应消息。可选地,目的宿主 所关联的虚拟架构管理器根据需求分配虚拟计算、存储和网络资源,准备好虚机,等待应用实例的迁移。8. The virtual infrastructure manager associated with the destination host sends a response message to the destination edge platform manager for the virtual infrastructure manager associated with the destination host to be migrated. Alternatively, the destination host The associated virtual fabric manager allocates virtual computing, storage, and network resources as needed, prepares the virtual machine, and waits for the migration of the application instance.
9、目的宿主所关联的虚拟架构管理器发起与源宿主所关联的虚拟架构管理器间同步应用实例的快照。在具体实现时,若目的宿主所关联的虚拟架构管理器中已经保存了该应用的映像(原始映像),为了缩短快照同步时间,源宿主所关联的虚拟架构管理器只需将源应用实例的快照与目的宿主所关联的虚拟架构管理器中的原始映像中不同的部分(即,在运行期间发生变化的部分)发送给目的宿主所关联的虚拟架构管理器。若快照同步时间大于移动边缘编排器所设定的快照同步时延,目的宿主所关联的虚拟架构管理器与源宿主所关联的虚拟架构管理器间进一步同步应用实例快照的变化(在上一次同步期间所发生的变化),直到映像同步时间小于所述快照同步时延为止。9. The virtual infrastructure manager associated with the destination host initiates a snapshot of the synchronized application instances between the virtual fabric managers associated with the source host. In the specific implementation, if the image of the application (original image) has been saved in the virtual infrastructure manager associated with the destination host, in order to shorten the snapshot synchronization time, the virtual infrastructure manager associated with the source host only needs to apply the source application instance. The snapshot is sent to the virtual infrastructure manager associated with the destination host in a different part of the original image in the virtual fabric manager associated with the destination host (ie, the portion that changed during runtime). If the snapshot synchronization time is greater than the snapshot synchronization delay set by the mobile edge orchestrator, the virtual infrastructure manager associated with the destination host and the virtual infrastructure manager associated with the source host further synchronize the changes of the application instance snapshot (on the last synchronization) The change that occurred during the period) until the image synchronization time is less than the snapshot synchronization delay.
10、目的宿主所关联的虚拟架构管理器给目的边缘平台管理器发送快照同步完成。可选地,目的边缘平台管理器可将该消息发送给移动边缘编排器。10. The virtual infrastructure manager associated with the destination host sends the snapshot synchronization completion to the destination edge platform manager. Optionally, the destination edge platform manager can send the message to the mobile edge orchestrator.
11、目的边缘平台管理器命令边缘计算平台为所述应用缓存数据。边缘计算平台配置转发面的过滤器,将发送给正在迁移的应用实例的数据重定向给位于边缘计算平台的边缘计算移动服务,并由其代为缓存。若快照恢复时间较长,可考虑在本地缓存数据的同时将数据发送给源应用实例,以便缩短应用实例迁移造成的业务中断,使得终端上的业务不感知应用实例的迁移。11. The destination edge platform manager commands the edge computing platform to cache data for the application. The edge computing platform configures a forwarding plane filter to redirect data sent to the application instance being migrated to the edge computing mobile service located at the edge computing platform and cache it. If the snapshot recovery time is long, you can consider sending the data to the source application instance while the data is cached locally, so as to shorten the service interruption caused by the application instance migration, and the service on the terminal does not sense the migration of the application instance.
12、若在第10步中,快照同步完成消息发送给了移动边缘编排器,移动边缘编排器,通过目的边缘平台管理器向目的虚拟架构管理器发送实例化应用快照的命令;否则目的边缘平台管理器直接向目的虚拟架构管理器发送实例化应用快照的命令。 12. In step 10, the snapshot synchronization completion message is sent to the mobile edge orchestrator, and the mobile edge orchestrator sends a command to instantiate the application snapshot to the destination virtual architecture manager through the destination edge platform manager; otherwise, the destination edge platform The manager sends a command to instantiate the application snapshot directly to the destination virtual infrastructure manager.
13、目的虚拟架构管理器为待虚拟化的应用快照分配所需的计算、存储、网络资源,并将待恢复的快照复制到所分配的资源中恢复运行,并对所恢复的快照进行必要的配置,比如为其配置IP地址等。在快照恢复运行后,目的虚拟架构管理器给目的边缘平台管理器发送实例化完成响应消息。13. The destination virtual architecture manager allocates the required computing, storage, and network resources for the application snapshot to be virtualized, and copies the snapshot to be restored to the allocated resource to resume operation, and performs necessary recovery on the restored snapshot. Configuration, such as configuring an IP address for it. After the snapshot resumes running, the destination virtual architecture manager sends an instantiation completion response message to the destination edge platform manager.
14、目的边缘平台管理器给目的宿主中的边缘计算平台发送实例恢复通知。14. The destination edge platform manager sends an instance recovery notification to the edge computing platform in the destination host.
15、在收到从目的边缘平台管理器来的实例恢复通知后,目的宿主中的边缘计算平台将为该应用实例缓存的数据按顺序发送给恢复后的目的应用实例。并且,目的宿主中的边缘计算平台更新转发规则,将终端发给源或目的应用实例的数据重定向到目的应用实例。此时,终端发给应用实例的数据包的目的地址可能是源应用实例的地址,也可能是新应用实例的地址。在终端更新应用的目的地址前,终端仍然向源应用实例的地址发送数据,边缘平台应配置允许终端发给源应用实例地址的数据发送给目的应用实例。若目的宿主在缓存数据的同时还将数据转发给了源应用,则目的宿主应丢弃由缓存的数据包所触发的任何响应数据,直到本地缓存的数据都处理完成后才开始将目的应用实例的响应数据包发送给终端。After receiving the instance recovery notification from the destination edge platform manager, the edge computing platform in the destination host sends the data cached by the application instance to the restored target application instance in sequence. Moreover, the edge computing platform in the destination host updates the forwarding rule, and redirects the data sent by the terminal to the source or destination application instance to the destination application instance. At this time, the destination address of the data packet sent by the terminal to the application instance may be the address of the source application instance or the address of the new application instance. Before the terminal updates the destination address of the application, the terminal still sends data to the address of the source application instance. The edge platform should be configured to allow the data sent by the terminal to the source application instance address to be sent to the destination application instance. If the destination host forwards the data to the source application while the data is being cached, the destination host should discard any response data triggered by the cached data packet until the locally cached data is processed and the target application instance is started. The response packet is sent to the terminal.
16、目的宿主中的边缘计算平台给目的边缘平台管理器发送响应消息。16. The edge computing platform in the destination host sends a response message to the destination edge platform manager.
17、目的边缘平台管理器给移动边缘编排器发送快照迁移完成消息。17. The destination edge platform manager sends a snapshot migration complete message to the mobile edge orchestrator.
18、移动边缘编排器发送实例终结请求消息给源边缘平台管理器,以终结源应用实例。18. The mobile edge orchestrator sends an instance termination request message to the source edge platform manager to terminate the source application instance.
19、源边缘平台管理器给源宿主中的边缘计算平台发送实例终结通知消息。19. The source edge platform manager sends an instance termination notification message to the edge computing platform in the source host.
20、源宿主中的边缘计算平台给源应用实例发送终结实例通知,以便源应用实例能优雅关闭。20. The edge computing platform in the source host sends a final instance notification to the source application instance, so that the source application instance can gracefully close.
21、在源应用实例处理完关闭前的准备工作后,源宿主中的边缘计算 平台删除为源应用实例配置的DNS规则、流量过滤规则等配置信息,并给源边缘平台管理器发送实例终结完成。21. Edge calculation in the source host after the source application instance finishes preparing for shutdown The platform deletes configuration information such as DNS rules and traffic filtering rules configured for the source application instance, and sends the instance termination completion to the source edge platform manager.
22、源边缘平台管理器命令源宿主关联的虚拟架构管理器释放源实例所占的资源。22. The source edge platform manager commands the virtual infrastructure manager associated with the source host to release the resources occupied by the source instance.
23、在源宿主关联的虚拟架构管理器释放完成实例所占的资源后,源边缘平台管理器通知移动边缘编排器快照迁移完成。23. After the virtual infrastructure manager associated with the source host releases the resources occupied by the completed instance, the source edge platform manager notifies the mobile edge orchestrator that the snapshot migration is completed.
24、终端与目的应用实例间直接进行通信。24. Direct communication between the terminal and the destination application instance.
图8描述了另一种使用快照法将应用实例从源宿主迁移到目的宿主的方法的示意图。图8中,移动边缘编排器预测终端的移动方向,并在终端切换到新位置前提前通知源和目的移动边缘宿主进行快照同步,以便在终端发生实际切换时能快速切换到目的移动边缘宿主。当实际发生切换时,在目的移动边缘宿主上已经保存了足够新的快照,移动边缘编排器可直接命令目的移动边缘宿主将本地同步的快照进行实例化。为了保证目的移动边缘宿主上的应用实例能在断点出恢复,在源宿主中需缓存上次快照拍摄点开始处理的数据包,以便在目的宿主上将恢复运行的快照(即目的应用实例)的状态更新到与源应用相同。图8实施例中的步骤如下:Figure 8 depicts another schematic diagram of a method of migrating an application instance from a source host to a destination host using a snapshot method. In FIG. 8, the mobile edge orchestrator predicts the moving direction of the terminal, and notifies the source and destination mobile edge hosts to perform snapshot synchronization in advance before the terminal switches to the new location, so as to quickly switch to the destination mobile edge host when the terminal actually switches. When the switch actually occurs, a sufficiently new snapshot has been saved on the destination mobile edge host, and the mobile edge orchestrator can directly command the destination mobile edge host to instantiate the locally synchronized snapshot. In order to ensure that the application instance on the mobile edge host can recover from the breakpoint, the source host needs to cache the data packet that was processed by the last snapshot shooting point, so that the running snapshot will be resumed on the destination host (ie, the destination application instance). The status is updated to be the same as the source application. The steps in the embodiment of Figure 8 are as follows:
1、源宿主与目的宿主间同步快照。移动边缘编排器根据对终端移动轨迹的预测决定源宿主将快照同步到哪些目的宿主。1. A synchronized snapshot between the source host and the destination host. The mobile edge orchestrator determines which destination hosts the source host synchronizes the snapshot to based on the prediction of the terminal's movement trajectory.
2、每次快照拍摄后,源宿主启动数据缓存,将此期间发送给源应用实例的数据缓存在本地,直到下此快照拍摄或应用实例发生迁移。2. After each snapshot is taken, the source host starts the data cache, and the data sent to the source application instance is cached locally until the snapshot is taken or the application instance is migrated.
3、源宿主收到来自源基站的终端准备切换的通知消息。3. The source host receives a notification message that the terminal from the source base station is ready to switch.
4、移动边缘编排器命令目的宿主进行实例化本地保存的快照(上次同步到本地的快照)。4. Move Edge Composer Command The destination host instantiates a locally saved snapshot (last synchronized to a local snapshot).
5、源宿主上的源应用继续为终端服务,直到快照在目的宿主恢复完成,目的宿主启动本地缓存。 5. The source application on the source host continues to serve the terminal until the snapshot is restored in the destination host, and the destination host initiates local caching.
6、源宿主将本地缓存的数据发送给目的宿主。当应用实例在目的宿主恢复后,目的宿主先将从源宿主发来的缓存数据按顺序发送给目的应用实例,再将本地缓存的从终端直接发来的数据按序发送给目的应用实例。6. The source host sends the locally cached data to the destination host. After the application instance is restored in the target host, the destination host first sends the cached data sent from the source host to the destination application instance in sequence, and then sends the locally cached data directly sent from the terminal to the destination application instance.
图9是对应于图8的系统架构示意图。源应用实例102位于源宿主101,位于源宿主101中的虚拟化架构104负责为源应用实例102拍摄快照105。快照105在迁移过程中被复制到目的宿主106中并恢复为目的应用实例107。在源宿主101为源应用实例102拍摄快照后,源宿主101中的边缘计算平台103中的边缘计算移动服务116开始缓存发送给源应用实例的数据。目的应用实例107成功恢复后,在处理源宿主101的缓存数据之前,目的宿主的边缘计算平台108缓存发送给源或目的应用实例的数据。目的应用实例107成功恢复后,边缘计算平台108先将从源宿主收到的数据按顺序发送给目的应用实例107,再将本地缓存的从终端直接收到的数据按顺序发送给目的应用实例107。在具体的实例迁移过程中,负责源宿主101的源平台管理器111和源虚拟化架构管理器112、负责目的宿主106的目的平台管理器113、目的虚拟化架构管理器114、及移动边缘计算编排器115都将参与迁移流程。Figure 9 is a schematic diagram of the system architecture corresponding to Figure 8. The source application instance 102 is located at the source host 101, and the virtualization framework 104 located in the source host 101 is responsible for taking snapshots 105 of the source application instance 102. The snapshot 105 is copied to the destination host 106 during the migration process and restored to the destination application instance 107. After the source host 101 takes a snapshot of the source application instance 102, the edge computing mobile service 116 in the edge computing platform 103 in the source host 101 begins to buffer the data sent to the source application instance. After the target application instance 107 is successfully restored, the edge computing platform 108 of the destination host caches the data sent to the source or destination application instance before processing the cached data of the source host 101. After the target application instance 107 is successfully restored, the edge computing platform 108 firstly sends the data received from the source host to the destination application instance 107 in sequence, and then sequentially sends the locally buffered data directly received by the terminal to the destination application instance 107. . In the specific instance migration process, the source platform manager 111 and the source virtualization architecture manager 112 responsible for the source host 101, the destination platform manager 113 responsible for the destination host 106, the destination virtualization architecture manager 114, and the mobile edge computing The arranger 115 will all participate in the migration process.
图10为本发明实施例的迁移流程的交互示意图二,在图8中,边缘计算移动服务、无线网络信息服务、Service Registry都位于移动边缘宿主中。源VIM是指源虚拟化管理器,目的VIM是指目的虚拟化管理器;所述迁移流程包括如下步骤:FIG. 10 is a schematic diagram of interaction of a migration process according to an embodiment of the present invention. In FIG. 8, an edge computing mobile service, a wireless network information service, and a Service Registry are all located in a mobile edge host. The source VIM refers to the source virtualization manager, and the destination VIM refers to the destination virtualization manager; the migration process includes the following steps:
1、终端上的应用与位于源宿主的源实例进行通信。终端与源实例间的通信通过源宿主转发给源应用实例,或者通过目的宿主转发给源宿主后再由源宿主转发给源应用实例。1. The application on the terminal communicates with the source instance located at the source host. The communication between the terminal and the source instance is forwarded to the source application instance through the source host, or forwarded to the source host through the destination host, and then forwarded to the source application instance by the source host.
2、源虚拟化管理器与目的虚拟化管理器间进行快照同步。移动编排器根据需要决定在哪些虚拟化管理器间进行快照同步。移动编排器可根据终 端的行为,如移动轨迹、终端的历史移动规律等判断终端即将切换到哪些基站,从而决定是否提前将应用实例的快照同步到目的基站所关联的宿主上,以加速切换过程中的应用实例的迁移。当源虚拟化管理器与目的虚拟化管理器间快照同步的时延小于某个阈值后,源、目的虚拟化管理器间进行周期性快照同步。2. Snapshot synchronization between the source virtualization manager and the destination virtualization manager. The mobile orchestrator decides which virtualization managers to synchronize snapshots as needed. Mobile organizer can be based on the end The behavior of the terminal, such as the movement trajectory and the historical movement rule of the terminal, determines which base stations the terminal is to switch to, and then decides whether to synchronize the snapshot of the application instance to the host associated with the target base station in advance to accelerate the migration of the application instance during the handover process. . After the delay of snapshot synchronization between the source virtualization manager and the destination virtualization manager is less than a certain threshold, periodic snapshot synchronization is performed between the source and destination virtualization managers.
3、在每一次快照拍摄时,源宿主中的边缘计算平台都启动数据缓存功能,缓存从本次快照拍摄到下次快照拍摄期间或从最后一次快照拍摄直到终端用户数据被切换到目的宿主期间所收到的终端发送给应用实例的数据,以便利用缓存的数据将目的应用实例恢复到终端被切换走之前的源应用实例的状态。3. At each snapshot, the edge computing platform in the source host starts the data caching function, and the cache is from the time of the snapshot to the next snapshot or from the last snapshot until the end user data is switched to the destination host. The received data sent by the terminal to the application instance is used to restore the destination application instance to the state of the source application instance before the terminal is switched off by using the cached data.
4、源宿主中的边缘计算平台收到终端的移动事件。该移动事件指示终端准备切换或终端已经切换走。4. The edge computing platform in the source host receives the mobile event of the terminal. The mobile event indicates that the terminal is ready to switch or the terminal has switched off.
5、源宿主中的边缘计算平台通过源宿主平台管理器向移动边缘编排器上报终端的移动事件。该移动事件中包括发生移动事件的终端ID、该终端正在访问的应用实例、目的基站的信息等。5. The edge computing platform in the source host reports the mobile event of the terminal to the mobile edge orchestrator through the source host platform manager. The mobile event includes a terminal ID in which a mobile event occurs, an application instance that the terminal is accessing, information of the target base station, and the like.
6、移动边缘编排器决定是否发起应用实例的迁移。移动边缘编排器根据发生移动事件的终端正在访问的应用实例的需求(如时延、负荷)、目的宿主的属性等决定是否将该应用实例迁移到目的宿主,并且为应用选择目的宿主。若移动边缘编排器决定迁移应用实例,移动边缘编排器给目的宿主对应的边缘平台管理器发送实例化快照命令。6. The mobile edge orchestrator decides whether to initiate the migration of the application instance. The mobile edge orchestrator decides whether to migrate the application instance to the destination host according to the requirements of the application instance (such as delay, load) that the terminal that the terminal is moving, and the attributes of the destination host, and selects the destination host for the application. If the mobile edge orchestrator decides to migrate the application instance, the mobile edge orchestrator sends an instantiated snapshot command to the corresponding edge platform manager of the destination host.
7、目的边缘平台管理器给目的宿主所关联的虚拟架构管理器发送实例化快照请求。7. The destination edge platform manager sends an instantiation snapshot request to the virtual infrastructure manager associated with the destination host.
8、目的宿主所关联的虚拟架构管理器为快照分配所需的计算、存储、网络资源,并将所述快照复制到所分配的资源中恢复运行,并对所其进行必要的配置,比如为其配置IP地址等。 8. The virtual infrastructure manager associated with the destination host allocates the required computing, storage, and network resources to the snapshot, and copies the snapshot to the allocated resources to resume operation, and performs necessary configuration on the snapshot, for example, It is configured with an IP address, etc.
9、目的边缘平台管理器给目的宿主中的边缘计算平台发送实例恢复通知。9. The destination edge platform manager sends an instance recovery notification to the edge computing platform in the destination host.
10、目的宿主中的边缘计算平台通知目的应用实例恢复完成。10. The edge computing platform in the destination host notifies the destination application instance that the recovery is complete.
11、目的宿主中的边缘计算平台配置本地的转发规则,将发送给源应用实例和目的应用实例的数据都重定向到本地的边缘计算平台,本地边缘计算平台开始缓存数据。目的宿主中的边缘计算平台给目的边缘平台管理器发送响应消息。11. The edge computing platform in the destination host configures the local forwarding rule to redirect the data sent to the source application instance and the destination application instance to the local edge computing platform, and the local edge computing platform starts to cache the data. The edge computing platform in the destination host sends a response message to the destination edge platform manager.
12、目的边缘平台管理器给移动边缘编排器发送实例化快照完成消息。12. The destination edge platform manager sends an instantiated snapshot completion message to the mobile edge orchestrator.
13、移动边缘编排器通过源平台管理器给源边缘计算平台发送转发缓存数据请求消息,请求源边缘计算平台将本地缓存的数据发送给目的边缘平台。13. The mobile edge orchestrator sends a forwarding cache data request message to the source edge computing platform by using the source platform manager, and requests the source edge computing platform to send the locally cached data to the destination edge platform.
14、源边缘计算平台按缓存的先后顺序将缓存的数据发送给目的边缘计算平台,再由目的边缘计算平台发送给目的应用实例。在此期间,目的应用实例处理缓存数据包而导致的外发数据包均设置为丢弃,从而避免终端收到重复的数据包。直到目的边缘计算平台确定所有缓存数据都处理完为止,目的边计算缘平台才开启允许目的应用向终端发送数据包。14. The source edge computing platform sends the cached data to the destination edge computing platform in the order of the cache, and then sends the data to the destination application instance by the destination edge computing platform. During this period, the destination application instance processes the cached data packet and the outgoing data packets are set to be discarded, thereby preventing the terminal from receiving duplicate data packets. Until the destination edge computing platform determines that all cached data has been processed, the destination edge computing edge platform is enabled to allow the destination application to send data packets to the terminal.
15、当处理完源边缘计算平台的缓存数据后,目的边缘计算平台将本地缓存的数据按顺序发送给目的应用。当所有本地缓存的数据都处理完成后,目的边缘计算平台配置转发规则,将所有发送给目的或源应用实例的数据直接发送给目的应用实例,不再进行本地缓存。15. After processing the cached data of the source edge computing platform, the destination edge computing platform sends the locally cached data to the destination application in sequence. After all the locally cached data is processed, the destination edge computing platform configures the forwarding rule to send all data sent to the destination or source application instance directly to the destination application instance without local caching.
16、移动边缘编排器发送终结实例命令给源平台管理器。16. The mobile edge orchestrator sends a final instance command to the source platform manager.
17、源平台管理器通知源宿主的边缘计算平台终结实例。17. The source platform manager notifies the source host of the edge computing platform to terminate the instance.
18、可选地,源宿主中的边缘计算平台给源应用实例发送终结实例通知,以便源应用实例能优雅关闭。18. Optionally, the edge computing platform in the source host sends a final instance notification to the source application instance, so that the source application instance can be gracefully closed.
19、在源应用实例处理完关闭前的准备工作后,源宿主中的边缘计算 平台给源边缘平台管理器发送实例终结完成。19. Edge calculation in the source host after the source application instance finishes preparing for shutdown The platform sends an instance termination completion to the source edge platform manager.
20、源边缘平台管理器命令源宿主关联的虚拟架构管理器释放源实例所占的资源。20. The source edge platform manager commands the virtual infrastructure manager associated with the source host to release the resources occupied by the source instance.
21、在源宿主关联的虚拟架构管理器释放完成实例所占的资源后,源边缘平台管理器通知移动边缘编排器实例终结完成。21. After the virtual infrastructure manager associated with the source host releases the resources occupied by the completed instance, the source edge platform manager notifies the mobile edge orchestrator instance that the termination is complete.
22、终端与目的应用实例间直接进行通信。22. Direct communication between the terminal and the destination application instance.
图11为本发明实施例的应用实例迁移的设备的结构组成示意图一,如图11所示,所述设备包括:FIG. 11 is a first schematic structural diagram of a device for migrating an application instance according to an embodiment of the present invention. As shown in FIG. 11, the device includes:
快照单元1101,配置为对源应用实例进行快照的拍摄;The snapshot unit 1101 is configured to take a snapshot of the source application instance;
快照同步单元1102,配置为执行源移动边缘宿主与目的移动边缘宿主间的快照同步,以使所述目的移动边缘宿主将同步到目的移动边缘宿主上的快照恢复运行;The snapshot synchronization unit 1102 is configured to perform snapshot synchronization between the source mobile edge host and the destination mobile edge host, so that the destination mobile edge host synchronizes the snapshot to the destination mobile edge host to resume operation;
其中,所述快照是所述源应用实例在拍摄时刻的运行空间,所述运行空间包括运行流程和状态信息。The snapshot is a running space of the source application instance at a shooting time, and the running space includes a running process and status information.
所述快照同步单元1102,还配置为将所拍摄的快照与上次进行快照同步时所发送的快照进行比较,将两个快照变化的部分发送给目的移动边缘宿主;其中,当发送给目的移动边缘宿主的发送时长大于设定阈值时,再次进行快照拍摄以及快照同步。The snapshot synchronization unit 1102 is further configured to compare the captured snapshot with the snapshot sent when the snapshot was last synchronized, and send the changed portions of the two snapshots to the destination mobile edge host; wherein, when sent to the destination mobile When the edge host's transmission duration is greater than the set threshold, snapshot shooting and snapshot synchronization are performed again.
所述设备还包括:The device further includes:
存储单元1103,配置为当最后一次进行快照拍摄后,保存终端发送给所述源应用实例的数据包,所述最后一次进行快照拍摄对应的发送时长小于等于设定阈值;The storage unit 1103 is configured to: after the snapshot is taken for the last time, save the data packet sent by the terminal to the source application instance, where the last transmission time corresponding to the snapshot shooting is less than or equal to the set threshold;
发送单元1104,配置为当所述源应用实例的快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。 The sending unit 1104 is configured to send the saved data packets to the destination application instance in the saved order after the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host.
所述源移动边缘宿主或所述目的移动边缘宿主保存终端发送给所述源应用实例的数据包;The source mobile edge host or the destination mobile edge host saves a data packet sent by the terminal to the source application instance;
当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包,或目的边缘宿主保存的且同时发往源应用实例的数据包,按照保存的先后顺序发送给所述目的应用实例;再将所述目的移动边缘宿主保存的,且未被发往源应用实例的数据包,按照保存的先后顺序发送给所述目的应用实例。After the snapshot is restored to the destination application instance on the destination mobile edge host, the data packet saved by the source mobile edge host or the data packet saved by the destination edge host and simultaneously sent to the source application instance is first The saved sequence is sent to the destination application instance; the data packets saved by the destination mobile edge host and not sent to the source application instance are sent to the destination application instance in the saved order.
在实际应用中,所述应用实例迁移的设备中的各个单元所实现的功能,均可由位于应用实例迁移的设备中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In a practical application, the functions implemented by each unit in the device migrated by the application instance may be a Central Processing Unit (CPU) or a Micro Processor Unit in a device migrated by the application instance. , MPU), or Digital Signal Processor (DSP), or Field Programmable Gate Array (FPGA) implementation.
图12为本发明实施例的应用实例迁移的设备的结构组成示意图二,如图12所示,所述设备包括:FIG. 12 is a second structural diagram of a device for migrating an application instance according to an embodiment of the present invention. As shown in FIG. 12, the device includes:
接收单元1201,配置为接收源移动边缘宿主发送的源应用实例的快照;The receiving unit 1201 is configured to receive a snapshot of the source application instance sent by the source mobile edge host;
恢复单元1202,配置为将所述快照在所述设备上恢复成目的应用实例;The recovery unit 1202 is configured to restore the snapshot to the destination application instance on the device;
运行单元1203,配置为在所述设备上运行所述目的应用实例;其中,运行所述目的应用实例时,根据所述快照的运行流程和状态信息进行运行。The running unit 1203 is configured to run the target application instance on the device. When the target application instance is run, the running is performed according to the running process and status information of the snapshot.
所述设备还包括:The device further includes:
保存单元1204,配置为将所述快照在所述设备上恢复成目的应用实例前,保存终端发送给所述目的应用实例的数据包;The saving unit 1204 is configured to save the data packet sent by the terminal to the destination application instance before the snapshot is restored to the destination application instance on the device.
发送单元1205,配置为当所述快照在所述设备上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。The sending unit 1205 is configured to: after the snapshot is restored to the destination application instance on the device, send the saved data packet to the destination application instance in a saved sequence.
所述发送单元1205,还配置为当所述快照在所述设备上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包按照保存的先后顺序发 送给所述目的应用实例,再将所述设备保存的数据包按照保存的先后顺序发送给所述目的应用实例。The sending unit 1205 is further configured to: after the snapshot is restored to the destination application instance on the device, first send the data packets saved by the source mobile edge host according to the saved sequence And sending the data packet saved by the device to the destination application instance according to the saved sequence.
所述设备还包括:设置单元1206,配置为设置流量过滤规则,以根据所述流量过滤规则将终端发送给源应用实例和/或目的应用实例的数据发送给位于目的移动边缘宿主上的目的应用实例或目的移动边缘宿主上的边缘计算移动服务。The device further includes: a setting unit 1206, configured to set a traffic filtering rule, to send data sent by the terminal to the source application instance and/or the destination application instance to the destination application located on the destination mobile edge host according to the traffic filtering rule. The instance or destination moves the edge on the mobile host to calculate the mobile service.
在实际应用中,所述应用实例迁移的设备中的各个单元所实现的功能,均可由位于应用实例迁移的设备中的CPU、或MPU、或DSP、或FPGA等实现。In practical applications, the functions implemented by each unit in the device migrated by the application instance may be implemented by a CPU, an MPU, or a DSP, or an FPGA in a device migrated by the application instance.
图13为本发明实施例的应用实例迁移的设备的结构组成示意图三,如图13所示,所述设备包括:FIG. 13 is a third structural diagram of a device for migrating an application instance according to an embodiment of the present invention. As shown in FIG. 13, the device includes:
发送单元1301,配置为向源移动边缘宿和/或目的移动边缘宿主发送快照同步命令;The sending unit 1301 is configured to send a snapshot synchronization command to the source mobile edge sink and/or the destination mobile edge host;
其中,所述快照同步命令用于控制所述源移动边缘宿主与所述目的移动边缘宿主间进行快照同步。The snapshot synchronization command is used to control snapshot synchronization between the source mobile edge host and the destination mobile edge host.
所述设备还包括:The device further includes:
指定单元1302,配置为在发送快照同步命令时,指定快照同步时延阈值;The specifying unit 1302 is configured to: when the snapshot synchronization command is sent, specify a snapshot synchronization delay threshold;
接收单元1303,配置为当快照发送时长小于所述快照同步时延阈值时,接收所述源移动边缘宿主或目的移动边缘宿主通知的所述快照同步完成消息。The receiving unit 1303 is configured to receive the snapshot synchronization completion message notified by the source mobile edge host or the destination mobile edge host when the snapshot transmission duration is less than the snapshot synchronization delay threshold.
所述发送单元1301,还配置为给目的移动边缘宿主发送实例化快照命令;The sending unit 1301 is further configured to send an instantiated snapshot command to the destination mobile edge host;
其中,所述实例化快照命令用于控制所述目的移动边缘宿主执行所述快照的实例化。 The instantiated snapshot command is used to control the destination mobile edge host to perform instantiation of the snapshot.
在实际应用中,所述应用实例迁移的设备中的各个单元所实现的功能,均可由位于应用实例迁移的设备中的CPU、或MPU、或DSP、或FPGA等实现。In practical applications, the functions implemented by each unit in the device migrated by the application instance may be implemented by a CPU, an MPU, or a DSP, or an FPGA in a device migrated by the application instance.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序配置为执行本发明实施例的应用实例迁移的方法。Correspondingly, an embodiment of the present invention further provides a computer storage medium, wherein a computer program is configured, and the computer program is configured to perform a method for migrating an application instance in the embodiment of the present invention.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例的技术方案,源移动边缘宿主对源应用实例进行快照的拍摄;源移动边缘宿主与目的移动边缘宿主间进行快照同步,以使所述目的移动边缘宿主将同步到目的移动边缘宿主上的快照恢复运行;其中,所述快照是所述源应用实例在拍摄时刻的运行空间,所述运行空间包括运行流程和状态信息。目的移动边缘宿主接收源移动边缘宿主发送的源应用实例的快照;将所述快照在所述目的移动边缘宿上恢复成目的应用实例;在所述目的移动边缘宿主上运行所述目的应用实例;其中,运行所述目的应用实例时,根据所述快照的运行流程和状态信息进行运行。可见,当终端的位置发生移动变化时,通过快照方式将应用实例由源移动边缘宿主迁移至目的移动边缘宿主,迁移时保障了应用实例运行的连续性。 In the technical solution of the embodiment of the present invention, the source mobile edge host performs snapshot shooting on the source application instance; the source mobile edge host synchronizes with the target mobile edge host to synchronize the target mobile edge host to the destination mobile edge host. The snapshot is resumed; wherein the snapshot is a running space of the source application instance at the time of shooting, and the running space includes running process and status information. The mobile edge host receives a snapshot of the source application instance sent by the source mobile edge host; restores the snapshot to the destination application instance on the destination mobile edge sink; and runs the destination application instance on the destination mobile edge host; When the target application instance is run, the operation is performed according to the running process and the state information of the snapshot. It can be seen that when the location of the terminal changes, the application instance is migrated from the source mobile edge host to the destination mobile edge host by using the snapshot mode, and the continuity of the application instance operation is ensured during the migration.

Claims (25)

  1. 一种应用实例迁移的方法,所述方法包括:A method of applying instance migration, the method comprising:
    源移动边缘宿主对源应用实例进行快照拍摄;The source mobile edge host takes a snapshot of the source application instance;
    源移动边缘宿主与目的移动边缘宿主间进行快照同步,以使所述目的移动边缘宿主将同步到目的移动边缘宿主上的快照恢复运行;Performing snapshot synchronization between the source mobile edge host and the destination mobile edge host, so that the destination mobile edge host will resume the snapshot synchronized to the destination mobile edge host;
    其中,所述快照是所述源应用实例在拍摄时刻的运行空间,所述运行空间包括运行流程和状态信息。The snapshot is a running space of the source application instance at a shooting time, and the running space includes a running process and status information.
  2. 根据权利要求1所述的应用实例迁移的方法,其中,所述源移动边缘宿主与目的移动边缘宿主间进行快照同步,包括:The method for applying instance migration according to claim 1, wherein the snapshot synchronization between the source mobile edge host and the destination mobile edge host comprises:
    源移动边缘宿主将所拍摄的快照与上次进行快照同步时所发送的快照进行比较,将两个快照变化的部分发送给目的移动边缘宿主;The source mobile edge host compares the captured snapshot with the snapshot sent when the snapshot was last synchronized, and sends the two snapshot changes to the destination mobile edge host;
    其中,当发送给目的移动边缘宿主的发送时长大于设定阈值时,再次进行快照拍摄以及快照同步。Wherein, when the transmission duration sent to the destination mobile edge host is greater than a set threshold, snapshot shooting and snapshot synchronization are performed again.
  3. 根据权利要求2所述的应用实例迁移的方法,其中,所述方法还包括:The method of applying an instance migration according to claim 2, wherein the method further comprises:
    当最后一次进行快照拍摄后,保存终端发送给所述源应用实例的数据包,所述最后一次进行快照拍摄对应的发送时长小于等于设定阈值;After the snapshot is taken for the last time, the data packet sent by the terminal to the source application instance is saved, and the last transmission time corresponding to the snapshot shooting is less than or equal to the set threshold;
    当所述源应用实例的快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。After the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host, the saved data packets are sent to the destination application instance in the saved order.
  4. 根据权利要求3所述的应用实例迁移的方法,其中,所述保存终端发送给所述源应用实例的数据包,为:所述源移动边缘宿主或所述目的移动边缘宿主保存终端发送给所述源应用实例的数据包;The method for migrating an application instance according to claim 3, wherein the data packet sent by the save terminal to the source application instance is: the source mobile edge host or the destination mobile edge host save terminal sends to the a data packet describing the source application instance;
    所述当所述源应用实例的快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述 目的应用实例,包括:当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,首先,所述源移动边缘宿主将所述源移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例,或所述目的边缘宿主将所述目的边缘宿主保存的且同时发往源应用实例的数据包按照保存的先后顺序发送给所述目的应用实例;然后,所述目的移动边缘宿主将所述目的移动边缘宿保存的且未被发往源应用实例的数据包按照保存的先后顺序发送给所述目的应用实例。After the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host, the saved data packets are sent to the The application example includes: after the snapshot is restored to the destination application instance on the destination mobile edge host, first, the source mobile edge host sends the data packets saved by the source mobile edge host according to the saved sequence. Applying the destination application instance, or the destination edge host sends the data packet saved by the destination edge host and simultaneously sent to the source application instance to the destination application instance according to the saved sequence; then, the destination mobile The edge host sends the data packets saved by the destination mobile edge sink and not sent to the source application instance to the destination application instance in the saved order.
  5. 一种应用实例迁移的方法,所述方法包括:A method of applying instance migration, the method comprising:
    移动边缘编排器向源移动边缘宿主和/或目的移动边缘宿主发送快照同步命令;The mobile edge orchestrator sends a snapshot synchronization command to the source mobile edge host and/or the destination mobile edge host;
    其中,所述快照同步命令用于控制所述源移动边缘宿主与所述目的移动边缘宿主间进行快照同步。The snapshot synchronization command is used to control snapshot synchronization between the source mobile edge host and the destination mobile edge host.
  6. 根据权利要求5所述的应用实例迁移的方法,其中,所述方法还包括:The method of applying the instance migration according to claim 5, wherein the method further comprises:
    移动边缘编排器在发送快照同步命令时,指定快照同步时延阈值;The mobile edge orchestrator specifies a snapshot synchronization delay threshold when sending a snapshot synchronization command;
    当快照发送时长小于所述快照同步时延阈值时,所述移动边缘编排器或目的移动边缘宿主对应的移动边缘平台管理器接收所述源移动边缘宿主或目的移动边缘宿主通知的所述快照同步完成消息。When the snapshot transmission duration is less than the snapshot synchronization delay threshold, the mobile edge platform manager corresponding to the mobile edge or the mobile edge host receives the snapshot synchronization notified by the source mobile edge host or the destination mobile edge host Complete the message.
  7. 根据权利要求5或6所述的应用实例迁移的方法,其中,所述方法还包括:The method of applying the instance migration according to claim 5 or 6, wherein the method further comprises:
    移动边缘编排器或目的移动边缘宿主对应的移动边缘平台管理器给目的移动边缘宿主发送实例化快照命令;The mobile edge platform manager corresponding to the mobile edge or the mobile edge host sends an instantiated snapshot command to the destination mobile edge host;
    其中,所述实例化快照命令用于控制所述目的移动边缘宿主执行所述快照的实例化。The instantiated snapshot command is used to control the destination mobile edge host to perform instantiation of the snapshot.
  8. 一种应用实例迁移的方法,所述方法包括: A method of applying instance migration, the method comprising:
    目的移动边缘宿主接收源移动边缘宿主发送的源应用实例的快照;The destination mobile edge host receives a snapshot of the source application instance sent by the source mobile edge host;
    将所述快照在所述目的移动边缘宿上恢复成目的应用实例;Restoring the snapshot to the destination application instance on the destination mobile edge sink;
    在所述目的移动边缘宿主上运行所述目的应用实例;Running the target application instance on the destination mobile edge host;
    其中,运行所述目的应用实例时,根据所述快照的运行流程和状态信息进行运行。When the target application instance is run, the operation is performed according to the running process and the state information of the snapshot.
  9. 根据权利要求8所述的应用实例迁移的方法,其中,所述方法还包括:The method of applying an instance migration according to claim 8, wherein the method further comprises:
    将所述快照在所述目的移动边缘宿上恢复成目的应用实例前,保存终端发送给所述源应用实例和/或目的应用实例的数据包;Before the snapshot is restored to the destination application instance on the destination mobile edge sink, the data packet sent by the terminal to the source application instance and/or the destination application instance is saved;
    当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。After the snapshot is restored to the destination application instance on the destination mobile edge host, the saved data packets are sent to the destination application instance in the saved order.
  10. 根据权利要求9所述的应用实例迁移的方法,其中,所述方法还包括:The method of applying the instance migration according to claim 9, wherein the method further comprises:
    当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例,再将所述目的移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例。After the snapshot is restored to the destination application instance on the destination mobile edge host, the data packets saved by the source mobile edge host are first sent to the destination application instance in the saved order, and then the destination is moved. The data packets saved by the edge host are sent to the destination application instance in the order in which they are saved.
  11. 根据权利要求8所述的应用实例迁移的方法,其中,The method of applying instance migration according to claim 8, wherein
    在所述目的移动边缘宿主中设置流量过滤规则,根据所述流量过滤规则将终端发送给源应用实例和/或目的应用实例的数据发送给位于目的移动边缘宿主上的目的应用实例或目的移动边缘宿主上的边缘计算移动服务。Setting a traffic filtering rule in the destination mobile edge host, and sending data sent by the terminal to the source application instance and/or the destination application instance according to the traffic filtering rule to the destination application instance or the destination moving edge located on the destination mobile edge host The edge on the host calculates the mobile service.
  12. 根据权利要求11所述的应用实例迁移的方法,其中,当所述目的移动边缘宿主收到实例化快照请求或者完成快照实例化后,在所述目的移动边缘宿主中设置所述流量过滤规则。 The method for applying instance migration according to claim 11, wherein the traffic filtering rule is set in the destination mobile edge host after the destination mobile edge host receives the instantiation snapshot request or completes the snapshot instantiation.
  13. 根据权利要求11所述的应用实例迁移的方法,其中,当目的移动边缘宿主上的边缘计算移动服务无缓存数据后且源移动边缘宿主也无缓存数据后,在所述目的移动边缘宿主中设置流量过滤规则。The method for applying instance migration according to claim 11, wherein after the edge on the destination mobile edge host calculates the mobile service uncached data and the source mobile edge host also has no cached data, the target mobile edge host is set Traffic filtering rules.
  14. 一种应用实例迁移的设备,所述设备包括:A device for application instance migration, the device comprising:
    快照单元,配置为对源应用实例进行快照的拍摄;A snapshot unit configured to take a snapshot of the source application instance;
    快照同步单元,配置为执行源移动边缘宿主与目的移动边缘宿主间的快照同步,以使所述目的移动边缘宿主将同步到目的移动边缘宿主上的快照恢复运行;a snapshot synchronization unit configured to perform snapshot synchronization between the source mobile edge host and the destination mobile edge host, so that the destination mobile edge host synchronizes the snapshot to the destination mobile edge host to resume operation;
    其中,所述快照是所述源应用实例在拍摄时刻的运行空间,所述运行空间包括运行流程和状态信息。The snapshot is a running space of the source application instance at a shooting time, and the running space includes a running process and status information.
  15. 根据权利要求14所述的应用实例迁移的设备,其中,所述快照同步单元,还配置为将所拍摄的快照与上次进行快照同步时所发送的快照进行比较,将两个快照变化的部分发送给目的移动边缘宿主;其中,当发送给目的移动边缘宿主的发送时长大于设定阈值时,再次进行快照拍摄以及快照同步。The device for migrating an application instance according to claim 14, wherein the snapshot synchronization unit is further configured to compare the captured snapshot with a snapshot sent when the snapshot was last synchronized, and change the portion of the two snapshots. Send to the destination mobile edge host; wherein, when the transmission duration sent to the destination mobile edge host is greater than a set threshold, snapshot shooting and snapshot synchronization are performed again.
  16. 根据权利要求15所述的应用实例迁移的设备,其中,所述设备还包括:The device of the application instance migration according to claim 15, wherein the device further comprises:
    存储单元,配置为当最后一次进行快照拍摄后,保存终端发送给所述源应用实例的数据包,所述最后一次进行快照拍摄对应的发送时长小于等于设定阈值;a storage unit configured to save a data packet sent by the terminal to the source application instance after the snapshot is taken for the last time, and the sending duration corresponding to the last snapshot taking is less than or equal to a set threshold;
    发送单元,配置为当所述源应用实例的快照在所述目的移动边缘宿主上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。The sending unit is configured to send the saved data packets to the destination application instance in the saved order after the snapshot of the source application instance is restored to the destination application instance on the destination mobile edge host.
  17. 根据权利要求16所述的应用实例迁移的设备,其中,所述源移动边缘宿主或所述目的移动边缘宿主保存终端发送给所述源应用实例的 数据包;The device for application instance migration according to claim 16, wherein the source mobile edge host or the destination mobile edge host save terminal sends the source application instance data pack;
    当所述快照在所述目的移动边缘宿主上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包,或目的边缘宿主保存的且同时发往源应用实例的数据包,按照保存的先后顺序发送给所述目的应用实例;再将所述目的移动边缘宿主保存的,且未被发往源应用实例的数据包,按照保存的先后顺序发送给所述目的应用实例。After the snapshot is restored to the destination application instance on the destination mobile edge host, the data packet saved by the source mobile edge host or the data packet saved by the destination edge host and simultaneously sent to the source application instance is first The saved sequence is sent to the destination application instance; the data packets saved by the destination mobile edge host and not sent to the source application instance are sent to the destination application instance in the saved order.
  18. 一种应用实例迁移的设备,所述设备包括:A device for application instance migration, the device comprising:
    发送单元,配置为向源移动边缘宿和/或目的移动边缘宿主发送快照同步命令;a sending unit, configured to send a snapshot synchronization command to the source mobile edge sink and/or the destination mobile edge host;
    其中,所述快照同步命令用于控制所述源移动边缘宿主与所述目的移动边缘宿主间进行快照同步。The snapshot synchronization command is used to control snapshot synchronization between the source mobile edge host and the destination mobile edge host.
  19. 根据权利要求18所述的应用实例迁移的设备,其中,所述设备还包括:The device of the application instance migration according to claim 18, wherein the device further comprises:
    指定单元,配置为在发送快照同步命令时,指定快照同步时延阈值;Specifies a unit to be configured to specify a snapshot synchronization delay threshold when sending a snapshot synchronization command.
    接收单元,配置为当快照发送时长小于所述快照同步时延阈值时,接收所述源移动边缘宿主或目的移动边缘宿主通知的所述快照同步完成消息。The receiving unit is configured to receive the snapshot synchronization completion message notified by the source mobile edge host or the destination mobile edge host when the snapshot transmission duration is less than the snapshot synchronization delay threshold.
  20. 根据权利要求18或19所述的应用实例迁移的设备,其中,所述发送单元,还配置为给目的移动边缘宿主发送实例化快照命令;The device of the application instance migration according to claim 18 or 19, wherein the sending unit is further configured to send an instantiated snapshot command to the destination mobile edge host;
    其中,所述实例化快照命令用于控制所述目的移动边缘宿主执行所述快照的实例化。The instantiated snapshot command is used to control the destination mobile edge host to perform instantiation of the snapshot.
  21. 一种应用实例迁移的设备,所述设备包括:A device for application instance migration, the device comprising:
    接收单元,配置为接收源移动边缘宿主发送的源应用实例的快照;a receiving unit, configured to receive a snapshot of a source application instance sent by the source mobile edge host;
    恢复单元,配置为将所述快照在所述设备上恢复成目的应用实例;a recovery unit configured to restore the snapshot to the destination application instance on the device;
    运行单元,配置为在所述设备上运行所述目的应用实例;其中,运 行所述目的应用实例时,根据所述快照的运行流程和状态信息进行运行。a running unit configured to run the target application instance on the device; When the destination application instance is executed, the operation is performed according to the running process and status information of the snapshot.
  22. 根据权利要求21所述的应用实例迁移的设备,其中,所述设备还包括:The device of the application instance migration according to claim 21, wherein the device further comprises:
    保存单元,配置为将所述快照在所述设备上恢复成目的应用实例前,保存终端发送给所述目的应用实例的数据包;a saving unit, configured to save the data packet sent by the terminal to the destination application instance before the snapshot is restored to the destination application instance on the device;
    发送单元,配置为当所述快照在所述设备上恢复成目的应用实例后,将所保存的所述数据包按照保存的先后顺序发送给所述目的应用实例。The sending unit is configured to send the saved data packet to the destination application instance in the saved order after the snapshot is restored to the destination application instance on the device.
  23. 根据权利要求22所述的应用实例迁移的设备,其中,所述发送单元,还配置为当所述快照在所述设备上恢复成目的应用实例后,先将所述源移动边缘宿主保存的数据包按照保存的先后顺序发送给所述目的应用实例,再将所述设备保存的数据包按照保存的先后顺序发送给所述目的应用实例。The apparatus for migrating an application instance according to claim 22, wherein the sending unit is further configured to: after the snapshot is restored to the destination application instance on the device, first save the data saved by the source mobile edge host The packets are sent to the destination application instance in the order in which they are saved, and the data packets saved by the device are sent to the destination application instance in the order in which they are saved.
  24. 根据权利要求22所述的应用实例迁移的设备,其中,所述设备还包括:设置单元,配置为设置流量过滤规则,以根据所述流量过滤规则将终端发送给源应用实例和/或目的应用实例的数据发送给位于目的移动边缘宿主上的目的应用实例或目的移动边缘宿主上的边缘计算移动服务。The device of the application instance migration according to claim 22, wherein the device further comprises: a setting unit configured to set a traffic filtering rule to send the terminal to the source application instance and/or the destination application according to the traffic filtering rule The data of the instance is sent to the edge computing mobile service on the destination application instance or the destination mobile edge host located on the destination mobile edge host.
  25. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行权利要求1-4任一项所述的应用实例迁移的方法,或者配置为执行权利要求5-7任一项所述的应用实例迁移的方法,或者配置为执行权利要求8-13任一项所述的应用实例迁移的方法。 A computer storage medium having stored therein computer executable instructions configured to perform the method of application instance migration of any of claims 1-4, or configured to enforce the claims The method of application instance migration according to any one of claims 5 to 7, or the method of performing the application instance migration according to any one of claims 8-13.
PCT/CN2017/081521 2016-04-21 2017-04-21 Method and device for migration of application instance and computer storage medium WO2017182000A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610252124.8A CN107305502B (en) 2016-04-21 2016-04-21 Application instance migration method and device
CN201610252124.8 2016-04-21

Publications (1)

Publication Number Publication Date
WO2017182000A1 true WO2017182000A1 (en) 2017-10-26

Family

ID=60115719

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/081521 WO2017182000A1 (en) 2016-04-21 2017-04-21 Method and device for migration of application instance and computer storage medium

Country Status (2)

Country Link
CN (1) CN107305502B (en)
WO (1) WO2017182000A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535896A (en) * 2018-05-25 2019-12-03 中兴通讯股份有限公司 A kind of method and apparatus of edge calculations application migration
CN113726882A (en) * 2021-08-30 2021-11-30 中国电信股份有限公司 Information service system, method, device, equipment and medium based on 5G network
CN116319354A (en) * 2023-01-30 2023-06-23 杭州优云科技有限公司 Network topology updating method based on cloud instance migration
EP4156780A4 (en) * 2020-06-29 2023-11-08 Huawei Technologies Co., Ltd. Communication method and communication apparatus

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235298A (en) * 2016-12-21 2018-06-29 上海中兴软件有限责任公司 Path switching method, mobile edge calculations platform and gateway in mobile edge calculations
CN109788515B (en) * 2017-11-13 2021-08-06 中国移动通信有限公司研究院 Data collaboration method, MEC (media independent center) equipment and server
CN109788078B (en) * 2017-11-13 2020-10-16 华为技术有限公司 Application server switching method, device and system
CN109818867B (en) 2017-11-21 2020-10-27 华为技术有限公司 Configuration method and device
US11477846B2 (en) 2018-04-07 2022-10-18 Zte Corporation Application mobility mechanism for edge computing
CN109358967B (en) * 2018-09-26 2021-01-05 中国联合网络通信集团有限公司 ME platform APP instantiation migration method and server
CN111225348B (en) * 2018-11-23 2021-06-01 华为技术有限公司 Application instance migration method and multi-access edge computing host
CN110058929A (en) * 2019-04-15 2019-07-26 南京信息工程大学 The computation migration method and system of 5G mobile application under a kind of hybird environment
CN112153555B (en) * 2019-06-28 2023-07-21 中兴通讯股份有限公司 Method, server, system and storage medium for switching media service between areas
CN112153098B (en) * 2019-06-28 2023-09-29 华为技术有限公司 Application migration method and device
CN112217856A (en) * 2019-07-11 2021-01-12 华为技术有限公司 Address acquisition method, device, equipment and storage medium of application example
CN110457114B (en) * 2019-07-24 2020-11-27 杭州数梦工场科技有限公司 Application cluster deployment method and device
CN114145054B (en) 2019-07-31 2022-10-11 华为技术有限公司 System and method for supporting traffic steering through service function chains
CN111901817A (en) * 2020-03-09 2020-11-06 中兴通讯股份有限公司 Data packet transmission method, device, communication node and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101907989A (en) * 2010-06-01 2010-12-08 南京大学 Mobile agent-based application seamless migration method
CN103116585A (en) * 2011-11-16 2013-05-22 联想(北京)有限公司 Method for webpage synchronization and synchronization device
US9015123B1 (en) * 2013-01-16 2015-04-21 Netapp, Inc. Methods and systems for identifying changed data in an expandable storage volume

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8498997B2 (en) * 2009-09-23 2013-07-30 Hitachi, Ltd. Server image migration
GB2495079A (en) * 2011-09-23 2013-04-03 Hybrid Logic Ltd Live migration of applications and file systems in a distributed system
CN102662751B (en) * 2012-03-30 2016-05-11 浪潮电子信息产业股份有限公司 A kind of method improving based on thermophoresis dummy machine system availability
CN103647849B (en) * 2013-12-24 2017-02-08 华为技术有限公司 Method and device for migrating businesses and disaster recovery system
CN104468521B (en) * 2014-11-13 2017-12-29 华为技术有限公司 Online moving method, device and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101907989A (en) * 2010-06-01 2010-12-08 南京大学 Mobile agent-based application seamless migration method
CN103116585A (en) * 2011-11-16 2013-05-22 联想(北京)有限公司 Method for webpage synchronization and synchronization device
US9015123B1 (en) * 2013-01-16 2015-04-21 Netapp, Inc. Methods and systems for identifying changed data in an expandable storage volume

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535896A (en) * 2018-05-25 2019-12-03 中兴通讯股份有限公司 A kind of method and apparatus of edge calculations application migration
US11637891B2 (en) 2018-05-25 2023-04-25 Zte Corporation Method and apparatus for transferring an edge computing application
EP4156780A4 (en) * 2020-06-29 2023-11-08 Huawei Technologies Co., Ltd. Communication method and communication apparatus
CN113726882A (en) * 2021-08-30 2021-11-30 中国电信股份有限公司 Information service system, method, device, equipment and medium based on 5G network
CN113726882B (en) * 2021-08-30 2023-08-11 中国电信股份有限公司 Information service system, method and device, equipment and medium based on 5G network
CN116319354A (en) * 2023-01-30 2023-06-23 杭州优云科技有限公司 Network topology updating method based on cloud instance migration
CN116319354B (en) * 2023-01-30 2023-11-28 杭州优云科技有限公司 Network topology updating method based on cloud instance migration

Also Published As

Publication number Publication date
CN107305502A (en) 2017-10-31
CN107305502B (en) 2022-01-25

Similar Documents

Publication Publication Date Title
WO2017182000A1 (en) Method and device for migration of application instance and computer storage medium
US10142887B2 (en) Scalable network function virtualization
US20210117224A1 (en) Virtual machine migration while maintaining live network links
AU2019356445B2 (en) Computer system providing mirrored SaaS application sessions
JP5509313B2 (en) Method and apparatus for live replication
JP6432955B2 (en) Method, apparatus and system for migrating virtual network function instances
US11223702B2 (en) Method for migration of virtual network function
WO2016121830A1 (en) Virtual network function management device, system, healing method, and program
US11323919B1 (en) Edge computing for mobile devices that migrate in an access network
WO2019154283A1 (en) Method and apparatus for business migration
Kim et al. Optimal container migration for mobile edge computing: Algorithm, system design and implementation
JP2018513641A (en) Seamless RAN application migration supported by SDN
Abdullaziz et al. Enabling mobile service continuity across orchestrated edge networks
US11138035B1 (en) Messaging between device groups using a logical group address in an access network
Peuster et al. A flow handover protocol to support state migration in softwarized networks
CN112073980B (en) Service migration method and system for mobile edge computing
WO2023162044A1 (en) Switching method, switching system, and switching program
JP7135489B2 (en) Server device, distributed processing method, and program used for distributed processing system
US10148682B2 (en) Security of VDI clones
CN115314957A (en) Edge node switching control method, system, device, equipment, medium and product

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17785484

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 17785484

Country of ref document: EP

Kind code of ref document: A1