A service migration method and device, electronic equipment and storage medium

By obtaining the network latency between the terminal and the current UPF network element through the SMF network element and requesting a new UPF network element address when the latency exceeds the threshold, the service interruption problem during user plane handover is solved, and the continuity of application services is achieved.

CN117278602BActive Publication Date: 2026-07-31CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2023-10-13
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Existing technologies cannot guarantee the continuity of application services for applications with application states or high latency requirements during user plane switching, leading to service interruptions.

Method used

The network latency between the terminal and the current UPF network element is obtained through the SMF network element. When the latency exceeds a preset threshold, a new UPF network element address is requested from the central DNS server and informed to the first UPF network element so that the business data can be migrated to the new UPF network element to ensure the continuity of application services.

Benefits of technology

This effectively avoids application service interruptions during UPF switching, ensuring application service continuity and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117278602B_ABST
    Figure CN117278602B_ABST
Patent Text Reader

Abstract

This application provides a service migration method, apparatus, electronic device, and storage medium, relating to the field of communication technology, for ensuring the continuity of application services of a terminal. The method includes: an SMF network element acquiring the network latency between a mobile terminal and a first User Plane Function (UPF) network element, wherein the first UPF network element is the UPF network element currently accessed by the terminal; if the network latency is greater than a preset threshold, the SMF network element sends a first message to a central DNS server, wherein the first message requests the allocation of a new UPF network element for the terminal; the SMF network element receives a DNS address corresponding to a second UPF network element sent by the DNS server, wherein the second UPF network element is a new UPF network element allocated by the DNS server for the terminal, and the network latency between the second UPF network element and the terminal is less than or equal to the preset threshold; the SMF network element sends the DNS address corresponding to the second UPF network element to the first UPF network element, so that the first UPF network element sends the terminal's service data to the second UPF network element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a service migration method, apparatus, electronic device, and storage medium. Background Technology

[0002] In mobile communication networks, each communication area has its specific coverage range. When a user moves from one communication area to another or from one wireless access technology to another, the user terminal's signal may change from the original communication area to the new one. To maintain the continuity of user terminal service, terminal user plane handover is required.

[0003] However, the relevant technologies cause terminal applications to go offline and reconnect when switching user planes. Therefore, while user plane switching can ensure the continuity of application services for applications that are not in an application state or for services with low latency requirements, it cannot currently guarantee the continuity of application services for applications that are in an application state or for services with high latency requirements. Summary of the Invention

[0004] This application provides a service migration method, apparatus, electronic device, and storage medium to ensure the continuity of application services on a terminal.

[0005] Firstly, this application provides a service migration method applied to a session management function (SMF) network element, the method comprising:

[0006] The SMF network element obtains the network latency between the mobile terminal and the first user plane function (UPF) network element, where the first UPF network element is the UPF network element currently accessed by the terminal. If the network latency exceeds a preset threshold, the SMF network element sends a first message to the central domain name system (DNS) server, requesting the allocation of a new UPF network element for the terminal. The SMF network element receives the DNS address corresponding to a second UPF network element from the central DNS server. The second UPF network element is a new UPF network element allocated to the terminal by the DNS server, and the network latency between the second UPF network element and the terminal is less than or equal to the preset threshold. The SMF network element sends the DNS address corresponding to the second UPF network element to the first UPF network element, enabling the first UPF network element to send the terminal's service data to the second UPF network element.

[0007] The technical solution provided by this application brings at least the following beneficial effects: In the case of a large network latency between the terminal and the current first UPF, the embodiment of this application can request the address of a new UPF from the central DNS server, and then inform the first UPF of the obtained address of the second UPF, so that the first UPF can send the terminal's service data to the second UPF network element. In this way, the interruption of application services caused by the terminal going offline during UPF switching can be avoided, and the continuity of application services can be guaranteed.

[0008] As one possible implementation, the above method further includes: the SMF network element receiving a second message sent by the first UPF network element, the second message indicating that the first UPF network element has completed the transmission of the terminal's service data; the SMF network element receiving a third message sent by the second UPF network element, the third message indicating that the second UPF network element has received the terminal's service data; and the SMF network element responding to the second and third messages by sending the DNS address corresponding to the second UPF network element to the terminal, so that the terminal establishes a new protocol data unit (PDU) session with the second UPF network element.

