Communication method and communication apparatus

By establishing a connection between core network elements between the roaming area and the home area, the signaling transmission problem caused by terminal equipment roaming is solved, ensuring that operators obtain communication data, and improving operator interests and network management efficiency.

WO2024217213A1PCT designated stage expired Publication Date: 2024-10-24HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/082744
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-19
Filing Date
2024-03-20
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

When the terminal equipment is in the roaming area, the network in the home area cannot grasp its signaling transmission status, which affects the operator's ability to obtain communication data, thereby affecting the operator's interests.

Method used

By obtaining the core network element address between the roaming area and the home area, a connection is established to ensure that the network operator in the home area can obtain the communication data of the terminal device.

Benefits of technology

This enables the home area network operator to obtain the communication data of the terminal device in real time, improves the operator's interests, and ensures the integrity and efficiency of network management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082744_24102024_PF_FP_ABST
    Figure CN2024082744_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the field of communications, and provides a communication method and a communication apparatus. The communication method is applied to a network element selection function device, and comprises: acquiring an address of a first core network element in a first area, the network element selection function device being located in a second area; and sending first information, the first information being used for a second core network element in the second area to acquire the address of the first core network element in the first area, and the second core network element being used for transmitting signaling of a terminal device according to the address of the first core network element. The first area is a roaming area of the terminal device, and the second area is a home area of the terminal device. Alternatively, the first area is a home area of the terminal device, and the second area is a roaming area of the terminal device. In this way, a connection between a core network element in the roaming area and a core network element in the home area can be established, so that a network operator of the home area can obtain communication data of the terminal device, thereby increasing benefits of the network operator.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and communication device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 19, 2023, with application number 202310445911.4 and application name “Communication Method and Communication Device”, the entire contents of which are incorporated by reference into this application. Technical Field

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

[0003] As the terminal device moves, it may move from the home area to the roaming area. If the terminal device establishes a signaling transmission channel with the network in the roaming area, the network in the home area will not be able to grasp the signaling transmission status of the terminal device, thereby making it impossible for the network operator in the home area to obtain the communication data of the terminal device, thereby affecting the interests of the network operator in the home area.

[0004] Summary of the Invention

[0005] In view of this, the present application provides a communication method and a communication device, which can establish a connection between a roaming area and a home area, so that the network operator in the home area can obtain the communication data of the terminal device, which is beneficial to improving the interests of the network operator.

[0006] In order to achieve the above-mentioned purpose, in a first aspect, a communication method is provided, which is applied to a network element selection function device, and the communication method includes: obtaining the address of a first core network network element in a first area, and the network element selection function device is located in a second area; sending first information, and the first information is used for the second core network network element in the second area to obtain the address of the first core network network element in the first area, and the second core network network element in the second area is used to transmit the signaling of the terminal device according to the address of the first core network network element in the first area, wherein the first core network network element in the first area includes the policy control function network element in the first area, and the second core network network element in the second area includes the policy control function network element in the second area; or, the first core network network element in the first area includes the session management function network element in the first area, and the second core network network element in the second area includes the session management function network element in the second area; wherein the first area is the roaming area of ​​the terminal device, and the second area is the home area of ​​the terminal device; or, the first area is the home area of ​​the terminal device, and the second area is the roaming area of ​​the terminal device.

[0007] In the above solution, the network element selection function device in the second area can obtain the address of the first core network network element in the first area and send the first information. The first information is used by the second core network network element in the second area to obtain the address of the first core network network element in the first area. The second core network network element in the second area is used to transmit the signaling of the terminal device according to the address of the first core network network element. That is, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, the network element selection function device in the roaming area can obtain the address of the core network network element in the home area, and the network element selection function device in the roaming area sends the first information. The first information enables the core network network element in the roaming area to obtain the address of the core network network element in the home area; similarly, when the first area is the roaming area of ​​the terminal device and the second area is the home area of ​​the terminal device, the network element selection function device in the home area can also obtain the address of the core network network element in the roaming area. At this time, the network element selection function device in the home area sends the first information. The first information enables the core network network element in the home area to obtain the address of the core network network element in the roaming area. In this way, a connection can be established between the core network elements in the roaming area and the core network elements in the home area, so that the network operator in the home area can obtain the communication data of the terminal device, which is beneficial to improving the interests of the network operator.

[0008] Optionally, the network element selection function device may be a device for selecting a core network element based on a requirement of the terminal device, that is, the network element selection function device may select a core network element based on the acquired requirement of the terminal device. For example, the requirement of the terminal device may be a requirement for establishing a protocol data unit (PDU) session, or may be a requirement for establishing a policy for the terminal device.

[0009] Optionally, the network element selection function device may also be referred to as a network element selection function network element, or may also be referred to as a network element selection function entity, etc.

[0010] Optionally, the roaming area may refer to the area where the terminal device is currently located in the roaming state. Optionally, the roaming area may be replaced by the roaming location, or may also be replaced by the visited area or the visited location.

[0011] Optionally, the home region may refer to the contract location of the terminal device. Optionally, the home region may be replaced by the home location.

[0012] Optionally, the address of the first core network element in the first area may be an Internet Protocol (IP) address of the first core network element in the first area.

[0013] Optionally, the second core network element in the second area is used to transmit signaling of the terminal device according to the address of the first core network element in the first area, including: the second core network element in the second area sends signaling of the terminal device to the first core network element in the first area according to the address of the first core network element in the first area.

[0014] Optionally, the signaling of the terminal device may be an instruction of the control plane. For example, the instruction of the control plane may be a PDU session establishment request message, or may be a policy establishment request message of the terminal device.

[0015] Optionally, the first core network element in the first area and the second core network element in the second area have the same functions. For example, the first core network element in the first area includes the policy control function element in the first area, and the second core network element in the second area includes the policy control function element in the second area; or, the first core network element in the first area includes the session management function element in the first area, and the second core network element in the second area includes the session management function element in the second area. Alternatively, the first core network element in the first area includes the policy control function element in the first area and the session management function element in the first area, and the second core network element in the second area includes the policy control function element in the second area and the session management function element in the second area.

[0016] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, sending the first information includes: sending the first information to the second core network element of the second area through the access network device of the second area, and the first information is used to indicate the address of the first core network element of the first area.

[0017] In the above solution, the network element selection function device in the roaming area sends the first information to the second core network element in the roaming area via the access network device in the roaming area. This means that the access network device in the roaming area simply forwards the first information to the second core network element in the roaming area. The access network device in the roaming area does not parse the first information. Instead, the second core network element in the roaming area parses the first information and obtains the address of the first core network element in the home area. This prevents the access network device in the roaming area from obtaining the address of the first core network element in the home area, thereby improving the security of the address of the first core network element in the home area.

[0018] Optionally, the network element selection function device in the second area sending the first information to the second core network element in the second area via the access network device in the second area includes: the network element selection function device in the second area sending a container to the second core network element in the second area via the access network device in the second area, where the container includes the first information. In other words, the access network device in the second area does not parse the first information in the container.

[0019] Optionally, the access network device of the second area sends the first information to the second core network network element of the second area, including: the access network device of the second area obtains the address of the second core network network element of the second area from the network element selection function device of the second area; and sends the first information to the second core network network element of the second area according to the address of the second core network network element of the second area.

[0020] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, sending the first information includes: sending the first information to the second core network element in the second area through the access network device in the second area, and the first information is used to instruct the second core network element in the second area to obtain the address of the first core network element in the first area.

[0021] In the above solution, the first information is used to instruct the second core network element in the roaming area to obtain the address of the first core network element in the home area. However, the first information does not include the address of the first core network element in the home area. Therefore, the access network device in the roaming area cannot obtain the address of the first core network element in the home area based on the received first information, thereby improving the security of the address of the first core network element in the home area. Furthermore, there is no need to encapsulate the address of the first core network element in the first area determined by the network element selection function device in the roaming area in a containerized form. This prevents the access network device in the roaming area from obtaining the address of the first core network element in the home area and simplifies the functionality of the network element selection function device in the roaming area.

[0022] Optionally, the first information is used to instruct the second core network element in the second area to obtain the address of the first core network element in the first area. It can be understood that: the first information does not contain the address of the first core network element in the first area, nor does it indicate the address of the first core network element in the first area, but can instruct the core network element in the second area to obtain the address of the first core network element in the first area. The second core network element can obtain the address of the first core network element in the first area based on the first information.

[0023] Optionally, the first information is information indicating that an address of a first core network element in the first area needs to be obtained. That is, the network element selection function device in the second area sends information indicating that an address of the first core network element in the first area needs to be obtained to a second core network element in the second area via an access network device in the second area, thereby instructing the second core network element in the second area to obtain the address of the first core network element in the first area.

[0024] Optionally, the first information is the roaming information of the terminal device, that is, the network element selection function device of the second area sends the roaming information of the terminal device to the second core network element of the second area through the access network device of the second area, implicitly instructing the second core network element of the second area to obtain the address of the first core network element of the first area.

[0025] Optionally, in a case where the first information is roaming information of the terminal device, the roaming information of the terminal device may be used to indicate that the terminal device is in a roaming state.

[0026] Optionally, when the first information is the roaming information of the terminal device, the roaming information of the terminal device may be used to indicate that the roaming type of the terminal device is home routed (HR) roaming, or used to indicate that the roaming type of the terminal device does not support local breakout (LBO) roaming.

[0027] Optionally, the roaming type of the terminal device may include: HR roaming and LBO roaming. Optionally, HR roaming may refer to the terminal device accessing the data network through the user plane functional network element in the home area. Optionally, LBO roaming may refer to the terminal device accessing the data network through the user plane functional network element in the roaming area.

[0028] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, sending the first information includes: sending the first information to the storage function network element of the second area, the first information includes the address of the first core network network element of the first area, and the second core network network element of the second area is used to obtain the address of the first core network network element of the first area from the storage function network element of the second area.

[0029] In the above solution, the network element selection function device in the roaming area sends first information to the storage function network element in the roaming area. The first information includes the address of the first core network element in the home area. That is, the storage function network element in the roaming area stores the address of the first core network element in the home area, and the second core network element in the roaming area obtains the address of the first core network element in the home area from the storage function network element in the roaming area. This prevents access network devices in the roaming area from obtaining the address of the first core network element in the home area, thereby improving the security of the address of the first core network element in the home area. Furthermore, there is no need to encapsulate the address of the first core network element in the home area determined by the network element selection function device in the roaming area in a containerized form, thereby simplifying the functionality of the network element selection function device in the roaming area.

[0030] Optionally, the first information may also include a first identifier of the terminal device. Optionally, the first identifier of the terminal device may be a permanent identifier of the terminal device, or may be a temporary identifier of the terminal device. Optionally, the permanent identifier of the terminal device may refer to an identifier assigned to the terminal device by a network operator of the home area for identifying the identity of the terminal device. Optionally, the temporary identifier of the terminal device may refer to an identifier assigned by a core network element of a roaming area accessed by the terminal device for identifying the identity of the terminal device. For example, the temporary identifier of the terminal device may be an identifier assigned by an access and mobility management function network element or a session management function network element of the roaming area, or by an access network device, etc. for identifying the identity of the terminal device.

[0031] Optionally, after the network element selection function device in the second area sends the first information to the storage function network element in the second area, the communication method further includes: the storage function network element in the second area receives the first information.

[0032] Optionally, after the storage function network element in the second area receives the first information, the communication method further includes: the storage function network element in the second area stores the first information.

[0033] Optionally, when the first information also includes the first identifier of the terminal device, the storage function network element of the second area stores the first information, including: the storage function network element of the second area stores the address of the first core network network element of the first area, the first identifier, and the correspondence between the first identifier and the address of the first core network network element of the first area.

[0034] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, the communication method also includes: obtaining the address of the second core network network element of the second area; sending second information to the access network device of the second area, and the second information is used to indicate the address of the second core network network element.

[0035] In the above solution, the network element selection function device in the roaming area can obtain the address of the second core network element in the roaming area and send the address of the second core network element in the roaming area to the access network device in the roaming area. In this way, the access network device in the roaming area can establish a connection with the second core network element in the roaming area based on the address of the second core network element in the roaming area and transmit terminal device signaling based on this connection.

[0036] Optionally, the second information may be information including an address of a second core network element in the second area.

[0037] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, before obtaining the address of the first core network network element of the first area, the communication method also includes: obtaining the first identifier of the terminal device, the first slice information of the first area and the second slice information of the second area; obtaining the subscription data of the terminal device from the unified data management function network element of the first area according to the first identifier of the terminal device; wherein, obtaining the address of the first core network network element of the first area includes: determining the address of the first core network network element of the first area according to the first slice information and subscription data of the first area; wherein, obtaining the address of the second core network network element of the second area includes: determining the address of the second core network network element of the second area according to the second slice information and subscription data of the second area.

[0038] In the above solution, the network element selection function device in the roaming area can obtain the first identifier of the terminal device, the first slice information of the home area, and the second slice information of the roaming area, and determine the address of the first core network element in the home area based on the first slice information and subscription data of the home area, and determine the address of the second core network element in the roaming area based on the second slice information and subscription data of the roaming area. In this way, the network element selection function device in the roaming area can determine the address of the core network element in its own roaming area and the address of the core network element in the home area, thereby establishing a connection between the core network element in the roaming area and the core network element in the home area.

[0039] Optionally, the first slice information of the first area may indicate corresponding network slice selection assistance information (NSSAI) of the first area.

[0040] Optionally, in the case where the first core network element is a session management function element, the corresponding NSSAI of the first area may be obtained by mapping the NSSAI requested by the terminal device in the second area, or may also be obtained by mapping the allowed NSSAI of the second area. Optionally, the NSSAI requested by the terminal device in the second area may belong to the allowed NSSAI of the second area. Optionally, the allowed NSSAI of the second area may refer to a set of slices available to the terminal device in the second area, and the allowed NSSAI of the second area may be determined for the terminal device by the access and mobility management function element of the second area during the registration process of the terminal device. Optionally, the network slice selection assistance information may also be single network slice selection assistance information (S-NSSAI).

[0041] Optionally, when the first core network element is a policy control function element, the corresponding NSSAI of the first area may be obtained by mapping the allowed NSSAI of the second area.

[0042] Optionally, the second slice information of the second region may indicate a corresponding NSSAI of the second region.

[0043] Optionally, when the second core network element is a session management function element, the corresponding NSSAI of the second area may be the NSSAI requested by the terminal device in the second area, or may be the allowed NSSAI of the second area.

[0044] Optionally, when the second core network element is a policy control function element, the corresponding NSSAI of the second area may be an allowed NSSAI of the second area.

[0045] Optionally, when the first identifier of the terminal device is a permanent identifier of the terminal device, the network element selection function device in the second area obtains the contract data of the terminal device from the unified data management function network element in the first area based on the first identifier of the terminal device, including: the network element selection function device in the second area sends the first identifier to the unified data management function network element in the first area; the network element selection function device in the second area receives the contract data of the terminal device corresponding to the first identifier from the unified data management function network element in the first area.

[0046] Optionally, in the case where the first identifier of the terminal device is a temporary identifier of the terminal device, the network element selection function device of the second area obtains the contract data of the terminal device from the unified data management function network element of the first area based on the first identifier of the terminal device, including: the network element selection function device of the second area obtains the second identifier of the terminal device corresponding to the first identifier from the storage function network element of the second area, the storage function network element is used to store the correspondence between the first identifier and the second identifier, and the second identifier is the permanent identifier of the terminal device; the network element selection function device of the second area sends the second identifier to the unified data management function network element of the first area; the network element selection function device of the second area receives the contract data of the terminal device corresponding to the second identifier from the unified data management function network element of the first area.

[0047] Optionally, the storage function network element can be used to store identification information of the terminal device. Optionally, the identification information of the terminal device can be a temporary identification of the terminal device, a permanent identification of the terminal device, or a correspondence between a temporary identification and a permanent identification of the terminal device. Optionally, the storage function network element can also be referred to as a storage function entity or a storage device.

[0048] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, the network element selection function device of the second area sends a second identifier to the unified data management function network element of the first area, including: sending the second identifier to the unified data management function network element of the first area through the network element selection function device of the first area; wherein, receiving the contract data of the terminal device corresponding to the second identifier from the unified data management function network element of the first area includes: receiving the contract data of the terminal device corresponding to the second identifier from the unified data management function network element of the first area through the network element selection function device of the first area.

