A communication method, device and system

By obtaining and transmitting the migration completion time of each application server and selecting the target server with the shortest migration time, the interruption problem during the migration of edge application servers is solved and service continuity and user experience are improved.

CN115190169BActive Publication Date: 2024-08-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110369739.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-02
Publication Date
2024-08-27
Estimated Expiration
2041-04-02

AI Technical Summary

Technical Problem

During the migration process of edge application servers, application services are temporarily suspended or interrupted, affecting business continuity and user experience. It is also difficult to select the optimal target edge application server to reduce the impact of migration.

Method used

By obtaining and transmitting the application context migration completion time of each application server to the terminal, it assists in selecting the target application server with the shortest migration time to reduce the impact of migration.

Benefits of technology

It effectively reduces the interruption time during application migration, improves service continuity and user experience, and ensures the stable operation of terminal applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115190169B
    Figure CN115190169B
Patent Text Reader

Abstract

The present application provides a communication method, device and system, which relates to the field of communication technology. The method is used to refer to the migration completion time of the application context of each first application server for the terminal when selecting a target application server for the terminal, so that the selected target application server can better provide services for the terminal. The scheme includes: a first network element obtains the migration completion time of the application context of the terminal for each first application server in one or more first application servers associated with the first network element; the application context is information about the first application for the terminal on the second application server, and the second application server is the server currently providing services for the terminal; the first network element sends the migration completion time of the application context of each first application server for the terminal to the second network element, and the migration completion time of the application context is used to determine the target application server that provides services for the terminal in one or more first application servers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method, device and system. Background Art

[0002] During the operation of edge applications, when the terminal moves, such as terminal movement between edge data networks (EDN) and terminal movement between local area data networks (LADN), the edge application server currently providing services may not be able to continue to provide services for the currently running applications, or the edge application server currently providing services is no longer the optimal application server that can provide services for the terminal. Other edge application servers may be more suitable for serving the application client on the terminal. Therefore, a new edge application server (called the target edge application server, T-EAS) is needed to replace the edge application server currently providing services (called the source edge application server, S-EAS) to provide services for the terminal. During this process, the relevant application context needs to be migrated from S-EAS to T-EAS, which will cause the application service to be temporarily suspended or interrupted, thereby affecting business continuity and user experience.

[0003] In order to minimize the impact of the selected new EAS on the interruption of the above-mentioned application operation and thus provide better services to the terminal, how to select the target edge application server is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The embodiment of the present application provides a communication method, device and system, which is used to refer to the migration completion time of the application context of each first application server for the terminal when selecting a target application server for the terminal, so that the selected target application server can better provide services for the terminal.

[0005] To achieve the above objectives, the present application provides the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a communication method, the method comprising: a first network element obtains a migration completion time of an application context of a terminal for each first application server among one or more first application servers associated with the first network element. The first network element sends a migration completion time of an application context of the terminal for each first application server to a second network element. The application context is information about a first application for the terminal on a second application server currently providing services to the terminal. The migration completion time of the application context of the terminal for each first application server is used to determine a target application server among one or more first application servers providing services to the terminal.

[0007] The embodiment of the present application provides a communication method. In the process of replacing the application server providing services for the terminal from the second application server to the target application server, the application context of the terminal on the second application server needs to be migrated to the target application server. Although one or more first application servers can provide services for the terminal, the migration completion time required for the application context to be migrated to each first application server is different. During the application context migration process, the application service of the terminal will be temporarily suspended or interrupted. Therefore, the migration completion time will affect the operation of the first application of the terminal. Based on this, in the embodiment of the present application, the first network element obtains the migration completion time of the application context of each first application server for the terminal. Then, the first network element provides the migration completion time of the application context of each first application server for the terminal to the second network element. In this way, the second network element can be assisted in selecting the target application server from one or more first application servers according to the migration completion time of the application context of each first application server for the terminal, so as to minimize the impact of the migration completion time on the interruption of the application operation, so that the selected target application server can better provide services for the terminal.

[0008] In a possible implementation of the present application, the first network element obtains the migration completion time of the application context of the terminal from each of the one or more first application servers associated with the first network element, including: the first network element obtains the migration completion time of the application context of the terminal from each of the first application servers. In this solution, the first application servers calculate the migration completion time of their respective application contexts for the terminal, thereby reducing the processing burden of the first network element.

[0009] In a possible implementation of the present application, before the first network element obtains the migration completion time of the application context of each first application server for the terminal from each first application server, the method provided in the embodiment of the present application further includes: the first network element sends a first request message for requesting the migration completion time of the application context of the terminal from the first application server to each first application server, so that the first application server provides the migration completion time of the application context of the terminal to the first network element based on the request from the first network element.

[0010] In a possible implementation of the present application, the method provided in the embodiment of the present application further includes: the first network element sends one or more of the second relevant information of the second application server and the size of the application context to each first application server. The second relevant information includes one or more of the location information, load information or network status of the second application server. By providing the first application server with information for calculating the migration completion time (for example, one or more of the second relevant information of the second application server and the size of the application context), the process of the first application server obtaining the information by itself is avoided.

[0011] It is worth noting that the first relevant information / second relevant information involved in the embodiment of the present application includes any information that affects the determination of the migration completion time of the application context of the migration terminal, and is not limited to one or more of location information, load information or network conditions. This application only takes location information, load information or network conditions as an example.

[0012] Optionally, the first request message includes one or more items of the second related information of the second application server and the size of the application context, which can reduce signaling overhead.

[0013] Optionally, when the first network element does not provide the first application server with one or more of the second relevant information of the second application server and the size of the application context, the first application server may obtain one or more of the second relevant information of the second application server and the size of the application context by itself in order to calculate the migration completion time. For example, the first application server may obtain one or more of the second relevant information of the second application server and the size of the application context from the first enabling server or the second application server. Then, the first request message may include one or more of the identifier of the first enabling server and the identifier of the second application server. It is worth noting that, when the first network element is the second enabling server, it indicates that the enabling server providing services for the terminal has been replaced. At this time, the first request message carries one or more of the identifier of the first enabling server and the identifier of the second application server. When the first network element is the third enabling server, it indicates that the enabling server providing services for the terminal has not been replaced. Then, the first request message carries the identifier of the second application server. The first enabling server is an enabling server that provides services for the terminal before the enabling server is replaced. The first enabling server is associated with the second application server. The second enabling server is an enabling server that provides services for the terminal after the replacement. The third enabling server is an enabling server that currently provides services to the terminal.

[0014] In a possible implementation of the present application, the first network element obtains the migration completion time of the application context of the terminal for each of the one or more first application servers associated with the first network element, including: the first network element receives the migration completion time of the application context of the terminal for each first application server from a third network element. The third network element is a data analysis network element or an edge configuration server or a policy control network element. The third network element calculates the migration completion time of the application context of the terminal for each first application server, thereby reducing the processing burden of the first network element.

[0015] In a possible implementation manner of the present application, the method provided by the embodiment of the present application also includes: the first network element sends a second request message to the third network element for requesting each first application server for the migration completion time of the application context of the terminal.

[0016] In a possible implementation of the present application, the method provided in the embodiment of the present application further includes: the first network element sends one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context to the third network element. The first relevant information includes one or more of the location information, load information, or network status of the first application server. The second relevant information includes one or more of the location information, load information, or network status of the second application server. This avoids the third network element from collecting information on its own.

[0017] In a possible implementation of the present application, one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context are carried in the second request message, which can reduce signaling overhead.

[0018] It is worth noting that, in the case where the first network element does not provide one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context to the third network element, the third network element can obtain the first relevant information of each first application server from each first application server according to the identifier of each first application server provided by the first network element in the second request message, or obtain one or more of the second relevant information of the second application server and the size of the application context from the first enabling server or the second application server. Then the second request message may include one or more of the identifier of each first application server, the identifier of the first enabling server, and the identifier of the second application server.

[0019] In a possible implementation manner of the present application, the method provided in the embodiment of the present application also includes: the first network element obtains one or more of the second relevant information of the second application server and the size of the application context.

[0020] In a possible implementation manner of the present application, the method provided in the embodiment of the present application also includes: the first network element obtains first relevant information of each first application server.

[0021] In a possible implementation of the present application, the first network element obtains the migration completion time of the application context of the terminal for each first application server among one or more first application servers associated with the first network element, including: the first network element obtains one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context. The first network element determines the migration completion time of the application context of the terminal for each first application server based on one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context. This solution can enable the first network element to calculate the migration completion time of the application context of the terminal for each first application server based on the acquired information.

[0022] In a possible implementation of the present application, the first network element obtains one or more of the second relevant information of the second application server and the size of the application context, including: the first network element receives one or more of the second relevant information of the second application server and the size of the application context from the second application server and / or the first enabling server. The first enabling server is associated with the second application server.

[0023] In a possible implementation of the present application, before the first network element receives one or more of the second relevant information of the second application server and the size of the application context from the second application server and / or the first enabling server, the method provided by the embodiment of the present application also includes: the first network element sends a third request message to the second application server and / or the first enabling server for requesting one or more of the second relevant information of the second application server and the size of the application context.

[0024] In a possible implementation of the present application, the first network element obtains the first relevant information of each first application server, including: the first network element sends a fourth request message for requesting the first relevant information of the first application server to each first application server. The first network element receives the first relevant information of each first application server.

[0025] In a possible implementation of the present application, when the first network element is a second enabling server, the method provided in the embodiment of the present application further includes: the first network element receives an identifier of the first enabling server from the second network element, and the first enabling server is associated with the second application server.

[0026] In a possible implementation of the present application, the first network element is a third enabling server, or a second enabling server, and the second network element is an edge enabling client (Edge Enabler Client, EEC) or a second application server. Specifically, in a scenario where an enabling server is replaced, the first network element may be, for example, a second enabling server, and the second network element may be an EEC. At this time, the first enabling server is an enabling server that provides a server for the terminal before the enabling server is replaced. The second enabling server is an enabling server that provides services to the terminal after the replacement. In a scenario where the enabling server is not replaced for the terminal, the first network element is the third enabling server, and the second network element is the EEC, and the third enabling server is the enabling server currently accessed by the terminal. Alternatively, in a scenario where an enabling server is replaced for the terminal, the first network element may be, for example, a first enabling server, and the second network element may be a second application server.

[0027] In a second aspect, an embodiment of the present application provides a communication method, including: a first network element obtains second information. The second information includes one or more of the first relevant information of each first application server among one or more first application servers associated with the first network element, the second relevant information of the second application server, and the size of the application context. Among them, the application context is information about the first application for the terminal on the second application server currently providing services to the terminal. The second relevant information includes one or more of the location information, load information, or network status of the second application server. The first relevant information includes one or more of the location information, load information, or network status of the first application server. The first network element sends the second information to the second network element, and the second information is used to determine the target application server among the one or more first application servers that provides services to the terminal.

[0028] The embodiment of the present application provides a communication method. In the process of replacing the application server providing services for a terminal from a second application server to a target application server, it is necessary to migrate the application context of the terminal on the second application server to the target application server. Although one or more first application servers can provide services for the terminal, the migration completion time required for the application context to be migrated to each first application server is different. Since the application service of the terminal will be temporarily suspended or interrupted during the application context migration process, the migration completion time will affect the operation of the first application of the terminal. Based on this, the first network element obtains the second information and provides the second information to the second network element. Since the second information includes one or more of the first relevant information of each first application server in the one or more first application servers associated with the first network element, the second relevant information of the second application server, and the size of the application context. The content contained in the second information can be used to determine the migration completion time of the application context of each first application server for the terminal. Therefore, after the first network element provides the second information to the second network element, it is convenient for the second network element to determine the target application server providing services for the terminal from the one or more first application servers according to the second information.

[0029] In a possible implementation of the present application, the first network element obtains one or more of the second relevant information of the second application server and the size of the application context, including: the first network element receives one or more of the second relevant information of the second application server from the second application server or the first enabling server, and the first enabling server is associated with the second application server.

[0030] In a possible implementation of the present application, the method provided in the embodiment of the present application further includes: the first network element sends a third request message to the second application server or the first enabling server. The third request message is used to request one or more of the second related information and the size of the application context of the second application server.

[0031] In a possible implementation of the present application, the first network element obtains the first relevant information of each first application server, including: the first network element sends a fourth request message to each first application server. The fourth request message is used to request the first relevant information of the first application server. The first network element receives the first relevant information of each first application server.

[0032] In a possible implementation manner of the present application, the method provided in the embodiment of the present application further includes: the first network element receives identification information of a first enabling server from the second network element. The first enabling server is associated with the second application server.

[0033] In a possible implementation of the present application, before the first network element obtains the first relevant information of each first application server, the method provided by the embodiment of the present application also includes: the first network element receives a fifth request message sent from the first enabling server, and the fifth request message is used to request the first relevant information of at least one second application server associated with the first network element.

[0034] In a possible implementation manner of the present application, the fifth request message includes first indication information, where the first indication information is used to instruct the first network element to provide first relevant information of each second application server associated with the first network element.

[0035] In a third aspect, an embodiment of the present application provides a communication method, the method comprising: a second network element receives a migration completion time of an application context of a terminal from each of one or more first application servers of a first network element. The second network element determines a target application server for providing a service to the terminal from the one or more first application servers according to the migration completion time of the application context of the terminal from each of the first application servers.

[0036] In a possible implementation of the present application, before the second network element receives the migration completion time of each of the one or more first application servers of the first network element for the application context of the terminal, the method provided in the embodiment of the present application further includes: the second network element sends an identifier of the first enabling server to the first network element, and the first enabling server is associated with the second application server. In this way, the first network element can determine the enabling server that previously provided services to the terminal.

[0037] In a fourth aspect, an embodiment of the present application provides a communication method, the method comprising: a second network element receives second information from a first network element, wherein the second information comprises one or more of first relevant information of each first application server in one or more first application servers, second relevant information of the second application server, and the size of an application context. The application context is information on a first application for a terminal provided by a second application server, and the second application server is an application server currently providing services to the terminal; the second relevant information comprises one or more of location information, load information, or network status of the second application server; the first relevant information comprises one or more of location information, load information, or network status of the first application server; the second network element determines a target application server from one or more first application servers based on the second information, and the target application server is used to provide services to the terminal.

[0038] In a possible implementation of the present application, before the second network element receives the second information, the method provided in the embodiment of the present application further includes: the second network element sends identification information of the first enabling server to the first network element. The first enabling server is associated with the second application server.

[0039] In a possible implementation of the present application, the second network element determines the target application server from one or more first application servers according to the second information, including: the second network element determines the migration completion time of the application context of the terminal for each first application server according to the second information. The second network element determines the target application server from one or more first application servers according to the migration completion time of the application context of the terminal for each first application server.

[0040] In a fifth aspect, an embodiment of the present application provides a communication method, including: a first application server determines a migration completion time of an application context of a terminal by the first application server, where the application context is information of a first application for the terminal on a second application server currently providing services to the terminal; the first application server sends the migration completion time of the application context of the terminal by the first application server to a first network element.

[0041] In a possible implementation of the present application, the first application server determines the migration completion time of the application context of the terminal by the first application server, including: the first application server obtains one or more of the second relevant information of the second application server and the size of the application context. The first application server determines the migration completion time of the application context of the terminal by the first application server according to one or more of the first relevant information of the first application server, the second relevant information of the second application server, and the size of the application context.

[0042] In a possible implementation of the present application, before the first application server determines the completion time of the migration of the application context of the terminal by the first application server, the method provided in the embodiment of the present application may further include: the first application server receives a first request message from the first network element. The first request message is used to request the first application server to complete the migration of the application context of the terminal.

[0043] In a possible implementation of the present application, the first application server obtains one or more of the second relevant information of the second application server and the size of the application context, including: the first application server obtains one or more of the second relevant information of the second application server and the size of the application context from the first network element or the second application server or the first enabling server. For example, the first application server can obtain the identification information of the second application server or the first enabling server from the first network element. For example, the first request message carries the identification of the second application server or the identification of the first enabling server. Specifically, in the scenario of replacing the enabling server for the terminal, the first request message carries the identification of the second application server and / or the identification of the first enabling server. In the scenario of replacing the enabling server for the terminal, the first request message carries the identification of the second application server, and the first network element is the third enabling server.

[0044] In a possible implementation of the present application, the first application server obtains one or more of the second relevant information of the second application server and the size of the application context from the first network element or the second application server or the first enabling server, including: the first application server receives one or more of the second relevant information of the second application server and the size of the application context from the first network element or the second application server or the first enabling server. This information can be actively sent to the first application server by the first network element or the second application server or the first enabling server, or can be sent to the first application server based on the triggering of the first application server.

[0045] In a possible implementation of the present application, the first application server receives one or more of the second relevant information and the size of the application context from the first network element, specifically, the first request message includes one or more of the second relevant information of the second application server and the size of the application context.

[0046] In a possible implementation of the present application, the first application server receives one or more of the second relevant information of the second application server and the size of the application context from the second application server or the first enabling server, and the first application server may also send a request message to the second application server or the first enabling server to request one or more of the second relevant information of the second application server and the size of the application context.

[0047] In a sixth aspect, an embodiment of the present application provides a communication method, including: a third network element determines a migration completion time of an application context of a terminal for each first application server among one or more first application servers, where the application context is information about a first application for the terminal on a second application server currently providing services to the terminal. The third network element sends the migration completion time of the application context of the terminal for each first application server to the first network element.

[0048] In a possible implementation of the present application, the third network element determines the migration completion time of the application context of the terminal for each of the one or more first application servers, including: the third network element obtains the first relevant information of each first application server, and / or the third network element obtains one or more of the second relevant information of the second application server and the size of the application context. The third network element determines the migration completion time of the application context of each first application server for the terminal based on one or more of the following information: the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context.

[0049] In a possible implementation of the present application, before the third network element determines the completion time of the migration of the application context of the terminal for each of the one or more first application servers, the method provided by the embodiment of the present application also includes: the third network element receives one or more of the first relevant information of each first application server of the first network element, the second relevant information of the second application server, and the size of the application context. The first relevant information includes one or more of the location information, load information, or network status of the first application server. The second relevant information includes one or more of the location information, load information, or network status of the second application server. This avoids the third network element from collecting information on its own.

[0050] In a possible implementation of the present application, before the third network element determines the migration completion time of the application context of the terminal for each of the one or more first application servers, the method provided in the embodiment of the present application further includes: the third network element receives a second request message from the first network element, and the second request message is used to request the migration completion time of the application context of the terminal for each of the one or more first application servers. For example, the second request message carries one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context.

[0051] It is worth noting that, in addition to obtaining one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context from the first network element, the third network element can also collect the first relevant information of each first application server from each first application server, and in this case, the first network element can provide the identifier of each first application server to the third network element. The third network element can also obtain one or more of the second relevant information of the second application server and the size of the application context from the second application server or the first enabling server, and in this case, the third network element can obtain the identifier of the second application server or the identifier of the first enabling server from the first network element, and this is not limited in the embodiments of the present application.

[0052] In a seventh aspect, an embodiment of the present application provides a communication device, which can implement the method in the first aspect or any possible implementation of the first aspect, and thus can also achieve the beneficial effects in the first aspect or any possible implementation of the first aspect. The communication device can be a first network element, or a device that supports the first network element to implement the method in the first aspect or any possible implementation of the first aspect, such as a chip applied to the first network element. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0053] In one example, an embodiment of the present application provides a communication device, which includes: a communication unit and a processing unit, wherein the processing unit is used to process information. For example, the processing unit is used to obtain the migration completion time of the application context of the terminal for each first application server in one or more first application servers associated with the first network element. The communication unit sends the migration completion time of the application context of the terminal for each first application server to the second network element. The application context is information about the first application for the terminal on the second application server currently providing services to the terminal. The migration completion time of the application context of the terminal by each first application server is used to determine the target application server that provides services to the terminal among one or more first application servers.

[0054] In a possible implementation of the present application, the processing unit is configured to obtain, from each first application server through the communication unit, a migration completion time of the application context of the terminal of each first application server.

[0055] In a possible implementation of the present application, the communication unit is configured to send, to each first application server, a first request message for requesting the first application server to complete migration of an application context of the terminal.

[0056] In a possible implementation of the present application, the communication unit is used to send one or more of the second related information of the second application server and the size of the application context to each first application server. The second related information includes one or more of the location information, load information or network status of the second application server.

[0057] Optionally, the first request message includes one or more items of the second related information of the second application server and the size of the application context, which can reduce signaling overhead.

[0058] Optionally, when the first network element does not provide the first application server with one or more of the second relevant information of the second application server and the size of the application context, the first application server may obtain one or more of the second relevant information of the second application server and the size of the application context by itself in order to calculate the migration completion time. For example, the first application server may obtain one or more of the second relevant information of the second application server and the size of the application context from the first enabling server or the second application server. Then, the first request message may include one or more of the identifier of the first enabling server and the identifier of the second application server. It is worth noting that, when the first network element is the second enabling server, it indicates that the enabling server providing services to the terminal is changed from the first enabling server to the second enabling server. At this time, the first request message carries one or more of the identifier of the first enabling server and the identifier of the second application server. When the first network element is the third enabling server, it indicates that the enabling server providing services to the terminal has not been replaced, and the first request message carries the identifier of the second application server. The first enabling server is an enabling server that provides services to the terminal before the replacement, and the first enabling server is associated with the second application server. The second enabling server is an enabling server that provides services to the terminal after the enabling server is replaced. The third enabling server is an enabling server that currently provides services to the terminal.

[0059] In a possible implementation of the present application, the processing unit is configured to receive, through the communication unit, a migration completion time of the application context of the terminal from each first application server of the third network element, wherein the third network element is a data analysis network element, an edge configuration server, or a policy control network element.

[0060] In a possible implementation of the present application, the communication unit is further configured to send a second request message to the third network element for requesting each first application server to complete the migration of the application context of the terminal.

