Method, device and equipment for selecting AMF (Advanced Media Function) switched across PLMN (Public Land

By obtaining the NSSAI of the target PLMN and querying the target AMF during the cross-PLMN switching process, the problem of inaccurate AMF selection in the prior art is solved, ensuring the business continuity and experience of the user terminal.

CN119233235APending Publication Date: 2024-12-31CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310798005.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

During the PLMN handover process across public land mobile networks, the prior art cannot accurately select the target AMF, resulting in the possible interruption of the service switching of the user terminal, affecting the service experience.

Method used

By determining whether the user terminal is switching across PLMN, obtaining the network slice selection auxiliary information of the target PLMN, and sending an AMF instance query request to the network element service storage function NRF, selecting the target AMF based on the NSSAI and TAI of the target PLMN to ensure continuous service sex.

Benefits of technology

It realizes the more accurate selection of the target AMF when switching across PLMN, avoids business interruptions caused by inconsistent AMF capabilities, and improves the service experience of the user terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119233235A_ABST
    Figure CN119233235A_ABST
Patent Text Reader

Abstract

The invention provides a cross-PLMN (Public Land Mobile Network) switching access and AMF (Mobility Management Function) selection method and device, electronic equipment and a computer readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: judging whether a user terminal is switched across PLMN or not; in response to cross-PLMN switching of the user terminal, acquiring an NSSAI of the target PLMN; sending an AMF instance query request to a network element service storage function (NRF), so that the NRF selects a target AMF according to the NSSAI of the target PLMN and a target tracking area identifier (TAI); and receiving a target AMF fed back by the NRF and executing AMF switching. The invention discloses a switching method and device, and aims to at least solve the problem that switching may be interrupted and the service experience of UE is affected due to the fact that a target AMF with inaccurate slicing capability is possibly selected in a cross-PLMN switching process in the prior art, and the switching method and device are suitable for national roaming, shared network roaming and other scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a method, device, electronic device and computer-readable storage medium for selecting an access and mobility management function (AMF) for switching across a public land mobile network (PLMN). Background Art

[0002] At present, during the cross-public land mobile network PLMN switching process, the source access and mobility management function AMF triggers the target AMF selection. The network element service storage function NRF query mechanism is used in the selection process. The query request sent by the source AMF to the NRF carries the target PLMN ID, source PLMN ID, slice instance identifier (ie, NSI ID), single network slice selection auxiliary information S-NSSAI and network function service setting identifier (NFservice set ID). If the initiator is the source AMF, the query request will carry AMFregion, AMF set, GUMAI and target tracking area identifier TAI. However, for network deployment, if there are both target AMF ToB (industry users signed NSSAI 1) and target AMF ToC (public users signed NSSAI 2), when the slice capabilities of NSSAI 1 and NSSAI 2 are different, the NRF query mechanism is inaccurate for the selection of the target AMF.

[0003] For example, AMF ToB (signed NSSAI 1) and AMF ToC (signed NSSAI

[0004] 2) The AMF region, AMFset, and GUMAI of the cross-PLMN that belongs to the same target PLMN ID are invisible to the visited public land mobile network VPLMN. However, AMF ToB (contracted NSSAI 1) and AMF ToC (contracted NSSAI 2) are both linked to the 5G wireless access network NG-RAN to which the target TAI belongs, so it is impossible to accurately distinguish whether to select AMF ToB (contracted NSSAI1) or AMF ToC (contracted NSSAI 2). Therefore, during the cross-PLMN switching process, a target AMF with inaccurate slicing capabilities may be selected. If the target AMF can only meet some of the connected service capabilities of the user terminal UE, the switching may be interrupted, affecting the UE's service experience. Summary of the invention

[0005] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art and to provide a method, device, electronic device and computer-readable storage medium for selecting an AMF for PLMN switching, so as to at least solve the problem in the related art that an inaccurate target AMF with inaccurate slicing capability may be selected during the cross-PLMN switching process. For example, if the target AMF can only meet part of the connected service capabilities of the user terminal UE, the switching may be interrupted, affecting the service experience of the UE.

[0006] In the first aspect, the present invention provides a method for selecting an access and mobility management function AMF for switching across a public land mobile network PLMN, which is applied to a source AMF, including: determining whether a user terminal is switching across PLMNs; in response to the user terminal switching across PLMNs, obtaining network slice selection auxiliary information NSSAI of a target PLMN; sending an AMF instance query request to a network element service storage function NRF, wherein the AMF instance query request includes the NSSAI of the target PLMN and the target tracking area identifier TAI, so that the NRF selects a target AMF based on the NSSAI of the target PLMN and the target TAI; receiving the target AMF fed back by the NRF and performing AMF switching to support service continuity of user terminals switching across PLMNs.

[0007] Preferably, the inter-PLMN switching includes one of the following: national roaming, shared network, heterogeneous network roaming, and core network roaming.

[0008] Preferably, before determining whether the user terminal is switched across PLMNs, the method further includes: receiving a switching request sent by a source 5G access network NG-RAN, wherein the switching request includes a result identifier of the source NG-RAN determining whether the user terminal is switched across PLMNs.

[0009] Preferably, the determining whether the user terminal is switching across PLMNs specifically includes: obtaining a target TAI, a cell identifier, and a global RAN node identifier in a switching request; determining whether the PLMN of the target TAI or the cell identifier is the same as the PLMN of the global RAN node identifier; in response to the determination result being different, determining that the user terminal is switching across PLMNs; and in response to the determination result being the same, determining that the user terminal is switching within the system.

[0010] Preferably, the obtaining of the network slice selection auxiliary information NSSAI of the target PLMN specifically includes: obtaining the NSSAI of the target PLMN based on an NRF query or based on a network slice selection function NSSF query.

[0011] Preferably, the obtaining of the NSSAI of the target PLMN based on NRF query or based on network slice selection function NSSF query specifically includes: determining whether the slice type of the NSSAI of the source PLMN is greater than a preset threshold; in response to a no determination result, obtaining the NSSAI of the target PLMN based on NRF query; in response to a yes determination result, obtaining the NSSAI of the target PLMN based on NSSF query.

[0012] Preferably, the method of obtaining the NSSAI of the target PLMN based on NRF query specifically includes: obtaining the target PLMN in the switching request; sending a first query request to the source NRF, the first query request including the source PLMN+NSSAI and the target PLMN, so that the source NRF is routed to the target NRF according to the target PLMN, and the target NRF queries the mapping relationship between the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN according to the source PLMN, and finds the S-NSSAI matching the target PLMN according to the mapping relationship, and returns the S-NSSAI matching the target PLMN to the source NRF; receiving the S-NSSAI matching the target PLMN returned by the source NRF to obtain the NSSAI of the target PLMN.

[0013] Preferably, before sending the first query request to the source NRF, the method further comprises: configuring a corresponding S-NSSAI mapping relationship between the source PLMN's S-NSSAI and the target PLMN at the source NRF or the target NRF.

[0014] Preferably, the method of obtaining the NSSAI of the target PLMN based on NSSF query specifically includes: sending a second query request to NSSF, the second query request including the source PLMN+NSSAI, the target PLMN and an indication bit, the indication bit representing the query of the target network switching information in the PDU switching process in the home roaming scenario, so that NSSF queries the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI according to the source PLMN+NSSAI and the target PLMN, wherein the target NSSF stores the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI; receiving the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI returned by NSSF according to the indication bit to obtain the NSSAI of the target PLMN.

[0015] In the second aspect, the present invention also provides a method for selecting an AMF for cross-PLMN switching, which is applied to NRF, including: receiving an AMF instance query request sent by a source AMF, wherein the AMF instance query request includes the NSSAI and target TAI of the target PLMN. Before the source AMF sends the AMF instance query request, the source AMF determines whether the user terminal is switched across PLMNs. In response to the user terminal being switched across PLMNs, the source AMF obtains the NSSAI of the target PLMN; selects a target AMF based on the NSSAI and target TAI of the target PLMN; and feeds back the target AMF to the source AMF so that the source AMF performs AMF switching to support service continuity of user terminals switched across PLMNs.

[0016] Preferably, the inter-PLMN switching includes one of the following: national roaming, shared network, heterogeneous network roaming, and core network roaming.

[0017] Preferably, the NRF selects a target AMF according to the NSSAI and target TAI of the target PLMN, specifically including: the NRF finds a matching target AMF set according to the NSSAI of the target PLMN; the NRF selects a target AMF from the target AMF set according to the target TAI.

[0018] In a third aspect, the present invention also provides an AMF selection device for inter-PLMN switching, which is applied to a source AMF and includes: a judgment module, used to judge whether a user terminal is switched across PLMNs. An acquisition module, connected to the judgment module, is used to obtain the NSSAI of the target PLMN in response to the user terminal switching across PLMNs. A sending module, connected to the acquisition module, is used to send an AMF instance query request to a network element service storage function NRF, wherein the AMF instance query request includes the NSSAI and target TAI of the target PLMN, so that the NRF selects a target AMF according to the NSSAI and target TAI of the target PLMN. A first receiving module is used to receive the target AMF fed back by the NRF and perform AMF switching to support service continuity of user terminals switched across PLMNs.

[0019] Preferably, the cross-PLMN handover includes one of the following: national roaming, shared network, foreign network roaming, core network roaming,

[0020] Preferably, the device further comprises a second receiving module.

[0021] The second receiving module is connected to the judgment module, and is used to receive a switching request sent by the source 5G access network NG-RAN, wherein the switching request includes a result identifier of the source NG-RAN judging whether the user terminal is switched across PLMNs.

[0022] Preferably, the judging module comprises a first obtaining unit and a first judging unit.

[0023] The first acquisition unit is used to acquire the target TAI, the cell identifier, and the global RAN node identifier in the handover request.

[0024] The first judgment unit is connected to the first acquisition unit, and is used to judge whether the PLMN identified by the target TAI or cell is the same as the PLMN identified by the global RAN node, and is used to determine that the user terminal is switched across PLMNs in response to the judgment result being different, and is used to determine that the user terminal is switched within the system in response to the judgment result being the same.

[0025] Preferably, the acquisition module is used to acquire the NSSAI of the target PLMN based on NRF query or based on NSSF query.

[0026] Preferably, the acquisition module includes a second judgment unit, a second acquisition unit and a third acquisition unit.

[0027] The second judgment unit is used to determine whether the slice type of the NSSAI of the source PLMN is greater than a preset threshold.

[0028] The second acquisition unit is connected to the second judgment unit, and is used to obtain the NSSAI of the target PLMN based on the NRF query in response to the judgment result being no.

[0029] The third acquisition unit is connected to the second judgment unit, and is used to obtain the NSSAI of the target PLMN based on the NSSF query in response to the judgment result being yes.

[0030] Preferably, the second acquisition unit is used to obtain the target PLMN in the switching request and send a first query request to the source NRF, the first query request includes the source PLMN+NSSAI and the target PLMN, so that the source NRF is routed to the target NRF according to the target PLMN, and the target NRF queries the mapping relationship between the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN according to the source PLMN, and finds the S-NSSAI matching the target PLMN according to the mapping relationship, returns the S-NSSAI matching the target PLMN to the source NRF, and is used to receive the S-NSSAI matching the target PLMN returned by the source NRF to obtain the NSSAI of the target PLMN.

[0031] Preferably, the device further comprises a configuration module.

[0032] The configuration module is used to configure the S-NSSAI mapping relationship between the source PLMN and the corresponding S-NSSAI of the target PLMN in the source NRF or the target NRF.

[0033] Preferably, the third acquisition unit is used to send a second query request to NSSF, the second query request includes the source PLMN+NSSAI, the target PLMN and an indication bit, the indication bit represents the query of the target network switching information in the PDU switching process in the home roaming scenario, so that NSSF queries the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI according to the source PLMN+NSSAI and the target PLMN, wherein the target NSSF stores the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI, and is used to receive the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI returned by NSSF according to the indication bit to obtain the NSSAI of the target PLMN.

[0034] In a fourth aspect, the present invention also provides an AMF selection device for cross-PLMN switching, which is applied to NRF and includes: a third receiving module, which is used to receive an AMF instance query request sent by a source AMF, wherein the AMF instance query request includes the NSSAI and target TAI of the target PLMN. Before the source AMF sends the AMF instance query request, the source AMF determines whether the user terminal is switched across PLMNs. In response to the user terminal being switched across PLMNs, the source AMF obtains the network slice selection auxiliary information NSSAI of the target PLMN. A feedback module, connected to the third receiving module, is used to select a target AMF according to the NSSAI and target TAI of the target PLMN, and is used to feed back the target AMF to the source AMF so that the source AMF performs AMF switching and supports service continuity of user terminals switched across PLMNs.

[0035] Preferably, the feedback module includes a selection unit, which is used to find a matching target AMF set according to the NSSAI of the target PLMN, and to select a target AMF from the target AMF set according to the target TAI.

[0036] In a fifth aspect, the present invention also provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the AMF selection method for cross-PLMN switching as described in the first aspect or the second aspect.

[0037] In a sixth aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for selecting an AMF for cross-PLMN switching as described in the first aspect or the second aspect is implemented.

[0038] The present invention provides an AMF selection method, device, electronic device and computer-readable storage medium for inter-PLMN switching. When a user terminal switches across PLMNs, the network slice selection auxiliary information NSSAI of the target PLMN is obtained, and an AMF instance query request is sent to the NRF, so that the NRF selects the target AMF according to the NSSAI of the target PLMN and the target tracking area identifier TAI in the AMF instance query request, thereby continuing the connection state service of the user terminal and avoiding service interruption due to inaccurate selection of the target AMF and failure to meet the service capabilities of the user terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a flow chart of a method for selecting an AMF for inter-PLMN handover according to Embodiment 1 of the present invention;

[0040] Figure 2 This is a schematic diagram of the structure of an AMF selection device for inter-PLMN switching according to embodiment 3 of the present invention;

[0041] Figure 3 This is a schematic diagram of the structure of an AMF selection device for inter-PLMN switching according to embodiment 4 of the present invention;

[0042] Figure 4 This is a schematic diagram of the structure of an electronic device according to Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0043] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0044] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.