[0049] In the above scheme, the network element selection function device in the roaming area establishes a connection with the network element selection function device in the home area through the permanent identification of the terminal device, and the network element selection function device in the home area obtains the contract data of the terminal device from the unified data management function network element in the home area based on the permanent identification of the terminal device. In this way, the network element selection function device in the roaming area can also obtain the contract data of the terminal device from the unified data management function network element in the home area.

[0050] Optionally, before sending the second identifier to the unified data management function network element of the first area through the network element selection function device of the first area, the network element selection function device of the second area determines the address of the network element selection function device of the first area based on the second identifier, wherein sending the second identifier to the unified data management function network element of the first area through the network element selection function device of the first area includes: the network element selection function device of the second area sends the second identifier to the network element selection function device of the first area based on the address of the network element selection function device of the first area; the network element selection function device of the first area receives the second identifier and sends the second identifier to the unified data management function network element of the first area.

[0051] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, obtaining the address of the first core network network element of the first area includes: receiving the first slice information of the first area and the first identifier of the terminal device sent by the terminal device through the access network device of the second area; sending the first slice information of the first area and the second identifier of the terminal device to the network element selection function device of the first area, the second identifier corresponding to the first identifier, the second identifier being the permanent identifier of the terminal device, and the first identifier being the temporary identifier of the terminal device; receiving the address of the first core network network element of the first area determined by the network element selection function device of the first area according to the first slice information and the second identifier of the first area from the network element selection function device of the first area.

[0052] In the above solution, the network element selection function device in the roaming area sends the first slice information of the home area and the permanent identifier of the terminal device to the network element selection function device in the home area. The network element selection function device in the home area determines the address of the first core network element in the home area based on the first slice information of the home area and the permanent identifier of the terminal device. The network element selection function device in the roaming area obtains the address of the first core network element in the home area from the network element selection function device in the home area. In other words, the network element selection function device in the roaming area does not need to determine the address of the first core network element in the home area, thereby simplifying the function of the network element selection function device in the roaming area.

[0053] Optionally, when the first core network network element is a session management function network element, while the terminal device sends the first identifier and the first slice information of the first area to the access network device of the second area, the terminal device can also send the data network name (DNN) and / or PDU session identifier to the access network device of the second area.

[0054] Optionally, when the first core network network element is a session management function network element and the terminal device sends a DNN to the access network device of the second area, the access network device of the second area may also send a DNN to the network element selection function device of the second area while sending the first identifier and the first slice information of the first area to the network element selection function device of the second area. Optionally, the network element selection function device of the second area receives from the network element selection function device of the first area the address of the first core network network element of the first area determined by the network element selection function device of the first area based on the first slice information and the second identifier of the first area, including: the network element selection function device of the second area receives from the network element selection function device of the first area the address of the first core network network element of the first area determined by the network element selection function device of the first area based on the first slice information, DNN and the second identifier of the first area.

[0055] Optionally, when the first core network network element is a session management function network element and the terminal device sends a PDU session identifier to the access network device of the second area, the access network device of the second area may also send the PDU session identifier to the network element selection function device of the second area while sending the first identifier and the first slice information of the first area to the network element selection function device of the second area. Optionally, the network element selection function device of the second area receives from the network element selection function device of the first area the address of the first core network network element of the first area determined by the network element selection function device of the first area based on the first slice information of the first area and the second identifier, including: the network element selection function device of the second area receives from the network element selection function device of the first area the address of the first core network network element of the first area determined by the network element selection function device of the first area based on the first slice information of the first area, the PDU session identifier and the second identifier.

[0056] Optionally, when the first core network network element is a session management function network element and the terminal device sends a DNN and a PDU session identifier to the access network device of the second area, the access network device of the second area may also send a DNN and a PDU session identifier to the network element selection function device of the second area while sending the first identifier and the first slice information of the first area to the network element selection function device of the second area. Optionally, the network element selection function device of the second area receives from the network element selection function device of the first area the address of the first core network network element of the first area determined by the network element selection function device of the first area according to the first slice information and the second identifier of the first area, including: the network element selection function device of the second area receives from the network element selection function device of the first area the address of the first core network network element of the first area determined by the network element selection function device of the first area according to the first slice information of the first area, the PDU session identifier, the DNN and the second identifier.

[0057] Optionally, the network element selection function device of the first area determines the address of the first core network network element of the first area based on the first slice information and the second identifier of the first area, including: the network element selection function device of the first area obtains the contract data of the terminal device from the unified data management function network element of the first area according to the second identifier, and determines the address of the first core network network element of the first area based on the first slice information and the contract data of the first area.

[0058] According to a second aspect, a communication method is provided, which is applied to a second core network element in a second area. The communication method includes: obtaining the address of the first core network element in the first area, wherein the first core network element in the first area includes a policy control function network element in the first area, and the second core network element in the second area includes a policy control function network element in the second area; or, the first core network element in the first area includes a session management function network element in the first area, and the second core network element in the second area includes a session management function network element in the second area; transmitting signaling of the terminal device according to the address of the first core network element; wherein the first area is a roaming area of ​​the terminal device, and the second area is a home area of ​​the terminal device; or, the first area is a home area of ​​the terminal device, and the second area is a roaming area of ​​the terminal device.

[0059] In the above solution, the second core network element in the second area obtains the address of the first core network element in the first area and transmits the terminal device's signaling based on the address of the first core network element. In other words, the second core network element in the second area sends the terminal device's signaling to the first core network element in the first area based on the address of the first core network element in the first area. This establishes a connection between the core network element in the roaming area and the core network element in the home area, allowing the network operator in the home area to obtain the terminal device's communication data, thereby improving the network operator's profits.

[0060] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, the second core network element in the second area obtains the address of the first core network element in the first area, including: receiving first information sent by the network element selection function of the second area through the access network device of the second area, the first information is used to indicate the address of the first core network element in the first area; determining the address of the first core network element in the first area based on the first information.

[0061] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, the second core network element in the second area obtains the address of the first core network element in the first area, including: receiving first information sent by the access network device in the second area, the first information is used to instruct the second core network element in the second area to obtain the address of the first core network element in the first area; selecting a functional device from the network element in the second area to obtain the address of the first core network element in the first area.

[0062] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, the second core network element in the second area obtains the address of the first core network element in the first area, including: obtaining the address of the first core network element in the first area from the storage function network element in the second area.

[0063] Optionally, the second core network element in the second area obtains the address of the first core network element in the first area from the storage function network element in the second area, including: the second core network element in the second area sends the first identifier of the terminal device to the storage function network element in the second area, and receives the address of the first core network element in the first area corresponding to the first identifier from the storage function network element in the second area.

[0064] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, the second core network element in the second area obtains the address of the first core network element in the first area, including: receiving a first request message sent by the terminal device through the access network device in the second area, the first request message including the first slice information of the first area and the first identifier of the terminal device; obtaining the subscription data of the terminal device from the unified data management function network element in the first area according to the first identifier of the terminal device; determining the address of the first core network element in the first area according to the first slice information and subscription data of the first area.

[0065] In the above solution, the second core network element in the roaming area obtains the first identifier of the terminal device and the first slice information of the home area through the access network equipment in the roaming area. The second core network element in the roaming area obtains the subscription data of the terminal device based on the first identifier, and determines the address of the first core network element in the home area based on the obtained subscription data and the first slice information of the home area. In other words, the second core network element in the roaming area determines the address of the first core network element in the home area based on the obtained subscription data and the first slice information. In this way, the second core network element in the roaming area can determine the address of the first core network element in the home area and establish a connection with the first core network element in the home area, thereby enabling the network operator in the home area to obtain the communication data of the terminal device, thereby improving the interests of the network operator.

[0066] Optionally, when the first core network element is a session management function element, the first request message may further include: at least one of a DNN, a PDU session identifier, or an NSSAI. Optionally, the first request message may be a PDU session establishment request message. Optionally, when the first request message includes NSSAI, the NSSAI may be first slice information of the first region.

[0067] Optionally, when the first request message also includes DNN, the second core network element in the second area determines the address of the first core network element in the first area based on the first slice information and subscription data of the first area, which may include: the second core network element in the second area determines the address of the first core network element in the first area based on the first slice information, DNN and subscription data of the first area.

[0068] Optionally, when the first request message also includes a PDU session identifier, the second core network element in the second area determines the address of the first core network element in the first area based on the first slice information and subscription data of the first area, which may include: the second core network element in the second area determines the address of the first core network element in the first area based on the first slice information, PDU session identifier and subscription data of the first area.

[0069] Optionally, when the first request message also includes DNN and PDU session identifier, the second core network element in the second area determines the address of the first core network element in the first area based on the first slice information and subscription data of the first area, which may include: the second core network element in the second area determines the address of the first core network element in the first area based on the first slice information, DNN, PDU session identifier and subscription data of the first area.

[0070] Optionally, when the first identifier of the terminal device is a permanent identifier of the terminal device, the second core network network element of the second area obtains the contract data of the terminal device from the unified data management function network element of the first area based on the first identifier of the terminal device, including: the second core network network element of the second area sends the first identifier to the unified data management function network element of the first area, and receives the contract data of the terminal device corresponding to the first identifier from the unified data management function network element of the first area.

[0071] Optionally, in the case where the first identifier of the terminal device is a temporary identifier of the terminal device, the second core network network element in the second area obtains the contract data of the terminal device from the unified data management function network element in the first area based on the first identifier of the terminal device, including: the second core network network element in the second area obtains the second identifier of the terminal device corresponding to the first identifier from the storage function network element in the second area, the storage function network element is used to store the correspondence between the first identifier and the second identifier, and the second identifier is the permanent identifier of the terminal device; sends the second identifier to the unified data management function network element in the first area; receives the contract data of the terminal device corresponding to the second identifier from the unified data management function network element in the first area.

[0072] In some possible implementations, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, obtaining the address of the first core network network element of the first area includes: obtaining a second identifier from the storage function network element of the second area, the second identifier being the permanent identifier of the terminal device; sending the second identifier to the unified data management function network element of the first area; receiving the contract data of the terminal device corresponding to the second identifier from the unified data management function network element of the first area; sending the contract data to the network element selection function device of the second area; receiving from the network element selection function device of the second area the address of the first core network network element of the first area determined by the network element selection function device of the second area according to the contract data.

[0073] In the above solution, the second core network element in the roaming area can obtain the permanent identifier of the terminal device from the storage function element in the roaming area, obtain the terminal device's subscription data from the unified data management function element in the home area based on the permanent identifier of the terminal device, and send the subscription data to the network element selection function device in the roaming area. The network element selection function device in the roaming area receives the subscription data and determines the address of the first core network element in the home area based on the subscription data, and sends the determined address of the first core network element in the home area to the second core network element in the roaming area. This prevents access network devices in the roaming area from obtaining the address of the first core network element in the home area, thereby improving the security of the address of the first core network element in the home area.

[0074] In a third aspect, the present application provides a communications device that implements the aforementioned aspects and possible implementations of each network element. The functions can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the aforementioned functions. For example, a processing module or unit, a transceiver module or unit, etc.

[0075] Optionally, the communication device may be the network element selection function device of the second area of ​​the first aspect or the second core network element of the second area of ​​the second aspect.

[0076] In a fourth aspect, the present application provides a communication device, which includes a processor, the processor is coupled to a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions stored in the memory, so that the methods in the above-mentioned first aspect and the possible implementation methods of the above-mentioned first aspect are executed.

[0077] In a fifth aspect, the present application provides a communication device, which includes a processor, the processor is coupled to a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions stored in the memory, so that the methods in the above-mentioned second aspect and the possible implementation methods of the above-mentioned second aspect are executed.

[0078] In the sixth aspect, the present application provides a computer-readable storage medium, including computer instructions. When the computer instructions are run on a network element selection function device, the network element selection function device executes the above-mentioned first aspect or any possible method of the first aspect, or the communication method introduced in any embodiment of the present application.

[0079] In the seventh aspect, the present application provides a computer-readable storage medium, including computer instructions. When the computer instructions are run on a second core network element, the second core network element executes the above-mentioned second aspect or any possible method of the second aspect, or the communication method introduced in any embodiment of the present application.

[0080] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] FIG1 is a schematic diagram of a system architecture provided in an embodiment of the present application.

[0082] FIG2 is a schematic diagram of a roaming architecture provided in an embodiment of the present application.

[0083] FIG3 is a schematic diagram of another roaming architecture provided in an embodiment of the present application.

[0084] FIG4 is a schematic diagram of a communication method provided in an embodiment of the present application.

[0085] FIG5 is a flow chart of a communication method provided in an embodiment of the present application.

[0086] FIG6 is a flow chart of another communication method provided in an embodiment of the present application.

[0087] FIG7 is a flow chart of another communication method provided in an embodiment of the present application.

[0088] FIG8 is a flow chart of another communication method provided in an embodiment of the present application.

[0089] FIG9 is a flow chart of another communication method provided in an embodiment of the present application.

[0090] FIG10 is a flow chart of another communication method provided in an embodiment of the present application.

[0091] FIG11 is a flow chart of another communication method provided in an embodiment of the present application.

[0092] FIG12 is a flow chart of another communication method provided in an embodiment of the present application.

[0093] FIG13 is a flow chart of another communication method provided in an embodiment of the present application.

[0094] FIG14 is a schematic block diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0095] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0096] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features. In the description of this embodiment, unless otherwise specified, "plurality" means two or more.

[0097] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: global system for mobile communications (GSM) system, code division multiple access (CDMA) system, wideband code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, future fifth generation (5G) system or new radio (NR), etc.

[0098] Figure 1 shows a schematic diagram of a system architecture used in an embodiment of the present application. As shown in Figure 1, the system includes: user equipment (UE), a radio access network (RAN), a user plane function (UPF), a data network (DN), a core access and mobility management function (AMF), a session management function (SMF), a policy control function (PCF), and at least one of a unified data management (UDM).

[0099] UE, also known as user equipment, mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc.

[0100] A UE may be a device that provides voice / data connectivity to a user, such as a handheld device or vehicle-mounted device with a wireless connection function. Currently, some examples of terminal devices include: mobile phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistant (PDA) devices, handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, tablet computers, computers with wireless transceiver capabilities, laptops, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc., but this application is not limited to these.

[0101] RAN can be a device that communicates with UE. The RAN can also be called an access network device or a wireless access network device. It can be a transmission reception point (TRP), an evolved NodeB (eNB or eNodeB) in an LTE system, a home base station (for example, home evolved NodeB, or home Node B, HNB), a baseband unit (BBU), or a wireless controller in a cloud radio access network (CRAN) scenario. The RAN can be a relay station, an access point, a vehicle-mounted device, a wearable device, a network device in a 5G network, or a network device in a future evolved public land mobile network (PLMN), etc. It can also be an access point (AP) in a WLAN, or a gNB in ​​an NR system. The above-mentioned RAN can also be a city base station, a micro base station, a micro base station, a femto base station, etc., and this application does not limit this.

[0102] In a network structure, the RAN may include a centralized unit (CU) node, a distributed unit (DU) node, a radio access network (RAN) device including a CU node and a DU node, or a device including a control plane CU node (CU-CP node), a user plane CU node (CU-UP node) and a DU node.

[0103] The RAN provides services for a cell. The UE communicates with the cell through transmission resources allocated by the RAN (for example, frequency domain resources, or spectrum resources). The cell can belong to a macro base station (for example, a macro eNB or macro gNB) or a base station corresponding to a small cell. Small cells here can include: metro cells, micro cells, pico cells, and femto cells. These small cells have the characteristics of small coverage and low transmit power, and are suitable for providing high-speed data transmission services.

[0104] UPF is mainly responsible for processing business data, such as forwarding, billing, and legal monitoring.

[0105] DN provides data transmission services for UE and can be a public data network (PDN) network, such as the Internet.

[0106] AMF is mainly used for UE attachment, mobility management, and tracking area update processes in mobile networks. The access management network element terminates the non-access stratum (NAS) message, completes registration management, connection management, and reachability management, allocates tracking area lists (TA lists) and mobility management, and transparently routes session management (SM) messages to the session management network element.

[0107] SMF is responsible for selecting or reselecting UPF, allocating IP addresses, establishing, modifying and releasing sessions, and controlling the quality of service (QoS).

[0108] The PCF primarily supports providing a unified policy framework to control network behavior, providing policy rules to the control layer network functions, and is responsible for obtaining user subscription data related to policy decisions. The PCF can be divided into two different policy control function network elements: one for generating UE policies, which are sent to the UE via the AMF. The AMF does not parse the content of the UE policy; the other for generating access management policies, which are sent to the AMF.