[0061] In a possible implementation of the present application, the communication unit is further configured for the first network element to send one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context to the third network element. The first relevant information includes one or more of the location information, load information, or network status of the first application server.

[0062] In a possible implementation of the present application, one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context are carried in the second request message, which can reduce signaling overhead.

[0063] It is worth noting that, in the case where the first network element does not provide one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context to the third network element, the third network element can obtain the first relevant information of each first application server from each first application server according to the identifier of each first application server provided by the first network element in the second request message, or obtain one or more of the second relevant information of the second application server and the size of the application context from the first enabling server or the second application server. Then the second request message may include one or more of the identifier of each first application server, the identifier of the first enabling server, and the identifier of the second application server.

[0064] In a possible implementation of the present application, the communication unit is further configured to obtain one or more items of second related information of the second application server and a size of the application context.

[0065] In a possible implementation manner of the present application, the communication unit is further configured to obtain first relevant information of each first application server.

[0066] In a possible implementation of the present application, the processing unit is used to obtain, through the communication unit, one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context. The processing unit is used to determine the migration completion time of the application context of each first application server for the terminal according to one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context.

[0067] In a possible implementation of the present application, the communication unit is specifically configured to receive one or more of the second related information of the second application server and the size of the application context from the second application server and / or the first enabling server. The first enabling server is associated with the second application server.

[0068] In a possible implementation of the present application, the communication unit is further configured to send a third request message to the second application server and / or the first enabling server for requesting one or more of the second related information of the second application server and the size of the application context.

[0069] In a possible implementation of the present application, the communication unit is further configured to send a fourth request message for requesting first related information of the first application server to each first application server. The first network element receives the first related information of each first application server.

[0070] In a possible implementation of the present application, when the first network element is a second enabling server, the communication unit is further used for the first network element to receive an identifier of the first enabling server from the second network element, and the first enabling server is associated with the second application server.

[0071] In a possible implementation of the present application, the first network element is a third enabling server, or a second enabling server, and the second network element is an edge enabling client (Edge Enabler Client, EEC) or a second application server. Specifically, in a scenario where the enabling server providing services to the terminal is replaced, the first network element may be, for example, the second enabling server, and the second network element may be the EEC. At this time, the first enabling server is the enabling server that provides services to the terminal before the replacement. The second enabling server is the enabling server that provides services to the terminal after the replacement. In a scenario where the enabling server providing services to the terminal has not been replaced, the first network element is the third enabling server, and the second network element is the EEC, and the third enabling server is the enabling server currently accessed by the terminal. Alternatively, in a scenario where the enabling server providing services to the terminal is replaced, the first network element may be, for example, the first enabling server, and the second network element may be the second application server.

[0072] Exemplarily, when the communication device is a chip or a chip system in a first network element, the processing unit may be a processor, and the communication unit may be a communication interface. For example, the communication interface may be an input / output interface, a pin or a circuit, etc. The processing unit executes the instructions stored in the storage unit so that the first network element implements a communication method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), or it may be a storage unit in the first network element that is located outside the chip (for example, a read-only memory, a random access memory, etc.).

[0073] In an eighth aspect, an embodiment of the present application provides a communication device, which can implement the method in the second aspect or any possible implementation of the second aspect, and thus can also achieve the beneficial effects in the second aspect or any possible implementation of the second aspect. The communication device can be a first network element, or a device that supports the first network element to implement the method in the second aspect or any possible implementation of the second aspect, such as a chip applied to the first network element. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0074] In one example, an embodiment of the present application provides a communication device, which includes: a communication unit and a processing unit, wherein the processing unit is used to process information. The communication unit is used to obtain second information. The second information includes one or more of the first relevant information of each first application server in one or more first application servers associated with the first network element, the second relevant information of the second application server, and the size of the application context. The application context is information about the first application for the terminal on the second application server currently providing services to the terminal. The second relevant information includes one or more of the location information, load information, or network status of the second application server. The first relevant information includes one or more of the location information, load information, or network status of the first application server. The communication unit is also used to send second information to the second network element, and the second information is used to determine the target application server that provides services to the terminal among the one or more first application servers.

[0075] In a possible implementation of the present application, the first network element obtains one or more of the second relevant information of the second application server and the size of the application context, including: a communication unit, configured to obtain the second information, including: a communication unit, configured to receive one or more of the second relevant information of the second application server and the size of the application context from the second application server or the first enabling server. The first enabling server is associated with the second application server.

[0076] In a possible implementation of the present application, the communication unit is further configured to send a third request message to the second application server or the first enabling server. The third request message is used to request one or more of the second related information and the size of the application context of the second application server.

[0077] In a possible implementation of the present application, the communication unit is further configured to send a fourth request message to each first application server. The fourth request message is used to request the first related information of the first application server. The communication unit is configured to receive the first related information of each first application server.

[0078] In a possible implementation of the present application, the communication unit is further configured to receive identification information of a first enabling server from the second network element. The first enabling server is associated with the second application server.

[0079] In a possible implementation of the present application, the communication unit is further used to receive a fifth request message sent from the first enabling server, where the fifth request message is used to request first relevant information of at least one second application server associated with the first network element.

[0080] In a possible implementation manner of the present application, the fifth request message includes first indication information, where the first indication information is used to instruct the first network element to provide first relevant information of each second application server associated with the first network element.

[0081] Exemplarily, when the communication device is a chip or a chip system in a first network element, the processing unit may be a processor, and the communication unit may be a communication interface. For example, the communication interface may be an input / output interface, a pin or a circuit, etc. The processing unit executes the instructions stored in the storage unit so that the first network element implements a communication method described in the second aspect or any possible implementation of the second aspect. The storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), or it may be a storage unit in the first network element that is located outside the chip (for example, a read-only memory, a random access memory, etc.).

[0082] In a ninth aspect, an embodiment of the present application provides a communication device, which can implement the method in the third aspect or any possible implementation of the third aspect, and thus can also achieve the beneficial effects in the third aspect or any possible implementation of the third aspect. The communication device can be a second network element, or a device that supports the second network element to implement the method in the third aspect or any possible implementation of the third aspect, such as a chip applied to the second network element. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0083] In one example, an embodiment of the present application provides a communication device, the communication device comprising: a communication unit and a processing unit, wherein the processing unit is used to process information. The communication unit is used to receive the migration completion time of the application context of the terminal from each of the one or more first application servers of the first network element. The communication unit is used to determine, from the one or more first application servers, a target application server for providing services to the terminal based on the migration completion time of the application context of the terminal from each of the first application servers.

[0084] In a possible implementation manner of the present application, the communication unit is further configured to send identification information of a first enabling server to the first network element, where the first enabling server is associated with the second application server.

[0085] Exemplarily, when the communication device is a chip or a chip system in a second network element, the processing unit may be a processor, and the communication unit may be a communication interface. For example, the communication interface may be an input / output interface, a pin or a circuit, etc. The processing unit executes the instructions stored in the storage unit so that the second network element implements a communication method described in the third aspect or any possible implementation of the third aspect. The storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), or it may be a storage unit in the second network element that is located outside the chip (for example, a read-only memory, a random access memory, etc.).

[0086] In a tenth aspect, an embodiment of the present application provides a communication device, which can implement the method in the fourth aspect or any possible implementation of the fourth aspect, and thus can also achieve the beneficial effects in the fourth aspect or any possible implementation of the fourth aspect. The communication device can be a second network element, or a device that supports the second network element to implement the method in the fourth aspect or any possible implementation of the fourth aspect, such as a chip applied to the second network element. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0087] As an example, an embodiment of the present application provides a communication device, which includes: a communication unit and a processing unit, wherein the processing unit is used to process information. The communication unit is used to receive second information from a first network element, wherein the second information includes one or more of first relevant information of each first application server in one or more first application servers, second relevant information of the second application server, and the size of the application context. The application context is information about the first application for the terminal on the second application server, and the second application server is the application server currently providing services to the terminal; the second relevant information includes one or more of the location information, load information, or network status of the second application server; the first relevant information includes one or more of the location information, load information, or network status of the first application server; the processing unit is used to determine a target application server from one or more first application servers based on the second information, and the target application server is used to provide services to the terminal.

[0088] In a possible implementation of the present application, the communication unit is further configured to send identification information of the first enabling server to the first network element. The first enabling server is associated with the second application server.

[0089] In a possible implementation of the present application, the processing unit is used to determine, based on the second information, a migration completion time of the application context of each first application server for the terminal. The processing unit is used to determine a target application server from one or more first application servers based on the migration completion time of the application context of each first application server for the terminal.

[0090] Exemplarily, when the communication device is a chip or a chip system in a second network element, the processing unit may be a processor, and the communication unit may be a communication interface. For example, the communication interface may be an input / output interface, a pin or a circuit, etc. The processing unit executes the instructions stored in the storage unit so that the second network element implements a communication method described in the fourth aspect or any possible implementation of the fourth aspect. The storage unit may be a storage unit in the chip (for example, a register, a cache, etc.), or it may be a storage unit in the second network element that is located outside the chip (for example, a read-only memory, a random access memory, etc.).

[0091] In an eleventh aspect, an embodiment of the present application provides a communication device, which can implement the method in the fifth aspect or any possible implementation of the fifth aspect, and thus can also achieve the beneficial effects in the fifth aspect or any possible implementation of the fifth aspect. The communication device can be a first application server, or a device that supports the first application server to implement the method in the fifth aspect or any possible implementation of the fifth aspect, such as a chip applied to the first application server. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0092] In one example, an embodiment of the present application provides a communication device, the communication device comprising: a communication unit and a processing unit, wherein the processing unit is used to process information. The processing unit is used to determine the migration completion time of the application context of the terminal by the first application server, the application context being information of the first application of the terminal on the second application server currently providing services to the terminal. The communication unit is used to send the migration completion time of the application context of the terminal by the first application server to the first network element.

[0093] In a possible implementation of the present application, the communication unit is used to obtain one or more of the second relevant information of the second application server and the size of the application context. The processing unit is used to determine the migration completion time of the application context of the terminal by the first application server according to one or more of the first relevant information of the first application server, the second relevant information of the second application server, and the size of the application context.

[0094] In a possible implementation of the present application, the communication unit is further configured to receive a first request message from the first network element. The first request message is used to request the first application server to complete the migration of the application context of the terminal.

[0095] In a possible implementation of the present application, the communication unit is used to obtain one or more of the second relevant information of the second application server and the size of the application context from the first network element or the second application server or the first enabling server. For example, the first application server can obtain the identification information of the second application server or the first enabling server from the first network element. For example, the first request message carries the identification of the second application server or the identification of the first enabling server. Specifically, in a scenario where the enabling server providing services to the terminal is replaced, the first request message carries the identification of the second application server and / or the identification of the first enabling server. In a scenario where the enabling server providing services to the terminal has not been replaced, the first request message carries the identification of the second application server, and the first network element is the third enabling server.

[0096] In a possible implementation of the present application, the communication unit is used to receive one or more of the second related information of the second application server and the size of the application context from the first network element or the second application server or the first enabling server. The information may be actively sent to the first application server by the first network element or the second application server or the first enabling server, or may be sent to the first application server based on the triggering of the first application server.

[0097] In a possible implementation of the present application, the communication unit is used to receive one or more items of second related information and the size of an application context from a first network element, specifically, the first request message includes one or more items of second related information of a second application server and the size of an application context.

[0098] In a possible implementation of the present application, the communication unit is further configured to send a request message to the second application server or the first enabling server for requesting one or more of the second related information of the second application server and the size of the application context.

[0099] Exemplarily, when the communication device is a chip or a chip system in the first application server, the processing unit may be a processor, and the communication unit may be a communication interface. For example, the communication interface may be an input / output interface, a pin or a circuit, etc. The processing unit executes the instructions stored in the storage unit so that the first application server implements a communication method described in the fifth aspect or any possible implementation of the fifth aspect. The storage unit may be a storage unit in the chip (e.g., a register, a cache, etc.), or a storage unit in the first application server located outside the chip (e.g., a read-only memory, a random access memory, etc.).

[0100] In a twelfth aspect, an embodiment of the present application provides a communication device, which can implement the method in the sixth aspect or any possible implementation of the sixth aspect, and thus can also achieve the beneficial effects in the sixth aspect or any possible implementation of the sixth aspect. The communication device can be a third network element, or a device that supports the third network element to implement the method in the sixth aspect or any possible implementation of the sixth aspect, such as a chip applied to the third network element. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0101] In one example, an embodiment of the present application provides a communication device, the communication device comprising: a communication unit and a processing unit, wherein the processing unit is used to process information. The processing unit is used to determine the migration completion time of the application context of the terminal for each first application server among one or more first application servers, where the application context is information about the first application for the terminal on the second application server currently providing services to the terminal. The communication unit is used to send the migration completion time of the application context of the terminal for each first application server to the first network element.

[0102] In a possible implementation of the present application, the communication unit is used to obtain the first relevant information of each first application server, and / or the communication unit is used to obtain one or more of the second relevant information of the second application server and the size of the application context. The processing unit is used to determine the migration completion time of the application context of each first application server for the terminal according to one or more of the following information: the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context.

[0103] In a possible implementation of the present application, the communication unit is further used to receive one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context from the first network element. The first relevant information includes one or more of the location information, load information, or network status of the first application server. The second relevant information includes one or more of the location information, load information, or network status of the second application server. This avoids the third network element from collecting information on its own.

[0104] In a possible implementation of the present application, the communication unit is further used for the third network element to receive a second request message from the first network element, where the second request message is used to request the migration completion time of the application context of the terminal for each first application server among the one or more first application servers. For example, the second request message carries one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context.

[0105] It is worth noting that, in addition to obtaining one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context from the first network element, the communication unit can also collect the first relevant information of each first application server from each first application server. In this case, the communication unit can provide the identifier of each first application server to the third network element. The communication unit is also used to obtain one or more of the second relevant information of the second application server and the size of the application context from the second application server or the first enabling server. In this case, the communication unit can also be used to obtain the identifier of the second application server or the identifier of the first enabling server from the first network element, and this is not limited in the embodiments of the present application.

[0106] In the thirteenth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of the first aspect to the first aspect.

[0107] In the fourteenth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of the second aspect to the second aspect.

[0108] In the fifteenth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of the third aspect to the third aspect.

[0109] In the sixteenth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of the fourth aspect to the fourth aspect.

[0110] In the seventeenth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of the fifth aspect to the fifth aspect.

[0111] In the eighteenth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of aspect six to aspect six.

[0112] In the nineteenth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in the first aspect or various possible implementations of the first aspect.

[0113] In the twentieth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in the second aspect or various possible implementations of the second aspect.

[0114] In the twenty-first aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in the third aspect or various possible implementations of the third aspect.

[0115] In the twenty-second aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in the fourth aspect or various possible implementations of the fourth aspect.

[0116] In the twenty-third aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in the fifth aspect or various possible implementations of the fifth aspect.

[0117] In the twenty-fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in the sixth aspect or various possible implementations of the sixth aspect.

[0118] In the twenty-fifth aspect, the embodiment of the present application provides a communication device for implementing various methods in various possible designs of any one of the first to sixth aspects above. The communication device may be the first network element above, or a device including the first network element above, or a component (e.g., a chip) applied to the first network element. Alternatively, the communication device may be the second network element above, or a device including the second network element above, or the communication device may be a component (e.g., a chip) applied to the second network element. The communication device may be the third network element above, or a device including the third network element above, or a component (e.g., a chip) applied to the third network element. Alternatively, the communication device may be the first application server above, or a device including the first application server above, or a component (e.g., a chip) applied to the first application server. The communication device includes a module or unit corresponding to the above method, and the module or unit may be implemented by hardware, software, or by hardware executing the corresponding software implementation. The hardware or software includes one or more modules or units corresponding to the above functions.

[0119] In aspect twenty-six, an embodiment of the present application provides a communication device, comprising: at least one processor and a communication interface. Wherein, when the communication device is running, the processor executes a computer-executable instruction or program stored in the communication device, so that the communication device performs a method of any one of the various possible designs of any one of the first aspect, the second aspect, the third aspect, the fourth aspect, the fifth aspect, or the sixth aspect as described above. For example, the communication device may be a first network element, or a component applied in a first network element. For example, the communication device may be a third network element, or a component applied in a third network element. For example, the communication device may be a second network element, or a component applied in a second network element. For example, the communication device may be a first application server, or a component applied in a first application server.

[0120] It should be understood that the communication device described in the above aspect 26 may also include: a bus and a memory, the memory being used to store code and data. Optionally, at least one processor communication interface and the memory are coupled to each other.

[0121] In aspect 27, an embodiment of the present application provides a communication device, the communication device comprising: at least one processor. Wherein, at least one processor is coupled to a memory, and when the communication device is running, the processor executes a computer-executable instruction or program stored in the memory, so that the communication device performs a method as described in any of the various possible designs of the first aspect or any aspect of the first aspect. For example, the communication device may be a first network element, or a chip applied to the first network element.

[0122] In aspect 28, an embodiment of the present application provides a communication device, the communication device comprising: at least one processor. Wherein, at least one processor is coupled to a memory, and when the communication device is running, the processor executes a computer-executable instruction or program stored in the memory, so that the communication device performs a method as described in any of the various possible implementations of the second aspect or any aspect of the second aspect. For example, the communication device may be a first network element, or a chip applied to the first network element.

[0123] In a twenty-ninth aspect, an embodiment of the present application provides a communication device, the communication device comprising: at least one processor. Wherein, at least one processor is coupled to a memory, and when the communication device is running, the processor executes a computer-executable instruction or program stored in the memory, so that the communication device performs a method as described in any of the various possible designs of the third aspect or any aspect of the third aspect. For example, the communication device may be a second network element, or a chip applied to the second network element.

[0124] In a thirtieth aspect, an embodiment of the present application provides a communication device, the communication device comprising: at least one processor. Wherein, at least one processor is coupled to a memory, and when the communication device is running, the processor executes a computer-executable instruction or program stored in the memory, so that the communication device performs a method as described in any of the various possible designs of the fourth aspect or any aspect of the fourth aspect. For example, the communication device may be a second network element, or a chip applied to the second network element.

[0125] In a thirty-first aspect, an embodiment of the present application provides a communication device, the communication device comprising: at least one processor. Wherein, at least one processor is coupled to a memory, and when the communication device is running, the processor executes a computer-executable instruction or program stored in the memory, so that the communication device performs a method as described in any of the various possible designs of the fifth aspect or any aspect of the fifth aspect. For example, the communication device may be a first application server, or a chip applied to the first application server.

[0126] In a thirty-second aspect, an embodiment of the present application provides a communication device, the communication device comprising: at least one processor. Wherein, at least one processor is coupled to a memory, and when the communication device is running, the processor executes a computer-executable instruction or program stored in the memory, so that the communication device performs a method as described in any of the various possible designs of the sixth aspect or any aspect of the sixth aspect. For example, the communication device may be a third network element, or a chip used in a third network element.

[0127] It should be understood that the memory described in any one of aspects 26 to 32 can also be replaced by a storage medium, and the embodiments of the present application are not limited to this. In one possible implementation, the memory described in any one of aspects 26 to 32 can be a memory inside the communication device. Of course, the memory can also be located outside the communication device, but at least one processor can still execute computer-executable instructions or programs stored in the memory.

[0128] In aspect thirty-third, an embodiment of the present application provides a communication device, which includes one or more modules for implementing the method of any one of the first, second, third, fourth, fifth, and sixth aspects mentioned above, and the one or more modules may correspond to each step in the method of any one of the first, second, third, fourth, fifth, and sixth aspects mentioned above.

[0129] In a thirty-fourth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in the first aspect or various possible implementations of the first aspect. The communication interface is used to communicate with other modules outside the chip.

[0130] In a thirty-fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in the second aspect or various possible implementations of the second aspect. The communication interface is used to communicate with other modules outside the chip.

[0131] In a thirty-sixth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in the third aspect or various possible implementations of the third aspect. The communication interface is used to communicate with other modules outside the chip.

[0132] In a thirty-seventh aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in the fourth aspect or various possible implementations of the fourth aspect. The communication interface is used to communicate with other modules outside the chip.

[0133] In aspect 38, an embodiment of the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in aspect 5 or various possible implementations of aspect 5. The communication interface is used to communicate with other modules outside the chip.

[0134] In a thirty-ninth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in the sixth aspect or various possible implementations of the sixth aspect. The communication interface is used to communicate with other modules outside the chip.

[0135] Specifically, the chip provided in the embodiment of the present application also includes a memory for storing computer programs or instructions.

[0136] In the fortieth aspect, an embodiment of the present application provides a communication system, the communication system comprising: a first network element and a second network element, wherein the first network element is used to implement the communication method described in the first aspect or any possible implementation of the first aspect. The second network element is used to implement the communication method described in any possible implementation of the third aspect.

[0137] Optionally, the communication system may further include: a third network element, and / or one or more first application servers. The third network element is used to implement the communication method described in the sixth aspect or any possible implementation of the sixth aspect. The first application server application implements the communication method described in the fifth aspect or any possible implementation of the fifth aspect.

[0138] In the forty-first aspect, an embodiment of the present application provides a communication system, the communication system comprising: a first network element and a second network element. The first network element is used to implement the communication method described in the second aspect or any possible implementation of the second aspect. The second network element is used to implement the communication method described in any possible implementation of the fourth aspect.

[0139] Optionally, the communication system may further include: one or more first application servers, the first application server application implementing the communication method described in the fifth aspect or any possible implementation of the fifth aspect.

[0140] In aspect 42, an embodiment of the present application provides a communication method, including: a first network element receives first information from a second network element. The first information is the expected completion time of migration of the application context. The first network element obtains the completion time of migration of the application context of the terminal for each first application server in one or more associated first application servers; the application context is information about the first application for the terminal on the second application server. The second application server is an application server currently providing services to the terminal. The first network element determines at least one target application server from one or more first application servers based on the first information.

