Embodiments of the application disclose service notification methods and mobile edge hosts. In an embodiment, a method comprising: receiving, by a first mobile edge platform, a service registration message from a first application instance, wherein the first mobile edge platform and the first application instance are comprised in a first mobile edge host; and sending, by the first mobile edge platform, a service notification message to a second mobile edge platform comprised in a second mobile edge host.
|
5. A service notification method, comprising:
receiving, by a first mobile edge platform of a first mobile edge host, a service availability subscription message from a second mobile edge platform of a second mobile edge host;
receiving, by the first mobile edge platform, a service registration message that relates to a service, from a first application instance of the first mobile edge host, and wherein the service registration message comprises a service use indication identifier indicating whether the service is available to be used by an application instance on another mobile edge host; and
sending, by the first mobile edge platform, a service notification message to the second mobile edge platform, in response to determining, based on the service use indication identifier, that the service is available to be used by an application instance on another mobile edge host.
8. A mobile edge host, comprising a mobile edge platform, a first application instance, and another application instance, wherein
the first application instance is configured to perform the following steps:
sending a service registration message that relates to a service, to the mobile edge platform, wherein the service registration message carries a service use indication identifier indicating whether the service is available to be used by an application instance on another mobile edge host; and
the mobile edge platform is configured to perform the following steps:
receiving a service availability subscription message from a second mobile edge platform comprised in a second mobile edge host;
receiving the service registration message; and
sending a service notification message to the second mobile edge platform, in response to determining that the service is available to be used by an application instance on the another mobile edge host.
1. A service notifications method, comprising:
sending, by a second mobile edge platform comprised in a second mobile edge host, a service availability subscription message to a first mobile edge platform comprised in a first mobile edge host;
receiving, by the first mobile edge platform, the service availability subscription message;
receiving, by the first mobile edge platform, a service registration message that relates to a service, from a first application instance, wherein the first application instance is comprised in the first mobile edge host, and wherein the service registration message comprises a service use indication identifier indicating whether the service is available to be used by an application instance on another mobile edge host;
sending, by the first mobile edge platform, a service notification message to the second mobile edge platform, in response to determining that the service is available to be used by an application instance on another mobile edge host; and
receiving, by the second mobile edge platform, the service notification message.
10. A mobile edge communications system, comprising a first mobile edge host and a second mobile edge host, wherein the first mobile edge host comprises a first mobile edge platform and a first application instance, and the second mobile edge host comprises a second mobile edge platform; wherein
the first mobile edge platform is configured to perform the following steps:
receiving a service availability subscription message from the second mobile edge platform;
receiving a service registration message that relates to a service, from the first application instance, wherein the service registration message comprises a service use indication identifier indicating whether the service is available to be used by an application instance on another mobile edge host; and
sending a service notification message to the second mobile edge platform, in response to determining that the service is available to be used by an application instance on the another mobile edge host; and
the second mobile edge platform is configured to perform the following steps:
sending the service availability subscription message; and
receiving the service notification message.
2. The method according to
sending, by the second application instance, a service availability subscription message to the second mobile edge platform; and
after receiving the service notification message, identifying, by the second mobile edge platform, that a location of a service instance is not a local location, and sending a service notification message to the second application instance.
3. The method according to
the service availability subscription message sent by the second application instance to the second mobile edge platform comprises a location constraint identifier, and the location constraint identifier indicates that the second application instance is subjected to availability of a service hosted by the first mobile edge host and the second mobile edge host.
4. The method according to
receiving, by the first mobile edge platform, a service availability query request of an application instance located on the first mobile edge host, wherein the service availability query request comprises a service location constraint identifier, and the service location constraint identifier indicates whether the application instance queries only a service instance hosted by the first mobile edge host; and
returning, by the first mobile edge platform, information related to a service instance that satisfies a query condition to the application instance, wherein the information comprises an identifier indicating whether the service instance hosted by a same mobile edge host as the application instance that sending the service availability query request.
6. The method according to
in response to determining that the service is unavailable to be used by an application instance on another mobile edge host, determining, by the first mobile edge platform, not to send the service notification message to the second mobile edge platform on the second mobile edge host.
7. The method according to
receiving, by the first mobile edge platform, a service availability query request of an application instance located on the first mobile edge host, wherein the service availability query request comprises a service location constraint identifier, and the service location constraint identifier indicates whether the application instance queries only a service instance hosted by the first mobile edge host; and
returning, by the first mobile edge platform, information related to a service instance that satisfies a query condition to the application instance, wherein the information comprises an identifier indicating whether the service instance hosted by a same mobile edge host as the application instance that sending the service availability query request.
9. The mobile edge host according to
determining not to send the service notification message to the second mobile edge platform, in response to determining that the service is unavailable to be used by an application instance on another mobile edge host.
11. The method according to
in response to determining that the service is unavailable to be used by an application instance on another mobile edge host, determining, by the first mobile edge platform, not to send the service notification message to the second mobile edge platform on the second mobile edge host.
12. The method according to
sending, by the first mobile edge platform, a service notification message to another application instance located on the first mobile edge host subjected to service availability.
13. The method according to
in response to determining that an availability of a service of the first application instance is updated:
receiving, by the first mobile edge platform, a service update message from the first application instance;
sending, by the first mobile edge platform, a service update notification message to the second mobile edge platform on the second mobile edge host; and
sending a service update notification message to a second application instance that is located on the first mobile edge host subjected to service availability.
14. The mobile edge host according to
sending a service notification message to another application instance located on the mobile edge host subjected to service availability.
15. The mobile edge host according to
receiving a service availability query request of an application instance located on the mobile edge host, wherein the service availability query request comprises a service location constraint identifier, and the service location constraint identifier indicates whether the application instance queries only a service instance hosted by the mobile edge host; and
returning information related to a service instance that satisfies a query condition to the application instance, wherein the information comprises an identifier indicating whether the service instance hosted by a same mobile edge host as the application instance that sending the service availability query request.
16. The mobile edge host according to
in response to determining that an availability of a service of the first application instance is updated:
receiving a service update message from the first application instance;
sending a service update notification message to the second mobile edge platform on the second mobile edge host; and
sending a service update notification message to a second application instance that is located on the mobile edge host subjected to service availability.
17. The mobile edge communications system according to
receiving a service availability query request of an application instance located on the first mobile edge host, wherein the service availability query request comprises a service location constraint identifier, and the service location constraint identifier indicates whether the application instance queries only a service instance hosted by the first mobile edge host; and
returning information related to a service instance that satisfies a query condition to the application instance, wherein the information comprises an identifier indicating whether the service instance hosted by a same mobile edge host as the application instance that sending the service availability query request.
18. The mobile edge communications system according to
sending a service notification message to another application instance located on the first mobile edge host subjected to service availability.
19. The mobile edge communications system according to
in response to determining that an availability of a service of the first application instance is updated:
receiving a service update message from the first application instance;
sending a service update notification message to the second mobile edge platform on the second mobile edge host; and
sending a service update notification message to a second application instance that is located on the first mobile edge host subjected to service availability.
20. The mobile edge communications system according to
determining not to send the service notification message to the second mobile edge platform, in response to determining that the service is unavailable to be used by an application instance on another mobile edge host.
|
This application is a continuation of International Application No. PCT/CN2017/112378, filed on Nov. 22, 2017, the disclosure of which is hereby incorporated by reference in its entirety.
The present invention relates to the communications field, and in particular, to a service notification method for a mobile edge host and an apparatus.
Mobile edge computing is to provide a cloud computing-based capability for a mobile user on a wireless network side near the user, so that the user can deploy an application at a network edge by using the capability. The mobile edge computing can also provide real-time wireless network information (such as a user location and base station load), and the user can develop differentiated applications by using the information. After the cloud computing capability is deployed at the network edge, a carrier-class service environment with high performance, a low latency, and high bandwidth can be created, to accelerate distribution and downloading of content, services, and applications in a network, so that a consumer enjoys network experience with higher quality.
An ultra-low latency service is extremely sensitive to a latency, but both a transmission path and a forwarding node increase the latency. The mobile edge computing enables content and a service to be deployed near a user, so that the transmission path is shorter and there are a smaller quantity of forwarding nodes. Therefore, the mobile edge computing is a necessary condition for implementing an ultra-low latency service. Typical scenarios include an internet of vehicles, industrial control, telemedicine, virtual reality/augmented reality, and the like.
For an ultra-high bandwidth service, traffic of ultra-high bandwidth is processed nearby by deploying the mobile edge computing (such as a mobile edge host shown in
The European Telecommunications Standards Institute (ETSI) defines a reference architecture for mobile edge computing in the specification ETSI GS MEC 003. As shown in
The mobile edge application (referred to as an application hereinafter), such as an internet of vehicles application, an internet of things application, or a video cache application, may have a plurality of copies, which are referred to as application instances and are respectively deployed on different mobile edge hosts. A terminal device, such as an intelligent vehicle, an internet of things device, or a mobile phone, accesses these application instances nearby through an access network of a telecommunications operator. Some applications can provide some capabilities to be consumed by another application. A capability provider is referred to as a service, and the service may also have a plurality of instances. For example, the internet of vehicles application needs to know a specific location of a vehicle, and a location application can provide the specific location of the vehicle, and provide a capability of locating the specific location of the vehicle. In this case, the location application is a provider of a location service. The internet of vehicles application invokes the location service, and is a consumer of the location service. In addition, one or more location service instances may be deployed on each mobile edge host.
The mobile edge platform on the mobile edge host provides a service registration and discovery function. The mobile edge application and the service may register, with the mobile edge platform, services that can be provided by the mobile edge application and the service, query information about another service from the mobile edge platform, and subscribe to a status of another service from the mobile edge platform.
In a current mobile edge system architecture, an application or a service can only discover a service on a mobile edge host on which the application or the service is located. If the service on the current mobile edge host cannot provide a service due to some reasons (such as a software bug, and a fault of a VM on which the service is located), running of the application is affected, and even the service is interrupted.
To resolve the foregoing technical problems, embodiments of the present invention provide a service notification method and an apparatus, so that even if a service on a mobile edge host cannot provide a service due to some reasons, normal running of an application instance on the mobile edge host is not affected.
A service notification method provided in an embodiment of the present invention is applied to a first mobile edge host and a second mobile edge host. The first mobile edge host includes a first mobile edge platform and a first application instance, and the second mobile edge host includes a second mobile edge platform.
The first mobile edge platform receives a service registration message from the first application instance.
The first mobile edge platform sends a service notification message to the second mobile edge platform.
The service registration message carries a service use indication identifier, and the indication identifier indicates whether the service can be used by an application instance on another mobile edge host.
The first mobile edge platform sends the service notification message to the second mobile edge platform based on the identifier.
In addition, before the first mobile edge platform receives the service registration message from the first application instance, the method includes: receiving, by the first mobile edge platform, a service availability subscription message sent by the second mobile edge platform to the first mobile edge platform; or preconfiguring, by the first mobile edge platform, the second mobile edge platform as an object for receiving the service notification message.
Further, the second mobile edge host further includes a second application instance, and the method includes:
sending, by the second application instance, a service availability subscription message to the second mobile edge platform; and
after receiving the service notification message sent by the first mobile edge platform, sending, by the second mobile edge platform, a service notification message to the second application instance.
The service availability subscription message sent by the second application instance to the second mobile edge platform includes a location constraint identifier, and the identifier indicates that the second application instance subscribes to availability of a service running on the first mobile edge host and the second mobile edge host.
An embodiment of the present invention provides another service notification method, the method is applied to a first mobile edge host, and the first mobile edge host includes a first mobile edge platform, a first application instance, and another application instance.
The first mobile edge platform receives a service registration message from the first application instance, where the service registration message carries a service use indication identifier, and the indication identifier indicates whether the service can be used by an application instance on another mobile edge host.
The first mobile edge platform sends a service notification message to another application instance that is located on the first mobile edge host and that subscribes to service availability.
The method is further applied to a second mobile edge host, the second mobile edge host includes a second mobile edge platform, and the method includes:
sending, by the second mobile edge platform, a service availability subscription message to the first mobile edge platform; and
determining, by the first mobile edge platform based on the indication identifier, whether to send a service notification message to the second mobile edge platform on the second mobile edge host.
An embodiment of the present invention provides a mobile edge host, including a mobile edge platform, a first application instance, and another application instance.
The first application instance is configured to send a service registration message to the mobile edge platform, where the service registration message carries a service use indication identifier, and the indication identifier indicates whether the service can be used by an application instance on another mobile edge host.
The mobile edge platform is configured to send a service notification message to another application instance that is located on the mobile edge host and that subscribes to service availability.
An embodiment of the present invention provides a mobile edge communications system, including a first mobile edge host and a second mobile edge host. The first mobile edge host includes a first mobile edge platform and a first application instance, and the second mobile edge host includes a second mobile edge platform.
The first mobile edge platform is configured to receive a service registration message from the first application instance.
The first mobile edge platform is configured to send a service notification message to the second mobile edge platform.
The service registration message carries a service use indication identifier, and the indication identifier indicates whether the service can be used by an application instance on another mobile edge host.
The first mobile edge platform is configured to send the service notification message to the second mobile edge platform based on the identifier.
An embodiment of the present invention provides a computer readable storage medium. The computer readable storage medium stores an executable program instruction, and when the executable program instruction is run, the steps of the foregoing methods are performed.
An embodiment of the present invention further provides a computer program product, and when being executed, the computer product is used to perform the steps of the foregoing methods.
According to the method and the apparatus provided in the foregoing embodiments, an application instance on a mobile edge host can not only discover and use a service on the mobile edge host on which the application instance is located, but also can discover and use a service on another mobile edge host. Even if the service on the current mobile edge host is faulty, the service on the another mobile edge host can be used, thereby ensuring normal running of an application on the current mobile edge host. In addition, a service instance may not necessarily be deployed on each edge host, so that different mobile edge hosts share resources, thereby saving resources.
To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments of the present invention. Apparently, the accompanying drawings in the following description show merely some embodiments of the present invention, and a person of ordinary skill in the art may obtain other accompanying drawings from these accompanying drawings without creative efforts.
To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clearly, the following describes the technical solutions of the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides a host cluster including neighboring mobile edge hosts. The hosts in the cluster exchange related information about various services that can be provided by the hosts. The host cluster mainly has the following two interconnection manners:
1. A Full Mesh Manner
As shown in
2. A Hierarchy Registration Manner
As shown in
In the foregoing manners, a mobile edge platform on a mobile edge host may store related information about different services located on different mobile edge hosts. For example, the related information may include information such as information indicating whether a service instance is deployed on a same mobile edge host as a current mobile edge platform, and information such as an address, a version, an instance status, and a type of the service instance. For specific information, refer to the following table:
Related information about various services stored on a mobile edge platform:
Local
Service
Service
Service
Service
Service
or
instance
instance
instance
instance
instance
not
address
version
status
type
Service
Yes
Address 1
Version 1
Activated
Location type
instance 1
Service
No
Address 2
Version 2
Deactivated
Bandwidth
instance 2
management
type
Embodiment 1 provides a service notification method in a single mobile edge host, that is, a procedure about how an application instance in a single mobile edge host discovers a service on a platform. Details are as follows.
Referring to
501. The another application instance sends a service availability event subscription request to the first mobile edge platform. The subscription request carries a filter condition for a subscription event. The filter condition may be a service instance identifier, a service name, a service type, a service status, a service location constraint identifier, or a combination of these attributes. The location constraint identifier indicates whether an application instance subscribes to availability of only a service instance running on a local host, or subscribes to availability of all service instances (including a service instance running on another mobile edge host). The local host is a mobile edge host on which an application instance sending a subscription request is located. In this embodiment, the local host is the first mobile edge host.
502. The first mobile edge platform sends a response message, to indicate that the subscription request is accepted.
503. After a service instance provided by the first application instance is deployed and is available for the first time, the first application instance sends a service registration message to the first mobile edge platform, to register the service instance, and provide a service. The registration message carries a service name, a service type, a service version, and transmission information used by the service. In addition, the registration message carries a service use indication identifier, and the indication identifier indicates whether the service instance can only be used by an application on the mobile edge host.
504. The first mobile edge platform registers the service instance with a service registration and discovery function, and stores the indication identifier indicating whether the service instance can only be used by the application on the mobile edge host. The identifier indicating whether the service instance can only be used by the application on the mobile edge host may be alternatively described in a descriptor of an application providing the service, is delivered by a mobile edge platform manager to the first mobile edge platform in an application instantiation process, and is stored by the first mobile edge platform.
505. The first mobile edge platform identifies an application instance that subscribes to a service status, where the application instance is the another application instance in this embodiment.
506. The first mobile edge platform sends a service availability notification to the another application instance, where the notification includes information about the service instance, and the information about the service instance includes one or more of the following information: the service name, the service version, the service type, the service status, the transmission information used by the service, the identifier indicating whether the service instance can only be used by the application on the mobile edge host, and an identifier indicating whether the service instance runs on a same mobile edge host as the application instance that subscribes to the service status.
507. The another application instance sends a response message to the first mobile edge platform.
508. Optionally, the another application instance may subsequently send a service availability query request to the first mobile edge platform. The query request includes a service location constraint identifier. The location constraint identifier indicates whether the another application instance queries only a service instance running on the local host.
509. The first mobile edge platform sends a response message to the another application instance. If the location constraint identifier in the previous step indicates that the another application instance queries only the service instance running on the local host, the response message includes information about only a service instance running on the first mobile edge host. If the location constraint identifier in the previous step indicates that the another application instance queries all service instances, the response message includes both information about a service instance running on the first mobile edge host and information about a service instance running on another mobile edge host (such as a second mobile edge host). The information about the service instance includes one or more of the following information: the service name, the service version, the service type, the service status, the transmission information used by the service, the identifier indicating whether the service instance can only be used by the application on the mobile edge host, and the identifier indicating whether the service instance runs on a same mobile edge host as the application instance that subscribes to the service status.
If availability of the service of the first application instance is updated subsequently, the first application instance sends a service update message to the first mobile edge platform.
Similar to the foregoing registration procedure, the first mobile edge platform receives the service update message, and sends a service update notification message to another application instance that is located on the first mobile edge platform host and that subscribes to the service availability.
After receiving the service availability notification or a service query response message, the another application instance selects one service instance from a list of available service instances to initiate invoking. When discovering that a service instance is “unavailable”, the application instance deletes the service instance from the list of available service instances. When a service instance changes from an “unavailable” state to an “available” state, the application instance adds the service instance to the list of available service instances.
Further, Embodiment 2 provides a service notification method between different mobile edge hosts, that is, a procedure about how an application instance in a mobile edge host discovers a service in another mobile edge host. Details are as follows:
Referring to
601. Another application instance sends a service availability event subscription request to the first mobile edge platform, and the second application instance sends a service availability event subscription request to the second mobile edge platform. The subscription request carries a filter condition for a subscription event. The filter condition may be a service instance identifier, a service name, a service type, a service status, a service location constraint identifier, or a combination of these attributes. The location constraint identifier indicates whether an application instance subscribes to availability of only a service instance running on a local host, or subscribes to availability of all service instances (including a service instance running on another mobile edge host).
602. The first mobile edge platform and the second mobile edge platform each send a response message, to indicate that the subscription request is accepted.
603. Optionally, the second mobile edge platform sends a service availability event subscription request to the first mobile edge platform. The subscription request carries a filter condition for a subscription event. The filter condition may be a service instance identifier, a service name, a service type, a service status, a service location constraint identifier, or a combination of these attributes. The location constraint identifier indicates that availability of only a service instance running on the first mobile edge host is subscribed to.
604. Optionally, the first mobile edge platform sends a response message to the second mobile edge platform, to indicate that the subscription request is accepted.
If there is no service availability event subscription request and response process between the second mobile edge platform and the first mobile edge platform in step 603 and step 604, another manner such as the following configuration manner may be used: A specific mobile edge platform to which a notification message needs to be sent when a service is registered or when service availability changes may be configured on the first mobile edge platform.
605. After a service instance provided by the first application instance is deployed and is available for the first time, the first application instance sends a service registration message to the first mobile edge platform, to register the service instance, and provide a service. The registration message carries a service name, a service type, a service version, and transmission information used by the service. In addition, the registration message carries a service use indication identifier, and the indication identifier indicates whether the service instance can only be used by an application on the mobile edge host. In this embodiment, the indication identifier indicates that the service can be used by an application instance on another mobile edge host.
606. The first mobile edge platform registers the service instance with a service registration and discovery function, and stores the indication identifier indicating whether the service instance can only be used by the application on the mobile edge host. The identifier indicating whether the service instance can only be used by the application on the mobile edge host may be alternatively described in a descriptor of an application providing the service, is delivered by a mobile edge platform manager to the first mobile edge platform in an application instantiation process, and is stored by the first mobile edge platform.
607. The first mobile edge platform identifies an application instance that subscribes to a service status, where the application instance is the another application instance in this embodiment.
608. The first mobile edge platform sends a service availability notification to the another application instance, to indicate that a new service instance is available.
609. The another application instance sends a response message to the first mobile edge platform.
610. The first mobile edge platform determines, based on the indication identifier in the foregoing step, whether the service instance can be used by the application instance on the another mobile edge host. If the service instance can be used by the application instance on the another mobile edge host, the first mobile edge platform identifies a related mobile edge platform that subscribes to the service status, and the mobile edge platform identified in this embodiment is the second mobile edge platform.
611. The first mobile edge platform sends a service availability notification to the second mobile edge platform, to indicate that the service instance is available. The notification may carry an identifier, to indicate that a location of the service instance is “non-local”, in other words, the service instance is not from the second mobile edge host.
612. The second mobile edge platform registers the service instance, identifies the location of the service instance as “non-local”, and sends a service notification to a local application instance that is capable of using a non-local service and that subscribes to the service status.
613. The second mobile edge platform sends a response message to the first mobile edge platform.
614. The second mobile edge platform sends a service availability notification to the second application instance, to indicate that the new service instance is available. In this embodiment, the second application instance is the application instance that is located on the second mobile edge host and that meets a condition of subscribing to the service status and being capable of using the non-local service in step 612.
615. The second application instance sends a response message to the second mobile edge platform.
616. Optionally, the another application instance located on the first mobile edge host may subsequently send a service availability query request to the first mobile edge platform. The query request includes a service location constraint identifier. The location constraint identifier indicates whether the another application instance queries only the service instance running on the local host.
617. The first mobile edge platform sends a response message to the another application instance, where the response message includes information about the new service instance. If the location constraint identifier in the previous step indicates that the another application instance queries only the service instance running on the local host, the response message includes information about only a service instance running on the first mobile edge host. If the location constraint identifier in the previous step indicates that the another application instance queries all service instances, the response message includes both information about a service instance running on the first mobile edge host and information about a service instance running on another mobile edge host (such as the second mobile edge host). The information about the service instance includes one or more of the following information: the service name, the service version, the service type, the service status, the transmission information used by the service, the identifier indicating whether the service instance can only be used by the application on the mobile edge host, and an identifier indicating whether the service instance runs on a same mobile edge host as the application instance that subscribes to the service status.
618. Optionally, the second application instance may subsequently send a service availability query request to the second mobile edge platform. The query request includes a service location constraint identifier. The location constraint identifier indicates whether the second application instance queries only the service instance running on the local host.
619. The second mobile edge platform sends a response message to the second application instance. If the location constraint identifier in step 618 indicates that the second application instance queries only the service instance running on the local host, the response message does not include information about any service instance. If the location constraint identifier in step 618 indicates that the second application instance queries service instances located on all mobile edge hosts, the response message includes the information about the service instance in the foregoing step. The information about the service instance includes one or more of the following information: the service name, the service version, the service type, the service status, the transmission information used by the service, the identifier indicating whether the service instance can only be used by the application on the mobile edge host, and the identifier indicating whether the service instance runs on a same mobile edge host as the application instance that subscribes to a service status.
If availability of the service of the first application instance is updated subsequently, the first application instance sends a service update message to the first mobile edge platform. Similar to the foregoing registration procedure, the first mobile edge platform receives the service update message, sends a service update notification message to the second mobile edge platform on the second mobile edge host, and sends a service update notification message to another application instance that is located on the first mobile edge host and that subscribes to service availability.
After receiving the service availability notification or a service query response message, the another application instance and the second application instance select a service instance from a list of available service instances to initiate invoking. When discovering that a service instance is “unavailable”, the application instance deletes the service instance from the list of available service instances. When a service instance changes from an “unavailable” state to an “available” state, the application instance adds the service instance to the list of available service instances.
In addition, the steps described in Embodiment 2 are applicable to both the full mesh manner and the hierarchy registration manner. If the hierarchy registration manner is used, messages sent by the first mobile edge platform and the second mobile edge platform to each other are forwarded by using a central service registration and discovery function. In this manner, interconnection between every two of different mobile edge hosts in the full mesh manner can be avoided, so that connection complexity can be reduced.
According to the methods provided in the foregoing embodiments, an application instance on a mobile edge host can not only discover and use a service on the mobile edge host on which the application instance is located, but also can discover and use a service on another mobile edge host. For example, the second application instance on the second mobile edge host in the foregoing embodiment can discover the service provided by the first application instance located on the first mobile edge host. Therefore, even if the service on the current mobile edge host is faulty, the service on the another mobile edge host can be used, thereby ensuring normal running of an application on the current mobile edge host. In addition, a service instance may not necessarily be deployed on each edge host, so that different mobile edge hosts share resources, thereby saving resources.
Mainly, the first application instance is configured to send a service registration message to the first mobile edge platform, where the service registration message carries a service use indication identifier, and the indication identifier indicates whether the service can be used by an application instance on another mobile edge host.
The first mobile edge platform is configured to send a service notification message to another application instance that is located on the mobile edge host and that subscribes to service availability.
The first mobile edge platform determines, based on the indication identifier, whether to send a service notification message to a mobile edge platform on the another mobile edge host. When the indication identifier indicates that the service cannot be used by the application instance on the another mobile edge host, the first mobile edge platform determines, based on the indication identifier, not to send the service notification message to the mobile edge platform on the another mobile edge host. When the indication identifier indicates that the service can be used by the application instance on the another mobile edge host, the first mobile edge platform determines, based on the indication identifier, to send the service notification message to the mobile edge platform on the another mobile edge host. However, a precondition for sending is that the another mobile edge host has previously sent a service availability subscription message to the first mobile edge platform or that a notification message needs to be sent to the mobile edge platform on the another mobile edge host when the service is registered or a status change is configured on the first mobile edge platform.
Referring to
The first mobile edge host includes a first mobile edge platform and a first application instance, and the second mobile edge host includes a second mobile edge platform.
The first mobile edge platform is configured to receive a service registration message from the first application instance.
The first mobile edge platform sends a service notification message to the second mobile edge platform.
Specifically, the service registration message carries a service use indication identifier, and the indication identifier indicates that a service can be used by an application instance on another mobile edge host. The first mobile edge platform is configured to send the service notification message to the second mobile edge platform based on the identifier.
Further, before the first mobile edge platform receives the service registration message from the first application instance, the first mobile edge platform is configured to receive a service availability subscription message sent by the second mobile edge platform to the first mobile edge platform, or the first mobile edge platform preconfigures the second mobile edge platform as an object for receiving the service notification message.
The processor 91 may include one or more processing units. The processing unit may be a central processing unit (English: central processing unit, CPU), a network processor (English: network processor, NP), or the like.
The communications interface 94 is configured to be connected to and exchange information with another communications device, including receiving and sending a corresponding message. The mobile edge host 90 may further include the memory 93, and the processor 91 may be connected to the memory 93 and the communications interface 94 by using a bus. The memory 93 may be configured to store a software program, and the software program may be executed by the processor 91, to implement the steps of the methods in the embodiments shown in
Optionally, the mobile edge host 90 may further include an output device 95 and an input device 97. The output device 95 and the input device 97 are connected to the processor 91. The output device 95 may be a display configured to display information, a power amplifier device configured to play a sound, a printer, or the like. The output device 95 may further include an output controller, configured to provide output to the display, the power amplifier device, or the printer. The input device 97 may be a device used by a user to enter information, for example, a mouse, a keyboard, an electronic stylus, or a touch panel. The input device 97 may further include an input controller, configured to receive and process input from the device, for example, the mouse, the keyboard, the electronic stylus, or the touch panel.
A person of ordinary skill in the art may understand that all or some of steps performed by the processor in the foregoing embodiment may be implemented by using hardware or an instruction controlling related hardware. The instruction may be stored in a computer readable storage medium. The computer readable storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like. In addition, an embodiment of the present invention further provides a computer program product and a storage medium that stores the foregoing computer program. The computer program product includes program code stored in the computer readable storage medium, and the program code is loaded by the processor to implement the foregoing methods.
The foregoing descriptions are merely one or more specific implementations that can implement the present invention. However, the protection scope of the claims is not limited to the foregoing embodiments. Any modification, equivalent replacement, or improvement made based on the technical solutions of the present invention shall fall within the protection scope of the present invention.
Patent | Priority | Assignee | Title |
Patent | Priority | Assignee | Title |
10299239, | Nov 30 2015 | HONOR DEVICE CO , LTD | Capability exposure implementation method and system, and related device |
10419983, | Oct 21 2015 | HUAWEI TECHNOLOGIES CO , LTD | MEC platform handover method, apparatus, and system |
10440096, | Dec 28 2016 | Intel Corporation | Application computation offloading for mobile edge computing |
10440559, | Oct 25 2017 | FUTUREWEI TECHNOLOGIES, INC | Private mobile edge computing data center in a telecommunication network |
10470150, | Nov 30 2015 | HONOR DEVICE CO , LTD | Capability exposure implementation method and system, and related device |
10567291, | Nov 22 2017 | Intel Corporation | Multi-access edge computing (MEC) service provision based on local cost measurements |
10693950, | Sep 05 2017 | Industrial Technology Research Institute | Control method for network communication system including base station network management server and multi-access edge computing ecosystem device |
10771569, | Dec 13 2019 | Industrial Technology Research Institute | Network communication control method of multiple edge clouds and edge computing system |
10827329, | Feb 26 2020 | AT&T MOBILITY II LLC; AT&T Intellectual Property I, L.P. | Facilitation of dynamic edge computations for 6G or other next generation network |
10873886, | Nov 30 2015 | HUAWEI TECHNOLOGIES CO , LTD | Mobile edge platform switching method, apparatus, and system |
10887801, | Jun 30 2017 | BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.; BEIJING XIAOMI MOBILE SOFTWARE CO , LTD | Method for implementing edge computing of network and device thereof |
10938736, | Oct 18 2017 | FUTUREWEI TECHNOLOGIES, INC | Dynamic allocation of edge computing resources in edge computing centers |
10972575, | Jun 02 2017 | HUAWEI TECHNOLOGIES CO , LTD | Method and system for supporting edge computing |
20160366244, | |||
20170118311, | |||
20170251368, | |||
20190124496, | |||
20200351637, | |||
20210211914, | |||
CN106231607, | |||
CN106254408, | |||
CN106358245, | |||
WO2007022685, | |||
WO2017091934, | |||
WO2017091960, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
May 20 2020 | Huawei Technologies Co., Ltd. | (assignment on the face of the patent) | / | |||
Jul 21 2020 | FENG, JIANGPING | HUAWEI TECHNOLOGIES CO , LTD | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 058229 | /0408 |
Date | Maintenance Fee Events |
Date | Maintenance Schedule |
Mar 29 2025 | 4 years fee payment window open |
Sep 29 2025 | 6 months grace period start (w surcharge) |
Mar 29 2026 | patent expiry (for year 4) |
Mar 29 2028 | 2 years to revive unintentionally abandoned end. (for year 4) |
Mar 29 2029 | 8 years fee payment window open |
Sep 29 2029 | 6 months grace period start (w surcharge) |
Mar 29 2030 | patent expiry (for year 8) |
Mar 29 2032 | 2 years to revive unintentionally abandoned end. (for year 8) |
Mar 29 2033 | 12 years fee payment window open |
Sep 29 2033 | 6 months grace period start (w surcharge) |
Mar 29 2034 | patent expiry (for year 12) |
Mar 29 2036 | 2 years to revive unintentionally abandoned end. (for year 12) |