[0009] Secondly, this application provides a service migration method applied to a first UPF network element. The method includes: when the network latency between the mobile terminal and the first UPF network element is greater than a preset threshold, the first UPF network element receives the DNS address corresponding to the second UPF network element sent by the SMF network element; the first UPF network element sends the terminal's service data to the second UPF network element based on the DNS address corresponding to the second UPF network element.

[0010] As one possible implementation, the above method further includes: the first UPF network element sending a second message to the SMF network element, the second message being used to indicate that the first UPF network element has completed the transmission of the terminal's service data.

[0011] Thirdly, this application provides a service migration method applied to a second UPF network element. The method includes: when the network latency between a mobile terminal and a first UPF network element is greater than a preset threshold, the second UPF network element receives service data of the terminal sent by the first UPF network element.

[0012] As one possible implementation, the above method also includes: the second UPF network element sending a third message to the SMF network element, the third message being used to indicate that the second UPF network element has received the terminal's service data.

[0013] Fourthly, this application provides a service migration apparatus applied to an SMF network element. The apparatus includes: an acquisition module for acquiring the network latency between a mobile terminal and a first UPF network element, wherein the first UPF network element is the UPF network element currently accessed by the terminal; a sending module for sending a first message to a central DNS server when the network latency is greater than a preset threshold, wherein the first message is used to request the allocation of a new UPF network element for the terminal; a receiving module for receiving a DNS address corresponding to a second UPF network element sent by the central DNS server, wherein the second UPF network element is a new UPF network element allocated by the DNS server for the terminal, and the network latency between the second UPF network element and the terminal is less than or equal to the preset threshold; the sending module is further used to send the DNS address corresponding to the second UPF network element to the first UPF network element, so that the first UPF network element sends the terminal's service data to the second UPF network element.

[0014] As one possible implementation, the aforementioned service migration device also includes a determination module, used to obtain the DNAI corresponding to the terminal, and determine the terminal movement when the DNAI corresponding to the terminal changes.

[0015] As one possible implementation, the receiving module is further configured to receive a second message sent by the first UPF network element, the second message indicating that the first UPF network element has completed the transmission of the terminal's service data; and to receive a third message sent by the second UPF network element, the third message indicating that the second UPF network element has received the terminal's service data.

[0016] As one possible implementation, the aforementioned sending module is also used to send the DNS address corresponding to the second UPF network element to the terminal in response to the first message and the second message, so that the terminal can establish a new PDU session with the second UPF network element.

[0017] Fifthly, this application provides a service migration device applied to a first UPF network element. The device includes: a receiving module, configured to receive a DNS address corresponding to a second UPF network element sent by an SMF network element when the network latency between a mobile terminal and the first UPF network element is greater than a preset threshold; and a sending module, configured to send the terminal's service data to the second UPF network element based on the DNS address corresponding to the second UPF network element.

[0018] As one possible implementation, the aforementioned sending module is also used to send a second message to the SMF network element, the second message being used to indicate that the first UPF network element has completed the transmission of the terminal's service data.

[0019] In a sixth aspect, this application provides a service migration device applied to a second UPF network element. The device includes a receiving module, configured to receive service data of the terminal sent by the first UPF network element when the network latency between the mobile terminal and the first UPF network element is greater than a preset threshold.

[0020] As one possible implementation, the above-mentioned service migration device further includes: a sending module, used to send a third message to the SMF network element, the third message being used to indicate that the second UPF network element has received the service data of the terminal.

[0021] In a seventh aspect, this application provides an electronic device including a processor and a memory coupled together; the memory is used to store computer instructions, which are loaded and executed by the processor to enable the computer device to implement the business migration methods provided in the first to third aspects and any possible implementation thereof.

[0022] Eighthly, this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the business migration method provided in the first to third aspects and any possible implementation thereof.

[0023] The descriptions of aspects two through eight in this application can be referenced to the detailed description of aspect one; and the beneficial effects of the descriptions of aspects two through eight can be referenced to the analysis of the beneficial effects of aspect one, which will not be repeated here. Attached Figure Description

[0024] Figure 1 This is a schematic diagram of a UPF and resource pool device link according to some embodiments;