[0109] UDM is responsible for managing the subscription data of UE and is used for user identification processing (such as storing and managing the user's permanent identity, etc.). For example, in this application, UDM can also be described as a storage function network element.

[0110] As shown in Figure 1, the interface between UE and AMF is called N1 interface, the interface between RAN and AMF is called N2 interface, the interface between RAN and UPF is called N3 interface, the interface between UPF and SMF is called N4 interface, and the interface between UPF and DN is called N6 interface.

[0111] In some scenarios, a terminal device may move from its home area to a roaming area. If the terminal device establishes a signaling transmission channel with the network in the roaming area, the network in the home area will be unable to understand the terminal device's signaling transmission status, which will prevent the network operator in the home area from obtaining the terminal device's communication data, further affecting the interests of the network operator in the home area. Therefore, it is necessary to establish a connection between the roaming area and the home area so that the network operator in the home area can obtain the terminal device's communication data.

[0112] For the above roaming scenario, Figure 2 shows a schematic diagram of a roaming architecture applicable to an embodiment of the present application. As shown in Figure 2, the roaming architecture includes a roaming area network and a home area network. The roaming area network includes the UE, RAN, SMF, PCF, UPF, network element selection function equipment, and storage function network element in the roaming area. The home area network includes the home area SMF, PCF, UDM, UPF, and DN.

[0113] The following describes the devices and network elements in Figure 2. The UE, RAN, SMF, PCF, and UPF in the roaming area, and the SMF, PCF, UDM, UPF, and DN in the home area, can be referred to in Figure 1. The SMF (PCF or UPF) in the roaming area and the home area in Figure 2 have the same functions. This section describes the network element selection function device and the storage function network element.

[0114] (1) The network element selection function device is used to select a core network element. The core network element may be selected based on the requirements of the UE. That is, the network element selection function device may select a core network element based on the requirements of the UE. For example, the requirements of the UE may be the requirements for establishing a PDU session or the requirements for establishing a UE policy. Optionally, the network element selection function device may also be referred to as a network element selection function network element, or may also be referred to as a network element selection function entity, etc.

[0115] (2) The storage function network element is used to store UE information, for example, to store UE identification information. The UE identification information can be a temporary identification of the UE, a permanent identification of the UE, or a correspondence between a temporary identification and a permanent identification of the UE. Optionally, the storage function network element can also be referred to as a storage function entity or a storage device. It is understandable that the storage function network element can also be replaced with other possible names, which is not limited in the embodiments of the present application. Optionally, the functions of the storage function network element can be implemented by other network elements, for example, by a UDM.

[0116] FIG3 illustrates another roaming architecture schematically, based on the roaming architecture of FIG2 , applicable to embodiments of the present application. The roaming architecture shown in FIG3 includes a roaming area network and a home area network. The roaming area network of FIG3 includes the UE, RAN, SMF, PCF, UPF, network element selection function device, and storage function network element in the roaming area; the home area network of FIG3 includes the home area network element selection function device, SMF, PCF, UDM, UPF, and DN.

[0117] The following describes the devices and network elements in Figure 3. The description of the UE, RAN, SMF, PCF, and UPF in the roaming area and the SMF, PCF, UDM, UPF, and DN in the home area in Figure 3 can be referred to the description in Figure 1.

[0118] The SMF (PCF or UPF) functions of the roaming area and the home area in Figure 3 are identical. The network element selection function devices in the roaming area and the home area in Figure 3 are identical to the network element selection function devices in the roaming area in Figure 2. The storage function network element in the roaming area in Figure 3 is also identical to the storage function network element in the roaming area in Figure 2. To avoid redundancy, they are not described in detail here.

[0119] In addition, the RAN in the roaming area of ​​the roaming architectures shown in Figures 2 and 3 has multiple connection interfaces, which can establish connections with multiple core network elements in the roaming area. In other words, unlike the RAN in Figure 1, which only has connection interfaces with the AMF and UPF in Figure 1, the RAN in the roaming area in Figures 2 and 3 can also have interfaces with other core network elements in the roaming area. For example, the RAN in the roaming area in Figure 2 has connection interfaces with the SMF in the roaming area, the PCF in the roaming area, and the network element selection function device in the roaming area.

[0120] It should be noted that the naming of the various network elements included in Figures 1 to 3 (such as UE, RAN, UPF, DN, AMF, SMF, PCF and UDM, etc.) is only a name, and the name does not limit the function of the network element itself. In 5G networks and other future networks, the above-mentioned network elements may also have other names, and the embodiments of this application do not specifically limit this. For example, in a 6G network, some or all of the above-mentioned network elements may use the terminology in 5G, or may be other names, etc., which are uniformly explained here and will not be repeated below.

[0121] It should be noted that the network elements in Figures 1 to 3 do not necessarily need to exist simultaneously. The required network elements can be determined based on demand, and more or fewer network elements can be included than in Figures 1 to 3. The connection relationship between the network elements in Figures 1 to 3 is not unique and can be adjusted based on demand.

[0122] The network elements in the embodiments of the present application may also be referred to as entities or functional entities. For example, AMF may also be referred to as an AMF entity or an AMF device, and SMF may also be referred to as an SMF entity or an SMF device. The above-mentioned network elements may be network elements in a hardware device, software functions running on dedicated hardware, or virtualized functions instantiated on a platform (for example, a cloud platform). Optionally, the above-mentioned network elements may be implemented by one device, or by multiple devices together, or may be a functional module within a device, and the embodiments of the present application do not specifically limit this.

[0123] Based on the roaming architecture given in Figures 2 and 3, the following describes the process of establishing a connection between the core network element of the roaming area and the core network element of the home area provided by an embodiment of the present application in combination with Figure 4.

[0124] As shown in FIG4 , the communication method 400 includes the following steps:

[0125] S410: A network element selection function device in a second area obtains an address of a first core network element in a first area.

[0126] The first area is the roaming area of ​​the terminal device, and the second area is the home area of ​​the terminal device; or, the first area is the home area of ​​the terminal device, and the second area is the roaming area of ​​the terminal device.

[0127] Alternatively, the roaming area may refer to the area where the terminal device is currently located in the roaming state. Alternatively, the roaming area may be replaced by a roaming location, or may be replaced by a visited area or a visited location. For example, the roaming area in the communication method 400 may be the roaming area in FIG. 2 or FIG. 3 .

[0128] Alternatively, the home zone may refer to the contract location of the terminal device. Alternatively, the home zone may be replaced by the home location. For example, the home zone in the communication method 400 may be the home zone in FIG. 2 or FIG. 3 .

[0129] Optionally, the first core network network element of the first area can be the SMF of the first area, or can also be the PCF of the first area, or can also be the SMF and PCF of the first area. The PCF in the embodiment of the present application refers to a network element used to generate a policy for a terminal device. For example, the first core network network element of the first area is the SMF and / or PCF of the roaming area in Figure 2 (or Figure 3), and for another example, the first core network network element of the first area is the SMF and / or PCF of the home area in Figure 2 (or Figure 3).

[0130] Optionally, the address of the first core network element in the first area may be the IP address of the first core network element in the first area. For example, the address of the first core network element in the first area is the IP address of the SMF in the roaming area and / or the IP address of the PCF in FIG. 2 (or FIG. 3 ). For another example, the address of the first core network element in the first area is the IP address of the SMF in the home area and / or the IP address of the PCF in FIG. 2 (or FIG. 3 ).

[0131] S410 is described below in two cases.

[0132] Case 1: The first area is the home area of ​​the terminal device, and the second area is the roaming area of ​​the terminal device.

[0133] Before S410, the communication method 400 also includes: the network element selection function device of the second area obtains the first identifier of the terminal device and the first slice information of the first area; obtains the contract data of the terminal device from the UDM of the first area according to the first identifier of the terminal device; wherein, S410 includes: determining the address of the first core network network element of the first area according to the first slice information and contract data of the first area.

[0134] Optionally, the first identifier of the terminal device may be a permanent identifier of the terminal device, or may be a temporary identifier of the terminal device. Optionally, the permanent identifier of the terminal device may refer to an identifier assigned to the terminal device by a network operator of the home area for identifying the identity of the terminal device. For example, in 5G, the permanent identifier of the terminal device may refer to a user permanent identifier (SUPI). Optionally, the temporary identifier of the terminal device may refer to an identifier assigned by a core network element of a roaming area accessed by the terminal device for identifying the identity of the terminal device. For example, in 5G, the temporary identifier of the terminal device may refer to a globally unique temporary UE identity (GUTI).

[0135] It can be understood that under normal circumstances, the UDM recognizes the permanent identifier of the terminal device, but cannot recognize the temporary identifier of the terminal device. Therefore, in the case where the first identifier of the terminal device is a permanent identifier, the network element selection function of the second area can directly obtain the contract data of the terminal device from the UDM of the first area based on the first identifier. In the case where the first identifier of the terminal device is a temporary identifier, the network element selection function of the second area obtains the contract data of the terminal device from the UDM of the first area based on the first identifier of the terminal device, including: the network element selection function of the second area obtains the second identifier of the terminal device corresponding to the first identifier from the storage function network element of the second area, the storage function network element is used to store the correspondence between the first identifier and the second identifier, and the second identifier is the permanent identifier of the terminal device; sends the second identifier to the UDM of the first area; receives the contract data of the terminal device corresponding to the second identifier from the UDM of the first area.

[0136] For example, the UDM of the first area can be the UDM of the belonging area in Figure 2 or 3, and the network element selection function device of the second area can be the network element selection function device of the roaming area in Figure 2 or 3. The network element selection function device of the roaming area in Figure 2 or 3 can obtain the address of the UDM of the belonging area based on the permanent identification of the terminal device, establish a connection with the UDM of the belonging area, and send the permanent identification of the terminal device to the UDM of the belonging area; the UDM of the belonging area determines the contract data corresponding to the permanent identification of the terminal device based on the received permanent identification of the terminal device, and sends the contract data to the network element selection function device of the roaming area in Figure 2 or 3.

[0137] Optionally, when the first identifier of the terminal device is a temporary identifier, the network element selection function device of the second area sends a second identifier corresponding to the first identifier to the UDM of the first area, and the second identifier is the permanent identifier of the terminal device, including: sending the second identifier to the UDM of the first area through the network element selection function device of the first area; wherein, receiving the contract data of the terminal device corresponding to the second identifier from the UDM of the first area includes: receiving the contract data of the terminal device corresponding to the second identifier from the UDM of the first area through the network element selection function device of the first area.

[0138] Optionally, before sending the second identifier to the UDM of the first area through the network element selection function device of the first area, the network element selection function device of the second area determines the address of the network element selection function device of the first area based on the second identifier, wherein sending the second identifier to the UDM of the first area through the network element selection function device of the first area includes: the network element selection function device of the second area sends the second identifier to the network element selection function device of the first area based on the address of the network element selection function device of the first area; the network element selection function device of the first area receives the second identifier and sends the second identifier to the UDM of the first area.

[0139] For example, the network element selection function device of the first area is the network element selection function device of the belonging area in Figure 3, the network element selection function device of the second area is the network element selection function device of the roaming area in Figure 3, the UDM of the first area is the UDM of the belonging area in Figure 3, the network element selection function device of the roaming area in Figure 3 can determine the address of the network element selection function device of the belonging area based on the permanent identifier of the terminal device, and establish a connection with the network element selection function device of the belonging area, and send the permanent identifier to the network element selection function device of the belonging area; the network element selection function device of the belonging area sends the permanent identifier to the UDM of the belonging area; the UDM of the belonging area determines the contract data corresponding to the permanent identifier based on the received permanent identifier, and sends the contract data to the network element selection function device of the roaming area through the network element selection function device of the belonging area in Figure 3.

[0140] The above is the process of the network element selection function device in the second area obtaining the subscription data of the terminal device. The following describes in detail the network element selection function device in the second area obtaining the address of the first core network element in the first area in two ways for situation one.

[0141] In a first approach, the network element selection function device in the second area determines the address of the first core network element in the first area based on the acquired subscription data and the first slice information in the first area. The first approach can be applied to the roaming architecture in FIG2 or FIG3.

[0142] Optionally, the first slice information of the first region may indicate the corresponding NSSAI of the first region.

[0143] Optionally, in the case where the first core network element of the first area is the SMF of the first area, the corresponding NSSAI of the first area may be obtained by mapping the NSSAI requested by the terminal device in the second area, or may also be obtained by mapping the allowed NSSAI of the second area. Optionally, the NSSAI requested by the terminal device in the second area may belong to the allowed NSSAI of the second area. Optionally, the allowed NSSAI of the second area may refer to a set of slices available to the terminal device in the second area, and the allowed NSSAI of the second area may be determined for the terminal device by the AMF of the second area during the registration process of the terminal device. Optionally, the network slice selection auxiliary information may also be S-NSSAI.

[0144] Optionally, when the first core network element of the first area is the PCF of the first area, the corresponding NSSAI of the first area may be obtained by mapping the allowed NSSAI of the second area.

[0145] It can be understood that, under normal circumstances, the subscription data of the terminal device may include: slice selection subscription data, SMF selection subscription data or access and mobility management subscription data, etc. Among them, the slice selection subscription data may include the S-NSSAI subscribed by the terminal device, and the subscribed S-NSSAI can be used to match and verify the NSSAI requested by the terminal device, or can also be used to match and verify the allowed NSSAI, so as to verify the legitimacy of the requested NSSAI or the allowed NSSAI of the terminal device. Since there is a corresponding relationship between NSSAI and the core network network element, the network element selection function device of the second area can determine the address of the first core network network element from the multiple core network network elements of the first area based on the first slice information and subscription data of the first area. The functions of the multiple core network network elements here are the same. For example, the multiple core network network elements are all PCFs and have the function of generating policies for terminal devices. For another example, the multiple core network network elements are all SMFs and have session management functions.

[0146] Among them, there may be multiple bases for the network element selection function device in the second area to determine the address of the first core network element from multiple core network elements in the first area, and this embodiment of the present application does not limit this.

[0147] Optionally, when the first core network element is an SMF, the network element selection function device of the second area can determine the address of the first core network element from multiple core network elements in the first area based on the subscription data of the terminal device, or can also determine the address of the first core network element from multiple core network elements in the first area based on at least one of the DNN, PDU session identifier or the first slice information of the first area, and the subscription data of the terminal device.

[0148] For example, the first core network network element is the SMF of the home area in Figure 2 or 3. The UE sends a PDU session establishment request message to the network element selection function device of the roaming area through the RAN of the roaming area. The PDU session establishment request message includes: DNN, PDU session identifier, first slice information of the home area and the first identifier of the UE. The network element selection function device of the roaming area obtains the UE's subscription data according to the UE's first identifier, and determines the address of the SMF of the home area in Figure 2 or 3 from multiple SMFs in the home area according to the obtained UE subscription data, DNN, PDU session identifier and the first slice information of the home area.

[0149] Optionally, when the first core network element is a PCF, the network element selection function device of the second area can determine the address of the first core network element from multiple core network elements in the first area according to the subscription data of the terminal device.

[0150] For example, the first core network network element is the PCF of the home area in Figure 2 or Figure 3. The UE sends a UE policy establishment request message to the network element selection function device of the roaming area through the RAN of the roaming area. The UE policy establishment request message includes: the first identifier of the UE. The network element selection function device of the roaming area obtains the UE's subscription data according to the first identifier of the UE, and determines the address of the PCF of the home area in Figure 2 or Figure 3 from multiple PCFs in the home area based on the obtained UE subscription data.

[0151] In a second approach, the network element selection function device of the second area obtains the address of the first core network element of the first area determined by the network element selection function device of the first area from the network element selection function device of the first area. The second approach may be a method for obtaining the address of the first core network element of the first area provided for the roaming architecture of FIG3 .

[0152] Optionally, when the first identifier of the terminal device is a permanent identifier, the network element selection function device of the second area receives the first slice information of the first area and the first identifier of the terminal device sent by the terminal device through the access network device of the second area; the network element selection function device of the second area sends the first slice information of the first area and the first identifier of the terminal device to the network element selection function device of the first area; the network element selection function device of the second area receives the address of the first core network network element of the first area determined by the network element selection function device of the first area based on the first slice information and the first identifier of the first area from the network element selection function device of the first area.

[0153] Optionally, when the first identifier of the terminal device is a temporary identifier, the network element selection function device of the second area receives the first slice information of the first area and the first identifier of the terminal device sent by the terminal device through the access network device of the second area; the access network device of the second area sends the first slice information of the first area and the second identifier of the terminal device to the network element selection function device of the first area, the second identifier corresponds to the first identifier, the second identifier is the permanent identifier of the terminal device, and the first identifier is the temporary identifier of the terminal device; the access network device of the second area receives the address of the first core network network element of the first area determined by the network element selection function device of the first area based on the first slice information and the second identifier of the first area from the network element selection function device of the first area.

[0154] To better understand the second approach, the following is described with reference to FIG5 . As shown in FIG5 , the method 500 includes the following steps:

[0155] S411, the terminal device sends a first identifier and first slice information of the first area to the access network device of the second area, and the access network device of the second area receives the first identifier and first slice information of the first area from the terminal device.

[0156] The terminal device is located in the second area. The first slice information of the first area is the same as that in the first method, and is not described here to avoid redundancy.

[0157] Optionally, when the first core network network element is SMF, while the terminal device sends the first identifier and the first slice information of the first area to the access network device of the second area, the terminal device can also send the DNN and / or PDU session identifier to the access network device of the second area.

[0158] S412, the access network device of the second area sends the first identifier and the first slice information of the first area to the network element selection function device of the second area, and the network element selection function device of the second area receives the first identifier and the first slice information of the first area from the access network device of the second area.

[0159] Optionally, when the first core network network element is SMF and the terminal device in S411 sends DNN to the access network device of the second area, the access network device of the second area can also send DNN to the network element selection function device of the second area while sending the first identifier and the first slice information of the first area to the network element selection function device of the second area.

[0160] Optionally, when the first core network network element is SMF and the terminal device in S411 sends a PDU session identifier to the access network device of the second area, the access network device of the second area can send the PDU session identifier to the network element selection function device of the second area while sending the first identifier and the first slice information of the first area to the network element selection function device of the second area.

[0161] Optionally, when the first core network network element is SMF and the terminal device in S411 sends the DNN and PDU session identifier to the access network device of the second area, the access network device of the second area can send the DNN and PDU session identifier to the network element selection function device of the second area while sending the first identifier and the first slice information of the first area to the network element selection function device of the second area.

[0162] S413: The network element selection function device in the second area sends a first identifier to the storage function network element in the second area, and the storage function network element in the second area receives the first identifier from the network element selection function device in the second area.

[0163] The storage function network element in the second area is used to store the correspondence between the first identifier and the second identifier. That is, the storage function network element in the second area can determine the second identifier of the terminal device according to the received first identifier.

[0164] S414: The storage function network element in the second area sends a second identifier to the network element selection function device in the second area, and the network element selection function device in the second area receives the second identifier from the storage function network element in the second area.

[0165] It should be noted that S413 and S414 are optional steps. For example, if the first identifier in S412 is a permanent identifier, it means that the first identifier in S412 is a second identifier, and in this case, S413 and S414 do not need to be executed.

[0166] S415, the network element selection function device of the second area sends the first slice information and the second identifier of the first area to the network element selection function device of the first area, and the network element selection function device of the first area receives the first slice information and the second identifier of the first area from the network element selection function device of the second area.

[0167] Optionally, when the first core network network element is SMF, and the access network device of the second area sends DNN to the network element selection function device of the second area in S412, the network element selection function device of the second area sends the first slice information and the second identifier of the first area to the network element selection function device of the first area, and the network element selection function device of the second area can also send DNN to the network element selection function device of the first area.

[0168] Optionally, when the first core network network element is SMF, and the access network device of the second area in S412 sends the PDU session identifier to the network element selection function device of the second area, the network element selection function device of the second area sends the first slice information and the second identifier of the first area to the network element selection function device of the first area. At the same time, the network element selection function device of the second area can also send the PDU session identifier to the network element selection function device of the first area.

[0169] Optionally, when the first core network network element is SMF, and the access network device of the second area in S412 sends the DNN and PDU session identifier to the network element selection function device of the second area, the network element selection function device of the second area sends the first slice information and the second identifier of the first area to the network element selection function device of the first area. At the same time, the network element selection function device of the second area can also send the DNN and PDU session identifier to the network element selection function device of the first area.

[0170] S416, the network element selection function device of the first area determines the address of the first core network element of the first area according to the first slice information and the second identifier.

[0171] Optionally, when the first core network network element is SMF, and the network element selection function device of the second area sends the first slice information, second identifier and DNN of the first area to the network element selection function device of the first area, the network element selection function device of the first area can determine the address of the first core network network element of the first area based on the first slice information, second identifier and DNN of the first area.

[0172] Optionally, when the first core network network element is SMF, and the network element selection function device of the second area sends the first slice information, second identifier and PDU session identifier of the first area to the network element selection function device of the first area, the network element selection function device of the first area can determine the address of the first core network network element of the first area based on the first slice information, second identifier and PDU session identifier of the first area.

[0173] Optionally, when the first core network network element is SMF, and the network element selection function device of the second area sends the first slice information, second identifier, DNN and PDU session identifier of the first area to the network element selection function device of the first area, the network element selection function device of the first area can determine the address of the first core network network element of the first area based on the first slice information, DNN, second identifier and PDU session identifier of the first area.

[0174] Optionally, S416 includes: the network element selection function device of the first area obtains the subscription data of the terminal device from the UDM of the first area according to the second identifier, and determines the address of the first core network network element of the first area according to the first slice information of the first area and the subscription data. The process of the network element selection function device of the first area determining the address of the first core network network element of the first area according to the first slice information of the first area and the subscription data of the terminal device can refer to the description of the above-mentioned method 1.

[0175] For example, the network element selection function device of the first area is the network element selection function device of the home area in Figure 3. The network element selection function device of the home area obtains the UE's subscription data from the UDM of the home area according to the permanent identification of the UE, and obtains the address of the SMF of the home area in Figure 3 from multiple SMFs of the home area according to the obtained UE subscription data and the first slice information of the home area.

[0176] S417, the network element selection function device of the first area sends the address of the first core network element of the first area to the network element selection function device of the second area, and the network element selection function device of the second area receives the address of the first core network element of the first area from the network element selection function device of the first area.

[0177] It can be understood that in Method 2, the network element selection function device in the first area determines the address of the first core network element in the first area and sends the determined address of the first core network element to the network element selection function device in the second area; while in Method 1, the network element selection function device in the second area determines the address of the first core network element in the first area based on the obtained subscription data and first slice information of the terminal device. Thus, compared to Method 1, Method 2 can avoid the network element selection function device in the second area from having to determine the address of the first core network element in the first area, thereby simplifying the function of the network element selection function device in the second area.

[0178] Case 2: The first area is the roaming area of ​​the terminal device, and the second area is the home area of ​​the terminal device.

[0179] The following describes two ways for the network element selection function device in the second area to obtain the address of the first core network element in the first area for the second scenario. The second scenario is applied to the roaming architecture shown in FIG3 .

[0180] Method 1: The network element selection function device of the second area obtains the third slice information of the first area and the permanent identification of the terminal device through the network element selection function device of the first area; obtains the contract data of the terminal device from the UDM of the second area according to the permanent identification of the terminal device; determines the address of the first core network network element of the first area according to the third slice information and the contract data of the first area.

[0181] Optionally, the third slice information of the first region may indicate the corresponding NSSAI of the first region.

[0182] Optionally, when the first core network element is SMF, the corresponding NSSAI of the first area may be the NSSAI requested by the terminal device in the first area, or may be the allowed NSSAI of the first area.

[0183] For example, the first core network network element is the SMF of the roaming area in Figure 3, and the network element selection function device of the second area is the network element selection function device of the home area in Figure 3. The network element selection function device of the home area obtains the NSSAI requested by the UE in the roaming area (or the allowed NSSAI of the roaming area) and the permanent identification of the UE by interacting with the network element selection function device of the roaming area. The network element selection function device of the home area obtains the subscription data of the UE from the UDM of the home area according to the permanent identification of the UE. The network element selection function device of the home area determines the address of the SMF of the roaming area in Figure 3 from multiple SMFs in the roaming area according to the subscription data of the UE and the NSSAI requested by the UE in the roaming area (or the allowed NSSAI of the roaming area).

[0184] Optionally, when the first core network element is a PCF, the corresponding NSSAI of the first area may be an allowed NSSAI of the first area.

[0185] For example, the first core network network element is the PCF of the roaming area in Figure 3, and the network element selection function device of the second area is the network element selection function device of the home area in Figure 3. The network element selection function device of the home area obtains the allowed NSSAI of the roaming area and the permanent identification of the UE by interacting with the network element selection function device of the roaming area. The network element selection function device of the home area obtains the subscription data of the UE from the UDM of the home area according to the permanent identification of the UE. The network element selection function device of the home area determines the address of the PCF of the roaming area in Figure 3 from multiple PCFs in the roaming area according to the subscription data of the UE and the allowed NSSAI of the roaming area.

[0186] Among them, the process of the network element selection function device in the second area determining the address of the first core network element in the first area based on the third slice information and contract data of the first area can refer to the description of the corresponding part in the method one of the above situation one. In order to avoid repetition, it will not be described here.

[0187] Method 2: The network element selection function device of the second area receives the address of the first core network network element of the first area determined by the network element selection function device of the first area based on the third slice information of the first area and the first identifier of the terminal device from the network element selection function device of the first area.

[0188] Optionally, the network element selection function device of the first area determines the address of the first core network network element of the first area based on the third slice information of the first area and the first identifier of the terminal device, which may include: the network element selection function device of the first area receives the third slice information of the first area and the first identifier of the terminal device sent by the terminal device through the access network device of the first area; the network element selection function device of the first area obtains the contract data of the terminal device from the UDM of the second area based on the first identifier of the terminal device; the network element selection function device of the first area determines the address of the first core network network element of the first area based on the third slice information and the contract data of the first area.

[0189] For example, the network element selection function device of the first area is the network element selection function device of the roaming area in Figure 3. The network element selection function device of the roaming area obtains the UE's subscription data from the UDM of the home area according to the UE's first identifier, and determines the address of the SMF of the roaming area in Figure 3 from multiple SMFs in the roaming area according to the obtained UE subscription data and the third slice information of the roaming area. The network element selection function device of the home area in Figure 3 interacts with the network element selection function device of the roaming area, and obtains the address of the SMF of the roaming area from the network element selection function device of the roaming area.

[0190] Method 1 of situation 2 in S410 corresponds to method 1 of situation 1, in which the network element selection function device of the second area determines the address of the first core network network element of the first area according to the first slice information (or third slice information) and the subscription data of the first area. Method 2 of situation 2 in S410 corresponds to method 2 of situation 1, in which the network element selection function device of the second area interacts with the network element selection function device of the first area, and obtains from the network element selection function device of the first area the address of the first core network network element of the first area determined by the network element selection function device of the first area according to the first slice information (or third slice information) and the subscription data of the first area.

[0191] S420: The network element selection function device in the second area sends first information, where the first information is used by the second core network element in the second area to obtain the address of the first core network element in the first area.

[0192] Optionally, the second core network element in the second area may be the SMF of the second area, or the PCF of the second area. Optionally, the second core network element in the second area has the same functions as the first core network element in the first area. For example, the first core network element in the first area includes the PCF of the first area, and the second core network element in the second area includes the PCF of the second area; or, the first core network element in the first area includes the SMF of the first area, and the second core network element in the second area includes the SMF. Alternatively, the first core network element in the first area includes the PCF and the SMF of the first area, and the second core network element in the second area includes the PCF and the SMF of the second area.

[0193] For example, the second core network element of the second area is the SMF of the roaming area in Figure 2 (or Figure 3), and the first core network element of the first area is the SMF of the home area in Figure 2 (or Figure 3); for another example, the second core network element of the second area is the PCF of the roaming area in Figure 2 (or Figure 3), and the first core network element of the first area is the PCF of the home area in Figure 2 (or Figure 3); for another example, the second core network element of the second area is the SMF and PCF of the roaming area in Figure 2 (or Figure 3), and the first core network element of the first area is the SMF and PCF of the home area in Figure 2 (or Figure 3).

[0194] S420 is described below in two cases.

[0195] Case 1: The first area is the home area of ​​the terminal device, and the second area is the roaming area of ​​the terminal device.

[0196] Here, the case 1 in S420 corresponds to the case 1 in S410.

[0197] With respect to the first situation, there are three ways in which the network element selection function device in the second area sends the first information.

[0198] Method 1: The network element selection function device in the second area sends first information to the second core network element in the second area through the access network device in the second area, where the first information is used to indicate the address of the first core network element in the first area.

[0199] Optionally, the network element selection function device in the second area sending the first information to the second core network element in the second area via the access network device in the second area includes: the network element selection function device in the second area sending a container to the second core network element in the second area via the access network device in the second area, where the container includes the first information. In other words, the access network device in the second area does not parse the first information in the container.

[0200] For example, the network element selection function device of the second area is the network element selection function device of the roaming area in Figure 2 or Figure 3, the access network device of the second area is the RAN of the roaming area in Figure 2 or Figure 3, and the second core network element of the second area is the SMF of the roaming area in Figure 2 or Figure 3. The network element selection function device of the roaming area in Figure 2 or Figure 3 sends a container to the RAN of the roaming area, where the container includes information indicating the address of the SMF of the home area. The RAN of the roaming area receives the container and sends the container to the SMF of the roaming area.

[0201] Optionally, the access network device of the second area sends the first information to the second core network network element of the second area, including: the access network device of the second area obtains the address of the second core network network element of the second area from the network element selection function device of the second area; and sends the first information to the second core network network element of the second area according to the address of the second core network network element of the second area.

[0202] In addition, in the first approach of the first scenario in S420, the access network device in the second area does not parse the first information. That is, the access network device in the second area forwards the first information to the second core network element in the second area, and the second core network element in the second area parses the first information and obtains the address of the first core network element in the first area. It is understandable that the second core network element in the second area being able to parse the first information may be a function possessed by the second core network element.

[0203] The above describes the first method in which the network element selection function device in the roaming area sends the first information to the second core network element in the roaming area via the access network device in the roaming area. This means that the access network device in the roaming area simply forwards the first information to the second core network element in the roaming area. The access network device in the roaming area does not parse the first information. Instead, the second core network element in the roaming area parses the first information and obtains the address of the first core network element in the home area. This prevents the access network device in the roaming area from obtaining the address of the first core network element in the home area, thereby improving the security of the address of the first core network element in the home area.

[0204] Method 2: The network element selection function device in the second area sends first information to the second core network element in the second area through the access network device in the second area. The first information is used to instruct the second core network element in the second area to obtain the address of the first core network element in the first area.

[0205] Optionally, the first information is used to instruct the second core network element in the second area to obtain the address of the first core network element in the first area. It can be understood that: the first information does not contain the address of the first core network element in the first area, nor does it indicate the address of the first core network element in the first area, but can instruct the core network element in the second area to obtain the address of the first core network element in the first area. The second core network element can obtain the address of the first core network element in the first area based on the first information.

[0206] Optionally, the first information is information indicating that an address of a first core network element in the first area needs to be obtained. That is, the network element selection function device in the second area sends information indicating that an address of the first core network element in the first area needs to be obtained to a second core network element in the second area via an access network device in the second area, thereby instructing the second core network element in the second area to obtain the address of the first core network element in the first area.

[0207] Optionally, the first information is the roaming information of the terminal device, that is, the network element selection function device of the second area sends the roaming information of the terminal device to the second core network element of the second area through the access network device of the second area, implicitly instructing the second core network element of the second area to obtain the address of the first core network element of the first area.

[0208] Optionally, in a case where the first information is roaming information of the terminal device, the roaming information of the terminal device may be used to indicate that the terminal device is in a roaming state.

[0209] For example, the network element selection function device of the second area is the network element selection function device of the roaming area in Figure 2 or Figure 3, the second core network network element of the second area is the PCF of the roaming area in Figure 2 or Figure 3, the network element selection function device of the roaming area sends first information to the RAN of the roaming area in Figure 2 or Figure 3, the first information is roaming information indicating that the UE is in a roaming state, the RAN of the roaming area sends the first information to the PCF of the roaming area, and after receiving the first information, the PCF of the roaming area can obtain the address of the PCF of the home area.

[0210] Optionally, when the first information is the roaming information of the terminal device, the roaming information of the terminal device may be used to indicate that the roaming type of the terminal device is HR roaming, or used to indicate that the roaming type of the terminal device does not support LBO roaming.

[0211] Optionally, the roaming type of the terminal device may include: HR roaming and LBO roaming. Optionally, LBO roaming may refer to the terminal device accessing the DN through the UPF of the roaming area. Optionally, HR roaming may refer to the terminal device accessing the DN through the UPF of the home area. Furthermore, the roaming type of the terminal device may be determined based on at least one of the NSSAI and DNN requested by the terminal device, and the subscription data of the terminal device. For example, when the terminal device accesses DNN1, the roaming type of the terminal device is determined to be HR roaming based on the subscription data of the terminal device and DNN1; for another example, when the terminal device accesses DNN2 and NSSAI1, the roaming type of the terminal device is determined to be LBO roaming based on the subscription data of the terminal device, DNN2 and NSSAI1.

[0212] For example, the network element selection function device of the second area is the network element selection function device of the roaming area in Figure 2 or Figure 3, the second core network network element of the second area is the SMF of the roaming area in Figure 2 or Figure 3, the network element selection function device of the roaming area sends first information to the RAN of the roaming area in Figure 2 or Figure 3, the first information is roaming information indicating that the roaming type of the UE is HR roaming, the RAN of the roaming area sends the first information to the SMF of the roaming area, and after receiving the first information, the SMF of the roaming area can obtain the address of the SMF of the home area.

[0213] The above is the process in which the network element selection function device in the roaming area sends the first information to the second core network element in the roaming area through the access network device in the roaming area in Method 2. Unlike Method 1, the first information in Method 2 is used to instruct the second core network element in the roaming area to obtain the address of the first core network element in the home area. However, the first information does not include the address of the first core network element in the home area. Therefore, the access network device in the roaming area cannot obtain the address of the first core network element in the home area based on the received first information, thereby improving the security of the address of the first core network element in the home area. Furthermore, there is no need to encapsulate the address of the first core network element in the first area determined by the network element selection function device in the roaming area in the form of a container. This prevents the access network device in the roaming area from obtaining the address of the first core network element in the home area and simplifies the functions of the network element selection function device in the roaming area.

[0214] Method three: the network element selection function device in the second area sends the first information to the storage function network element in the second area. The first information includes the address of the first core network element in the first area. The second core network element in the second area is used to obtain the address of the first core network element in the first area from the storage function network element in the second area.

[0215] Optionally, the first information may further include a first identifier of the terminal device.

[0216] Optionally, after the network element selection function device in the second area sends the first information to the storage function network element in the second area, the communication method further includes: the storage function network element in the second area receives the first information.

[0217] Optionally, after the storage function network element in the second area receives the first information, the communication method further includes: the storage function network element in the second area stores the first information.

[0218] Optionally, when the first information also includes the first identifier of the terminal device, the storage function network element of the second area stores the first information, including: the storage function network element of the second area stores the address of the first core network network element of the first area, the first identifier, and the correspondence between the first identifier and the address of the first core network network element of the first area.

[0219] For example, the network element selection function device of the second area is the network element selection function device of the roaming area in Figure 2 or Figure 3, the second core network network element of the second area is the SMF of the roaming area in Figure 2 or Figure 3, the storage function network element of the second area is the storage function network element of the roaming area in Figure 2 or Figure 3, the network element selection function device of the roaming area sends first information to the storage function network element of the roaming area, the first information includes: the first identifier of the UE and the address of the SMF of the home area, the storage function network element of the roaming area stores the first information, and the SMF of the roaming area can obtain the address of the SMF of the home area from the storage function network element of the roaming area.

[0220] The above describes a third approach in which the network element selection function device in the roaming area sends first information to the storage function network element in the roaming area. The first information includes the address of the first core network element in the home area. Unlike the first approach, the first information in this approach includes the address of the first core network element in the home area. The second core network element in the roaming area interacts with the storage function network element in the roaming area to obtain the address of the first core network element in the first area from the storage function network element in the roaming area. This prevents access network devices in the roaming area from obtaining the address of the first core network element in the home area, thereby improving the security of the address of the first core network element in the home area. Furthermore, there is no need to encapsulate the address of the first core network element in the home area determined by the network element selection function device in the roaming area in a containerized form, thereby simplifying the functionality of the network element selection function device in the roaming area.

[0221] Case 2: The first area is the roaming area of ​​the terminal device, and the second area is the home area of ​​the terminal device.

[0222] The second case of S420 corresponds to the second case of S410 and is applied to the roaming architecture shown in FIG3 .

[0223] Optionally, the network element selection function device in the second area sends first information to the second core network element in the second area, where the first information includes the address of the first core network element in the first area.

[0224] Optionally, before the network element selection function device in the second area sends the first information to the second core network element in the second area, the network element selection function device in the second area obtains the address of the first core network element in the first area. The process of the network element selection function device in the second area obtaining the address of the first core network element in the first area can refer to the description of case 2 in S410, and is not described here to avoid redundancy.

[0225] For example, the network element selection function device of the second area is the network element selection function device of the belonging area in Figure 3, the second core network element of the second area is the SMF of the belonging area in Figure 3, and the first core network element of the first area is the SMF of the roaming area in Figure 3. The network element selection function device of the belonging area sends the address of the SMF of the roaming area to the SMF of the belonging area, and the SMF of the belonging area sends the signaling of the terminal device to the SMF of the roaming area according to the address of the SMF of the roaming area.

[0226] The above are two cases in which the network element selection function device in the second area sends the first information. The first information is used by the second core network element in the second area to obtain the address of the first core network element in the first area. The second core network element in the second area can send the signaling of the terminal device to the first core network element in the first area based on the address of the first core network element in the first area. In other words, in this way, a connection can be established between the core network element in the roaming area and the core network element in the belonging area, so that the network operator in the belonging area can obtain the communication data of the terminal device, which is beneficial to improving the interests of the network operator.

[0227] S430: The second core network element in the second area obtains the address of the first core network element in the first area.

[0228] S430 is described below in two cases.

[0229] Case 1: The first area is the home area of ​​the terminal device, and the second area is the roaming area of ​​the terminal device.

[0230] Here, situation 1 in S430 corresponds to situation 1 in S420 and S410 .

[0231] In case 1, there are five ways for the second core network element in the second area to obtain the address of the first core network element in the first area.

[0232] Method 1: The second core network element in the second area receives the first information sent by the network element selection function of the second area through the access network device of the second area, where the first information is used to indicate the address of the first core network element in the first area; the address of the first core network element in the first area is determined based on the first information.

[0233] Method 1 here corresponds to method 1 of case 1 in S420, that is, the first information here is the first information in method 1 of case 1 in S420. The process of the second core network element in the second area receiving the first information sent by the network element selection function of the second area through the access network device in the second area can refer to the description of method 1 of case 1 in S420. To avoid redundancy, it is not described in detail here.

[0234] Optionally, the second core network element in the second area determines the address of the first core network element in the first area based on the first information, including: the second core network element in the second area parses the first information to obtain the address of the first core network element in the first area.

[0235] Method 2: The second core network element in the second area receives the first information sent by the access network device in the second area, and the first information is used to instruct the second core network element in the second area to obtain the address of the first core network element in the first area; and selects a functional device from the network element in the second area to obtain the address of the first core network element in the first area.

[0236] The second method here corresponds to the second method of the first case in S420 , that is, the first information here is the first information in the second method of the first case in S420 .

[0237] Optionally, the second core network element in the second area obtains the address of the first core network element in the first area from the network element selection function device in the second area, including: the second core network element in the second area sends a second request message to the network element selection function device in the second area, the second request message includes the first identifier of the terminal device, and the second request message is used to request the address of the first core network element in the first area; receives a response message to the second request message from the network element selection function device in the second area, and the response message to the second request message includes the address of the first core network element in the first area corresponding to the first identifier of the terminal device.

[0238] For example, the second core network element of the second area is the SMF of the roaming area in Figure 2 or Figure 3. After receiving the first information sent by the RAN of the roaming area, the SMF of the roaming area sends a second request message to the network element selection function device of the roaming area, and the second request message includes the permanent identifier or temporary identifier of the UE; the SMF of the roaming area receives a response message to the second request message from the network element selection function device of the roaming area, and the response message to the second request message includes the address of the SMF of the home area corresponding to the permanent identifier or temporary identifier of the UE.

[0239] Optionally, before the second core network element in the second area receives a response message to the second request message from the network element selection function device in the second area, method 2 also includes: the network element selection function device in the second area determines the address of the first core network element in the first area based on the first identifier of the terminal device.

[0240] The network element selection function device in the second area determines the address of the first core network element in the first area based on the first identifier of the terminal device, which may be: indexing according to the first identifier to determine the address of the first core network element in the first area corresponding to the first identifier. Here, the address of the first core network element in the first area may be the address determined and stored by the network element selection function device in the second area in S410 or before S410.

[0241] Method three: the second core network element in the second area obtains the address of the first core network element in the first area from the storage function network element in the second area.

[0242] The method three here corresponds to the method three of the case one in S420 , that is, the first information here is the first information in the method three of the case one in S420 .

[0243] Optionally, the second core network element in the second area obtains the address of the first core network element in the first area from the storage function network element in the second area, including: the second core network element in the second area sends a third request message to the storage function network element in the second area, the third request message includes the first identifier of the terminal device, and the third request message is used to request the address of the first core network element in the first area; receives a response message to the third request message from the storage function network element in the second area, and the response message to the third request message includes the address of the first core network element in the first area corresponding to the first identifier of the terminal device.

[0244] For example, the second core network element of the second area is the SMF of the roaming area in Figure 2 or 3. The SMF of the roaming area sends a third request message to the storage function network element of the roaming area, and the third request message includes the permanent identifier or temporary identifier of the UE. A response message to the third request message is received from the storage function network element of the roaming area, and the response message to the third request message includes the address of the SMF of the home area corresponding to the permanent identifier or temporary identifier of the UE.

[0245] Optionally, before the second core network element in the second area receives a response message to the third request message from the storage function network element in the second area, method three also includes: the storage function network element in the second area determines the address of the first core network element in the first area based on the first identifier of the terminal device.

[0246] Among them, the storage function network element in the second area determines the address of the first core network network element in the first area according to the first identifier of the terminal device, which can be: indexing according to the first identifier to determine the address of the first core network network element in the first area corresponding to the first identifier.

[0247] Method four: The second core network element in the second area receives the first request message sent by the terminal device through the access network device in the second area, where the first request message includes the first slice information of the first area and the first identifier of the terminal device; the contract data of the terminal device is obtained from the UDM of the first area according to the first identifier of the terminal device; the address of the first core network element in the first area is determined according to the first slice information and the contract data of the first area.

[0248] Optionally, when the first core network element is an SMF, the first request message may further include: at least one of a DNN, a PDU session identifier, or an NSSAI1. Optionally, the first request message may be a PDU session establishment request message. Optionally, when the first request message includes NSSAI1, NSSAI1 may be first slice information of the first region.

[0249] Optionally, when the first core network element is a PCF, the first request message may be a policy establishment request message of the terminal device.

[0250] Optionally, when the first identifier of the terminal device is a permanent identifier of the terminal device, the second core network element in the second area obtains the contract data of the terminal device from the UDM in the first area based on the first identifier of the terminal device, including: the second core network element in the second area sends the first identifier to the UDM in the first area, and receives the contract data of the terminal device corresponding to the first identifier from the UDM in the first area.

[0251] Optionally, in the case that the first identifier of the terminal device is a temporary identifier of the terminal device, the second core network network element of the second area obtains the contract data of the terminal device from the UDM of the first area based on the first identifier of the terminal device, including: the second core network element of the second area obtains the second identifier of the terminal device corresponding to the first identifier from the storage function network element of the second area, the storage function network element is used to store the correspondence between the first identifier and the second identifier, and the second identifier is the permanent identifier of the terminal device; sends the second identifier to the UDM of the first area; receives the contract data of the terminal device corresponding to the second identifier from the UDM of the first area.

[0252] Optionally, the second core network element of the second area receives a first request message sent by the third core network element of the second area through the access network device of the second area, and the first request message includes the first slice information of the first area and the first identifier of the terminal device; for example, the third core network element of the second area is the AMF of the second area.

[0253] Among them, the process of the second core network element in the second area determining the address of the first core network element in the first area based on the first slice information and contract data of the first area can refer to method 1 of situation 1 in S410. In order to avoid repetition, it is not described in detail here.

[0254] In the fourth method described above, the second core network element in the roaming area obtains the first identifier of the terminal device and the first slice information of the home area through the access network equipment in the roaming area. The second core network element in the roaming area obtains the subscription data of the terminal device based on the first identifier, and determines the address of the first core network element in the home area based on the obtained subscription data and the first slice information of the home area. In other words, the second core network element in the roaming area determines the address of the first core network element in the home area based on the obtained subscription data and the first slice information. In this way, the second core network element in the roaming area can determine the address of the first core network element in the home area, transmit the signaling of the terminal device to the first core network element in the home area, and establish a connection with the first core network element in the home area, thereby enabling the network operator in the home area to obtain the communication data of the terminal device, thereby improving the interests of the network operator.

[0255] Method five: the second core network element in the second area obtains a second identifier from the storage function network element in the second area, where the second identifier is a permanent identifier of the terminal device; sends the second identifier to the UDM in the first area; receives the contract data of the terminal device corresponding to the second identifier from the UDM in the first area; sends the contract data to the network element selection function device in the second area; receives the address of the first core network element in the first area determined by the network element selection function device in the second area based on the contract data from the network element selection function device in the second area.

[0256] Optionally, the second core network element in the second area obtains the second identifier from the storage function network element in the second area, including: the second core network element in the second area sends the first identifier of the terminal device to the storage function network element in the second area, where the first identifier is a temporary identifier of the terminal device; and obtains the second identifier corresponding to the first identifier from the storage function network element in the second area.

[0257] Optionally, the network element selection function device of the second area determines the address of the first core network element of the first area based on the subscription data, including: the network element selection function device of the second area determines the address of the first core network element of the first area based on the first slice information and the subscription data of the first area. Here, the method 1 is the same as the method 1 of case 1 in S410, and is not described here to avoid redundancy.

[0258] In the fifth method described above, the second core network element in the roaming area can obtain the permanent identifier of the terminal device from the storage function element in the roaming area, obtain the subscription data of the terminal device from the UDM function element in the home area based on the permanent identifier of the terminal device, and send the subscription data to the network element selection function device in the roaming area. The network element selection function device in the roaming area receives the subscription data and determines the address of the first core network element in the home area based on the subscription data, and sends the determined address of the first core network element in the home area to the second core network element in the roaming area. This can also prevent the access network device in the roaming area from obtaining the address of the first core network element in the home area, thereby improving the security of the address of the first core network element in the home area.

[0259] Case 2: The first area is the roaming area of ​​the terminal device, and the second area is the home area of ​​the terminal device.

[0260] The second case of S430 corresponds to the second case of S420 and S410 and is applied to the roaming architecture shown in FIG3 .

[0261] Optionally, the second core network element in the second area receives first information sent by the network element selection function in the second area, where the first information includes the address of the first core network element in the first area.

[0262] It can be understood that the first information here is the first information in case 2 of S420. The second core network element in the second area receives the first information sent by the network element selection function in the second area, which means that the second core network element in the second area obtains the address of the first core network element in the first area from the network element selection function device in the second area.

[0263] S440, the second core network element in the second area transmits signaling of the terminal device according to the address of the first core network element in the first area.

[0264] Optionally, S440 includes: the second core network element in the second area sends signaling of the terminal device to the first core network element in the first area according to the address of the first core network element in the first area.

[0265] Optionally, the signaling of the terminal device may be an instruction of the control plane. For example, the instruction of the control plane may be a PDU session establishment request message, or may be a policy establishment request message of the terminal device.

[0266] For example, the second core network element of the second area is the SMF of the roaming area in Figure 2 (or Figure 3). The SMF of the roaming area in Figure 2 (or Figure 3) establishes a connection with the SMF of the home area according to the address of the SMF of the home area, and sends a PDU session establishment request message to the SMF of the home area.

[0267] For another example, the second core network element of the second area is the PCF of the roaming area in Figure 2 (or Figure 3). The PCF of the roaming area in Figure 2 (or Figure 3) establishes a connection with the PCF of the home area based on the address of the PCF of the home area, and sends the UE's policy establishment request message to the PCF of the home area.

[0268] The above describes the process in communication method 400 in which the network element selection function device in the second region obtains the address of the first core network element in the first region and sends first information. The first information is used by the second core network element in the second region to obtain the address of the first core network element in the first region; the second core network element in the second region obtains the address of the first core network element in the first region and transmits signaling of the terminal device based on the address of the first core network element. This establishes a connection between the core network element in the roaming region and the core network element in the home region, thereby enabling the network operator in the home region to obtain the communication data of the terminal device, which is beneficial to improving the interests of the network operator.

[0269] In addition, the network element selection function device of the second area in communication method 400 can also obtain the address of the second core network network element of the second area. For example, the network element selection function device of the roaming area in Figure 2 or Figure 3 can obtain the address of the SMF and / or the PCF of the roaming area, or the network element selection function device of the home area in Figure 3 can obtain the address of the SMF and / or the PCF of the home area. The following describes the process of the network element selection function device of the second area obtaining the address of the second core network network element of the second area.

[0270] Optionally, when the first area is the home area of ​​the terminal device and the second area is the roaming area of ​​the terminal device, the network element selection function device in the second area obtains the address of the second core network element in the second area, including: the network element selection function device in the second area obtains the second slice information of the second area; determines the address of the second core network element in the second area based on the second slice information and subscription data of the second area.

[0271] Optionally, the network element selection function device of the second area obtains the second slice information of the second area. It can be that in S410, the network element selection function device of the second area obtains the first identifier of the terminal device and the first slice information of the first area, and the network element selection function device of the second area also obtains the second slice information of the second area.

[0272] Optionally, the second slice information of the second region may indicate a corresponding NSSAI of the second region.

[0273] Optionally, when the second core network element is SMF, the corresponding NSSAI of the second area may be the NSSAI requested by the terminal device in the second area, or may be the allowed NSSAI of the second area.

[0274] Optionally, when the second core network element is a PCF, the corresponding NSSAI of the second area may be an allowed NSSAI of the second area.

[0275] It is understandable that, under normal circumstances, there is a corresponding relationship between NSSAI and core network elements. Therefore, the network element selection function device of the second area can determine the address of the second core network element from the multiple core network elements in the second area based on the second slice information and subscription data of the second area. The multiple core network elements here have the same functions. For example, the multiple core network elements are all PCFs and have the function of generating policies for terminal devices. For another example, the multiple core network elements are all SMFs and have the session management function.

[0276] Among them, there may be multiple bases for the network element selection function device in the second area to determine the address of the second core network element from multiple core network elements in the second area, and the embodiment of the present application does not limit this.

[0277] Optionally, when the second core network network element is an SMF, the network element selection function device of the second area can determine the address of the second core network network element from multiple core network network elements in the second area based on the subscription data of the terminal device, or can also determine the address of the second core network network element from multiple core network network elements in the second area based on at least one of the DNN, PDU session identifier or the second slice information of the second area, and the subscription data of the terminal device.

[0278] For example, the second core network network element is the SMF of the roaming area in Figure 2 or 3. The UE sends a PDU session establishment request message to the network element selection function device of the roaming area through the RAN of the roaming area. The PDU session establishment request message includes: DNN, PDU session identifier, second slice information of the roaming area and the first identifier of the UE. The network element selection function device of the roaming area obtains the UE's subscription data according to the UE's first identifier, and determines the address of the SMF of the roaming area in Figure 2 or 3 from multiple SMFs in the roaming area according to the obtained UE subscription data, DNN, PDU session identifier and the second slice information of the roaming area.

[0279] Optionally, when the second core network element is a PCF, the network element selection function device of the second area can determine the address of the second core network element from multiple core network elements in the second area according to the subscription data of the terminal device.

[0280] For example, the second core network network element is the PCF of the roaming area in Figure 2 or Figure 3. The UE sends a UE policy establishment request message to the network element selection function device of the roaming area through the RAN of the roaming area. The UE policy establishment request message includes: the first identifier of the UE. The network element selection function device of the roaming area obtains the UE's subscription data according to the first identifier of the UE, and determines the address of the PCF of the roaming area in Figure 2 or Figure 3 from multiple PCFs in the roaming area based on the obtained UE subscription data.

[0281] It can be understood that the network element selection function device of the second area can obtain the address of the second core network network element of the second area and the address of the first core network network element of the first area at the same time, or it can first obtain the address of the second core network network element of the second area, and then obtain the address of the first core network network element of the first area; or it can first obtain the address of the first core network network element of the first area, and then obtain the address of the second core network network element of the second area. The embodiments of the present application do not limit this.

[0282] Optionally, after the network element selection function device in the second area obtains the address of the second core network element in the second area, the communication method 400 further includes: the network element selection function device in the second area sends second information to the access network device in the second area, where the second information is used to indicate the address of the second core network element in the second area. Optionally, the second information may be information including the address of the second core network element in the second area. In other words, the network element selection function device in the roaming area may obtain the address of the second core network element in the roaming area and send the address of the second core network element in the roaming area to the access network device in the roaming area. In this way, the access network device in the roaming area can establish a connection with the second core network element in the roaming area based on the address of the second core network element in the roaming area, and transmit terminal device signaling based on this connection.

[0283] In order to better understand the method 1 in the case 1 of S420 and the method 1 in the case 1 of S430 of the communication method 400, a detailed implementation process is described below in conjunction with Figures 6 and 7.

[0284] FIG6 describes an example using the first area as the home area, the second area as the roaming area, the first core network element in the first area as SMF1, the second core network element in the second area as SMF2, the terminal device as UE, the access network device as RAN, and the unified data management function element as UDM. The functions of the UE, RAN, network element selection function device, storage function network element, SMF2 in the roaming area, and the SMF1 and UDM in the home area in FIG6 can refer to the description of the communication method 400. As shown in FIG6, the method 600 includes the following steps:

[0285] S601: UE sends a PDU session establishment request message to RAN, and RAN receives the PDU session establishment request message from UE. The PDU session establishment request message includes a first identifier, NSSAI1 and NSSAI2.

[0286] Optionally, NSSAI1 may be mapped from NSSAI requested by the UE in the roaming area, or may be mapped from NSSAI allowed in the roaming area. NSSAI2 may be NSSAI requested by the UE in the roaming area, or may be NSSAI allowed in the roaming area.

[0287] Optionally, the PDU session establishment request message may further include: DNN and / or PDU session identifier.

[0288] Optionally, the RAN may not parse the PDU session establishment request message. In this case, when the UE sends the PDU session establishment request message to the RAN, it also sends at least one of the following: NSSAI1, NSSAI2, DNN, and PDU session identifier.

[0289] For example, the UE may be a terminal device in the communication method 400, the RAN may be an access network device in the communication method 400, and the first identifier may be the first identifier of the terminal device in the communication method 400. NSSAI1 may be first slice information of a first area when the first core network element is an SMF in case 1 of the communication method 400, and NSSAI2 may be second slice information of a second area when the first core network element is an SMF in case 1 of the communication method 400.

[0290] Optionally, before S601, method 600 may further include: the UE initiating a registration request process, wherein the registration request process is used to allow the UE to access the network in the roaming area. During the registration request process, the storage function network element in the roaming area in FIG6 may store the temporary identifier and the permanent identifier of the terminal device, as well as the corresponding relationship between the temporary identifier and the permanent identifier.

[0291] S602: The RAN sends a network element discovery request message to the network element selection function device, and the network element selection function device receives the network element discovery request message from the RAN. The network element discovery request message includes: a first identifier, NSSAI1 and NSSAI2.

[0292] Optionally, when the PDU session establishment request message also includes a DNN, the network element discovery request message may further include: DNN. Optionally, when the PDU session establishment request message also includes a PDU session identifier, the network element discovery request message may further include: PDU session identifier. Optionally, when the PDU session establishment request message also includes a DNN and a PDU session identifier, the network element discovery request message may further include: DNN and a PDU session identifier.

[0293] For example, S602 may be the process in which the network element selection function device of the second area in S410 of the communication method 400 obtains the first identifier of the terminal device, the first slice information of the first area, and the second slice information of the second area.

[0294] S603: The network element selection function device sends a first identifier (temporary identifier) ​​to the storage function network element, and the storage function network element receives the first identifier (temporary identifier) ​​from the network element selection function device.

[0295] For example, the network element selection function device may be the network element selection function device of the second area in case 1 of the communication method 400, and the storage function network element may be the storage function network element of the second area in case 1 of the communication method 400.

[0296] S604: The storage function network element sends a second identifier to the network element selection function device, and the network element selection function device receives the second identifier from the storage function network element.

[0297] For example, the second identifier may be the second identifier of the terminal device in the communication method 400 , that is, the second identifier is a permanent identifier of the terminal device.

[0298] Here, if the first identifier included in S602 is a temporary identifier, S603 and S604 may exist; if the first identifier included in S602 is a permanent identifier, S603 and S604 may not exist, and S605 may be directly executed.

[0299] S605 , the network element selection function device sends a permanent identifier to the UDM, and the UDM receives the permanent identifier from the network element selection function device.

[0300] For example, the UDM may be the UDM of the first area in case one of the communication method 400 .

[0301] Optionally, after S605 , the UDM determines the subscription data of the UE corresponding to the permanent identifier according to the received permanent identifier.

[0302] S606 , the UDM sends the subscription data to the network element selection function device, and the network element selection function device receives the subscription data from the UDM.

[0303] For example, the contract data may be the contract data of the terminal device in the communication method 400, and S605 to S606 may be the process in which the network element selection function device of the second area in case 1 of S410 of the communication method 400 obtains the contract data corresponding to the permanent identifier of the terminal device from the UDM of the second area according to the permanent identifier.

[0304] S607 , the network element selection function device determines the address of SMF1 according to the subscription data and NSSAI1.

[0305] Optionally, when the network element discovery request message in S602 also includes a DNN, the network element selection function device may further determine the address of SMF1 based on the DNN, NSSAI1, and the subscription data. Optionally, when the network element discovery request message in S602 also includes a PDU session identifier, the network element selection function device may further determine the address of SMF1 based on the PDU session identifier, NSSAI1, and the subscription data. Optionally, when the network element discovery request message in S602 also includes a DNN and a PDU session identifier, the network element selection function device may further determine the address of SMF1 based on the PDU session identifier, DNN, NSSAI1, and the subscription data.

[0306] For example, S607 may be method 1 in case 1 of S410 of the communication method 400 .

[0307] S608: The network element selection function device determines the address of SMF2 according to the subscription data and NSSAI2.

[0308] Optionally, when the network element discovery request message in S602 also includes a DNN, the network element selection function device may further determine the address of SMF2 based on the DNN, NSSAI2, and subscription data. Optionally, when the network element discovery request message in S602 also includes a PDU session identifier, the network element selection function device may further determine the address of SMF2 based on the PDU session identifier, NSSAI2, and subscription data. Optionally, when the network element discovery request message in S602 also includes a DNN and a PDU session identifier, the network element selection function device may further determine the address of SMF2 based on the PDU session identifier, DNN, NSSAI2, and subscription data.

[0309] For example, S607 may be a process in which the network element selection function device in the second area in case 1 of the communication method 400 acquires the address of the second core network element in the second area.

[0310] There is no requirement for the order of executing S607 and S608 , that is, S608 may be executed first and then S607 , or S607 and S608 may be executed simultaneously.

[0311] S609: The network element selection function device sends a response message to the network element discovery request message to the RAN, and the RAN receives the response message from the network element selection function device. The response message to the network element discovery request message includes: the address of SMF2 and first information, and the first information is used to indicate the address of SMF1.

[0312] For example, the first information may be the first information in method 1 of case 1 in S420 of the communication method 400 .

[0313] Optionally, after S609, the RAN may store the address of SMF2. In this way, when the UE initiates a PDU session establishment request message again, it can directly obtain the address of SMF2 from the RAN without the network element selection function device re-determining the address of SMF2, thereby saving signaling overhead.

[0314] S610: RAN sends first information to SMF2 according to the address of SMF2, and SMF2 receives the first information from RAN.

[0315] Optionally, the RAN may also send the PDU session establishment request message in S601 to the SMF2 according to the address of the SMF2.

[0316] For example, S609 to S610 may be method 1 in case 1 of S420 of the communication method 400 .

[0317] S611, SMF2 determines the address of SMF1 according to the first information.

[0318] For example, S611 may be method 1 in case 1 of S430 of the communication method 400 .

[0319] S612, SMF2 sends a connection establishment request message to SMF1 according to the address of SMF1, and SMF1 receives the connection establishment request message from SMF2.

[0320] The connection establishment request message is used to establish a connection between SMF1 and SMF2.

[0321] Optionally, if in S610 RAN sends the first information to SMF2 according to the address of SMF2, it also sends a PDU session establishment request message for establishing a PDU session for the UE.

[0322] S613, SMF1 sends a connection establishment response to SMF2, and SMF2 receives the connection establishment response from SMF1.

[0323] Optionally, the connection establishment response may be a response for indicating that the connection between SMF1 and SMF2 is successfully established.

[0324] S614: Establish a PDU session.

[0325] Optionally, if the connection establishment request message in S612 is a PDU session establishment request message, SMF1 and SMF2 may establish a PDU session based on the parameters included in the PDU session establishment request message. Other core network elements may participate in the PDU session establishment process. For example, other core network elements may include UPFs in the roaming area and the home area. The specific process of establishing a PDU session can be found in the prior art and will not be further described here.

[0326] The above is how the network element selection function device in the roaming area determines the address of SMF1 based on NSSAI1 and subscription data, and determines the address of SMF2 based on NSSAI2 and subscription data in method 600 of Figure 6. The network element selection function device in the roaming area sends first information to SMF2 based on the address of SMF2, where the first information indicates the address of SMF1. SMF2 determines the address of SMF1 based on the received first information, and SMF2 sends a connection establishment request message to SMF1 based on the address of SMF1 to establish a connection between SMF2 and SMF1. The RAN in the roaming area does not parse the first information; instead, SMF2 parses the first information and obtains the address of SMF1. This prevents the RAN in the roaming area from obtaining the address of SMF1, thereby improving the security of the SMF1 address.

[0327] It can be understood that the network element selection function device in the roaming area in method 600 may not determine the address of SMF2, that is, S608 is an optional step, that is, the address of SMF2 may be stored in the RAN of the roaming area, or the RAN of the roaming area may obtain the address of SMF2 from other core network elements in the roaming area. The embodiment of the present application is not limited to this.

[0328] FIG7 describes an example using the first area as the home area, the second area as the roaming area, the first core network element in the first area as PCF1, the second core network element in the second area as PCF2, the terminal device as UE, the access network device as RAN, and the unified data management function element as UDM. The functions of the UE, RAN, network element selection function device, storage function network element, PCF2 in the roaming area, and PCF1 and UDM in the home area in FIG7 can refer to the description of communication method 400. As shown in FIG7, method 700 includes the following steps:

[0329] S701: UE sends a policy establishment request message to RAN, and RAN receives the policy establishment request message from UE, wherein the policy establishment request message includes a first identifier, NSSAI1 and NSSAI2.

[0330] Optionally, NSSAI1 may be obtained by mapping the allowed NSSAI of the roaming area, and NSSAI2 may be the allowed NSSAI of the roaming area.

[0331] It should be noted that S701 is an optional step.

[0332] For example, the UE may be a terminal device in the communication method 400, the RAN may be an access network device in the communication method 400, and the first identifier may be the first identifier of the terminal device in the communication method 400. NSSAI1 may be first slice information of a first area when the first core network element is a PCF in case 1 of the communication method 400, and NSSAI2 may be second slice information of a second area when the first core network element is a PCF in case 1 of the communication method 400.

[0333] Optionally, before S701, method 700 may further include: the UE initiating a registration request process, wherein the registration request process is used to allow the UE to access the network in the roaming area. During the registration request process, the storage function network element in the roaming area in FIG7 may store the temporary identifier and the permanent identifier of the terminal device, as well as the corresponding relationship between the temporary identifier and the permanent identifier.

[0334] S702 to S706 are respectively the same as S602 to S606 in FIG6 , and are not described here to avoid redundancy.

[0335] S707 , the network element selection function device determines the address of PCF1 according to the subscription data and NSSAI1.

[0336] For example, S707 may be method 1 in case 1 of S410 of the communication method 400 .

[0337] S708 , the network element selection function device determines the address of PCF2 according to the subscription data and NSSAI2.

[0338] For example, S708 may be a process in which the network element selection function device in the second area in case 1 of the communication method 400 acquires the address of the second core network element in the second area.

[0339] There is no requirement for the order of executing S707 and S708 , that is, S708 may be executed first and then S707 , or S707 and S708 may be executed simultaneously.

[0340] S709: The network element selection function device sends a response message to the network element discovery request message to the RAN, and the RAN receives the response message from the network element selection function device. The response message to the network element discovery request message includes: the address of PCF2 and first information, and the first information is used to indicate the address of PCF1.

[0341] For example, the first information may be the first information in method 1 of case 1 in S420 of the communication method 400 .

[0342] S710: RAN sends first information to PCF2 according to the address of PCF2, and PCF2 receives the first information from RAN.

[0343] Optionally, the RAN may also send a policy establishment request message to the PCF2 according to the address of the PCF2.

[0344] For example, S710 may be method 1 in case 1 of S420 of the communication method 400 .

[0345] S711, PCF2 determines the address of PCF1 according to the first information.

[0346] For example, S711 may be method 1 in case 1 of S430 of the communication method 400 .

[0347] S712: PCF2 sends a connection establishment request message to PCF1 according to the address of PCF1, and PCF1 receives the connection establishment request message from PCF2. The connection establishment request message is used to establish a connection between PCF1 and PCF2.

[0348] Optionally, if the RAN sends the first information to PCF2 according to the address of PCF2 in S710, it also sends a policy establishment request message for establishing a policy connection for the UE so that the UE can obtain the UE policy from PCF1 and / or PCF2.

[0349] Optionally, after S712 , PCF1 may generate a policy for the UE according to the connection establishment request message.

[0350] S713 , PCF1 sends a connection establishment response to PCF2 , and PCF2 receives the connection establishment response from PCF1 .

[0351] Optionally, the connection establishment response may include: UE policy.

[0352] In method 700 of Figure 7 , the NE selection function device in the roaming area determines the address of PCF1 based on NSSAI1 and subscription data, and determines the address of PCF2 based on NSSAI2 and subscription data. The NE selection function device in the roaming area sends first information to PCF2 based on PCF2's address, the first information indicating the address of PCF1. PCF2 determines the address of PCF1 based on the received first information, and PCF2 sends a connection establishment request message to PCF1 based on PCF1's address to establish a connection between PCF2 and PCF1. The RAN in the roaming area does not parse the first information; instead, PCF2 parses the first information and obtains PCF1's address. This prevents the RAN in the roaming area from obtaining PCF1's address, thereby improving the security of PCF1's address.

[0353] It can be understood that the network element selection function device in the roaming area in method 700 may not determine the address of PCF2, that is, S708 is an optional step, that is, the address of PCF2 may be stored in the RAN of the roaming area, or the RAN of the roaming area may obtain the address of PCF2 from other core network elements in the roaming area. The embodiment of the present application is not limited to this.

[0354] In order to better understand the second approach in the first case of S420 and the second approach in the first case of S430 of the communication method 400 , a detailed implementation process is described below in conjunction with FIG. 8 and FIG. 9 .

[0355] FIG8 describes the process by taking the first area as the home area, the second area as the roaming area, the first core network element in the first area as SMF1, the second core network element in the second area as SMF2, the terminal device as UE, the access network device as RAN, and the unified data management function element as UDM as an example. The functions of the UE, RAN, network element selection function device, storage function network element, SMF2 in the roaming area, and the SMF1 and UDM in the home area in FIG8 can refer to the description of the communication method 400. As shown in FIG8, the method 800 includes the following steps:

[0356] S801 to S808 are respectively the same as S601 to S608 in FIG6 , and are not described here to avoid redundancy.

[0357] S809: The network element selection function device sends a response message to the network element discovery request message to the RAN, and the RAN receives the response message from the network element selection function device. The response message to the network element discovery request message includes: the address of SMF2 and first information, and the first information is used to instruct SMF2 to obtain the address of SMF1.

[0358] For example, the first information may be the first information in the second method of case 1 in S420 of the communication method 400 .

[0359] Optionally, after S809, the RAN may store the address of SMF2. In this way, when the UE initiates a PDU session establishment request message again, it can directly obtain the address of SMF2 from the RAN without the network element selection function device re-determining the address of SMF2, thereby saving signaling overhead.

[0360] S810: RAN sends first information to SMF2 according to the address of SMF2, and SMF2 receives the first information from RAN.

[0361] Optionally, the RAN may also send the PDU session establishment request message in S601 to the SMF2 according to the address of the SMF2.

[0362] For example, 809 to S810 may be the second method in the first case of S420 of the communication method 400 .

[0363] S811, SMF2 sends a second request message to the network element selection function device, and the network element selection function device receives the second request message from SMF2. The second request message includes the first identifier.

[0364] For example, the second request message may be the second request message in the second manner of case 1 in S430 of the communication method 400 .

[0365] S812: The network element selection function device sends a response message to the second request message to SMF2, and SMF2 receives the response message to the second request message from the network element selection function device, wherein the response message to the second request message includes: the address of SMF1.

[0366] For example, S811 and S812 may be the second method in the first case of S430 of the communication method 400 .

[0367] S813 to S815 are respectively the same as S612 to S614 in FIG6 , and are not described here to avoid redundancy.

[0368] The above describes method 800 in FIG8 . The NE selection function device in the roaming area determines the address of SMF1 based on NSSAI1 and subscription data, and determines the address of SMF2 based on NSSAI2 and subscription data. The NE selection function device in the roaming area sends first information to SMF2 based on the address of SMF2. The first information instructs SMF2 to obtain the address of SMF1. SMF2 obtains the address of SMF1 from the NE selection function device in the roaming area. SMF2 then sends a connection establishment request message to SMF1 based on the address of SMF1 to establish a connection between SMF2 and SMF1. The first information does not include the address of SMF1, so the RAN in the roaming area cannot directly obtain the address of SMF1 based on the received first information, thereby improving the security of the SMF1 address. Furthermore, there is no need to encapsulate the address of SMF1 determined by the NE selection function device in the roaming area in a containerized form, thereby simplifying the functionality of the NE selection function device in the roaming area. In other words, the RAN in the roaming area is only connected to the SMF2 in the roaming area, thus avoiding RAN logic complexity and potential security issues.

[0369] Figure 9 describes the first area as the home area, the second area as the roaming area, the first core network element in the first area as PCF1, the second core network element in the second area as PCF2, the terminal device as UE, the access network device as RAN, and the unified data management function element as UDM. The functions of the UE, RAN, network element selection function device, storage function network element, PCF2 in the roaming area, and PCF1 and UDM in the home area in Figure 9 can refer to the description of communication method 400. As shown in Figure 9, method 900 includes the following steps:

[0370] S901 to S908 are respectively the same as S701 to S708 in FIG7 , and are not described here to avoid redundancy.

[0371] S909: The network element selection function device sends a response message to the network element discovery request message to the RAN, and the RAN receives the response message from the network element selection function device. The response message to the network element discovery request message includes: the address of PCF2 and first information, and the first information is used to instruct PCF2 to obtain the address of PCF1.

[0372] For example, the first information may be the first information in the second method of case 1 in S420 of the communication method 400 .

[0373] S910: RAN sends first information to PCF2 according to the address of PCF2, and PCF2 receives the first information from RAN.

[0374] Optionally, the RAN may also send a policy establishment request message to the PCF2 according to the address of the PCF2.

[0375] For example, S909 to S910 may be the second method in the first case of S420 of the communication method 400 .

[0376] S911, PCF2 sends a second request message to the network element selection function device, and the network element selection function device receives the second request message from PCF2. The second request message includes the first identifier.

[0377] For example, the second request message may be the second request message in the second manner of case 1 in S430 of the communication method 400 .

[0378] S912, the network element selection function device sends a response message to the second request message to PCF2, and PCF2 receives the response message to the second request message from the network element selection function device, wherein the response message to the second request message includes: the address of PCF1.

[0379] For example, S911 and S912 may be the second method in the first case of S430 of the communication method 400 .

[0380] S913 to S914 are respectively the same as S712 to S713 in FIG7 , and are not described here to avoid redundancy.

[0381] The above describes method 900 in FIG. 9 : The NE selection function device in the roaming area determines the address of PCF1 based on NSSAI1 and subscription data, and determines the address of PCF2 based on NSSAI2 and subscription data. The NE selection function device in the roaming area sends first information to PCF2 based on PCF2's address. The first information instructs PCF2 to obtain the address of PCF1. PCF2 obtains the address of PCF1 from the NE selection function device in the roaming area. PCF2 then sends a connection establishment request message to PCF1 based on PCF1's address to establish a connection between PCF2 and PCF1. The first information does not include PCF1's address, so the RAN in the roaming area cannot obtain PCF1's address based on the received first information, thereby improving the security of PCF1's address. Furthermore, there is no need to encapsulate the PCF1 address determined by the NE selection function device in the roaming area in a containerized form, which simplifies the functionality of the NE selection function device in the roaming area. In other words, the RAN in the roaming area is only connected to the PCF2 in the roaming area, thereby avoiding RAN logic complexity and potential security issues.

[0382] In order to better understand the third approach in the first case of S420 and the third approach in the first case of S430 of the communication method 400 , a detailed implementation process is described below in conjunction with FIG. 10 and FIG. 11 .

[0383] FIG10 describes an example using the first area as the home area, the second area as the roaming area, the first core network element in the first area as SMF1, the second core network element in the second area as SMF2, the terminal device as UE, the access network device as RAN, and the unified data management function element as UDM. The functions of the UE, RAN, network element selection function device, storage function network element, SMF2 in the roaming area, and the SMF1 and UDM in the home area in FIG10 can refer to the description of the communication method 400. As shown in FIG10, the method 1000 includes the following steps:

[0384] S1001 to S1008 are respectively the same as S601 to S608 in FIG6 , and are not described here to avoid redundancy.

[0385] S1009: The network element selection function device sends first information to the storage function network element, and the storage function network element receives the first information from the network element selection function device, wherein the first information includes the address of SMF1.

[0386] For example, the first information is the first information in the third method of case 1 in S420 of the communication method 400 , and S1009 may be the third method of case 1 in S420 of the communication method 400 .

[0387] S1010: The network element selection function device sends a response message to the network element discovery request message to the RAN, and the RAN receives the response message from the network element selection function device, wherein the response message includes the address of the SMF2.

[0388] Optionally, after S1010, the RAN may store the address of SMF2. In this way, when the UE initiates a PDU session establishment request message again, it can directly obtain the address of SMF2 from the RAN without the network element selection function device re-determining the address of SMF2, thereby saving signaling overhead.

[0389] There is no limitation on the execution order of S1009 and S1010 , that is, S1010 can be executed after S1009 or before S1009 .

[0390] S1011, RAN sends a PDU session establishment request message to SMF2 according to the address of SMF2, and SMF2 receives the PDU session establishment request message from RAN.

[0391] S1012: SMF2 sends a third request message to the storage function network element, and the storage function network element receives the third request message from SMF2. The third request message includes the first identifier of the terminal device.

[0392] Here, the third request message is used to request to obtain the address of SMF1.

[0393] For example, the third request message may be the third request message in the third manner of case 1 in S430 of the communication method 400 .

[0394] S1013: The storage function network element sends a response message to the third request message to SMF2, and SMF2 receives the response message to the third request message from the storage function network element, wherein the response message to the third request message includes the address of SMF1 corresponding to the first identifier.

[0395] For example, S1012 to S1013 may be the method three in the case one of S430 of the communication method 400 .

[0396] S1014 to S1016 are respectively the same as S612 to S614 in FIG6 , and are not described here to avoid redundancy.

[0397] The above describes method 1000 in FIG. 10 . The NE selection function device in the roaming area determines the address of SMF1 based on NSSAI1 and subscription data, and determines the address of SMF2 based on NSSAI2 and subscription data. The NE selection function device in the roaming area sends first information to the storage function NE in the roaming area, the first information including the address of SMF1. SMF2 obtains the address of SMF1 from the storage function NE in the roaming area. Based on the address of SMF1, SMF2 sends a connection establishment request message to SMF1 to establish a connection between SMF2 and SMF1. This prevents the RAN in the roaming area from obtaining the address of SMF1, thereby improving the security of the SMF1 address. Furthermore, there is no need to encapsulate the SMF1 address determined by the NE selection function device in a containerized form, simplifying the functionality of the NE selection function device in the roaming area. In other words, the RAN in the roaming area is connected only to SMF2 in the roaming area, reducing RAN logic complexity and potential security issues.

[0398] Figure 11 describes the first area as the home area, the second area as the roaming area, the first core network element in the first area as PCF1, the second core network element in the second area as PCF2, the terminal device as UE, the access network device as RAN, and the unified data management function element as UDM. The functions of the UE, RAN, network element selection function device, storage function network element, PCF2 in the roaming area, and PCF1 and UDM in the home area in Figure 11 can refer to the description of communication method 400. As shown in Figure 11, method 1100 includes the following steps:

[0399] S1101 to S1108 are respectively the same as S701 to S708 in FIG7 , and are not described here to avoid redundancy.

[0400] S1109: The network element selection function device sends first information to the storage function network element, and the storage function network element receives the first information from the network element selection function device, wherein the first information includes the address of PCF1.

[0401] For example, the first information is the first information in the third method of case 1 in S420 of the communication method 400 , and S1109 may be the third method of case 1 in S420 of the communication method 400 .

[0402] S1110, the network element selection function device sends a response message to the network element discovery request message to the RAN, and the RAN receives the response message from the network element selection function device. The response message to the network element discovery request message includes: the address of PCF2.

[0403] There is no limitation on the execution order of S1109 and S1110 , that is, S1110 can be executed after S1109 or before S1109 .

[0404] S1111 , RAN sends a policy establishment request message to PCF2 according to the address of PCF2 , and PCF2 receives the policy establishment request message from RAN.

[0405] S1112: PCF2 sends a third request message to the storage function network element, and the storage function network element receives the third request message from PCF2, wherein the third request message includes the first identifier of the terminal device.

[0406] Here, the third request message is used to request to obtain the address of PCF1.

[0407] For example, the third request message may be the third request message in the third manner of case 1 in S430 of the communication method 400 .

[0408] S1113: The storage function network element sends a response message to the third request message to PCF2, and PCF2 receives the response message to the third request message from the storage function network element, wherein the response message to the third request message includes the address of PCF1 corresponding to the first identifier.

[0409] For example, S1112 to S1113 may be the method three in the case one of S430 of the communication method 400 .

[0410] S1114 to S1115 are respectively the same as S712 to S713 in FIG7 , and are not described here to avoid redundancy.

[0411] The above describes method 1100 in FIG. 11 : The NE selection function device in the roaming area determines the address of PCF1 based on NSSAI1 and subscription data, and determines the address of PCF2 based on NSSAI2 and subscription data. The NE selection function device in the roaming area sends first information including the address of PCF1 to the storage function NE in the roaming area. PCF2 obtains the address of PCF1 from the storage function NE in the roaming area. Based on the address of PCF1, PCF2 sends a connection establishment request message to PCF1 to establish a connection between PCF2 and PCF1. This prevents the RAN in the roaming area from obtaining the address of PCF1, thereby improving the security of the PCF1 address. Furthermore, there is no need to encapsulate the PCF1 address determined by the NE selection function device in the roaming area in a containerized form, simplifying the functionality of the NE selection function device in the roaming area.

[0412] In order to better understand the fourth and fifth methods in the first scenario of S430 of the communication method 400 , a detailed implementation process is described below in conjunction with FIG. 12 and FIG. 13 .

[0413] FIG12 describes an example using the first area as the home area, the second area as the roaming area, the first core network element in the first area as SMF1, the second core network element in the second area as SMF2, the terminal device as UE, the access network device as RAN, and the unified data management function element as UDM. The functions of the UE, RAN, network element selection function device, storage function network element, SMF2 in the roaming area, and the SMF1 and UDM in the home area in FIG12 can refer to the description of the communication method 400. As shown in FIG12, the method 1200 includes the following steps:

[0414] S1201 to S1206 are respectively the same as S601 to S606 in FIG6 , and S1207 is the same as S608 in FIG6 . S1207 is an optional step and will not be described here to avoid redundancy.

[0415] S1208: The network element selection function device sends a response message to the network element discovery request message to the RAN, and the RAN receives the response message from the network element selection function device. The response message includes the address of the SMF2.

[0416] Optionally, after S1208, the RAN may store the address of SMF2. In this way, when the UE initiates a PDU session establishment request message again, it can directly obtain the address of SMF2 from the RAN without the network element selection function device re-determining the address of SMF2, thereby saving signaling overhead.

[0417] S1209: RAN sends a PDU session establishment request message to SMF2 according to the address of SMF2, and SMF2 receives the PDU session establishment request message from RAN.

[0418] S1210, SMF2 sends a permanent identifier to UDM, and UDM receives the permanent identifier from SMF2.

[0419] Here, if the first identifier included in S1201 is a temporary identifier, before S1210, SMF2 can obtain a permanent identifier from the storage function network element based on the first identifier.

[0420] S1211, UDM sends the contract data to SMF2, and SMF2 receives the contract data from UDM.

[0421] S1212, SMF2 determines the address of SMF1 based on the contract data and NSSAI1.

[0422] For example, S1210 to S1212 may be the fourth method in the first case of S430 of the communication method 400 .

[0423] Here, S1212 may also be: SMF2 receives the address of SMF1 determined by the network element selection function device according to the contract data from the network element selection function device. At this time, S1210 to S1212 are method five in case one of S430 of the communication method 400.

[0424] S1213 to S1215 are respectively the same as S612 to S614 in FIG6 , and are not described here to avoid redundancy.

[0425] The above is the method 1200 in Figure 12 , in which the network element selection function device in the roaming area determines the address of SMF2 based on NSSAI2 and subscription data. The RAN in the roaming area sends a PDU session establishment request message to SMF2 based on the address of SMF2. SMF2 obtains the subscription data from the UDM in the home area based on the first identifier in the PDU session establishment request message, and determines the address of SMF1 based on the obtained subscription data and NSSAI1. SMF2 sends a connection establishment request message to SMF1 based on the address of SMF1 to establish a connection between SMF2 and SMF1. In this way, SMF2 can determine the address of SMF1 and establish a connection with SMF1, thereby enabling the network operator in the home area to obtain the communication data of the terminal device, thereby improving the interests of the network operator.

[0426] Figure 13 describes the first area as the home area, the second area as the roaming area, the first core network element in the first area as PCF1, the second core network element in the second area as PCF2, the terminal device as UE, the access network device as RAN, and the unified data management function element as UDM. The functions of the UE, RAN, network element selection function device, storage function network element, PCF2 in the roaming area, and PCF1 and UDM in the home area in Figure 13 can refer to the description of communication method 400. As shown in Figure 13, method 1300 includes the following steps:

[0427] S1301 to S1306 are respectively the same as S701 to S706 in FIG7 , and S1307 is the same as S708 in FIG7 . S1307 is an optional step and will not be described here to avoid redundancy.

[0428] S1308, the network element selection function device sends a response message to the network element discovery request message to the RAN, and the RAN receives the response message from the network element selection function device, wherein the response message includes: the address of PCF2.

[0429] S1309: RAN sends a policy establishment request message to PCF2 according to the address of PCF2, and PCF2 receives the policy establishment request message from RAN.

[0430] S1310, PCF2 sends a permanent identifier to UDM, and UDM receives the permanent identifier from PCF2.

[0431] Here, if the first identifier included in S1301 is a temporary identifier, then before S1310, PCF2 can obtain a permanent identifier from the storage function network element according to the first identifier.

[0432] S1311, UDM sends the contract data to PCF2, and PCF2 receives the contract data from UDM.

[0433] S1312, PCF2 determines the address of PCF1 based on the subscription data and NSSAI1.

[0434] For example, S1310 to S1312 may be the fourth method in the first case of S430 of the communication method 400 .

[0435] Here, S1312 may also be: PCF2 receives the address of PCF1 determined by the network element selection function device according to the contract data from the network element selection function device. In this case, S1310 to S1312 are mode five in case one of S430 of the communication method 400 .

[0436] S1313 to S1314 are respectively the same as S712 to S713 in FIG7 , and are not described here to avoid redundancy.

[0437] The above is how method 1300 in Figure 13 describes how the network element selection function device in the roaming area determines the address of PCF2 based on NSSAI2 and subscription data. The RAN in the roaming area sends a policy establishment request message to PCF2 based on PCF2's address. PCF2 obtains subscription data from the UDM in the home area based on the first identifier in the policy establishment request message, and determines the address of PCF1 based on the obtained subscription data and NSSAI1. PCF2 then sends a connection establishment request message to PCF1 based on PCF1's address to establish a connection between PCF2 and PCF1. In this way, PCF2 can determine PCF1's address and establish a connection with PCF1, enabling the network operator in the home area to obtain communication data of the terminal device, thereby improving the network operator's interests.

[0438] It can be understood that the embodiments in Figures 6 to 13 above can be implemented separately or in combination. For example, the embodiment in Figure 8 can be combined with the embodiment in Figure 10 (or the embodiment in Figure 9 can be combined with the embodiment in Figure 11), so that the second core network element in the second area can interact with the storage function network element in the second area after receiving the indication information, and obtain the address of the first core network element in the first area from the storage function network element in the second area. The indication information has the same meaning as the first information in the embodiment of Figure 8, so that the second core network element in the second area can determine whether to obtain the address of the first core network element in the first area according to the needs of the terminal device. There are many ways to combine different embodiments, which are not listed here one by one.

[0439] It should be noted that not all steps shown in the flowcharts of Figures 6 to 13 are required steps. Some steps may be deleted based on actual needs, or other possible steps may be added based on actual needs. Figures 6 to 13 mainly describe the differences between different embodiments. Except for the differences, Figures 6 to 13 can refer to each other. In addition, different implementations or different examples in the same embodiment can also refer to each other.

[0440] Figure 14 shows a communication device 1400 provided in an embodiment of the present application. The communication device 1400 includes a processor 1410 and a transceiver 1420. The processor 1410 and the transceiver 1420 communicate with each other via an internal connection path. The processor 1410 is configured to execute instructions to control the transceiver 1420 to send and / or receive signals.

[0441] Optionally, the communication device 1400 may further include a memory 1430, which communicates with the processor 1410 and the transceiver 1420 via an internal connection path. The memory 1430 is used to store instructions, and the processor 1410 can execute the instructions stored in the memory 1430. In one possible implementation, the communication device 1400 is used to implement the various processes and steps corresponding to the network element selection function device of the second area in the above-mentioned method embodiment. In another possible implementation, the communication device 1400 is used to implement the various processes and steps corresponding to the SMF of the second area in the above-mentioned method embodiment. In yet another possible implementation, the communication device 1400 is used to implement the various processes and steps corresponding to the PCF of the second area in the above-mentioned method embodiment.

[0442] It should be understood that the communication device 1400 can be specifically the network element selection function device, SMF, or PCF in the above-mentioned embodiments, or it can be a chip or chip system. Correspondingly, the transceiver 1420 can be the transceiver circuit of the chip, which is not limited here. Specifically, the communication device 1400 can be used to execute the various steps and / or processes corresponding to the network element selection function device, SMF, or PCF in the above-mentioned method embodiments. Optionally, the memory 1430 can include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory can also include non-volatile random access memory. For example, the memory can also store device type information. The processor 1410 can be used to execute instructions stored in the memory, and when the processor 1410 executes the instructions stored in the memory, the processor 1410 is used to execute the various steps and / or processes of the above-mentioned method embodiments corresponding to the network element selection function device, SMF, or PCF.

[0443] During implementation, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it will not be described in detail here.

[0444] It should be noted that the processor in the embodiments of the present application can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiment can be completed by an integrated logic circuit of the hardware in the processor or by instructions in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0445] It is understood that the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0446] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: computer program code, when the computer program code runs on a computer, enables the computer to execute the various steps or processes performed by the network element selection function device or SMF or PCF in the above method embodiment.