[0045] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.

[0046] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.

[0047] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.

[0048] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.

[0049] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.

[0050] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.

[0051] Embodiment 1:

[0052] This implementation provides a method for selecting an access and mobility management function AMF for handover across public land mobile networks (PLMNs), supporting more accurate selection of AMFs in handover of user connection-state services from a local public land mobile network (HPLMN) to a visited public land mobile network (VPMN), and also supporting more accurate selection of AMFs in handover of user connection-state services from a VPLMN to an HPMN network, where connection-state services include data services and / or voice services. The selection method is applicable to a variety of cross-PLMN handover scenarios, such as national roaming, shared network, inter-network roaming, core network roaming, etc. For example, participating operators and hosted access network (RAN) operators provide services for user terminals UE moving between their service areas, and the services provided are based on the user subscription and billing requirements of the participating operators, including service logic provided by the participating operators and hosted RAN operators, such as UE's voice, short message service SMS, and data communications.

[0053] Application scenarios include user terminals registered in the HPLMN, that is, they can log in to the 5G system through the HPLMN's NG-RAN and AMF. There is an intercommunication interface between the HPLMN and the VPLMN to transmit messages between network elements. A cooperation agreement has been signed between the HPLMN and the VPLMN, allowing terminals to switch between PLMNs to ensure business continuity.

[0054] like Figure 1 As shown, this implementation provides a method for selecting an access and mobility management function AMF for handover across a public land mobile network PLMN, which is applied to a source AMF, including:

[0055] Step 101, determining whether the user terminal is switching across PLMNs.

[0056] In this embodiment, cross-PLMN switching includes one of the following: national roaming, shared network, inter-network roaming, and core network roaming. There are two ways for the source AMF to determine whether the user terminal is cross-PLMN switching. One way is for the source RAN to determine whether the user terminal is cross-PLMN switching, and send the result identifier corresponding to the judgment result to the source AMF. When the source AMF trusts the judgment result of the source NG-RAN, the source AMF directly determines whether the user terminal is cross-PLMN switching according to the received result identifier, see step S1-step S2 for details. This method can save the computing resources of the source AMF and improve the efficiency of target AMF selection. Another way is when the source AMF does not trust the judgment result of the source RAN, the source AMF determines whether the user terminal is cross-PLMN switching by itself. The reason why the source AMF does not trust the source NG-RAN may be: the operator's configuration, or the source NG-RAN and the source AMF are from different manufacturers or different construction units. Therefore, this method can ensure the accuracy of the judgment result of cross-PLMN switching. The following details two specific ways to determine whether the user terminal is cross-PLMN switching:

[0057] S1. The source AMF receives a handover request sent by the source NG-RAN, wherein the handover request includes a result identifier of the source NG-RAN determining whether the user terminal is an inter-PLMN handover.

[0058] In this embodiment, the UE moves from the source PLMN (HPLMN) network to the 5G area of ​​the target PLMN. The source NG-RAN assists the source AMF in determining whether the user terminal is switched across PLMNs. For example, the source NG-RAN compares the PLMN used in the target network with the PLMN of the source Global RAN Node ID, and carries the parameters corresponding to the judgment result to the next network element source AMF, and the parameters include an indication of "intra-system switching". In the case of switching to the target PLMN, the source NG-RAN determines the PLMN to be used in the target network. The source NG-RAN shall indicate the selected PLMN ID (or PLMN ID and NID) to the AMF as part of the tracking area ID sent in the HO required message. This embodiment proposes that the source NG-RAN needs to compare the PLMN used in the target network with the PLMN of the source Global RAN Node ID. If the target PLMN is the same as the source PLMN, the source NG-RAN will carry the result identifier "intra-system handover" in the handover request sent to the source AMF; if they are not the same, the source NG-RAN will not carry the "intra-system handover", or the source NG-RAN will carry the result identifier "intra-system handover" in the handover request, but the result identifier "intra-system handover" = 0;

[0059] For example:

[0060] Global RAN Node ID also contains

[0061] PLMN Identity = 460abc (Source PLMN)

[0062] CHOICE gNB ID

[0063] >gNB ID

[0064] >>gNB ID

[0065] The gNB ID is a BIT STRING (SIZE(22..32)) equal to the leftmost bits of the NR Cell Identity IE contained in the NR CGI IE for each cell served by the gNB.

[0066] Target PLMN Identity = 460xyz (target PLMN)

[0067] CHOICE Target ID

[0068] >NG-RAN

[0069] >>Global RAN Node ID

[0070] >>Selected TAI

[0071] S2: The source AMF determines whether the user terminal is switching across PLMNs based on the result identifier "intra-system switching" (none, 0, 1) carried by the source NG-RAN in the switching request.

[0072] In this embodiment, the first message seen by the source AMF is from the source NG-RAN to the source AMF: a handover request message (carrying a target identifier (i.e., target ID), source-to-target transparent information, SMN2 information list, protocol data unit PDU session ID, and intra-system handover), wherein the value of the intra-system handover refers to step S1; the source-to-target transparent data (container) includes the NG-RAN information created by the source RAN, which is used by the target RAN and is transparent to the 5G core network 5GC. It also contains the corresponding user plane security mandatory information, quality of service QoS flow / DRB information, etc. for each PDU session; when the source AMF receives the handover request sent from the wireless side, it first detects whether it carries the result identifier "intra-system handover". If the handover request does not carry the result identifier "intra-system handover", or the result identifier "intra-system handover = 0", the source AMF determines that the user terminal is inter-PLMN handover. If the result identifier "intra-system handover" in the handover request = 1, the source AMF determines that the user terminal is not inter-PLMN handover. If "intra-system handover = 1", the intra-system handover process is executed according to the prior art.

[0073] When the source AMF does not trust the source NG-RAN, the source AMF determines on its own whether the user terminal is switching across PLMNs.

[0074] Specifically, the source AMF determines whether the user terminal is switched across PLMNs, including: obtaining the target TAI, cell identifier, and global RAN node identifier in the switching request; determining whether the PLMN of the target TAI or cell identifier is the same as the PLMN of the global RAN node identifier; in response to the judgment result being different, determining that the user terminal is switched across PLMNs; in response to the judgment result being the same, determining that the user terminal is switched within the system.

[0075] In this embodiment, the source AMF can determine whether the user terminal meets the conditions for cross-PLMN handover through the target TAI or cell ID. First, it determines whether the user terminal enters the handover process through the handover request handover require message, and then determines whether it is an inter-PLMN handover. Specifically, by judging the PLMN in the target ID, if there is no PLMN for the current session in the system, it is an inter-PLMN handover, and the source PLMN can be identified through the PLMN Identity in the Global RAN Node ID and other methods. The specific method of identification is: in order to reduce the system load, the right matching method can be used, because the MCC in China is the same, if it involves cross-border inter PLMN switching, a left match is required. If it is an int type, use "==" to determine whether it is equal; if it is an Integer type, the equals method can be used for equality comparison. For example:

[0076] >int target ID PLMN = 10;

[0077] >int local set PLMN = 10;

[0078] >System.out.print(target ID PLMN==local set PLMN)

[0079] If System.out.print = 1, the PLMN in the target ID is equal to the local PLMN, and it is not a handover between PLMNs. The subsequent AMF selection, AMF reselection, and handover process can be implemented according to the existing technology;

[0080] If System.out.print = 0, the PLMN in the target ID is not equal to the local PLMN, and inter-PLMN handover requires AMF selection for inter-PLMN handover;

[0081] The local set PLMN determined above can be the PLMN of the AMF set by the system or the source RAN information extracted by the N2 interface. The former is less accurate. The special scenario is that the AMF serves two PLMNs at the same time, that is, there are two local set PLMNs. At this time, it is still necessary to use the RAN side information of the N2 interface to determine which PLMN is used for the current call. If there is only one default PLMN configured by the AMF, it is not necessary to rely on the N2 interface information.

[0082] Optionally, when determining whether the user terminal initiates handover when the source PLMN is the HPLMN, the process specifically includes steps 1011 and 1012:

[0083] Step 1011, determine whether the protocol data unit PDU context saved by the user terminal in the source AMF or the user information when the user terminal is registered in the source AMF contains the S-NSSAI of the VPLMN.

[0084] Step 1012: In response to the PDU context or user information not including the S-NSSAI of the VPLMN, it is determined that the user terminal initiates a handover when the source PLMN is the local public land mobile network HPLMN.

[0085] In this embodiment, during the PDU session establishment process, after the UE determines the corresponding HPLMN S-NSSAl of the application according to the rules in the terminal routing selection policy URSP, the UE also needs to further determine the VPLMN S-NSSAl corresponding to the HPLMN S-NSSAI according to the network slice mapping relationship between the locally configured home domain and the visited domain. At this time, the AMF should save the VPLMN S-NSSAI information based on the information, and the subsequent AMF can determine whether the UE is accessed through the VPLMN based on the parameter. Therefore, the source AMF can determine whether the protocol data unit PDU context saved by the user terminal in the source AMF contains the S-NSSAI of the VPLMN to determine whether the user terminal initiates a handover in the source PLMN for the local public land mobile network HPLMN. Alternatively, when the UE initially registers to the network slice, the UE determines the mapping relationship between the S-NSSAI in the Requested NSSAI and the S-NSSAl of the HPLMN based on the configuration information, and provides the mapping relationship to the network. If the UE accesses from a VPLMN, there will be VPLMN S-NSSAI information. The function of providing the mapping relationship to the network is not supported by all UEs. The UE may not have the ability to report the VPLMN S-NSSAI information, or due to triggering conditions, the VPLMN S-NSSAI is not reported. If the UE has the function of providing the mapping relationship to the network, it can be determined through the registration process that the UE is in the VPLMN. Therefore, if the user information includes VPLMN S-NSSAI, the user terminal initiates handover in the VPLMN for a roaming user. If the user information does not include VPLMN S-NSSAI, the user terminal initiates handover in the HPLMN for a roaming user.

[0086] Step 102: In response to the user terminal switching across PLMNs, obtain the network slice selection auxiliary information NSSAI of the target PLMN.

[0087] In this embodiment, when the user terminal accesses the HPLMN and is not registered in the VPLMN, the source AMF does not obtain the VPLMN's S-NSSAI of the UE's allowed NSSAI and the corresponding S-NSSAI of the HPLMN of the allowed NSSAI mapping, because the user terminal is only registered in the HPLMN through the HPLMN access network and has no relationship with the VPLMN. At this time, there is no VPLMN registration, and no information related to the VPLMN will be generated. Therefore, the source AMF only saves the information of this network. When the source AMF receives the switching request message, it can obtain the target PLMN and target PLMN TAI information of the target network from the switching request, but the source AMF does not have the NSSAI information of the target network at this time. The query of the target network NSSAI is implemented in two ways as follows.