[0025] Figure 2 This is a schematic diagram of a hardware operating environment according to some embodiments;

[0026] Figure 3 A business migration method flow according to some embodiments Figure 1 ;

[0027] Figure 4 A business migration method flow according to some embodiments Figure 2 ;

[0028] Figure 5 A business migration method flow according to some embodiments Figure 3 ;

[0029] Figure 6 This is a schematic diagram of a business migration scenario according to some embodiments;

[0030] Figure 7 This is a business migration flowchart according to some embodiments;

[0031] Figure 8 This is a schematic diagram of the structure of a service migration apparatus according to some embodiments. Figure 1 ;

[0032] Figure 9 This is a schematic diagram of the structure of a service migration apparatus according to some embodiments. Figure 2 ;

[0033] Figure 10 This is a schematic diagram of the structure of a service migration apparatus according to some embodiments. Figure 3 ;

[0034] Figure 11 This is a schematic diagram of the structure of a service migration apparatus according to some embodiments. Figure 4 . Detailed Implementation

[0035] The following section will describe in detail a business migration method provided in this application, with reference to the accompanying drawings.

[0036] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0037] The terms "first" and "second," etc., used in the specification and drawings of this application are used to distinguish different objects or to distinguish different treatments of the same object, rather than to describe a specific order of objects.

[0038] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0039] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0040] In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0041] As described in the background section, related technologies cause terminal applications to go offline and reconnect when user plane switching is performed. Therefore, when user plane switching is performed on applications that are in an application-free state or services with low latency requirements, the continuity of application services can be maintained. However, for applications that are in an application-free state or services with high latency requirements, the dynamic migration of data within the resource pool cannot be solved to ensure the continuity of application services.

[0042] See Figure 1 This is a schematic diagram of the link between the UPF and the resource pool device. For example... Figure 1 As shown, in the relevant technologies, the UPF and the corresponding data communication equipment and Internet links of the resource pool are all configured in pairs. This not only protects the links but also provides mechanisms such as dynamic migration of virtual machines within the resource pool. From the perspective of the entire process of a user's specific terminal, the main path of this link is terminal - first UPF - multi-access edge computing (MEC) resource pool 1.

[0043] To address the aforementioned technical issues, this application provides a service migration method, specifically including: when the network latency between the terminal and the current first UPF is large, this application can request a new UPF address from the central DNS server, and then inform the first UPF of the obtained second UPF address, so that the first UPF can send the terminal's service data to the second UPF network element. In this way, application service interruption caused by the terminal going offline can be avoided during UPF switching, ensuring the continuity of application services.

[0044] The embodiments provided in this application will now be described in detail with reference to the accompanying drawings.

[0045] See Figure 2 This is a schematic diagram of the hardware operating environment involved in the embodiments of this application. Figure 2 As shown, the hardware operating environment includes: terminal 100, access network 200, core network 300 and central DNS server 400.

[0046] Terminal 100 is a computer device that can be used while in motion.

[0047] In some embodiments, terminal 100 includes a variety of application functions, such as industrial control applications or autonomous driving applications.

[0048] For example, terminal 100 can be a mobile phone, tablet computer, computer with wireless transceiver capabilities, virtual reality (VR) terminal, augmented reality (AR) terminal, wireless terminal in industrial control, wireless terminal in self-driving, wireless terminal in remote medical care, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, wireless terminal in smart home, etc. The embodiments of this application do not limit the application scenario. Terminal 100 may also be referred to as a user, user equipment (UE), access terminal, UE unit, UE station, mobile station, mobile station, remote station, remote terminal, mobile terminal, UE terminal, wireless communication equipment, UE agent, or UE device, etc., and the embodiments of this application do not limit this.

[0049] Access network 200 can be a radio access network (RAN) or an access network (AN).

[0050] In some embodiments, terminal 100 can access core network 300 through access network 200 and communicate with network elements in core network 300.