[0447] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable storage medium, which stores program code. When the program code runs on a computer, the computer executes the various steps or processes performed by the network element selection function device or SMF or PCF in the above method embodiment.

[0448] According to the method provided in the embodiment of the present application, the present application also provides a communication system, which includes one or more of the following network elements: the aforementioned network element selection function device, the aforementioned SMF, and the aforementioned PCF.

[0449] The above-mentioned various apparatus embodiments correspond completely to the method embodiments, and the corresponding modules or units perform the corresponding steps. For example, the communication unit (transceiver) performs the receiving or sending steps in the method embodiments, and other steps except sending and receiving can be performed by the processing unit (processor). The functions of the specific units can be based on the corresponding method embodiments. There can be one or more processors.

[0450] In this application, "indication" may include direct indication and indirect indication, and may also include explicit indication and implicit indication. The information indicated by a certain information is called information to be indicated. In the specific implementation process, there may be many ways to indicate the information to be indicated, such as but not limited to, directly indicating the information to be indicated, such as indicating the information to be indicated itself or the index of the information to be indicated. The information to be indicated may also be indirectly indicated by indicating other information, wherein the other information is associated with the information to be indicated. It is also possible to indicate only a part of the information to be indicated, while the other parts of the information to be indicated are known or agreed in advance. For example, the indication of specific information may be achieved by means of the arrangement order of each information agreed in advance (such as specified in the protocol), thereby reducing the indication overhead to a certain extent.

