WO2017132951A1 - 服务迁移方法、装置及*** - Google Patents

服务迁移方法、装置及*** Download PDF

Info

Publication number
WO2017132951A1
WO2017132951A1 PCT/CN2016/073538 CN2016073538W WO2017132951A1 WO 2017132951 A1 WO2017132951 A1 WO 2017132951A1 CN 2016073538 W CN2016073538 W CN 2016073538W WO 2017132951 A1 WO2017132951 A1 WO 2017132951A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
mobile edge
edge platform
target
local
Prior art date
Application number
PCT/CN2016/073538
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to CN202010820027.0A priority Critical patent/CN112087495B/zh
Priority to CN201680078095.6A priority patent/CN108476215B/zh
Priority to PCT/CN2016/073538 priority patent/WO2017132951A1/zh
Priority to EP16888776.8A priority patent/EP3404885B1/en
Publication of WO2017132951A1 publication Critical patent/WO2017132951A1/zh
Priority to US16/052,349 priority patent/US10673679B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1016IP multimedia subsystem [IMS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • 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
    • G06F9/4862Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration the task being a mobile agent, i.e. specifically designed to migrate
    • G06F9/4875Task life-cycle, e.g. stopping, restarting, resuming execution resumption being on a different machine, e.g. task migration, virtual machine migration the task being a mobile agent, i.e. specifically designed to migrate with migration policy, e.g. auction, contract negotiation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1014Server selection for load balancing based on the content of a request
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • 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
    • H04W36/0033Control or signalling for completing the hand-off for data sessions of end-to-end connection with transfer of context information

Definitions

  • the embodiments of the present invention relate to the field of computer technologies, and in particular, to a service migration method, apparatus, and system.
  • MEC Mobile Edge Computing
  • IT Internet technology
  • Mobile edge computing technology can provide multiple services to the UE, which can be provided by the mobile edge platform or by a Service Provider in the mobile edge platform.
  • the mobile edge platform is an application platform provided in the mobile edge server
  • the service provider is an application running on the mobile edge platform for providing services.
  • the mobile edge platform cannot meet the service requirements, for example, the performance requirements required by the service provider cannot be provided, or the service provider cannot meet the service quality requirements, or the service provider responds to the system load balancing request, the service needs to be taken from the source.
  • the mobile edge platform migrated to the target mobile edge platform, but related service migration technologies have not been discovered in the prior art.
  • an embodiment of the present invention provides a service migration method, apparatus, and system.
  • the technical solution is as follows:
  • a service migration method comprising:
  • the target mobile edge platform receives a service migration request sent by the source mobile edge platform, where the service migration request is used to request a service provided by the migration service provider, where the service migration request includes: a service identifier of the service, and the service identifier is used by the target Identifying the service in at least one service;
  • the target mobile edge platform acquires a service endpoint corresponding to the service identifier, where the service endpoint is an access address when the service provider provides the service;
  • the target mobile edge platform sends a service migration response to the source mobile edge platform.
  • the target mobile edge platform After the target mobile edge platform receives the service migration request sent by the source mobile edge platform; the target mobile edge platform obtains the service endpoint corresponding to the service identifier; the target mobile edge platform sends a service migration response to the source mobile edge platform; The effect of the mobile edge platform successfully migrating to the target mobile edge platform.
  • the method further includes:
  • a target temporary service endpoint According to a protocol (English: Internet Protocol, IP address) interconnected between the service endpoint and the network of the target mobile edge platform; the target temporary service endpoint Is the access address when the service provider provides the service through the target mobile edge platform.
  • a protocol English: Internet Protocol, IP address
  • the target mobile edge platform After obtaining the service endpoint, the target mobile edge platform generates a target temporary service endpoint according to the IP address of the service endpoint and the target mobile edge platform, and implements the service endpoint generated by the target mobile edge platform and the IP address of the target mobile edge platform. Related target temporary service endpoints.
  • the method further includes:
  • the target mobile edge platform sends an update routing request to the routing table controller, where the update routing request includes: an IP address of the service endpoint and the target mobile edge platform; and the update routing request is used to request the routing table
  • the controller updates the path to the service endpoint.
  • the target mobile edge platform updates the service routing table by sending an update routing request to the routing table controller, and routes the service-related data to the target temporary service endpoint through the updated routing table, thereby realizing the service consumer using the service.
  • the updated routing table accesses the effect of the migrated service.
  • the method further includes:
  • the target mobile edge platform stores a correspondence between the service endpoint and a tunnel, where the tunnel is a tunnel between a local mobile edge platform and the target mobile edge platform, and the local mobile edge platform uses the service The mobile edge platform on which the service consumer is located, the tunnel being used to transmit data between the service consumer and the service provider.
  • the target mobile edge platform establishes a routing policy between the local mobile edge platform and the target mobile edge platform by preserving the correspondence between the service endpoint and the tunnel, so that the service consumer using the service can access the migration after the tunnel is established. Service.
  • a fourth possible implementation manner of the first aspect after the target mobile edge platform sends a service migration response to the source mobile edge platform, also includes:
  • the target mobile edge platform sends service information to the local mobile edge platform, the service information including: the service identifier and the target temporary service endpoint.
  • the target mobile edge platform receives the subscription request sent by the local mobile edge platform; the target mobile edge platform sends the service information to the local mobile edge platform of the subscription service; and implements the local mobile edge platform to subscribe to the target mobile edge platform, after the service migration,
  • the local mobile edge platform of the subscription service can still correctly use the services migrated to the target mobile edge platform, thereby ensuring that the service consumer provides the service availability and reliability of the user equipment.
  • the method further includes:
  • the target mobile edge platform sends service information to the local mobile edge platform, the service information including: the service identifier and the service endpoint.
  • the target mobile edge platform receives the subscription request sent by the local mobile edge platform; the target mobile edge platform sends the service information to the local mobile edge platform of the subscription service; and implements the local mobile edge platform to subscribe to the target mobile edge platform, after the service migration,
  • the local mobile edge platform of the subscription service can still correctly use the services migrated to the target mobile edge platform, thereby ensuring that the service consumer provides the service availability and reliability of the user equipment.
  • the target mobile edge platform acquires a service endpoint corresponding to the service identifier, including:
  • the target mobile edge platform may obtain the service endpoint corresponding to the service identifier by using the service migration request sent by the source mobile edge platform platform, or directly receive the service endpoint corresponding to the service identifier sent by the service provider, and implement the target mobile
  • the receiving, by the service provider, the service endpoint corresponding to the service identifier includes:
  • the target mobile edge platform directly receives the service endpoint corresponding to the service identifier sent by the service provider in two ways: the service provider can actively send a registration request to the target mobile edge platform, or the target mobile edge platform can actively provide the service to the service.
  • the sender sends a re-registration indication, and the service provider sends a registration request to the target mobile edge platform according to the re-registration indication, thereby realizing the diversification of the service provider's registration mode on the target mobile edge platform.
  • a service migration method comprising:
  • the source mobile edge platform sends a service migration request to the target mobile edge platform, where the service migration request is used to request a service provided by the migration service provider, where the service migration request includes: a service identifier of the service, where the service identifier is used for Identifying the service in at least one service;
  • the source mobile edge platform receives a service migration response sent by the target mobile edge platform.
  • the source mobile edge platform receives the service migration response sent by the target mobile edge platform by sending a service migration request to the target mobile edge platform, thereby realizing the effect of migrating the service from the source mobile edge platform to the target mobile edge platform.
  • the source mobile edge platform sends a service migration request to the target mobile edge platform, including:
  • the source mobile edge platform sends the service migration request to the target mobile edge platform when determining that the service needs to be migrated;
  • the source mobile edge platform receives a migration request sent by the service provider, the migration request is sent by the service provider when determining that the service needs to be migrated; the source mobile edge platform moves to the target moving edge The platform sends the service migration request.
  • the source mobile edge platform sends a service migration request directly to the target mobile edge platform when determining that the service needs to be migrated; or the service provider sends a migration request to the source mobile edge platform when determining that the service needs to be migrated, and the source mobile edge platform is migrated according to the migration.
  • Requesting to send a service migration request to the target mobile edge platform enables diversification of the source mobile edge platform to send a service migration request.
  • the method further includes:
  • the source mobile edge platform sends service migration information to a local mobile edge platform that subscribes to the service, where the service migration information includes: the service identifier and an IP address of the target mobile edge platform, where the local mobile edge platform is The mobile edge platform on which the service consumer using the service is located;
  • the source mobile edge platform receives an unsubscribe request sent by the local mobile edge platform, and the unsubscribe request is used to cancel a service subscribed on the source mobile edge platform.
  • the source mobile edge platform sends the service migration information to the local mobile edge platform of the subscription service, thereby canceling the service subscribed by the local mobile edge platform on the source mobile edge platform, and realizing the migration of the service from the source mobile edge platform to the target mobile edge platform.
  • Service consumers who subscribe to services in the mobile edge platform can still use the effects of the migrated service.
  • the method before the source mobile edge platform receives the unsubscribe request sent by the local mobile edge platform, the method further includes:
  • the source mobile edge platform deletes a correspondence between a service endpoint and a tunnel, where the service endpoint is an access address when the service provider provides the service; the tunnel is the local mobile edge platform and the source A tunnel between mobile edge platforms for transmitting data between the service consumer and the service provider.
  • the source mobile edge platform can establish a tunnel between the local mobile edge platform of the subscription service and the target mobile edge platform by deleting the correspondence between the service endpoint and the tunnel.
  • a service migration method comprising:
  • the local mobile edge platform receives service migration information sent by the source mobile edge platform, where the service moves
  • the movement information is used to indicate that the service provided by the service provider has been migrated to the target mobile edge platform;
  • the service migration information includes: a service identifier of the service and an IP address of the target mobile edge platform; the service identifier is used in at least one Identifying the service in the service;
  • the local mobile edge platform sends an unsubscribe request to the source mobile edge platform according to the service migration information, where the unsubscribe request is used to cancel the service subscribed on the source mobile edge platform;
  • the local mobile edge platform receives the service information sent by the target mobile edge platform, where the service information includes: the service identifier;
  • the local mobile edge platform is a mobile edge platform where a service consumer using the service is located.
  • the local mobile edge platform subscribes to the service on the source mobile edge platform.
  • the local mobile edge platform cancels the subscription service on the source mobile edge platform, on the target mobile edge platform. Re-subscribing to the service enables the local mobile edge platform to still access the subscribed service after the service is sent for migration.
  • the method further includes:
  • the local mobile edge platform sends a tunnel deletion request to the local service network function entity, where the tunnel deletion request is used to delete a tunnel between the local mobile edge platform and the source mobile edge platform;
  • the local mobile edge platform sends a tunnel establishment request to the local service network function entity, the tunnel establishment request for establishing a tunnel between the local mobile edge platform and the target mobile edge platform.
  • the local mobile edge platform deletes the tunnel between the source mobile edge platform and the target mobile edge platform, and accesses the migrated service in the target mobile edge platform through the established tunnel.
  • the routing is updated by establishing a tunnel. The effect of the strategy.
  • the service information further includes: a target temporary service endpoint of the service, where the target temporary service endpoint is provided by the service provider by using the target mobile edge platform The access address of the service.
  • the service information includes the target temporary service endpoint of the service, and the local mobile edge platform is based on the service letter.
  • the target temporary service endpoint included in the interest rate accesses the effect of the migrated service in the target mobile edge platform.
  • the service information further includes: a service endpoint of the service, where the service endpoint is an access address when the service provider provides the service.
  • the service information includes a service endpoint of the service, and the local mobile edge platform accesses the effect of the migrated service in the target mobile edge platform according to the service endpoint included in the service information.
  • the method further includes:
  • the local mobile edge platform generates a local temporary service endpoint according to the target temporary service endpoint and the IP address of the local mobile edge platform, where the local temporary service endpoint is provided by the service provider through the local mobile edge platform The access address of the service;
  • the local mobile edge platform sends local service information to a service consumer using the service, the local service information including: the service identification and the local temporary service endpoint.
  • the local mobile edge platform generates a local temporary service endpoint according to the IP addresses of the target temporary service endpoint and the local mobile edge platform, so that the service consumer can access the migrated service in the target mobile edge platform through the local temporary service endpoint.
  • the local mobile edge platform receives the target mobile After the service information sent by the edge platform, it also includes:
  • the local mobile edge platform sends the service information to a service consumer using the service.
  • the local mobile edge platform sends service information to the service consumer using the service so that the service consumer can access the effect of the subscribed service through the service endpoint or the target temporary service endpoint.
  • a service migration apparatus comprising at least one unit for implementing the service migration method provided in the above first aspect or the possible implementation manner of the first aspect.
  • a service migration apparatus comprising at least one unit for implementing the service migration method provided in the second aspect or the possible implementation manner of the second aspect.
  • a service migration apparatus comprising at least one unit for implementing the service migration method provided in the third aspect or the possible implementation manner of the third aspect.
  • a seventh aspect provides a service migration system, where the system includes: a target mobile edge platform, a source mobile edge platform, and a local mobile edge platform;
  • the target mobile edge platform includes the service migration device as described in the fourth aspect above;
  • the source mobile edge platform includes the service migration device as described in the fifth aspect above;
  • the local mobile edge platform includes the service migration device of the sixth aspect above.
  • FIG. 1A is a schematic diagram of an EPS network architecture according to an exemplary embodiment of the present invention.
  • FIG. 1B is a schematic diagram of a service migration solution according to an exemplary embodiment of the present invention.
  • FIG. 2 is a flowchart of a service migration method according to an exemplary embodiment of the present invention.
  • FIG. 3 is a flowchart of a service migration method according to an exemplary embodiment of the present invention.
  • FIG. 4 is a flowchart of a service migration method according to another exemplary embodiment of the present invention.
  • FIG. 5 is a flowchart of a service migration method according to another exemplary embodiment of the present invention.
  • FIG. 6 is a flowchart of a service migration method according to another exemplary embodiment of the present invention.
  • FIG. 7 is a flowchart of a service migration method according to another exemplary embodiment of the present invention.
  • FIG. 8 is a block diagram of a service migration apparatus according to an exemplary embodiment of the present invention.
  • FIG. 9 is a block diagram of a service migration apparatus according to another exemplary embodiment of the present invention.
  • FIG. 10 is a block diagram of a service migration apparatus according to another exemplary embodiment of the present invention.
  • FIG. 11 is a block diagram of a service migration system according to an exemplary embodiment of the present invention.
  • FIG. 1A is a schematic diagram of an Evolved Packet System (EPS) network architecture provided by an exemplary embodiment of the present invention.
  • the network architecture The user equipment (English: User Equipment, UE for short) 110, the Evolved Universal Terrestrial Radio Access Network (E-UTRAN) 120, and the mobility management entity (English: Mobility Management Entity (MME) 130, Serving Gateway (English: Serving Gateway, SGW) 140, Serving General Packet Radio System Support Node (SGSN) 150, home subscriber Server (English: Home Subscribe Server, HSS for short) 160, Packet Data Network Gateway (PGW) 170 and Policy and Charging Rules Function (English: Policy and Charging Rules Function, PCRF ) 180.
  • MME Mobility Management Entity
  • SGW Serving Gateway
  • SGSN Serving General Packet Radio System Support Node
  • PGW Packet Data Network Gateway
  • PCRF Policy and Charging Rules Function
  • the UE 110 is connected to the E-UTRAN 120 through an LTE-U interface.
  • the E-UTRAN 120 is a network composed of a plurality of evolved base stations (English: Evolved NodeB, abbreviated as: eNodeB).
  • the E-UTRAN 120 may include functions such as wireless physical layer functions, resource scheduling, radio resource management, radio access control, and mobility management.
  • the E-UTRAN 120 is connected to the SGW 140 through the user plane interface S1-U.
  • the GPRS Tunneling Protocol User Plane (GTP-U) is used to transmit data between the E-UTRAN 120 and the SGW 140.
  • the E-UTRAN 120 is connected to the MME 130 through the control plane interface S1-MME, and the E-UTRAN 120 and the MME 130 implement functions such as radio access bearer control through the S1-AP protocol.
  • the MME 130 mainly includes a control plane function of session management. Among them, non-access stratum (English: Non-access Stratum, referred to as: NAS) signaling and security, tracking area list (English: Tracking Area List, referred to as: TAL) management.
  • the MME 130 is connected to the SGW 140 through an S11 interface; is connected to the SGSN 150 through an S3 interface; and is connected to the HSS 160 through an S6a interface.
  • the SGW 140 mainly includes functions such as data transmission, forwarding, and route switching of the UE 110, and serves as a local mobility anchor point when the UE 110 switches between eNodeBs. There is only one SGW 140 serving each UE 110 at the same time.
  • the SGW 140 is connected to the PGW 170 through an S5 interface, and is connected to the SGSN 150 through an S4 interface.
  • the PGW 170 is an anchor point for packet data network (English: Packet Data Network, PDN for short) connection. It mainly includes the network address allocation of the UE 110, the data packet filtering, the rate control, and the generation of the charging information of the UE 110.
  • the PGW 170 is connected to the PCRF 180 through a Gx interface.
  • the PGW 170 is connected to the operator's network service through the SGi interface, and the PCRF 180 is connected to the operator's network service 190 via the Rx+ interface.
  • the mobile edge server 191 is mainly located at the location of the user plane interface S1-U, and the moving edge The platform can only process the data of the user plane in the EPS system.
  • the mobile edge server 191 may include functions such as communication service and service registration.
  • the communication service and service registration enables the service provider in the mobile edge server 191 to provide network information to the service consumer for use via the mobile edge platform.
  • the upper layer node of the mobile edge platform is the SGW 140, and the next layer node of the mobile edge platform is the eNodeB.
  • FIG. 1B is a schematic diagram of an implementation environment of service migration in a mobile edge system according to an exemplary embodiment of the present invention.
  • the implementation environment may include a source mobile edge server 210, a target mobile edge server 220, a source mobile edge platform 230, a target mobile edge platform 240, a source service provider 250, a service consumer 260, and a target service provider 270.
  • the source mobile edge server 210 can include a source mobile edge platform 230, a source service provider 250, a service consumer 260, and a source switch 211.
  • An active mobile edge platform 230, a source service provider 250, and at least one service consumer 260 that use the service are respectively connected to the source switch 211.
  • at least one service consumer 260 connected to the source switch 211 may be a service consumer 260 inside the source mobile edge platform 230, or may be a service in a local mobile edge platform (not shown). Consumer 260.
  • the source service provider 250 provides service to the service consumer 260 using the service through the source switch 211, and the service consumer 260 using the service accesses the service provided by the source service provider 250 through the source switch 211.
  • the source service provider 250 refers to an application that provides services in the source mobile edge server 210; the service consumer 260 refers to an application that uses the service.
  • the target mobile edge server 220 can include a target mobile edge platform 240, a target service provider 270, a service consumer 260, and a target switch 221.
  • a target mobile edge platform 240 and at least one service consumer 260 are connected to the target switch 221, respectively.
  • at least one service consumer 260 connected to the target switch 221 may be a service consumer 260 inside the target mobile edge platform 240, or may be a service in a local mobile edge platform (not shown). Consumer 260.
  • the target service provider 270 refers to an application that provides services in the target mobile edge server 240.
  • the source mobile edge server 210 and the target mobile edge server 220 establish communication in three different ways:
  • a service mapping table is created in the source mobile edge platform 230 (figure The source temporary service endpoint is generated according to the service endpoint of the service; the service mapping table (not shown) is created in the target mobile edge platform 240, and the target temporary service endpoint is generated according to the service endpoint.
  • the service is registered with the source mobile edge platform 230, the service related data is routed to the source temporary service endpoint; when the service migrates to the target mobile edge platform 240, the service related data is routed to the target temporary service endpoint.
  • the service endpoint refers to the access address when the service provider provides the service;
  • the source temporary service endpoint refers to the access address when the service provider provides the service through the source mobile edge platform;
  • the target temporary service endpoint refers to the service provider provides through the target mobile edge platform The access address at the time of service.
  • the service endpoint includes the IP address and resource path of the service provider; the source temporary service endpoint includes the IP address and resource path of the source mobile edge platform; and the target temporary service endpoint includes the IP address and resource path of the target mobile edge platform.
  • communication is established between the source switch 211 and the target switch 221 via the routing table controller 280.
  • the source mobile edge platform 230 updates the routing table in all switches through the routing table controller 280, routing the service related data to the service endpoint associated with the source mobile edge platform 230;
  • the target mobile edge platform 240 updates the routing tables in all switches through the routing table controller 280, routing the service related data to the service endpoints associated with the target mobile edge platform 240.
  • communication is established between the source switch 211 and the target switch 221 via the tunnel 290.
  • a tunnel 290 is established between the local mobile edge platform and the source mobile edge platform 230, and service related data is tunneled between the local mobile edge platform and the source mobile edge platform 230 through the tunnel 290.
  • FIG. 2 shows a flowchart of a service migration method provided by an exemplary embodiment of the present invention. This embodiment is illustrated by using the method in the implementation environment shown in FIG. 1B.
  • the service migration method includes:
  • Step 201 The source mobile edge platform sends a service migration request to the target mobile edge platform, where the service migration request includes: a service identifier of the service.
  • the service migration request is used to request a service provided by the migration service provider, and the service identifier is used to identify the service in at least one service.
  • the source mobile edge platform When the service needs to be migrated, the source mobile edge platform sends a service migration request to the migrated target mobile edge platform.
  • the service migration request includes at least the service ID of the service.
  • the target mobile edge platform receives a service migration request sent by the source mobile edge platform, where the service migration request is used to request a service provided by the migration service provider, where the service migration request includes: a service identifier of the service, and the service identifier is used in at least one service. Identification service.
  • Step 202 The target mobile edge platform acquires a service endpoint corresponding to the service identifier.
  • the service endpoint is the access address when the service provider provides the service.
  • the service endpoint includes the IP address and resource path of the service provider.
  • the target mobile edge platform obtains the service endpoint corresponding to the service identifier according to the service identifier in the service migration request.
  • Step 203 The target mobile edge platform sends a service migration response to the source mobile edge platform.
  • the target mobile edge platform After obtaining the service endpoint corresponding to the service identifier, the target mobile edge platform sends a service migration response to the source mobile edge platform; the service migration response is used to notify the source mobile edge platform that the service migration is completed.
  • the source mobile edge platform receives the service migration response sent by the target mobile edge platform.
  • the service migration method sends a service migration request to the target mobile edge platform by using the source mobile edge platform, where the service migration request includes: a service identifier of the service; and the target mobile edge platform acquires a service corresponding to the service identifier. Endpoint; the target mobile edge platform sends a service migration response to the source mobile edge platform; solves the problem of migrating the service provider from the source mobile edge platform to the target mobile edge platform; and migrating the service provider from the source mobile edge platform to The effect of the target moving edge platform.
  • the process of migrating services from the source mobile edge platform to the target mobile edge platform includes three possible solutions: first, the migration service provider is first migrated from the source mobile edge platform to the target mobile edge platform, and then separately The service provided by the service provider is migrated to the target mobile edge platform; secondly, the service provided by the service provider is first migrated to the target mobile edge platform, and then the service provider is migrated to the target mobile edge platform; third, first Some of the services provided by the service provider are migrated to Target mobile edge platform, then migrate the service provider to the target mobile edge platform, and finally migrate the remaining services provided by the service provider to the target mobile edge platform. Only after the service provider and the service provided by the service provider are migrated to the target mobile edge platform, the service migrated to the target mobile edge platform can be accessed normally.
  • a service provider provides 5 services
  • the process of migrating services from the source mobile edge platform to the target mobile edge platform includes three possible solutions: First: migrating the service provider from the source mobile edge platform to the target mobile
  • the edge platform respectively, migrates the five services provided by the service provider from the source mobile edge platform to the target mobile edge platform; secondly, first migrates the five services provided by the service provider from the source mobile edge platform to the target mobile edge.
  • the platform then migrates the service provider from the source mobile edge platform to the target mobile edge platform; third, first migrates the x services provided by the service provider from the source mobile edge platform to the target mobile edge platform, and then the service provider The source mobile edge platform migrates to the target mobile edge platform, and finally the y services provided by the service provider are migrated from the source mobile edge platform to the target mobile edge platform.
  • x+y 5.
  • the step of the target mobile edge platform side in the embodiment of FIG. 2 can be separately implemented as the service migration method on the target mobile edge platform side; the step of the source mobile edge platform side can be separately implemented as the service migration method on the source mobile edge platform side. .
  • the source mobile edge server may include a service provider and a source mobile edge platform; the target mobile edge server may include a target mobile edge platform; the local mobile edge server may include a local mobile edge platform and a service consumer.
  • FIG. 3 shows a flowchart of a service migration method provided by an exemplary embodiment of the present invention. This embodiment is illustrated by using the method in the implementation environment shown in FIG. 1B.
  • the service migration method includes:
  • Steps 301 to 307 are processes in which the Service Provider registers the service at the source mobile edge platform, and the service consumer using the service in the local mobile edge platform uses the registered service.
  • step 301 the service provider registers the service to the source mobile edge platform.
  • the service provider provides the service identity (Service ID) and service endpoint (S-endpoint) to the source mobile edge platform.
  • Service ID service identity
  • S-endpoint service endpoint
  • a service identifier is an identifier of a service provided by a service provider for identifying in at least one service service.
  • Each service provided by a service provider has a unique identifier.
  • a service provider can provide one service or multiple services at the same time. The service identifiers of multiple services are different.
  • a service endpoint is an access address when a service provider provides a service.
  • Uniform Resource Locator English: Uniform Resource Locator, abbreviation: URL
  • Universal Resource Identifier English: Uniform Resource Identifier, URI for short.
  • the service endpoint typically includes the service provider's IP address and resource path.
  • each service provided by the service provider corresponds to a unique service identifier and service endpoint.
  • a service provider can provide three services at the same time, and the identity of each service is different.
  • Table 1 exemplarily shows the correspondence between the service and the service identifier.
  • a service provider is an application that provides a service; a service endpoint is an access address when a service provider provides a service.
  • the source mobile edge platform receives the service identifier and service endpoint provided by the service provider.
  • Step 302 The source mobile edge platform creates a service mapping table, and maps the service endpoint to the source temporary service endpoint.
  • the source mobile edge platform After receiving the service identifier and service endpoint provided by the service provider, the source mobile edge platform creates a service mapping table, and generates a source temporary service endpoint according to the service endpoint (S-endpoint) provided by the service provider and the IP address of the source mobile edge platform.
  • S-endpoint service endpoint
  • the service mapping table includes a service endpoint and a source temporary service endpoint, and the service mapping table is used to map the service endpoint to the corresponding source temporary service endpoint.
  • the source temporary service endpoint includes an IP address of the source mobile edge platform.
  • the service endpoint includes the IP address and resource path of the service provider
  • the source temporary service endpoint includes the IP address and resource path of the source mobile edge platform.
  • the source mobile edge platform creates a service mapping table, but only maps the IP address of the service provider in the service endpoint to the IP address of the source mobile edge platform.
  • the source temporary service endpoint is an access address when the service provider provides the service through the source mobile edge platform.
  • Table 2 exemplarily shows the mapping relationship between the service endpoint and the source temporary service endpoint.
  • a service endpoint is an access address when a service provider provides a service.
  • the source temporary service endpoint refers to the access address used to access the service registered in the source mobile edge platform, and the source temporary service endpoint includes the IP address of the source mobile edge platform.
  • Step 303 The service consumer sends a subscription request to the local mobile edge platform, where the subscription request includes a service identifier.
  • Service Consumer refers to an application that uses a service. Service consumers using the service send a subscription request to the local mobile edge platform when they need to use the service.
  • the local mobile edge platform is the mobile edge platform where the service consumers using the service are located.
  • the local mobile edge platform receives a subscription request sent by the service consumer.
  • Step 304 The local mobile edge platform sends a subscription request to the source mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform After receiving the subscription request sent by the service consumer, the local mobile edge platform includes the service identifier in the subscription request. The local mobile edge platform queries the source mobile edge platform where the corresponding service is located according to the service identifier.
  • the local mobile edge platform queries the management node for the source mobile edge platform where the service corresponding to the service identifier is located according to the service identifier.
  • the second type of the local mobile edge platform sends the query message to all the mobile edge platforms.
  • the query message includes the service identifier, and the source mobile edge platform where the service corresponding to the service identifier is located is queried according to the query message.
  • the source mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 305 The source mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a source temporary service endpoint.
  • the source mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the source mobile edge platform sends the service information of the service to the local mobile edge platform of the subscription service, where the service information includes the service identifier of the subscription service and the source temporary service endpoint.
  • the local mobile edge platform receives the service information sent by the source mobile edge platform.
  • Step 306 the local mobile edge platform creates a service mapping table, and maps the source temporary service endpoint to a local temporary service endpoint.
  • the local mobile edge platform After receiving the service information, the local mobile edge platform creates a service mapping table. Map the source temporary service endpoint to a local temporary service endpoint in the service map based on the source temporary service endpoint and the IP address of the local mobile edge platform.
  • the process of mapping the source temporary service endpoint to the local temporary service endpoint by the local mobile edge platform is similar to the process of mapping the service endpoint to the source temporary service endpoint by the source mobile edge platform. For details, see the source mobile edge platform mapping the service endpoint to the source temporary. The process of serving an endpoint.
  • the local mobile edge platform After receiving the service identifier and source temporary service endpoint sent by the source mobile edge platform, the local mobile edge platform creates a service mapping table and maps the source temporary service endpoint (S-SB-endpoint) to the local temporary service endpoint (L-SB- Endpoint), the service mapping table includes a source temporary service endpoint and a local temporary service endpoint, and the service mapping table is used to map the source temporary service endpoint to a corresponding local temporary service endpoint.
  • S-SB-endpoint source temporary service endpoint
  • L-SB- Endpoint local temporary service endpoint
  • Table 3 exemplarily shows the mapping relationship between the source temporary service endpoint and the local temporary service endpoint.
  • the source temporary service endpoint refers to the access address when the service provider provides the service through the source mobile edge platform
  • the local temporary service endpoint refers to the service provider when the service is provided through the local mobile edge platform. address.
  • Step 307 The local mobile edge platform sends local service information to the service consumer, where the local service information includes a service identifier and a local temporary service endpoint.
  • the local mobile edge platform sends local service information to the service consumer using the service so that the service consumer accesses the subscribed service according to the local temporary service endpoint.
  • the service consumer receives local service information sent by the local mobile edge platform.
  • the service needs to be migrated from the source mobile edge platform to the target. Move on the edge platform.
  • the specific migration process is as follows in steps 308 to 316.
  • Step 308 The source mobile edge platform sends a service migration request to the target mobile edge platform, where the service migration request includes a service identifier and a service endpoint.
  • the service migration request is used to request a service provided by the migration service provider, and the service migration request includes a service identifier of the service and a service endpoint corresponding to the service identifier; the service identifier is used to identify the service in the at least one service.
  • the source mobile edge platform sends a service migration request to the target mobile edge platform.
  • the two methods are as follows:
  • the source mobile edge platform detects whether the service needs to be migrated, and sends a service migration request to the target mobile edge platform when the service needs to be migrated; if the service does not need to be migrated, the source mobile edge platform does not send the service migration to the target mobile edge platform. request.
  • the service provider detects whether the service needs to be migrated, and sends a migration request to the source mobile edge platform when the service needs to be migrated; the source mobile edge platform sends the service to the target mobile edge platform after receiving the migration request sent by the service provider. Migration request; when the service does not need to be migrated, the service provider does not send a migration request to the source mobile edge platform.
  • the target mobile edge platform can be determined by providing performance requirements and load balancing.
  • the determination of the target mobile edge platform in the embodiment of the present invention is not specifically limited.
  • the target mobile edge platform receives the service migration request sent by the source mobile edge platform.
  • Step 309 the target mobile edge platform creates a service mapping table, and maps the service endpoint to the target temporary service endpoint.
  • the target mobile edge platform After receiving the service migration request, the target mobile edge platform obtains the service identifier and the service endpoint in the service migration request, and creates a service mapping table. According to the obtained service endpoint (S-endpoint) and The IP address of the target mobile edge platform generates a target temporary service endpoint (T-SB-endpoint), the service mapping table includes a service endpoint and a target temporary service endpoint, and the service mapping table is used to map the service endpoint to the corresponding target temporary service endpoint. .
  • the target temporary service endpoint is the access address when the service provider provides the service through the target mobile edge platform.
  • Table 4 exemplarily shows the mapping relationship between the service endpoint and the target temporary service endpoint.
  • a service endpoint is an access address when a service provider provides a service.
  • the target temporary service endpoint refers to the access address used to access the service registered in the target mobile edge platform, and the target temporary service endpoint includes the IP address of the target mobile edge platform.
  • the process by which the target mobile edge platform maps the service endpoint to the target temporary service endpoint is similar to the process in which the source mobile edge platform maps the service endpoint to the source temporary service endpoint. For detailed procedures, see the process of mapping the service endpoint to the source temporary service endpoint by the source mobile edge platform.
  • Step 310 The target mobile edge platform sends a service migration response to the source mobile edge platform.
  • the target mobile edge platform After mapping the service endpoint to the target temporary service endpoint, the target mobile edge platform sends a service migration response to the source mobile edge platform, and the service migration response is used to notify the source mobile edge platform that the service migration is completed.
  • the source mobile edge platform receives the service migration response sent by the target mobile edge platform.
  • Step 311 The source mobile edge platform sends service migration information to the local mobile edge platform, where the service migration information includes: the service identifier and an IP address of the target mobile edge platform.
  • the source mobile edge platform After receiving the service migration response sent by the target mobile edge platform, the source mobile edge platform sends service migration information to the local mobile edge platform of the subscription service, where the service migration information includes the service identifier and the IP address of the target mobile edge platform.
  • the service migration information is used to notify the local mobile edge platform of the subscription service that the service migrates and notifies the local mobile edge platform of the IP address of the target mobile edge platform.
  • the local mobile edge platform receives the service migration information sent by the source mobile edge platform.
  • Step 312 The local mobile edge platform sends an unsubscribe request to the source mobile edge platform, where the unsubscribe request includes a service identifier.
  • the unsubscribe request is used to cancel the service subscribed to on the source mobile edge platform.
  • the local mobile edge platform After receiving the service migration information sent by the source mobile edge platform, the local mobile edge platform sends an unsubscribe request to the source mobile edge platform.
  • the unsubscribe request is used to cancel the subscription of the local mobile edge platform on the source mobile edge platform.
  • the source mobile edge platform receives the unsubscribe request sent by the local mobile edge platform.
  • Step 313 The local mobile edge platform sends a subscription request to the target mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform cancels the subscription service to the target mobile edge platform after subscribing to the service on the source mobile edge platform.
  • the subscription request is used to request a subscription to the service on the target mobile edge platform.
  • the target mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 314 The target mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a target temporary service endpoint.
  • the target mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the target mobile edge platform sends service information to the local mobile edge platform of the subscription service, where the service information includes the service identifier and the target temporary service endpoint.
  • the local mobile edge platform receives the service information sent by the target mobile edge platform.
  • Step 315 The local mobile edge platform updates the service mapping table, and updates the source temporary service endpoint that has a mapping relationship with the local temporary service endpoint to the target temporary service endpoint.
  • the local mobile edge platform After receiving the service information sent by the target mobile edge platform, the local mobile edge platform updates the service mapping table, and updates the source temporary service endpoint (S-SB-endpoint) in the service mapping table to the local temporary service endpoint.
  • Temporary Service Endpoint T-SB-endpoint. That is, the local mobile edge platform deletes the mapping relationship between the source temporary service endpoint and the local temporary service endpoint according to the service identifier, and establishes a mapping relationship with the target temporary service endpoint.
  • the service mapping table includes a target temporary service endpoint and a local temporary service endpoint, and the service mapping table is used to map the target temporary service endpoint to the corresponding local temporary service endpoint.
  • Table 5 exemplarily shows the mapping relationship between the target temporary service endpoint and the local temporary service endpoint.
  • the local temporary service endpoint refers to the access address of the service in the local mobile edge platform to the service in the target mobile edge platform.
  • Step 316 The local mobile edge platform sends local service information to the service consumer, where the local service information includes a service identifier and a local temporary service endpoint.
  • the local mobile edge platform After updating the service mapping table, the local mobile edge platform sends local service information to the service consumer.
  • the local service information includes the service identifier and the local temporary service endpoint, and the local temporary service endpoint has a mapping relationship with the target temporary service endpoint.
  • the local mobile edge platform includes the L-SB-endpoint 6 in the local service information and sends it to the service consumer, and the service consumer accesses the subscribed service 1 according to the L-SB-endpoint 6.
  • the service consumer using the service receives the local service information sent by the local mobile edge platform, and accesses the subscribed service through the local temporary service endpoint carried in the local service information.
  • the service migration method provided in this embodiment is to subscribe to the service on the source mobile edge platform.
  • the source mobile edge platform sends the service migration information to the local mobile edge platform of the subscription service, so that the subscription service is enabled.
  • the local mobile edge platform cancels the service subscribed on the source mobile edge platform, resubscribes the service on the target mobile edge platform, and updates the routing policy by creating a mapping table, and routes the service-related data to the target temporary service endpoint to solve
  • the service consumer can continue to correctly use the service after migrating to the target mobile edge platform, thereby ensuring that the service consumer provides the user device with the availability and reliability of the service.
  • the service endpoint obtained by the target mobile edge platform from the service migration request sent by the source mobile edge platform remains unchanged before and after the service migration.
  • the service consumer who uses the service is located at the local mobile edge server for illustration.
  • the service consumer using the service may also be located in the source mobile edge server, or may be located in the target mobile edge server.
  • the source mobile edge server belongs to the same server as the local mobile edge server; when the service consumer using the service is located in the target mobile edge server, the target mobile edge server and the local The mobile edge server belongs to the same server.
  • the source mobile edge server may include a source service provider and a source mobile edge platform; the target mobile edge server may include a target service provider and a target mobile edge platform; the local mobile edge server may include a local mobile edge platform and a service consumer. .
  • the target service provider refers to the source service provider after migrating to the target mobile edge platform.
  • FIG. 4 shows a flowchart of a service migration method provided by another exemplary embodiment of the present invention. This embodiment is illustrated by using the method in the implementation environment shown in FIG. 1B.
  • the service migration method includes:
  • Steps 401 to 407 are processes in which the Service Provider registers the service at the source mobile edge platform, and the Service Consumer in the local mobile edge platform uses the registered service.
  • step 401 the source service provider registers the service to the source mobile edge platform.
  • the source service provider provides the service identity (Service ID) and service endpoint (S-endpoint) to the source mobile edge platform.
  • Service ID service identity
  • S-endpoint service endpoint
  • the service identifier is Service ID1 and the service endpoint is S-endpoint11.
  • the source service provider refers to the application that provides the service in the source mobile edge server; the service endpoint refers to the access address of the service.
  • the source mobile edge platform receives the service identifier and service endpoint provided by the source service provider.
  • Step 402 The source mobile edge platform creates a service mapping table, and maps the service endpoint to a source temporary service endpoint.
  • the source mobile edge platform After receiving the service identifier and service endpoint provided by the source service provider, the source mobile edge platform creates a service mapping table, and maps the service endpoint (S-endpoint) provided by the source service provider to the source temporary service endpoint (S-SB- Endpoint), the service mapping table includes a service endpoint and a source temporary service endpoint, and the service mapping table is used to map the service endpoint to the corresponding source temporary service endpoint.
  • the source temporary service endpoint includes an IP address of the source mobile edge platform.
  • the source temporary service endpoint is an access address when the service provider provides the service through the source mobile edge platform.
  • Step 403 The service consumer sends a subscription request to the local mobile edge platform, where the subscription request includes a service identifier.
  • Service Consumer refers to an application that uses a service.
  • the local mobile edge platform receives a subscription request sent by the service consumer.
  • Step 404 The local mobile edge platform sends a subscription request to the source mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform After receiving the subscription request sent by the service consumer, the local mobile edge platform obtains the service identifier included in the subscription request. The local mobile edge platform queries the source mobile edge platform where the corresponding service is located according to the service identifier.
  • the local mobile edge platform queries the management node for the source mobile edge platform where the service corresponding to the service identifier is located according to the service identifier.
  • the second type of the local mobile edge platform sends the query message to all the mobile edge platforms.
  • the query message includes the service identifier, and the source mobile edge platform where the service corresponding to the service identifier is located is queried according to the query message.
  • the source mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 405 The source mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a source temporary service endpoint.
  • the source mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the source mobile edge platform sends the service information of the service to the local mobile edge platform of the subscription service, where the service information includes the service identifier of the subscription service and the source temporary service endpoint.
  • the local mobile edge platform receives the service information sent by the source mobile edge platform.
  • Step 406 The local mobile edge platform creates a service mapping table, and maps the source temporary service endpoint to a local temporary service endpoint.
  • the local mobile edge platform After receiving the service information, the local mobile edge platform creates a service mapping table.
  • the source temporary service endpoint is mapped to the local temporary service endpoint in the service mapping table, and the local temporary service endpoint includes the IP address of the local mobile edge platform.
  • Step 407 The local mobile edge platform sends local service information to the service consumer, where the local service information includes a service identifier and a local temporary service endpoint.
  • the local mobile edge platform sends the service information to the local service consumer so that the service consumer accesses the subscribed service according to the local temporary service endpoint.
  • the service consumer receives local service information sent by the local mobile edge platform.
  • Steps 401 to 407 in this embodiment are the same as steps 301 to 307 shown in the embodiment of FIG. 3.
  • steps 301 to 307 shown in the embodiment of FIG. 3 For details, refer to steps 301 to 307 shown in the embodiment of FIG.
  • the service needs to be migrated from the source mobile edge platform to the target mobile edge platform.
  • the specific migration process is as follows in steps 408 to 418.
  • Step 408 The source mobile edge platform sends a service migration request to the target mobile edge platform, where the service migration request includes a service identifier.
  • the service migration request is used to request the service provided by the migration service provider.
  • the service migration request further includes an identifier of the service consumer using the service.
  • the source mobile edge platform sends a service migration request to the target mobile edge platform.
  • the two methods are as follows:
  • the source mobile edge platform detects whether the service needs to be migrated, and sends a service migration request to the target mobile edge platform when the service needs to be migrated; if the service does not need to be migrated, the source mobile edge platform does not send the service migration to the target mobile edge platform. please.
  • the source service provider detects whether the service needs to be migrated, and sends a migration request to the source mobile edge platform when the service needs to be migrated; after receiving the migration request sent by the service provider, the source mobile edge platform sends the migration request to the target mobile edge platform.
  • Service migration request when the service does not need to be migrated, the source service provider does not send a migration request to the source mobile edge platform.
  • the target mobile edge platform can be determined by providing performance requirements and load balancing.
  • the determination of the target mobile edge platform in the embodiment of the present invention is not specifically limited.
  • the target mobile edge platform receives the service migration request sent by the source mobile edge platform.
  • Step 409 The target mobile edge platform sends a re-registration indication to the target service provider, where the re-registration indication includes the service identifier.
  • the target mobile edge platform After receiving the service migration request sent by the source mobile edge platform, the target mobile edge platform sends a re-registration indication to the target service provider.
  • the service provider is referred to as a source service provider in the source mobile edge platform, and is referred to as a target service provider in the target mobile edge platform.
  • the target service provider and the source service provider are The same service provider.
  • the target service provider refers to the source service provider that migrates from the source mobile edge platform to the target mobile edge platform.
  • the target service provider receives the re-registration indication sent by the target mobile edge platform.
  • Step 410 The target service provider sends a registration request to the target mobile edge platform, where the registration request includes the service identifier and the service endpoint.
  • the registration request sent by the target service provider to the target mobile edge platform includes the service identifier and The service endpoint that corresponds to the service ID.
  • the registration request sent by the target service provider to the target mobile edge platform includes the service identifier Service ID1 and the service endpoint S-endpoint12 corresponding to the service identifier.
  • the target mobile edge platform obtains the service identifier Service ID1 and the service endpoint S-endpoint12 in the registration request.
  • the service endpoint when the service corresponding to the service identifier Service ID1 is registered in the source mobile edge platform is S-endpoint11; and the service endpoint when registering in the target mobile edge platform is S-endpoint12.
  • the service endpoint carried in the registration request sent by the target service provider to the target mobile edge platform changes with the service endpoint provided when registering in the source mobile edge platform.
  • the service endpoint when the service is registered with the source mobile edge platform and the service endpoint registered in the target mobile edge platform remain unchanged.
  • the target service provider sends a registration request directly to the target mobile edge platform, where the service identifier and the service endpoint are included in the registration request.
  • the target mobile edge platform receives the registration request sent by the target service provider.
  • the target mobile edge platform creates a service mapping table, and maps the service endpoint to the target temporary service endpoint.
  • the target mobile edge platform After receiving the service migration request, the target mobile edge platform obtains the service identifier and the service endpoint in the service migration request, and creates a service mapping table. Generating a target temporary service endpoint (T-SB-endpoint) according to the obtained service endpoint (S-endpoint) and the IP network of the target mobile edge platform, where the service mapping table includes a service endpoint and a target temporary service endpoint, and the service mapping table is used Map the service endpoint to the corresponding target temporary service endpoint.
  • T-SB-endpoint target temporary service endpoint
  • a service endpoint is an access address when a service provider provides a service.
  • the target temporary service endpoint refers to the access address used to access the service registered in the target mobile edge platform, and the target temporary service endpoint includes the IP address of the target mobile edge platform.
  • Step 412 The target mobile edge platform sends a service migration response to the source mobile edge platform.
  • the target mobile edge platform After mapping the service endpoint to the target temporary service endpoint, the target mobile edge platform sends a service migration response to the source mobile edge platform, and the service migration response is used to notify the source mobile edge platform that the service migration is completed.
  • the source mobile edge platform receives the service migration response sent by the target mobile edge platform.
  • Step 413 the source mobile edge platform sends service migration information to the local mobile edge platform, and the service The migration information includes: the service identifier and the IP address of the target mobile edge platform.
  • the source mobile edge platform After receiving the service migration response sent by the target mobile edge platform, the source mobile edge platform sends service migration information to the local mobile edge platform of the subscription service, where the service migration information includes the service identifier and the IP address of the target mobile edge platform.
  • the service migration information is used to notify the local mobile edge platform of the subscription service that the service migrates and notifies the local mobile edge platform of the IP address of the target mobile edge platform.
  • the local mobile edge platform receives the service migration information sent by the source mobile edge platform.
  • Step 414 The local mobile edge platform sends an unsubscribe request to the source mobile edge platform, where the unsubscribe request includes a service identifier.
  • the unsubscribe request is used to cancel the service subscribed to on the source mobile edge platform.
  • the local mobile edge platform After receiving the service migration information sent by the source mobile edge platform, the local mobile edge platform sends an unsubscribe request to the source mobile edge platform.
  • the unsubscribe request is used to cancel the subscription of the local mobile edge platform on the source mobile edge platform.
  • the source mobile edge platform receives the unsubscribe request sent by the local mobile edge platform.
  • Step 415 The local mobile edge platform sends a subscription request to the target mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform cancels the subscription service to the target mobile edge platform after subscribing to the service on the source mobile edge platform.
  • the subscription request is used to request a subscription to the service on the target mobile edge platform.
  • the target mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 416 The target mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a target temporary service endpoint.
  • the target mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the target mobile edge platform sends service information to the local mobile edge platform of the subscription service, where the service information includes the service identifier and the target temporary service endpoint.
  • the local mobile edge platform receives the service information sent by the target mobile edge platform.
  • Step 417 The local mobile edge platform updates the service mapping table, and updates the source temporary service endpoint that has a mapping relationship with the local temporary service endpoint to the target temporary service endpoint.
  • the local mobile edge platform After receiving the service information sent by the target mobile edge platform, the local mobile edge platform updates the service mapping table, and updates the source temporary service endpoint (S-SB-endpoint) in the service mapping table to the local temporary service endpoint. Temporary Service Endpoint (T-SB-endpoint). That is, the local mobile edge platform deletes between the source temporary service endpoint and the local temporary service endpoint according to the service identifier. Mapping relationships to establish a mapping relationship with target temporary service endpoints.
  • the service mapping table includes a target temporary service endpoint and a local temporary service endpoint, and the service mapping table is used to map the target temporary service endpoint to the corresponding local temporary service endpoint.
  • the local temporary service endpoint refers to the access address of the service in the local mobile edge platform to the service in the target mobile edge platform.
  • Step 418 The local mobile edge platform sends local service information to the service consumer, where the local service information includes a service identifier and a local temporary service endpoint.
  • the local mobile edge platform After updating the service mapping table, the local mobile edge platform sends local service information to the service consumer.
  • the local service information includes the service identifier and the local temporary service endpoint, and the local temporary service endpoint has a mapping relationship with the target temporary service endpoint.
  • the service consumer receives the local service information sent by the local mobile edge platform, and accesses the subscribed service through the local temporary service endpoint carried in the local service information.
  • Steps 411 to 418 in this embodiment are the same as steps 309 to 316 shown in the embodiment of FIG. 3.
  • steps 309 to 316 shown in the embodiment of FIG. 3 refer to steps 309 to 316 shown in the embodiment of FIG.
  • the service migration method provided in this embodiment is to subscribe to the service on the source mobile edge platform.
  • the source mobile edge platform sends the service migration information to the local mobile edge platform of the subscription service, so that the subscription service is enabled.
  • the local mobile edge platform cancels the subscription service on the source mobile edge platform, resubscribes the service on the target mobile edge platform, and re-registers the service provider on the target mobile edge platform, and uses the target mobile edge platform to create a mapping table to update the route.
  • the strategy of routing service-related data to the target temporary service endpoint solves the problem of migrating the service provider from the source mobile edge platform to the target mobile edge platform; achieving the migration of the service provider from the source mobile edge platform to After the target mobile edge platform, it can ensure that the service consumers subscribed to the service on the source mobile edge platform can continue to correctly use the service migrated to the target mobile edge platform, thereby ensuring that the service consumer provides the service availability and reliability of the user equipment. effect.
  • the target service provider sends a registration request to the target mobile edge platform, where the registration request includes the service identifier. And service endpoints.
  • the service endpoint carried in the registration request sent by the target service provider to the target mobile edge platform and the service endpoint provided when registering in the source mobile edge platform may be changed or may remain unchanged.
  • the source mobile edge server may include a service provider and a source mobile edge platform;
  • the target mobile edge server may include a target mobile edge platform;
  • the local mobile edge server may include a local mobile edge platform and a service consumer.
  • FIG. 5 shows a flowchart of a service migration method provided by still another exemplary embodiment of the present invention. This embodiment is illustrated by using the method in the implementation environment shown in FIG. 1B.
  • the service migration method includes:
  • Steps 501 to 506 are processes in which the Service Provider registers the service at the source mobile edge platform, and the Service Consumer in the local mobile edge platform uses the registered service.
  • step 501 the service provider registers the service to the source mobile edge platform.
  • the service provider provides the service identity (Service ID) and service endpoint (S-endpoint) to the source mobile edge platform.
  • Service ID service identity
  • S-endpoint service endpoint
  • a service provider is an application that provides a service; a service endpoint is an access address of a service.
  • the source mobile edge platform receives the service identifier and service endpoint provided by the service provider.
  • Step 502 The source mobile edge platform creates a service mapping table, and maps the service endpoint to a source temporary service endpoint.
  • the source mobile edge platform After receiving the service identifier and service endpoint provided by the service provider, the source mobile edge platform creates a service mapping table, and maps the service endpoint (S-endpoint) provided by the service provider to the source temporary service endpoint (S-SB-endpoint).
  • the service mapping table includes a service endpoint and a source temporary service endpoint, and the service mapping table is used to map the service endpoint to the corresponding source temporary service endpoint.
  • the source temporary service endpoint includes an IP address of the source mobile edge platform.
  • the source temporary service endpoint is a service address registered by the service provider in the source mobile edge platform.
  • Step 503 The service consumer sends a subscription request to the local mobile edge platform, where the subscription request includes a service identifier.
  • Service Consumer refers to an application that uses a service.
  • the local mobile edge platform receives a subscription request sent by the service consumer.
  • Step 504 The local mobile edge platform sends a subscription request to the source mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform After receiving the subscription request sent by the service consumer, the local mobile edge platform obtains the service identifier included in the subscription request. The local mobile edge platform queries the source mobile edge platform where the corresponding service is located according to the service identifier.
  • the local mobile edge platform queries the management node for the source mobile edge platform where the service corresponding to the service identifier is located according to the service identifier.
  • the second type of the local mobile edge platform sends the query message to all the mobile edge platforms.
  • the query message includes the service identifier, and the source mobile edge platform where the service corresponding to the service identifier is located is queried according to the query message.
  • the source mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 505 The source mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a source temporary service endpoint.
  • the source mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the source mobile edge platform sends the service information of the service to the local mobile edge platform of the subscription service, where the service information includes the service identifier of the subscription service and the source temporary service endpoint.
  • the local mobile edge platform receives the service information sent by the source mobile edge platform.
  • Steps 501 to 505 in this embodiment are the same as steps 301 to 305 shown in the embodiment of FIG. 3.
  • steps 301 to 305 shown in the embodiment of FIG. 3 For details, refer to steps 301 to 305 shown in the embodiment of FIG.
  • Step 506 The local mobile edge platform sends service information to the service consumer, where the service information includes a service identifier and a source temporary service endpoint.
  • the local mobile edge platform forwards the received service information to the service consumer so that the service consumer accesses the subscribed service according to the source temporary service endpoint.
  • the service consumer receives the service information sent by the local mobile edge platform.
  • the service needs to be migrated from the source mobile edge platform to the target. Move on the edge platform.
  • the specific migration process is as follows in steps 507 to 514.
  • Step 507 The source mobile edge platform sends a service migration request to the target mobile edge platform, where the service migration request includes a service identifier and a service endpoint.
  • the service migration request is used to request the service provided by the migration service provider.
  • the source mobile edge platform sends a service migration request to the target mobile edge platform.
  • the two methods are as follows:
  • the source mobile edge platform detects whether the service needs to be migrated, and sends a service migration request to the target mobile edge platform when the service needs to be migrated; if the service does not need to be migrated, the source mobile edge platform The service migration request is not sent to the target mobile edge platform.
  • the service provider detects whether the service needs to be migrated, and sends a migration request to the source mobile edge platform when the service needs to be migrated; the source mobile edge platform sends the service to the target mobile edge platform after receiving the migration request sent by the service provider. Migration request; when the service does not need to be migrated, the service provider does not send a migration request to the source mobile edge platform.
  • the target mobile edge platform can be determined by providing performance requirements and load balancing.
  • the determination of the target mobile edge platform in the embodiment of the present invention is not specifically limited.
  • the target mobile edge platform receives the service migration request sent by the source mobile edge platform.
  • Step 508 the target mobile edge platform creates a service mapping table, and maps the service endpoint to the target temporary service endpoint.
  • the target mobile edge platform After receiving the service migration request, the target mobile edge platform obtains the service identifier and the service endpoint in the service migration request, and creates a service mapping table. Generating a target temporary service endpoint (T-SB-endpoint) according to the obtained service endpoint (S-endpoint) and the IP address of the target mobile edge platform.
  • the service mapping table includes a service endpoint and a target temporary service endpoint, and the service mapping table is used. Map the service endpoint to the corresponding target temporary service endpoint.
  • the target temporary service endpoint includes the IP address of the target mobile edge platform.
  • a service endpoint is an access address when a service provider provides a service.
  • the target temporary service endpoint refers to the access address used to access the service registered in the target mobile edge platform, and the target temporary service endpoint includes the IP address of the target mobile edge platform.
  • Step 509 The target mobile edge platform sends a service migration response to the source mobile edge platform.
  • the target mobile edge platform After mapping the service endpoint to the target temporary service endpoint, the target mobile edge platform sends a service migration response to the source mobile edge platform, and the service migration response is used to notify the source mobile edge platform that the service migration is completed.
  • the source mobile edge platform receives the service migration response sent by the target mobile edge platform.
  • Step 510 The source mobile edge platform sends service migration information to the local mobile edge platform, where the service migration information includes: the service identifier and an IP address of the target mobile edge platform.
  • the source mobile edge platform After receiving the service migration response sent by the target mobile edge platform, the source mobile edge platform sends service migration information to the local mobile edge platform of the subscription service, where the service migration information includes the service identifier and the IP address of the target mobile edge platform.
  • the service migration information is used to notify the local mobile edge platform of the subscription service that the service migrates and notifies the local mobile edge platform of the IP address of the target mobile edge platform.
  • the local mobile edge platform receives the service migration information sent by the source mobile edge platform.
  • Step 511 The local mobile edge platform sends an unsubscribe request to the source mobile edge platform, where the unsubscribe request includes a service identifier.
  • the unsubscribe request is used to cancel the service subscribed to on the source mobile edge platform.
  • the local mobile edge platform After receiving the service migration information sent by the source mobile edge platform, the local mobile edge platform sends an unsubscribe request to the source mobile edge platform.
  • the unsubscribe request is used to cancel the subscription of the local mobile edge platform on the source mobile edge platform.
  • the source mobile edge platform receives the unsubscribe request sent by the local mobile edge platform.
  • Step 512 The local mobile edge platform sends a subscription request to the target mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform cancels the subscription service to the target mobile edge platform after subscribing to the service on the source mobile edge platform.
  • the subscription request is used to request a subscription to the service on the target mobile edge platform.
  • the target mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 513 The target mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a target temporary service endpoint.
  • the target mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the target mobile edge platform sends service information to the local mobile edge platform of the subscription service, where the service information includes the service identifier and the target temporary service endpoint.
  • the local mobile edge platform receives the service information sent by the target mobile edge platform.
  • Steps 507 to 513 in this embodiment are the same as steps 308 to 316 shown in the embodiment of FIG. 3.
  • steps 308 to 316 shown in the embodiment of FIG. 3 refer to steps 308 to 316 shown in the embodiment of FIG.
  • Step 514 The local mobile edge platform sends service information to the service consumer, where the service information includes the service identifier and the target temporary service endpoint.
  • the local mobile edge platform After receiving the service information, the local mobile edge platform forwards the service information to the service consumer.
  • the service consumer receives the service information sent by the local mobile edge platform, and accesses the subscribed service through the target temporary service endpoint carried in the service information.
  • the service migration method provided in this embodiment is to subscribe to the service on the source mobile edge platform.
  • the source mobile edge platform sends the service migration information to the local mobile edge platform of the subscription service, so that the subscription service is enabled.
  • the local mobile edge platform cancels the service subscribed on the source mobile edge platform, resubscribes the service on the target mobile edge platform, and updates the routing policy by creating a mapping table, and routes the service-related data to the target temporary service endpoint to solve Service delivery
  • the problem of migrating from the source mobile edge platform to the target mobile edge platform; after migrating the service provider from the source mobile edge platform to the target mobile edge platform, the service consumer who can subscribe to the service on the source mobile edge platform can Continue to properly use the services migrated to the target mobile edge platform to ensure that the service consumer provides the user equipment with the availability and reliability of the service.
  • the local mobile edge platform directly forwards the service information sent by the source mobile edge platform to the service consumer using the service; or the service sent by the target mobile edge platform.
  • the information is forwarded to the service consumer who uses the service, so that the service consumer accessing the service using the service does not need to directly access the service through the local mobile edge platform.
  • the source mobile edge server may include a service provider and a source mobile edge platform; the target mobile edge server may include a target mobile edge platform; the local mobile edge server may include a local mobile edge platform and a service consumer.
  • FIG. 6 shows a flowchart of a service migration method provided by another exemplary embodiment of the present invention. This embodiment is illustrated by using the method in the implementation environment shown in FIG. 1B.
  • the service migration method includes:
  • Steps 601 to 606 are processes in which the Service Provider registers the service at the source mobile edge platform, and the Service Consumer in the local mobile edge platform uses the registered service.
  • step 601 the service provider registers the service to the source mobile edge platform.
  • the service provider provides the service identity (Service ID) and service endpoint (S-endpoint) to the source mobile edge platform.
  • Service ID service identity
  • S-endpoint service endpoint
  • a service provider is an application that provides a service; a service endpoint is an access address of a service.
  • the source mobile edge platform receives the service identifier and service endpoint provided by the service provider.
  • Step 602 The source mobile edge platform sends an update routing request to the routing table controller, where the update routing request includes: an IP address of the service endpoint and the source mobile edge platform.
  • the source mobile edge platform After receiving the service identifier and service endpoint provided by the service provider, the source mobile edge platform sends an update routing request to the routing table controller.
  • the update route request is used to request the routing table controller to update the routing table of the service, and the updated routing table routes the service-related data to the IP address of the source mobile edge platform.
  • the routing table controller in this embodiment may be a software defined network (English: Software Defined Network, SDN for short) controller or a service function chain (English: Service Function) Chain, referred to as: SFC) controller.
  • SDN Software Defined Network
  • SFC Service Function Chain
  • the routing table controller receives the updated routing request sent by the source mobile edge platform.
  • Step 603 The service consumer sends a subscription request to the local mobile edge platform, where the subscription request includes a service identifier.
  • Service Consumer refers to an application that uses a service.
  • the local mobile edge platform receives a subscription request sent by the service consumer.
  • Step 604 The local mobile edge platform sends a subscription request to the source mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform After receiving the subscription request sent by the service consumer, the local mobile edge platform obtains the service identifier included in the subscription request. The local mobile edge platform queries the source mobile edge platform where the corresponding service is located according to the service identifier.
  • the local mobile edge platform queries the management node for the source mobile edge platform where the service corresponding to the service identifier is located according to the service identifier.
  • the second type of the local mobile edge platform sends the query message to all the mobile edge platforms.
  • the query message includes the service identifier, and the source mobile edge platform where the service corresponding to the service identifier is located is queried according to the query message.
  • the source mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 605 The source mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a service endpoint.
  • the source mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the source mobile edge platform sends the service information of the service to the local mobile edge platform of the subscription service, where the service information includes the service identifier of the subscription service and the service endpoint.
  • the local mobile edge platform receives the service information sent by the source mobile edge platform.
  • Steps 603 to 605 in this embodiment are the same as steps 303 to 305 shown in the embodiment of FIG. 3.
  • steps 303 to 305 shown in the embodiment of FIG. 3 For details, refer to steps 303 to 305 shown in the embodiment of FIG.
  • Step 606 The local mobile edge platform sends service information to the service consumer, where the service information includes the service identifier and the service endpoint.
  • the local mobile edge platform sends the received service information to the service consumer so that the service consumer accesses the subscribed service according to the service endpoint.
  • the service consumer receives the service information sent by the local mobile edge platform.
  • the service needs to be migrated from the source mobile edge platform to the target. Move on the edge platform.
  • the specific migration process is as follows in steps 607 to 615.
  • Step 607 The source mobile edge platform sends a service migration request to the target mobile edge platform, where the service migration request includes a service identifier and a service endpoint.
  • the service migration request is used to request the service provided by the migration service provider.
  • the source mobile edge platform sends a service migration request to the target mobile edge platform.
  • the two methods are as follows:
  • the source mobile edge platform detects whether the service needs to be migrated, and sends a service migration request to the target mobile edge platform when the service needs to be migrated; if the service does not need to be migrated, the source mobile edge platform does not send the service migration to the target mobile edge platform. request.
  • the service provider detects whether the service needs to be migrated, and sends a migration request to the source mobile edge platform when the service needs to be migrated; the source mobile edge platform sends the service to the target mobile edge platform after receiving the migration request sent by the service provider. Migration request; when the service does not need to be migrated, the service provider does not send a migration request to the source mobile edge platform.
  • the target mobile edge platform can be determined by providing performance requirements and load balancing.
  • the determination of the target mobile edge platform in the embodiment of the present invention is not specifically limited.
  • the target mobile edge platform receives the service migration request sent by the source mobile edge platform.
  • Step 608 The target mobile edge platform saves the service identifier and the service endpoint carried in the service migration request.
  • the target mobile edge platform After receiving the service migration request sent by the source mobile edge platform, the target mobile edge platform obtains the service identifier and the service endpoint in the service migration request, and saves the obtained service identifier and the service endpoint to the memory of the target mobile edge platform.
  • Step 609 The target mobile edge platform sends an update routing request to the routing table controller, where the update routing request includes: an IP address of the service endpoint and the target mobile edge platform.
  • the target mobile edge platform After saving the service identifier and the service endpoint, the target mobile edge platform sends an update routing request to the routing table controller, and the update routing request is used to request the routing table controller to update the service routing table, and the updated routing table will be related to the service data.
  • the routing table controller receives the update routing request sent by the target mobile edge platform.
  • Step 610 The target mobile edge platform sends a service migration response to the source mobile edge platform.
  • the target mobile edge platform After updating the routing table of the service, the target mobile edge platform sends a service migration response to the source mobile edge platform, and the service migration response is used to notify the source mobile edge platform that the service migration is completed.
  • the source mobile edge platform receives the service migration response sent by the target mobile edge platform.
  • Step 611 The source mobile edge platform sends service migration information to the local mobile edge platform, where the service migration information includes: the service identifier and an IP address of the target mobile edge platform.
  • the source mobile edge platform After receiving the service migration response sent by the target mobile edge platform, the source mobile edge platform sends service migration information to the local mobile edge platform of the subscription service, where the service migration information includes the service identifier and the IP address of the target mobile edge platform.
  • the service migration information is used to notify the local mobile edge platform of the subscription service that the service migrates and notifies the local mobile edge platform of the IP address of the target mobile edge platform.
  • the local mobile edge platform receives the service migration information sent by the source mobile edge platform.
  • Step 612 The local mobile edge platform sends an unsubscribe request to the source mobile edge platform, where the unsubscribe request includes a service identifier.
  • the unsubscribe request is used to cancel the service subscribed to on the source mobile edge platform.
  • the local mobile edge platform After receiving the service migration information sent by the source mobile edge platform, the local mobile edge platform sends an unsubscribe request to the source mobile edge platform.
  • the unsubscribe request is used to cancel the subscription of the local mobile edge platform on the source mobile edge platform.
  • the source mobile edge platform receives the unsubscribe request sent by the local mobile edge platform.
  • Step 613 The local mobile edge platform sends a subscription request to the target mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform cancels the subscription service to the target mobile edge platform after subscribing to the service on the source mobile edge platform.
  • the subscription request is used to request a subscription to the service on the target mobile edge platform.
  • the target mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 614 The target mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a service endpoint.
  • the target mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the target mobile edge platform sends service information to the local mobile edge platform of the subscription service, where the service information includes the service identifier and the service endpoint.
  • the local mobile edge platform receives the service information sent by the target mobile edge platform.
  • Steps 610 to 614 in this embodiment are the same as steps 310 to 314 shown in the embodiment of FIG. 3. For details, refer to steps 310 to 314 shown in the embodiment of FIG.
  • Step 615 The local mobile edge platform sends service information to the service consumer, where the service information includes Service ID and service endpoint.
  • the local mobile edge platform After receiving the service information sent by the target mobile edge platform, the local mobile edge platform forwards the service information to the service consumer.
  • the service consumer receives the service information sent by the local mobile edge platform, and accesses the subscribed service through the service endpoint carried in the service information.
  • the service migration method provided in this embodiment is to subscribe to the service on the source mobile edge platform.
  • the source mobile edge platform sends the service migration information to the local mobile edge platform of the subscription service, so that the subscription service is enabled.
  • the local mobile edge platform cancels the subscription service on the source mobile edge platform, resubscribes the service on the target mobile edge platform, and sends an update routing request update routing policy to the routing table controller through the target mobile edge platform, which will be related to the service.
  • Data is routed to the service endpoint, which solves the problem of migrating the service provider from the source mobile edge platform to the target mobile edge platform; after migrating the service provider from the source mobile edge platform to the target mobile edge platform, it can guarantee The service consumers of the subscription service on the source mobile edge platform can continue to correctly use the services migrated to the target mobile edge platform, thereby ensuring that the service consumer provides the user equipment with the availability and reliability of the service.
  • the target mobile edge platform updates the routing table of the service by sending an update routing request to the routing table controller, and the service routing table is updated by the updated routing table.
  • the data is routed to the service endpoint, and the local mobile edge platform that subscribes to the service accesses the effect of the migrated service through the updated routing table.
  • the source mobile edge server may include a service provider and a source mobile edge platform; the target mobile edge server may include a target mobile edge platform; the local mobile edge server may include a local mobile edge platform, a service consumer, and a local service network functional entity. .
  • FIG. 7 shows a flowchart of a service migration method provided by another exemplary embodiment of the present invention. This embodiment is illustrated by using the method in the implementation environment shown in FIG. 1B.
  • the service migration method includes:
  • Steps 701 to 706 are processes in which the Service Provider registers the service at the source mobile edge platform, and the Service Consumer in the local mobile edge platform uses the registered service.
  • step 701 the service provider registers the service to the source mobile edge platform.
  • the service provider will provide the Service ID to the source mobile edge platform.
  • Service endpoints S-endpoint.
  • a service provider is an application that provides a service; a service endpoint is an access address of a service.
  • the source mobile edge platform receives the service identifier and service endpoint provided by the service provider.
  • Step 702 The service consumer sends a subscription request to the local mobile edge platform, where the subscription request includes a service identifier.
  • Service Consumer refers to an application that uses a service.
  • the local mobile edge platform receives a subscription request sent by the service consumer.
  • Step 703 The local mobile edge platform sends a tunnel establishment request to the local service network function entity, where the tunnel establishment request includes: the service endpoint, the IP address of the source mobile edge platform, and the IP address of the service consumer.
  • the local mobile edge platform After receiving the subscription request sent by the service consumer, the local mobile edge platform sends a tunnel establishment request to the local service network function entity to establish a tunnel between the local mobile edge platform and the source mobile edge platform. This tunnel is used to route service related data to the source mobile edge server.
  • the local service network function entity provides network services for the local mobile edge platform for data transmission between the local mobile edge platform and the source mobile edge platform.
  • the local service network function entity may be at least one of a communication bus, a data forwarding plane, a user data plane, an infrastructure device, or an MCE server.
  • the local service network function entity receives the tunnel establishment request sent by the local mobile edge platform, and establishes a tunnel between the local mobile edge platform and the source mobile edge platform.
  • the local service network function entity After receiving the tunnel establishment request, the local service network function entity establishes a tunnel between the local mobile edge platform and the source mobile edge platform according to the IP address of the source mobile edge platform and the IP address of the service consumer, and saves between the service endpoint and the tunnel.
  • the relative relationship between the service-related data is routed to the source mobile edge server through the corresponding tunnel.
  • the source mobile edge platform maintains a correspondence between the service endpoint and the tunnel, and the tunnel is a tunnel between the local mobile edge platform and the source mobile edge platform, and is used for transmitting data between the service consumer and the service provider.
  • Step 704 The local mobile edge platform sends a subscription request to the source mobile edge platform, where the subscription request includes a service identifier.
  • the local mobile edge platform After receiving the subscription request sent by the service consumer, the local mobile edge platform obtains the service identifier included in the subscription request. The local mobile edge platform queries the source mobile edge platform where the corresponding service is located according to the service identifier.
  • the local mobile edge platform queries the management node for the source mobile edge platform where the service corresponding to the service identifier is located according to the service identifier.
  • the second type of the local mobile edge platform sends the query message to all the mobile edge platforms.
  • the query message includes the service identifier, and the source mobile edge platform where the service corresponding to the service identifier is located is queried according to the query message.
  • the source mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 705 The source mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a service endpoint.
  • the source mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the source mobile edge platform sends service information to the local mobile edge platform of the subscription service, where the service information includes the service identifier of the subscribed service and the service endpoint.
  • the local mobile edge platform receives the service information sent by the source mobile edge platform.
  • Step 704 and step 705 in this embodiment are the same as step 304 and step 305 shown in the embodiment of FIG. 3.
  • step 304 and step 305 shown in the embodiment of FIG. 3 please refer to step 304 and step 305 shown in the embodiment of FIG.
  • Step 706 The local mobile edge platform sends service information to the service consumer, where the service information includes the service identifier and the service endpoint.
  • the local mobile edge platform sends the received service information to the service consumer so that the service consumer accesses the subscribed service according to the service endpoint.
  • the service consumer receives the service information sent by the local mobile edge platform.
  • the service needs to be migrated from the source mobile edge platform to the target. Move on the edge platform.
  • the specific migration process is as follows in steps 707 to 716.
  • Step 707 The source mobile edge platform sends a service migration request to the target mobile edge platform, where the service migration request includes a service identifier and a service endpoint.
  • the service migration request is used to request the service provided by the migration service provider.
  • the source mobile edge platform sends a service migration request to the target mobile edge platform.
  • the two methods are as follows:
  • the source mobile edge platform detects whether the service needs to be migrated, and sends a service migration request to the target mobile edge platform when the service needs to be migrated; if the service does not need to be migrated, the source mobile edge platform does not send the service migration to the target mobile edge platform. request.
  • the service provider detects whether the service needs to be migrated, and sends a migration request to the source mobile edge platform when the service needs to be migrated; the source mobile edge platform sends the service to the target mobile edge platform after receiving the migration request sent by the service provider. Migration request; when the service does not need to be migrated, the service provider does not send a migration request to the source mobile edge platform.
  • the target mobile edge platform receives the service migration request sent by the source mobile edge platform, and the target mobile edge platform saves the service endpoint carried in the service migration request.
  • the target mobile edge platform can be determined by providing performance requirements and load balancing.
  • the determination of the target mobile edge platform in the embodiment of the present invention is not specifically limited.
  • Step 708 The target mobile edge platform saves the service identifier and the service endpoint carried in the service migration request.
  • the target mobile edge platform After receiving the service migration request sent by the source mobile edge platform, the target mobile edge platform obtains the service identifier and the service endpoint in the service migration request, and saves the obtained service identifier and the service endpoint to the memory of the target mobile edge platform.
  • step 709 the target mobile edge platform sends a service migration response to the source mobile edge platform.
  • the service migration response is sent to the source mobile edge platform, and the service migration response is used to notify the source mobile edge platform that the service migration is completed.
  • the source mobile edge platform receives the service migration response sent by the target mobile edge platform.
  • Step 710 The source mobile edge platform sends service migration information to the local mobile edge platform, where the service migration information includes: the service identifier and an IP address of the target mobile edge platform.
  • the source mobile edge platform After receiving the service migration response sent by the target mobile edge platform, the source mobile edge platform sends service migration information to the local mobile edge platform of the subscription service, where the service migration information includes the service identifier and the IP address of the target mobile edge platform.
  • the service migration information is used to notify the local mobile edge platform of the subscription service that the service migrates and notifies the local mobile edge platform of the IP address of the target mobile edge platform.
  • the local mobile edge platform receives the service migration information sent by the source mobile edge platform.
  • Step 711 The local mobile edge platform sends a tunnel deletion request to the local service function entity network, where the tunnel deletion request includes: the service endpoint, the IP address of the source mobile edge platform, and the IP address of the service consumer.
  • the local mobile edge platform After receiving the service migration information sent by the source mobile edge platform, the local mobile edge platform sends a tunnel deletion request to the local service network function entity to delete the tunnel established between the local mobile edge platform and the source mobile edge platform.
  • the local service network function entity receives the tunnel deletion request sent by the local mobile edge platform, and deletes the tunnel between the local mobile edge platform and the source mobile edge platform. After receiving the tunnel deletion request, the local service network function entity deletes the tunnel between the local mobile edge platform and the source mobile edge platform according to the IP address of the source mobile edge platform and the IP address of the service consumer. The tunnel is used to transfer data between the service consumer and the service provider.
  • the correspondence between the service endpoint and the tunnel is deleted in the source mobile edge platform.
  • Step 712 The local mobile edge platform sends an unsubscribe request to the source mobile edge platform, where the unsubscribe request includes a service identifier.
  • the unsubscribe request is used to cancel the service subscribed to on the source mobile edge platform.
  • the local mobile edge platform After receiving the service migration information sent by the source mobile edge platform, the local mobile edge platform sends an unsubscribe request to the source mobile edge platform.
  • the unsubscribe request is used to cancel the subscription of the local mobile edge platform on the source mobile edge platform.
  • the source mobile edge platform receives the unsubscribe request sent by the local mobile edge platform.
  • Step 713 The local mobile edge platform sends a tunnel establishment request to the local service network function entity, where the tunnel establishment request includes: the service endpoint, the IP address of the target mobile edge platform, and the IP address of the service consumer.
  • the local mobile edge platform After canceling the service subscribed to on the source mobile edge platform, the local mobile edge platform sends a tunnel establishment request to the local service network function entity to establish a tunnel between the local mobile edge platform and the target mobile edge platform.
  • the tunnel is used to transfer data between the service consumer and the service provider.
  • the local service network function entity provides network services for the local mobile edge platform for data transmission between the local mobile edge platform and the target mobile edge platform.
  • the local service network function entity may be at least one of a communication bus, a data forwarding plane, a user data plane, an infrastructure device, or an MCE server.
  • the local service network function entity receives the tunnel establishment request sent by the local mobile edge platform, and establishes a tunnel between the local mobile edge platform and the target mobile edge platform. After receiving the tunnel establishment request, the local service network function entity establishes a tunnel between the local mobile edge platform and the target mobile edge platform according to the IP address of the target mobile edge platform and the IP address of the service consumer, and the local service network function entity saves the service. The correspondence between the endpoint and the established tunnel, through which the service-related data is routed to the target mobile edge server.
  • the target mobile edge platform maintains a correspondence between the service endpoint and the tunnel, and the tunnel is a tunnel between the local mobile edge platform and the target mobile edge platform, and is used for transmitting the service consumer and service. Data between providers.
  • Step 714 The local mobile edge platform sends a subscription request to the target mobile edge platform, where the subscription request includes a service identifier.
  • a subscription request is sent to the target mobile edge platform.
  • the subscription request is used to request a subscription to the service on the target mobile edge platform.
  • the target mobile edge platform receives the subscription request sent by the local mobile edge platform.
  • Step 715 The target mobile edge platform sends service information to the local mobile edge platform, where the service information includes a service identifier and a service endpoint.
  • the target mobile edge platform After receiving the subscription request sent by the local mobile edge platform, the target mobile edge platform sends service information to the local mobile edge platform of the subscription service, where the service information includes the service identifier and the service endpoint.
  • the local mobile edge platform receives the service information sent by the target mobile edge platform.
  • Steps 714 to 715 in this embodiment are the same as steps 313 to 314 shown in the embodiment of FIG. 3. For details, refer to steps 313 to 314 shown in the embodiment of FIG.
  • Step 716 The local mobile edge platform sends service information to the service consumer, where the service information includes the service identifier and the service endpoint.
  • the local mobile edge platform After receiving the service information sent by the target mobile edge platform, the local mobile edge platform forwards the service information to the service consumer.
  • the service consumer receives the service information sent by the local mobile edge platform, and accesses the subscribed service through the service endpoint carried in the service information.
  • the service migration method by subscribing to the service on the source mobile edge platform, when the service sends the migration, the source mobile edge platform sends the service migration information to the local mobile edge platform of the subscribed service, so that the subscription is made.
  • the local mobile edge platform of the service cancels the service subscribed on the source mobile edge platform, resubscribes the service on the target mobile edge platform, and updates the routing policy by establishing a tunnel between the local mobile edge platform and the target mobile edge platform.
  • the service-related data is routed to the service endpoint, which solves the problem of migrating the service provider from the source mobile edge platform to the target mobile edge platform; after migrating the service provider from the source mobile edge platform to the target mobile edge platform.
  • the service consumers who can subscribe to the service on the source mobile edge platform can continue to correctly use the services migrated to the target mobile edge platform, thereby ensuring that the service consumer provides the service device with the availability and reliability of the service.
  • the target mobile edge platform establishes a local mobile edge platform by establishing a tunnel between the local mobile edge platform and the target mobile edge platform.
  • a routing policy with the target mobile edge platform enables the local mobile edge platform of the subscription service to access the migrated service through the established tunnel.
  • the first point that needs to be explained is that, after receiving the service migration request sent by the source mobile edge platform, the target mobile edge platform in the embodiment of FIG. 3, the embodiment of FIG. 5, the embodiment of FIG. 6, and the embodiment of FIG. Steps 409 and 410 in the embodiment of FIG. 4 are included.
  • the service provider re-registers the service in the target mobile edge platform, and when re-registering the service, the service provider provides the service identity and service endpoint of the service to the target mobile edge platform.
  • the service endpoint of the service may be the same or different from the service endpoint when registering at the source mobile edge platform.
  • the second point that needs to be explained is that the steps of the target moving edge platform side in the embodiment of FIG. 3 to the embodiment of FIG. 7 can be separately implemented as the service migration method on the target mobile edge platform side;
  • the service migration method can be implemented separately as the source mobile edge platform side;
  • the step on the local mobile edge platform side can be separately implemented as a service migration method on the local mobile edge platform side.
  • FIG. 8 is a block diagram of a service migration apparatus according to an exemplary embodiment of the present invention.
  • the service migration device can be implemented as all or part of the target mobile edge platform by software, hardware or a combination of both.
  • the service migration apparatus may include: a receiving unit 810, an obtaining unit 820, and a transmitting unit 830.
  • the receiving unit 810 is configured to receive a service migration request sent by the source mobile edge platform, where the service migration request is used to request a service provided by the migration service provider, where the service migration request includes: a service identifier of the service, where the service identifier is used in at least one service Identification service;
  • the obtaining unit 820 is configured to obtain a service endpoint corresponding to the service identifier, where the service endpoint is an access address when the service provider provides the service;
  • the sending unit 830 is configured to send a service migration response to the source mobile edge platform.
  • the service migration apparatus further includes: a generating unit 840.
  • a generating unit 840 configured to generate a target temporary service endpoint according to the IP address of the service endpoint and the target mobile edge platform; the target temporary service endpoint is provided by the service provider through the target mobile edge platform The access address at the time of service.
  • the sending unit 830 is further configured to send an update routing request to the routing table controller, where the update routing request includes: an IP address of the service endpoint and the target mobile edge platform; and the update routing request is used for the request.
  • the routing table controller updates the path to the service endpoint.
  • the service migration apparatus further includes: a saving unit 850.
  • the saving unit 850 is configured to save a correspondence between the service endpoint and the tunnel, where the tunnel is a tunnel between the local mobile edge platform and the target mobile edge platform, and the local mobile edge platform is a mobile edge platform where the service consumer of the service is located.
  • the tunnel is used to transfer data between the service consumer and the service provider.
  • the receiving unit 810 is further configured to receive a subscription request sent by the local mobile edge platform, where the subscription request is used to subscribe to the service on the target mobile edge platform;
  • the sending unit 830 is further configured to send service information to the local mobile edge platform, where the service information includes: a service identifier and a target temporary service endpoint.
  • the receiving unit 810 is further configured to receive a subscription request sent by the local mobile edge platform, where the subscription request is used to subscribe to the service on the target mobile edge platform;
  • the sending unit 830 is further configured to send service information to the local mobile edge platform, where the service information includes: a service identifier and a service endpoint.
  • the obtaining unit 820 is further configured to: obtain a service endpoint corresponding to the service identifier from the service migration request;
  • the receiving unit 810 is further configured to receive a service endpoint that is sent by the service provider and that corresponds to the service identifier.
  • the receiving unit 810 is further configured to receive a registration request sent by a service provider, where the registration request includes a service endpoint corresponding to the service identifier;
  • the sending unit 830 is further configured to send a re-registration indication to the service provider, and the receiving unit is further configured to receive a registration request sent by the service provider, where the registration request includes a service endpoint corresponding to the service identifier.
  • the service migration apparatus sends a service migration request to the target mobile edge platform by using the source mobile edge platform, where the service migration request includes: a service identifier of the service; and the target mobile edge platform acquires a service corresponding to the service identifier. Endpoint; the target mobile edge platform sends a service migration response to the source mobile edge platform; it resolves the migration of the service provider from the source mobile edge platform to the target migration The problem on the mobile edge platform; after migrating the service provider from the source mobile edge platform to the target mobile edge platform, the service consumers who can subscribe to the service on the source mobile edge platform can continue to use the migration to the target mobile edge platform correctly.
  • the latter service ensures that the service consumer provides the user equipment with the availability and reliability of the service.
  • FIG. 9 is a block diagram of a service migration apparatus according to another exemplary embodiment of the present invention.
  • the service migration device can be implemented as all or part of the source mobile edge platform by software, hardware or a combination of both.
  • the service migration apparatus may include: a transmitting unit 910 and a receiving unit 920.
  • the sending unit 910 is configured to send a service migration request to the target mobile edge platform, where the service migration request is used to request a service provided by the migration service provider, where the service migration request includes: a service identifier of the service, where the service identifier is used to identify in the at least one service service;
  • the receiving unit 920 is configured to receive a service migration response sent by the target mobile edge platform.
  • the sending unit 910 is further configured to send a service migration request to the target mobile edge platform when determining that the service needs to be migrated;
  • the receiving unit 920 is further configured to receive a migration request sent by the service provider, where the migration request is sent by the service provider when determining that the service needs to be migrated, and the sending unit is further configured to send the service migration request to the target mobile edge platform.
  • the sending unit 910 is further configured to send service migration information to the local mobile edge platform of the subscription service, where the service migration information includes: the service identifier and the IP address of the target mobile edge platform, and the local mobile edge The platform is the mobile edge platform where the service consumer of the service is located;
  • the receiving unit 920 is further configured to receive an unsubscribe request sent by the local mobile edge platform, where the unsubscribe request is used to cancel the service subscribed on the source mobile edge platform.
  • the service migration apparatus further includes: a deleting unit 930.
  • the deleting unit 930 is configured to delete a correspondence between the service endpoint and the tunnel, where the service endpoint is an access address when the service provider provides the service; the tunnel is a tunnel between the local mobile edge platform and the source mobile edge platform, and the tunnel is used for transmitting Serving data between consumers and service providers.
  • the service migration apparatus sends a service migration request to the target mobile edge platform; receives the service migration response sent by the target mobile edge platform; and solves the problem of migrating the service provider from the source mobile edge platform to the target.
  • the latter service ensures that the service consumer provides the user equipment with the availability and reliability of the service.
  • FIG. 10 is a block diagram of a service migration apparatus according to still another exemplary embodiment of the present invention.
  • the service migration device can be implemented as all or part of the local mobile edge platform by software, hardware or a combination of both.
  • the service migration device may include a receiving unit 1010 and a transmitting unit 1020.
  • the receiving unit 1010 is configured to receive service migration information sent by the source mobile edge platform, where the service migration information is used to indicate that the service provided by the service provider has been migrated to the target mobile edge platform; the service migration information includes: a service identifier of the service and a target moving edge. The IP address of the platform; the service identifier is used to identify the service in at least one service;
  • the sending unit 1020 is configured to send an unsubscribe request to the source mobile edge platform according to the service migration information, where the unsubscribe request is used to cancel the service subscribed on the source mobile edge platform;
  • the sending unit 1020 is further configured to send a subscription request to the target mobile edge platform according to the IP address of the target mobile edge platform, where the subscription request is used to subscribe to the service on the target mobile edge platform;
  • the receiving unit 1010 is further configured to receive service information sent by the target mobile edge platform, where the service information includes: a service identifier.
  • the sending unit 1020 is further configured to:
  • a tunnel establishment request is sent to the local service network function entity, and the tunnel establishment request is used to establish a tunnel between the local mobile edge platform and the target mobile edge platform.
  • the service information further includes: a target temporary service endpoint of the service, and the target temporary service endpoint is an access address when the target mobile edge platform provides the service.
  • the service information further includes: a service endpoint of the service, and the service endpoint Is the access address when the service provider provides the service.
  • the service migration apparatus further includes: a generating unit 1030.
  • the generating unit 1030 is configured to generate a local temporary service endpoint according to an IP address of the target temporary service endpoint and the local mobile edge platform, where the local temporary service endpoint is an access address when the service provider provides the service through the local mobile edge platform;
  • the sending unit 1020 is further configured to send local service information to a service consumer that uses the service, where the local service information includes: a service identifier and a local temporary service endpoint.
  • the service migration apparatus receives the service migration information sent by the source mobile edge platform, sends an unsubscribe request to the source mobile edge platform, sends a subscription request to the target mobile edge platform, and receives the target mobile edge platform.
  • the service information sent solves the problem of migrating the service provider from the source mobile edge platform to the target mobile edge platform; after the service provider is migrated from the source mobile edge platform to the target mobile edge platform, the source mobile can be guaranteed
  • the service consumers of the subscription service on the edge platform can continue to correctly use the services migrated to the target mobile edge platform, thereby ensuring that the service consumer provides the user equipment with the availability and reliability of the service.
  • FIG. 11 is a block diagram of a service migration system according to an exemplary embodiment of the present invention.
  • the service migration system may include a target mobile edge platform 1120, a source mobile edge platform 1140, and a local mobile edge platform 1160.
  • the target mobile edge platform is the service migration device shown in the embodiment of FIG. 8;
  • the source mobile edge platform is the service migration device shown in the embodiment of FIG. 9;
  • the local mobile edge platform is the service migration device shown in the embodiment of FIG. 10 above.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

本发明实施例提供了一种服务迁移方法、装置及***,涉及计算机技术领域,所述方法包括:目标移动边缘平台接收源移动边缘平台发送的服务迁移请求;目标移动边缘平台获取与服务标识对应的服务端点;目标移动边缘平台向源移动边缘平台发送服务迁移响应;解决了将服务从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的本地移动边缘平台可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证本地移动边缘平台中的服务消费者为用户设备提供业务的可用性和可靠性的效果。

Description

服务迁移方法、装置及*** 技术领域
本发明实施例涉及计算机技术领域,特别涉及一种服务迁移方法、装置及***。
背景技术
移动边缘计算(Mobile Edge Computing,MEC)技术是在移动通信网络中部署移动边缘服务器,就近向接入该移动通信网络的用户设备(英文:User Equipment,简称:UE)提供互联网技术(Internet Technology,IT)服务。
移动边缘计算技术能够向UE提供多种服务,这些服务可以由移动边缘平台来提供,也可以由移动边缘平台中的服务提供者(Service Provider)提供。其中,移动边缘平台是在移动边缘服务器中提供的一种应用程序平台,服务提供者是一种运行在移动边缘平台上用于提供服务的应用程序。
当移动边缘平台不能满足服务需求,比如:不能提供服务提供者所需要的性能要求,或服务提供者不能满足业务质量要求,或服务提供者响应***负载均衡的请求时,则需要把服务从源移动边缘平台迁移到目标移动边缘平台上,但现有技术中尚未发现相关的服务迁移技术。
发明内容
为了解决将服务从源移动边缘平台迁移到目标移动边缘平台上的问题,本发明实施例提供了一种服务迁移方法、装置及***。所述技术方案如下:
第一方面,提供了一种服务迁移方法,该方法包括:
目标移动边缘平台接收源移动边缘平台发送的服务迁移请求,所述服务迁移请求用于请求迁移服务提供者提供的服务,所述服务迁移请求包括:所述服务的服务标识,所述服务标识用于在至少一个服务中标识所述服务;
所述目标移动边缘平台获取与所述服务标识对应的服务端点,所述服务端点是所述服务提供者提供所述服务时的访问地址;
所述目标移动边缘平台向所述源移动边缘平台发送服务迁移响应。
目标移动边缘平台通过接收源移动边缘平台发送的服务迁移请求后;目标移动边缘平台获取与服务标识对应的服务端点;目标移动边缘平台向源移动边缘平台发送服务迁移响应;实现了将服务从源移动边缘平台成功迁移到目标移动边缘平台的效果。
在第一方面的第一种可能的实施方式中,所述目标移动边缘平台获取与所述服务标识对应的服务端点之后,还包括:
所述目标移动边缘平台根据所述服务端点和所述目标移动边缘平台的网络之间互连的协议(英文:Internet Protocol,简称:IP)地址,生成目标临时服务端点;所述目标临时服务端点是所述服务提供者通过所述目标移动边缘平台提供所述服务时的访问地址。
目标移动边缘平台在获取到服务端点后,根据服务端点和目标移动边缘平台的IP地址,生成目标临时服务端点,实现了目标移动边缘平台将获取到的服务端点生成与目标移动边缘平台的IP地址相关的目标临时服务端点。
在第一方面的第二种可能的实施方式中,所述目标移动边缘平台获取与所述服务标识对应的服务端点之后,还包括:
所述目标移动边缘平台向路由表控制器发送更新路由请求,所述更新路由请求包括:所述服务端点和所述目标移动边缘平台的IP地址;所述更新路由请求用于请求所述路由表控制器更新指向所述服务端点的路径。
目标移动边缘平台通过向路由表控制器发送更新路由请求,从而更新服务的路由表,通过更新后的路由表将与服务有关的数据路由至目标临时服务端点,实现了使用服务的服务消费者通过更新后的路由表访问迁移后的服务的效果。
在第一方面的第三种可能的实施方式中,所述目标移动边缘平台获取与所述服务标识对应的服务端点之后,还包括:
所述目标移动边缘平台保存所述服务端点与隧道之间的对应关系,所述隧道是本地移动边缘平台与所述目标移动边缘平台之间的隧道,所述本地移动边缘平台是使用所述服务的服务消费者所在的移动边缘平台,所述隧道用于传输所述服务消费者与所述服务提供者之间的数据。
目标移动边缘平台通过保存所述服务端点与隧道之间的对应关系,建立了本地移动边缘平台与目标移动边缘平台之间的路由策略,使得使用服务的服务消费者可以通过建立的隧道访问迁移后的服务。
结合第一方面和第一方面的第一种可能的实施方式,在第一方面的第四种可能的实施方式中,所述目标移动边缘平台向所述源移动边缘平台发送服务迁移响应之后,还包括:
所述目标移动边缘平台接收所述本地移动边缘平台发送的订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
所述目标移动边缘平台向所述本地移动边缘平台发送服务信息,所述服务信息包括:所述服务标识和所述目标临时服务端点。
目标移动边缘平台接收本地移动边缘平台发送的订阅请求;目标移动边缘平台向订阅服务的本地移动边缘平台发送服务信息;实现了本地移动边缘平台通过订阅目标移动边缘平台,实现了在服务迁移后,订阅服务的本地移动边缘平台仍能够正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
结合第一方面的第二种可能的实施方式或第一方面的第三种可能的实施方式,在第一方面第五种可能的实施方式中,
所述目标移动边缘平台向所述源移动边缘平台发送服务迁移响应之后,还包括:
所述目标移动边缘平台接收所述本地移动边缘平台发送的订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
所述目标移动边缘平台向所述本地移动边缘平台发送服务信息,所述服务信息包括:所述服务标识和所述服务端点。
目标移动边缘平台接收本地移动边缘平台发送的订阅请求;目标移动边缘平台向订阅服务的本地移动边缘平台发送服务信息;实现了本地移动边缘平台通过订阅目标移动边缘平台,实现了在服务迁移后,订阅服务的本地移动边缘平台仍能够正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
结合第一方面或第一方面的第一种可能的实施方式或第一方面的第二种可能的实施方式或第一方面的第三种可能的实施方式或第一方面的第四种可能的实施方式或第一方面的第五种可能的实施方式,在第一方面的第六种可能的实施方式中,
所述目标移动边缘平台获取与所述服务标识对应的服务端点,包括:
从所述服务迁移请求中获取与所述服务标识对应的服务端点;
或,
接收所述服务提供者发送的与所述服务标识对应的服务端点。
目标移动边缘平台可以通过源移动边缘平台平台发送的服务迁移请求获取与所述服务标识对应的服务端点,也可以直接接收服务提供者发送的与所述服务标识对应的服务端点,实现了目标移动边缘平台获取服务端点的方式的多样化。
结合第一方面的第六种可能的实施方式,在第一方面的第七种可能的实施方式中,所述接收所述服务提供者发送的与所述服务标识对应的服务端点,包括:
接收所述服务提供者发送的注册请求,所述注册请求中包括与所述服务标识对应的服务端点;
或,
向所述服务提供者发送重新注册指示;接收所述服务提供者发送的所述注册请求,所述注册请求中包括与所述服务标识对应的服务端点。
目标移动边缘平台直接接收服务提供者发送的与所述服务标识对应的服务端点包括两种方式:服务提供者可以主动向目标移动边缘平台发送注册请求,或,目标移动边缘平台可以主动向服务提供者发送重新注册指示,服务提供者根据重新注册指示向目标移动边缘平台发送注册请求,实现了服务提供者在目标移动边缘平台注册方式的多样化。
第二方面,提供了一种服务迁移方法,该方法包括:
源移动边缘平台向目标移动边缘平台发送服务迁移请求,所述服务迁移请求用于请求迁移服务提供者提供的服务,所述服务迁移请求包括:所述服务的服务标识,所述服务标识用于在至少一个服务中标识所述服务;
所述源移动边缘平台接收所述目标移动边缘平台发送的服务迁移响应。
源移动边缘平台通过向目标移动边缘平台发送服务迁移请求,接收到目标移动边缘平台发送的服务迁移响应,实现了将服务从源移动边缘平台迁移至目标移动边缘平台的效果。
在第二方面的第一种可能的实施方式中,所述源移动边缘平台向目标移动边缘平台发送服务迁移请求,包括:
所述源移动边缘平台在确定所述服务需要迁移时,向所述目标移动边缘平台发送所述服务迁移请求;
或,
所述源移动边缘平台接收所述服务提供者发送的迁移请求,所述迁移请求是所述服务提供者在确定所述服务需要迁移时发送的;所述源移动边缘平台向所述目标移动边缘平台发送所述服务迁移请求。
源移动边缘平台在确定服务需要迁移时,直接向目标移动边缘平台发送服务迁移请求;也可以由服务提供者在确定服务需要迁移时,向源移动边缘平台发送迁移请求,源移动边缘平台根据迁移请求向目标移动边缘平台发送服务迁移请求,实现了源移动边缘平台发送服务迁移请求的多样化。
在第二方面的第二种可能的实施方式中,所述源移动边缘平台接收所述目标移动边缘平台发送的服务迁移响应之后,还包括:
所述源移动边缘平台向订阅所述服务的本地移动边缘平台发送服务迁移信息,所述服务迁移信息包括:所述服务标识和所述目标移动边缘平台的IP地址,所述本地移动边缘平台是使用所述服务的服务消费者所在的移动边缘平台;
所述源移动边缘平台接收所述本地移动边缘平台发送的取消订阅请求,所述取消订阅请求用于取消在所述源移动边缘平台上订阅的服务。
源移动边缘平台通过向订阅服务的本地移动边缘平台发送服务迁移信息,从而取消本地移动边缘平台在源移动边缘平台上订阅的服务,实现了将服务从源移动边缘平台迁移至目标移动边缘平台后,订阅源移动边缘平台中的服务的服务消费者仍可以使用迁移后的服务的效果。
结合第二方面的第二种可能的实施方式,在第二方面的第三种可能的实施方式中,所述源移动边缘平台接收所述本地移动边缘平台发送的取消订阅请求之前,还包括:
所述源移动边缘平台删除服务端点与隧道之间的对应关系,所述服务端点是所述服务提供者提供所述服务时的访问地址;所述隧道是所述本地移动边缘平台与所述源移动边缘平台之间的隧道,所述隧道用于传输所述服务消费者与所述服务提供者之间的数据。
源移动边缘平台通过删除服务端点与隧道之间的对应关系,使得订阅服务的本地移动边缘平台可以与目标移动边缘平台之间建立隧道。
第三方面,提供了一种服务迁移方法,该方法包括:
本地移动边缘平台接收源移动边缘平台发送的服务迁移信息,所述服务迁 移信息用于表示服务提供者提供的服务已迁移至目标移动边缘平台;所述服务迁移信息包括:所述服务的服务标识和目标移动边缘平台的IP地址;所述服务标识用于在至少一个服务中标识所述服务;
所述本地移动边缘平台根据所述服务迁移信息向所述源移动边缘平台发送取消订阅请求,所述取消订阅请求用于取消在所述源移动边缘平台上订阅的所述服务;
所述本地移动边缘平台根据所述目标移动边缘平台的IP地址向所述目标移动边缘平台发送订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
所述本地移动边缘平台接收所述目标移动边缘平台发送的服务信息,所述服务信息包括:所述服务标识;
其中,所述本地移动边缘平台是使用所述服务的服务消费者所在的移动边缘平台。
本地移动边缘平台通过在源移动边缘平台上订阅服务,当服务从源移动边缘平台上迁移至目标移动边缘平台后,本地移动边缘平台取消在源移动边缘平台订阅的服务,在目标移动边缘平台上重新订阅该服务,实现了在服务发送迁移后,本地移动边缘平台仍可以访问订阅的服务的效果。
在第三方面的第一种可能的实施方式中,该方法,还包括:
所述本地移动边缘平台向本地服务网络功能实体发送隧道删除请求,所述隧道删除请求用于删除所述本地移动边缘平台与所述源移动边缘平台之间的隧道;
所述本地移动边缘平台向所述本地服务网络功能实体发送隧道建立请求,所述隧道建立请求用于建立所述本地移动边缘平台与所述目标移动边缘平台之间的隧道。
本地移动边缘平台将与源移动边缘平台之间的隧道删除,与目标移动边缘平台之间建立隧道,通过建立的隧道访问目标移动边缘平台中迁移后的服务;实现了通过建立隧道的方式更新路由策略的效果。
在第三方面的第二种可能的实施方式中,所述服务信息还包括:所述服务的目标临时服务端点,所述目标临时服务端点是所述服务提供者通过所述目标移动边缘平台提供所述服务时的访问地址。
服务信息中包括服务的目标临时服务端点,本地移动边缘平台根据服务信 息中包括的目标临时服务端点访问目标移动边缘平台中迁移后的服务的效果。
在第三方面的第三种可能的实施方式中,所述服务信息还包括:所述服务的服务端点,所述服务端点是所述服务提供者提供所述服务时的访问地址。
服务信息中包括服务的服务端点,本地移动边缘平台根据服务信息中包括的服务端点访问目标移动边缘平台中迁移后的服务的效果。
结合第三方面的第二种可能的实施方式,在第三方面的第四种可能的实施方式中,所述本地移动边缘平台接收所述目标移动边缘平台发送的服务信息之后,还包括:
所述本地移动边缘平台根据所述目标临时服务端点和所述本地移动边缘平台的IP地址,生成本地临时服务端点,所述本地临时服务端点是所述服务提供者通过所述本地移动边缘平台提供所述服务时的访问地址;
所述本地移动边缘平台向使用所述服务的服务消费者发送本地服务信息,所述本地服务信息包括:所述服务标识和所述本地临时服务端点。
本地移动边缘平台根据目标临时服务端点和本地移动边缘平台的IP地址,生成本地临时服务端点,使得服务消费者可以通过本地临时服务端点访问目标移动边缘平台中迁移后的服务。
结合第三方面的第二种可能的实施方式或第三方面的第三种可能的实施方式,在第三方面的第四种可能的实施方式中,所述本地移动边缘平台接收所述目标移动边缘平台发送的服务信息之后,还包括:
所述本地移动边缘平台向使用所述服务的服务消费者发送所述服务信息。
本地移动边缘平台向使用服务的服务消费者发送服务信息,使得服务消费者可以通过服务端点或目标临时服务端点访问订阅的服务的效果。
第四方面,提供了一种服务迁移装置,所述装置包括至少一个单元,该至少一个单元用于实现上述第一方面或第一方面的可能的实施方式中所提供的服务迁移方法。
第五方面,提供了一种服务迁移装置,所述装置包括至少一个单元,该至少一个单元用于实现上述第二方面或第二方面的可能的实施方式中所提供的服务迁移方法。
第六方面,提供了一种服务迁移装置,所述装置包括至少一个单元,该至少一个单元用于实现上述第三方面或第三方面的可能的实施方式中所提供的服务迁移方法。
第七方面,提供了一种服务迁移***,所述***包括:目标移动边缘平台、源移动边缘平台和本地移动边缘平台;
所述目标移动边缘平台包括如上第四方面所述的服务迁移装置;
所述源移动边缘平台包括如上第五方面所述的服务迁移装置;
所述本地移动边缘平台包括如上第六方面所述的服务迁移装置。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是本发明一示例性实施例提供的一种EPS网络架构的示意图;
图1B是本发明一示例性实施例提供的服务迁移解决方案的示意图;
图2是本发明一示例性实施例提供的服务迁移方法的流程图;
图3是本发明一示例性实施例提供的服务迁移方法的流程图;
图4是本发明另一示例性实施例提供的服务迁移方法的流程图;
图5是本发明另一示例性实施例提供的服务迁移方法的流程图;
图6是本发明另一示例性实施例提供的服务迁移方法的流程图;
图7是本发明另一示例性实施例提供的服务迁移方法的流程图;
图8是本发明一示例性实施例提供的一种服务迁移装置的框图;
图9是本发明另一示例性实施例提供的一种服务迁移装置的框图;
图10是本发明另一示例性实施例提供的一种服务迁移装置的框图;
图11是本发明一示例性实施例提供的一种服务迁移***的框图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
请参考图1A,其示出了本发明一示例性实施例提供的一种演进分组***(英文:Evolved Packet System,简称:EPS)网络架构的示意图。该网络架构 可以包括:用户设备(英文:User Equipment,简称:UE)110、演进型通用陆地无线接入网(英文:Evolved Universal Terrestrial Radio Access Network,简称:E-UTRAN)120、移动性管理实体(英文:Mobility Management Entity,简称:MME)130、服务网关(英文:Serving Gateway,简称:SGW)140、通用分组无线***业务支撑节点(英文:Serving General Packet Radio System Support Node,简称:SGSN)150、归属用户服务器(英文:Home Subscribe Server,简称:HSS)160、分组数据网网关(英文:Packet Data Network Gateway,简称:PGW)170和策略和计费规则功能(英文:Policy and Charging Rules Function,简称:PCRF)180。
UE110通过LTE-U接口与E-UTRAN120相连。
E-UTRAN120是由多个演进型基站(英文:Evolved NodeB,简称:eNodeB)组成的网络。E-UTRAN120可以包括无线物理层功能、资源调度、无线资源管理、无线接入控制和移动性管理等功能。E-UTRAN120通过用户面接口S1-U与SGW140相连,E-UTRAN120和SGW140之间使用GPRS隧道协议用户面(英文:GPRS Tunneling Protocol User Plane,简称:GTP-U)来传输数据。E-UTRAN120通过控制面接口S1-MME与MME130相连,E-UTRAN120和MME130之间通过S1-AP协议实现无线接入承载控制等功能。
MME130主要包括会话管理的控制平面功能。其中,包括非接入层(英文:Non-access Stratum,简称:NAS)信令及安全,跟踪区列表(英文:Tracking Area List,简称:TAL)的管理等。MME130通过S11接口与SGW140相连;通过S3接口与SGSN150相连;以及通过S6a接口与HSS160相连。
SGW140主要包括UE110的数据传输、转发以及路由切换等功能,并作为UE110在eNodeB之间切换时的本地移动性锚定点。其中,对于每一个UE110在同一时刻仅有一个SGW140为其服务。SGW140通过S5接口与PGW170相连,通过S4接口与SGSN150相连。
PGW170是分组数据网(英文:Packet Data Network,简称:PDN)连接的锚定点。主要包括UE110的网络地址分配,UE110的数据报文过滤、速率控制、生成计费信息等功能。PGW170通过Gx接口与PCRF180相连。
PGW170通过SGi接口与操作者的网络服务相连,PCRF180通过Rx+接口与操作者的网络服务190相连。
其中,移动边缘服务器191主要位于用户面接口S1-U的位置,移动边缘 平台只能处理EPS***中用户面的数据。可选的,移动边缘服务器191中可以包括通信服务和服务注册等功能。通信服务和服务注册使得移动边缘服务器191中的服务提供者可以通过移动边缘平台把网络信息提供给服务消费者使用。可选的,移动边缘平台的上一层节点是SGW140,移动边缘平台的下一层节点是eNodeB。
请参考图1B,其示出了本发明一示例性实施例提供的一种移动边缘***内服务迁移的实施环境的示意图。该实施环境可以包括:源移动边缘服务器210、目标移动边缘服务器220、源移动边缘平台230、目标移动边缘平台240、源服务提供者250、服务消费者260和目标服务提供者270。
源移动边缘服务器210可以包括源移动边缘平台230、源服务提供者250、服务消费者260和源交换机211。分别与源交换机211相连的有源移动边缘平台230、源服务提供者250和至少一个使用服务的服务消费者260。可选的,与源交换机211相连的至少一个使用服务的服务消费者260可以是源移动边缘平台230内部的服务消费者260,也可以是本地移动边缘平台(图中未示出)中的服务消费者260。
源服务提供者250通过源交换机211向使用服务的服务消费者260提供服务,使用服务的服务消费者260通过源交换机211访问源服务提供者250提供的服务。
源服务提供者250是指源移动边缘服务器210中提供服务的应用;服务消费者260是指使用服务的应用。
目标移动边缘服务器220可以包括目标移动边缘平台240、目标服务提供者270、服务消费者260和目标交换机221。分别与目标交换机221相连的有目标移动边缘平台240和至少一个服务消费者260。可选的,与目标交换机221相连的至少一个使用服务的服务消费者260可以是目标移动边缘平台240内部的服务消费者260,也可以是本地移动边缘平台(图中未示出)中的服务消费者260。
目标服务提供者270是指目标移动边缘服务器240中提供服务的应用。
源移动边缘服务器210与目标移动边缘服务器220之间通过三种不同的方式建立通信:
在第一种可选的实现方式中,源移动边缘平台230中创建服务映射表(图 中未示出),根据服务的服务端点生成源临时服务端点;目标移动边缘平台240中创建服务映射表(图中未示出),根据服务端点生成目标临时服务端点。当服务注册在源移动边缘平台230时,将与服务相关的数据路由至源临时服务端点;当服务迁移到目标移动边缘平台240时,将与服务相关的数据路由至目标临时服务端点。
服务端点是指服务提供者提供服务时的访问地址;源临时服务端点是指服务提供者通过源移动边缘平台提供服务时的访问地址;目标临时服务端点是指服务提供者通过目标移动边缘平台提供服务时的访问地址。
服务端点中包括服务提供者的IP地址和资源路径;源临时服务端点中包括源移动边缘平台的IP地址和资源路径;目标临时服务端点中包括目标移动边缘平台的IP地址和资源路径。
在第二种可选的实现方式中,源交换机211和目标交换机221之间通过路由表控制器280建立通信。当服务注册在源移动边缘平台230时,源移动边缘平台230通过路由表控制器280更新所有交换机中的路由表,将与服务相关的数据路由至与源移动边缘平台230相关的服务端点;当服务迁移到目标移动边缘平台240时,目标移动边缘平台240通过路由表控制器280更新所有交换机中的路由表,将与服务相关的数据路由至与目标移动边缘平台240相关的服务端点。
在第三种可选的实现方式中,源交换机211和目标交换机221之间通过隧道290建立通信。当服务注册在源移动边缘平台230时,本地移动边缘平台与源移动边缘平台230之间建立隧道290,将与服务相关的数据通过隧道290在本地移动边缘平台与源移动边缘平台230之间进行传输;当服务迁移到目标移动边缘平台240时,本地移动边缘平台删除与源移动边缘平台230之间的隧道290,建立与目标移动边缘平台之间的隧道290,将与服务相关的数据通过隧道290在本地移动边缘平台与目标移动边缘平台240之间进行传输。
请参考图2,其示出了本发明一示例性实施例提供的服务迁移方法的流程图。本实施例以该方法应用于图1B所示的实施环境中来举例说明,该服务迁移方法包括:
步骤201,源移动边缘平台向目标移动边缘平台发送服务迁移请求,服务迁移请求包括:服务的服务标识。
其中,服务迁移请求用于请求迁移服务提供者提供的服务,服务标识用于在至少一个服务中标识服务。
当服务需要迁移时,源移动边缘平台向迁移的目标移动边缘平台发送服务迁移请求。服务迁移请求中至少包括服务的服务标识(Service ID)。
对应地,目标移动边缘平台接收源移动边缘平台发送的服务迁移请求,服务迁移请求用于请求迁移服务提供者提供的服务,服务迁移请求包括:服务的服务标识,服务标识用于在至少一个服务中标识服务。
步骤202,目标移动边缘平台获取与服务标识对应的服务端点。
服务端点是服务提供者提供服务时的访问地址。
服务端点包括服务提供者的IP地址和资源路径,比如:与服务标识对应的服务端点为:“http//192.168.0.1/b63ac32311212ec.html?st=1”,其中,“192.168.0.1”为服务提供者的IP地址;“b63ac32311212ec.html?st=1”为资源路径。
目标移动边缘平台根据服务迁移请求中的服务标识,获取与服务标识对应的服务端点。
步骤203,目标移动边缘平台向源移动边缘平台发送服务迁移响应。
目标移动边缘平台获取到与服务标识对应的服务端点后,向源移动边缘平台发送服务迁移响应;服务迁移响应用于通知源移动边缘平台服务迁移完毕。
对应地,源移动边缘平台接收目标移动边缘平台发送的服务迁移响应。
综上所述,本实施例提供的服务迁移方法,通过源移动边缘平台向目标移动边缘平台发送服务迁移请求,服务迁移请求包括:服务的服务标识;目标移动边缘平台获取与服务标识对应的服务端点;目标移动边缘平台向源移动边缘平台发送服务迁移响应;解决了将服务提供者从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台的效果。
需要说明的一点是:服务从源移动边缘平台迁移至目标移动边缘平台的过程包括三种可能的方案:第一,先将迁移服务提供者从源移动边缘平台迁移至目标移动边缘平台,再分别将该服务提供者提供的服务迁移至目标移动边缘平台;第二,先将服务提供者提供的服务迁移至目标移动边缘平台,再将服务提供者迁移至目标移动边缘平台;第三,先将服务提供者提供的部分服务迁移至 目标移动边缘平台,再将服务提供者迁移至目标移动边缘平台,最后将该服务提供者提供的剩余的服务迁移至目标移动边缘平台。只有服务提供者和该服务提供者提供的服务都迁移至目标移动边缘平台后,迁移至目标移动边缘平台的服务才能被正常访问。
比如:一个服务提供者提供有5个服务,将服务从源移动边缘平台迁移至目标移动边缘平台的过程包括三种可能的方案:第一:将服务提供者从源移动边缘平台迁移至目标移动边缘平台,再分别将该服务提供者提供的5个服务从源移动边缘平台迁移至目标移动边缘平台;第二,先将服务提供者提供的5个服务从源移动边缘平台迁移至目标移动边缘平台,再将服务提供者从源移动边缘平台迁移至目标移动边缘平台;第三,先将服务提供者提供的x个服务从源移动边缘平台迁移至目标移动边缘平台,再将服务提供者从源移动边缘平台迁移至目标移动边缘平台,最后将该服务提供者提供的y个服务从源移动边缘平台迁移至目标移动边缘平台。其中,x+y=5。
图2实施例中有关目标移动边缘平台一侧的步骤可以单独实现成为目标移动边缘平台侧的服务迁移方法;有关源移动边缘平台一侧的步骤可以单独实现成为源移动边缘平台侧的服务迁移方法。
图3实施例中源移动边缘服务器可以包括服务提供者和源移动边缘平台;目标移动边缘服务器可以包括目标移动边缘平台;本地移动边缘服务器可以包括本地移动边缘平台和服务消费者。
请参考图3,其示出了本发明一示例性实施例提供的服务迁移方法的流程图。本实施例以该方法应用于图1B所示的实施环境中来举例说明,该服务迁移方法包括:
步骤301至步骤307是服务提供者(Service Provider)在源移动边缘平台注册服务,以及本地移动边缘平台中使用服务的服务消费者(Service Consumer)使用注册的服务的过程。
步骤301,服务提供者将服务注册至源移动边缘平台。
在注册过程中,服务提供者会向源移动边缘平台提供服务标识(Service ID)和服务端点(S-endpoint)。
服务标识是指服务提供者提供的服务的标识,用于在至少一个服务中标识 服务。服务提供者提供的每个服务都对应有唯一的标识。一个服务提供者可以提供一个服务,也可以同时提供多个服务,多个服务的服务标识是不相同的。
服务端点是指服务提供者提供服务时的访问地址。比如:统一资源定位(英文:Uniform Resource Locator,简称:URL)或通用资源标识符(英文:Uniform Resource Identifier,简称:URI)。
可选的,服务端点通常包括服务提供者的IP地址和资源路径。
可选的,每个服务对应的服务端点也不相同。也即,服务提供者提供的每个服务都对应有唯一的服务标识和服务端点。
比如:一个服务提供者可以同时提供3个服务,每个服务的标识是不相同的。表一示例性的示出了服务与服务标识之间的对应关系。
Figure PCTCN2016073538-appb-000001
表一
服务提供者是指提供服务的应用;服务端点是指服务提供者提供服务时的访问地址。
对应地,源移动边缘平台接收服务提供者提供的服务标识和服务端点。
步骤302,源移动边缘平台创建服务映射表,将服务端点映射为源临时服务端点。
源移动边缘平台在接收到服务提供者提供的服务标识和服务端点后,创建服务映射表,根据服务提供者提供的服务端点(S-endpoint)和源移动边缘平台的IP地址生成源临时服务端点(S-SB-endpoint),服务映射表中包括服务端点和源临时服务端点,服务映射表用于将服务端点映射为对应的源临时服务端点。其中,源临时服务端点包括源移动边缘平台的IP地址。
服务端点包括服务提供者的IP地址和资源路径,源临时服务端点包括源移动边缘平台的IP地址和资源路径。源移动边缘平台创建服务映射表,只是将服务端点中的服务提供者的IP地址映射为源移动边缘平台的IP地址。
比如:服务提供者提供的服务端点包括服务提供者的IP地址和资源路径,假定:服务端点中服务提供者的IP地址为“192.168.0.1”,资源路径为“b63ac32311212ec.html?st=1”;则源移动边缘平台接收到的服务提供者提供的服务端点为“http//192.168.0.1/b63ac32311212ec.html?st=1”;源移动边缘平台将 服务端点映射为源临时服务端点是指:将服务端点中的服务提供者的IP地址映射为源移动边缘平台的IP地址,而服务端点与源临时服务端点中的资源路径是相同的,在服务端点与源临时服务端点的映射过程中只是IP地址的改变,资源路径并不发生变化。假定源移动边缘平台的IP地址为192.168.1.1,则源移动边缘平台根据源移动边缘平台的IP地址和服务端点,将服务端点映射为“http//192.168.1.1/b63ac32311212ec.html?st=1”的源临时服务端点。
可选的,源临时服务端点是服务提供者通过源移动边缘平台提供服务时的访问地址。
根据表一所示的服务提供者提供的3个服务对应的服务端点,表二示例性的示出了服务端点与源临时服务端点之间的映射关系。
S-endpoint1 S-SB-endpoint1
S-endpoint2 S-SB-endpoint2
S-endpoint3 S-SB-endpoint3
表二
服务端点是指服务提供者提供服务时的访问地址。源临时服务端点是指用于访问注册在源移动边缘平台中的服务的访问地址,源临时服务端点中包括源移动边缘平台的IP地址。
步骤303,服务消费者向本地移动边缘平台发送订阅请求,订阅请求包括服务标识。
服务消费者(Service Consumer)是指使用服务的应用。使用服务的服务消费者在需要使用服务时,向本地移动边缘平台发送订阅请求。
本地移动边缘平台是使用服务的服务消费者所在的移动边缘平台。
对应地,本地移动边缘平台接收服务消费者发送的订阅请求。
步骤304,本地移动边缘平台向源移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台在接收到服务消费者发送的订阅请求后,获取订阅请求中包括服务标识。本地移动边缘平台根据服务标识查询对应的服务所在的源移动边缘平台。
本地移动边缘平台根据服务标识查询源移动边缘平台的方式有两种:
第一种,本地移动边缘平台根据服务标识在管理节点中查询与服务标识对应的服务所在的源移动边缘平台。
第二种,本地移动边缘平台向所有的移动边缘平台发送查询报文,查询报文包括服务标识,根据查询报文查询与服务标识对应的服务所在的源移动边缘平台。
对应地,源移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤305,源移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和源临时服务端点。
源移动边缘平台在接收到本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务的服务信息,该服务信息包括订阅服务的服务标识和源临时服务端点。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务信息。
步骤306,本地移动边缘平台创建服务映射表,将源临时服务端点映射为本地临时服务端点。
本地移动边缘平台在接收到服务信息后,创建服务映射表。根据源临时服务端点和本地移动边缘平台的IP地址,在服务映射表中将源临时服务端点映射为本地临时服务端点。本地移动边缘平台将源临时服务端点映射为本地临时服务端点的过程与源移动边缘平台将服务端点映射为源临时服务端点的过程类似,详细过程请参见源移动边缘平台将服务端点映射为源临时服务端点的过程。
本地移动边缘平台在接收到源移动边缘平台发送的服务标识和源临时服务端点后,创建服务映射表,将源临时服务端点(S-SB-endpoint)映射为本地临时服务端点(L-SB-endpoint),服务映射表中包括源临时服务端点和本地临时服务端点,服务映射表用于将源临时服务端点映射为对应的本地临时服务端点。
根据表二所示的3个源临时服务端点,表三示例性的示出了源临时服务端点与本地临时服务端点之间的映射关系。
S-SB-endpoint1 L-SB-endpoint1
S-SB-endpoint2 L-SB-endpoint2
S-SB-endpoint3 L-SB-endpoint3
表三
源临时服务端点是指服务提供者通过源移动边缘平台提供服务时的访问地址,本地临时服务端点是指服务提供者通过本地移动边缘平台提供服务时的 访问地址。
步骤307,本地移动边缘平台向服务消费者发送本地服务信息,本地服务信息包括服务标识和本地临时服务端点。
本地移动边缘平台将本地服务信息发送给使用服务的服务消费者,以便服务消费者根据本地临时服务端点访问订阅的服务。
对应地,服务消费者接收本地移动边缘平台发送的本地服务信息。
当源移动边缘平台不能提供服务提供者所需要的性能要求,或服务提供者不能满足业务质量要求,或服务提供者不能响应负载均衡的请求时,则需要把服务从源移动边缘平台迁移到目标移动边缘平台上。具体迁移过程如下步骤308至步骤316所示。
步骤308,源移动边缘平台向目标移动边缘平台发送服务迁移请求,服务迁移请求包括服务标识和服务端点。
服务迁移请求用于请求迁移服务提供者提供的服务,服务迁移请求包括服务的服务标识和与服务标识对应的服务端点;服务标识用于在至少一个服务中标识服务。
判断服务是否需要迁移有两种可选的方式,导致源移动边缘平台向目标移动边缘平台发送服务迁移请求也包括两种方式,具体如下:
第一种,源移动边缘平台检测服务是否需要迁移,在服务需要迁移时,向目标移动边缘平台发送服务迁移请求;若服务不需要迁移,则源移动边缘平台不向目标移动边缘平台发送服务迁移请求。
第二种,服务提供者检测服务是否需要迁移,在服务需要迁移时,向源移动边缘平台发送迁移请求;源移动边缘平台接收到服务提供者发送的迁移请求后,向目标移动边缘平台发送服务迁移请求;当服务不需要迁移时,服务提供者不向源移动边缘平台发送迁移请求。
需要说明的一点是,目标移动边缘平台可以通过提供性能的要求、负载均衡的情况确定。本发明实施例中对目标移动边缘平台的确定不作具体限定。
对应地,目标移动边缘平台接收源移动边缘平台发送的服务迁移请求。
步骤309,目标移动边缘平台创建服务映射表,将服务端点映射为目标临时服务端点。
目标移动边缘平台在接收到服务迁移请求后,获取服务迁移请求中的服务标识和服务端点,创建服务映射表。根据获取到的服务端点(S-endpoint)和 目标移动边缘平台的IP地址,生成目标临时服务端点(T-SB-endpoint),服务映射表中包括服务端点和目标临时服务端点,服务映射表用于将服务端点映射为对应的目标临时服务端点。其中,目标临时服务端点是服务提供者通过目标移动边缘平台提供服务时的访问地址。
根据表一所示的服务提供者提供的3个服务对应的服务端点,表四示例性的示出了服务端点与目标临时服务端点之间的映射关系。
S-endpoint1 T-SB-endpoint1
S-endpoint2 T-SB-endpoint2
S-endpoint3 T-SB-endpoint3
表四
服务端点是指服务提供者提供服务时的访问地址。目标临时服务端点是指用于访问注册在目标移动边缘平台中的服务的访问地址,目标临时服务端点中包括目标移动边缘平台的IP地址。
目标移动边缘平台将服务端点映射为目标临时服务端点的过程与源移动边缘平台将服务端点映射为源临时服务端点的过程类似。详细过程请参见源移动边缘平台将服务端点映射为源临时服务端点的过程。
步骤310,目标移动边缘平台向源移动边缘平台发送服务迁移响应。
目标移动边缘平台在将服务端点映射为目标临时服务端点后,向源移动边缘平台发送服务迁移响应,服务迁移响应用于通知源移动边缘平台服务迁移完毕。
对应地,源移动边缘平台接收目标移动边缘平台发送的服务迁移响应。
步骤311,源移动边缘平台向本地移动边缘平台发送服务迁移信息,服务迁移信息包括:服务标识和目标移动边缘平台的IP地址。
源移动边缘平台在接收到目标移动边缘平台发送的服务迁移响应后,向订阅服务的本地移动边缘平台发送服务迁移信息,服务迁移信息中包括服务标识和目标移动边缘平台的IP地址。服务迁移信息用于通知订阅服务的本地移动边缘平台该服务发生迁移,并将目标移动边缘平台的IP地址通知给本地移动边缘平台。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务迁移信息。
步骤312,本地移动边缘平台向源移动边缘平台发送取消订阅请求,取消订阅请求包括服务标识。
取消订阅请求用于取消在源移动边缘平台上订阅的服务。
本地移动边缘平台在接收到源移动边缘平台发送的服务迁移信息后,向源移动边缘平台发送取消订阅请求。取消订阅请求用于取消本地移动边缘平台在源移动边缘平台上订阅的服务。
对应地,源移动边缘平台接收本地移动边缘平台发送的取消订阅请求。
步骤313,本地移动边缘平台向目标移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台取消在源移动边缘平台上订阅服务后,向目标移动边缘平台发送订阅请求。订阅请求用于请求在目标移动边缘平台上订阅服务。
对应地,目标移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤314,目标移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和目标临时服务端点。
目标移动边缘平台在接收本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务信息,服务信息中包括服务标识和目标临时服务端点。
对应地,本地移动边缘平台接收目标移动边缘平台发送的服务信息。
步骤315,本地移动边缘平台更新服务映射表,将与本地临时服务端点存在映射关系的源临时服务端点更新为目标临时服务端点。
本地移动边缘平台在接收到目标移动边缘平台发送的服务信息后,更新服务映射表,将服务映射表中与本地临时服务端点存在映射关系的源临时服务端点(S-SB-endpoint)更新为目标临时服务端点(T-SB-endpoint)。也即,本地移动边缘平台根据服务标识,删除源临时服务端点与本地临时服务端点之间的映射关系,建立与目标临时服务端点之间的映射关系。服务映射表中包括目标临时服务端点和本地临时服务端点,服务映射表用于将目标临时服务端点映射为对应的本地临时服务端点。
根据表三所示的3个目标临时服务端点,表五示例性的示出了目标临时服务端点与本地临时服务端点之间的映射关系。
T-SB-endpoint1 L-SB-endpoint4
T-SB-endpoint2 L-SB-endpoint5
T-SB-endpoint3 L-SB-endpoint6
表五
本地临时服务端点是指本地移动边缘平台中的服务消费者访问目标移动边缘平台中的服务的访问地址。
步骤316,本地移动边缘平台向服务消费者发送本地服务信息,本地服务信息包括服务标识和本地临时服务端点。
本地移动边缘平台在更新服务映射表后,向服务消费者发送本地服务信息,本地服务信息中包括服务标识和本地临时服务端点,本地临时服务端点与目标临时服务端点存在映射关系。
比如:本地移动边缘平台将L-SB-endpoint6包含在本地服务信息中发送给服务消费者,则服务消费者根据L-SB-endpoint6访问订阅的服务1。
对应地,使用服务的服务消费者接收本地移动边缘平台发送的本地服务信息,通过本地服务信息中携带的本地临时服务端点访问订阅的服务。
综上所述,本实施例提供的服务迁移方法,通过在源移动边缘平台上订阅服务,当服务发送迁移时,源移动边缘平台向订阅服务的本地移动边缘平台发送服务迁移信息,使得订阅服务的本地移动边缘平台取消在源移动边缘平台上订阅的服务,在目标移动边缘平台上重新订阅服务,并通过创建映射表更新路由策略,将与服务有关的数据路由到目标临时服务端点上,解决了将服务提供者从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的服务消费者可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
需要说明的一点是:本发明实施例中,目标移动边缘平台从源移动边缘平台发送的服务迁移请求中获取到的服务端点在服务发生迁移前后保持不变。
需要说明的另一点是,本发明实施例中,以使用服务的服务消费者位于本地移动边缘服务器进行举例说明。在实际的实现过程中,使用服务的服务消费者还可以位于源移动边缘服务器中,或者,也可以位于目标移动边缘服务器中。当使用服务的服务消费者位于源移动边缘服务器中时,源移动边缘服务器与本地移动边缘服务器属于同一个服务器;当使用服务的服务消费者位于目标移动边缘服务器中时,目标移动边缘服务器与本地移动边缘服务器属于同一个服务器。
本实施例中源移动边缘服务器可以包括源服务提供者和源移动边缘平台;目标移动边缘服务器可以包括目标服务提供者和目标移动边缘平台;本地移动边缘服务器可以包括本地移动边缘平台和服务消费者。其中,目标服务提供者是指迁移到目标移动边缘平台后的源服务提供者。
请参考图4,其示出了本发明另一示例性实施例提供的服务迁移方法的流程图。本实施例以该方法应用于图1B所示的实施环境中来举例说明,该服务迁移方法包括:
步骤401至步骤407是服务提供者(Service Provider)在源移动边缘平台注册服务,以及本地移动边缘平台中的服务消费者(Service Consumer)使用注册的服务的过程。
步骤401,源服务提供者将服务注册至源移动边缘平台。
在注册过程中,源服务提供者会向源移动边缘平台提供服务标识(Service ID)和服务端点(S-endpoint)。
比如:源服务提供者将服务注册至源移动边缘平台时的服务标识为Service ID1,服务端点为S-endpoint11。
源服务提供者是指源移动边缘服务器中提供服务的应用;服务端点是指服务的访问地址。
对应地,源移动边缘平台接收源服务提供者提供的服务标识和服务端点。
步骤402,源移动边缘平台创建服务映射表,将服务端点映射为源临时服务端点。
源移动边缘平台在接收到源服务提供者提供的服务标识和服务端点后,创建服务映射表,将源服务提供者提供的服务端点(S-endpoint)映射为源临时服务端点(S-SB-endpoint),服务映射表中包括服务端点和源临时服务端点,服务映射表用于将服务端点映射为对应的源临时服务端点。其中,源临时服务端点包括源移动边缘平台的IP地址。
可选的,源临时服务端点是服务提供者通过源移动边缘平台提供服务时的访问地址。
步骤403,服务消费者向本地移动边缘平台发送订阅请求,订阅请求包括服务标识。
服务消费者(Service Consumer)是指使用服务的应用。
对应地,本地移动边缘平台接收服务消费者发送的订阅请求。
步骤404,本地移动边缘平台向源移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台在接收到服务消费者发送的订阅请求后,获取订阅请求中包括的服务标识。本地移动边缘平台根据服务标识查询对应的服务所在的源移动边缘平台。
本地移动边缘平台根据服务标识查询源移动边缘平台的方式有两种:
第一种,本地移动边缘平台根据服务标识在管理节点中查询与服务标识对应的服务所在的源移动边缘平台。
第二种,本地移动边缘平台向所有的移动边缘平台发送查询报文,查询报文包括服务标识,根据查询报文查询与服务标识对应的服务所在的源移动边缘平台。
对应地,源移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤405,源移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和源临时服务端点。
源移动边缘平台在接收到本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务的服务信息,该服务信息包括订阅服务的服务标识和源临时服务端点。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务信息。
步骤406,本地移动边缘平台创建服务映射表,将源临时服务端点映射为本地临时服务端点。
本地移动边缘平台在接收到服务信息后,创建服务映射表。在服务映射表中将源临时服务端点映射本地临时服务端点,本地临时服务端点包括本地移动边缘平台的IP地址。
步骤407,本地移动边缘平台向服务消费者发送本地服务信息,本地服务信息包括服务标识和本地临时服务端点。
本地移动边缘平台将服务信息发送给本地服务消费者,以便服务消费者根据本地临时服务端点访问订阅的服务。
对应地,服务消费者接收本地移动边缘平台发送的本地服务信息。
本实施例中步骤401至步骤407与图3实施例所示的步骤301至步骤307相同,详细说明请参见图3实施例所示的步骤301至步骤307。
当源移动边缘平台不能提供服务提供者所需要的性能要求,或服务提供者 不能满足业务质量要求,或服务提供者不能响应负载均衡的请求时,则需要把服务从源移动边缘平台迁移到目标移动边缘平台上。具体迁移过程如下步骤408至步骤418所示。
步骤408,源移动边缘平台向目标移动边缘平台发送服务迁移请求,服务迁移请求包括服务标识。
服务迁移请求用于请求迁移服务提供者提供的服务。
可选的,服务迁移请求还包括使用服务的服务消费者的标识。
判断服务是否需要迁移有两种可选的方式,导致源移动边缘平台向目标移动边缘平台发送服务迁移请求也包括两种方式,具体如下:
第一种,源移动边缘平台检测服务是否需要迁移,在服务需要迁移时,向目标移动边缘平台发送服务迁移请求;若服务不需要迁移,则源移动边缘平台不向目标移动边缘平台发送服务迁移请。
第二种,源服务提供者检测服务是否需要迁移,在服务需要迁移时,向源移动边缘平台发送迁移请求;源移动边缘平台接收到服务提供者发送的迁移请求后,向目标移动边缘平台发送服务迁移请求;当服务不需要迁移时,源服务提供者不向源移动边缘平台发送迁移请求。
需要说明的一点是,目标移动边缘平台可以通过提供性能的要求、负载均衡的情况确定。本发明实施例中对目标移动边缘平台的确定不作具体限定。
对应地,目标移动边缘平台接收源移动边缘平台发送的服务迁移请求。
步骤409,目标移动边缘平台向目标服务提供者发送重新注册指示,重新注册指示包括服务标识。
目标移动边缘平台在接收到源移动边缘平台发送的服务迁移请求后,向目标服务提供者发送重新注册指示。
需要说明的是,服务提供者在源移动边缘平台中称之为源服务提供者,在目标移动边缘平台中称之为目标服务提供者,本实施例中目标服务提供者与源服务提供者是同一个服务提供者。目标服务提供者是指从源移动边缘平台迁移至目标移动边缘平台中的源服务提供者。
对应地,目标服务提供者接收目标移动边缘平台发送的重新注册指示。
步骤410,目标服务提供者向目标移动边缘平台发送注册请求,注册请求包括服务标识和服务端点。
目标服务提供者向目标移动边缘平台发送的注册请求中包括服务标识和 与服务标识对应的服务端点。
比如:目标服务提供者向目标移动边缘平台发送的注册请求中包括服务标识Service ID1和对应服务标识的服务端点S-endpoint12。
目标移动边缘平台获取到注册请求中的服务标识Service ID1和服务端点S-endpoint12。
对比步骤401中可知,服务标识Service ID1对应的服务在源移动边缘平台中注册时的服务端点为S-endpoint11;在目标移动边缘平台中注册时的服务端点为S-endpoint12。
因此,目标服务提供者向目标移动边缘平台发送的注册请求中携带的服务端点与在源移动边缘平台中注册时提供的服务端点发生改变。
可选的,服务在源移动边缘平台注册时的服务端点和在目标移动边缘平台中注册的服务端点保持不变。
可选的,目标服务提供者直接向目标移动边缘平台发送注册请求,注册请求中包括服务标识和服务端点。
对应地,目标移动边缘平台接收目标服务提供者发送的注册请求。
步骤411,目标移动边缘平台创建服务映射表,将服务端点映射为目标临时服务端点。
目标移动边缘平台在接收到服务迁移请求后,获取服务迁移请求中的服务标识和服务端点,创建服务映射表。根据获取到的服务端点(S-endpoint)和目标移动边缘平台的IP网络生成目标临时服务端点(T-SB-endpoint),服务映射表中包括服务端点和目标临时服务端点,服务映射表用于将服务端点映射为对应的目标临时服务端点。
服务端点是指服务提供者提供服务时的访问地址。目标临时服务端点是指用于访问注册在目标移动边缘平台中的服务的访问地址,目标临时服务端点中包括目标移动边缘平台的IP地址。
步骤412,目标移动边缘平台向源移动边缘平台发送服务迁移响应。
目标移动边缘平台在将服务端点映射为目标临时服务端点后,向源移动边缘平台发送服务迁移响应,服务迁移响应用于通知源移动边缘平台服务迁移完毕。
对应地,源移动边缘平台接收目标移动边缘平台发送的服务迁移响应。
步骤413,源移动边缘平台向本地移动边缘平台发送服务迁移信息,服务 迁移信息包括:服务标识和目标移动边缘平台的IP地址。
源移动边缘平台在接收到目标移动边缘平台发送的服务迁移响应后,向订阅服务的本地移动边缘平台发送服务迁移信息,服务迁移信息中包括服务标识和目标移动边缘平台的IP地址。服务迁移信息用于通知订阅服务的本地移动边缘平台该服务发生迁移,并将目标移动边缘平台的IP地址通知给本地移动边缘平台。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务迁移信息。
步骤414,本地移动边缘平台向源移动边缘平台发送取消订阅请求,取消订阅请求包括服务标识。
取消订阅请求用于取消在源移动边缘平台上订阅的服务。
本地移动边缘平台在接收到源移动边缘平台发送的服务迁移信息后,向源移动边缘平台发送取消订阅请求。取消订阅请求用于取消本地移动边缘平台在源移动边缘平台上订阅的服务。
对应地,源移动边缘平台接收本地移动边缘平台发送的取消订阅请求。
步骤415,本地移动边缘平台向目标移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台取消在源移动边缘平台上订阅服务后,向目标移动边缘平台发送订阅请求。订阅请求用于请求在目标移动边缘平台上订阅服务。
对应地,目标移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤416,目标移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和目标临时服务端点。
目标移动边缘平台在接收本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务信息,服务信息中包括服务标识和目标临时服务端点。
对应地,本地移动边缘平台接收目标移动边缘平台发送的服务信息。
步骤417,本地移动边缘平台更新服务映射表,将与本地临时服务端点存在映射关系的源临时服务端点更新为目标临时服务端点。
本地移动边缘平台在接收到目标移动边缘平台发送的服务信息后,更新服务映射表,将服务映射表中与本地临时服务端点存在映射关系的源临时服务端点(S-SB-endpoint)更新为目标临时服务端点(T-SB-endpoint)。也即,本地移动边缘平台根据服务标识,删除源临时服务端点与本地临时服务端点之间的 映射关系,建立与目标临时服务端点之间的映射关系。服务映射表中包括目标临时服务端点和本地临时服务端点,服务映射表用于将目标临时服务端点映射为对应的本地临时服务端点。
本地临时服务端点是指本地移动边缘平台中的服务消费者访问目标移动边缘平台中的服务的访问地址。
步骤418,本地移动边缘平台向服务消费者发送本地服务信息,本地服务信息包括服务标识和本地临时服务端点。
本地移动边缘平台在更新服务映射表后,向服务消费者发送本地服务信息,本地服务信息中包括服务标识和本地临时服务端点,本地临时服务端点与目标临时服务端点存在映射关系。
对应地,服务消费者接收本地移动边缘平台发送的本地服务信息,通过本地服务信息中携带的本地临时服务端点访问订阅的服务。
本实施例中步骤411至步骤418与图3实施例所示的步骤309至步骤316相同,详细说明请参见图3实施例所示的步骤309至步骤316。
综上所述,本实施例提供的服务迁移方法,通过在源移动边缘平台上订阅服务,当服务发送迁移时,源移动边缘平台向订阅服务的本地移动边缘平台发送服务迁移信息,使得订阅服务的本地移动边缘平台取消在源移动边缘平台上订阅的服务,在目标移动边缘平台上重新订阅服务,并将服务提供者在目标移动边缘平台上重新注册,利用目标移动边缘平台创建映射表更新路由策略,将与服务有关的数据路由到目标临时服务端点上,解决了将服务提供者从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的服务消费者可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
与图3所示的实施例不同的是,本实施例中,源移动边缘平台向目标移动边缘平台发送服务迁移请求后,目标服务提供者向目标移动边缘平台发送注册请求,注册请求包括服务标识和服务端点。目标服务提供者向目标移动边缘平台发送的注册请求中携带的服务端点与在源移动边缘平台中注册时提供的服务端点可以发生改变也可以保持不变。
本实施例中源移动边缘服务器可以包括服务提供者和源移动边缘平台;目 标移动边缘服务器可以包括目标移动边缘平台;本地移动边缘服务器可以包括本地移动边缘平台和服务消费者。
请参考图5,其示出了本发明又一示例性实施例提供的服务迁移方法的流程图。本实施例以该方法应用于图1B所示的实施环境中来举例说明,该服务迁移方法包括:
步骤501至步骤506是服务提供者(Service Provider)在源移动边缘平台注册服务,以及本地移动边缘平台中的服务消费者(Service Consumer)使用注册的服务的过程。
步骤501,服务提供者将服务注册至源移动边缘平台。
在注册过程中,服务提供者会向源移动边缘平台提供服务标识(Service ID)和服务端点(S-endpoint)。
服务提供者是指提供服务的应用;服务端点是指服务的访问地址。
对应地,源移动边缘平台接收服务提供者提供的服务标识和服务端点。
步骤502,源移动边缘平台创建服务映射表,将服务端点映射为源临时服务端点。
源移动边缘平台在接收到服务提供者提供的服务标识和服务端点后,创建服务映射表,将服务提供者提供的服务端点(S-endpoint)映射为源临时服务端点(S-SB-endpoint),服务映射表中包括服务端点和源临时服务端点,服务映射表用于将服务端点映射为对应的源临时服务端点。其中,源临时服务端点包括源移动边缘平台的IP地址。
可选的,源临时服务端点是服务提供者注册在源移动边缘平台中的服务地址。
步骤503,服务消费者向本地移动边缘平台发送订阅请求,订阅请求包括服务标识。
服务消费者(Service Consumer)是指使用服务的应用。
对应地,本地移动边缘平台接收服务消费者发送的订阅请求。
步骤504,本地移动边缘平台向源移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台在接收到服务消费者发送的订阅请求后,获取订阅请求中包括的服务标识。本地移动边缘平台根据服务标识查询对应的服务所在的源移动边缘平台。
本地移动边缘平台根据服务标识查询源移动边缘平台的方式有两种:
第一种,本地移动边缘平台根据服务标识在管理节点中查询与服务标识对应的服务所在的源移动边缘平台。
第二种,本地移动边缘平台向所有的移动边缘平台发送查询报文,查询报文包括服务标识,根据查询报文查询与服务标识对应的服务所在的源移动边缘平台。
对应地,源移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤505,源移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和源临时服务端点。
源移动边缘平台在接收到本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务的服务信息,该服务信息包括订阅服务的服务标识和源临时服务端点。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务信息。
本实施例中步骤501至步骤505与图3实施例所示的步骤301至步骤305相同,详细说明请参见图3实施例所示的步骤301至步骤305。
步骤506,本地移动边缘平台向服务消费者发送服务信息,服务信息包括服务标识和源临时服务端点。
本地移动边缘平台将接收到的服务信息转发给服务消费者,以便服务消费者根据源临时服务端点访问订阅的服务。
对应地,服务消费者接收本地移动边缘平台发送的服务信息。
当源移动边缘平台不能提供服务提供者所需要的性能要求,或服务提供者不能满足业务质量要求,或服务提供者不能响应负载均衡的请求时,则需要把服务从源移动边缘平台迁移到目标移动边缘平台上。具体迁移过程如下步骤507至步骤514所示。
步骤507,源移动边缘平台向目标移动边缘平台发送服务迁移请求,服务迁移请求包括服务标识和服务端点。
服务迁移请求用于请求迁移服务提供者提供的服务。
判断服务是否需要迁移有两种可选的方式,导致源移动边缘平台向目标移动边缘平台发送服务迁移请求也包括两种方式,具体如下:
第一种,源移动边缘平台检测服务是否需要迁移,在服务需要迁移时,向目标移动边缘平台发送服务迁移请求;若服务不需要迁移,则源移动边缘平台 不向目标移动边缘平台发送服务迁移请求。
第二种,服务提供者检测服务是否需要迁移,在服务需要迁移时,向源移动边缘平台发送迁移请求;源移动边缘平台接收到服务提供者发送的迁移请求后,向目标移动边缘平台发送服务迁移请求;当服务不需要迁移时,服务提供者不向源移动边缘平台发送迁移请求。
需要说明的一点是,目标移动边缘平台可以通过提供性能的要求、负载均衡的情况确定。本发明实施例中对目标移动边缘平台的确定不作具体限定。
对应地,目标移动边缘平台接收源移动边缘平台发送的服务迁移请求。
步骤508,目标移动边缘平台创建服务映射表,将服务端点映射为目标临时服务端点。
目标移动边缘平台在接收到服务迁移请求后,获取服务迁移请求中的服务标识和服务端点,创建服务映射表。根据获取到的服务端点(S-endpoint)和目标移动边缘平台的IP地址生成目标临时服务端点(T-SB-endpoint),服务映射表中包括服务端点和目标临时服务端点,服务映射表用于将服务端点映射为对应的目标临时服务端点。其中,目标临时服务端点包括目标移动边缘平台的IP地址。
服务端点是指服务提供者提供服务时的访问地址。目标临时服务端点是指用于访问注册在目标移动边缘平台中的服务的访问地址,目标临时服务端点中包括目标移动边缘平台的IP地址。
步骤509,目标移动边缘平台向源移动边缘平台发送服务迁移响应。
目标移动边缘平台在将服务端点映射为目标临时服务端点后,向源移动边缘平台发送服务迁移响应,服务迁移响应用于通知源移动边缘平台服务迁移完毕。
对应地,源移动边缘平台接收目标移动边缘平台发送的服务迁移响应。
步骤510,源移动边缘平台向本地移动边缘平台发送服务迁移信息,服务迁移信息包括:服务标识和目标移动边缘平台的IP地址。
源移动边缘平台在接收到目标移动边缘平台发送的服务迁移响应后,向订阅服务的本地移动边缘平台发送服务迁移信息,服务迁移信息中包括服务标识和目标移动边缘平台的IP地址。服务迁移信息用于通知订阅服务的本地移动边缘平台该服务发生迁移,并将目标移动边缘平台的IP地址通知给本地移动边缘平台。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务迁移信息。
步骤511,本地移动边缘平台向源移动边缘平台发送取消订阅请求,取消订阅请求包括服务标识。
取消订阅请求用于取消在源移动边缘平台上订阅的服务。
本地移动边缘平台在接收到源移动边缘平台发送的服务迁移信息后,向源移动边缘平台发送取消订阅请求。取消订阅请求用于取消本地移动边缘平台在源移动边缘平台上订阅的服务。
对应地,源移动边缘平台接收本地移动边缘平台发送的取消订阅请求。
步骤512,本地移动边缘平台向目标移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台取消在源移动边缘平台上订阅服务后,向目标移动边缘平台发送订阅请求。订阅请求用于请求在目标移动边缘平台上订阅服务。
对应地,目标移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤513,目标移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和目标临时服务端点。
目标移动边缘平台在接收本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务信息,服务信息中包括服务标识和目标临时服务端点。
对应地,本地移动边缘平台接收目标移动边缘平台发送的服务信息。
本实施例中步骤507至步骤513与图3实施例所示的步骤308至步骤316相同,详细说明请参见图3实施例所示的步骤308至步骤316。
步骤514,本地移动边缘平台向服务消费者发送服务信息,服务信息包括服务标识和目标临时服务端点。
本地移动边缘平台在接收到服务信息后,向服务消费者转发服务信息。
对应地,服务消费者接收本地移动边缘平台发送的服务信息,通过服务信息中携带的目标临时服务端点访问订阅的服务。
综上所述,本实施例提供的服务迁移方法,通过在源移动边缘平台上订阅服务,当服务发送迁移时,源移动边缘平台向订阅服务的本地移动边缘平台发送服务迁移信息,使得订阅服务的本地移动边缘平台取消在源移动边缘平台上订阅的服务,在目标移动边缘平台上重新订阅服务,并通过创建映射表更新路由策略,将与服务有关的数据路由到目标临时服务端点上,解决了将服务提供 者从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的服务消费者可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
与图3所示的实施例不同的是,本实施例中,本地移动边缘平台直接将源移动边缘平台发送的服务信息转发给使用服务的服务消费者;或者,将目标移动边缘平台发送的服务信息转发给使用服务的服务消费者,使得使用服务的服务消费者访问服务的路径不需经过本地移动边缘平台而直接访问服务的效果。
本实施例中源移动边缘服务器可以包括服务提供者和源移动边缘平台;目标移动边缘服务器可以包括目标移动边缘平台;本地移动边缘服务器可以包括本地移动边缘平台和服务消费者。
请参考图6,其示出了本发明另一示例性实施例提供的服务迁移方法的流程图。本实施例以该方法应用于图1B所示的实施环境中来举例说明,该服务迁移方法包括:
步骤601至步骤606是服务提供者(Service Provider)在源移动边缘平台注册服务,以及本地移动边缘平台中的服务消费者(Service Consumer)使用注册的服务的过程。
步骤601,服务提供者将服务注册至源移动边缘平台。
在注册过程中,服务提供者会向源移动边缘平台提供服务标识(Service ID)和服务端点(S-endpoint)。
服务提供者是指提供服务的应用;服务端点是指服务的访问地址。
对应地,源移动边缘平台接收服务提供者提供的服务标识和服务端点。
步骤602,源移动边缘平台向路由表控制器发送更新路由请求,更新路由请求包括:服务端点和源移动边缘平台的IP地址。
源移动边缘平台在接收到服务提供者提供的服务标识和服务端点后,向路由表控制器发送更新路由请求。更新路由请求用于请求路由表控制器更新服务的路由表,更新后的路由表将与服务有关的数据路由至源移动边缘平台的IP地址。
其中,本实施例中路由表控制器可以是软件定义网络(英文:Software Defined Network,简称:SDN)控制器或业务功能链(英文:Service Function  Chain,简称:SFC)控制器。
对应地,路由表控制器接收源移动边缘平台发送的更新路由请求。
步骤603,服务消费者向本地移动边缘平台发送订阅请求,订阅请求包括服务标识。
服务消费者(Service Consumer)是指使用服务的应用。
对应地,本地移动边缘平台接收服务消费者发送的订阅请求。
步骤604,本地移动边缘平台向源移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台在接收到服务消费者发送的订阅请求后,获取订阅请求中包括的服务标识。本地移动边缘平台根据服务标识查询对应的服务所在的源移动边缘平台。
本地移动边缘平台根据服务标识查询源移动边缘平台的方式有两种:
第一种,本地移动边缘平台根据服务标识在管理节点中查询与服务标识对应的服务所在的源移动边缘平台。
第二种,本地移动边缘平台向所有的移动边缘平台发送查询报文,查询报文包括服务标识,根据查询报文查询与服务标识对应的服务所在的源移动边缘平台。
对应地,源移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤605,源移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和服务端点。
源移动边缘平台在接收到本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务的服务信息,该服务信息包括订阅服务的服务标识和服务端点。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务信息。
本实施例中步骤603至步骤605与图3实施例所示的步骤303至步骤305相同,详细说明请参见图3实施例所示的步骤303至步骤305。
步骤606,本地移动边缘平台向服务消费者发送服务信息,服务信息包括服务标识和服务端点。
本地移动边缘平台将接收到的服务信息发送给服务消费者,以便服务消费者根据服务端点访问订阅的服务。
对应地,服务消费者接收本地移动边缘平台发送的服务信息。
当源移动边缘平台不能提供服务提供者所需要的性能要求,或服务提供者不能满足业务质量要求,或服务提供者不能响应负载均衡的请求时,则需要把服务从源移动边缘平台迁移到目标移动边缘平台上。具体迁移过程如下步骤607至步骤615所示。
步骤607,源移动边缘平台向目标移动边缘平台发送服务迁移请求,服务迁移请求包括服务标识和服务端点。
服务迁移请求用于请求迁移服务提供者提供的服务。
判断服务是否需要迁移有两种可选的方式,导致源移动边缘平台向目标移动边缘平台发送服务迁移请求也包括两种方式,具体如下:
第一种,源移动边缘平台检测服务是否需要迁移,在服务需要迁移时,向目标移动边缘平台发送服务迁移请求;若服务不需要迁移,则源移动边缘平台不向目标移动边缘平台发送服务迁移请求。
第二种,服务提供者检测服务是否需要迁移,在服务需要迁移时,向源移动边缘平台发送迁移请求;源移动边缘平台接收到服务提供者发送的迁移请求后,向目标移动边缘平台发送服务迁移请求;当服务不需要迁移时,服务提供者不向源移动边缘平台发送迁移请求。
需要说明的一点是,目标移动边缘平台可以通过提供性能的要求、负载均衡的情况确定。本发明实施例中对目标移动边缘平台的确定不作具体限定。
对应地,目标移动边缘平台接收源移动边缘平台发送的服务迁移请求。
步骤608,目标移动边缘平台保存服务迁移请求中携带的服务标识和服务端点。
目标移动边缘平台在接收到源移动边缘平台发送的服务迁移请求后,获取服务迁移请求中的服务标识和服务端点,将获取到的服务标识和服务端点保存至目标移动边缘平台的存储器中。
步骤609,目标移动边缘平台向路由表控制器发送更新路由请求,更新路由请求包括:服务端点和目标移动边缘平台的IP地址。
目标移动边缘平台在保存服务标识和服务端点后,向路由表控制器发送更新路由请求,更新路由请求用于请求路由表控制器更新服务的路由表,更新后的路由表将与服务有关的数据路由至目标移动边缘平台的IP地址。
对应地,路由表控制器接收目标移动边缘平台发送的更新路由请求。
步骤610,目标移动边缘平台向源移动边缘平台发送服务迁移响应。
目标移动边缘平台在更新服务的路由表后,向源移动边缘平台发送服务迁移响应,服务迁移响应用于通知源移动边缘平台服务迁移完毕。
对应地,源移动边缘平台接收目标移动边缘平台发送的服务迁移响应。
步骤611,源移动边缘平台向本地移动边缘平台发送服务迁移信息,服务迁移信息包括:服务标识和目标移动边缘平台的IP地址。
源移动边缘平台在接收到目标移动边缘平台发送的服务迁移响应后,向订阅服务的本地移动边缘平台发送服务迁移信息,服务迁移信息中包括服务标识和目标移动边缘平台的IP地址。服务迁移信息用于通知订阅服务的本地移动边缘平台该服务发生迁移,并将目标移动边缘平台的IP地址通知给本地移动边缘平台。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务迁移信息。
步骤612,本地移动边缘平台向源移动边缘平台发送取消订阅请求,取消订阅请求包括服务标识。
取消订阅请求用于取消在源移动边缘平台上订阅的服务。
本地移动边缘平台在接收到源移动边缘平台发送的服务迁移信息后,向源移动边缘平台发送取消订阅请求。取消订阅请求用于取消本地移动边缘平台在源移动边缘平台上订阅的服务。
对应地,源移动边缘平台接收本地移动边缘平台发送的取消订阅请求。
步骤613,本地移动边缘平台向目标移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台取消在源移动边缘平台上订阅服务后,向目标移动边缘平台发送订阅请求。订阅请求用于请求在目标移动边缘平台上订阅服务。
对应地,目标移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤614,目标移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和服务端点。
目标移动边缘平台在接收本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务信息,服务信息中包括服务标识和服务端点。
对应地,本地移动边缘平台接收目标移动边缘平台发送的服务信息。
本实施例中步骤610至步骤614与图3实施例所示的步骤310至步骤314相同,详细说明请参见图3实施例所示的步骤310至步骤314。
步骤615,本地移动边缘平台向服务消费者发送服务信息,服务信息包括 服务标识和服务端点。
本地移动边缘平台在接收到目标移动边缘平台发送的服务信息后,向服务消费者转发服务信息。
对应地,服务消费者接收本地移动边缘平台发送的服务信息,通过服务信息中携带的服务端点访问订阅的服务。
综上所述,本实施例提供的服务迁移方法,通过在源移动边缘平台上订阅服务,当服务发送迁移时,源移动边缘平台向订阅服务的本地移动边缘平台发送服务迁移信息,使得订阅服务的本地移动边缘平台取消在源移动边缘平台上订阅的服务,在目标移动边缘平台上重新订阅服务,并通过目标移动边缘平台向路由表控制器发送更新路由请求更新路由策略,将与服务相关的数据路由到服务端点上,解决了将服务提供者从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的服务消费者可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
与图3所示的实施例不同的是,本实施例中,目标移动边缘平台通过向路由表控制器发送更新路由请求,从而更新服务的路由表,通过更新后的路由表将与服务有关的数据路由至服务端点,实现了订阅服务的本地移动边缘平台通过更新后的路由表访问迁移后的服务的效果。
本实施例中源移动边缘服务器可以包括服务提供者和源移动边缘平台;目标移动边缘服务器可以包括目标移动边缘平台;本地移动边缘服务器可以包括本地移动边缘平台、服务消费者和本地服务网络功能实体。
请参考图7,其示出了本发明另一示例性实施例提供的服务迁移方法的流程图。本实施例以该方法应用于图1B所示的实施环境中来举例说明,该服务迁移方法包括:
步骤701至步骤706是服务提供者(Service Provider)在源移动边缘平台注册服务,以及本地移动边缘平台中的服务消费者(Service Consumer)使用注册的服务的过程。
步骤701,服务提供者将服务注册至源移动边缘平台。
在注册过程中,服务提供者会向源移动边缘平台提供服务标识(Service ID) 和服务端点(S-endpoint)。
服务提供者是指提供服务的应用;服务端点是指服务的访问地址。
对应地,源移动边缘平台接收服务提供者提供的服务标识和服务端点。
步骤702,服务消费者向本地移动边缘平台发送订阅请求,订阅请求包括服务标识。
服务消费者(Service Consumer)是指使用服务的应用。
对应地,本地移动边缘平台接收服务消费者发送的订阅请求。
步骤703,本地移动边缘平台向本地服务网络功能实体发送隧道建立请求,隧道建立请求包括:服务端点、源移动边缘平台的IP地址和服务消费者的IP地址。
本地移动边缘平台在接收到服务消费者发送的订阅请求后,向本地服务网络功能实体发送隧道建立请求,建立本地移动边缘平台和源移动边缘平台之间的隧道。该隧道用于将与服务相关的数据路由至源移动边缘服务器。
本地服务网络功能实体为本地移动边缘平台提供网络服务,用于在本地移动边缘平台和源移动边缘平台之间进行数据传输。可选的,本地服务网络功能实体可以为通信总线、数据转发面、用户数据面、基础设备或MCE服务器中的至少一种。
对应地,本地服务网络功能实体接收本地移动边缘平台发送的隧道建立请求,并在本地移动边缘平台和源移动边缘平台之间建立隧道。
本地服务网络功能实体接收到隧道建立请求后,根据源移动边缘平台的IP地址和服务消费者的IP地址在本地移动边缘平台和源移动边缘平台之间建立隧道,并保存服务端点与隧道之间的相对关系,将与服务相关的数据通过对应的隧道路由至源移动边缘服务器。
对应地,源移动边缘平台保存服务端点与隧道之间的对应关系,隧道是本地移动边缘平台与源移动边缘平台之间的隧道,用于传输服务消费者与服务提供者之间的数据。步骤704,本地移动边缘平台向源移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台在接收到服务消费者发送的订阅请求后,获取订阅请求中包括的服务标识。本地移动边缘平台根据服务标识查询对应的服务所在的源移动边缘平台。
本地移动边缘平台根据服务标识查询源移动边缘平台的方式有两种:
第一种,本地移动边缘平台根据服务标识在管理节点中查询与服务标识对应的服务所在的源移动边缘平台。
第二种,本地移动边缘平台向所有的移动边缘平台发送查询报文,查询报文包括服务标识,根据查询报文查询与服务标识对应的服务所在的源移动边缘平台。
对应地,源移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤705,源移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和服务端点。
源移动边缘平台在接收到本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务信息,该服务信息包括订阅的服务的服务标识和服务端点。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务信息。
本实施例中步骤704和步骤705与图3实施例所示的步骤304和步骤305相同,详细说明请参见图3实施例所示的步骤304和步骤305。
步骤706,本地移动边缘平台向服务消费者发送服务信息,服务信息包括服务标识和服务端点。
本地移动边缘平台将接收到的服务信息发送给服务消费者,以便服务消费者根据服务端点访问订阅的服务。
对应地,服务消费者接收本地移动边缘平台发送的服务信息。
当源移动边缘平台不能提供服务提供者所需要的性能要求,或服务提供者不能满足业务质量要求,或服务提供者不能响应负载均衡的请求时,则需要把服务从源移动边缘平台迁移到目标移动边缘平台上。具体迁移过程如下步骤707至步骤716所示。
步骤707,源移动边缘平台向目标移动边缘平台发送服务迁移请求,服务迁移请求包括服务标识和服务端点。
服务迁移请求用于请求迁移服务提供者提供的服务。
判断服务是否需要迁移有两种可选的方式,导致源移动边缘平台向目标移动边缘平台发送服务迁移请求也包括两种方式,具体如下:
第一种,源移动边缘平台检测服务是否需要迁移,在服务需要迁移时,向目标移动边缘平台发送服务迁移请求;若服务不需要迁移,则源移动边缘平台不向目标移动边缘平台发送服务迁移请求。
第二种,服务提供者检测服务是否需要迁移,在服务需要迁移时,向源移动边缘平台发送迁移请求;源移动边缘平台接收到服务提供者发送的迁移请求后,向目标移动边缘平台发送服务迁移请求;当服务不需要迁移时,服务提供者不向源移动边缘平台发送迁移请求。
对应地,目标移动边缘平台接收源移动边缘平台发送的服务迁移请求,目标移动边缘平台保存服务迁移请求中携带的服务端点。
需要说明的一点是,目标移动边缘平台可以通过提供性能的要求、负载均衡的情况确定。本发明实施例中对目标移动边缘平台的确定不作具体限定。
步骤708,目标移动边缘平台保存服务迁移请求中携带的服务标识和服务端点。
目标移动边缘平台在接收到源移动边缘平台发送的服务迁移请求后,获取服务迁移请求中的服务标识和服务端点,将获取到的服务标识和服务端点保存至目标移动边缘平台的存储器中。
步骤709,目标移动边缘平台向源移动边缘平台发送服务迁移响应。
目标移动边缘平台保存服务标识和服务端点后,向源移动边缘平台发送服务迁移响应,服务迁移响应用于通知源移动边缘平台服务迁移完毕。
对应地,源移动边缘平台接收目标移动边缘平台发送的服务迁移响应。
步骤710,源移动边缘平台向本地移动边缘平台发送服务迁移信息,服务迁移信息包括:服务标识和目标移动边缘平台的IP地址。
源移动边缘平台在接收到目标移动边缘平台发送的服务迁移响应后,向订阅服务的本地移动边缘平台发送服务迁移信息,服务迁移信息中包括服务标识和目标移动边缘平台的IP地址。服务迁移信息用于通知订阅服务的本地移动边缘平台该服务发生迁移,并将目标移动边缘平台的IP地址通知给本地移动边缘平台。
对应地,本地移动边缘平台接收源移动边缘平台发送的服务迁移信息。
步骤711,本地移动边缘平台向本地服务功能实体网络发送隧道删除请求,隧道删除请求包括:服务端点、源移动边缘平台的IP地址和服务消费者的IP地址。
本地移动边缘平台在接收到源移动边缘平台发送的服务迁移信息后,向本地服务网络功能实体发送隧道删除请求,删除本地移动边缘平台与源移动边缘平台之间建立的隧道。
对应地,本地服务网络功能实体接收本地移动边缘平台发送的隧道删除请求,删除本地移动边缘平台与源移动边缘平台之间的隧道。本地服务网络功能实体在接收到隧道删除请求后,根据源移动边缘平台的IP地址和服务消费者的IP地址删除本地移动边缘平台与源移动边缘平台之间的隧道。隧道用于传输服务消费者与服务提供者之间的数据。
对应地,源移动边缘平台中删除服务端点与隧道之间的对应关系。
步骤712,本地移动边缘平台向源移动边缘平台发送取消订阅请求,取消订阅请求包括服务标识。
取消订阅请求用于取消在源移动边缘平台上订阅的服务。
本地移动边缘平台在接收到源移动边缘平台发送的服务迁移信息后,向源移动边缘平台发送取消订阅请求。取消订阅请求用于取消本地移动边缘平台在源移动边缘平台上订阅的服务。
对应地,源移动边缘平台接收本地移动边缘平台发送的取消订阅请求。
步骤713,本地移动边缘平台向本地服务网络功能实体发送隧道建立请求,隧道建立请求包括:服务端点、目标移动边缘平台的IP地址和服务消费者的IP地址。
本地移动边缘平台取消在源移动边缘平台上订阅的服务后,向本地服务网络功能实体发送隧道建立请求,建立本地移动边缘平台和目标移动边缘平台之间的隧道。隧道用于传输服务消费者与服务提供者之间的数据。
本地服务网络功能实体为本地移动边缘平台提供网络服务,用于在本地移动边缘平台和目标移动边缘平台之间进行数据传输。可选的,本地服务网络功能实体可以为通信总线、数据转发面、用户数据面、基础设备或MCE服务器中的至少一种。
对应地,本地服务网络功能实体接收本地移动边缘平台发送的隧道建立请求,并在本地移动边缘平台和目标移动边缘平台之间建立隧道。本地服务网络功能实体在接收到隧道建立请求后,根据目标移动边缘平台的IP地址和服务消费者的IP地址建立本地移动边缘平台与目标移动边缘平台之间的隧道,本地服务网络功能实体保存服务端点与建立的隧道之间的对应关系,将与服务相关的数据通过该隧道进行路由至目标移动边缘服务器。
对应地,目标移动边缘平台保存服务端点与隧道之间的对应关系,隧道是本地移动边缘平台与目标移动边缘平台之间的隧道,用于传输服务消费者与服 务提供者之间的数据。
步骤714,本地移动边缘平台向目标移动边缘平台发送订阅请求,订阅请求包括服务标识。
本地移动边缘平台与目标移动边缘平台之间建立隧道后,向目标移动边缘平台发送订阅请求。订阅请求用于请求在目标移动边缘平台上订阅服务。
对应地,目标移动边缘平台接收本地移动边缘平台发送的订阅请求。
步骤715,目标移动边缘平台向本地移动边缘平台发送服务信息,服务信息包括服务标识和服务端点。
目标移动边缘平台在接收本地移动边缘平台发送的订阅请求后,向订阅服务的本地移动边缘平台发送服务信息,服务信息中包括服务标识和服务端点。
对应地,本地移动边缘平台接收目标移动边缘平台发送的服务信息。
本实施例中步骤714至步骤715与图3实施例所示的步骤313至步骤314相同,详细说明请参见图3实施例所示的步骤313至步骤314。
步骤716,本地移动边缘平台向服务消费者发送服务信息,服务信息包括服务标识和服务端点。
本地移动边缘平台在接收到目标移动边缘平台发送的服务信息后,向服务消费者转发服务信息。
对应地,服务消费者接收本地移动边缘平台发送的服务信息,通过服务信息中携带的服务端点访问订阅的服务。
综上所述,本实施例提供的服务迁移方法,通过在源移动边缘平台上订阅服务,当服务发送迁移时,源移动边缘平台向订阅的服务的本地移动边缘平台发送服务迁移信息,使得订阅服务的本地移动边缘平台取消在源移动边缘平台上订阅的服务,在目标移动边缘平台上重新订阅服务,并通过在本地移动边缘平台与目标移动边缘平台之间建立隧道的方式更新路由策略,将与服务相关的数据路由到服务端点上,解决了将服务提供者从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的服务消费者可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
与图3所示的实施例不同的是,本实施例中,目标移动边缘平台通过建立本地移动边缘平台与目标移动边缘平台之间的隧道,建立了本地移动边缘平台 与目标移动边缘平台之间的路由策略,使得订阅服务的本地移动边缘平台可以通过建立的隧道访问迁移后的服务。
需要说明的第一点是,本发明图3实施例、图5实施例、图6实施例和图7实施例中目标移动边缘平台在接收到源移动边缘平台发送的服务迁移请求后,还可以包括图4实施例中的步骤409和步骤410。服务提供者通过在目标移动边缘平台中重新注册服务,在重新注册服务时,服务提供者向目标移动边缘平台提供服务的服务标识和服务端点。重新注册时,服务的服务端点与在源移动边缘平台注册时的服务端点可以相同也可以不同。
需要说明的第二点是,图3实施例至图7实施例中有关目标移动边缘平台一侧的步骤可以单独实现成为目标移动边缘平台侧的服务迁移方法;有关源移动边缘平台一侧的步骤可以单独实现成为源移动边缘平台侧的服务迁移方法;有关本地移动边缘平台一侧的步骤可以单独实现成为本地移动边缘平台侧的服务迁移方法。
请参考图8,其示出了本发明一示例性实施例提供的一种服务迁移装置的框图。该服务迁移装置可以通过软件、硬件或者两者的结合实现成为目标移动边缘平台的全部或者一部分。该服务迁移装置可以包括:接收单元810、获取单元820和发送单元830。
接收单元810,用于接收源移动边缘平台发送的服务迁移请求,服务迁移请求用于请求迁移服务提供者提供的服务,服务迁移请求包括:服务的服务标识,服务标识用于在至少一个服务中标识服务;
获取单元820,用于获取与服务标识对应的服务端点,服务端点是服务提供者提供服务时的访问地址;
发送单元830,用于向源移动边缘平台发送服务迁移响应。
相关细节可结合参考上述方法实施例。
在另一个可选的实施例中,上述服务迁移装置还包括:生成单元840。
生成单元840,用于根据服务端点和目标移动边缘平台的IP地址,生成目标临时服务端点;目标临时服务端点是服务提供者通过目标移动边缘平台提供 服务时的访问地址。
在另一个可选的实施例中,上述发送单元830,还用于向路由表控制器发送更新路由请求,更新路由请求包括:服务端点和目标移动边缘平台的IP地址;更新路由请求用于请求路由表控制器更新指向服务端点的路径。
在另一个可选的实施例中,上述服务迁移装置还包括:保存单元850。
保存单元850,用于保存服务端点与隧道之间的对应关系,隧道是本地移动边缘平台与目标移动边缘平台之间的隧道,本地移动边缘平台是使用服务的服务消费者所在的移动边缘平台,隧道用于传输服务消费者与服务提供者之间的数据。
在另一个可选的实施例中,上述接收单元810,还用于接收本地移动边缘平台发送的订阅请求,订阅请求用于在目标移动边缘平台上订阅服务;
发送单元830,还用于向本地移动边缘平台发送服务信息,服务信息包括:服务标识和目标临时服务端点。
在另一个可选的实施例中,上述接收单元810,还用于接收本地移动边缘平台发送的订阅请求,订阅请求用于在目标移动边缘平台上订阅服务;
发送单元830,还用于向本地移动边缘平台发送服务信息,服务信息包括:服务标识和服务端点。
在另一个可选的实施例中,上述获取单元820,还用于从服务迁移请求中获取与服务标识对应的服务端点;
或,
接收单元810,还用于接收服务提供者发送的与服务标识对应的服务端点。
在另一个可选的实施例中,上述接收单元810,还用于接收服务提供者发送的注册请求,注册请求中包括与服务标识对应的服务端点;
或,
发送单元830,还用于向服务提供者发送重新注册指示;接收单元,还用于接收服务提供者发送的注册请求,注册请求中包括与服务标识对应的服务端点。
综上所述,本实施例提供的服务迁移装置,通过源移动边缘平台向目标移动边缘平台发送服务迁移请求,服务迁移请求包括:服务的服务标识;目标移动边缘平台获取与服务标识对应的服务端点;目标移动边缘平台向源移动边缘平台发送服务迁移响应;解决了将服务提供者从源移动边缘平台迁移到目标移 动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的服务消费者可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
请参考图9,其示出了本发明另一示例性实施例提供的一种服务迁移装置的框图。该服务迁移装置可以通过软件、硬件或者两者的结合实现成为源移动边缘平台的全部或者一部分。该服务迁移装置可以包括:发送单元910和接收单元920。
发送单元910,用于向目标移动边缘平台发送服务迁移请求,服务迁移请求用于请求迁移服务提供者提供的服务,服务迁移请求包括:服务的服务标识,服务标识用于在至少一个服务中标识服务;
接收单元920,用于接收目标移动边缘平台发送的服务迁移响应。
相关细节可结合参考上述方法实施例。
在另一个可选的实施例中,上述发送单元910,还用于在确定服务需要迁移时,向目标移动边缘平台发送服务迁移请求;
或,
接收单元920,还用于接收服务提供者发送的迁移请求,迁移请求是服务提供者在确定服务需要迁移时发送的;发送单元,还用于向目标移动边缘平台发送服务迁移请求。
在另一个可选的实施例中,上述发送单元910,还用于向订阅服务的本地移动边缘平台发送服务迁移信息,服务迁移信息包括:服务标识和目标移动边缘平台的IP地址,本地移动边缘平台是使用服务的服务消费者所在的移动边缘平台;
接收单元920,还用于接收本地移动边缘平台发送的取消订阅请求,取消订阅请求用于取消在源移动边缘平台上订阅的服务。
在另一个可选的实施例中,上述服务迁移装置还包括:删除单元930。
删除单元930,用于删除服务端点与隧道之间的对应关系,服务端点是服务提供者提供服务时的访问地址;隧道是本地移动边缘平台与源移动边缘平台之间的隧道,隧道用于传输服务消费者与服务提供者之间的数据。
综上所述,本实施例提供的服务迁移装置,通过向目标移动边缘平台发送服务迁移请求;接收目标移动边缘平台发送的服务迁移响应;解决了将服务提供者从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的服务消费者可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
请参考图10,其示出了本发明再一示例性实施例提供的一种服务迁移装置的框图。该服务迁移装置可以通过软件、硬件或者两者的结合实现成为本地移动边缘平台的全部或者一部分。该服务迁移装置可以包括:接收单元1010和发送单元1020。
接收单元1010,用于接收源移动边缘平台发送的服务迁移信息,服务迁移信息用于表示服务提供者提供的服务已迁移至目标移动边缘平台;服务迁移信息包括:服务的服务标识和目标移动边缘平台的IP地址;服务标识用于在至少一个服务中标识服务;
发送单元1020,用于根据服务迁移信息向源移动边缘平台发送取消订阅请求,取消订阅请求用于取消在源移动边缘平台上订阅的服务;
发送单元1020,还用于根据目标移动边缘平台的IP地址向目标移动边缘平台发送订阅请求,订阅请求用于在目标移动边缘平台上订阅服务;
接收单元1010,还用于接收目标移动边缘平台发送的服务信息,服务信息包括:服务标识。
相关细节可结合参考上述方法实施例。
在另一个可选的实施例中,上述发送单元1020,还用于:
向本地服务网络功能实体发送隧道删除请求,隧道删除请求用于删除本地移动边缘平台与源移动边缘平台之间的隧道;
向本地服务网络功能实体发送隧道建立请求,隧道建立请求用于建立本地移动边缘平台与目标移动边缘平台之间的隧道。
在另一个可选的实施例中,服务信息还包括:服务的目标临时服务端点,目标临时服务端点是目标移动边缘平台提供服务时的访问地址。
在另一个可选的实施例中,服务信息还包括:服务的服务端点,服务端点 是服务提供者提供服务时的访问地址。
在另一个可选的实施例中,上述服务迁移装置还包括:生成单元1030。
生成单元1030,用于根据目标临时服务端点和本地移动边缘平台的IP地址,生成本地临时服务端点,本地临时服务端点是服务提供者通过本地移动边缘平台提供服务时的访问地址;
上述发送单元1020,还用于向使用服务的服务消费者发送本地服务信息,本地服务信息包括:服务标识和本地临时服务端点。
综上所述,本实施例提供的服务迁移装置,通过接收源移动边缘平台发送的服务迁移信息;向源移动边缘平台发送取消订阅请求;向目标移动边缘平台发送订阅请求;接收目标移动边缘平台发送的服务信息;解决了将服务提供者从源移动边缘平台迁移到目标移动边缘平台上的问题;达到了将服务提供者从源移动边缘平台迁移到目标移动边缘平台后,能够保证在源移动边缘平台上订阅服务的服务消费者可以继续正确使用迁移到目标移动边缘平台后的服务,从而保证服务消费者为用户设备提供业务的可用性和可靠性的效果。
请参考图11,其示出了本发明一示例性实施例提供的一种服务迁移***的框图,该服务迁移***可以包括目标移动边缘平台1120、源移动边缘平台1140和本地移动边缘平台1160;
目标移动边缘平台如上图8实施例所示的服务迁移装置;
源移动边缘平台如上图9实施例所示的服务迁移装置;
本地移动边缘平台如上图10实施例所示的服务迁移装置。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (37)

  1. 一种服务迁移方法,其特征在于,所述方法包括:
    目标移动边缘平台接收源移动边缘平台发送的服务迁移请求,所述服务迁移请求用于请求迁移服务提供者提供的服务,所述服务迁移请求包括:所述服务的服务标识,所述服务标识用于在至少一个服务中标识所述服务;
    所述目标移动边缘平台获取与所述服务标识对应的服务端点,所述服务端点是所述服务提供者提供所述服务时的访问地址;
    所述目标移动边缘平台向所述源移动边缘平台发送服务迁移响应。
  2. 根据权利要求1所述的方法,其特征在于,所述目标移动边缘平台获取与所述服务标识对应的服务端点之后,还包括:
    所述目标移动边缘平台根据所述服务端点和所述目标移动边缘平台的网络之间互连的协议IP地址,生成目标临时服务端点;所述目标临时服务端点是所述服务提供者通过所述目标移动边缘平台提供所述服务时的访问地址。
  3. 根据权利要求1所述的方法,其特征在于,所述目标移动边缘平台获取与所述服务标识对应的服务端点之后,还包括:
    所述目标移动边缘平台向路由表控制器发送更新路由请求,所述更新路由请求包括:所述服务端点和所述目标移动边缘平台的IP地址;所述更新路由请求用于请求所述路由表控制器更新指向所述服务端点的路径。
  4. 根据权利要求1所述的方法,其特征在于,所述目标移动边缘平台获取与所述服务标识对应的服务端点之后,还包括:
    所述目标移动边缘平台保存所述服务端点与隧道之间的对应关系,所述隧道是本地移动边缘平台与所述目标移动边缘平台之间的隧道,所述本地移动边缘平台是使用所述服务的服务消费者所在的移动边缘平台,所述隧道用于传输所述服务消费者与所述服务提供者之间的数据。
  5. 根据权利要求2所述的方法,其特征在于,所述目标移动边缘平台向所述源移动边缘平台发送服务迁移响应之后,还包括:
    所述目标移动边缘平台接收所述本地移动边缘平台发送的订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
    所述目标移动边缘平台向所述本地移动边缘平台发送服务信息,所述服务信息包括:所述服务标识和所述目标临时服务端点。
  6. 根据权利要求3或4所述的方法,其特征在于,所述目标移动边缘平台向所述源移动边缘平台发送服务迁移响应之后,还包括:
    所述目标移动边缘平台接收所述本地移动边缘平台发送的订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
    所述目标移动边缘平台向所述本地移动边缘平台发送服务信息,所述服务信息包括:所述服务标识和所述服务端点。
  7. 根据权利要求1至6任一所述的方法,其特征在于,所述目标移动边缘平台获取与所述服务标识对应的服务端点,包括:
    从所述服务迁移请求中获取与所述服务标识对应的服务端点;
    或,
    接收所述服务提供者发送的与所述服务标识对应的服务端点。
  8. 根据权利要求7所述的方法,其特征在于,所述接收所述服务提供者发送的与所述服务标识对应的服务端点,包括:
    接收所述服务提供者发送的注册请求,所述注册请求中包括与所述服务标识对应的服务端点;
    或,
    向所述服务提供者发送重新注册指示;接收所述服务提供者发送的所述注册请求,所述注册请求中包括与所述服务标识对应的服务端点。
  9. 一种服务迁移方法,其特征在于,所述方法包括:
    源移动边缘平台向目标移动边缘平台发送服务迁移请求,所述服务迁移请求用于请求迁移服务提供者提供的服务,所述服务迁移请求包括:所述服务的服务标识,所述服务标识用于在至少一个服务中标识所述服务;
    所述源移动边缘平台接收所述目标移动边缘平台发送的服务迁移响应。
  10. 根据权利要求9所述的方法,其特征在于,所述源移动边缘平台向目标移动边缘平台发送服务迁移请求,包括:
    所述源移动边缘平台在确定所述服务需要迁移时,向所述目标移动边缘平台发送所述服务迁移请求;
    或,
    所述源移动边缘平台接收所述服务提供者发送的迁移请求,所述迁移请求是所述服务提供者在确定所述服务需要迁移时发送的;所述源移动边缘平台向所述目标移动边缘平台发送所述服务迁移请求。
  11. 根据权利要求9所述的方法,其特征在于,所述源移动边缘平台接收所述目标移动边缘平台发送的服务迁移响应之后,还包括:
    所述源移动边缘平台向订阅所述服务的本地移动边缘平台发送服务迁移信息,所述服务迁移信息包括:所述服务标识和所述目标移动边缘平台的网络之间互联的协议IP地址,所述本地移动边缘平台是使用所述服务的服务消费者所在的移动边缘平台;
    所述源移动边缘平台接收所述本地移动边缘平台发送的取消订阅请求,所述取消订阅请求用于取消在所述源移动边缘平台上订阅的服务。
  12. 根据权利要求11所述的方法,其特征在于,所述源移动边缘平台接收所述本地移动边缘平台发送的取消订阅请求之前,还包括:
    所述源移动边缘平台删除服务端点与隧道之间的对应关系,所述服务端点是所述服务提供者提供所述服务时的访问地址;所述隧道是所述本地移动边缘平台与所述源移动边缘平台之间的隧道,所述隧道用于传输所述服务消费者与所述服务提供者之间的数据。
  13. 一种服务迁移方法,其特征在于,所述方法包括:
    本地移动边缘平台接收源移动边缘平台发送的服务迁移信息,所述服务迁移信息用于表示服务提供者提供的服务已迁移至目标移动边缘平台;所述服务迁移信息包括:所述服务的服务标识和目标移动边缘平台的网络之间互联的协议IP地址;所述服务标识用于在至少一个服务中标识所述服务;
    所述本地移动边缘平台根据所述服务迁移信息向所述源移动边缘平台发送取消订阅请求,所述取消订阅请求用于取消在所述源移动边缘平台上订阅的所述服务;
    所述本地移动边缘平台根据所述目标移动边缘平台的IP地址向所述目标移动边缘平台发送订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
    所述本地移动边缘平台接收所述目标移动边缘平台发送的服务信息,所述服务信息包括:所述服务标识;
    其中,所述本地移动边缘平台是使用所述服务的服务消费者所在的移动边缘平台。
  14. 根据权利要求13所述的方法,其特征在于,所述方法,还包括:
    所述本地移动边缘平台向本地服务网络功能实体发送隧道删除请求,所述隧道删除请求用于删除所述本地移动边缘平台与所述源移动边缘平台之间的隧道;
    所述本地移动边缘平台向所述本地服务网络功能实体发送隧道建立请求,所述隧道建立请求用于建立所述本地移动边缘平台与所述目标移动边缘平台之间的隧道。
  15. 根据权利要求13所述的方法,其特征在于,所述服务信息还包括:所述服务的目标临时服务端点,所述目标临时服务端点是所述服务提供者通过所述目标移动边缘平台提供所述服务时的访问地址。
  16. 根据权利要求13所述的方法,其特征在于,所述服务信息还包括:所述服务的服务端点,所述服务端点是所述服务提供者提供所述服务时的访问地址。
  17. 根据权利要求15所述的方法,其特征在于,所述本地移动边缘平台接收所述目标移动边缘平台发送的服务信息之后,还包括:
    所述本地移动边缘平台根据所述目标临时服务端点和所述本地移动边缘平台的IP地址,生成本地临时服务端点,所述本地临时服务端点是所述服务提供 者通过所述本地移动边缘平台提供所述服务时的访问地址;
    所述本地移动边缘平台向使用所述服务的服务消费者发送本地服务信息,所述本地服务信息包括:所述服务标识和所述本地临时服务端点。
  18. 根据权利要求15或16所述的方法,其特征在于,所述本地移动边缘平台接收所述目标移动边缘平台发送的服务信息之后,还包括:
    所述本地移动边缘平台向使用所述服务的服务消费者发送所述服务信息。
  19. 一种服务迁移装置,其特征在于,所述装置包括:
    接收单元,用于接收源移动边缘平台发送的服务迁移请求,所述服务迁移请求用于请求迁移服务提供者提供的服务,所述服务迁移请求包括:所述服务的服务标识,所述服务标识用于在至少一个服务中标识所述服务;
    获取单元,用于获取与所述服务标识对应的服务端点,所述服务端点是所述服务提供者提供所述服务时的访问地址;
    发送单元,用于向所述源移动边缘平台发送服务迁移响应。
  20. 根据权利要求19所述的装置,其特征在于,所述装置,还包括:
    生成单元,用于根据所述服务端点和目标移动边缘平台的网络之间互连的协议IP地址,生成目标临时服务端点;所述目标临时服务端点是所述服务提供者通过所述目标移动边缘平台提供所述服务时的访问地址。
  21. 根据权利要求19所述的装置,其特征在于,所述发送单元,还用于向路由表控制器发送更新路由请求,所述更新路由请求包括:所述服务端点和所述目标移动边缘平台的IP地址;所述更新路由请求用于请求所述路由表控制器更新指向所述服务端点的路径。
  22. 根据权利要求19所述的装置,其特征在于,所述装置,还包括:
    保存单元,还用于保存所述服务端点与隧道之间的对应关系,所述隧道是本地移动边缘平台与所述目标移动边缘平台之间的隧道,所述本地移动边缘平台是使用所述服务的服务消费者所在的移动边缘平台,所述隧道用于传输所述服务消费者与所述服务提供者之间的数据。
  23. 根据权利要求20所述的装置,其特征在于,所述装置,还包括:
    所述接收单元,还用于接收所述本地移动边缘平台发送的订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
    所述发送单元,还用于向所述本地移动边缘平台发送服务信息,所述服务信息包括:所述服务标识和所述目标临时服务端点。
  24. 根据权利要求21或22所述的装置,其特征在于,所述装置,还包括:
    所述接收单元,还用于接收所述本地移动边缘平台发送的订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
    所述发送单元,还用于向所述本地移动边缘平台发送服务信息,所述服务信息包括:所述服务标识和所述服务端点。
  25. 根据权利要求19至23任一所述的装置,其特征在于,
    所述获取单元,还用于从所述服务迁移请求中获取与所述服务标识对应的服务端点;
    或,
    所述接收单元,还用于接收所述服务提供者发送的与所述服务标识对应的服务端点。
  26. 根据权利要求25所述的装置,其特征在于,
    所述接收单元,还用于接收所述服务提供者发送的注册请求,所述注册请求中包括与所述服务标识对应的服务端点;
    或,
    所述发送单元,还用于向所述服务提供者发送重新注册指示;所述接收单元,还用于接收所述服务提供者发送的所述注册请求,所述注册请求中包括与所述服务标识对应的服务端点。
  27. 一种服务迁移装置,其特征在于,所述装置包括:
    发送单元,用于向目标移动边缘平台发送服务迁移请求,所述服务迁移请求用于请求迁移服务提供者提供的服务,所述服务迁移请求包括:所述服务的 服务标识,所述服务标识用于在至少一个服务中标识所述服务;
    接收单元,用于接收所述目标移动边缘平台发送的服务迁移响应。
  28. 根据权利要求27所述的装置,其特征在于,
    所述发送单元,还用于在确定所述服务需要迁移时,向所述目标移动边缘平台发送所述服务迁移请求;
    或,
    所述接收单元,还用于接收所述服务提供者发送的迁移请求,所述迁移请求是所述服务提供者在确定所述服务需要迁移时发送的;所述发送单元,还用于向所述目标移动边缘平台发送所述服务迁移请求。
  29. 根据权利要求27所述的装置,其特征在于,所述装置,还包括:
    所述发送单元,还用于向订阅所述服务的本地移动边缘平台发送服务迁移信息,所述服务迁移信息包括:所述服务标识和所述目标移动边缘平台的网络之间互联的协议IP地址,所述本地移动边缘平台是使用所述服务的服务消费者所在的移动边缘平台;
    所述接收单元,还用于接收所述本地移动边缘平台发送的取消订阅请求,所述取消订阅请求用于取消在源移动边缘平台上订阅的服务。
  30. 根据权利要求29所述的装置,其特征在于,所述装置,还包括:
    删除单元,用于删除服务端点与隧道之间的对应关系,所述服务端点是所述服务提供者提供所述服务时的访问地址;所述隧道是所述本地移动边缘平台与所述源移动边缘平台之间的隧道,所述隧道用于传输所述服务消费者与所述服务提供者之间的数据。
  31. 一种服务迁移装置,其特征在于,所述装置包括:
    接收单元,用于接收源移动边缘平台发送的服务迁移信息,所述服务迁移信息用于表示服务提供者提供的服务已迁移至目标移动边缘平台;所述服务迁移信息包括:所述服务的服务标识和目标移动边缘平台的网络之间互联的协议IP地址;所述服务标识用于在至少一个服务中标识所述服务;
    发送单元,用于根据所述服务迁移信息向所述源移动边缘平台发送取消订 阅请求,所述取消订阅请求用于取消在所述源移动边缘平台上订阅的所述服务;
    所述发送单元,还用于根据所述目标移动边缘平台的IP地址向所述目标移动边缘平台发送订阅请求,所述订阅请求用于在所述目标移动边缘平台上订阅所述服务;
    所述接收单元,还用于接收所述目标移动边缘平台发送的服务信息,所述服务信息包括:所述服务标识。
  32. 根据权利要求31所述的装置,其特征在于,所述发送单元,还用于:
    向本地服务网络功能实体发送隧道删除请求,所述隧道删除请求用于删除所述本地移动边缘平台与所述源移动边缘平台之间的隧道;
    向所述本地服务网络功能实体发送隧道建立请求,所述隧道建立请求用于建立所述本地移动边缘平台与所述目标移动边缘平台之间的隧道。
  33. 根据权利要求31所述的装置,其特征在于,所述服务信息还包括:所述服务的目标临时服务端点,所述目标临时服务端点是所述服务提供者通过所述目标移动边缘平台提供所述服务时的访问地址。
  34. 根据权利要求31所述的装置,其特征在于,所述服务信息还包括:所述服务的服务端点,所述服务端点是所述服务提供者提供所述服务时的访问地址。
  35. 根据权利要求33所述的装置,其特征在于,所述装置,还包括:
    生成单元,用于根据所述目标临时服务端点和所述本地移动边缘平台的IP地址,生成本地临时服务端点,所述本地临时服务端点是所述服务提供者通过所述本地移动边缘平台提供所述服务时的访问地址;
    所述发送单元,还用于向使用所述服务的服务消费者发送本地服务信息,所述本地服务信息包括:所述服务标识和所述本地临时服务端点。
  36. 根据权利要求33或34所述的装置,其特征在于,所述装置,还包括:
    所述发送单元,还用于向使用所述服务的服务消费者发送所述服务信息。
  37. 一种服务迁移***,其特征在于,所述***包括:目标移动边缘平台、源移动边缘平台和本地移动边缘平台;
    所述目标移动边缘平台如权利要求19至26任一所述的服务迁移装置;
    所述源移动边缘平台如权利要求27至30任一所述的服务迁移装置;
    所述本地移动边缘平台如权利要求31至36任一所述的服务迁移装置。
PCT/CN2016/073538 2016-02-04 2016-02-04 服务迁移方法、装置及*** WO2017132951A1 (zh)

Priority Applications (5)

Application Number Priority Date Filing Date Title
CN202010820027.0A CN112087495B (zh) 2016-02-04 2016-02-04 服务迁移方法、装置及***
CN201680078095.6A CN108476215B (zh) 2016-02-04 2016-02-04 服务迁移方法、装置及***
PCT/CN2016/073538 WO2017132951A1 (zh) 2016-02-04 2016-02-04 服务迁移方法、装置及***
EP16888776.8A EP3404885B1 (en) 2016-02-04 2016-02-04 Service migration method, apparatus and system
US16/052,349 US10673679B2 (en) 2016-02-04 2018-08-01 Service migration method, apparatus, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/073538 WO2017132951A1 (zh) 2016-02-04 2016-02-04 服务迁移方法、装置及***

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/052,349 Continuation US10673679B2 (en) 2016-02-04 2018-08-01 Service migration method, apparatus, and system

Publications (1)

Publication Number Publication Date
WO2017132951A1 true WO2017132951A1 (zh) 2017-08-10

Family

ID=59500098

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/073538 WO2017132951A1 (zh) 2016-02-04 2016-02-04 服务迁移方法、装置及***

Country Status (4)

Country Link
US (1) US10673679B2 (zh)
EP (1) EP3404885B1 (zh)
CN (2) CN108476215B (zh)
WO (1) WO2017132951A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833550A (zh) * 2018-06-21 2018-11-16 中国联合网络通信集团有限公司 一种感知农业优化调度的方法及装置
WO2019199362A1 (en) * 2018-04-11 2019-10-17 Intel IP Corporation Flexible multi-access edge computing (mec) services consumption through hosts zoning
CN111345008A (zh) * 2017-11-22 2020-06-26 华为技术有限公司 移动边缘主机服务通知方法和装置
CN112511649A (zh) * 2020-12-21 2021-03-16 新疆品宣生物科技有限责任公司 多接入边缘计算方法及设备
CN113852693A (zh) * 2021-09-26 2021-12-28 北京邮电大学 一种边缘计算服务的迁移方法

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109076357B (zh) * 2016-05-28 2021-06-08 华为技术有限公司 移动边缘***中迁移应用方法、相关设备及***
CN109412850B (zh) * 2018-10-25 2022-02-11 新华三技术有限公司合肥分公司 消息订阅控制方法及装置
US10938946B2 (en) * 2019-01-14 2021-03-02 Amdocs Development Limited Handshake of application execution between edge nodes
US10936558B2 (en) * 2019-03-07 2021-03-02 Vmware, Inc. Content-based data migration
CN111836261B (zh) * 2019-04-22 2021-10-15 华为技术有限公司 数据管理方法、lepm和mepm
US10893417B1 (en) * 2019-08-05 2021-01-12 Cisco Technology, Inc. Soft service migration between spectrum access system (SAS) providers for citizens broadband radio service (CBRS) networks
WO2022056292A1 (en) * 2020-09-11 2022-03-17 Intel Corporation An edge-to-datacenter approach to workload migration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218260A (zh) * 2013-03-06 2013-07-24 中国联合网络通信集团有限公司 虚拟机迁移方法和装置
CN103430516A (zh) * 2013-02-21 2013-12-04 华为技术有限公司 业务提供***、方法、移动边缘应用服务器及支持节点
US20150056995A1 (en) * 2013-08-20 2015-02-26 Telefonaktiebolaget L.M. Ericsson (Publ) Reporting performance and controlling mobility between different radio access technologies
US20150124622A1 (en) * 2013-11-01 2015-05-07 Movik Networks, Inc. Multi-Interface, Multi-Layer State-full Load Balancer For RAN-Analytics Deployments In Multi-Chassis, Cloud And Virtual Server Environments

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101262639B (zh) * 2007-03-06 2011-06-15 华为技术有限公司 服务无线网络控制器迁移方法及无线网络控制器
CN101742175B (zh) * 2008-11-18 2012-04-04 华为技术有限公司 一种发现快速频道切换服务的方法和装置
CN101754305A (zh) * 2008-12-04 2010-06-23 华为技术有限公司 实现数据网关切换的方法、装置和***
US9451018B2 (en) * 2011-03-30 2016-09-20 Telefonaktiebolaget Lm Ericsson (Publ) SCTP endpoint migration
US8761762B2 (en) * 2011-05-27 2014-06-24 Koninklijke Kpn N.V. Migration and activation of services in a network
JP6244309B2 (ja) * 2012-01-27 2017-12-06 エンパイア テクノロジー ディベロップメント エルエルシー クラウドマイグレーション用パラメータ化動的モデル
US8693322B2 (en) * 2012-02-21 2014-04-08 Yikun Zhang Routing method for a wireless multi-hop network
CN103237088A (zh) * 2013-05-16 2013-08-07 百度在线网络技术(北京)有限公司 基于对应关系库的浏览方法、***及云端服务器
US9300692B2 (en) * 2013-08-27 2016-03-29 Netapp, Inc. System and method for implementing data migration while preserving security policies of a source filer
WO2016050288A1 (en) * 2014-10-01 2016-04-07 Nokia Solutions And Networks Oy Session transfer by tunnel endpoint identifier renumbering
CN104486373A (zh) * 2014-11-21 2015-04-01 华为技术有限公司 一种锁资源迁移方法、节点及分布式***

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103430516A (zh) * 2013-02-21 2013-12-04 华为技术有限公司 业务提供***、方法、移动边缘应用服务器及支持节点
CN103218260A (zh) * 2013-03-06 2013-07-24 中国联合网络通信集团有限公司 虚拟机迁移方法和装置
US20150056995A1 (en) * 2013-08-20 2015-02-26 Telefonaktiebolaget L.M. Ericsson (Publ) Reporting performance and controlling mobility between different radio access technologies
US20150124622A1 (en) * 2013-11-01 2015-05-07 Movik Networks, Inc. Multi-Interface, Multi-Layer State-full Load Balancer For RAN-Analytics Deployments In Multi-Chassis, Cloud And Virtual Server Environments

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
HA, K. ET AL.: "Adaptive VM Handoff Across Cloudlets", CMU- CS -15-113, 30 June 2015 (2015-06-30), XP055533154 *
See also references of EP3404885A4 *
YUN, CHAOHU ET AL.: "Mobile Edge Computing A key technology towards 5G First edition", ETSI WHITE PAPER, 30 September 2015 (2015-09-30), XP055533153 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111345008A (zh) * 2017-11-22 2020-06-26 华为技术有限公司 移动边缘主机服务通知方法和装置
US11432137B2 (en) 2017-11-22 2022-08-30 Huawei Technologies Co., Ltd. Service notification method for mobile edge host and apparatus
WO2019199362A1 (en) * 2018-04-11 2019-10-17 Intel IP Corporation Flexible multi-access edge computing (mec) services consumption through hosts zoning
US11689640B2 (en) 2018-04-11 2023-06-27 Intel Corporation Flexible multi-access edge computing (MEC) services consumption through hosts zoning
CN108833550A (zh) * 2018-06-21 2018-11-16 中国联合网络通信集团有限公司 一种感知农业优化调度的方法及装置
CN108833550B (zh) * 2018-06-21 2021-06-15 中国联合网络通信集团有限公司 一种感知农业优化调度的方法及装置
CN112511649A (zh) * 2020-12-21 2021-03-16 新疆品宣生物科技有限责任公司 多接入边缘计算方法及设备
CN113852693A (zh) * 2021-09-26 2021-12-28 北京邮电大学 一种边缘计算服务的迁移方法
CN113852693B (zh) * 2021-09-26 2023-05-02 北京邮电大学 一种边缘计算服务的迁移方法

Also Published As

Publication number Publication date
EP3404885B1 (en) 2022-04-06
CN112087495A (zh) 2020-12-15
EP3404885A1 (en) 2018-11-21
CN112087495B (zh) 2021-09-21
EP3404885A4 (en) 2019-05-08
CN108476215B (zh) 2020-09-04
US10673679B2 (en) 2020-06-02
US20180341520A1 (en) 2018-11-29
CN108476215A (zh) 2018-08-31

Similar Documents

Publication Publication Date Title
WO2017132951A1 (zh) 服务迁移方法、装置及***
CN112153098B (zh) 一种应用迁移方法及装置
JP6564934B2 (ja) 分散型ソフトウェア定義ネットワークパケットコアシステムにおけるモビリティ管理のためのシステムおよび方法
KR102048333B1 (ko) 커스터마이즈드 5세대 (5g) 네트워크를 위한 시스템 및 방법
JP6245327B2 (ja) 通信システム、通信方法、及び無線アクセスネットワークノード
WO2018059043A1 (zh) 一种实现用户面功能管理的方法及装置和网元及装置
CN102196402B (zh) 无线通信***中终端切换的方法及***
JP6727341B2 (ja) 通信制御方法および関連するネットワーク要素
JP2019520763A (ja) ネットワークスライス選択方法、装置およびシステム
CN113891430A (zh) 一种通信的方法、装置及***
CN109964495B (zh) 应用的服务层移动性管理
WO2020034965A1 (zh) 一种消息传输方法、装置及存储介质
WO2015139310A1 (zh) 一种业务分配的处理方法及相关装置
US9648541B2 (en) Apparatus and method for forwarding data based on software defined network in communication network
WO2018112759A1 (zh) 访问资源的方法、装置和***
JP2013506326A (ja) ネットワーク間ローミングの実現方法、システム並びに問合せ及びネットワークアタッチメントの方法及びシステム
KR20120126095A (ko) 이동통신 제어 방법, 시스템, 맵핑 전달 서버 및 접속 라우터
WO2018018469A1 (zh) 用户设备上下文管理方法、装置和设备
US10863555B2 (en) Access method, apparatus, device, and system
US20140112307A1 (en) User terminal and communication apparatus for preventing interuption of communication in information centric network and method thereof
EP2482585A1 (en) Method and system for realizing terminal handover
WO2017045197A1 (zh) 接入本地网络的方法和相关设备
KR20120065131A (ko) 다중 단말 가상화 장치 및 그 방법
WO2016136242A1 (ja) ネットワーク装置、ネットワークシステム、及びその作動方法
CN104995956B (zh) 一种数据通道建立的方法、装置及***

Legal Events

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

Ref document number: 16888776

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2016888776

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2016888776

Country of ref document: EP

Effective date: 20180813