[0051] Access network 200 can be composed of access network equipment. Access network equipment can be various types of base stations, such as macro base stations, micro base stations (also known as "small stations"), distributed unit-control units (DU-CUs), etc. A DU-CU is a device deployed in a radio access network capable of wireless communication with terminal devices. Additionally, the aforementioned base stations can also be radio controllers in cloud radio access network (CRAN) scenarios, or relay stations, access points, vehicle-mounted equipment, wearable devices, or network equipment in future evolved public land mobile networks (PLMNs). Access network equipment can also be broadband network gateways (BNGs), aggregation switches, non-3rd generation partnership project (3GPP) access equipment, etc. This application embodiment does not limit the specific form and structure of the access network equipment.

[0052] The core network 300 includes multiple core network elements (or network function elements), such as SMF elements, application function (AF) elements, authentication server function (AUSF) elements, unified data management (UDM) elements, access and mobility management function (AMF) elements, policy control function (PCF) elements, and at least one UPF element. In addition, the core network may also include other elements not shown, such as multi-access edge computing (MEC) elements and network exposure function (NEF), which will not be elaborated upon in this embodiment.

[0053] Central DNS Server 400 is a naming system for computer and network services that organizes domain hierarchies. Central DNS Server 400 is used to translate domain names into corresponding Internet Protocol (IP) addresses.

[0054] In some embodiments, the central DNS server 400 is also used to provide services such as DNS caching, load balancing, and domain name forwarding.

[0055] In some embodiments, the central DNS server 400 may send IP address information to the SMF network element based on the request of the SMF network element.

[0056] It should be noted that the system architecture described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of system architecture, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0057] like Figure 3 As shown in the figure, this application provides a business migration method, which includes:

[0058] S101, the SMF network element obtains the network latency between the mobile terminal and the first UPF network element.

[0059] The first UPF network element is the UPF network element currently accessed by the terminal.

[0060] In some embodiments, obtaining the network latency between a mobile terminal and a first UPF network element includes: determining the distance between the terminal and the first UPF based on the location of the terminal and the location of the first UPF network element; and then determining the network latency between the terminal and the first UPF based on the distance between the terminal and the first UPF.

[0061] It is understandable that if the location of the terminal changes, the data network (DN) accessed by the terminal may also change. Due to the change of the DN accessed by the terminal, the address of the accessed server may change. If the access path of the terminal data is not changed in time, it may lead to large network latency, which may cause the ongoing application service to be interrupted. Therefore, the method provided in this application embodiment can determine whether the network latency between the terminal and the currently connected first UPF is greater than a preset threshold when the terminal moves, so as to determine whether it is necessary to change the data transmission path to avoid large network latency and application service interruption.

[0062] In some embodiments, the method further includes detecting whether the terminal is in a moving state. For example, such as... Figure 4 As shown, detecting whether a terminal is in a moving state can be achieved through the following steps:

[0063] S201, SMF network element obtains the DNAI corresponding to the terminal.

[0064] DNAI is an identifier for accessing the network, primarily used in 5G networks.

[0065] For example, an SMF network element can obtain the DNAI corresponding to the terminal according to a preset period.

[0066] S202. If the DNAI corresponding to the terminal changes, determine that the terminal is in a mobile state.

[0067] For example, the SMF network element can compare the DNAI of the terminal obtained at the first moment with the DNAI of the terminal obtained at the second moment (assuming the first moment is a moment before the second moment) to determine whether the terminal is in a moving state at the first moment.

[0068] It is understandable that a change in the access DNAI corresponding to a terminal indicates a change in the access network equipment connected to the terminal, meaning the terminal's location has changed. For example, if a terminal moves from the coverage area of ​​one base station to the coverage area of ​​another, it will cause a change in the terminal's DNAI.

[0069] For example, if the access network identifier for region A is DNAI-1 and the access network identifier for region B is DNAI-2, and the terminal moves from region A to region B, the access network device connected to the terminal changes from the access network device in region A to the access network device in region B, and the corresponding access network identifier changes from DNAI-1 to DNAI-2.

[0070] When the network latency exceeds a preset threshold, the S102 and SMF network elements send a first message to the central DNS server. Correspondingly, the central DNS server receives the first message.

[0071] The first message is used to request the allocation of a new UPF network element for the terminal, and the first message includes the domain name of the terminal.

[0072] The preset threshold is the minimum acceptable network latency that developers provide to meet application performance during application development. For example, the SMF can obtain the preset threshold from the AF network element.

[0073] In some embodiments, if the network latency is less than a preset threshold, the first UPF connected to the terminal will not be switched.