[0141] In a possible implementation manner of the present application, the method provided in the embodiment of the present application also includes: the first network element sends information of at least one target application server to the second network element.

[0142] In a possible implementation of the present application, the migration completion time of the application context of the terminal by the target application server is less than or equal to the expected migration completion time of the application context.

[0143] It is worth noting that the specific implementation of "obtaining the migration completion time of the application context of each first application server for the terminal" in the 42nd aspect can refer to the relevant description in the first aspect, and will not be repeated here.

[0144] In a possible implementation of the present application, when the first network element is a second enabling server, the method provided in the embodiment of the present application also includes: the first network element receives address information of the first enabling server from the second network element, and the first enabling server is associated with the second application server.

[0145] It is worth noting that the description of "about the first network element and the second network element" in the 42nd aspect can refer to the description in the first aspect and will not be repeated here.

[0146] In a forty-third aspect, an embodiment of the present application provides a communication method, including: a first network element obtains a migration completion time of an application context of a terminal for each of the associated one or more first application servers; the application context is information about a first application for the terminal on a second application server, and the second application server is an application server currently providing services to the terminal. The first network element determines at least one target application server from the one or more first application servers.

[0147] In a possible implementation of the present application, the method provided in the embodiment of the present application further includes: the first network element receives first information from the second network element, the first information being the expected completion time of migration of the application context. The first network element determines at least one target application server from one or more first application servers, including: the first network element determines at least one target application server from one or more first application servers according to the expected completion time of migration of the application context.

[0148] In a possible implementation manner of the present application, the method provided in the embodiment of the present application also includes: the first network element sends information of at least one target application server to the second network element.

[0149] In a possible implementation of the present application, the migration completion time of the application context of the terminal by the target application server is less than or equal to the expected migration completion time of the application context.

[0150] In a possible implementation manner of the present application, the method provided in the embodiment of the present application may further include: the first network element receives address information of the first enabling server from the second network element.

[0151] It is worth noting that the specific implementation of "obtaining the migration completion time of the application context of each first application server for the terminal" in the forty-third aspect can refer to the relevant description in the first aspect, and will not be repeated here.

[0152] It is worth noting that the description of "about the first network element and the second network element" in the 43rd aspect can refer to the description in the first aspect and will not be repeated here.

[0153] In a forty-fourth aspect, an embodiment of the present application provides a communication method, the method comprising: a second network element sends first information to a first network element, the first information being an expected completion time of migration of an application context. The second network element receives information from at least one target application server of the first network element. The target application server can provide services for a terminal. The application context is information on a first application for a terminal on a second application server, and the second application server is an application server currently providing services for the terminal.

[0154] In a possible implementation of the present application, the migration completion time of the application context of the terminal by the target application server is less than or equal to the expected migration completion time of the application context.

[0155] In aspect 45, an embodiment of the present application provides a communication device, which can implement the method in aspect 42 or any possible implementation of aspect 42, and thus can also achieve the beneficial effects in aspect 42 or any possible implementation of aspect 42. The communication device can be a first network element, or a device that supports the first network element to implement the method in aspect 42 or any possible implementation of aspect 42, such as a chip applied to the first network element. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0156] For example, the communication device includes a communication unit and a processing unit, wherein the processing unit is used to support the first network element to implement the relevant actions processed by the first network element in the forty-second aspect or any possible implementation of the forty-second aspect. The communication unit is used to support the first network element to implement the relevant actions of sending and receiving by the first network element in the forty-second aspect or any possible implementation of the forty-second aspect.

[0157] In aspect 46, an embodiment of the present application provides a communication device, which can implement the method in aspect 43 or any possible implementation of aspect 43, and thus can also achieve the beneficial effects in aspect 42 or any possible implementation of aspect 42. The communication device can be a first network element, or a device that supports the first network element to implement the method in aspect 43 or any possible implementation of aspect 43, such as a chip applied to the first network element. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0158] For example, the communication device includes a communication unit and a processing unit, wherein the processing unit is used to support the first network element to implement the forty-third aspect or any possible implementation of the forty-third aspect by the first network element to perform related actions of processing. The communication unit is used to support the first network element to implement the forty-third aspect or any possible implementation of the forty-third aspect by the first network element to perform related actions of sending and receiving.

[0159] In aspect 47, an embodiment of the present application provides a communication device, which can implement the method in aspect 44 or any possible implementation of aspect 44, and thus can also achieve the beneficial effects in aspect 44 or any possible implementation of aspect 44. The communication device can be a second network element, or a device that supports the second network element to implement the method in aspect 44 or any possible implementation of aspect 44, such as a chip applied to the second network element. The communication device can implement the above method through software, hardware, or by executing corresponding software through hardware.

[0160] For example, the communication device includes a communication unit and a processing unit, wherein the processing unit is used to support the second network element to implement the relevant actions processed by the second network element in the forty-fourth aspect or any possible implementation of the forty-fourth aspect. The communication unit is used to support the second network element to implement the relevant actions of sending and receiving by the second network element in the forty-fourth aspect or any possible implementation of the forty-fourth aspect.

[0161] In aspect 48, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in aspect 42 or various possible implementations of aspect 42. The communication interface is used to communicate with other modules outside the chip.

[0162] In aspect 49, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in aspect 43 or various possible implementations of aspect 43. The communication interface is used to communicate with other modules outside the chip.

[0163] In a fiftieth aspect, an embodiment of the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface and the processor are coupled, the processor is used to run a computer program or instruction to implement a communication method described in the forty-fourth aspect or various possible implementations of the forty-fourth aspect. The communication interface is used to communicate with other modules outside the chip.

[0164] Specifically, the chip provided in the embodiment of the present application also includes a memory for storing computer programs or instructions.

[0165] In aspect 51, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of aspect 42 to aspect 43.

[0166] In aspect 52, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of aspect 43 to aspect 44.

[0167] In aspect 53, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes a communication method described in any possible implementation method of aspect 44 to aspect 44.

[0168] In aspect 54, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in aspect 42 or various possible implementations of aspect 42.

[0169] In aspect 55, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in aspect 43 or various possible implementations of aspect 43.

[0170] In aspect 56, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a communication method described in aspect 44 or various possible implementations of aspect 44.

[0171] In aspect 57, an embodiment of the present application provides a communication system, including a first network element and a second network element, wherein the first network element is used to execute the method described in aspect 42 / aspect 43 and various possible implementations thereof. The second network element is used to execute the method described in aspect 44 and various possible implementations thereof.

[0172] Any of the above-mentioned devices, computer storage media, computer program products, chips, or communication systems are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding schemes in the corresponding methods provided above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0173] Figure 1a A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0174] Figure 1b A schematic diagram of the architecture of another communication system provided in an embodiment of the present application;

[0175] Figure 2 A schematic diagram of the architecture of the communication between the NWDAF network element and the network function (NF) in the 5GC provided in the embodiment of the present application;

[0176] Figure 3 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0177] Figure 4 An overall flow chart of application context migration provided in an embodiment of the present application;

[0178] Figure 5.1 to Figure 5.5 A schematic diagram of a specific process of application context migration provided in an embodiment of the present application;

[0179] Figure 5.6 to Figure 5.7 Schematic diagram of different request models provided for embodiments of the present application;

[0180] Figure 5.8 A schematic diagram of another specific process of application context migration provided in an embodiment of the present application;

[0181] Figure 6.1 A flow chart of a communication method provided in an embodiment of the present application;

[0182] Figure 6.2 A flowchart of another communication method provided in an embodiment of the present application;

[0183] Figure 7 A flowchart of another communication method provided in an embodiment of the present application;

[0184] Figure 8 to Figure 22 A schematic diagram of a specific process of T-EAS provided in an embodiment of the present application;

[0185] Fig.23 A schematic diagram of the structure of a communication device provided in an embodiment of the present application;

[0186] Fig.24 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0187] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first application server and the second application server are only used to distinguish different application servers, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different.

[0188] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0189] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0190] The technical solution of the present application can be applied to various communication systems, such as: long time evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD) system, universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, public land mobile network (PLMN) system, device to device (D2D) network system or machine to machine (M2M) network system and future 5G communication system, etc.

[0191] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0192] like Figure 1aAs shown, a communication system 100 provided in an embodiment of the present application includes: a source enabling server 101, a target enabling server 102, and an edge enabling client (EEC) 103. The source enabling server 101 can communicate with the target enabling server 102. The target enabling server 102 can communicate with the edge enabling client 103. The edge enabling client 103 is a peer entity of the source enabling server 101 and the target enabling server 102 on the terminal 104 side.

[0193] Among them, the source enabling server 101 is an enabling server that provides services to the terminal 104 before the application context is migrated. The target enabling server 102 is an EES reselected by the EEC 103 for the terminal 104 when the source enabling server 101 can no longer continue to serve the terminal 104. For example, in the actual process, due to the movement of the terminal 104 or the failure / shutdown / overload of the source enabling server 101 or the existence of an enabling server that is more suitable for providing services to the terminal 104, the source enabling server 101 can no longer continue to provide services to the terminal 104, or is no longer the most suitable EES for serving the terminal 104. At this time, the EEC 103 will first trigger a service provisioning process to obtain the target enabling server 102 that provides services to the terminal 104. In this process, the EEC 103 interacts with the edge configuration server (ECS) 108. Of course, the process of obtaining the target enabling server 102 can also be initiated by the source enabling server 101. If the source enabling server 101 initiates a process of acquiring the target enabling server 102 , it can be regarded as a “retrieve T-EES” process.

[0194] Optional, such as Figure 1a As shown, the communication system 100 further includes: a source application server 105. The terminal 104 can communicate application data with the source application server 105. The source application server 105 is associated with the source enabler server 101, that is, the source application server 105 is registered with a source enabler server 101, or the information of a source application server 105 is configured on the source enabler server 101 through the management system. The source enabler server 101 is called an enabler server associated with the source application server 105. The source enabler server 101 controls / manages the source application server 105 registered / configured on the source enabler server 101.

[0195] It is understandable that the source application server 105 is an application server currently providing services to the terminal 104. That is, the terminal 104 accesses the edge data network through the source application server 105. The source application server 105 usually has the application context of the terminal 104.

[0196] The source enabling server 101 and the source application server 105 belong to the same EDN1. The target enabling server 102 and one or more target application servers 106 belong to the same EDN2. EDN1 and EDN2 can be the same EDN or different EDNs. Figure 1a Different EDNs are taken as examples. EDN1 can be regarded as the source EDN of the terminal 104, and EDN2 can be regarded as the target EDN of the terminal 104 after the EDN is changed.

[0197] Application context: refers to the running status information related to one or a group of terminals, or a group of data related to the application client on the source enabling server 101. Optionally, it may also include the context of the subscription of the one or more terminals in the source application server 105 and the core network, such as the transaction identifier of the subscription, etc. Optionally, it may also include the context of the one or more terminals on the edge enabler server (EES), such as the transaction identifier of the subscription of the one or more terminals by the source application server 105.

[0198] In the case where the source application server 105 cannot continue to provide services for the terminal 104, for example, when the terminal 104 moves outside the service area of ​​the source application server 105, such as terminal movement between edge data networks (EDNs) and terminal movement between LADNs, the source application server 105 may not be able to continue to provide services for the currently running application, or the source application server 105 is no longer the optimal application server that can provide services for the terminal 104, and other application servers may be more suitable for providing services to the application client on the terminal 104, so it is necessary to reselect an application server to provide services for the terminal 104. In order to better serve the terminal 104, the EEC 103 can reselect an application server for the terminal 104 to provide services for the terminal 104. Based on this, the EEC 103 can trigger the target enabling server 102 to discover one or more target application servers 106 that can provide services for the terminal 104. Or the source enabling server 101 or the source application server 105 triggers the target enabling server 102 to discover one or more target application servers 106 that can provide services for the terminal 104. Among them, the target enabling server 102 is used to discover one or more target application servers 106 that can provide services to the terminal, and determine the migration completion time of each target application server 106 for the application context of the terminal 104 or one or more of the location information, load information, network status of each target application server 106, the location information, load information, network status, and application context size of the source application server 105, so as to facilitate the subsequent replacement of the application server providing services for the terminal 104 from the source application server 105 to the target application server in one or more target application servers 106. At this time, the EEC 103 will first trigger the service provisioning process to trigger the target enabling server 102 that provides services to the terminal 104. In this process, the EEC interacts with the edge configuration server (Edge Configuration Server, ECS) 108. Of course, the process of triggering the acquisition of the target enabling server 102 may also be initiated by the source enabling server 101. If it is initiated by the S-EES, it can be regarded as a "retrieve T-EES" process.

[0199] Optional, such as Figure 1a As shown, the communication system 100 provided in the embodiment of the present application may also include: a data analysis network element 107 or an ECS 108.

[0200] The data analysis network element 107 or the ECS 108 can calculate the migration completion time of the application context of each target application server 106 for the terminal 104 according to the information provided by the target enabling server 102 for determining the migration completion time of the application context of each target application server 106 for the terminal 104. For example, the information for determining the migration completion time of the application context of each target application server 106 for the terminal 104 may include: one or more of the location information, load information, and network status of each target application server 106, the location information, load information, and network status of the source application server 105, and the size of the application context.

[0201] The data analysis network element 107 may belong to a network element in the 5GC or a network management network element. For example, the data analysis network element 107 may be a network data analysis function (NWDAF) network element in the 5GC, a management data analysis function (MDAF) network element of the network management, or even a data analysis network element on the RAN side.

[0202] like Figure 2 As shown, taking the data analysis network element 107 as an NWDAF network element as an example, Figure 2 (A) is data collection, which is the architecture used by NWDAF to call services of other 5GC network elements to collect input information required for network analysis; Figure 2 (B) in the figure is data openness, i.e., the architecture in which NWDAF sends analysis data to network elements that subscribe to or request the analysis data by providing NWDAF services. NWDAF provides slice-level network data analysis for other network elements, and provides network analysis information (i.e., load level information) at the network slice instance level without knowing the current subscribed terminal using the slice.

[0203] Figure 1a The illustrated architecture may be referred to as a scenario of replacing an enabling server, that is, the enabling server of the terminal 104 is replaced from the source enabling server 101 to the target enabling server 102 .

[0204] like Figure 1b As shown, an embodiment of the present application provides a communication system, which includes: an enabling server 108 and an edge enabler client (edge ​​enabler client, EEC) 103.

[0205] The third enabling server 100 is an enabling server currently providing services to the terminal 104. The edge enabling client 103 is a peer entity of the enabling server 108 on the terminal 104 side.

[0206] like Figure 1b As shown, the enabling server 108 is deployed in the EDN. The enabling server 108 is used to discover one or more target application servers 106 that can provide services to the terminal, and determine the migration completion time of the application context of each target application server 106 for the terminal 104, so as to facilitate the subsequent replacement of the application server that provides services to the terminal 104 from the source application server 105 to a target application server in one or more target application servers 106.

[0207] Optional, such as Figure 1b The communication system shown may further include: a source application server 105. The source application server 105 is an application server currently providing services to the terminal 104. In general, the source application server 105 is registered with the enabling server 108, or the information of a source application server 105 is configured on the enabling server 108 through the management system. The enabling server 108 is called the enabling server associated with the source application server 105. The enabling server 108 controls / manages the source application server 105 registered / configured on the enabling server 108.

[0208] Figure 1b The architecture shown may be referred to as a scenario where the enabling server is not replaced, that is, the enabling server providing services to the terminal 104 is not replaced.

[0209] It is worth mentioning that Figure 1b and Figure 1a The source application server 105, one or more target application servers 106, enabling server 108, source enabling server 101, and target enabling server 102 shown are all deployed in the edge data network (EDN). A general understanding is that EDN corresponds to a data network, which is a special local data network (local DN) that includes edge enabling functions. It can be identified by a data network access identifier (DNAI) and a data network name (DNN), and is a network logical concept. Another understanding of EDN is that EDN is a peer-to-peer concept of the central cloud, which can be understood as a local data center (geographic location concept), which can be identified by DNAI and can include multiple local data networks (local DN).

[0210] Various servers deployed in the EDN may be referred to as edge servers, for example, an enabler server may be referred to as an edge enabler server (EES) and an application server may be referred to as an edge application server (EAS).

[0211] The functional entities and interfaces involved in the embodiments of the present application are briefly described as follows:

[0212] Application instance / edge application: An application deployed in an edge data network is called an application instance. Specifically, it refers to an instance of a server application (for example, social media software, augmented reality (AR), virtual reality (VR)) deployed and running on an EDN. An application can deploy one or more EAS in one or more EDNs. EASs deployed and running in different EDNs can be considered as different EASs of an application. They can share a domain name, use an anycast IP address, or use different IP addresses. EAS can also be called edge application (server), application instance, edge application instance, multi-access edge computing (MEC) application (server), EAS function, etc.

[0213] Application client (AC): is the peer entity of edge application on the UE side. Application client is used by application users (i.e., terminals (users)) to obtain application services from application servers. Application client is a client program applied on the terminal side. Application client can connect to application servers on the cloud to obtain application services, or it can connect to EAS deployed and running in one or more EDNs to obtain application services.

[0214] Edge enabler server (EES): It can provide some enabling capabilities for application instances deployed in EDN, and can better support the deployment of applications in MEC. It can support the registration of edge applications, authentication and authorization of UE, and provide the IP address information of application instances to the terminal. It can also further support the acquisition of the identification and IP address information of the application instance, and further send the identification and IP address information of the application instance to the edge data network configuration server. EES is deployed in EDN. Generally, EAS is registered to an EES, or the information of an EAS is configured on an EES through the management system. The EES is called the EES associated with the EAS, and the EES controls / manages the EAS registered / configured on the EES.

[0215] Edge enabler client (EEC): is the peer entity of EES on the terminal side. EEC is used to register EEC information and application client information with EES, perform security authentication and authorization, obtain EAS IP address from EES, and provide edge computing enabling capabilities to application clients, such as EAS discovery service returns EAS IP address to application clients.

[0216] Edge configuration server (ECS): responsible for EDN configuration, such as providing EES information to UE. It can also directly provide application instance information to the terminal, and interact with the application's DNS to obtain application instance information. It can further obtain and save application instance and IP address information from other functional entities.

[0217] Among them, the application user signs a service agreement with the application provider to provide services for the application user, and the application user communicates with the EAS through the application client on the login terminal through the connection between the application client and the EAS. The enabling client is a middleware layer, generally located in the operating system, or between the application client and the operating system. The application client can obtain edge enabling services from the enabling client in the form of an application program interface (API).

[0218] In the embodiment of the present application, the AC and EEC communicate via the EDGE-5 interface. The EEC and each EES communicate via the EDGE-1 interface. The EEC and ECS communicate via the EDGE-4 interface. The core network and ECS communicate via the EDGE8 interface. The core network and each EAS communicate via the EDGE-7 interface. The core network and each EES communicate via the EDGE-2 interface. The EAS and EES communicate via the EDGE-3 interface. The EES communicate via the EDGE-9 interface. The ECS and EES communicate via the EDGE-6 interface.

[0219] The terminal involved in the embodiments of the present application is a device with wireless communication function, which can be deployed on land, including indoors or outdoors, handheld or vehicle-mounted. It can also be deployed on the water surface (such as ships, etc.). It can also be deployed in the air (for example, on airplanes, balloons, and satellites, etc.). The terminal is also called user equipment (UE), mobile station (MS), mobile terminal (MT), and terminal equipment, etc., which is a device that provides voice and / or data connectivity to users. For example, the terminal includes a handheld device with wireless connection function, a vehicle-mounted device, etc. At present, the terminal can be: a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device (such as a smart watch, a smart bracelet, a pedometer, etc.), an in-vehicle device (such as a car, a bicycle, an electric car, an airplane, a ship, a train, a high-speed rail, etc.), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a smart home device (such as a refrigerator, a TV, an air conditioner, an electric meter, etc.), an intelligent robot, a workshop device, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, or a wireless terminal in a smart home, a flying device (such as an intelligent robot, a hot air balloon, a drone, an airplane), etc. In a possible application scenario of the present application, the terminal is a terminal that often works on the ground, such as an in-vehicle device. In this application, for the sake of convenience, chips deployed in the above-mentioned devices, such as system-on-a-chip (SOC), baseband chips, etc., or other chips with communication functions may also be referred to as terminals.

[0220] The terminal can be a vehicle with corresponding communication functions, or a vehicle-mounted communication device, or other embedded communication devices, or a user's handheld communication device, including a mobile phone, a tablet computer, etc.

[0221] As an example, in the embodiment of the present application, the terminal can also be a wearable device. Wearable devices can also be called wearable smart devices, which are a general term for wearable devices that use wearable technology to intelligently design and develop wearable devices for daily wear, such as glasses, gloves, watches, clothing and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also powerful functions achieved through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smartphones to achieve complete or partial functions, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0222] Figure 3 FIG. 1 shows a schematic diagram of the hardware structure of a communication device provided in an embodiment of the present application. The hardware structure of the first network element, the second network element, the third network element, and the first application server in the embodiment of the present application can refer to FIG. Figure 3 The communication device includes a processor 31, a communication line 34 and at least one transceiver ( Figure 3 The communication interface 33 is used as an example for illustration only).

[0223] The processor 31 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0224] The communication link 34 may include a pathway for transmitting information between the above-mentioned components.

[0225] The communication interface 33 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

[0226] Optionally, the communication device may further include a memory 32 .

[0227] The memory 32 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may be independent and connected to the processor via a communication line 35. The memory 32 may also be integrated with the processor 31.

[0228] The memory 32 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 31. The processor 31 is used to execute the computer-executable instructions stored in the memory 52, thereby realizing the communication method provided in the following embodiments of the present application.

[0229] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.

[0230] In a specific implementation, as an embodiment, the processor 31 may include one or more CPUs, such as Figure 3 CPU0 and CPU1 in.