[0451] In the embodiments of this application, each term and English abbreviation is provided for convenience of description and shall not constitute any limitation to this application. This application does not exclude the possibility of defining other terms that can achieve the same or similar functions in existing or future agreements.

[0452] Those skilled in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented using electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0453] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can be based on the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0454] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0455] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0456] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0457] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When the computer program instructions (programs) are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0458] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0459] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A communication method, characterized in that: The communication method is applied to a network element selection function device, and the communication method includes: Acquire an address of a first core network element in the first area, wherein the network element selection function device is located in the second area; Sending first information, where the first information is used for a second core network element in the second area to obtain an address of a first core network element in the first area, and the second core network element in the second area is used to transmit signaling of a terminal device according to the address of the first core network element in the first area, wherein the first core network element in the first area includes a policy control function network element in the first area, and the second core network element in the second area includes a policy control function network element in the second area; or, the first core network element in the first area includes a session management function network element in the first area, and the second core network element in the second area includes a session management function network element in the second area; The first area is the home area of ​​the terminal device, and the second area is the roaming area of ​​the terminal device; or the first area is the roaming area of ​​the terminal device, and the second area is the home area of ​​the terminal device.

2. The communication method according to claim 1, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the sending of the first information includes: The first information is sent to the second core network element in the second area through the access network device in the second area, where the first information is used to indicate the address of the first core network element in the first area.