[0074] Understandably, when network latency is less than a preset threshold, the latency during business data interaction between the terminal and the user plane does not affect the operation of application services. Therefore, the terminal does not need to switch the current user plane to meet its business needs. When network latency is greater than the preset threshold, there may be data loss, data transmission interruption, or network delay during business data transmission between the terminal and the user plane. In other words, the current user plane cannot meet the terminal's business needs, so the terminal needs to select a suitable user plane to switch to in order to meet its business needs.

[0075] In some embodiments, the central DNS server has the application server (app server) addresses of the entire network, and the corresponding DNS address and app server address can be bound to the UPF network element.

[0076] DNS addresses are addresses in the Domain Name System, used to translate domain names into IP addresses.

[0077] The app server address is the address of the application server. For example, it can be the application server's IP address or domain name.

[0078] In some embodiments, after receiving the first message sent by the SMF network element, the central DNS server looks up the IP address corresponding to the terminal based on the terminal's domain name, and determines the IP address of the second UPF network element that is closest to the terminal based on the IP address corresponding to the terminal; then, it sends the IP address of the second UPF network element to the SMF network element.

[0079] Understandably, the central DNS server has the app server addresses of the entire network and can perform domain name resolution based on the terminal's IP address to obtain the IP address of the second UPF network element. The corresponding DNS address and app server address can be bound to the UPF network element. Therefore, the IP address of the second UPF network element can be represented as the DNS address corresponding to the second UPF network element.

[0080] S103, the DNS address corresponding to the second UPF network element sent by the DNS server of the SMF network element receiving center.

[0081] The second UPF network element is a new UPF network element allocated by the DNS server to the terminal, and the network latency between the second UPF network element and the terminal is less than or equal to a preset threshold.

[0082] In some embodiments, after obtaining the app server address from the central DNS server, the SMF modifies the destination address of the target UPF's packets by sending a message instructing the target UPF to modify the destination address of the packets.

[0083] S104. The SMF network element sends the DNS address corresponding to the second UPF network element to the first UPF network element. Correspondingly, the first UPF network element receives the DNS address corresponding to the second UPF network element.

[0084] In some embodiments, the SMF network element sends the DNS address corresponding to the second UPF network element to the first UPF network element through the non-access stratum endpoint (N4) interface.

[0085] In some embodiments, the N4 interface is used to transmit control plane information between SMF network elements and UPF network elements.

[0086] S105. The first UPF network element sends the terminal's service data to the second UPF based on the DNS address corresponding to the second UPF network element. Correspondingly, the second UPF network element receives the terminal's service data sent by the first UPF.

[0087] For example, the terminal's service data includes the context data of the applications running on the terminal. Thus, migrating the context data of the applications running on the terminal to the second UPF before switching the terminal ensures the continuity of application services.

[0088] In some embodiments, the first UPF network element sends the terminal's service data to the second UPF through the N9 interface. The N9 interface protocol has expanded the fields compared to the existing transmission protocol for transmitting service data without application status.

[0089] In some embodiments, after step S105, as Figure 5 As shown, the above method also includes the following steps S106-S108.

[0090] S106. The first UPF network element sends a second message to the SMF network element. Correspondingly, the SMF network element receives the second message sent by the first UPF network element.

[0091] The second message is used to indicate that the first UPF network element has completed the transmission of the terminal's service data.

[0092] S107. The second UPF network element sends a third message to the SMF network element. Correspondingly, the SMF network element receives the third message sent by the second UPF network element.

[0093] The third message is used to indicate that the second UPF network element has received the service data from the terminal.

[0094] S108 and SMF network elements respond to the second and third messages by sending the DNS address corresponding to the second UPF network element to the terminal, so that the terminal can establish a new PDU session with the second UPF network element.

[0095] It is understandable that since the second message is used to indicate that the first UPF network element has completed the transmission of service data, and the third message is used to indicate that the second UPF network element has completed the reception of service data, when the SMF network element receives the second and third messages, it means that the service data between the user planes has been transmitted and the terminal can perform UPF switching.