[0231] In a specific implementation, as an embodiment, the communication device may include multiple processors, such as Figure 3 31 and processor 35 in the embodiment of the present invention. Each of these processors can be a single-CPU processor or a multi-CPU processor. The processor here can refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0232] ACR (application context relocation) should be understood as the entire process from detecting requirements to cleaning up, i.e. Figure 4 The entire process of 5 situations in 4 stages is shown.

[0233] ACT (application context transfer) should be understood as a process of migrating an application context from a source application server 105 to a target application server 106 .

[0234] In the embodiment of the present application, the migration completion time of the application context may be referred to as: ACT completion time, or ACT delay.

[0235] In actual process, when the terminal 104 is migrated from the source application server 105 to the target EAS in one or more target application servers 106, the application context of the terminal 104 on the source application server 105 needs to be migrated to the target application server.

[0236] Currently, application context migration frameworks such as Figure 4 As shown, it can be divided into four stages:

[0237] Phase 1. Detection of application context migration: that is, determining that context migration may be required. At this time, the detection entity detects some events, such as a change in the location of the terminal 104 or an update to the user plane path of the terminal 104.

[0238] Phase 2. Decision on application context migration: The decision entity determines that application context migration is required.

[0239] Phase 3. Execution of application context migration: mainly transferring the application context from the source application server (sourceEAS, S-EAS) (i.e., source application server 105) to the target EAS (target EAS, T-EAS). It may further include notifying the terminal 104 of the information of T-EAS, notifying the network of the completion of the application context migration and the relevant information of T-EAS (such as the address of T-EAS, the N6 routing information corresponding to T-EAS, etc.).

[0240] Phase 4. Cleanup after application context migration: involves multiple entities, such as the application client (AC) initiating a new socket connection to T-EAS.

[0241] SA6 currently defines the following context migration schemes and processes:

[0242] Option 1: If Figure 5.1As shown, the EEC detects that an application context migration is required (for example, the terminal location is updated). The EEC obtains the information of the T-EES from the ECS. The EEC triggers the T-EES to perform the step of discovering the T-EAS. The EEC obtains the information of the T-EAS discovered by the T-EES from the T-EES. The EEC triggers the AC, and the AC decides whether and when to perform application context migration. After the AC decides to perform application context migration, the AC triggers the S-EAS. The S-EAS sends the application context to the T-EAS. After the application context migration, the AC switches the application data of the terminal to the T-EAS.

[0243] Option 2: If Figure 5.2 As shown, the EEC detects that context migration is needed, and the EEC decides whether and when to migrate the context. After the EEC decides to migrate the context, the EEC obtains T-EAS information from the source EES (source EES, S-EES), and the EEC notifies the S-EAS to migrate the context through the S-EES, and the S-EAS sends the application context to the T-EAS. After the context migration, the AC switches the application data to the T-EAS.

[0244] Option 3: If Figure 5.3 As shown, S-EES detects that context migration is required, S-EES sends context migration information to S-EAS, S-EAS decides whether and when to perform context migration, after S-EAS decides to perform context migration, S-EAS obtains T-EAS information, and S-EAS sends application context to T-EAS. After context migration, AC switches application data to T-EAS.

[0245] Option 4: If Figure 5.4 As shown, EEC, S-EAS and S-EES detect the need for context migration, S-EES decides whether and when to migrate the context, after S-EES decides to migrate the application context, S-EES obtains T-EES information through ECS, determines T-EAS, S-EES sends ACR notification to S-EAS, and S-EAS sends the application context to T-EAS. After the context migration, AC switches the application data to T-EAS.

[0246] Option 5: If Figure 5.5As shown, EEC detects that context migration is needed, EEC notifies T-EES that application context relocation may be needed, T-EES decides whether and when to perform context migration, and after T-EES decides to perform context migration, T-EES obtains T-EAS information and sends an ACR request message to T-EAS. T-EAS initiates application context transfer between S-EAS and T-EAS. After context migration, AC switches application data to T-EAS.

[0247] In the various application context migration schemes described above, T-EAS discovery and selection are all involved. Two T-EAS discovery methods are defined above: T-EAS discovery initiated by EEC and T-EAS discovery initiated by S-EAS / S-EES. These two methods are described separately:

[0248] 1) T-EAS discovery initiated by EEC

[0249] The T-EAS discovery initiated by EEC reuses the EAS discovery process initiated by EEC. EEC requests or subscribes to EAS from EES, which may carry EAS screening conditions. EES returns or notifies EEC of the EAS (at least one) that meets the conditions.

[0250] The EAS discovery process initiated by EEC can use the "request-response" model or the "subscription-notification" model. The specific process is as follows:

[0251] like Figure 5.6 As shown, the request-response model. That is, EEC sends an EAS discovery request to EES. EES performs authentication and discovers T-EAS. EES sends an EAS discovery response to EEC. Among them, the EAS discovery request contains the EEC ID (identifier) ​​and security authentication, and may contain EAS selection screening conditions, which include EAS ID, EAS address information, and may include EAS service scope, whether business continuity is supported, etc. The EAS discovery response contains at least one T-EAS, and each T-EAS corresponds to an EAS profile. EASprofile is a table of relevant parameters of EAS, including the ID (identifier) ​​of the T-EAS, address information, and may include ACID (identifying the AC that the EAS can serve), the service scope of the EAS, the corresponding DNAI, etc.

[0252] like Figure 5.7 As shown in the subscription-notification model, the subscription process is as follows: Figure 5.7 As shown in Figure (A), it includes:

[0253] 1. EEC sends an EAS discovery subscription request to EES. The EAS discovery subscription request includes the EEC ID, security authentication and notification trigger conditions, which indicate the timing of sending EAS discovery notifications, including EAS availability changes; the discovery subscription request may also include EAS selection filter conditions, which include EAS ID, EAS address information, and may include EAS service scope, whether business continuity is supported, etc.

[0254] 2. EES performs security verification (Authorization check).

[0255] 3. EES sends an EAS discovery subscription response to EEC, including a subscription success response.

[0256] Notification process, such as Figure 5.7 As shown in Figure (B), it includes:

[0257] 1. The notification triggering conditions are met in the subscription process.

[0258] 2. EES sends an EAS discovery notification to EEC, including at least one T-EAS, and each T-EAS corresponds to an EAS profile. The EAS profile is the same as the request-response process and will not be repeated here.

[0259] It is worth mentioning that Figure 5.6 , Figure 5.7 The EES in the example can also be replaced by T-EES. For the following applications involving the subscription-notification model and the request-response model, you can refer to the description here and will not repeat it in the future.

[0260] like Figure 5.8 As shown, the T-EAS discovery process initiated by S-EAS / S-EES provided in an embodiment of the present application is only used in the application context migration process. S-EES requests T-EAS from T-EES, or S-EAS requests T-EAS from T-EES through S-EES, which may carry T-EAS screening conditions. T-EES returns a T-EAS (at least one) that meets the conditions to S-EES. If it is initiated by S-EAS, S-EES will also forward this T-EAS (at least one) to S-EAS. The T-EAS discovery process initiated by S-EAS / S-EES is as follows:

[0261] 1. S-EAS sends an EAS discovery request to S-EES. The EAS discovery request contains the information element of step 1 of the EAS discovery request-response model initiated by EEC (EEC ID is replaced by S-EAS ID), and may also contain the location information of the terminal and the target DNAI (associated with potential T-EAS).

[0262] 2. After receiving the EAS discovery request, S-EES decides to perform application context relocation (i.e., application context migration).

[0263] 3. S-EES interacts with ECS to obtain T-EES.

[0264] 4. S-EES sends an EAS discovery request to T-EES. The EAS discovery request contains the same information as step 1 (S-EAS ID is replaced by S-EES ID).

[0265] 5. T-EES sends an EAS discovery response to S-EES. The EAS discovery response contains the same information elements as step 3 of the discovery request-response model.

[0266] 6. S-EES forwards the EAS discovery response to S-EAS.

[0267] It can be understood that step 1 and step 5 are optional steps and are only performed when the process is initiated by S-EAS.

[0268] It can be seen from the above processes that the EAS discovery response / notification message can contain one or more T-EAS and its profile. Therefore, when multiple T-EAS are returned, EEC / S-EAS / S-EES needs to select one T-EAS from multiple T-EAS. The selection criteria for T-EAS were discussed at the 3GPP SA6#42E meeting, and the conclusion of selecting T-EAS based on the EAS service key performance indicator (EAS Service KPI) was adopted. The EAS service key performance indicator (Key Performance Indicator, KPI) is an item in the EAS profile, which contains several KPIs related to the interaction between EAS and AC. The details are shown in Table 1 below:

[0269] Table 1

[0270]

[0271] However, since different applications have different requirements for business continuity, they also have different requirements for the latency of application context migration. For example, V2X (vehicle to everything) services have much more stringent requirements for migration latency than video services. However, the EAS service KPI contains neither the application context migration latency information corresponding to the EAS nor the information elements sufficient for the EEC / S-EAS / S-EES to determine the application context migration latency corresponding to this EAS. In addition, even all the information elements that may be included in the EAS profile in the EAS discovery response / notification message contain neither the migration latency information corresponding to the EAS nor the information elements sufficient to determine the latency information. Therefore, EEC / S-EAS / S-EES cannot make T-EAS selections based on the application context migration latency information.

[0272] Based on this, an embodiment of the present application provides a communication method, in which a first network element obtains information for determining the migration completion time of the application context of the terminal targeted by each first application server (for example, the migration completion time of the application context of the terminal, or), and then sends the information of the migration completion time of the application context of the terminal targeted by each first application server to a second network element, so that the second network element can select the first application server to provide services to the terminal based on the migration completion time of the application context of the terminal targeted by each first application server, so that the selected first application server can better provide services to the terminal.

[0273] In the embodiments of the present application, the specific structure of the execution subject of a communication method is not particularly limited in the embodiments of the present application, as long as the program that records the code of a communication method of the embodiments of the present application can be run to communicate according to a communication method of the embodiments of the present application. For example, the execution subject of a communication method provided in the embodiments of the present application may be a functional module in the first network element that can call and execute the program, or a communication device applied to the first network element, such as a chip. The execution subject of a communication method provided in the embodiments of the present application may be a functional module in the second network element that can call and execute the program, or a communication device applied to the second network element, such as a chip. This application does not limit this. The following embodiments are described by taking the execution subject of a communication method as the first network element and the second network element as an example.

[0274] like Figure 6.1 As shown, Figure 6.1 A communication method provided in an embodiment of the present application includes:

[0275] Step 601: A first network element obtains a transfer completion time of an application context of a terminal from each of the one or more first application servers associated with the first network element.

[0276] The application context is a set of data about the application client on the application server. The application server is an application server that provides services to the terminal. The application context exists on the second application server before migration. The second application server is the application server that currently provides services to the terminal. The first application server is used to provide services to the terminal.

[0277] It can be understood that the first application server is an application server recommended by the first network element to the second network element, which can provide services for the terminal when the second application server does not meet the requirements for serving the terminal.

[0278] As an example, the second application server may be considered to not meet the requirements for serving the terminal when the following situations exist: for example, the location of the terminal changes, for example, the terminal is outside the service range of the second application server, or the second application server fails, is shut down, is overloaded, or the second application server is not the most suitable server for providing services to the terminal.

[0279] It is worth noting that the migration completion time of the application context refers to the time required for the application context to start migrating from the second application server to finally migrate to the first application server. Due to the different load information / network conditions / locations between different second application servers, the time required for the same application context to migrate to different second application servers varies.

[0280] It can be understood that the one or more first application servers may be all or part of the n first application servers discovered by the first network element according to the EAS discovery request from the second network element, where n is an integer greater than or equal to 1. For example, the one or more first application servers are application servers that meet the EAS discovery screening conditions carried in the EAS discovery request.

[0281] It is worth noting that the one or more first application servers associated with the first network element can also be referred to as: the first network element is associated with one or more first application servers. The so-called association between the two can mean: the one or more first application servers are registered in the first network element, so that the first network element can control / manage the first application servers registered / configured on the first network element.

[0282] Step 602: The first network element sends the migration completion time of the application context of each first application server for the terminal to the second network element. Correspondingly, the second network element receives the migration completion time of the application context of each first application server for the terminal from the first network element.

[0283] The migration completion time of the application context of the terminal by each first application server is used to determine a target application server providing services for the terminal among the one or more first application servers.

[0284] In one embodiment of the present application, the migration completion time of each first application server for the application context of the terminal can be carried in the same message, for example, all carried in message 1. By carrying it in the same message, the signaling overhead between the first network element and the second network element can be reduced. For example, message 1 {(T-EAS1, T1), ..., (T-EASn, Tn)}, where T represents the migration completion time, and T-EASn represents the identifier of the first application server.

[0285] As an example, the identifier of the first application server may be address information of the first application server or other parameters that may identify the first application server, which is not limited in the embodiments of the present application.

[0286] In one embodiment of the present application, the migration completion time of the application context of the terminal by each first application server can be carried in different messages. For example, the migration completion time of the application context of the terminal by the first application server 1 is carried in message 1, and the migration completion time of the application context of the terminal by the first application server 2 is carried in message 2. This embodiment of the present application is not limited to this.

[0287] In addition, taking the example that the migration completion time of the application context of each first application server for the terminal is carried in message 1, optionally, the EAS profile of each first application server may also be included in the message 1. On the one hand, the migration completion time of the application context of the terminal by the first application server 1 may be located in the EASprofile of the first application server 1. On the other hand, the migration completion time of the application context of the terminal by the first application server 1 may not be located in the EAS profile of the first application server 1.

[0288] In an optional embodiment of the present application, the first network element may send the migration completion time of the application context of the terminal of some of the first application servers among one or more first application servers to the second network element. For example, the first network element may filter the migration completion time of the application context of the terminal of one or more first application servers, such as removing the longest migration completion time or the migration completion time exceeding the preset time, and send the migration completion time of the application context of the terminal of the remaining first application servers that meet the requirements to the second network element. This is because the migration completion time exceeds the preset time or the longest time, and the second network element usually does not use the first application server as the target application server. Therefore, removing these migration completion times that do not meet the requirements can reduce communication overhead.

[0289] In a possible implementation, if the first network element receives a second message from the second network element before executing step 601, and the second message is used to request the first network element to provide the migration completion time of the application context of the terminal for each first application server associated with the first network element and capable of providing services to the terminal, then the message 1 may be a response message to the second message. Figure 5.6 As shown, the second message is an EAS discovery request. Message 1 may be an EAS discovery response. For example, Figure 5.7 As shown, the second message is an EAS discovery subscription request, and message 1 may be an EAS discovery notification or an EAS discovery subscription response.

[0290] Step 603: The second network element selects a target application server from one or more first application servers according to the migration completion time of the application context of the terminal of each first application server.

[0291] As an example, the target application server's migration completion time for the application context of the terminal is the shortest among the one or more first application servers, so that the impact of the migration completion time on the interruption of the application operation can be minimized. Or as an example, the target application server's migration completion time for the application context of the terminal is less than or equal to a preset time, and the preset time can be a predefined value or set as needed, and the embodiments of the present application are not limited to this.

[0292] As another example, if there are two first application servers among one or more first application servers whose migration completion time for the application context of the terminal is the same and the lowest, the second network element can select one of the two first application servers as the target application server, or the method of selecting the target application server from the two first application servers can refer to the description in the prior art, which will not be repeated here.

[0293] In another embodiment of the present application, the above step 602 can be replaced by the following method: the first network element determines the target application server from one or more first application servers according to the migration completion time of the application context of each first application server for the terminal. The target application server is used to provide services for the terminal. Accordingly, step 603 can be replaced by the following method: the first network element sends the information of the target application server to the second network element, and accordingly, the second network element receives the information of the target application server from the first network element, and determines the target application server according to the information of the target application server.

[0294] In an optional embodiment, the first network element may also send the migration completion time of the application context of the terminal of the target application server to the second network element.

[0295] Regarding the specific implementation of the first network element determining the target application server from one or more first application servers according to the migration completion time of the application context of each first application server for the terminal, reference can be made to the specific implementation of the second network element selecting the target application server, which will not be repeated here.

[0296] The embodiment of the present application provides a communication method. In the process of replacing the application server providing services for a terminal from a second application server to a target application server, the application context of the terminal on the second application server needs to be migrated to the target application server. Although one or more first application servers can provide services for the terminal, the migration completion time required for the application context to be migrated to each first application server is different. Since the application service of the terminal may be temporarily suspended or interrupted during the application context migration process, the migration completion time may affect the operation of the first application of the terminal. Based on this, in the embodiment of the present application, the first network element obtains the migration completion time of the application context of each first application server for the terminal, and then provides the migration completion time of the application context of each first application server for the terminal to the second network element. In this way, the second network element can be assisted in selecting a target application server from one or more first application servers according to the migration completion time of the application context of each first application server for the terminal, so as to minimize the impact of the migration completion time on the interruption of the application operation, so that the selected target application server can better provide services for the terminal.

[0297] In one embodiment of the present application, the embodiment of the present application provides a communication method, the communication method comprising: among one or more first application servers associated with a first network element, each of the first application servers has a migration completion time for the application context of the terminal; the first application server is used to provide services for the terminal. The application context is information on the first application for the terminal on a second application server, and the second application server is an application server currently providing services for the terminal; the first network element determines at least one target application server from one or more first application servers according to the migration completion time of the application context of the terminal by each of the first application servers.

[0298] As an example, the method provided in the embodiment of the present application may further include the following steps before the first network element determines at least one target application server from one or more first application servers according to the migration completion time of the application context of the terminal by each of the first application servers: Figure 6.2 Step 601-1 is shown. Accordingly, the first network element determines at least one target application server from one or more first application servers according to the migration completion time of the application context of each first application server for the terminal through the following step 603-1.

[0299] like Figure 6.2 As shown, Figure 6.2 Another communication method provided in an embodiment of the present application includes:

[0300] Step 601-1: The second network element sends first information to the first network element. Correspondingly, the first network element receives the first information from the second network element. The first information is the expected completion time of the migration of the application context.

[0301] As an example, the first information may be carried in a message X. For example, the message X may be: Figure 5.7 The EAS discovery subscription request shown, or message X can be as follows Figure 5.6 The EAS discovery request shown is not limited in this embodiment of the present application.

[0302] It is understandable that the first information is the requirement of the second network element for the migration completion time of the application context, that is, the application context migration time between the discovered or selected target application server (such as T-EAS) and the second application server (such as S-EAS) cannot exceed this time. The first network element can select at least one T-EAS from the one or more discovered first application servers according to the first information. A specific example is that the expected application context migration completion time is 10 milliseconds, which means that the application context migration time between the discovered or selected T-EAS and S-EAS cannot exceed 10 milliseconds. It is understandable that the expected application context migration completion time may be the application context migration completion time specific to the terminal or the terminal of this type, that is, for different terminals or different types of terminals, they may have different expected application context migration completion times. Or the expected application context migration completion time is the same for different terminals or different types of terminals.

[0303] Step 602-1: The first network element obtains the migration completion time of the application context of the terminal for each of the associated one or more first application servers. The application context is information about the first application for the terminal on the second application server, and the second application server is the application server currently providing services for the terminal.

[0304] The specific implementation of step 602-1 may refer to the description of any one of the following cases 1 to 3, which will not be repeated here.

[0305] There is no order distinction between step 602-1 and step 601-1.

[0306] Step 603-1: The first network element determines at least one target application server from one or more first application servers according to the first information.

[0307] As a possible implementation, the first network element determines one or more first application servers among the multiple first application servers whose application context migration completion time for the terminal is less than or equal to the expected application context migration completion time as target application servers.

[0308] Step 604-1: The first network element sends information of at least one target application server to the second network element. Correspondingly, the second network element receives information of at least one target application server from the first network element.

[0309] If the message X is an EAS discovery subscription request, the information of at least one target application server may be carried in the EAS discovery notification. If the message X is an EAS discovery request, the information of at least one target application server may be carried in the EAS discovery response.

[0310] After step 604-1, the second network element may select a target application server from at least one target application server to provide services for the terminal.

[0311] In a possible implementation, the first network element may further send the migration completion time of the application context of the terminal for each target application server in at least one target application server to the second network element. In this way, when the number of the at least one target application server is two or more, the second network element may select a target application server to provide services for the terminal according to the migration completion time of the application context of the terminal for each target application server.

[0312] In this solution, the first network element can select at least one target application server that meets the requirements from the migration completion time of the application context of each first application server for the terminal according to the first information from the second network element, and provide it to the second network element, so that the second network element can select a target application server that provides services for the terminal from the at least one target application server.

[0313] In the present application embodiment Figure 6.1 and Figure 6.2 , Figure 7 The described solution can be applied to the following scenarios:

[0314] Scenario 1) The enabling server is not replaced.

[0315] In scenario 1), combined with Figure 1b , the enabling server currently providing services to the terminal (for example, enabling server 108) is still the most suitable enabling server for providing services to the terminal. In other words, the source application server 105 cannot provide services to the terminal, resulting in the need to replace the application server providing services to the terminal, but the EES providing services to the terminal remains unchanged.

[0316] In scenario 1), the first network element may be a third enabling server. The second network element may be an enabling client or a second application server. Figure 1b For example, the third enabling server may be the enabling server 108 . The enabling client may be the EEC 103 . The second application server may be the source application server 105 .

[0317] Scenario 2) Replace the enabling server.

[0318] In scenario 2), if Figure 1aAs shown, due to the movement of the terminal or other reasons, the EES (for example, the source enabling server 101) currently providing services to the terminal can no longer continue to provide services to the terminal, or is no longer the most suitable E enabling server to provide services to the terminal, or there is a target enabling server 102 that is more suitable to provide services to the terminal. Therefore, the enabling server that provides services to the terminal changes from the source enabling server 101 to the target enabling server 102. The source enabling server 101 is associated with the source application server 105. The source enabling server 101 is the enabling server that provides services to the terminal before the enabling server is replaced.