3. The communication method according to claim 1, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the sending of the first information includes: The first information is sent to the second core network element in the second area through the access network device in the second area, and the first information is used to instruct the second core network element in the second area to obtain the address of the first core network element in the first area.

4. The communication method according to claim 1, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the sending of the first information includes: The first information is sent to the storage function network element of the second area, wherein the first information includes the address of the first core network element of the first area, and the second core network element of the second area is used to obtain the address of the first core network element of the first area from the storage function network element of the second area.

5. The communication method according to any one of claims 1 to 4, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the communication method further includes: Obtaining an address of a second core network element of the second area; Send second information to the access network device of the second area, where the second information is used to indicate the address of the second core network network element.

6. The communication method according to claim 5, characterized in that: Before acquiring the address of the first core network element in the first area, the communication method further includes: Acquire a first identifier of the terminal device, first slice information of the first area, and second slice information of the second area; Acquire the subscription data of the terminal device from the unified data management function network element of the first area according to the first identifier of the terminal device; The acquiring the address of the first core network element in the first area includes: Determine an address of a first core network element of the first area according to the first slice information of the first area and the subscription data; The acquiring the address of the second core network element of the second area includes: Determine the address of the second core network network element of the second area according to the second slice information of the second area and the subscription data.

7. The communication method according to claim 6, characterized in that: The acquiring, according to the first identifier of the terminal device, the subscription data of the terminal device from the unified data management function network element of the first area includes: Acquire a second identifier of the terminal device corresponding to the first identifier from a storage function network element in the second area, the storage function network element being used to store a correspondence between the first identifier and the second identifier, the first identifier being a temporary identifier of the terminal device, and the second identifier being a permanent identifier of the terminal device; Sending the second identifier to a unified data management function network element in the first area; Receive the subscription data of the terminal device corresponding to the second identifier from the unified data management function network element of the first area.