[0096] In some embodiments, after the SMF network element sends the DNS address corresponding to the second UPF network element to the terminal, the SMF network element sends a PDU session modification message to the terminal, wherein the session modification message includes the DNS address corresponding to the second UPF network element; accordingly, the terminal receives and stores the DNS address corresponding to the second UPF network element, and responds to the SMF with a PDU session modification completion message, and then the terminal initiates an access request to the second UPF network element.

[0097] For ease of understanding, the business migration method provided in the embodiments of this application will be described below in the form of scenarios.

[0098] For example, the business migration method provided in this application can be applied to, for example, Figure 6 The scenario shown includes: a vehicle terminal, a base station, a UPF network element, a MEC network element, an SMF network element, and a central DNS server. It can be seen that after the vehicle terminal moves from location A to location B, the network latency between the vehicle terminal and the first UPF exceeds a preset threshold. Therefore, the SMF network element needs to perform a UPF handover for the vehicle terminal. Furthermore, before the vehicle terminal switches to the new second UPF, the first UPF sends the context data of the application running on the vehicle terminal to the second UPF to ensure the continuity of the application service.

[0099] For example, based on Figure 6 The scene shown is as follows: Figure 7 As shown, the business migration method provided in this application can be implemented through the following steps:

[0100] Sa1. When in location A, the vehicle terminal sends the first PDU session establishment request to the SMF network element.

[0101] In some embodiments, the first PDU session establishment request includes extended protocol configuration options (PCO) information. The PCO information includes many configuration options, such as address allocation preference, DNS, DNS server address, password authentication protocol (PAP), challenge handshake authentication protocol (CHAP), selected bearer control mode, IMCN subsystem signaling flag, policy control rejection code, and other optional parameters. In this embodiment, the PCO information includes a DNS address request.

[0102] Sa2. Based on the first PDU session establishment request, the SMF network element sends the first PDU session establishment response to the vehicle terminal.

[0103] The first PDU session establishment response includes the address of the first DNS; the first DNS can be a DNS in location A.

[0104] In some embodiments, where a local DNS server is available for the vehicle terminal, i.e., the location of the vehicle terminal is within the coverage area of ​​the local operator's network, the SMF network element sends local DNS address information and a first PDU session establishment response to the vehicle terminal.

[0105] Sa3. Based on the response established by the first PDU session, the vehicle terminal initiates an access request to the first DNS server.

[0106] Sa4. After the vehicle terminal moves from location A to location B, the SMF obtains the latest location information of the vehicle terminal.

[0107] The Sa5 and SMF network elements determine whether the vehicle terminal needs to switch to UPF based on the latest location information of the vehicle terminal.

[0108] For example, the SMF network element can determine the network latency between the vehicle terminal and the first UPF based on the latest location information of the vehicle terminal, and determine that the vehicle terminal needs to switch UPFs if the network latency is greater than or equal to a preset threshold.

[0109] Sa6. When the vehicle terminal needs to switch UPFs, the SMF network element sends a first message to the central DNS server. The first message is used to request the allocation of a new UPF network element for the vehicle terminal. The first message includes the domain name of the vehicle terminal.

[0110] Sa7, the DNS address corresponding to the second UPF network element sent by the DNS server of the SMF network element receiving center.

[0111] Among them, the second UPF network element is the new UPF network element selected by the central DNS server for the vehicle terminal.

[0112] Sa8 and SMF network elements send the DNS address corresponding to the second UPF network element to the first UPF network element.

[0113] Sa9. The first UPF network element sends the context data of the application running in the vehicle terminal to the second UPF network element according to the DNS address corresponding to the second UPF network element.

[0114] Sa10, the first UPF network element sends the second message to the SMF network element.

[0115] Sa11, the second UPF network element sends a third message to the SMF network element.

[0116] Sa12, in response to the second and third messages, the SMF network element sends the DNS address corresponding to the second UPF network element to the vehicle terminal.

[0117] Sa13. Based on the DNS address corresponding to the second UPF network element, the vehicle terminal initiates an access request to the second UPF network element.

[0118] As can be seen from the above embodiments, after the vehicle terminal moves from location A to location B, the network latency between the vehicle terminal and the currently connected first UPF network element is too high, requiring a UPF handover. Therefore, the SMF network element can acquire a new second UPF network element (the network latency between the second UPF network element and the vehicle terminal is less than a preset threshold). At the same time, in order to avoid interruption of the applications running on the vehicle terminal, this embodiment can migrate the context data of the applications running on the vehicle terminal to the second UPF network element before switching the vehicle terminal to the second UPF network element. In this way, the continuity of the application services running on the vehicle terminal can be guaranteed, and the user experience can be improved.