[0319] Therefore, in scenario 2), the first network element may be the second enabling server. The second network element may be the enabling client or the second application server or the first enabling server. If the second network element is the enabling client, the enabling client has been connected to the second enabling server. Figure 1a As shown, the second enabling server is the target enabling server 102. The enabling client may be the EEC 103. The second application server may be the source application server 105. The first enabling server is the source enabling server 101.

[0320] In an embodiment of the present application, optionally, the method provided in the embodiment of the present application may further include, before step 601: the second network element sends a request message to the first network element (for example, Figure 5.6 EAS discovery request as shown, or Figure 5.7 The EAS discovery subscription request shown in FIG. 1 is a request message for the first network element to obtain the migration completion time of the application context of the terminal targeted by the first application server that can provide services for the terminal discovered by the first network element.

[0321] Optionally, in scenario 1) where the enabling server is not replaced, the request message may include an identifier of the second application server and / or location information / address information of the second application server. This facilitates the first network element to determine the application server currently providing services to the terminal, and facilitates subsequent acquisition of required information (e.g., the size of the application context, second related information) from the second application server.

[0322] In scenario 2) of replacing the enabling server, the request message may include the identifier of the first enabling server (e.g., address information of the first enabling server). This facilitates the first network element to determine the enabling server that previously provided services to the terminal, so as to obtain the required information (e.g., the size of the application context, the second related information) from the first enabling server.

[0323] Since the process of determining the migration completion time of the application context of each first application server for the terminal by the first network element is different in different scenarios, the specific implementation will be introduced from different situations below. Figure 6.1 and Figure 6.2 The relevant steps in the embodiment shown can all refer to the description in Case 1) to Case 3):

[0324] Case 1): The first application server determines the completion time of the migration of the application context of the terminal and sends it to the first network element.

[0325] In one embodiment of the present application, the present application embodiment provides a process for a first network element to determine a migration completion time of an application context of a terminal by each first application server. The process includes:

[0326] Step A1: The first network element sends a first request message to each first application server. Correspondingly, each first application server receives the first request message from the first network element.

[0327] The first request message is used to request the first application server to obtain a completion time of migration of the application context of the terminal.

[0328] In a possible implementation, the first request message may include first indication information, where the first indication information is used to request the first application server to complete the migration of the application context of the terminal.

[0329] In another possible implementation, the first request message includes one or more of the second related information of the second application server and the size of the application context.

[0330] The second related information involved in the embodiment of the present application may refer to various information related to the second application server that may affect the migration completion time of the application context, and is not limited to one or more of the location information, load information, or network status of the second application server. This avoids the process of the first application server automatically obtaining one or more of the second related information and the size of the application context.

[0331] For example, the location information of the application server involved in the embodiment of the present application may be a geographical location (such as longitude and latitude, block, etc.), a topological location (such as TA ID, cell ID, etc.) or access information (such as DNAI, etc.), which are uniformly described here and will not be repeated later.

[0332] It is worth noting that providing the location information of the second application server facilitates the first application server to determine the distance between the first application server and the second application server according to the location information of the first application server. This is because, in the case where the distance affects the migration completion time, the migration completion time consumed by migrating the application context to the first application server A is usually higher than the migration completion time consumed by migrating the application context to the first application server B, wherein the distance between the first application server A and the second application server is greater than the distance between the first application server B and the second application server.

[0333] The network status involved in the embodiment of the present application may refer to the network status between the first application server and the second application server, including but not limited to one or more of the following: bandwidth, packet loss rate, etc. The network status of the first application server or the network status of the second application server may refer to the above network status.

[0334] Step A2: Each first application server sends the migration completion time of the application context for the terminal to the first network element. Correspondingly, the first network element obtains the migration completion time of the application context for the terminal from each first application server.

[0335] In one embodiment of the present application, before step A2, the method provided in the embodiment of the present application may also include: the first application server determines the completion time of the migration of the application context of the terminal by the first application server based on one or more of the first relevant information, the second relevant information, and the size of the application context.

[0336] The first relevant information involved in the embodiment of the present application may refer to various information related to the first application server that may affect the completion time of the migration of the application context, and is not limited to one or more of the location information, load information or network conditions corresponding to the first application server.

[0337] If the first application server does not obtain the second related information and the size of the application context from the first network element, the first application server may request the second related information and the size of the application context from the first network element / the second application server or the first enabling server, which is not limited in this embodiment of the present application.

[0338] In a possible implementation of the present application, if each first application server actively sends the migration completion time of its own application context for the terminal to the first network element, the above step A1 can be omitted.

[0339] In another possible implementation of the present application, when the first network element requests each first application server to send the migration completion time of the respective application context for the terminal to the first network element, step A1 is retained. In addition, in this case, the first network element may first send a first request message. Then, based on the feedback from each first application server, the first network element provides the first application server with one or more of the second relevant information of the second application server and the size of the application context. For example, the first network element sends a first request message to the first application server 1 and the first application server 2. After the feedback from the first application server 1, the first application server 1 does not have the size of the application context. The first network element may then send the size of the application context to the first application server 1. If the first application server 2 feedbacks that the first application server 2 does not have the location information of the second application server, the first network element may then send the location information of the second application server to the first application server 2.

[0340] It is worth noting that, in addition to obtaining one or more of the second relevant information of the second application server and the size of the application context from the first network element, each first application server can also obtain one or more of the second relevant information of the second application server and the size of the application context from other network elements (for example, the second application server or the first enabling server), and the embodiments of the present application do not limit this. For example, after receiving the first request message, the first application server obtains one or more of the second relevant information of the second application server and the size of the application context from the second application server.

[0341] This situation 1) can be applicable to the above-mentioned scenarios 1) and 2). In scenario 1), before sending the first request message, the first network element can also: obtain one or more of the second related information of the second application server and the size of the application context from the second application server.

[0342] In scenario 2), the first network element may further perform the following steps before performing step A1: the first network element obtains one or more of the second relevant information of the second application server and the size of the application context from the first enabling server.

[0343] In an optional embodiment of the present application, the first enabling server and / or the second application server may actively send one or more of the second related information of the second application server and the size of the application context to the first network element.

[0344] For example, the second enabling server / first enabling server and / or the second application server pre-stores one or more items of the second related information and / or the application context size. Alternatively, the first enabling server may obtain one or more items of the second related information and / or the application context size from the second application server.

[0345] The second enabling server may pre-store the first related information of each first application server, so that the step of the second enabling server obtaining one or more items of the first related information from each first application server can be omitted.

[0346] In an optional embodiment of the present application, before the first network element obtains one or more of the second related information of the second application server and the size of the application context from the first enabling server and / or the second application server, the method provided by the embodiment of the present application may further include: the first network element sends a third request message to the first enabling server and / or the second application server. Correspondingly, the first enabling server and / or the second application server receives the third request message from the first network element.

[0347] The third request message is used to request one or more of the second related information and the size of the application context of the second application server.

[0348] Optionally, the third request message includes third indication information, where the third indication information is used to request one or more of the second related information of the second application server and the size of the application context.

[0349] As an example, the first network element may obtain the identifier of the first enabling server or the identifier of the second application server from the second network element. The identifier of the first enabling server or the identifier of the second application server may be actively provided by the second network element to the first network element, or may be provided by the second network element to the first network element based on the request of the first network element, which is not limited in the embodiments of the present application.

[0350] As an example, the identifier of the first enabling server may be address information of the first enabling server. For example, the address information of the first enabling server may be an IP address, a fully qualified domain name (FQDN), a unified resource identifier (URI), and the like.

[0351] The identification (such as ID) of the second application server is used to identify a specific service, such as SA6 video, SA6 game, etc. Application servers that can provide a specific service may share the identification of the same application server.

[0352] Case 2): The first network element receives the migration completion time of the application context of the terminal from the third network element.

[0353] In one embodiment of the present application, the embodiment of the present application provides another process in which a first network element determines a migration completion time of an application context of a terminal by each first application server. The process includes:

[0354] Step A3: The first network element sends a second request message to the third network element, and correspondingly, the third network element receives the second request message from the first network element.

[0355] The second request message is used to request each first application server for the completion time of migration of the application context of the terminal.

[0356] In a possible implementation, the second request message includes second indication information, where the second indication information is used to request each first application server to complete the migration of the application context of the terminal.

[0357] In a possible implementation, the second request message includes: one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context. This avoids the third network element from collecting and calculating the information of the migration completion time of the application context on its own.

[0358] In a possible implementation, in a scenario where the enabling server is not replaced, the second request message may also include the identifier or address information of each first application server, and / or the identifier or address information of the second application server. In this way, even if the first network element does not provide the third network element with one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context, the third network element may obtain the respective first relevant information from each first application server based on the identifier or address information of each first application server. And / or, the third network element may obtain one or more of the second relevant information of the second application server and the size of the application context from the second application server based on the identifier or address information of the second application server.

[0359] Alternatively, in the scenario of replacing the enabling server, the second request message may include: the identifier or address information of each first application server, the identifier or address information of the first enabling server, and the identifier or address information of the second application server. In this way, the third network element can obtain one or more of the second relevant information of the second application server and the size of the application context from the first enabling server according to the identifier or address information of the first enabling server.

[0360] For example, the third network element is a network element capable of determining the completion time of migration of the application context of each first application server for the terminal. For example, the third network element is a data analysis network element or an edge configuration server or a policy control function (PCF) network element or a network exposure function (NEF) network element.

[0361] Step A4: The third network element determines the migration completion time of the application context of each first application server for the terminal according to one or more of the first relevant information of each first application server, the size of the application context, and the second relevant information.

[0362] It is worth noting that if the second request message does not carry one or more of the first related information of each first application server, the size of the application context, and the second related information, the third network element can collect relevant information from the corresponding network element on its own. The specific process can refer to the description in the following embodiments and will not be repeated here.

[0363] Step A5: The third network element sends the migration completion time of the application context of each first application server for the terminal to the first network element. Correspondingly, the first network element receives the migration completion time of the application context of each first application server for the terminal from the third network element.

[0364] In a possible embodiment of the present application, the third network element in the embodiment of the present application may actively send the migration completion time of the application context of each first application server for the terminal to the first network element, and step A3 may be omitted.

[0365] This situation 2) can be applicable to the above-mentioned scenarios 1) and 2). In scenario 1), before sending the second request message, the first network element can also: obtain one or more of the second related information of the second application server and the size of the application context from the second application server.

[0366] In scenario 2), before sending the second request message, the first network element may also: obtain one or more of the second relevant information of the second application server and the size of the application context from the first enabling server.

[0367] In case 2), the specific implementation of the first network element obtaining one or more of the second related information of the second application server and the size of the application context from the first enabling server and / or the second application server can refer to the description in case 1) and will not be repeated here.

[0368] In case 2), before sending the second request message, the first network element may also: obtain first relevant information of each first application server from each first application server.

[0369] In a possible embodiment of the present application, each first application server actively sends the first relevant information of each first application server to the first network element.

[0370] In another possible embodiment of the present application, before the first network element obtains the first relevant information of each first application server from each first application server, the method provided in the embodiment of the present application may also include: the first network element sends a fourth request message to each first application server, and the fourth request message is used to request the first relevant information of the first application server.

[0371] It is worth noting that, in the case where each first application server actively sends its own first related information to the first network element, the process of the first network element sending the fourth request message can be omitted.

[0372] As an example, the fourth request message includes fourth indication information, where the fourth indication information is used to request first related information of the first application server.

[0373] Case 3): The first network element determines the completion time of migration of the application context of each first application server for the terminal.

[0374] In one embodiment of the present application, the present application embodiment provides another process for a first network element to determine a migration completion time of an application context of a terminal by each first application server. The process includes:

[0375] Mode 3-1: The first network element obtains one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context.

[0376] In a possible embodiment of the present application, the above-mentioned method 3-1 can be implemented in the following manner: the first network element obtains one or more items of the second relevant information of the second application server and the size of the application context from the second application server and / or the first enabling server, and the first enabling server is associated with the second application server.

[0377] Specifically, when the first network element is the second enabling server, the first network element obtains one or more of the second relevant information of the second application server and the size of the application context from the first enabling server and / or the second application server. At this time, the first enabling server can obtain one or more of the second relevant information of the second application server and the size of the application context from the second application server.

[0378] In the case where the first network element is the third enabling server, the first network element obtains one or more items of second related information of the second application server and a size of the application context from the second application server.

[0379] In a possible implementation, the second application server and / or the first enabling server may actively send one or more of the second related information of the second application server and the size of the application context to the first network element.

[0380] In another possible implementation, the second application server and / or the first enabling server receives a request message from the first network element, where the request message is used to request one or more of the second relevant information of the second application server and the size of the application context. Afterwards, the second application server and / or the first enabling server sends one or more of the second relevant information of the second application server and the size of the application context to the first network element.

[0381] Based on this, before the first network element receives one or more of the second related information of the second application server and the size of the application context from the second application server and / or the first enabling server, the method provided in the embodiment of the present application may also include: the first network element sends a third request message to the second application server and / or the first enabling server, and accordingly, the second application server and / or the first enabling server receives the third request message from the first network element.

[0382] For the first enabling server, the first enabling server may obtain one or more of the second relevant information of the second application server and the size of the application context from the second application server. The second application server may actively or based on a request from the first enabling server send one or more of the second relevant information of the second application server and the size of the application context to the first enabling server.

[0383] Mode 3-2: The first network element determines the migration completion time of the application context of each first application server for the terminal based on one or more of the first relevant information of each first application server, the second relevant information of the second application server, and the size of the application context.

[0384] A possible specific implementation method is that the first network element determines the application context transmission bit rate between the first application server and the second application server based on the first relevant information and the second relevant information, and then calculates the application context migration completion time based on the transmission bit rate and the size of the application context. For example, the application context migration completion time is equal to the product of the application context size and the application context transmission bit rate.

[0385] In case 3), the first network element obtains the first relevant information of each first application server, which can be achieved in the following manner: the first network element sends a fourth request message to each first application server, where the fourth request message is used to request the first relevant information of the first application server. The first network element receives the first relevant information of each first application server.

[0386] The above describes the process of the first network element acquiring the migration completion time of the application context of each first application server for the terminal from different perspectives.

[0387] In a possible embodiment of the present application, in the scenario of replacing the enabling server, when the first network element is the second enabling server and the second network element is the enabling client, the method provided by the embodiment of the present application further includes: the second network element sends the identifier (such as address information) of the first enabling server to the first network element. Correspondingly, the second network element receives the identifier of the first enabling server from the first network element. By providing the identifier of the first enabling server, it is convenient for the first network element to determine that the first enabling server previously provided services to the terminal, and then obtain the size of the application context and one or more of the second related information of the second application server from the first enabling server.

[0388] like Figure 7 As shown, Figure 7 Another communication method provided in an embodiment of the present application includes:

[0389] Step 701: The first network element obtains second information.

[0390] The second information includes one or more of the first relevant information of each first application server among the one or more first application servers associated with the first network element, the second relevant information of the second application server, and the size of the application context.

[0391] The application context is information about the first application for the terminal on the second application server. The second application server is an application server currently providing services for the terminal. The second related information includes one or more of the location information, load information, or network status of the second application server. The first related information includes one or more of the location information, load information, or network status of the first application server.

[0392] Step 702: The first network element sends second information to the second network element. Correspondingly, the second network element receives the second information from the first network element. The second information is used to determine a target application server that provides services for the terminal among the one or more first application servers.

[0393] As an example, the first network element may send a first message to the second network element, where the first message carries the second information.

[0394] In a possible implementation, if the first network element receives a second message from the second network element before executing step 701, and the second message is used to request the first network element to provide information required for determining the completion time of the migration of the application context of the terminal by the first application server, then the first message may be a response message to the second message. For example, the second message is an EAS discovery request, and the first message may be an EAS discovery response. For example, the second message is an EAS discovery subscription request, and the first message may be an EAS discovery notification or an EAS subscription response.

[0395] Step 703: The second network element determines, based on the second information, a target application server that provides services for the terminal from one or more first application servers.

[0396] In a possible implementation of the present application, step 703 may be implemented in the following manner: the second network element determines the migration completion time of the application context of each first application server for the terminal according to the second information. The second network element determines the target application server providing services for the terminal from one or more first application servers according to the migration completion time of the application context of each first application server for the terminal.

[0397] The embodiment of the present application provides a communication method. In the process of replacing the application server providing services for a terminal from a second application server to a target application server, it is necessary to migrate the application context of the terminal on the second application server to the target application server. Although one or more first application servers can provide services for the terminal, the migration completion time required for the application context to be migrated to each first application server is different. Since the application service of the terminal will be temporarily suspended or interrupted during the application context migration process, the migration completion time will affect the operation of the first application of the terminal. Based on this, the first network element obtains the second information and provides the second information to the second network element. Since the second information includes one or more of the first relevant information of each first application server in the one or more first application servers associated with the first network element, the second relevant information of the second application server, and the size of the application context. The content contained in the second information can be used to determine the migration completion time of the application context of each first application server for the terminal. Therefore, after the first network element provides the second information to the second network element, it is convenient for the second network element to determine the target application server providing services for the terminal from the one or more first application servers according to the second information.

[0398] Combining the above scenarios 1) and 2), in scenario 1), Figure 7 In the embodiment shown, the first network element may be a third enabling server. The second network element may be an enabling client or a second application server. Figure 1bAs shown, the third enabling server may be the enabling server 108. The second application server may be the source application server 105. The enabling client may be the EEC 103.

[0399] In scenario 2) Figure 7 In the embodiment shown, the first network element may be a second enabling server, and the second network element may be an enabling client. At this time, the enabling client has accessed the second enabling server. In all embodiments of scenario 2), alternatively, the first network element may be a second enabling server or a first enabling server, a first application server, or an ECS. The second network element may be a first enabling server or a second application server. Figure 1a As shown, the second enabling server may be the target enabling server 102. The second application server may be the source application server 105. The enabling client may be the EEC 103. The first enabling server may be the source enabling server 101.

[0400] In a possible implementation of the present application, the above step 701 can be implemented in the following manner: the first network element receives one or more of the second related information of the second application server and the size of the application context from the second application server or the first enabling server. The first enabling server is associated with the second application server.

[0401] In a possible implementation of the present application, the second application server or the first enabling server may actively send one or more of the second related information of the second application server and the size of the application context to the first network element.

[0402] In a possible implementation of the present application, before the first network element receives one or more of the second relevant information of the second application server and the size of the application context from the second application server or the first enabling server, the method provided in the embodiment of the present application further includes: the first network element sends a third request message to the second application server or the first enabling server, and accordingly, the second application server or the first enabling server receives the third request message from the first network element. The third request message is used to request one or more of the second relevant information of the second application server and the size of the application context.

[0403] For the content of the third request message, please refer to the description in the above embodiment and will not be repeated here.

[0404] In a possible embodiment of the present application, the method provided in the embodiment of the present application further includes: the first network element receives address information of a first enabling server from the second network element, and the first enabling server is associated with the second application server.

[0405] In a possible implementation of the present application, the process by which the first network element obtains the first relevant information of each first application server can refer to the description in the above embodiment and will not be repeated here.

[0406] In a possible embodiment of the present application, before the first network element obtains the first relevant information of each first application server, the method provided in the embodiment of the present application further includes: the first enabling server sends a fifth request message to the first network element, and accordingly, the first network element receives the fifth request message sent from the first enabling server. The fifth request message is used to request the first relevant information of at least one second application server associated with the first network element.

[0407] As an example, the fifth request message includes fifth indication information, and the fifth indication information is used to request first relevant information of at least one second application server associated with the first network element.

[0408] Combined with the above scenario 1), take the first network element as the third enabling server, the second network element as EEC, the first application server as T-EAS, and the second application server as S-EAS as an example. Figure 8 As shown, a method for selecting T-EAS provided in an embodiment of the present application includes:

[0409] Step 801: EEC sends an EAS discovery request to EES, and correspondingly, EES receives the EAS discovery request from EEC, wherein the EAS discovery request includes an EAS identifier.

[0410] Optionally, the EAS discovery request may also include an expected completion time of the migration of the application context.

[0411] Step 802: EES authenticates EEC.

[0412] The specific implementation of step 802 may refer to the description in the prior art and will not be repeated here.

[0413] Step 803: When the authentication is successful, the EES discovers one or more T-EASs.

[0414] Step 804: The EES determines a migration completion time of an application context of the terminal for each T-EAS in one or more T-EASs.

[0415] In a possible implementation, step 804 may be implemented in the following manner: EES obtains one or more of the size of the application context for the terminal on the S-EAS and the second relevant information of the S-EAS. EES obtains the first relevant information of each T-EAS. EES determines the migration completion time of the application context for the terminal of each T-EAS according to one or more of the first relevant information of each T-EAS, the second relevant information of the S-EAS, and the size of the application context.

[0416] For example, taking T-EAS as T-EAS3, EES determines the completion time of the application context migration of T-EAS3 for the terminal based on one or more of the first relevant information of T-EAS3, the size of the application context, and the second relevant information of S-EAS.

[0417] As a possible implementation, the EES obtains the size of the application context for the terminal on the S-EAS, one or more of the second related information of the S-EAS, and the like. Fig.10 The embodiment shown implements.

[0418] As a possible implementation: regarding EES obtaining one or more of the first relevant information of each T-EAS and the second relevant information of the S-EAS, one or more of the first relevant information of each T-EAS can be obtained by Fig.11 The embodiment shown implements.

[0419] Optionally, after step 804, Figure 8 As shown, the method provided in the embodiment of the present application may further include: any one of case A and case B. Case A may include step 805a and step 806a. Case B may include step 805b and step 806b.

[0420] Step 805a: EES selects T-EAS1 according to the migration completion time of each T-EAS for the application context of the terminal.