[0088] Specifically, obtaining the NSSAI of the target PLMN includes: obtaining the NSSAI of the target PLMN based on an NRF query or based on a network slice selection function NSSF query.

[0089] In this embodiment, it can be determined through network settings whether the NSSAI of the target PLMN is obtained based on NRF query or based on network slice selection function NSSF query.

[0090] Optionally, obtaining the NSSAI of the target PLMN based on a network element service storage function NRF query or a network slice selection function NSSF query specifically includes:

[0091] Step 1021, determine whether the slice type of the source PLMN+NSSAI is greater than a preset threshold.

[0092] Step 1022, in response to the judgment result being no, obtaining the NSSAI of the target PLMN based on the network storage function NRF query.

[0093] Step 1023, in response to the judgment result being yes, obtain the NSSAI of the target PLMN based on the network slice selection function NSSF query.

[0094] In this embodiment, the first method (i.e., step 1022) is usually used when there is no NSSF deployment or NSSF query cannot be used according to the operator and roaming agreement, and the target network information is completely queried through NRF. The second method (i.e., step 1023) is usually applied when the slice type exceeds the preset threshold, the preset threshold can be set to 3, and when it is necessary to obtain the subdivided slices of the target network, the target network information, i.e., the NSSAI of the target PLMN, is queried through NSSF.

[0095] Optionally, the method of obtaining the NSSAI of the target PLMN based on the NRF query specifically includes: obtaining the target PLMN in the switching request; sending a first query request to the source NRF, the first query request including the source PLMN+NSSAI and the target PLMN, so that the source NRF routes to the target NRF according to the target PLMN, and the target NRF queries the mapping relationship between the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN according to the source PLMN, and finds the S-NSSAI matching the target PLMN according to the mapping relationship, and returns the S-NSSAI matching the target PLMN to the source NRF; receiving the S-NSSAI matching the target PLMN returned by the source NRF to obtain the NSSAI of the target PLMN.

[0096] Optionally, before sending the first query request to the source NRF, the method for selecting the AMF for cross-PLMN switching also includes: configuring the S-NSSAI of the source PLMN and the corresponding S-NSSAI mapping relationship of the target PLMN in the source NRF or the target NRF.

[0097] In this embodiment, the NRF includes a source NRF and a target NRF, and the target NRF configures the mapping relationship between the S-NSSAI of the source PLMN corresponding to the source PLMN and the corresponding S-NSSAI of the target PLMN. When the source AMF sends a first query request to the source NRF, the source NRF communicates with the target NRF, and the target NRF can return the corresponding target NSSAI according to the mapping relationship between the S-NSSAI of the source PLMN corresponding to the PLMN and the corresponding S-NSSAI of the target PLMN. At the same time, the target NRF of this embodiment accurately selects the target AMF through the target NSSAI and the target TAI.

[0098] The mapping relationship between the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN is configured in the NRF of the target network. When signing a roaming agreement, the network needs to configure the target NRF accordingly. According to the roaming agreement, the mapping relationship at the slice level is saved in the target NRF. For example, it can be configured as follows in the NRF of the target network:

[0099] ->Mapping PLMN ID = abc ppq, S-NSSAI = {sequence 1, sequence 2, sequence 3, sequence 4, sequence 5, ...},

[0100] ->Home PLMN ID=xyz ijk, S-NSSAI={sequence 21, sequence 22, sequence 23, sequence 24, sequence 25, ...},

[0101] ->Mapping PLMN ID=abc ppq, S-NSSAI={sequence 1} corresponds to Home PLMN ID=xyz ijk, S-NSSAI={sequence 23}.

[0102] This Home PLMN ID is for the target NRF. This parameter corresponds to the VPLMN and HPLMN and is configured with each other. There can be multiple Mapping PLMNIDs and Home PLMN IDs. At this time, the source AMF (the source AMF is the AMF of the HPLMN) determines that the NRF selection mechanism should be used to query the target AMF process. At this time, the NRF process itself is an existing process, but the source AMF needs to determine whether the user switches from the HPLMN to the VPLMN, and needs to query through the NRF to obtain accurate slice information. Specifically, the network element function entity NF service user can request to create a subscription to a specific NF instance or a group of NF instances for the "subscrCond" attribute of the "SubscriptionData" object type, based on the requested instance type reqNfType, the instance's FQDN reqNfFqdn, the requested NSSAI reqSnssais, the requested NSSAI of each PLMN reqPerPlmnSnssais, the requested PLMN list reqPlmnList, etc.

[0103] It should be noted that the source NRF can also directly configure the mapping relationship between the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN. In this case, the query between the source NRF and the target NRF can carry the mapping relationship. If the mapping relationship of the target NRF has been updated, the source NRF and the target NRF can negotiate and update to the latest mapping relationship. In order to complete the query between the source NRF and the target NRF, the source NRF needs to support routing for the target NRF. The source NRF performs routing for the target PLMN NRF according to the target PLMN, and carries the source PLMN+NSSAI, the target PLMN and the target TAI. The target NRF queries the target network's NRF configuration of the target PLMN and the corresponding S-NSSAI mapping relationship of the source PLMN and the target PLMN according to the source PLMN+NSSAI and the target PLMN, finds the corresponding S-NSSAI of the target PLMN, that is, the NSSAI of the target PLMN and returns it to the source AMF.

[0104] Optionally, the method of obtaining the NSSAI of the target PLMN based on NSSF query specifically includes: sending a second query request to NSSF, the second query request including the source PLMN+NSSAI, the target PLMN and an indication bit, the indication bit representing the query of the target network switching information in the PDU switching process in the home roaming scenario, so that NSSF queries the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI according to the source PLMN+NSSAI and the target PLMN, wherein the target NSSF stores the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI; receiving the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI returned by NSSF according to the indication bit to obtain the NSSAI of the target PLMN.

[0105] In this embodiment, the source AMF obtains the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI through NSSF query, wherein the mapping between the target PLMN+NSSAI and the source PLMN+NSSAI is stored in the target NSSF. After completing the NSSF query, the source AMF can carry the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI obtained by the source AMF through NSSF query corresponding to the PDU session in the subsequent NRF query instance. That is, when the source AMF queries the NRF, it carries the PLMN+NSSAI of the user requesting the service and the target PLMN+NSSAI, wherein the PLMN+NSSAI is the S-NSSAI of the serving PLMN and the serving PLMN of the allowed NSSAI, and the target PLMN+NSSAI is the corresponding S-NSSAI of the target PLMN. If there are many types of VPLMN and HPLMN slices, not only three major types of slices are supported, but also subdivided slices are supported. The S-NSSAI of the VPLMN of the UE's allowed NSSAI obtained through the roaming agreement and the corresponding S-NSSAI of the HPLMN of the allowed NSSAI mapping are relatively coarse. For example, the S-NSSAI of the VPLMN can only be mapped to one of the three major slice types of the HPLMN, but cannot be mapped to the subdivided slices. At this time, the accuracy can be further improved through NSSF query. Compared with the query mechanism only through NRF, the accuracy of NSSF query is further improved. Specifically, (1) the source AMF determines whether to initiate an NSSF query based on the operator configuration and policy, and the configuration of the roaming agreement data. For example, if the roaming agreement data configuration granularity is large, then based on the validity of the user information in the source AMF, the source AMF calls the Nnssf_NSSelection_Get service operation from the NSSF, using the NSSF of the ServingPLMN, and carrying information including: the S-NSSAI (source PLMN+NSSAI) of the serving PLMN that allows NSSAI requested by the UE, the target PLMN and the target PLMN TAI information, and an indication bit, which indicates that the request is in the PDU switching process in the home roaming scenario, and the target instance to be obtained is the target AMF. "PDU switching process in the home roaming scenario" means "the roaming user does not initiate the switching in the VPLMN" (the indication bit is used to show whether further slice information needs to be obtained), where the Serving PLMN is the source PLMN (HPLMN); that is, if the UE initiates the switching from the HPLMN, the NSSF+NRF method can be used to improve the accuracy of selecting the target AMF.In contrast, the judgment can be made directly through the NRF-only method. The source AMF can determine that the source PLMN+NSSAI is a slice for a subdivided scenario, and trigger the NSSF query mechanism in order to more accurately determine whether there is a slice that can be accurately matched in the target PLMN. (2) Alternatively, if the slice configuration information of the S-NSSAI in the serving PLMN is not available (for example, the S-NSSF / S-NRF has no cached information, or the granularity is large), the NSSF of the serving PLMN will call Nnssf_NSSelection_Get from the NSSF of the serving PLMN based on the S-NSSAI (source PLMN+NSSAI) of the serving PLMN that allows NSSAI requested by the UE, the target PLMN and the target PLMN TAI information, and an indication bit (the "PDU switching process" indication bit in the home roaming scenario), for the source AMF to use the serving PLMN S-NSSAI and other information to call Nnssf_NSSelection_Get from the NSSF of the serving PLMN. service operation. How to determine whether to call the NSSF query of the serving PLMN can be based on the "PDU switching process in the home roaming scenario" indicator bit. If "PDU switching process in the home roaming scenario" = 1, it means that the serving PLMN (HPLMN) switches to further query the target network switching information. Otherwise, the NSSF query of the HPLMN will not be performed. (3) If there is a source NSSF and a target NSSF in the network, then the NSSF+NRF mechanism to obtain the target AMF needs to support the mechanism of querying from the source NSSF to the target NSSF. For example, the source NSSF / source NRF has no cached information, or the granularity is large, or the source NSSF needs the assistance of the target NSSF to determine the reliable mapping slice of the subdivided scenario. For example, after the target NSSF mapping rule is changed, the source NSSAI (destination PLMN+destination NSSAI) result will change. If necessary, the NSSF in the HPLMN can carry the network slice instance NSIID in the returned Nnssf_NSSelection_uGet response. The NSI ID is the network slice instance NSIID selected by the H-NSSF according to the HPLMN. The slice instance selected by the S-NSSAI. The NSSF in the HPLMN also includes an appropriate hNRF, included in the Nnssf_NSSelection_Get response, for the NRF to subsequently select NFs / services in the HPLMN. This embodiment requires that if the serving PLMN NSSF wishes to obtain the NSSAI, it needs to set the PDU switching in the home roaming scenario to 1, and the HPLMN NSSF returns the target PLMN and the corresponding target PLMN NSSAI based on this parameter. (4) The serving NSSF includes all the information received from the NSSF in the serving PLMN in the Nnssf_NSSelection_Get response, which will appear when the serving NSSF sends the AMF.Includes NSI ID, hNRF, source PLMN+NSSAI, target PLMN+NSSAI and the correspondence between source PLMN+NSSAI, and target PLMN TAI information.