[0119] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this invention.

[0120] This application embodiment can divide network nodes into functional modules according to the above method example. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.

[0121] like Figure 8 The diagram shown is a structural schematic of a service migration device provided in an embodiment of this application. Figure 8 Each module in the device shown has the ability to implement Figures 3 to 7 The corresponding steps in the process have functions that can achieve their corresponding technical effects. For example... Figure 8 As shown, the service migration device 800 includes: an acquisition module 801, a sending module 802, and a receiving module 803.

[0122] The acquisition module 801 is used to acquire the network latency between the terminal in the mobile state and the first UPF network element, where the first UPF network element is the UPF network element currently accessed by the terminal.

[0123] The sending module 802 is used to send a first message to the central DNS server when the network latency is greater than a preset threshold. The first message is used to request the allocation of a new UPF network element for the terminal.

[0124] The receiving module 803 is used to receive the DNS address corresponding to the second UPF network element sent by the central DNS server. The second UPF network element is a new UPF network element allocated by the DNS server to the terminal. The network latency between the second UPF network element and the terminal is less than or equal to a preset threshold.

[0125] The sending module 802 is also used to send the DNS address corresponding to the second UPF network element to the first UPF network element, so that the first UPF network element can send the terminal's service data to the second UPF network element.

[0126] In some embodiments, the receiving module 803 is further configured to receive a second message sent by the first UPF network element, the second message indicating that the first UPF network element has completed the transmission of the terminal's service data; and to receive a third message sent by the second UPF network element, the third message indicating that the second UPF network element has received the terminal's service data.

[0127] In some embodiments, the sending module 802 is further configured to send the DNS address corresponding to the second UPF network element to the terminal in response to the second message and the third message, so that the terminal can establish a new Protocol Data Unit (PDU) session with the second UPF network element.

[0128] like Figure 9 The diagram shown is a structural schematic of a service migration device provided in an embodiment of this application. Figure 9 Each module in the device shown has the ability to implement Figures 3 to 7 The corresponding steps in the process have functions that can achieve their corresponding technical effects. For example... Figure 9 As shown, the service migration device 900 includes a receiving module 901 and a sending module 902.

[0129] The receiving module 901 is used to receive the DNS address corresponding to the second UPF network element sent by the SMF network element when the network delay between the mobile terminal and the first UPF network element is greater than a preset threshold.

[0130] The sending module 902 is used to send the terminal's service data to the second UPF based on the DNS address corresponding to the second UPF network element.

[0131] In some embodiments, the sending module 902 is further configured to send a second message to the SMF network element, the second message being used to indicate that the first UPF network element has completed the transmission of the terminal's service data.

[0132] like Figure 10 The diagram shown is a structural schematic of a service migration device provided in an embodiment of this application. Figure 10 Each module in the device shown has the ability to implement Figures 3 to 7 The corresponding steps in the process have functions that can achieve their corresponding technical effects. For example... Figure 10 As shown, the service migration device 1000 includes a receiving module 1001.

[0133] The receiving module 1001 is used to receive service data of the terminal sent by the first UPF network element when the network delay between the terminal in the mobile state and the first UPF network element is greater than a preset threshold.

[0134] In some embodiments, the above-mentioned service migration apparatus further includes: a sending module 1002, configured to send a third message to an SMF network element, the third message being used to indicate that the second UPF network element has received the service data of the terminal.

[0135] In the case of implementing the functions of the integrated modules described above in hardware, this embodiment of the invention provides another possible structural diagram of the service migration device involved in the above embodiments. For example... Figure 11 As shown, the service migration device 1100 includes: a processor 1102, a communication interface 1103, and a bus 1104. Optionally, the service migration device may also include a memory 1101.

[0136] Processor 1102 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1102 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 1102 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0137] Communication interface 1103 is used to connect to other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0138] The memory 1101 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.