[0421] As an example, one possible selection method is that the migration completion time of the application context of the terminal selected by the EES T-EAS1 is the shortest among one or more T-EAS. Alternatively, another possible selection method is that the migration completion time of the application context of the terminal selected by the EES T-EAS1 is lower than the expected migration completion time of the application context, which is not limited in the embodiments of the present application. In this case, T-EAS1 can represent at least one T-EAS whose migration completion time of the application context is lower than the expected migration completion time of the application context.

[0422] Step 806a, EES sends an EAS discovery response to EEC. Correspondingly, EEC receives the EAS discovery response from EES. The EAS discovery response includes information of T-EAS1. For example, the information of T-EAS1 is used to identify T-EAS1. For example, the information of T-EAS1 may be address information, identification, etc. of T-EAS1.

[0423] Optionally, when the EAS discovery response includes information about T-EAS1, the EES may also send information indicating the completion time of migration of the application context of the terminal by T-EAS1 to the EEC. For example, the information indicating the completion time of migration of the application context of the terminal by T-EAS1 may be the completion time of migration of the application context of the terminal by T-EAS1, or one or more of the first relevant information of T-EAS1, the second relevant information of S-EAS, and the size of the application context, which is not limited in the embodiments of the present application.

[0424] As an example, information indicating the completion time of migration of the application context of the terminal by T-EAS1 is carried in the EAS discovery response to save signaling overhead between network elements.

[0425] In the embodiment of the present application, steps 805a and 806a are performed after step 804, so that the EES can select T-EAS1 that can provide services to the terminal according to the migration completion time of the application context of each T-EAS for the terminal.

[0426] Optionally, after step 804, Figure 8 As shown, the method provided in the embodiment of the present application may further include: step 805b and step 806b.

[0427] Step 805b: EES sends an EAS discovery response to EEC. Correspondingly, EEC receives the EAS discovery response from EES.

[0428] The EAS discovery response includes the migration completion time of the application context of the terminal for each T-EAS in one or more T-EASs.

[0429] In a possible implementation, the EAS discovery response may also include the EAS profile of each T-EAS.

[0430] It is worth noting that the migration completion time of a T-EAS for a terminal's application context may be included in the EAS profile of the T-EAS or may not be included in the EAS profile. For example, the migration completion time of a T-EASn for a terminal's application context may be included in the EAS profile of the T-EASn.

[0431] Step 806b: The EEC selects T-EAS2 from one or more T-EASs according to the migration completion time of each T-EAS for the application context of the terminal.

[0432] It is worth noting that the specific implementation of step 806b can refer to the specific implementation of step 805a above, which will not be described in detail here. T-EAS2 and T-EAS1 can be the same T-EAS or different T-EASs.

[0433] It is worth noting that after step 804, if EES executes step 805a and step 806a, then step 805b and step 806b can be omitted, or if EES executes step 805b and step 806b, then step 805a and step 806a can be omitted, and the embodiments of the present application do not limit this.

[0434] In one embodiment of the present application, after the EES determines the migration completion time of each T-EAS for the application context of the terminal, the EES can filter out at least one T-EAS from one or more T-EASs. Then, the EES sends the migration completion time of each T-EAS in the at least one T-EAS for the application context of the terminal to the EEC. For example, the EES can remove the T-EAS with the highest migration completion time, or remove the T-EAS with a time higher than a preset time threshold, thereby filtering out at least one T-EAS.

[0435] exist Figure 8 In the illustrated embodiment, if the EAS discovery request in step 801 carries the expected application context migration completion time, when executing step 803, the EES discovers the T-EAS according to the expected application context migration completion time received in step 801, for example, the discovered T-EAS must be a T-EAS that can satisfy the application context migration time being less than or equal to the expected application context migration completion time; or after step 804, the EES determines at least one or more T-EAS information from the migration completion time corresponding to one or more T-EASs determined in step 804 according to the expected application context migration completion time received in step 801. After step 804, the EES sends at least one T-EAS information to the EEC. At this time, the EES may not execute any of case A and case B. Optionally, the migration completion time of the application context of the terminal by the at least one T-EAS is less than or equal to the expected application context migration completion time.

[0436] The expected application context migration completion time carried in the EAS discovery request. The expected application context migration completion time indicates the requirement for application context migration time for the discovery or selection of T-EAS. A specific example is that the expected application context migration completion time is 10 milliseconds, which means that the application context migration time between the discovered or selected T-EAS and S-EAS cannot exceed 10 milliseconds.

[0437] Combined with scenario 1, Fig. 9 Another method for selecting T-EAS provided in an embodiment of the present application is shown. The method takes the first network element as EES, the second network element as EEC, the first application server as T-EAS, and the second application server as S-EAS as an example. The method includes:

[0438] Step 901: Execute the complete EEC subscription to EES EAS discovery process. This process is a prior art, and its purpose is to trigger the EAS discovery notification process when the trigger condition is met.

[0439] Step 902: EAS finds that the notification triggering condition is met, and EES triggers the notification process.

[0440] For example, optionally, in step 902, the EEC sends the expected application context migration completion time to the EES.

[0441] Step 903: The EES discovers one or more T-EASs.

[0442] Step 904 is the same as step 804 and will not be described again here.

[0443] Step 905a is the same as step 805a and will not be repeated here.

[0444] Step 906a: EES sends an EAS discovery notification to EEC. Correspondingly, EEC receives the EAS discovery notification from EES, wherein the EAS discovery notification includes information of T-EAS1.

[0445] Optionally, the information content carried in the EAS discovery notification may refer to the message content carried in the EAS discovery response in the above step 806a, which will not be described in detail here.

[0446] In the embodiment of the present application, by performing step 905a and step 906a after step 904, the EES can select a T-EAS that can provide services to the terminal according to the migration completion time of the application context of each T-EAS for the terminal.

[0447] Optionally, after step 904, Fig. 9 The illustrated embodiment may further include step 905b and step 906b.

[0448] Step 905b: EES sends an EAS discovery notification to EEC. Correspondingly, EEC receives the EAS discovery notification sent by EEC from EES. The EAS discovery notification includes the migration completion time of the application context of the terminal for each T-EAS in one or more T-EASs.

[0449] Optionally, the EAS discovery response may also include the EAS profile of each T-EAS.

[0450] It is worth noting that the migration completion time of the application context of a T-EAS for a terminal may be included in the EAS profile of the T-EAS, or may not be included in the EAS profile.

[0451] Step 906b: The EEC selects T-EAS2 from one or more T-EASs according to the migration completion time of each T-EAS for the application context of the terminal.

[0452] It is worth noting that after step 904, if EES executes step 905a and step 906a, then step 905b and step 906b can be omitted, or if EES executes step 905b and step 906b, then step 905a and step 906a can be omitted, and the embodiments of the present application do not limit this.

[0453] exist Fig. 9 In the illustrated embodiment, if the EAS discovery request in step 901 carries the expected application context migration completion time, when executing step 903, the EES discovers the T-EAS according to the expected application context migration completion time received in step 901. For example, the discovered T-EAS must be a T-EAS that can satisfy the application context migration completion time that is less than or equal to the expected application context migration completion time; or after step 904, the EES determines the information of at least one or more T-EASs from the migration completion time corresponding to one or more T-EASs determined in step 904 according to the expected application context migration completion time received in step 901. After step 904, the EES sends the information of at least one T-EAS to the EEC. At this time, the EES may not execute any of situation A and situation B. Optionally, the migration completion time of the application context of the terminal by the at least one T-EAS is less than or equal to the expected application context migration completion time.

[0454] Fig. 9 The embodiment shown is Figure 8 The differences between the illustrated embodiments are: Figure 8The T-EAS discovery process "request-response" model is based on the EEC. Fig. 9 Based on the EAS discovery subscription-notification model "subscription process.

[0455] like Fig.10 As shown, Fig.10 An EES provided in an embodiment of the present application obtains one or more of the size of an application context for a terminal on an S-EAS and second related information of the S-EAS, the method comprising:

[0456] Step 1001: EES sends a request message 1 to S-EAS. Correspondingly, S-EAS receives the request message 1 from EES.

[0457] Among them, request message 1 is used to request the size of the application context of the terminal and one or more of the second related information of S-EAS. For example, request message 1 may include the identifier of the terminal, so that S-EAS can determine the terminal corresponding to the size of the application context provided to EES. For example, if the terminal has multiple application contexts of applications on S-EAS, S-EAS will provide the application contexts of multiple applications as the application context of the terminal to EES, which can be called the application context of terminal granularity. Or request message 1 may also include the identifier of the first application, so that S-EAS can determine the size of the application context of the first application of the terminal to be provided to EES, which can be called the application context of application granularity. Or request message 1 may also include the identifier of EEC, so that S-EAS can determine the EEC corresponding to the application context provided to EES.

[0458] As an example, in the case where the EES stores the location information of the S-EAS, the request message 1 is used to request one or more of the size of the application context, the load information of the S-EAS, and the network status.

[0459] As another example, when the EES does not store the location information of the S-EAS, the request message 1 can be used to request the location information of the S-EAS in addition to requesting one or more of the size of the application context, the load information of the S-EAS, and the network status of the S-EAS. Of course, when the EES has the size of the application context and the load information of the S-EAS, the request message 1 is used to request one or more of the network status of the S-EAS and the location information of the S-EAS.

[0460] Step 1002: S-EAS sends a response message 1 to EES. Correspondingly, EES receives the response message 1 from S-EAS. The response message 1 includes one or more of the size of the application context and the second related information of S-EAS.

[0461] It is worth noting that, in a scenario where the S-EAS proactively provides the EES with one or more of the second related information of the S-EAS and the size of the application context, the above step 1001 may be omitted.

[0462] like Fig.11 As shown, Fig.11 A process for an EES to obtain first relevant information of each T-EAS provided in an embodiment of the present application, Fig.11 Taking one or more T-EASs including T-EAS1, ...T-EASn as an example, the method includes:

[0463] Step 1101: EES sends a request message 2 to each T-EAS in T-EAS1, ..., T-EASn. Correspondingly, each T-EAS receives the request message 2 from EES.

[0464] The request message 2 is used to request one or more of the load information, location information, and network status of the T-EAS.

[0465] It is worth noting that the contents requested by the request message 2 sent by EES to different T-EASs may be the same or different. For example, if EES does not have the location information of T-EAS1, but has the location information of T-EAS2, the request message 2 sent by EES to T-EAS1 is also used to request the location information of T-EAS1, but the request message 2 sent by EES to T-EAS2 does not need to request the location information of T-EAS2.

[0466] As an example, the request message 2 includes indication information 2, and the indication information 2 is used to request one or more of load information, location information, and network status of the T-EAS.

[0467] Step 1102: Each T-EAS sends a response message 2 to the EES. Accordingly, the EES receives the response message 2 from each T-EAS.

[0468] The response message 2 of a T-EAS includes one or more of the load information, location information, and network status of the T-EAS.

[0469] It is worth noting that the information provided by different T-EAS to EES can be the same or different. For example, T-EAS1 provides EES with its load information and network status, while T-EAS2 provides EES with its load information, network status and location information. Alternatively, both T-EAS1 and T-EAS2 provide EES with their own load information and network status.

[0470] It is worth noting that in a scenario where the T-EAS actively provides the EES with one or more of the T-EAS load information, location information, and network status, the above step 1101 may be omitted.

[0471] It is worth mentioning that Fig.11 The example in this section is only about EES obtaining the required information from S-EAS. Fig.11 The EES in the example can also be replaced by S-EES / T-EES. Similarly, in a scenario where EAS replacement has not occurred, T-EAS can also be replaced by the EAS currently providing services to the terminal.

[0472] Combined with scenario 2, due to terminal movement or overload of the EES (which can be called S-EES, corresponding to the first enabling server in this application) currently providing services to the terminal, or S-EES shutdown or failure or other reasons, S-EES can no longer provide services to the terminal, or is no longer the most suitable EES to serve the terminal. At this time, the EEC will first trigger the service provisioning process, in which the EEC interacts with the ECS to obtain the identification and address information of the T-EES. It can be understood that the T-EES is the EES that can provide services to the terminal. In this case, it is assumed that the EEC has been connected to the T-EES. Then, if Fig.12 As shown, taking the first network element as T-EES, the second network element as EEC, the first application server as T-EAS, and the second application server as S-EAS as an example, an embodiment of the present application provides a method for selecting T-EAS, which includes:

[0473] Step 1201: EEC obtains the address information of T-EES and accesses T-EES.

[0474] For example, step 1201 may be implemented in the following manner: the EEC may obtain the T-EES address information from the ECS through a service provisioning process.

[0475] Step 1202: EEC sends an EAS discovery request to T-EES. Correspondingly, T-EES receives the EAS discovery request from EEC.

[0476] The difference between the EAS discovery request in step 801 and the EAS discovery request in step 1202 is that the EAS discovery request in step 1202 includes at least one of the following two items:

[0477] (1) S-EAS location information. The location information can be a geographic location (such as longitude and latitude, block, etc.), a topological location (such as TA ID, cell ID, etc.) or access information (such as DNAI, etc.). The S-EAS is the EAS currently providing services to the terminal, that is, the EAS that provided services to the terminal before the terminal accessed the T-EAS.

[0478] (2) S-EES address information and S-EAS ID. The S-EES address information can be an IP address, FQDN, URI, etc. The S-EAS ID identifies a specific service, such as SA6 video, SA6 game, etc. The EAS that can provide a specific service shares the same EAS ID.

[0479] Optionally, the EAS discovery request may further include an S-EAS identifier.

[0480] Steps 1203 to 1205 are the same as steps 802 to 804 and will not be repeated here.

[0481] Steps 1206a to 1207b are the same as steps 805a to 806a and will not be repeated here.

[0482] Steps 1206b to 1207b are the same as steps 805b to 806b and will not be repeated here.

[0483] exist Fig.12 In the illustrated embodiment, if the EAS discovery request in step 1202 carries the expected application context migration completion time, then the steps after step 1205 may be replaced by the following steps: T-EES sends at least one T-EAS message to EEC. Optionally, the migration completion time of the application context of the terminal by at least one T-EAS is less than or equal to the expected application context migration completion time.

[0484] exist Fig.12In the illustrated embodiment, if the EAS discovery request in step 1202 carries the expected application context migration completion time, when executing step 1204, T-EES discovers T-EAS according to the expected application context migration completion time received in step 1202, for example, the discovered T-EAS must be a T-EAS that can satisfy the application context migration completion time less than or equal to the expected application context migration completion time. Or if the EAS discovery request in step 1202 carries the expected application context migration completion time, after step 1205, T-EES determines at least one or more T-EAS information from the migration completion time corresponding to one or more T-EASs determined in step 1205 according to the expected application context migration completion time received in step 1202. After step 1205, T-EES sends at least one T-EAS information to EEC. At this time, T-EES may not execute any of case A and case B. Optionally, the migration completion time of the application context of the at least one T-EAS for the terminal is less than or equal to the expected application context migration completion time.

[0485] Combined with scenario 2, take the first network element as T-EES and the second network element as EEC as an example. Fig.13 Another method for selecting T-EAS provided by an embodiment of the present application is shown, which includes:

[0486] Subscription process part and notification part, wherein the subscription process part includes steps 1301 to 1303, and the notification part includes steps 1304 to 1307b:

[0487] Step 1301: EEC discovers T-EES.

[0488] For the specific implementation of step 1301, please refer to the description of step 1201 above, which will not be repeated here.

[0489] Step 1302: EEC sends an EAS discovery subscription request to T-EES. Accordingly, T-EES receives the EAS discovery subscription request from EEC. The EAS discovery subscription request is used to subscribe to second information. The second information is used to determine the migration completion time of each T-EAS for the application context of the terminal.

[0490] Step 1303: When the authentication is successful, T-EES sends an EAS subscription response to EEC. Correspondingly, EEC receives the EAS subscription response from T-EES.

[0491] The EAS subscription response is used to notify the EEC of a successful subscription (or a subscription failure), including information such as the subscription ID or validity period.

[0492] Step 1304: T-EES triggers EAS discovery notification.

[0493] Step 1305: T-EES discovers one or more T-EASs.

[0494] Step 1306: The T-EES determines a migration completion time of an application context of the terminal for each T-EAS in one or more T-EASs.

[0495] For the specific implementation of step 1306, please refer to Figure 14 to Figure 16 The embodiments described in any of the figures will not be described in detail here.

[0496] Step 1307a to step 1308a are the same as step 905a to step 905b.

[0497] Step 1307b to step 1308b are the same as step 905b to step 906b.

[0498] exist Fig.13 In the illustrated embodiment, if the EAS in step 1302 finds that the subscription request carries the expected application context migration completion time, the steps after step 1306 may be replaced by the following steps: T-EES sends at least one T-EAS message to EEC. Optionally, the migration completion time of the application context of the terminal by at least one T-EAS is less than or equal to the expected application context migration completion time.

[0499] Above Figure 8 to Figure 13 In the illustrated embodiment, in the T-EAS discovery process, EES / T-EES determines the migration completion time of each T-EAS for the application context of the terminal, and selects a T-EAS according to the migration completion time corresponding to each T-EAS, or sends the migration completion time corresponding to each T-EAS to EEC, and EEC selects T-EAS according to the migration completion time corresponding to each T-EAS, thereby achieving the technical effect of selecting T-EAS according to the migration completion time corresponding to each T-EAS.

[0500] like Fig.14 As shown, it is a process for the first network element to determine the migration completion time corresponding to each T-EAS in an embodiment of the present application. In this method, taking the first network element as T-EES as an example, the method includes:

[0501] Step 1401: T-EES sends a request message 3 to S-EES. Correspondingly, S-EES receives the request message 3 from T-EES.

[0502] The request message 3 is used to request the size of the application context of the terminal and / or the second related information of the S-EAS. Optionally, the request message 3 includes an identifier of the S-EAS.

[0503] Optionally, the request message 5 includes indication information, which is used to request the size of the application context of the terminal and / or the second related information of the S-EAS. Optionally, the request message 3 also includes the identifier of the terminal, so that the S-EES can provide the T-EES with the size of the application context of the terminal with the terminal as the granularity, and / or the second related information of the S-EAS. Or the request message 3 also includes the identifier of the first application. In this way, the S-EES can provide the T-EES with the size of the application context of the terminal with the first application of the terminal as the granularity, and / or the second related information of the S-EAS.

[0504] Step 1402: In response to the request message 3 from the T-EES, the S-EES provides the T-EES with the size of the application context of the terminal and / or the second related information of the S-EAS. Accordingly, the T-EES receives the size of the application context of the terminal and / or the second related information of the S-EAS from the S-EES.

[0505] It is worth noting that, in the case where the S-EES actively sends the size of the application context of the terminal and / or the second related information of the S-EAS to the T-EES, the above step 1401 can be omitted.

[0506] It is worth noting that, when T-EES has the size of the application context of the terminal and / or the second relevant information of S-EAS, the above steps 1401 and 1402 can be omitted. When T-EES does not have the size of the application context of the terminal and / or the second relevant information of S-EAS, steps 1401 and 1402 need to be performed.

[0507] It is worth noting that, when S-EES does not have the size of the application context of the terminal and / or the second related information of S-EAS, the above method may also include: S-EES obtains the size of the application context of the terminal and / or the second related information of S-EAS from S-EAS.

[0508] Step 1403: T-EES discovers one or more T-EASs.

[0509] Step 1404: T-EES sends a request message 4 to each T-EAS. Accordingly, each T-EAS receives the request message 4 from the T-EES.

[0510] The request message 4 is used to request the first relevant information of the T-EAS. It is worth noting that if the T-EES stores the location information of the T-EAS, the request message 4 does not need to request the location information of the T-EAS.

[0511] Step 1405: Each T-EAS provides the T-EES with its own first relevant information.

[0512] It should be noted that if at least one T-EAS in each T-EAS actively sends the first relevant information to the T-EES, then the T-EES does not need to perform step 1404 .

[0513] Step 1406: The T-EES determines the migration completion time of the application context of each T-EAS for the terminal according to one or more of the first relevant information, the second relevant information, and the size of the application context of each T-EAS.

[0514] It is worth noting that the above steps 1401 to 1402 and steps 1404 to 1405 do not distinguish between the order of priority. It only requires that T-EES can obtain the above information before executing step 1406. The embodiment of the present application does not limit this.

[0515] Fig.14 In the illustrated embodiment, T-EES determines the completion time of migration of the application context of each T-EAS for the terminal by obtaining the first relevant information of each T-EAS, the size of the application context and the second relevant information of the S-EAS from each T-EAS. T-EES obtains the load information of the T-EAS from the T-EAS, obtains the location information of the T-EAS from the T-EES or the T-EAS, and obtains the size of the application context and the second relevant information of the S-EAS from the S-EES or the process of calling this embodiment.

[0516] like Fig.15 As shown, Fig.15 Another method for determining the completion time of migration of application context of each T-EAS for a terminal provided in an embodiment of the present application is as follows: Fig.15 Taking one or more T-EASs including T-EAS1, ..., T-EAS2n, where n is an integer greater than or equal to 1 as an example, the method includes:

[0517] Steps 1501 to 1503 are the same as steps 1401 to 1403 and will not be repeated here.

[0518] Step 1504a: T-EES sends a request message 5 to T-EAS1. Correspondingly, T-EAS1 receives the request message 5 from T-EES.

[0519] The request message 5 is used to request T-EAS1 to complete the migration of the application context of the terminal.

[0520] Optionally, the request message 5 carries the size of the application context and second related information of the S-EAS.

[0521] Step 1505a: T-EAS1 determines the completion time of the migration of the application context of the terminal by T-EAS1 according to one or more of the second relevant information of S-EAS, the first relevant information of T-EAS1, and the size of the application context.

[0522] It is worth noting that if T-EES does not provide T-EAS1 with the size of the application context and the second related information of S-EAS, T-EAS1 can also obtain the size of the application context and the second related information of S-EAS from T-EES / S-EES / S-EAS after receiving the request message 5.

[0523] Step 1506a: T-EAS1 sends the migration completion time of the application context of the terminal to T-EES. Correspondingly, T-EES receives the migration completion time of the application context of the terminal from T-EAS1.