[0106] Step 103, sending an AMF instance query request to the network element service storage function NRF, wherein the AMF instance query request includes the NSSAI of the target PLMN and the target tracking area identifier TAI, so that the NRF selects the target AMF according to the NSSAI of the target PLMN and the target TAI.

[0107] In this embodiment, the NRF first determines the target AMF set according to the NSSAI of the target PLMN, and then selects a target AMF from the target AMF set according to the target TAI. Alternatively, the NRF first determines the target AMF set according to the target TAI, and then selects a target AMF from the target AMF set according to the NSSAI of the target PLMN.

[0108] Specifically, taking the example of the source AMF sending an AMF instance query to the NRF after obtaining the NSSAI of the target PLMN based on the NRF query, the NRF selects the target AMF according to the NSSAI of the target PLMN and the target tracking area identifier TAI.

[0109] If the target NRF is configured as:

[0110] ->Mapping PLMN ID = abc ppq, S-NSSAI = {sequence 1, sequence 2, sequence 3, sequence 4, sequence 5, ...},

[0111] ->Home PLMN ID=xyz ijk, S-NSSAI={sequence 21, sequence 22, sequence 23, sequence 24, sequence 25, ...},

[0112] ->Mapping PLMN ID=abc ppq, S-NSSAI={sequence 1} corresponds to Home PLMN ID=xyz ijk, S-NSSAI={sequence 23}.

[0113] ->>Source PLMN carried by source NRF + NSSAI = {abc ppq, sequence 1},

[0114] ->>Then the NSSAI found should be the target PLMN + NSSAI = {xyz ijk, sequence 23},

[0115] ->>The target NRF should return {xyz ijk, sequence 23}, and when searching for the target AMF, it should search according to sequence 23. Because the source AMF in this embodiment cannot obtain the S-NSSAI of the VPLMN of the UE's allowed NSSAI and the corresponding S-NSSAI of the HPLMN of the allowed NSSAI mapping. Therefore, when the source AMF queries the AMF instance through the source NRF, it cannot carry the target PLMN+NSSAI of the user requesting the service. The source NRF cannot route the target NRF according to the target PLMN+NSSAI, and when selecting the target AMF, it cannot use the target PLMN+NSSAI as one of the bases for selecting the target AMF. Therefore, in this embodiment, when the source AMF queries the source NRF, it carries the source PLMN+NSSAI, the target PLMN and the target TAI. The source NRF carries this information to the target NRF, and the target NRF queries the mapping relationship between the S-NSSAI of the source PLMN (HPLMN) and the corresponding S-NSSAI of the target PLMN to find the S-NSSAI matching the target PLMN, and then finds the appropriate AMF instance based on the target TAI and returns it to the source NRF, including the AMF area, AMF set, GUAMI, NSSAI and FQDN to which the target AMF belongs. The source NRF then returns the target AMF to the source AMF. In addition, when the source AMF receives the switching request message, it performs target AMF selection: when the source AMF can no longer serve the UE, the source AMF selects the target AMF. When moving across PLMNs, the source AMF queries the target PLMN level NRF using the source PLMN level NRF of the target PLMN ID to select the AMF instance in the target PLMN. The target PLMN level NRF returns the AMF instance address according to the target network configuration. When the source AMF sends a query request to the source NRF, if the target NF is AMF, the request may include: AMF area, AMF set, GUAMI and target TAI. In this embodiment, if the source NRF can obtain the mapping relationship of the slice, it needs to be carried, such as target PLMN+NSSAI, or it may not be carried. The source NRF carries this information to the target NRF. The target NRF will select the regional affiliation (large region) of the AMF according to the AMF area, and then select an AMF set (a province) in the large region. However, GUAMI is generally inaccurate, and is not even carried in cross-region selection. Of course, the AMF area and AMF set may not be carried in cross-region selection.Then the valid parameters will only be the target PLMN or target PLMN+NSSAI and TAI. The target NRF needs to select the target AMF based on the configured S-NSSAI of the VPLMN and the corresponding S-NSSAI of the mapped HPLMN, and select the target AMF based on the target PLMN or target PLMN+NSSAI, TAI and mapping configuration. At this time, the target NRF can select a relatively accurate AMF instance through network configuration and return it to the source NRF, including the AMF area, AMF set, GUAMI, NSSAI, FQDN and IP address to which the AMF belongs. For example, the target NRF first determines whether the source NRF has signed an agreement with it for cross-PLMN switching network selection. If the target NRF determines that the contract is reasonable, it extracts the target PLMN+NSSAI and TAI information, first matches the NSSAI supported by the AMF, selects a part of the AMF (i.e., the target AMF set), and then corresponds to the target TAI information, which can further improve the accuracy of the target AMF selection. This embodiment does not limit the matching order of the selected parameters (PLMN+NSSAI, target TAI). Find the appropriate AMF instance based on the target TAI and return it to the target NRF, including the AMF area, AMF set, GUAMI, NSSAI and FQDN to which the AMF belongs.

[0116] Optionally, taking the example of obtaining the NSSAI of the target PLMN based on the NSSF query and then obtaining the target AMF based on the NRF query, the target AMF is selected based on the NSSAI of the target PLMN and the target tracking area identifier TAI, specifically including: sending an AMF instance query request to the NRF, the AMF instance query request including the NSSAI and target TAI of the target PLMN, so that the NRF finds a matching target AMF set based on the NSSAI of the target PLMN, and then selects the target AMF from the target AMF set based on the target TAI; and receiving the target AMF returned by the NRF.

[0117] In this embodiment, since the source AMF has obtained the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI through NSSF query. When executing the target AMF selection, the NRF selection mechanism should be used to query the target AMF. Specifically, the NF service user can request to create a subscription to a specific NF instance or a group of NF instances for the "subscrCond" attribute of the "SubscriptionData" object type, according to the requested instance type reqNfType, the instance's FQDNreqNfFqdn, the requested NSSAI reqSnssais, the requested NSSAI of each PLMN reqPerPlmnSnssais, the requested PLMN list reqPlmnList, etc. After completing the NSSF query, the source AMF in this embodiment can carry the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI corresponding to the PDU session when querying the AMF instance through NRF. That is, when the source AMF queries the NRF, it carries the PLMN+NSSAI of the user requesting the service and the target PLMN+NSSAI, where the PLMN+NSSAI is the S-NSSAI of the serving PLMN and the serving PLMN of the allowed NSSAI. The target PLMN+NSSAI is the corresponding S-NSSAI of the target PLMN.