[0139] As one possible implementation, the memory 1101 can exist independently of the processor 1102. The memory 1101 can be connected to the processor 1102 via a bus 1104 and is used to store instructions or program code. When the processor 1102 calls and executes the instructions or program code stored in the memory 1101, it can implement the service migration method provided in this embodiment of the invention.

[0140] In another possible implementation, the memory 1101 can also be integrated with the processor 1102.

[0141] Bus 1104 can be an extended industry standard architecture (EISA) bus, etc. Bus 1104 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 11 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0142] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the business migration device can be divided into different functional modules to complete all or part of the functions described above.

[0143] This application also provides a computer-readable storage medium. All or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware. The program can be stored in the computer-readable storage medium, and when executed, it can include the processes of the above method embodiments. The computer-readable storage medium can be any of the foregoing embodiments or memory. The computer-readable storage medium can also be an external storage device of the above-mentioned business migration apparatus, such as a plug-in hard drive, smart media card (SMC), secure digital (SD) card, flash card, etc., equipped on the business migration apparatus. Further, the computer-readable storage medium can include both internal storage units of the business migration apparatus and external storage devices. The computer-readable storage medium is used to store the computer program and other programs and data required by the business migration apparatus. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0144] This application also provides a computer program product, which includes a computer program that, when run on a computer, causes the computer to perform any of the business migration methods provided in the above embodiments.

[0145] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A business migration method, characterized in that, The method, applied to the Session Management Function (SMF) network element, includes: The network latency between the mobile terminal and the first user plane function UPF network element is obtained, where the first UPF network element is the UPF network element currently accessed by the terminal. If the network latency is greater than a preset threshold, a first message is sent to the central domain name system DNS server. The first message is used to request the allocation of a new UPF network element for the terminal. The terminal receives the DNS address corresponding to the second UPF network element sent by the central DNS server. The second UPF network element is a new UPF network element allocated by the DNS server to the terminal. The network latency between the second UPF network element and the terminal is less than or equal to a preset threshold. The DNS address corresponding to the second UPF network element is sent to the first UPF network element so that the first UPF network element can dynamically migrate the terminal's service data to the second UPF network element to ensure the continuity of application services; the terminal's service data includes the context data of the application running on the terminal; Receive a second message sent by the first UPF network element, the second message being used to indicate that the first UPF network element has completed the transmission of the terminal's service data; Receive a third message sent by the second UPF network element, the third message being used to indicate that the second UPF network element has received the service data of the terminal; In response to the second message and the third message, the DNS address corresponding to the second UPF network element is sent to the terminal so that the terminal can establish a new Protocol Data Unit (PDU) session with the second UPF network element.

2. A business migration device, characterized in that, Applied to SMF network elements, the device includes: The acquisition module is used to acquire the network latency between the terminal in a mobile state and the first UPF network element, wherein the first UPF network element is the UPF network element currently accessed by the terminal; The sending module is used to send a first message to the central DNS server when the network latency is greater than a preset threshold. The first message is used to request the allocation of a new UPF network element for the terminal. The receiving module is used to receive the DNS address corresponding to the second UPF network element sent by the central DNS server. The second UPF network element is a new UPF network element allocated by the DNS server to the terminal. The network latency between the second UPF network element and the terminal is less than or equal to a preset threshold. The sending module is further configured to send the DNS address corresponding to the second UPF network element to the first UPF network element, so that the first UPF network element can dynamically migrate the service data of the terminal to the second UPF network element to ensure the continuity of application services; the service data of the terminal includes the context data of the application running in the terminal; The receiving module is further configured to receive a second message sent by the first UPF network element, the second message indicating that the first UPF network element has completed the transmission of the terminal's service data; and to receive a third message sent by the second UPF network element, the third message indicating that the second UPF network element has received the terminal's service data. The sending module is further configured to, in response to the second message and the third message, send the DNS address corresponding to the second UPF network element to the terminal, so that the terminal establishes a new Protocol Data Unit (PDU) session with the second UPF network element.

3. An electronic device, characterized in that, It includes a processor and a memory, the processor being coupled to the memory; the memory is used to store computer instructions, which are loaded and executed by the processor to enable the computer device to implement the business migration method as described in claim 1.

4. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer-executable instructions that, when executed on a computer, cause the computer to perform the business migration method of claim 1.