[0524] Step 1504b, T-EES sends a request message 6 to T-EASn. Correspondingly, T-EAS2 receives the request message 6 from T-EES. The request message 6 is used to request T-EAS2 to complete the migration of the application context of the terminal.

[0525] Optionally, the request message 6 carries the size of the application context and second related information of the S-EAS.

[0526] Step 1505b: T-EASn determines the completion time of the migration of the application context of the terminal according to the second relevant information of S-EAS, one or more of the first relevant information of T-EASn and the size of the application context.

[0527] Step 1506b: T-EASn sends T-EASn the completion time of the application context migration for the terminal to T-EES. Correspondingly, T-EES receives T-EAS2's completion time of the application context migration for the terminal from T-EASn.

[0528] The specific implementation of steps 1505b to 1506b may refer to the description of steps 1505a to 1506a above, which will not be repeated here.

[0529] Fig.16Another method for determining the completion time of migration of application context of each T-EAS for a terminal provided in an embodiment of the present application is as follows: Fig.16 Taking one or more T-EASs including T-EAS1, ..., T-EASn as an example, the method includes:

[0530] Steps 1601 to 1603 are the same as steps 1401 to 1403 and will not be repeated here.

[0531] Step 1604a: T-EES sends a request message 7 to T-EAS1. Correspondingly, T-EAS1 receives the request message 7 from T-EES.

[0532] The request message 7 is used to request the first relevant information of T-EAS 1. For example, the request message 7 carries indication information 7, and the indication information 7 is used to request the first relevant information of T-EAS 1.

[0533] Step 1605a, T-EAS1 sends one or more of T-EAS1's load information, location information, and network status to T-EES. Correspondingly, T-EES receives one or more of T-EAS1's load information, location information, and network status from T-EAS1.

[0534] Step 1604b: T-EES sends a request message 8 to T-EASn. Correspondingly, T-EASn receives the request message 8 from T-EES.

[0535] The request message 8 is used to request the first relevant information of T-EASn. For example, the request message 8 carries indication information 8, and the indication information 8 is used to request the first relevant information of T-EASn.

[0536] It is worth noting that T-EES can obtain the load information of T-EAS1, but only the load information and location information of T-EASn.

[0537] Step 1605b: T-EASn sends one or more of T-EASn's load information, location information, and network status to T-EES. Correspondingly, T-EES receives one or more of T-EASn's load information, location information, and network status from T-EASn.

[0538] Step 1606: T-EES sends a request message 9 to the ECS or NWDAF network element. Correspondingly, the ECS or NWDAF network element receives the request message 9 from T-EES.

[0539] The request message 9 is used to request the completion time of the migration of the application context of the terminal for each T-EAS in T-EAS1, ..., T-EASn. Optionally, the request message 9 carries indication information 9. The indication information 9 is used to request the completion time of the migration of the application context of the terminal for each T-EAS in T-EAS1, ..., T-EASn.

[0540] Optionally, the request message 9 includes one or more of the following information: first related information of each T-EAS, the size of the application context, and second related information of the S-EAS.

[0541] It is worth noting that, when the T-EES has the first relevant information of each T-EAS, the above steps 1604a to 1605a and steps 1604b to 1605b can be omitted. If the T-EES has the first relevant information of some T-EAS, then only the step of obtaining the first relevant information from these T-EASs can be omitted.

[0542] It is worth noting that, in the case where the size of the application context or the second related information of the S-EAS is included in the T-EES, the above steps 1601 to 1602 may be omitted.

[0543] Step 1607: The ECS or NWDAF network element determines the migration completion time of the application context of each T-EAS for the terminal according to one or more of the first relevant information of each T-EAS, the second relevant information of the S-EAS, and the size of the application context.

[0544] It is worth noting that, when the request message 9 does not include the first relevant information of each T-EAS, the size of the application context, and the second relevant information of the S-EAS, the ECS or NWDAF network element may also include before executing step 1607: the ECS or NWDAF network element obtains one or more of the first relevant information of each T-EAS, the second relevant information of the S-EAS, and the size of the application context. As an example, the ECS or NWDAF network element can obtain one or more of the first relevant information of each T-EAS, the second relevant information of the S-EAS, and the size of the application context from the T-EES. At this time, the T-EES can obtain the required information by executing steps 1601 to 1602, steps 1604a to 1605a, steps 1604b to 1605b, etc., and provide it to the ECS or NWDAF network element. As another example, the ECS or NWDAF network element can obtain the first relevant information of each T-EAS from each T-EAS, and obtain the size of the application context and the second relevant information of the S-EAS from the S-EAS or S-TEES. As for the address information and other identifiers of the S-EAS or S-TEES, the T-EES may provide them to the ECS or NWDAF. For example, the address information and other identifiers of the S-EAS or S-TEES may be carried in the request message 9 .

[0545] Step 1608: The ECS or NWDAF network element provides the T-EES with the migration completion time of the application context of each T-EAS for the terminal.

[0546] It is worth noting that the ECS or NWDAF network element can be replaced by any non-edge deployment, and the network element replacement time of the migration completion time of each T-EAS for the terminal application context can be determined according to the application context size, and the location and load information of the S-EAS and each T-EAS. For example, the ECS or NWDAF network element can be replaced by an NEF network element or a PCF network element.

[0547] Combined with the above scenario 1), take the first network element as the third enabling server (for example, EES), the second network element as EEC, the first application server as T-EAS, and the second application server as S-EAS as an example, Fig.17 As shown, a method for selecting T-EAS provided in an embodiment of the present application includes:

[0548] Steps 1701 to 1703 are the same as steps 801 to 803 and will not be repeated here.

[0549] Step 1704: The EES determines one or more of location information, load information, or network status of each T-EAS in the one or more T-EASs.

[0550] For the specific implementation of step 1704, please refer to the above Fig.11 The relevant description in the illustrated embodiment will not be repeated here.

[0551] It is worth noting that if the EES has the location information, load information or network status of each T-EAS, step 1704 can be omitted. If the EES does not have the location information, load information or network status of each T-EAS or only has part of the above information or the location information, load information or network status of some T-EAS, the EES can be Fig.11 Obtain the remaining required information in the manner shown.

[0552] Step 1705: The EES determines the size of the application context of the terminal, and one or more of the location information, load information, or network status of the S-EAS.

[0553] For the implementation of step 1705, please refer to the above Fig.10 The description in the illustrated embodiment will not be repeated here.

[0554] It is worth noting that if the EES has the size of the application context, and the location information, load information or network status of the S-EAS, then step 1705 can be omitted. If the EES does not have the size of the application context, and the location information, load information or network status of the S-EAS, or only has part of the above information, then the EES can be Fig.10 Obtain the required information in the manner shown.

[0555] Step 1706: EES sends an EAS discovery response to EEC. Correspondingly, EEC receives the EAS discovery response from EES.

[0556] The EAS discovery response includes one or more of the following information: the size of the application context, and one or more of the location information, load information or network status of the S-EAS, and one or more of the location information, load information or network status of each T-EAS.

[0557] Step 1707: The EEC selects a T-EAS from one or more T-EASs to provide services for the terminal based on one or more of the following information: the size of the application context, and one or more of the location information, load information, or network status of the S-EAS, and one or more of the location information, load information, or network status of each T-EAS.

[0558] As an example, step 1707 may be implemented in the following manner: the EEC determines the migration completion time of the application context of the terminal targeted by each T-EAS according to one or more of the following information: the size of the application context, and one or more of the location information, load information, or network status of the S-EAS, and one or more of the location information, load information, or network status of each T-EAS. The EEC selects a T-EAS from one or more T-EASs to provide services for the terminal according to the migration completion time of the application context of the terminal targeted by each T-EAS.

[0559] For example, the EEC determines the completion time of the application context migration of the terminal targeted by T-EAS1 based on the size of the application context and one or more of the location information, load information or network status of S-EAS and one or more of the location information, load information or network status of T-EAS1.

[0560] Combined with scenario 2, take the first network element as T-EES, the second network element as EEC, the first application server as T-EAS, and the second network element as S-EAS as an example. Fig.18 As shown, an embodiment of the present application provides a method for selecting T-EAS, which includes:

[0561] Steps 1801 to 1804 are the same as steps 1201 to 1204 and will not be repeated here.

[0562] Step 1805: The EES determines one or more of location information, load information, or network status of each T-EAS in the one or more T-EASs.

[0563] It is worth noting that in Fig.18 In the illustrated embodiment, the specific implementation of step 1805 may refer to the description of steps 1404 to 1405 and will not be repeated here.

[0564] Step 1806: The EES determines the size of the application context and one or more of the location information, load information, or network status of the S-EAS.

[0565] It is worth noting that in Fig.18 In the illustrated embodiment, the specific implementation of step 1806 may refer to the description of steps 1401 to 1402 .

[0566] Steps 1807 to 1808 are the same as steps 1706 to 1707 and will not be repeated here.

[0567] In combination with scenario 1, taking the first network element as EES and the second network element as EEC as an example, the embodiment of the present application provides another method for determining T-EAS, such as Fig.19 As shown, the method includes:

[0568] Step 1901 to step 1903 are the same as steps 901 to step 903.

[0569] Steps 1904 to 1905 are the same as steps 1704 to 1705 and will not be repeated here.

[0570] Step 1906: EES sends an EAS discovery notification to EEC. EEC receives the EAS discovery notification from EES.

[0571] The EAS discovery notification includes one or more of the following information: the size of the application context, and one or more of the location information, load information or network status of the S-EAS, and one or more of the location information, load information or network status of each T-EAS.

[0572] Step 1907 is the same as step 1707 and will not be repeated here.

[0573] In combination with scenario 2), taking the first network element as T-EES and the second network element as EEC as an example, an embodiment of the present application provides another method for determining T-EAS, the method comprising:

[0574] Step 2001, EEC discovers T-EES.

[0575] For the specific implementation of step 2001, please refer to the description of step 1301 above, which will not be repeated here.

[0576] Step 2002: EEC sends an EAS discovery subscription request to T-EES. Correspondingly, T-EES receives the EAS discovery subscription request from EEC. The EAS discovery subscription request is used to subscribe to second information. The second information is used to determine the migration completion time of each T-EAS for the application context of the terminal.

[0577] Optionally, the EAS discovery subscription request carries the address information of the S-EES, so that the T-EES can determine the address of the S-EES that previously provided services to the terminal. Optionally, the EAS discovery subscription request also carries the location information of the S-EAS, or one or more of the identifiers, so that the T-EES can determine which S-EAS is currently providing services to the terminal, so that when step 2007 is subsequently executed, the size of the application context, and one or more of the location information, load information, or network status of the S-EAS can be obtained from the S-EAS.

[0578] Step 2003: If the authentication is successful, T-EES sends an EAS subscription response to EEC. Correspondingly, EEC receives the EAS subscription response from T-EES.

[0579] The above steps 2001 to 2003 may be regarded as a subscription process.

[0580] Step 2004: T-EES triggers EAS discovery notification.

[0581] Step 2005: T-EES discovers one or more T-EASs.

[0582] Please refer to the descriptions of other embodiments above and will not go into details here.

[0583] Step 2006: The T-EES determines one or more of location information, load information, or network status of each T-EAS in the one or more T-EASs.

[0584] For the specific implementation of step 2006, please refer to the relevant description at 1805 above, which will not be repeated here.

[0585] Step 2007: T-EES determines the size of the application context of the terminal, and one or more of the location information, load information, or network status of the S-EAS.

[0586] For the specific implementation of step 2007, please refer to the relevant description at 1806 above, which will not be repeated here.

[0587] It is worth noting that if the T-EES has the size of the application context of the terminal, and one or more of the location information, load information or network status of the S-EAS, step 2007 can be omitted.

[0588] Steps 2008 to 2009 are the same as steps 1906 to 1907 and will not be repeated here.

[0589] Fig. 20 The embodiments shown and Fig.19 The embodiments shown are all under scenario 2, where the T-EES provides the EEC with information X for determining the completion time of the migration of the application context of each first application server for the terminal. For example, the information X includes one or more of the following: the application context size, and one or more of the location information, load information, or network status of the S-EAS, and the location information, load information, or network status of each T-EAS. The EEC selects a T-EAS serving the terminal based on the information X. The difference is that: Fig.19 The illustrated embodiment adopts a "request-response" model of the T-EAS discovery process initiated by the EEC. Fig. 20 The T-EAS discovery process "subscribe-notify" model initiated by the EEC is adopted.

[0590] like Fig.21 As shown, in combination with scenario 2, taking the first network element as T-EES and the second network element as S-EES as an example, an embodiment of the present application provides another method for selecting T-EAS, the method comprising:

[0591] Step 2101: S-EAS sends an EAS discovery request 10 to S-EES. Correspondingly, S-EES receives the EAS discovery request 10 from S-EAS.

[0592] The EAS discovery request 10 is used to request the S-EES to provide the migration completion time of the application context of the terminal in each T-EAS that can provide services to the terminal.

[0593] Among them, the EAS discovery request 10 includes the S-EAS ID and information used by the S-EAS side to determine the migration completion time, which includes but is not limited to the following: one or more of the following: S-EAS location information, S-EAS load information, S-EAS network status, and the size of the terminal's application context.

[0594] If any of the information (such as the location information of the S-EAS) is also stored in the S-EES, then the message does not need to include such information of the S-EAS.

[0595] Step 2102: After receiving the EAS discovery request 10 from the S-EAS, the S-EES determines to execute the ACR, that is, executes the subsequent steps.

[0596] It can be understood that step 2102 and step 2101 are performed when and only when the process is a T-EAS discovery process initiated by S-EAS.

[0597] Step 2103: S-EES interacts with ECS to obtain the ID and address information of T-EES to access T-EES.

[0598] The specific implementation of step 2103 can refer to the description in the prior art and will not be repeated here.

[0599] Step 2104: S-EES sends an EAS discovery request 11 to T-EES. Correspondingly, T-EES receives the EAS discovery request 11 from S-EES.

[0600] The EAS discovery request 11 is used to request the T-EES to provide the migration completion time of the application context of the terminal for each T-EAS in the discovered T-EAS.

[0601] As an example, the EAS discovery request 11 includes: one or more of: S-EAS location information, S-EAS network status, S-EAS load information, and application context size. Optionally, the EAS discovery request 11 may also include an S-EES identifier and an S-EAS identifier.

[0602] If step 2101 is executed, one or more of the above-mentioned S-EAS location information, S-EAS network status, S-EAS load information, and application context size can be obtained through step 2101, or the S-EES locally stores part of the above-mentioned S-EAS location information, S-EAS network status, S-EAS load information, and application context size.

[0603] If step 2101 is not performed, then S-EES can Fig.10 and Fig.11 The method described in the illustrated embodiment obtains all or part of the information including the location information of the S-EAS, the network status of the S-EAS, the load information of the S-EAS, and the size of the application context from the S-EAS.

[0604] Step 2105: The T-EES determines one or more T-EASs.

[0605] Step 2106: The T-EES determines a migration completion time of an application context of the terminal for each T-EAS in one or more T-EASs.

[0606] In an optional embodiment of the present application, after step 2106, as Fig.21 The illustrated embodiment may also include step 2107a and step 2108a.

[0607] Step 2107a: T-EES selects T-EAS1 according to the migration completion time of each T-EAS for the application context of the terminal.

[0608] As an example, one possible selection method is that the migration completion time of the application context of the terminal selected by T-EAS1 of T-EES is the shortest among one or more T-EASs. In this case, the number of T-EAS1 selected is one, or the migration completion time of the application context of the terminal selected by T-EAS1 of T-EES is lower than the migration completion time of the preset application context. The embodiments of the present application are not limited to this.

[0609] Step 2108a: T-EES sends EAS discovery response 11 to S-EES, and correspondingly, S-EES receives EAS discovery response 11 from T-EES, wherein EAS discovery response 11 includes information of T-EAS1.

[0610] Optionally, when the EAS discovery response 11 includes information of T-EAS1, T-EES may also send information indicating the completion time of migration of the application context of the terminal by T-EAS1 to S-EES. For example, the information indicating the completion time of migration of the application context of the terminal by T-EAS1 may be the completion time of migration of the application context of the terminal by T-EAS1, which is not limited in the embodiments of the present application.

[0611] As an example, information indicating the completion time of migration of the application context of the terminal by T-EAS1 is carried in the EAS discovery response 11 .

[0612] Optional, in Fig.21 In the case where the embodiment shown is triggered by S-EAS, it is optional, such as Fig.21 As shown, after step 2108a, the following may also be included:

[0613] Step 2109a: S-EES sends a discovery response message 10 to S-EAS. Accordingly, S-EAS receives the EAS discovery response 10 from S-EES, including the information of T-EAS1.

[0614] It is worth noting that in Fig.21 In the illustrated embodiment, when the process is triggered by S-EES, step 2109a may be omitted.

[0615] In an optional embodiment of the present application, Fig.21 As shown, the method provided in the embodiment of the present application may further include, after step 2106:

[0616] Step 2107b: T-EES sends an EAS discovery response 12 to S-EES. Accordingly, S-EES receives the EAS discovery response 12 from T-EES. The EAS discovery response 12 includes the migration completion time of the application context of the terminal for each T-EAS in one or more T-EASs.

[0617] Optionally, the EAS discovery response 12 may also include an EAS profile of each T-EAS.

[0618] It is worth noting that the migration completion time of the application context of a T-EAS for a terminal may be included in the EAS profile of the T-EAS, or may not be included in the EAS profile.

[0619] It is worth noting that, when the process of the present application is triggered by S-EES, after step 2107b, optionally, the method provided in the embodiment of the present application further includes:

[0620] Step 2108b: The S-EES selects T-EAS2 serving the terminal from one or more T-EASs according to the completion time of migration of the application context of the terminal by each T-EAS.

[0621] It is worth noting that, when the process of the present application is triggered by S-EAS, after step 2107b, the embodiment of the present application may execute any one of the following cases C and D:

[0622] Among them, situation C includes steps 2108b to 2109b. Situation D includes steps 2108c to 2109c.

[0623] Step 2109b, S-EES sends an EAS discovery response 13 to S-EAS, and accordingly, S-EAS receives the EAS discovery response 13 from S-EES. The EAS discovery response includes information of T-EAS2. Optionally, the EAS discovery response 13 may also include the migration completion time of the application context of the terminal by T-EAS2.

[0624] It is worth noting that after S-EAS receives the information of T-EAS2, S-EAS can use T-EAS2 as the EAS to provide services for the terminal, or if S-EAS determines that T-EAS2 does not meet the requirements, it can re-execute the above step 2101.

[0625] Step 2108c: S-EES sends an EAS discovery response 14 to S-EAS, and correspondingly, S-EAS receives the EAS discovery response 14 from S-EES. The EAS discovery response 14 includes the migration completion time of the application context of each T-EAS for the terminal.

[0626] Step 2109c: The S-EAS selects a T-EAS serving the terminal from one or more T-EASs according to the migration completion time of the application context of the terminal by each T-EAS.

[0627] It is worth noting that continuing to combine Fig.21In the case where the first network element is S-EES, the second network element may be S-EAS. Alternatively, in the case where the first network element is T-EES, the second network element may be S-EAS or S-EES.

[0628] Fig.21 In the illustrated embodiment, in the T-EAS discovery process initiated by S-EAS / S-EES, T-EES determines the migration completion time of each T-EAS for the application context of the terminal. Afterwards, T-EES can select a T-EAS according to the migration completion time of each T-EAS for the application context of the terminal, or send the migration completion time of each T-EAS for the application context of the terminal to S-EES / S-EAS. For the latter, S-EES / S-EAS selects T-EAS according to the migration completion time of each T-EAS for the application context of the terminal, thereby achieving the technical effect of selecting T-EAS according to the migration completion time of the application context.

[0629] Steps 2201 to 2203 are the same as steps 2101 to 2103 and will not be repeated here.

[0630] Step 2204, S-EES sends an EAS discovery request 14 to T-EES. Accordingly, T-EES receives the EAS discovery request 14 from S-EES. The EAS discovery request 14 is used to request the first relevant information of each T-EAS in the T-EAS that can provide services to the terminal. It is worth noting that since S-EES does not know which T-EAS is the specific T-EAS that can provide services to the terminal, the EAS discovery request 14 is also used to request T-EES to provide services to the terminal. Optionally, the EAS discovery request 14 can also carry some demand information so that T-EES can screen the T-EAS that meets the demand information and can provide services to the terminal.

[0631] Optionally, the EAS discovery request 14 carries indication information 14. The indication information 14 is used to request first relevant information of each T-EAS in the T-EAS that can provide services to the terminal.

[0632] The request message 14 / indication information 14 may also not indicate the specific content of the request, but only indicate the request for the first relevant information.

[0633] Step 2205: The T-EES discovers one or more T-EASs that can provide services to the terminal.

[0634] For the specific implementation, please refer to the description of step 2005 above, which will not be repeated here.

[0635] Step 2206: The T-EES obtains first relevant information of each T-EAS among one or more T-EASs that can provide services to the terminal.

[0636] For the specific implementation of step 2206, please refer to the above Fig.11 The description in the Fig.11 Just replace EES with T-EES.

[0637] Step 2207: T-EES sends an EAS discovery response 14 to S-EES. Correspondingly, S-EES receives the EAS discovery response 14 from T-EES.

[0638] The EAS discovery response 14 includes first relevant information of each T-EAS in one or more T-EASs that can provide services for the terminal.

[0639] It is worth noting that T-EES can provide S-EES with the load information or network status of each T-EAS. For example, if only part of the first relevant information is requested in the request message, T-EES can only return the requested part to S-EES. "For example, when the EAS discovery response 14 does not request location information, T-EES can provide S-EES with the load information or network status of each T-EAS. For example, when the EAS discovery response 14 requests location information, network status, and load information, T-EES can provide S-EES with the location information, network status, and load information of each T-EAS.