8. The communication method according to claim 7, characterized in that: The sending the second identifier to the unified data management function network element of the first area includes: Sending the second identifier to the unified data management function network element of the first area through the network element selection function device of the first area; The receiving, from the unified data management function network element of the first area, the subscription data of the terminal device corresponding to the second identifier includes: The subscription data of the terminal device corresponding to the second identifier is received from the unified data management function network element of the first area through the network element selection function device of the first area.

9. The communication method according to any one of claims 1 to 5, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the acquiring an address of a first core network element of the first area includes: Receiving, through the access network device of the second area, the first slice information of the first area and the first identifier of the terminal device sent by the terminal device; Sending first slice information of the first area and a second identifier of the terminal device to a network element selection function device of the first area, where the second identifier corresponds to the first identifier, the second identifier is a permanent identifier of the terminal device, and the first identifier is a temporary identifier of the terminal device; The address of the first core network network element of the first area determined by the network element selection function device of the first area according to the first slice information of the first area and the second identifier is received from the network element selection function device of the first area.

10. A communication method, characterized in that: The communication method is applied to a second core network element in a second area, and the communication method includes: Acquire an address of a first core network network element in a first area, wherein the first core network network element in the first area includes a policy control function network element in the first area, and the second core network network element in the second area includes a policy control function network element in the second area; or, the first core network network element in the first area includes a session management function network element in the first area, and the second core network network element in the second area includes a session management function network element in the second area; Transmitting signaling of a terminal device according to the address of the first core network network element; The first area is the roaming area of ​​the terminal device, and the second area is the home area of ​​the terminal device; or the first area is the home area of ​​the terminal device, and the second area is the roaming area of ​​the terminal device.