[0118] The NRF needs to support the PLMN+NSSAI and target PLMN+NSSAI carried by the service requester, as well as the authentication permission of the NRF for the query method, and route the target PLMN NRF according to the target PLMN+NSSAI, and carry the target PLMN+NSSAI. The target PLMN NRF makes a judgment based on the query of the target PLMN+NSSAI and the data of the roaming agreement between the VPLMNNRF and the HPLMN NRF, and uses the target PLMN+NSSAI as one of the bases for selecting the target AMF when selecting the target AMF. For example, when the source AMF receives a handover request message, it performs target AMF selection: when the source AMF can no longer serve the UE, the source AMF selects the target AMF. When moving across PLMNs, the source AMF queries the target PLMN-level NRF using the source PLMN-level NRF of the target PLMNID and selects the AMF instance in the target PLMN. The target PLMN-level NRF returns the AMF instance address according to the target network configuration. When the source AMF of the source PLMN sends a query request to the source PLMN NRF, if the target NF being queried is AMF, the request may include: AMF area, AMF set, GUAMI and target TAI. In this embodiment, the target PLMN+NSSAI also needs to be carried. The source PLMN NRF carries this information to the target PLMN NRF. The target PLMN NRF will select the regional affiliation (large area) of the AMF according to the AMF area, and then select an AMF set (a province) in the large area. However, the GUAMI is generally inaccurate and is not even carried in cross-region selection. Of course, the AMF area and AMF set may not be carried in cross-region selection (because it is an AMF parameter across PLMNs, and the AMF parameter is only valid within the PLMN). Then the valid parameters will only be the target PLMN+NSSAI and the target TAI. At this time, the NRF of the target PLMN can select a relatively accurate AMF instance through network configuration and return it to the source PLMN NRF, including the AMF area, AMF set, GUAMI, NSSAI, FQDN and IP address to which the AMF belongs. Of course, for network security, the AMF area and other information may be desensitized. For example, the target PLMN NRF first determines whether the source PLMN NRF has signed an agreement with it for cross-PLMN switching and network selection. If the target PLMN NRF determines that the contract is reasonable, it extracts the target PLMN+NSSAI and target TAI information, first matches the NSSAI supported by the AMF, selects a part of the AMF, and corresponds to the target TAI information, which can further improve the accuracy of the AMF selection. This embodiment does not limit the order of parameter matching.According to the target TAI, a suitable AMF instance is found and returned to the target NRF, including the AMF area, AMF set, GUAMI, NSSAI and FQDN to which the AMF belongs. It should be noted that the target TAI information can be subdivided and operated consistently through planning means for cross-PLMN. For example, the target TAI has different planning granularity according to the range specified by different parameters. The more refined the planning means, the more accurate the AMF found according to the target TAI, but it may bring more operational burden. The target AMF obtained according to the target PLMN+NSSAI and TAI information will greatly increase the accuracy of AMF during switching, reduce QoE and QoS problems such as dropped calls, and better meet the service level agreement SLA. In summary, the method of selecting the target AMF based on NSSF and NRF is suitable for scenarios with more slice types. It not only supports three major types of slices, but also supports subdivided slices. The target PLMN+NSSAI is confirmed by searching the source PLMN NSSF, and then the target AMF is selected; the method of selecting the target AMF based on NRF is suitable for coarse-grained slice query and target AMF selection where NSSF is not deployed and there are fewer slice types.

[0119] The method for selecting the AMF for inter-PLMN switching of this embodiment obtains the network slice selection auxiliary information NSSAI of the target PLMN when the user terminal switches across PLMNs, and sends an AMF instance query request to the NRF, so that the NRF selects the target AMF according to the NSSAI of the target PLMN and the target tracking area identifier TAI, and performs AMF switching according to the target AMF fed back by the NRF, so that the connection state service of the user terminal continues, avoiding the situation where the service is interrupted due to the inaccurate selection of the target AMF and the inability to meet the service capabilities of the user terminal. Among them, the method of selecting the target AMF based on NRF is suitable for scenarios where NSSF is not deployed and the coarse-grained slice query is less. If the VPLMN and HPLMN slice types are more, not only three major types of slices are supported, but also subdivided slices are supported, the NSSAI of the target PLMN can be obtained through NSSF query to further improve the accuracy of the target AMF selection. Therefore, the method of selecting the target AMF based on NSSF and NRF is suitable for scenarios with more slice types. By searching the source PLMN NSSF to confirm a more accurate target PLMN+NSSAI, the accuracy of the target AMF selection is further improved.

[0120] Embodiment 2:

[0121] This embodiment provides a method for selecting an AMF for inter-PLMN handover, which is applied to an NRF and includes:

[0122] Step 201, receiving an AMF instance query request sent by a source AMF, wherein the AMF instance query request includes the NSSAI and target TAI of the target PLMN. Before the source AMF sends the AMF instance query request, the source AMF determines whether the user terminal is switched across PLMNs. In response to the user terminal being switched across PLMNs, the source AMF obtains the network slice selection auxiliary information NSSAI of the target PLMN.

[0123] Step 202: Select a target AMF based on the NSSAI and target TAI of the target PLMN.

[0124] Step 203: Feedback the target AMF to the source AMF so that the source AMF performs AMF switching to support service continuity of user terminals switched across PLMNs.

[0125] Among them, the cross-PLMN handover includes one of the following: national roaming, shared network, inter-network roaming, and core network roaming. Before the source AMF determines whether the user terminal is cross-PLMN handover, the method also includes: the source AMF receives a handover request sent by the source 5G access network NG-RAN, wherein the handover request includes a result identifier of the source NG-RAN determining whether the user terminal is cross-PLMN handover.

[0126] Among them, the source AMF determines whether the user terminal is switched across PLMNs, specifically including: the source AMF obtains the target TAI, cell identifier, and global RAN node identifier in the switching request; the source AMF determines whether the PLMN of the target TAI or cell identifier is the same as the PLMN of the global RAN node identifier; in response to the judgment result being different, the source AMF determines that the user terminal is switched across PLMNs; in response to the judgment result being the same, the source AMF determines that the user terminal is switched within the system.

[0127] The source AMF obtains the network slice selection auxiliary information NSSAI of the target PLMN, specifically including: the source AMF obtains the NSSAI of the target PLMN based on the network element service storage function NRF query or based on the network slice selection function NSSF query.

[0128] Specifically, the source AMF obtains the NSSAI of the target PLMN based on the network element service storage function NRF query or based on the network slice selection function NSSF query, including: the source AMF determines whether the slice type of the source PLMN+NSSAI is greater than a preset threshold; in response to the judgment result being no, the source AMF obtains the NSSAI of the target PLMN based on the network storage function NRF query; in response to the judgment result being yes, the source AMF obtains the NSSAI of the target PLMN based on the network slice selection function NSSF query.

[0129] The source AMF obtains the NSSAI of the target PLMN based on the NRF query, specifically including: the source AMF obtains the target PLMN in the switching request; the source AMF sends a first query request to the source NRF, the first query request includes the source PLMN+NSSAI and the target PLMN, so that the source NRF is routed to the target NRF according to the target PLMN, and the target NRF queries the S-NSSAI of the source PLMN and the corresponding S-NSSAI mapping relationship of the target PLMN according to the source PLMN, and finds the S-NSSAI matching the target PLMN according to the mapping relationship, and returns the S-NSSAI matching the target PLMN to the source NRF; the source AMF receives the S-NSSAI matching the target PLMN returned by the source NRF to obtain the NSSAI of the target PLMN.

[0130] Optionally, before the source AMF sends the first query request to the source NRF, the method further includes: configuring a corresponding S-NSSAI mapping relationship between the S-NSSAI of the source PLMN and the target PLMN in the source NRF or the target NRF.

[0131] The source AMF obtains the NSSAI of the target PLMN based on the NSSF query, specifically including: the source AMF sends a second query request to the NSSF, the second query request includes the source PLMN+NSSAI, the target PLMN and an indication bit, the indication bit represents the query of the target network switching information in the PDU switching process in the home roaming scenario, so that the NSSF queries the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI according to the source PLMN+NSSAI and the target PLMN, wherein the target NSSF stores the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI; the source AMF receives the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI returned by the NSSF according to the indication bit to obtain the NSSAI of the target PLMN.