[0640] Step 2208a, the S-EES determines the migration completion time of the application context of each T-EAS for the terminal according to one or more of the first relevant information of each T-EAS, the second relevant information of the S-EAS, and the size of the application context.

[0641] Optionally, after step 2208a, Fig. 22 As shown, the method provided in the embodiment of the present application can execute any one of Case E and Case F. Case E includes step 2209a and step 2210a. Case F includes step 2209b and step 2210b.

[0642] Step 2209a: S-EES selects T-EAS1 according to the migration completion time of each T-EAS for the application context of the terminal.

[0643] For the specific implementation, reference may be made to the process of EES selecting T-EAS1 in the above step 805a, which will not be described in detail here.

[0644] Step 2210a, S-EES sends EAS discovery response 15 to S-EAS. Accordingly, S-EAS receives EAS discovery response 15 from S-EES. EAS discovery response 15 includes information of T-EAS1. For example, information of T-EAS1 is used to identify T-EAS1. For example, information of T-EAS1 may be address information, identification, etc. of T-EAS1.

[0645] Optionally, when the EAS discovery response 15 includes information about T-EAS1, S-EES may also send information indicating the completion time of migration of the application context of the terminal by T-EAS1 to S-EAS. For example, the information indicating the completion time of migration of the application context of the terminal by T-EAS1 may be the completion time of migration of the application context of the terminal by T-EAS1, or one or more of the first relevant information of T-EAS1, the second relevant information of S-EAS, and the size of the application context, which is not limited in the embodiments of the present application.

[0646] As an example, information indicating the completion time of the migration of the application context of the terminal by T-EAS1 is carried in the EAS discovery response 15 to save signaling overhead between network elements.

[0647] Optionally, after step 2208a, Fig. 22 As shown, the method provided in the embodiment of the present application may further include: step 2209b and step 2210b.

[0648] Step 2209b: S-EES sends an EAS discovery response 16 to S-EAS. Correspondingly, S-EAS receives the EAS discovery response 16 from S-EES.

[0649] The EAS discovery response 16 includes the migration completion time of the application context of the terminal for each T-EAS in one or more T-EASs.

[0650] In a possible implementation, the EAS discovery response 16 may also include the EAS profile of each T-EAS.

[0651] It is worth noting that the migration completion time of a T-EAS for a terminal's application context may be included in the EAS profile of the T-EAS or may not be included in the EAS profile. For example, the migration completion time of a T-EASn for a terminal's application context may be included in the EAS profile of the T-EASn.

[0652] Step 2210b: The S-EAS selects T-EAS2 from one or more T-EASs according to the migration completion time of the application context of the terminal by each T-EAS.

[0653] It is worth noting that the specific implementation of step 2210b can refer to the specific implementation of step 805a above, which will not be repeated here. T-EAS2 and T-EAS1 can be the same T-EAS or different T-EASs.

[0654] It is worth noting that after step 2208, if S-EES executes step 2209a and step 2210a, then step 2209b and step 2210b can be omitted, or if S-EES executes step 2209b and step 2210b, then step 2209a and step 2210a can be omitted, and the embodiments of the present application are not limited to this.

[0655] Alternatively, after step 2207, the method provided in the embodiment of the present application may further include: step 2208b and step 2209c.

[0656] In step 2208b, the S-EES provides the S-EAS with first relevant information of each T-EAS in one or more T-EASs that can provide services to the terminal.

[0657] Step 2209c: The S-EAS determines the T-EAS1 that provides services to the terminal according to one or more of the first relevant information of each T-EAS, the second relevant information of the S-EAS, and the size of the application context.

[0658] For the specific implementation of step 2209c, reference may be made to the above-mentioned T-ESS / ESS / S-EES to determine T-EAS1 providing services to the terminal based on one or more of the first relevant information of each T-EAS, the second relevant information of the S-EAS, and the size of the application context, which will not be repeated here.

[0659] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the network element. It can be understood that in order to realize the above functions, each network element, such as the first network element, the second network element, etc., includes a structure and / or software module corresponding to the execution of each function. It should be easy for those skilled in the art to realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed in this document, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0660] The embodiment of the present application can divide the first network element and the second network element into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0661] Combined with the above Figure 6.1 to Figure 22 , the method of the embodiment of the present application is described, and the communication device for executing the above method provided by the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the communication device provided by the embodiment of the present application can execute the steps performed by the first network element or the second network element in the above communication method.

[0662] In the case of integrated units, Fig.23 The communication device involved in the above embodiment is shown, and the communication device may include: a communication module 2313 and a processing module 2312.

[0663] In an optional implementation, the communication device may further include a storage module 2311 for storing program codes and data of the communication device.

[0664] In one example, the communication device is a first network element, or a chip used in a first network element. In this case, the communication module 2313 is used to support the communication device to communicate with an external network element (e.g., a second network element). For example, the communication module 2313 is used to perform the transceiver operation of the first network element in the above method embodiment. The processing module 2312 is used to perform the processing operation of the first network element in the above method embodiment.

[0665] For example, in a possible embodiment of the present application, the communication module 2313 is used to execute the above embodiment. Figure 6.1 The processing module 2312 is used to support the communication device to perform the processing action performed by the first network element in the above embodiment, such as step 601. And other steps performed by the first network element.

[0666] For example, in a possible embodiment of the present application, the communication module 2313 is used to execute the above embodiment. Figure 6.2The processing module 2312 is used to support the communication device to perform the processing actions performed by the first network element in the above embodiment, such as step 602-1 and step 603-1. And other steps performed by the first network element.

[0667] For example, in another possible embodiment of the present application, the communication module 2313 is used to execute the above embodiment. Figure 7 The processing module 2312 is used to support the communication device to perform the processing actions performed by the first network element in the above embodiment, such as step 701 and step 702. And other steps performed by the first network element.

[0668] In one example, the communication device is a second network element, or a chip used in a second network element. In this case, the communication module 2313 is used to support the communication device to communicate with an external network element (e.g., a first network element). For example, the communication module 2313 is used to perform the transceiver operation of the second network element in the above method embodiment. The processing module 2312 is used to perform the processing operation of the second network element in the above method embodiment. And other steps performed by the second network element.

[0669] For example, in a possible embodiment of the present application, the communication module 2313 is used to execute the above embodiment. Figure 6.1 The processing module 2312 is used to support the communication device to perform the processing action performed by the second network element in the above embodiment, such as step 603.

[0670] For example, in another possible embodiment of the present application, the communication module 2313 is used to execute the above embodiment. Figure 6.2 The processing module 2312 is used to support the communication device to perform the processing action performed by the second network element in the above embodiment, such as step 604-1.

[0671] For example, in another possible embodiment of the present application, the communication module 2313 is used to execute the above embodiment. Figure 7 The processing module 2312 is used to support the communication device to perform the processing action performed by the second network element in the above embodiment, such as step 703.

[0672] It should be noted that Fig.23The communication module 2313 shown can also be replaced by a communication unit, and the processing module 2312 can also be replaced by a processing unit. The storage module 2311 can also be replaced by a storage unit. The processing unit is used to control and manage the actions of the communication device. For example, the processing unit is used to execute the steps of information / data processing in the communication device. The communication unit is used to support the communication device to send or receive information / data.

[0673] In a possible implementation, the communication unit may include a receiving unit and a sending unit, wherein the receiving unit is used to receive a signal and the sending unit is used to send a signal.

[0674] Among them, the processing module 2312 can be a processor or a controller, for example, a central processing unit, a general processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a digital signal processor and a microprocessor, etc. The communication module can be a transceiver, a transceiver circuit or a communication interface, etc. The storage module can be a memory.

[0675] When the processing module 2312 is the processor 33 or the processor 35, the communication module 2313 is the transceiver 33, and the storage module 2311 is the memory 32, the communication device involved in the present application can be Figure 3 The communication device shown.

[0676] The above communication module may be a communication interface of the device, used to receive signals from other devices. For example, when the device is implemented in a chip, the communication module is a communication interface of the chip used to receive or send signals from other chips or devices.

[0677] Fig.24 2 is a schematic diagram of the structure of a chip 240 provided in an embodiment of the present application. The chip 240 includes one or more (including two) processors 2410 and a communication interface 2430 .

[0678] Optionally, the chip 240 further includes a memory 2440, which may include a read-only memory and a random access memory, and provides operation instructions and data to the processor 2410. A portion of the memory 2440 may also include a non-volatile random access memory (NVRAM).

[0679] In some embodiments, the memory 2440 stores the following elements, execution modules or data structures, or a subset thereof, or an extended set thereof.

[0680] In the embodiment of the present application, the corresponding operation is performed by calling the operation instruction stored in the memory 2440 (the operation instruction may be stored in the operating system).

[0681] The processor 2410 controls the processing operations of the first network element, the second network element, the third network element, and the first application server. The processor 2410 may also be referred to as a central processing unit (CPU).

[0682] The memory 2440 may include a read-only memory and a random access memory, and provides instructions and data to the processor 2410. A portion of the memory 2440 may also include an NVRAM. For example, in an application, the memory 2440, the communication interface 2430, and the memory 2440 are coupled together through the bus system 2420, wherein the bus system 2420 may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, in Fig.24 Various buses are labeled as bus system 2420.

[0683] The method disclosed in the above embodiment of the present application can be applied to the processor 2410, or implemented by the processor 2410. The processor 2410 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 2410. The above processor 2410 can be a general-purpose processor, a digital signal processor (digital signal processing, DSP), an ASIC, a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 2440, and the processor 2410 reads the information in the memory 2440 and completes the steps of the above method in combination with its hardware.

[0684] In one possible implementation, the communication interface 2430 is used to execute Figure 6.1 , Figure 6.2 or Figure 7 The processor 2410 is configured to execute Figure 6.1 , Figure 6.2 or Figure 7 The processing steps of the first network element in the illustrated embodiment.

[0685] In one possible implementation, the communication interface 2430 is used to execute Figure 6.1 , Figure 6.2 or Figure 7 The processor 2410 is configured to execute Figure 6.1 , Figure 6.2 or Figure 7 The processing steps of the second network element in the illustrated embodiment.

[0686] In one aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed, the following is implemented: Figure 6.1 , Figure 6.2 or Figure 7 The steps are performed by the first network element.

[0687] In one aspect, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and when the instructions are executed, the following is implemented: Figure 6.1 , Figure 6.2 or Figure 7 The steps are performed by the second network element.

[0688] In one aspect, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed, the following are implemented: Figure 6.1 , Figure 6.2 or Figure 7 The steps are performed by the first network element.

[0689] In one aspect, a computer program product is provided, wherein the computer program product includes instructions, and when the instructions are executed, the following are implemented: Figure 6.1 , Figure 6.2 or Figure 7 The steps are performed by the second network element.

[0690] In one aspect, a chip is provided, which is applied to a first terminal, and includes at least one processor and a communication interface, wherein the communication interface is coupled to the at least one processor, and the processor is used to execute instructions to implement the following Figure 6.1 , Figure 6.2 or Figure 7 The steps are performed by the first network element.

[0691] In one aspect, a chip is provided, which is applied to a first terminal, and includes at least one processor and a communication interface, wherein the communication interface is coupled to the at least one processor, and the processor is used to execute instructions to implement the following Figure 6.1 , Figure 6.2 or Figure 7 The steps are performed by the second network element.

[0692] The embodiment of the present application provides a communication system, which includes: a first network element and a second network element. The first terminal is used to execute Figure 6.1 The second network element is used to perform Figure 6.1 The steps are performed by the second network element.

[0693] The embodiment of the present application provides a communication system, which includes: a first network element and a second network element. The first terminal is used to execute Figure 6.2 The second network element is used to perform Figure 6.2 The steps are performed by the second network element.

[0694] The embodiment of the present application provides a communication system, which includes: a first network element and a second network element. The first terminal is used to execute Figure 7 The second network element is used to perform Figure 7 The steps are performed by the second network element.

[0695] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instruction may be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, for example, a floppy disk, a hard disk, a tape; it may also be an optical medium, for example, a digital video disc (DVD); it may also be a semiconductor medium, for example, a solid state drive (SSD). Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, a person skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in mutually different dependent claims, but this does not mean that these measures cannot be combined to produce good results. Although the present application is described in conjunction with specific features and embodiments thereof, it is obvious that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely exemplary illustrations of the present application as defined by the appended claims, and are deemed to have covered any and all modifications, changes, combinations or equivalents within the scope of the present application.

[0696] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A communication method, characterized in that: include: The first network element obtains, from among the one or more associated first application servers, a migration completion time of an application context of the terminal by each of the first application servers; The first application server is used to provide services for the terminal, the application context is information of a first application for the terminal on a second application server, and the second application server is an application server currently providing services for the terminal; The first network element determines at least one target application server from one or more first application servers according to a migration completion time of the application context of the terminal by each of the first application servers; The first network element sends information of at least one target application server to the second network element.

2. The method according to claim 1, characterized in that The method further comprises: The first network element receives first information from the second network element, where the first information is an expected completion time of migration of the application context; The first network element determines at least one target application server from one or more first application servers according to the migration completion time of the application context of the terminal by each of the first application servers, including: The first network element determines at least one of the target application servers according to the first information and a migration completion time of the application context of each of the first application servers for the terminal.

3. The method according to claim 2, characterized in that A migration completion time of an application context of the terminal by at least one of the target application servers is less than or equal to an expected migration completion time of the application context.

4. A communication method, characterized in that: include: The first network element obtains, from one or more first application servers associated with the first network element, a migration completion time of an application context of a terminal by each of the first application servers; The application context is information about a first application on a second application server for the terminal, and the second application server is an application server currently providing services for the terminal; The first network element sends second information to the second network element, where the second information includes a migration completion time of an application context of the terminal by each of the first application servers, and the second information is used to determine a target application server among one or more of the first application servers that provides services for the terminal.

5. The method according to any one of claims 1 to 4, characterized in that: The first network element obtains the migration completion time of the application context of each first application server for the terminal, including: The first network element obtains, from each of the first application servers, a migration completion time of the application context of the terminal respectively of each of the first application servers.

6. The method according to claim 5, characterized in that Before the first network element obtains, from each of the first application servers, a migration completion time of the application context of each of the first application servers for the terminal, the method further includes: The first network element sends a first request message to each of the first application servers, where the first request message is used to request the first application server for a migration completion time of an application context of the terminal; The first request message includes one or more of the second related information of the second application server and the size of the application context, and the second related information includes one or more of the location information, load information or network status of the second application server.

7. The method according to any one of claims 1 to 4, characterized in that: The first network element obtains the migration completion time of the application context of each first application server for the terminal, including: The first network element receives a migration completion time of an application context of the terminal from each of the first application servers of a third network element, where the third network element is a data analysis network element or an edge configuration server.

8. The method according to claim 7, characterized in that The method further comprises: The first network element sends a second request message to the third network element, where the second request message is used to request the migration completion time of the application context of the terminal for each of the first application servers, and the second request message includes: one or more of the first relevant information of each of the first application servers, the second relevant information of the second application server, and the size of the application context, where the first relevant information includes one or more of the location information, load information, or network status of the first application server; and the second relevant information includes one or more of the location information, load information, or network status of the second application server.

9. The method according to claim 6 or 8, characterized in that: The method further comprises: The first network element obtains one or more of the second relevant information of the second application server and the size of the application context.

10. The method according to any one of claims 1 to 4, characterized in that: The first network element obtains the migration completion time of the application context of each first application server for the terminal, including: The first network element obtains one or more of the first relevant information of each of the first application servers, the second relevant information of the second application server, and the size of the application context; The first network element determines a migration completion time of the application context of each of the first application servers for the terminal according to one or more of the first relevant information, the second relevant information, and the size of the application context of each of the first application servers.

11. The method according to claim 9 or 10, characterized in that: The first network element obtains one or more of the second related information of the second application server and the size of the application context, including: The first network element receives one or more of second related information of the second application server and the size of the application context from the second application server and / or a first enabling server, and the first enabling server is associated with the second application server.

12. The method according to claim 11, characterized in that The method further comprises: The first network element sends a third request message to the second application server and / or the first enabling server, where the third request message is used to request one or more of the second related information of the second application server and the size of the application context.

13. The method according to any one of claims 10 to 12, characterized in that: The first network element obtains first relevant information of each first application server, including: The first network element sends a fourth request message to each of the first application servers, where the fourth request message is used to request first related information of the first application server; The first network element receives the first relevant information of each of the first application servers.

14. The method according to any one of claims 1 to 13, characterized in that: The method further comprises: The first network element receives address information of a first enabling server from the second network element, the first enabling server being associated with the second application server.

15. A communication method, characterized in that: include: The first network element acquires second information, where the second information includes one or more of first relevant information of each of the one or more first application servers associated with the first network element, second relevant information of the second application server, and a size of the application context; The application context is information about a first application for the terminal on the second application server, and the second application server is an application server currently providing services for the terminal; The second relevant information includes one or more of location information, load information or network status of the second application server; The first relevant information includes one or more of location information, load information or network status of the first application server; The first network element sends the second information to the second network element, where the second information is used to determine a target application server among the one or more first application servers that provides a service for the terminal.

16. The method according to claim 15, characterized in that The first network element obtains one or more of the second related information of the second application server and the size of the application context, including: The first network element receives one or more of second related information of the second application server and the size of the application context from the second application server or a first enabling server, and the first enabling server is associated with the second application server.

17. The method according to claim 16, characterized in that The method further comprises: The first network element sends a third request message to the second application server or the first enabling server, where the third request message is used to request one or more of the second related information of the second application server and the size of the application context.

18. The method according to any one of claims 15 to 17, characterized in that: The first network element obtains first relevant information of each first application server, including: The first network element sends a fourth request message to each of the first application servers, where the fourth request message is used to request first related information of the first application server; The first network element receives the first relevant information of each of the first application servers.

19. The method according to any one of claims 15 to 18, characterized in that: The method further comprises: The first network element receives address information of a first enabling server from the second network element, the first enabling server being associated with the second application server.

20. The method according to any one of claims 15 to 19, characterized in that: Before the first network element obtains the first relevant information of each of the first application servers, the method further includes: The first network element receives a fifth request message from the first enabling server, where the fifth request message is used to request first relevant information of the second application server associated with the first network element.

21. The method according to claim 20, characterized in that The fifth request message includes first indication information, where the first indication information is used to instruct the first network element to provide first relevant information of the second application server associated with the first network element.

22. A communication method, characterized in that: include: The second network element receives a migration completion time of an application context for a terminal from each of the one or more first application servers of the first network element, where the application context is information about a first application for the terminal on the second application server, and the second application server is an application server currently providing services for the terminal; The second network element determines a target application server from one or more first application servers according to a migration completion time of an application context of the terminal by each of the first application servers, where the target application server is used to provide a service for the terminal.

23. A communication method, characterized in that: include: The second network element receives second information from the first network element, wherein the second information includes one or more of first relevant information of each of the one or more first application servers, second relevant information of the second application server, and a size of the application context; The application context is information about a first application for the terminal on the second application server, where the second application server is an application server currently providing services for the terminal; the second related information includes one or more of location information, load information or network status of the second application server; The first relevant information includes one or more of location information, load information or network status of the first application server; The second network element determines, according to the second information, a target application server for providing a service for the terminal from one or more of the first application servers.

24. The method according to claim 23, characterized in that The method further comprises: The second network element sends address information of a first enabling server to the first network element, and the first enabling server is associated with the second application server.

25. The method according to claim 23 or 24, characterized in that The second network element determines, according to the second information, a target application server from one or more of the first application servers, including: The second network element determines, according to the second information, a migration completion time of the application context of each of the first application servers for the terminal; The second network element determines the target application server from one or more first application servers according to a migration completion time of the application context of the terminal by each of the first application servers.

26. A communication method, characterized in that: include: The second network element sends first information to the first network element, where the first information is an expected completion time of migration of the application context; The application context is information about a first application for a terminal on a second application server, where the second application server is an application server currently providing services for the terminal; The second network element receives information of at least one target application server from the first network element, and the target application server can be used to provide services for the terminal.

27. The method according to claim 26, characterized in that The target application server's migration completion time for the application context of the terminal is less than or equal to the expected application context migration completion time.

28. The method according to any one of claims 22 to 27, characterized in that: The method further comprises: The second network element sends address information of a first enabling server to the first network element, and the first enabling server is associated with the second application server.

29. A communication method, characterized in that: include: The first application server determines a migration completion time of an application context of the terminal by the first application server, where the application context is information of a first application for the terminal on a second application server, and the second application server is an application server currently providing services for the terminal; The first application server sends, to the first network element, a migration completion time of the application context of the terminal by the first application server.

30. The method according to claim 29, characterized in that The method further comprises: The first application server receives a first request message from the first network element, where the first request message is used to request the first application server to complete migration of the application context of the terminal.

31. The method according to claim 30, characterized in that The first request message includes one or more of second related information of the second application server and the size of the application context, and the second related information includes one or more of location information, load information or network status of the second application server.

32. A computer-readable storage medium, characterized in that: The readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 21, or the method according to any one of claims 22 to 28, or the method according to any one of claims 29 to 31 is implemented.

33. A chip, characterized in that: The chip includes a processor, which is coupled to a communication interface. The processor is used to run a computer program or instruction to implement the method described in any one of claims 1 to 21, or the method described in any one of claims 22 to 28, or the method described in any one of claims 29 to 31. The communication interface is used to communicate with other modules outside the chip.

34. A communication device, characterized in that: include: At least one processor, the at least one processor is coupled to a memory, and the at least one processor is used to run instructions stored in the memory to execute the method according to any one of claims 1 to 21, or the method according to any one of claims 22 to 28, or the method according to any one of claims 29 to 31.

35. A communication system, characterized in that: include: A first network element and a second network element, wherein the first network element is used to execute the method according to any one of claims 1 to 21, and the second network element is used to execute the method according to any one of claims 22 to 28.