11. The communication method according to claim 10, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the acquiring an address of a first core network element of the first area includes: receiving first information sent by a network element selection function of a second area through an access network device of the second area, where the first information is used to indicate an address of a first core network network element of the first area; Determine an address of a first core network element in the first area based on the first information.

12. The communication method according to claim 10, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the acquiring an address of a first core network element of the first area includes: receiving first information sent by an access network device in the second area, where the first information is used to instruct a second core network element in the second area to obtain an address of a first core network element in the first area; The address of the first core network element of the first area is obtained from the network element selection function device of the second area.

13. The communication method according to claim 10, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the acquiring an address of a first core network element of the first area includes: The address of the first core network element in the first area is obtained from the storage function network element in the second area.

14. The communication method according to claim 10, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the acquiring an address of a first core network element of the first area includes: Receiving, through the access network device of the second area, a first request message sent by the terminal device, where the first request message includes first slice information of the first area and a first identifier of the terminal device; Acquire the subscription data of the terminal device from the unified data management function network element of the first area according to the first identifier of the terminal device; Determine the address of the first core network network element of the first area according to the first slice information of the first area and the subscription data.

15. The communication method according to claim 14, characterized in that: The acquiring, according to the first identifier of the terminal device, the subscription data of the terminal device from the unified data management function network element of the first area includes: Acquire a second identifier of the terminal device corresponding to the first identifier from a storage function network element in the second area, the storage function network element being used to store a correspondence between the first identifier and the second identifier, the first identifier being a temporary identifier of the terminal device, and the second identifier being a permanent identifier of the terminal device; Sending the second identifier to a unified data management function network element in the first area; Receive the subscription data of the terminal device corresponding to the second identifier from the unified data management function network element of the first area.

16. The communication method according to claim 10, characterized in that: The first area is a home area of ​​the terminal device, the second area is a roaming area of ​​the terminal device, and the acquiring an address of a first core network element of the first area includes: Acquire a second identifier from a storage function network element in the second area, where the second identifier is a permanent identifier of the terminal device; Sending the second identifier to a unified data management function network element in the first area; receiving, from a unified data management function network element in the first area, subscription data of the terminal device corresponding to the second identifier; Sending the subscription data to a network element selection function device in the second area; An address of a first core network element of the first area determined by the network element selection function device of the second area according to the subscription data is received from the network element selection function device of the second area.

17. A communication device, characterized in that: The communication device comprises a processor, the processor is coupled to a memory, and the processor is used to execute a computer program or instruction stored in the memory, so that the communication device implements the communication method according to any one of claims 1 to 9.

18. A communication device, characterized in that: The device comprises a processor, the processor is coupled to a memory, and the processor is used to execute a computer program or instruction stored in the memory, so that the communication device implements the communication method according to any one of claims 10 to 16.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the communication method according to any one of claims 1 to 9 is implemented.

20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the communication method according to any one of claims 10 to 16 is implemented.

Citation Information

Patent Citations

  • Communication method and communication device

    CN118828448A

  • Method and device for terminal attaching and creating home-routed PDU session in roaming environment supporting network slice

    CN109792598A

  • Method for capability negotiation and slice information mapping between network and terminal in 5g system

    CN110999343A

  • Roaming user session establishment method, roaming place AMF and roaming place NSSF

    CN113163390A

  • Service accessing method and apparatus, and system

    WO2022253137A1