[0132] Optionally, the NRF selects a target AMF according to the NSSAI and target TAI of the target PLMN, specifically including: the NRF finds a matching target AMF set according to the NSSAI of the target PLMN; the NRF selects a target AMF from the target AMF set according to the target TAI. Alternatively, the NRF finds a matching target AMF set according to the target TAI; the NRF selects a target AMF from the target AMF set according to the NSSAI of the target PLMN.

[0133] Embodiment 3:

[0134] like Figure 2 As shown, this embodiment provides an AMF selection device for inter-PLMN switching, which is applied to the source AMF, including:

[0135] The judging module 21 is used to judge whether the user terminal is switching across PLMNs.

[0136] The acquisition module 22 is connected to the determination module 21, and is used to acquire the NSSAI of the target PLMN in response to the user terminal switching across PLMNs.

[0137] The sending module 23 is connected to the acquisition module 22, and is used to send an AMF instance query request to the network element service storage function NRF, wherein the AMF instance query request includes the NSSAI and target TAI of the target PLMN, so that the NRF selects the target AMF according to the NSSAI and target TAI of the target PLMN.

[0138] The first receiving module 24 is used to receive the target AMF fed back by the NRF and perform AMF switching to support service continuity of user terminals switched across PLMNs.

[0139] Inter-PLMN switching includes one of the following: national roaming, shared network, different network roaming, and core network roaming.

[0140] Optionally, the device for selecting the AMF for cross-PLMN switching also includes a second receiving module.

[0141] The second receiving module is connected to the judgment module, and is used to receive a switching request sent by the source 5G access network NG-RAN, wherein the switching request includes a result identifier of the source NG-RAN judging whether the user terminal is switched across PLMNs.

[0142] Optionally, the judging module includes a first obtaining unit and a first judging unit.

[0143] The first acquisition unit is used to acquire the target TAI, the cell identifier, and the global RAN node identifier in the handover request.

[0144] The first judgment unit is connected to the first acquisition unit, and is used to judge whether the PLMN identified by the target TAI or cell is the same as the PLMN identified by the global RAN node, and is used to determine that the user terminal is switched across PLMNs in response to the judgment result being different, and is used to determine that the user terminal is switched within the system in response to the judgment result being the same.

[0145] Optionally, the acquisition module is used to acquire the NSSAI of the target PLMN based on an NRF query or based on an NSSF query.

[0146] Optionally, the acquisition module includes a second judgment unit, a second acquisition unit and a third acquisition unit.

[0147] The second judgment unit is used to determine whether the slice type of the source PLMN+NSSAI is greater than a preset threshold.

[0148] The second acquisition unit is connected to the second judgment unit, and is used to obtain the NSSAI of the target PLMN based on the NRF query in response to the judgment result being no.

[0149] The third acquisition unit is connected to the second judgment unit, and is used to obtain the NSSAI of the target PLMN based on the NSSF query in response to the judgment result being yes.

[0150] Optionally, the second acquisition unit is used to obtain the target PLMN in the switching request and send a first query request to the source NRF, the first query request including the source PLMN+NSSAI and the target PLMN, so that the source NRF is routed to the target NRF according to the target PLMN, and the target NRF queries the mapping relationship between the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN according to the source PLMN, and finds the S-NSSAI matching the target PLMN according to the mapping relationship, returns the S-NSSAI matching the target PLMN to the source NRF, and is used to receive the S-NSSAI matching the target PLMN returned by the source NRF to obtain the NSSAI of the target PLMN.

[0151] Optionally, the selection device of AMF for cross-PLMN switching also includes a configuration module.

[0152] The configuration module is used to configure the S-NSSAI mapping relationship between the source PLMN and the corresponding S-NSSAI of the target PLMN in the source NRF or the target NRF.

[0153] Optionally, the third acquisition unit is used to send a second query request to the NSSF, the second query request includes the source PLMN+NSSAI, the target PLMN and an indication bit, the indication bit represents the query of the target network switching information in the PDU switching process in the home roaming scenario, so that the NSSF queries the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI according to the source PLMN+NSSAI and the target PLMN, wherein the target NSSF stores the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI, and is used to receive the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI returned by the NSSF according to the indication bit to obtain the NSSAI of the target PLMN.

[0154] Optionally, the NRF is used to find a matching target AMF set based on the NSSAI of the target PLMN, and the NRF is used to select a target AMF from the target AMF set based on the target TAI.

[0155] Embodiment 4:

[0156] like Figure 3As shown, this embodiment provides an AMF selection device for inter-PLMN switching, which is applied to NRF, including:

[0157] The third receiving module 31 is used to receive an AMF instance query request sent by a source AMF, wherein the AMF instance query request includes the NSSAI and target TAI of the target PLMN. Before the source AMF sends the AMF instance query request, the source AMF determines whether the user terminal is switched across PLMNs. In response to the user terminal being switched across PLMNs, the source AMF obtains the network slice selection auxiliary information NSSAI of the target PLMN.

[0158] The feedback module 32 is connected to the third receiving module 31, and is used to select a target AMF according to the NSSAI and target TAI of the target PLMN, and to feed back the target AMF to the source AMF so that the source AMF performs AMF switching to support service continuity of user terminals switched across PLMNs.

[0159] Optionally, the feedback module includes a selection unit, which is used to find a matching target AMF set according to the NSSAI of the target PLMN, and to select a target AMF from the target AMF set according to the target TAI.

[0160] In addition, the detailed functions of the source AMF and NRF are as described in Example 1 and will not be repeated here.

[0161] Embodiment 5:

[0162] like Figure 4 As shown, this embodiment provides an electronic device, including a memory 41 and a processor 42, wherein the memory 41 stores a computer program, and the processor 42 is configured to run the computer program to implement the AMF selection method for cross-PLMN switching as described in Example 1 or Example 2.

[0163] Embodiment 6:

[0164] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the AMF selection method for inter-PLMN switching as described in Example 1 or Example 2 is implemented.

[0165] The AMF selection device for inter-PLMN switching of Example 3 and Example 4, the electronic device of Example 5 and the computer-readable storage medium of Example 6 are used to obtain the network slice selection auxiliary information NSSAI of the target PLMN when the user terminal switches across PLMNs, and send an AMF instance query request to the NRF, so that the NRF selects the target AMF according to the NSSAI of the target PLMN and the target tracking area identifier TAI, receives the target AMF fed back by the NRF and performs AMF switching, so that the connection state service of the user terminal continues, and avoids service interruption due to inaccurate selection of the target AMF and failure to meet the service capabilities of the user terminal. Among them, the method of selecting the target AMF based on NRF is suitable for scenarios where NSSF is not deployed and coarse-grained slice queries with fewer slice types. If there are many types of VPLMN and HPLMN slices, not only the three major types of slices are supported, but also subdivided slices are supported. The NSSAI of the target PLMN can be obtained through NSSF query to further improve the accuracy of target AMF selection. Therefore, the method of selecting the target AMF based on NSSF and NRF is suitable for scenarios with many types of slices. By searching the source PLMNNSSF to confirm a more accurate target PLMN+NSSAI, the accuracy of target AMF selection can be further improved.

[0166] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A method for selecting an access and mobility management function (AMF) for handover across a public land mobile network (PLMN), applied to a source AMF, characterized in that: include: Determine whether the user terminal is switched across PLMNs; In response to the user terminal being handed over across PLMNs, obtaining network slice selection auxiliary information NSSAI of the target PLMN; Send an AMF instance query request to the network element service storage function NRF, wherein the AMF instance query request includes the NSSAI of the target PLMN and the target tracking area identifier TAI, so that the NRF selects the target AMF according to the NSSAI of the target PLMN and the target TAI; The target AMF receives NRF feedback and performs AMF switching to support service continuity of user terminals switched across PLMNs.

2. The method according to claim 1, characterized in that: Inter-PLMN switching includes one of the following: national roaming, shared network, different network roaming, and core network roaming.

3. The method according to claim 1, characterized in that Before determining whether the user terminal is switched across PLMNs, the method further includes: Receive a handover request sent by a source 5G access network NG-RAN, wherein the handover request includes a result identifier of the source NG-RAN determining whether the user terminal is an inter-PLMN handover.

4. The method according to claim 1, characterized in that The determining whether the user terminal is switched across PLMNs specifically includes: Obtain the target TAI, cell ID, and global RAN node ID in the handover request; Determine whether the PLMN identified by the target TAI or cell is the same as the PLMN identified by the global RAN node; In response to the determination result being different, determining that the user terminal is switched across PLMNs; In response to the determination result being the same, it is determined that the user terminal is switched within the system.

5. The method according to claim 1, characterized in that The obtaining of the network slice selection auxiliary information NSSAI of the target PLMN specifically includes: Obtain the NSSAI of the target PLMN based on NRF query or network slice selection function NSSF query.

6. The method according to claim 5, characterized in that The obtaining of the NSSAI of the target PLMN based on the NRF query or the network slice selection function NSSF query specifically includes: Determine whether the slice type of the NSSAI of the source PLMN is greater than a preset threshold; In response to a negative determination, obtaining the NSSAI of the target PLMN based on the NRF query; In response to the judgment result being yes, the NSSAI of the target PLMN is acquired based on the NSSF query.

7. The method according to claim 6, characterized in that The obtaining of the NSSAI of the target PLMN based on the NRF query specifically includes: Obtain the target PLMN in the handover request; Send a first query request to the source NRF, where the first query request includes the source PLMN+NSSAI and the target PLMN, so that the source NRF is routed to the target NRF according to the target PLMN, and the target NRF queries the mapping relationship between the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN according to the source PLMN, finds the S-NSSAI matching the target PLMN according to the mapping relationship, and returns the S-NSSAI matching the target PLMN to the source NRF; Receive the S-NSSAI matching the target PLMN returned by the source NRF to obtain the NSSAI of the target PLMN.

8. The method according to claim 7, characterized in that Before sending the first query request to the source NRF, the method further includes: The mapping relationship between the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN is configured on the source NRF or the target NRF.

9. The method according to claim 6, characterized in that The obtaining of the NSSAI of the target PLMN based on the NSSF query specifically includes: Sending a second query request to the NSSF, the second query request including the source PLMN+NSSAI, the target PLMN, and an indication bit, the indication bit indicating a query of the target network switching information in the PDU switching process in the home roaming scenario, so that the NSSF queries the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI according to the source PLMN+NSSAI and the target PLMN, wherein the target NSSF stores the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI; The receiving NSSF returns the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI according to the indication bit to obtain the NSSAI of the target PLMN.

10. A method for selecting an AMF for inter-PLMN handover, characterized in that: Applications to NRF include: receiving an AMF instance query request sent by a source AMF, wherein the AMF instance query request includes the NSSAI and the target TAI of the target PLMN. Before the source AMF sends the AMF instance query request, the source AMF determines whether the user terminal is switched across PLMNs. In response to the user terminal being switched across PLMNs, the source AMF obtains the NSSAI of the target PLMN. The target AMF is selected based on the NSSAI and target TAI of the target PLMN; the target AMF is fed back to the source AMF so that the source AMF performs AMF switching to support service continuity of user terminals switched across PLMNs.

11. The method according to claim 10, characterized in that Inter-PLMN switching includes one of the following: national roaming, shared network, different network roaming, and core network roaming.

12. The method according to claim 10, characterized in that The NRF selects the target AMF based on the NSSAI and target TAI of the target PLMN, including: NRF finds the matching target AMF set based on the NSSAI of the target PLMN; NRF selects the target AMF from the target AMF set based on the target TAI.

13. An AMF selection device for inter-PLMN handover, applied to a source AMF, characterized in that: include: A judgment module is used to judge whether the user terminal is switched across PLMNs. The acquisition module is connected to the judgment module and is used to obtain the NSSAI of the target PLMN in response to the user terminal switching across PLMNs. A sending module is connected to the acquisition module and is used to send an AMF instance query request to the network element service storage function NRF, wherein the AMF instance query request includes the NSSAI and the target TAI of the target PLMN, so that the NRF selects the target AMF according to the NSSAI and the target TAI of the target PLMN. The first receiving module is used to receive the target AMF fed back by the NRF and perform AMF switching to support service continuity of user terminals switched across PLMNs.

14. The device according to claim 13, characterized in that Inter-PLMN switching includes one of the following: national roaming, shared network, different network roaming, and core network roaming.

15. The device according to claim 13, characterized in that Also includes a second receiving module, The second receiving module is connected to the judgment module, and is used to receive a switching request sent by the source 5G access network NG-RAN, wherein the switching request includes a result identifier of the source NG-RAN judging whether the user terminal is an inter-PLMN switching.

16. The device according to claim 13, characterized in that The judging module includes a first obtaining unit and a first judging unit. The first acquisition unit is configured to acquire a target TAI, a cell identifier, and a global RAN node identifier in a handover request. The first judgment unit is connected to the first acquisition unit and is used to judge whether the PLMN identified by the target TAI or cell is the same as the PLMN identified by the global RAN node. for determining that the user terminal is switched across PLMNs in response to the judgment result being different, And, in response to the judgment result being the same, determining that the user terminal is switched within the system.

17. The device according to claim 13, characterized in that The acquisition module is used to acquire the NSSAI of the target PLMN based on NRF query or NSSF query.

18. The device according to claim 17, characterized in that The acquisition module includes a second judgment unit, a second acquisition unit and a third acquisition unit. The second judging unit is configured to judge whether the slice type of the NSSAI of the source PLMN is greater than a preset threshold, The second acquisition unit is connected to the second judgment unit, and is configured to obtain the NSSAI of the target PLMN based on the NRF query in response to a judgment result of no. The third acquisition unit is connected to the second judgment unit, and is used to obtain the NSSAI of the target PLMN based on the NSSF query in response to the judgment result being yes.

19. The device according to claim 18, characterized in that The second acquisition unit is used to obtain the target PLMN in the switching request and send a first query request to the source NRF, the first query request includes the source PLMN+NSSAI and the target PLMN, so that the source NRF is routed to the target NRF according to the target PLMN, and the target NRF queries the S-NSSAI of the source PLMN and the corresponding S-NSSAI of the target PLMN according to the source PLMN. The S-NSSAI matching the target PLMN is found according to the mapping relationship, and the S-NSSAI matching the target PLMN is returned to the source NRF, and it is used to receive the S-NSSAI matching the target PLMN returned by the source NRF to obtain the NSSAI of the target PLMN.

20. The device according to claim 19, characterized in that Also includes configuration modules, The configuration module is used to configure the S-NSSAI mapping relationship between the source PLMN and the corresponding S-NSSAI of the target PLMN in the source NRF or the target NRF.

21. The device according to claim 18, characterized in that The third acquisition unit is used to send a second query request to the NSSF, the second query request includes the source PLMN+NSSAI, the target PLMN and an indication bit, the indication bit represents the query of the target network switching information in the PDU switching process in the home roaming scenario, so that the NSSF queries the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI according to the source PLMN+NSSAI and the target PLMN, wherein the target NSSF stores the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI, and is used to receive the mapping relationship between the target PLMN+NSSAI and the source PLMN+NSSAI returned by the NSSF according to the indication bit to obtain the NSSAI of the target PLMN.

22. An AMF selection device for inter-PLMN handover, applied to NRF, characterized in that: include: The third receiving module is configured to receive an AMF instance query request sent by a source AMF, wherein the AMF instance query request includes the NSSAI and the target TAI of the target PLMN. Before the source AMF sends the AMF instance query request, the source AMF determines whether the user terminal is switched across PLMNs. In response to the user terminal being switched across PLMNs, the source AMF obtains the network slice selection auxiliary information NSSAI of the target PLMN. The feedback module is connected to the third receiving module, and is used to select the target AMF according to the NSSAI and target TAI of the target PLMN, and to feed back the target AMF to the source AMF so that the source AMF performs AMF switching to support service continuity of user terminals switched across PLMNs.

23. The device according to claim 22, characterized in that The feedback module includes a selection unit, which is used to find a matching target AMF set according to the NSSAI of the target PLMN, and to select a target AMF from the target AMF set according to the target TAI.

24. An electronic device, characterized in that: It includes a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to implement the AMF selection method for inter-PLMN switching as described in any one of claims 1-9 or claims 10-12.

25. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the method for selecting an AMF for inter-PLMN switching as described in any one of claims 1-9 or claims 10-12 is implemented.