COMMUNICATION METHOD AND COMMUNICATION DEVICE
The method addresses the challenge of selecting the shortest path to an application server in 5G networks by inserting a local session anchor based on specific conditions, enhancing network efficiency and reducing latency.
Patent Information
- Application Number
- JP2022559715
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-10-23
- Filing Date
- 2021-03-24
- Publication Date
- 2024-08-26
- Estimated Expiration
- 2041-03-24
AI Technical Summary
In 5G network architecture, there is no effective method to select an application server for a terminal device such that the path between the terminal device and the application server is the shortest, especially when the same application server may be deployed at central and local data centers.
A communication method and apparatus that triggers the insertion of a local session anchor by using specific conditions to select an application server near the terminal device's access point, involving the exchange of information between session management network elements and user plane network elements to optimize the path selection.
This approach effectively shortens the path between the terminal device and the application server by selecting the nearest server, improving network efficiency and reducing latency.
Smart Images

Figure 0007539995000005 
Figure 0007539995000011 
Figure 0007539995000004
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to Chinese Patent Application No. 202010246312.6, entitled “COMMUNICATION METHOD AND APPARATUS”, filed with the State Intellectual Property Office of the People's Republic of China on March 31, 2020, and claims priority to Chinese Patent Application No. 202011148899.3, entitled “COMMUNICATION METHOD AND APPARATUS”, filed with the State Intellectual Property Office of the People's Republic of China on October 23, 2020, which are hereby incorporated by reference in their entireties.
[0002] The present application relates to the field of communication technologies, and in particular to communication methods and devices. [Background technology]
[0003] Currently, there is only one user plane network element (UPF) in the R15 5th generation (5G) network architecture. Based on the network architecture, 5G further supports the insertion of multiple session anchor UPFs on the user plane path of a protocol data unit (PDU) session to support connection to a local data network (DN) so that the terminal device can access the nearest application in the local DN. For example, the multiple introduced UPFs may include an uplink classifier (ULCL) / branching point (BP) and at least one session anchor (PDU session anchor, PSA). The ULCL / BP distributes uplink data packets received from the terminal device to the corresponding PSA according to the distribution rule, and transmits data packets received from the at least one PSA to the terminal device. Some PSAs may be connected to DNs located in a central data center (DC), and some PSAs may be connected to DNs located in a local DC (i.e., mobile edge computing or multiaccess edge computing (MEC)). If a UPF connected to a local DN exists at the location of the terminal device, the SMF may use the UPF as a local PSA and insert the UPF into the PDU session path, so that the terminal device can access the nearest application server in the local DN.
[0004] However, the same application server may be deployed in the central DC and the local DC. There is no good implementation method for how to select an application server for a terminal device so that the path between the terminal device and the application server is the shortest. Summary of the Invention [Means for solving the problem]
[0005] The present application provides a communication method and a communication device for triggering the insertion of a local session anchor, in this way, an application server close to an access point of a terminal device is selected, thereby shortening the path between the terminal device and the application server.
[0006] According to a first aspect, the present application provides a communication method. The method may include a session management network element (SMF) sending first information to a first user plane network element, the first information instructing the first user plane network element to send a report message to the SMF when receiving a first domain name server (DNS) response message that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server. The SMF inserts a local session anchor based on the report message.
[0007] According to the above method, in the process of discovering an application server, the insertion of a local session anchor can be triggered by using a first condition, so that an application server close to an access point of a terminal device is selected, thereby shortening the path between the terminal device and the application server.
[0008] In a possible design, the first information may further include an address range of the data network to which the report message needs to be sent, and the first condition may be that the Internet Protocol IP address of the application server indicated by the first DNS response message belongs to the address range. Alternatively, the first information may further indicate information about an anycast address to which the report message needs to be sent, and the first condition may be that the address of the application server indicated by the first DNS response message is included in the information about the anycast address. In this way, the first UPF can accurately determine whether the first DNS response message satisfies the first condition, and then send the report message to the SMF if the first DNS response message satisfies the first condition.
[0009] In a possible design, the report message is the first DNS response message or includes the first DNS response message. In this way, the first user plane network element does not need to buffer the first DNS response message and can forward the first DNS response message to the SMF as a report message.
[0010] In a possible design, the first information further instructs the first user plane network element to buffer the first DNS response message. In this manner, after the SMF subsequently inserts a local session anchor, the first user plane network element can send a corresponding DNS response message to the terminal device based on the buffered first DNS response message.
[0011] In a possible design, the SMF sends third information to the first user plane network element after inserting the local session anchor, where the third information instructs the first user plane network element to send a second DNS response message to the terminal device. The second DNS response message indicates a target application server selected for the terminal device, where the second DNS response message is the first DNS response message or the second DNS response message is determined based on the first DNS response message. In this manner, the first user plane network element can send the second DNS response message to the terminal device based on the buffered first DNS response message to inform the terminal device of the target application server.
[0012] In a possible design, the SMF may send a third DNS response message to the terminal device after inserting the local session anchor, where the third DNS response message indicates a selected target application server for the terminal device, where the third DNS response message is the first DNS response message or the third DNS response message is determined based on the first DNS response message. In this manner, the SMF may directly inform the terminal device of the target application server.
[0013] In a possible design, the SMF transmits second information to the first user plane network element. The second information indicates access information of the terminal device. The access information of the terminal device indicates the location of an access point that can be accessed by the terminal device. For example, the access information of the terminal device is a data network access identifier DNAI corresponding to a data network that can be accessed by the terminal device, or an address of the data network that can be accessed by the terminal device (the address can be one or more addresses in an address range supported by the data network). Alternatively, the access information can be address information of the UPF corresponding to a data network that can be accessed by the terminal device (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the terminal device, e.g., an address used to perform network address translation (NAT) according to the NAT protocol). The access information of the terminal device is used by the first user plane network element to select an application server for the terminal device. The information about the application server is included in the first DNS response message. In this way, the first user plane network element can subsequently select an application server based on the access information.
[0014] In a possible design, the SMF obtains an IP address and an optional port number reserved for the terminal device and used for network address translation (NAT) translation according to the NAT protocol. The second information further includes the IP address and the optional port number used for the NAT translation.
[0015] In a possible design, the report message further includes an IP address and an optional port number used for NAT translation.
[0016] In a possible design, before sending the second information to the first user plane network element, the SMF obtains location information of the terminal device from a network element implementing an access and mobility management function (AMF), and determines access information of the terminal device based on the location information of the terminal device. In this way, the access information of the terminal device can be obtained accurately.
[0017] In a possible design, the second information further indicates a priority of the access information of the terminal device, whereby the first user plane network element selects an application server for the terminal device based on the priority of the access information of the terminal device.
[0018] In a possible design, the SMF inserting a local session anchor based on the report message may specifically be that the SMF determines a DNAI of a data network in which the application server is located to determine a local session anchor to be inserted based on information about the application server. Alternatively, the SMF determines a local session anchor to be inserted based on a DNAI corresponding to information about the data network. In this way, the SMF can accurately determine the local session anchor and then insert the local session anchor.
[0019] In a possible design, when the report message includes information about multiple application servers, the SMF determines a target application server, and the third information includes an address of the target application server. In this way, the first user plane network element can determine a second DNS response message based on the address of the target application server in the third information to inform the terminal device of the target application server.
[0020] In a possible design, the SMF obtains routing information for the anycast address. The routing information for the anycast address includes information about at least one network element that implements a user plane function and corresponds to the anycast address, or a DNAI of a data network that corresponds to the anycast address. The SMF determines a local session anchor based on the access information of the terminal device and the routing information for the anycast address. In this way, the SMF can accurately determine the local session anchor and then insert the local session anchor.
[0021] According to a second aspect, the present application provides a communication method, which may include a first user plane network element receiving first information from an SMF, the first information instructing the first user plane network element to send a report message to the SMF when receiving a first domain name server DNS response message that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server. If the first user plane network element determines that the received first DNS response message satisfies the first condition, it sends the report message to the SMF.
[0022] According to the above method, in the process of discovering an application server, the insertion of a local session anchor can be triggered by using a first condition, so that an application server close to an access point of a terminal device is selected, thereby shortening the path between the terminal device and the application server.
[0023] In a possible design, the first information may further include an address range of the data network to which the report message needs to be sent, and the first condition may be that the Internet Protocol IP address of the application server indicated by the first DNS response message belongs to the address range. Alternatively, the first information may further indicate information about an anycast address to which the report message needs to be sent, and the first condition may be that the address of the application server indicated by the first DNS response message is included in the information about the anycast address. In this way, the first UPF can accurately determine whether the first DNS response message satisfies the first condition, and then send the report message to the SMF if the first DNS response message satisfies the first condition.
[0024] In a possible design, the report message is the first DNS response message or includes the first DNS response message. In this way, the first user plane network element does not need to buffer the first DNS response message and can forward the first DNS response message to the SMF as a report message.
[0025] In a possible design, the first information further instructs the first user plane network element to buffer the first DNS response message. In this manner, after the SMF subsequently inserts a local session anchor, the first user plane network element can send a corresponding DNS response message to the terminal device based on the buffered first DNS response message.
[0026] In a possible design, the first user plane network element receives third information from the SMF, where the third information instructs the first user plane network element to send a second DNS response message to the terminal device. The first user plane network element sends the second DNS response message to the terminal device. The second DNS response message indicates a target application server selected for the terminal device, where the second DNS response message is the first DNS response message or the first DNS response message is determined based on the second DNS response message. In this manner, the first user plane network element can send the second DNS response message to the terminal device based on the buffered first DNS response message to inform the terminal device of the target application server.
[0027] In a possible design, the first user plane network element receives second information from the SMF. The second information indicates access information of the terminal device. The access information of the terminal device indicates the location of an access point that can be accessed by the terminal device. For example, the access information of the terminal device is a data network access identifier DNAI corresponding to a data network that can be accessed by the terminal device, or an address of the data network that can be accessed by the terminal device (the address can be one or more addresses in an address range supported by the data network). Alternatively, the access information may be address information of the UPF corresponding to the data network that can be accessed by the terminal device (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the terminal device, e.g., an address used to perform NAT translation). The access information of the terminal device is used by the first user plane network element to select an application server for the terminal device. The information about the application server is included in the first DNS response message. In this way, the first user plane network element can then select an application server based on the access information.
[0028] In a possible design, the second information may further include an IP address and an optional port number reserved for the terminal device and used for NAT translation.
[0029] In a possible design, the report message further includes an IP address and an optional port number used for NAT translation.
[0030] In a possible design, the second information further indicates a priority of the access information of the terminal device, whereby the first user plane network element selects an application server for the terminal device based on the priority of the access information of the terminal device.
[0031] In a possible design, the first user plane network element adds the access information of the terminal device to the DNS request message received from the terminal device to obtain a new DNS request message. Alternatively, the first user plane network element determines a DNS server corresponding to the access information of the terminal device and sends the DNS request message to the DNS server corresponding to the access information of the terminal device. In this way, the first user plane network element can accurately forward the DNS request message corresponding to the access information of the terminal device.
[0032] In a possible design, the access information of the terminal device is a plurality of access information. In this case, the first user plane network element adding the access information of the terminal device to the DNS request message received from the terminal device to obtain a new DNS request message may specifically be that the first user plane network element adds each access information to the DNS request message to obtain a plurality of new DNS request messages. Alternatively, the first user plane network element adds a plurality of access information to the DNS request message to obtain a new DNS request message. In this way, the DNS request message corresponding to the access information of the terminal device can be accurately forwarded.
[0033] In a possible design, the access information of the terminal device is a plurality of access information. In this case, the first user plane network element determines a DNS server corresponding to the access information of the terminal device and sends a DNS request message to the DNS server corresponding to the access information of the terminal device, specifically, the first user plane network element determines a DNS server corresponding to each of the plurality of access information and sends a DNS request message to the DNS server corresponding to each access information. In this way, the DNS request message corresponding to the access information of the terminal device can be accurately forwarded.
[0034] In a possible design, when obtaining information about multiple application servers, the first user plane network element determines a target application server based on the priority of the access information of the access networks corresponding to the multiple application servers. The report message further includes information about the target application server or the access network information corresponding to the target application server. In this way, the SMF can directly notify the terminal device of the target application server.
[0035] In a possible design, the third information includes an address of the target application server. The second DNS response message includes the address of the target application server. In this way, the first user plane network element can determine the second DNS response message based on the address of the target application server in the third information to inform the terminal device of the target application server.
[0036] In a possible design, the first user plane network element buffers the first DNS response message when sending the report message to the SMF. In this manner, after the SMF subsequently inserts a local session anchor, the first user plane network element can send a corresponding DNS response message to the terminal device based on the buffered first DNS response message.
[0037] According to a third aspect, the present application provides a communication method. The method may include a step of an SMF sending first information to a first user plane network element, the first information instructing the first user plane network element to send a report message to the SMF when receiving a first DNS response message that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server. If the first user plane network element determines that the received first DNS response message satisfies the first condition, the first user plane network element sends the report message to the SMF. The SMF inserts a local session anchor based on the report message.
[0038] According to the above method, in the process of discovering an application server, the insertion of a local session anchor can be triggered by using a first condition, so that an application server close to an access point of a terminal device is selected, thereby shortening the path between the terminal device and the application server.
[0039] In a possible design, the first information may further include an address range of the data network to which the report message needs to be sent, and the first condition may be that the Internet Protocol IP address of the application server indicated by the first DNS response message belongs to the address range. Alternatively, the first information may further indicate information about an anycast address to which the report message needs to be sent, and the first condition may be that the address of the application server indicated by the first DNS response message is included in the information about the anycast address. In this way, the first UPF can accurately determine whether the first DNS response message satisfies the first condition, and then send the report message to the SMF if the first DNS response message satisfies the first condition.
[0040] In a possible design, the report message is the first DNS response message or includes the first DNS response message. In this way, the first user plane network element does not need to buffer the first DNS response message and can forward the first DNS response message to the SMF as a report message.
[0041] In a possible design, the first information further instructs the first user plane network element to buffer the first DNS response message. In this manner, after the SMF subsequently inserts a local session anchor, the first user plane network element can send a corresponding DNS response message to the terminal device based on the buffered first DNS response message.
[0042] In a possible design, the first user plane network element buffers the first DNS response message when sending the report message to the SMF. In this manner, after the SMF subsequently inserts a local session anchor, the first user plane network element can send a corresponding DNS response message to the terminal device based on the buffered first DNS response message.
[0043] In a possible design, the SMF sends third information to the first user plane network element after inserting the local session anchor, where the third information instructs the first user plane network element to send a second DNS response message to the terminal device. The first user plane network element sends the second DNS response message to the terminal device. The second DNS response message indicates a target application server selected for the terminal device, where the second DNS response message is the first DNS response message or the second DNS response message is determined based on the first DNS response message. In this manner, the first user plane network element can send the second DNS response message to the terminal device based on the buffered first DNS response message to inform the terminal device of the target application server.
[0044] In a possible design, the SMF may send a third DNS response message to the terminal device after inserting the local session anchor, where the third DNS response message indicates a target application server selected for the terminal device, where the third DNS response message is the first DNS response message or the third DNS response message is determined based on the first DNS response message. In this manner, the SMF may directly inform the terminal device of the target application server.
[0045] In a possible design, the SMF sends the second information to the first user plane network element. The second information indicates access information of the terminal device. The access information of the terminal device indicates the location of an access point that can be accessed by the terminal device. For example, the access information of the terminal device is a data network access identifier DNAI corresponding to a data network that can be accessed by the terminal device, or an address of the data network that can be accessed by the terminal device (the address can be one or more addresses in an address range supported by the data network). Alternatively, the access information may be address information of the UPF corresponding to the data network that can be accessed by the terminal device (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the terminal device, e.g., an address used to perform NAT translation). The access information of the terminal device is used by the first user plane network element to select an application server for the terminal device. The information about the application server is included in the first DNS response message. In this way, the first user plane network element can then select an application server based on the access information.
[0046] In a possible design, before sending the second information to the first user plane network element, the SMF obtains location information of the terminal device from the AMF, and determines access information of the terminal device based on the location information of the terminal device. In this way, the access information of the terminal device can be accurately obtained.
[0047] In a possible design, the second information further indicates a priority of the access information of the terminal device, whereby the first user plane network element selects an application server for the terminal device based on the priority of the access information of the terminal device.
[0048] In a possible design, the first user plane network element adds the access information of the terminal device to the DNS request message received from the terminal device to obtain a new DNS request message. Alternatively, the first user plane network element determines a DNS server corresponding to the access information of the terminal device and sends the DNS request message to the DNS server corresponding to the access information of the terminal device. In this way, the first user plane network element can accurately forward the DNS request message corresponding to the access information of the terminal device.
[0049] In a possible design, the access information of the terminal device is a plurality of access information. In this case, the first user plane network element adding the access information of the terminal device to the DNS request message received from the terminal device to obtain a new DNS request message may specifically be that the first user plane network element adds each access information to the DNS request message to obtain a plurality of new DNS request messages. Alternatively, the first user plane network element adds a plurality of access information to the DNS request message to obtain a new DNS request message. In this way, the DNS request message corresponding to the access information of the terminal device can be accurately forwarded.
[0050] In a possible design, the access information of the terminal device is a plurality of access information. In this case, the first user plane network element determines a DNS server corresponding to the access information of the terminal device and sends a DNS request message to the DNS server corresponding to the access information of the terminal device, specifically, the first user plane network element determines a DNS server corresponding to each of the plurality of access information and sends a DNS request message to the DNS server corresponding to each access information. In this way, the DNS request message corresponding to the access information of the terminal device can be accurately forwarded.
[0051] In a possible design, when obtaining information about multiple application servers, the first user plane network element determines a target application server based on the priority of the access information of the access networks corresponding to the multiple application servers. The report message further includes information about the target application server or the access network information corresponding to the target application server. In this way, the SMF can directly notify the terminal device of the target application server.
[0052] In a possible design, the SMF inserting a local session anchor based on the report message may specifically be that the SMF determines a DNAI of a data network in which the application server is located to determine a local session anchor to be inserted based on information about the application server. Alternatively, the SMF determines a local session anchor to be inserted based on a DNAI corresponding to information about the data network. In this way, the SMF can accurately determine the local session anchor and then insert the local session anchor.
[0053] In a possible design, when the report message includes information about multiple application servers, the SMF determines a target application server, and the third information includes an address of the target application server. The second DNS response message includes an address of the target application server. In this way, the first user plane network element can determine the second DNS response message based on the address of the target application server in the third information to inform the terminal device of the target application server.
[0054] In a possible design, the SMF obtains routing information for the anycast address. The routing information for the anycast address includes information about at least one network element that implements a user plane function and corresponds to the anycast address, or a DNAI of a data network that corresponds to the anycast address. The SMF determines a local session anchor based on the access information of the terminal device and the routing information for the anycast address. In this way, the SMF can accurately determine the local session anchor and then insert the local session anchor.
[0055] According to a fourth aspect, the present application further provides a communication device. The communication device may be an SMF. The communication device is configured to implement the functions of the SMF in the first aspect or possible design examples of the first aspect, or in the third aspect or possible design examples of the third aspect. The functions may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functions.
[0056] In a possible design, the structure of the communication device includes a transceiver unit and a processing unit. These units may perform corresponding functions of the SMF in the first embodiment or a possible design example of the first embodiment, or the third embodiment or a possible design example of the third embodiment. For details, please refer to the detailed description in the method example. Details will not be repeated here.
[0057] In a possible design, the structure of the communication device includes a transceiver and a processor, and optionally further includes a memory. The transceiver is configured to transmit and receive information or data and to communicate and interact with other devices in the communication system. The processor is configured to support the communication device in executing corresponding functions of the SMF in the first aspect or possible design example of the first aspect, or the third aspect or possible design example of the third aspect. The memory is coupled to the processor and stores program instructions and data required for the communication device.
[0058] According to a fifth aspect, the present application further provides a communication device. The communication device may be a first user plane network element. The communication device is configured to implement functions of the first user plane network element in the second aspect or a possible design example of the second aspect, or in the third aspect or a possible design example of the third aspect. The functions may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the aforementioned functions.
[0059] In a possible design, the structure of the communication device includes a transceiver unit and a processing unit. These units may perform corresponding functions of the first user plane network element in the second aspect or a possible design example of the second aspect, or the third aspect or a possible design example of the third aspect. For details, please refer to the detailed description in the example of the method. Details will not be repeated here.
[0060] In a possible design, the structure of the communication device includes a transceiver and a processor, and optionally further includes a memory. The transceiver is configured to transmit and receive information or data and to communicate and interact with other devices in the communication system. The processor is configured to support the communication device in performing corresponding functions of the first user plane network element in the second aspect or possible design example of the second aspect, or the third aspect or possible design example of the third aspect. The memory is coupled to the processor and stores program instructions and data required for the communication device.
[0061] According to a sixth aspect, an embodiment of the present application provides a communication system. The communication system may include the above-mentioned SMF, the above-mentioned first user plane network element, etc.
[0062] According to a seventh aspect, an embodiment of the present application provides a computer-readable storage medium. The computer-readable storage medium stores program instructions. When the instructions are executed on a computer, the computer is enabled to perform the method in any possible design of the first aspect, the second aspect, or the third aspect. For example, the computer-readable storage medium may be any available medium that can be accessed by a computer. The following provides an example, but does not impose a limitation, and the computer-readable medium may include a non-transitory computer-readable medium, a random-access memory (RAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EPROM, EEPROM), a CD-ROM, or other compact disk storage, a magnetic disk storage, or other magnetic storage, or any other medium that can be used to carry or store the expected program code in the form of instructions or data structures and that can be accessed by a computer.
[0063] According to an eighth aspect, an embodiment of the present application provides a computer program product comprising computer program code or computer program instructions, which when executed on a computer enables the computer to perform a method in any possible design of the first aspect, the second aspect or the third aspect.
[0064] According to a ninth aspect, the present application further provides a chip, the chip including a processor and a communication interface, the processor coupled to a memory and configured to read and execute program instructions stored in the memory to enable the chip to implement a method of any possible design of the first aspect, the second aspect or the third aspect.
[0065] For the technical effects that can be achieved in the fourth to ninth aspects and in the fourth to ninth aspects, please refer to the description of the technical effects that can be achieved with the possible solutions of the first, second or third aspects, and the details will not be repeated here. [Brief description of the drawings]
[0066] [Figure 1] FIG. 1 is a schematic diagram of a 5G network architecture according to the present application. [Diagram 2] 1 is a schematic diagram of the architecture of a communication system according to the present application; [Diagram 3] FIG. 1 is a schematic diagram of a network architecture according to the present application. [Figure 4] 1 is a flow chart of a communication method according to the present application. [Diagram 5] 1 is a flow chart of an example of a communication method according to the present application. [Figure 6] 4 is a flowchart of an example of another communication method according to the present application. [Figure 7] 1 is a schematic diagram of the structure of a communication device according to the present application; [Figure 8] FIG. 2 is a diagram of the structure of a communication device according to the present application; [Figure 9A] 4 is a flowchart of an example of another communication method according to the present application. [Figure 9B] 4 is a flowchart of an example of another communication method according to the present application. [Figure 10] 4 is a flow chart of another communication method according to the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0067] Hereinafter, the present application will be further described in detail with reference to the accompanying drawings.
[0068] The embodiments of the present application provide a communication method and a communication device for triggering the insertion of a local session anchor. In this way, an application server close to the access point of a terminal device is selected, thereby shortening the path between the terminal device and the application server. The method and the device of the present application are based on the same technical concept. The method and the device have similar principles for solving problems. Therefore, the implementation forms of the device and the method should be cross-referenced. The repeated parts will not be described in detail again.
[0069] In the description of this application, terms such as "first" and "second" are used only to distinguish the description, but cannot be understood as indicating or implying relative importance or as indicating or implying an order.
[0070] In the embodiments of the present application, it is to be understood that "at least one" means one or more, and "multiple" means two or more. The term "and / or" describes the relationship of association between associated objects, and indicates that three relationships may exist. For example, A and / or B may represent the following cases: only A exists, both A and B exist, and only B exists, where A and B may be singular or plural. The character " / " generally represents the relationship of "or" between associated objects. "At least one of the following items (parts)" or similar expressions indicates any combination of these items, including any combination of a single item (part) or multiple items (parts). For example, at least one item (part) of a, b, or c may represent a, b, c, ab, ac, bc, or abc, where a, b, and c may be singular or plural.
[0071] In order to more clearly describe the technical solutions in the embodiments of the present application, the following describes in detail the communication method and device according to the embodiments of the present application with reference to the accompanying drawings.
[0072] FIG. 1 shows a 5G network architecture. The network architecture includes a network slice selection function (NSSF), an authentication server function (AUSF), a unified data management network element (UDM), a network element implementing an access and mobility management function (AMF), a network element implementing a session management function (SMF), a network element implementing a policy control function (PCF), a network element implementing an application function (AF), a terminal device, a radio access network (RAN) node (or device), a user plane network element (UPF), and a data network (DN). The network elements or devices may be connected via interfaces. The interface names shown in FIG. 1 are only examples for explanation. This is not particularly limited in this embodiment of the present application. Some functions of the network elements or devices in the network architecture are described in detail below.
[0073] A terminal device, also called user equipment (UE), mobile station (MS), mobile terminal (MT), etc., is a device that provides voice and / or data connectivity to a user. For example, the terminal device may include a handheld device, or an in-vehicle device with wireless connection capability. Currently, the terminal device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal of industrial control, a wireless terminal of self-driving, a wireless terminal of remote medical surgery, a wireless terminal of smart grid, a wireless terminal of transportation safety, a wireless terminal of smart city, or a wireless terminal of smart home, etc. In FIG. 1, the terminal device is illustrated using a UE as an example and is not limited thereto.
[0074] The radio access network may be an access network (AN) shown in FIG. 1 and may provide radio access services to terminal devices. A RAN node (or device) is a device that connects a terminal device to a radio network in a network architecture. Currently, some examples of RAN nodes are gNB, transmission reception point (TRP), evolved Node B (eNB), radio network controller (RNC), Node B (NB), base station controller (BSC), base transceiver station (BTS), home base station (e.g., home evolved NodeB or home Node B, HNB), base band unit (BBU), and wireless fidelity (Wifi) access point (AP).
[0075] The DN may be the Internet, an IP Multi-media Service (IMS) network, an area network (i.e., a local network, e.g., a mobile edge computing (MEC) network), etc. The DN is the destination of the PDU session of the terminal device. The data network includes an application server, which provides services to the terminal device by sending data to the terminal device.
[0076] The core network is configured to connect the terminal device to a DN that can implement the services of the terminal device. Next, the functions of the network elements in the core network are described.
[0077] The AMF can access the UE's non access stratum (NAS) signaling (including session management (SM) signaling) via the N1 interface and the RAN's access signaling via the N2 interface to complete terminal device registration procedures, SM signaling transfer, and mobility management.
[0078] The SMF may complete procedures related to session establishment, release, renewal, etc.
[0079] The PCF may be responsible for policy management of terminal devices, including both mobility-related policies and PDU session-related policies, such as quality of service (QoS) policies and charging policies.
[0080] The UPF may be responsible for the transfer of user data.
[0081] The UDM stores subscription data of terminal devices, registration information about terminal devices, etc.
[0082] The AUSF may be responsible for authenticating and authorizing UE access.
[0083] The main function of the AF is to interact with the 3rd generation partnership project (3GPP) core network to provide services and influence service flow routing, access network capability exposure, policy control, etc.
[0084] Each of the aforementioned network elements in the core network, also referred to as functional entities, may be a network element implemented on dedicated hardware, a software instance running on the dedicated hardware, or an instance of a virtualized function on a suitable platform, for example the virtualization platform may be a cloud platform.
[0085] It should be noted that the network architecture shown in Figure 1 is not limited to including only the network elements shown in the figure, and may further include other devices not shown in the figure. Details will not be described one by one in this application.
[0086] It should be noted that the distribution of network elements in the core network is not limited in this embodiment of the present application, and the distribution shown in FIG. 1 is only an example and is not a limitation to the present application.
[0087] For ease of explanation, the network element shown in FIG. 1 is used as an example for later description in this application, and the XX network element is directly referred to as XX for short. For example, the UPF network element is referred to as UPF for short. It should be understood that the names of all network elements in this application are used only as examples, and may be called other names, such as 6G, in future communications, or the network elements in this application may be replaced by other entities or devices having the same functions, such as 6G, in future communications. This is not limited in this application. A unified description is provided in this specification. Details will not be described again.
[0088] It should be noted that the 5G network architecture shown in Figure 1 does not constitute a limitation to the 5G network. Optionally, the method in the embodiment of the present application can be further applied to various future communication systems, such as 6G or other communication networks.
[0089] In the 5G network architecture shown in FIG. 1, there is only one UPF. Based on the above basic architecture, 5G further supports inserting multiple session anchor UPFs on the user plane path of a PDU session and supports connection to a local DN, thereby allowing the UE to access the nearest application server in the local DN, for example, as shown in the architecture of the communication system in FIG. 2. The multiple UPFs introduced in the architecture of the communication system in FIG. 2 include a ULCL / BP, a UPF PSA1, and a UPF PHSA2. The ULCL / BP distributes uplink data packets received from the UE to PSA1 or PSA2 according to a distribution rule, and transmits data packets received from PSA1 or PSA2 to the UE. There is an N6 interface between the PSA1 and the DN. For example, the DN may be a DN located in a central DC. There is an N6 interface between the PSA2 and the local DN. For example, the local DN may be located in a local DC (i.e., MEC). If a UPF connected to a local DN exists at the UE's location, the SMF may use the UPF as a local (L) PSA and insert the UPF into the session path, so that the UE can access the closest application in the local DN. For example, PSA2 in Figure 2 is an L-PSA. Note that the number of UPFs in Figure 2 is merely an example, and more or less UPFs may be included instead. This is not a limitation in this application.
[0090] It should be noted that only one L-PSA is shown in FIG. 2. It should be understood that multiple L-PSAs may alternatively be included. This is not limited in the present application. For example, in the network architecture shown in FIG. 3, there are multiple L-PSAs, e.g., L-PSA1 and L-PSA2 in FIG. 3. In the network architecture, the ULCL / BP may be connected to multiple L-PSAs. In this example, the ULCL / BP and L-PSA1 are integrated and connected to MEC1, the L-PSA2 is connected to MEC2, and the PSA is connected to the central DC. It should be understood that the ULCL / BP and L-PSA1 may be two independent devices. The same application server may be deployed in the central DC and the local DC. There is no good implementation method for how to select an application server for a terminal device such that the path between the terminal device and the application server is the shortest. Based on this, the present application provides a communication method for triggering the insertion of a local session anchor. In this way, an application server near the access point of the terminal device is selected, thereby shortening the path between the terminal device and the application server.
[0091] An embodiment of the present application provides a communication method. The communication method is applicable to the communication system shown in Figure 2. See Figure 4. The specific procedure of the method may include the following steps:
[0092] Step 401: The SMF sends first information to a first user plane network element. The first information instructs the first network element to send a report message to the SMF when it receives a first domain name server (DNS) response message that satisfies a first condition. The report message includes information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server. In addition, optionally, the report message may further include the first DNS response message. Alternatively, in another implementation, the report message is the first DNS response message. This may be understood as the first information instructing the first user plane network element to forward the first DNS response message to the SMF when it receives the first DNS response message that satisfies the first condition. The first user plane network element may be considered as a remote anchor UPF, or may be another UPF network element, of course. This is not limited in the present application.
[0093] In a particular implementation, the information about the application server in the reporting message may be an IP address of the application server, and the information about the data network corresponding to the application server may be information about the data network (e.g., MEC) in which the application server is located, such as DNAI or network segment information of the data network.
[0094] Step 402: When the first user plane network element determines that the received first DNS response message satisfies a first condition, the first DNS response message is from a DNS server and sends a report message to the SMF.
[0095] Step 403: The SMF inserts a local session anchor based on the report message.
[0096] In an optional implementation, the first information includes an address range of the data network to which the report message needs to be sent, and the first condition is that the (Internet protocol, IP) address of the application server indicated by the first DNS response message belongs to the address range. Alternatively, if the first information further indicates information about an anycast address to which the report message needs to be sent, the first condition is that the address of the application server indicated by the first DNS response message is included in the information about the anycast address. Here, the address range of the data network may be one or more of the following: an IP address list, an IP address segment, an IP address prefix plus a prefix length, or a subnet IP address plus a subnet mask.
[0097] In an optional implementation, the first information may alternatively include a DNAI corresponding to a data network through which the report message needs to be sent. In this case, the first condition may be that the application server indicated by the first DNS response message is located in the data network corresponding to the DNAI. Specifically, the first user plane network element may obtain an address range of the data network corresponding to the DNAI, and then determine whether the IP address of the application server belongs to the address range.
[0098] In one example, the first condition is that the IP address of the application server is within the address range of the data network. In this case, in step 402, the first user plane network element sends a report message to the SMF when it determines that the IP address of the application server indicated by the first DNS response message belongs to the data network.
[0099] In another example, the first condition is that the address of the application server indicated by the first DNS response message is an anycast address. In this case, in step 402, the first user plane network element sends a report message to the SMF when it determines that the address of the application server indicated by the first DNS response message is an anycast address. It should be noted that the first information may instruct to send the report message when the address of the application server is any anycast address. In this case, the first information may not hold information about the anycast address that needs to be reported, or may not hold information indicating the anycast address. If the first information specifies a particular anycast address to which the report message needs to be sent, the first information may include a range of anycast addresses to which the report message needs to be sent. Similar to the address range of the data network, the range of the anycast address may be one or more of the following: an anycast address list, an anycast address segment, an anycast address prefix plus a prefix length, or an anycast address prefix plus a subnet mask.
[0100] In an optional implementation, before sending the first information to the first user plane network element, the SMF sends second information to the first user plane network element. The second information indicates access information of the terminal device. The access information of the terminal device indicates the location of an access point of the terminal device. For example, the access information of the terminal device is a data network access identifier (DNAI) corresponding to a data network that can be accessed by the terminal device, or an address of a data network that can be accessed by the terminal device (the address can be one or more addresses in an address range supported by the data network). Alternatively, the access information may be address information of a UPF corresponding to a data network that can be accessed by the terminal device (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the terminal device, e.g., an address used to perform NAT translation). The access information of the terminal device is used by the first user plane network element to select an application server for the terminal device. The information about the application server is included in the first DNS response message. For example, the address range may be one or more of the following: subnet information (e.g., subnet address), address list, address segment (first and last address), address prefix / prefix length, or address plus subnet mask. The data network may be a MEC.
[0101] The SMF may send the access information of the terminal device to the first user plane network element by using the second information when the PDU session is established. For example, the second information is included in an N4 (i.e., packet forwarding control protocol, PFCP) session establishment message. Alternatively, the SMF may send new access information of the terminal device to the first user plane network element by using the second information when the access information of the terminal device changes and needs to be updated. For example, the second information is included in an N4 session modification message.
[0102] Specifically, before sending the second information to the first user plane network element, the SMF obtains location information of the terminal device from the AMF, and determines access information of the terminal device based on the location information of the terminal device. For example, the location information of the terminal device may be a tracking area identity (TAI). The SMF may determine a DNAI corresponding to a data network (e.g., MEC) that may be accessed by the terminal device based on the TAI. For example, the SMF may acknowledge an event that the terminal device moves out of the service area of the DNAI or moves into the service area of the DNAI from the AMF. When the terminal device moves out of the service area of the DNAI or moves into the service area of the DNAI, the AMF may send a notification message to the SMF, and the SMF may determine a DNAI corresponding to a data network that may be accessed by the terminal device based on the notification message. It should be noted that the local data network in this application may also be referred to as a MEC.
[0103] In one example, the SMF may configure a correspondence between the location information of the terminal device and the DNAI. The correspondence may be a DNAI corresponding to a location area (e.g., TA List), or may be a location area (e.g., TA List) included in the service area of the DNAI. To obtain the address range of the data network, the SMF may configure a correspondence between the DNAI and the address range, or the AF provides the address range of the data network for the core network (and finally sends the address range to the SMF). The AF may be a MEC platform. The AF may send the correspondence between the DNAI and the address range. Alternatively, the AF only sends the address range, and the core network determines the DNAI corresponding to the address range based on the AF.
[0104] In another optional implementation, the SMF may determine the UE's access information to be sent to the first UPF according to a policy and charging control (PCC) rule, and the SMF only sends the DNAI or subnet information corresponding to the DNAI included in the PCC rule.
[0105] In an optional implementation, the second information further indicates a priority of the access information of the terminal device, whereby the first user plane network element selects an application server for the terminal device based on the priority of the access information of the terminal device. Optionally, the SMF may indicate preferred access information of the terminal device. In other words, it is preferred that the first user plane network element selects an application server based on the access information. For example, if the terminal device can access multiple data networks at its current location, the SMF may indicate the priority of multiple data networks, and the first user plane network element selects an application server from the data network in which the application server exists and has the highest priority based on the priority of the data networks. Here, each data network corresponds to one access information of the terminal device.
[0106] In a particular implementation, the second information further instructs the first user plane network element to process a DNS request message sent by the terminal device based on the access information of the terminal device. Optionally, the processing may include, based on the access information of the terminal device, sending a DNS request message that matches the access information of the terminal device to a DNS server or adding the access information of the terminal device to the DNS request message.
[0107] Correspondingly, after receiving the DNS request message from the terminal device, the first user plane network element adds the access information of the terminal device to the DNS request message to obtain a new DNS request message, and forwards the new DNS request message, or the first user plane network element determines a DNS server corresponding to the access information of the terminal device, and sends the DNS request message to the DNS server corresponding to the access information of the terminal device. The DNS server corresponding to the access information of the terminal device may be configured in the first user plane network element, or may be obtained by the first user plane network element in other manners, and may be sent to the first user plane network element by, for example, an SMF.
[0108] In an optional implementation form, when the access information of the terminal device is multiple access information, the first user plane network element adding the access information of the terminal device to the DNS request message and obtaining a new DNS request message may specifically include the following two methods.
[0109] Method a1: The first user plane network element adds each access information to the DNS request message. In this way, a new DNS request message is obtained according to each of the access information. When there are multiple access information, the first user plane network element obtains multiple new DNS request messages.
[0110] In this case, after the first user plane network element forwards the multiple new DNS request messages, the DNS server that receives the multiple new DNS request messages may return one DNS response message for each DNS request message. In other words, in this case, there are multiple first DNS response messages. Correspondingly, the first user plane network element may obtain information about multiple application servers.
[0111] Method a2: The first user plane network element adds the plurality of access information to the DNS request message and generates a new DNS request message including the plurality of access information. In this case, after the first user plane network element forwards the DNS request message including the plurality of access information, the DNS server that receives the DNS request message including the plurality of access information may determine one application server for each of the access information and return one first DNS response message including information on the plurality of application servers. In this case, the first user plane network element may obtain information on the plurality of application servers.
[0112] In an optional implementation form, the access information of the terminal device is a plurality of access information. In this case, the first user plane network element may determine a DNS server corresponding to the access information of the terminal device and send a DNS request message to the DNS server corresponding to the access information of the terminal device, specifically, the first user plane network element may determine a DNS server corresponding to each of the plurality of access information and send a DNS request message to the DNS server corresponding to each of the access information. In this case, the DNS server corresponding to each of the plurality of access information returns one DNS response message. That is, in this case, there are a plurality of first DNS response messages. In response to this, the first user plane network element may obtain information about a plurality of application servers.
[0113] In some cases, if the access information of the terminal device does not correspond to a DNS server, the first user plane network element may forward the DNS request message to the DNS server requested by the DNS request message (i.e., the DNS server indicated by the destination address of the DNS request message).
[0114] In other cases, if the DNS server corresponding to the access information of the terminal device returns a response message indicating that the corresponding application server was not found, the DNS request message may be forwarded to the DNS server requested by the DNS request message.
[0115] Optionally, in the above method, when the access information of the terminal device is a plurality of access information, the first user plane network element may obtain a plurality of first DNS response messages, so that the first user plane network element obtains information on a plurality of application servers, a possible case may be when the plurality of first DNS response messages corresponding to the plurality of access information received by the first user plane network element include information on a plurality of application servers. In this case, each first DNS response message may include information on one application server, or a portion of the plurality of first DNS response messages may include information on the application server, and the remaining portion of the first DNS response messages does not include information on the application server. Each of the portion of the first DNS response messages may include information on at least one application server.
[0116] Optionally, when obtaining information about multiple application servers, the first user plane network element determines a target application server based on a priority of access information of access networks corresponding to the multiple application servers, in which case the report message further includes information about the target application server or information about the access network corresponding to the target application server, or the report message is a first DNS response message including information about the target application server.
[0117] Alternatively, optionally, when the first user plane network element obtains information about the multiple application servers, the report message includes information about the multiple application servers or access network information corresponding to each of the multiple application servers, or the report message is a first DNS response message (one or more) including information about the multiple application servers. In this case, the SMF network element determines the target application server.
[0118] It should be noted that when the first user plane network element forwards multiple new DNS request messages or when the first user plane network element sends a DNS request message to each of DNS servers corresponding to multiple access information, i.e., when sending multiple request messages, the first user plane network element needs to send a report message to the SMF after DNS response messages for all sent DNS request messages are received or a response timeout occurs.
[0119] In one example, the first information further instructs the first user plane network element to buffer the first DNS response message. Correspondingly, the first user plane network element buffers the first DNS response message when sending the report message to the SMF. The first DNS response message buffered by the first user plane network element is the first DNS response message(s) corresponding to the application server included in the report message.
[0120] It should be noted that when the first user plane network element receives multiple first DNS response messages and determines a target application server based on the multiple first DNS response messages, the first user plane network element may buffer only the first DNS response message that includes information about the target application server. Indeed, the first user plane network element may buffer all the first DNS response messages as an alternative. This is not limited in the present application.
[0121] In an optional implementation, the SMF sends third information to the first user plane network element after inserting the local session anchor, where the third information instructs the first user plane network element to send a second DNS response message to the terminal device. The first user plane network element then sends the second DNS response message to the terminal device. The second DNS response message indicates a target application server selected for the terminal device, where the second DNS response message is the first DNS response message or the second DNS response message is determined based on the first DNS response message. If the second DNS response message is the first DNS response message, the first DNS response message is a DNS response message buffered by the first user plane network element.
[0122] If the second DNS response message is a first DNS response message buffered by the first user plane network element, the first user plane network element receives only one first DNS response message, and the first DNS response message includes only the address of the target application server, or the first user plane network element buffers only one first DNS response message, and the first DNS response message includes only the address of the target application server.
[0123] In the above method a2, the first DNS response message may include information about a plurality of application servers (e.g., addresses of the application servers). When the first user plane network element receives the third information, it removes addresses of the application servers other than the target application server from the first DNS response message to generate a second DNS response message.
[0124] In an optional implementation, when the report message may include information about multiple application servers, the second information may not include a priority, and the first user plane network element sends a report message to the SMF including the received information about the multiple application servers. When the report message includes information about multiple application servers, the SMF determines a target application server, and the third information includes an address of the target application server. In this case, the first user plane network element determines the second DNS response message based on the address of the target application server in the third information. Specifically, when the second DNS response message is determined based on the first DNS response message, specifically, when the first user plane network element determines the second DNS response message based on the address of the target application server in the third information, the following several cases may be specifically included:
[0125] Case b1: When the first DNS response message includes addresses of multiple application servers, the first user plane network element deletes information about the application server other than the address of the target application server in the first DNS response message based on the address of the target application server included in the third information to generate a second DNS response message. That is, only the address of the target application server in the first DNS response message is reserved to obtain a second DNS response message. The second DNS response message includes the address of the target application server.
[0126] Case b2: When there are multiple first DNS response messages, the first user plane network element selects one first DNS response message including the address of the target application server from the multiple first DNS response messages based on the address of the target application server included in the third information, and uses the first DNS response message as a second DNS response message. The second DNS response message includes the address of the target application server.
[0127] In another example, the report message is the first DNS response message or the report message includes the first DNS response message. In this way, the first user plane network element does not need to buffer the first DNS response message and may forward the first DNS response message to the SMF as a report message. In an optional implementation, the SMF transmits a third DNS response message to the terminal device after inserting the local session anchor, the third DNS response message indicates a target application server selected for the terminal device, and the third DNS response message is the first DNS response message or the third DNS response message is determined based on the first DNS response message. Optionally, the SMF transmitting the third DNS response message to the terminal device may include the SMF transmitting the third DNS response message to the first user plane network element, and the first user plane network element transmitting the third DNS response message to the terminal device.
[0128] If the third DNS response message is the first DNS response message, the first user plane network element receives only one first DNS response message, the first DNS response message includes only the address of the target application server, and the report message includes only the first DNS response message.
[0129] When the third DNS response message is determined based on the first DNS response message, the following cases may be included.
[0130] Case c1: When the first DNS response message includes addresses of multiple application servers, i.e., when the report message includes addresses of multiple application servers, the SMF determines the address of the target application server, and deletes information about the application server other than the address of the target application server in the first DNS response message to generate a third DNS response message. That is, only the address of the target application server in the first DNS response message is reserved to obtain the third DNS response message. The third DNS response message includes the address of the target application server.
[0131] Case c2: When the first DNS response message includes addresses of multiple application servers and the report message includes the address of the target application server (i.e., the first user plane network element determines the address of the target application server), the SMF deletes information about the application server other than the address of the target application server in the first DNS response message based on the address of the target application server to generate a third DNS response message. That is, only the address of the target application server in the first DNS response message is reserved to obtain the third DNS response message. The third DNS response message includes the address of the target application server.
[0132] Case c3: When the report message is a plurality of first DNS response messages or the report message includes a plurality of first DNS response messages, the SMF determines an address of a target application server, selects one first DNS response message including the address of the target application server from the plurality of first DNS response messages, and uses the first DNS response message as a third DNS response message, where the third DNS response message includes the address of the target application server.
[0133] In an optional implementation form, when the SMF performs step 403, a specific method may be that the SMF determines a DNAI of a data network where the application server is located to determine a local session anchor to be inserted based on the information about the application server. Alternatively, the SMF determines a local session anchor to be inserted based on a DNAI corresponding to the information about the data network. For example, if it is determined based on the information about the application server that there is no local session anchor connected to the data network corresponding to the application server (i.e., a local session anchor connected to the data network has not been inserted), the SMF determines that a local session anchor connected to the data network needs to be inserted, and selects a local session anchor based on the DNAI of the data network. It should be noted that the DNAI corresponding to the information about the data network may be understood as the information about the data network being a DNAI or the information about the data network indicating a DNAI. For example, the information about the data network is an address range of the data network, and the SMF determines a DNAI of the data network based on the address range of the data network.
[0134] In another optional implementation, the SMF obtains routing information for the anycast address. The routing information for the anycast address includes information on at least one network element that implements a user plane function and corresponds to the anycast address, or a DNAI of a data network that corresponds to the anycast address. The SMF determines a local session anchor based on the access information of the terminal device and the routing information for the anycast address. Optionally, the SMF may further determine a session anchor that needs to be inserted based on the DNAI of the data network.
[0135] For example, if the SMF determines based on the access information of the terminal device and the routing information of the anycast address that a data network currently accessible by the terminal device supports anycast addresses and a local session anchor connected to the data network has not been inserted, the SMF determines that a local session anchor needs to be inserted. The SMF may determine the local session anchor based on the DNAI corresponding to the data network.
[0136] For example, the SMF may configure routing information for an anycast address.
[0137] In an optional implementation form, if it is determined that a ULCL UPF has not been inserted into the PDU session of the terminal device, the SMF determines that a ULCL UPF needs to be inserted and inserts the ULCL UPF.
[0138] According to the communication method provided in this embodiment of the present application, in the process of discovering an application server, the insertion of a local session anchor can be triggered by using a first condition, so that an application server close to the access point of the terminal device is selected, thereby shortening the path between the terminal device and the application server.
[0139] Based on the above embodiment, the following describes in detail the communication method provided in the embodiment of the present application by using a specific example, for example, the embodiment shown in Figure 5 and Figure 6. In the following example, an example in which the terminal device is a UE, the first user plane network element is a first UPF, the local session anchor is an L-PSA, and the data network is a MEC is used for description.
[0140] Figure 5 shows an example of a communication method. In this example, the scenario is as follows: the UE creates a PDU session and the SMF has not inserted a ULCL into the PDU session, or the SMF has inserted a ULCL but has not inserted an L-PSA corresponding to the nearest application server that provides an application and can be accessed by the UE. Specifically, a specific procedure of this example may include the following steps:
[0141] Step 501: The SMF sends second information to the first UPF, where the second information indicates access information of the UE.
[0142] Specifically, the access information of the UE may be a DNAI corresponding to the MEC that can be currently accessed by the UE, or an address range (or an address within the address range) of the MEC that can be currently accessed by the UE, for example, one or more of the following: subnet information (e.g., subnet address), address list, address segment (first and last address), address prefix / prefix length, or address of the MEC plus a subnet mask. Alternatively, the access information may be address information of a UPF corresponding to a data network that can be accessed by the UE (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the UE, e.g., an address used to perform NAT translation). Alternatively, the access information may be address information of a DNS server corresponding to a data network that can be accessed by the UE.
[0143] Optionally, the SMF may send the access information of the UE to the first UPF by using the second information when the PDU session is established. For example, the second information may be included in an N4 session establishment request message. Alternatively, the SMF may send new access information to the first UPF by using the second information when the access information of the UE changes and needs to be updated. For example, the second information may be included in an N4 session modification request message.
[0144] In an optional implementation, the SMF obtains location information (e.g., TAI) of the UE from the AMF, and determines access information of the UE based on the location information of the UE, for example, determines a DNAI corresponding to a MEC that can be accessed by the UE. For example, the SMF may configure a correspondence between the location information and the DNAI. The correspondence may be a DNAI corresponding to a location area (e.g., TA List), or may be a location area (e.g., TA List) in which a request is satisfied by the DNAI. To obtain an address range (e.g., network segment information) of the MEC, the SMF may configure a correspondence between the DNAI and the address range, or the AF provides an address range of the MEC for the core network (and finally sends the address range to the SMF). The AF may be a MEC platform. The AF may send the correspondence between the DNAI and the address range. Alternatively, the AF only sends the address range, and the core network determines a DNAI corresponding to the address range based on the AF.
[0145] In another optional embodiment, the SMF may determine the UE's access information to be sent to the first UPF according to the PCC rule, and the SMF sends only the DNAI included in the PCC rule or only the subnet information of the MEC corresponding to the DNAI.
[0146] In an optional implementation form, the second information further indicates a priority of the access information of the terminal device, so that the first UPF selects an application server for the UE based on the priority of the access information of the UE. For example, the first UPF preferably selects an application server based on the access information. For example, when the UE can currently access multiple MECs, the SMF may indicate the priority of the multiple MECs, and the first UPF selects a MEC with the highest priority among the MECs that support the application server based on the priority of the MECs, and selects an application server from the MEC. Here, each MEC corresponds to one access information of the UE.
[0147] In an optional implementation, the second information further indicates that the first UPF can discover the DNS request message sent by the UE, and process the DNS request message according to the access information of the UE. For example, the processing may be of two types:
[0148] One process is to send a DNS request message that matches the access information of the UE to a DNS server based on the access information of the UE. For example, the access information of the UE is a DNAI. The first UPF may obtain a mapping relationship between the DNAI and a DNS server address. When receiving the DNS request message, the first UPF determines a DNS server based on the access information of the UE, and sends the DNS request message to the determined DNS server.
[0149] Another process is to insert the access information of the UE into the DNS request message. For example, the access information of the UE may be subnet information of the MEC that can be accessed by the UE.
[0150] Step 502: The SMF sends first information to the first UPF. The first information instructs the first UPF to send a report message to the SMF when receiving a first DNS response message that satisfies a first condition.
[0151] Optionally, the first information may also be included in the N4 session establishment request message or the N4 session modification request message. It should be noted that the N4 session establishment / modification request message including the first information may or may not include the second information.
[0152] In this example, the first condition is that the IP address of the application server indicated by the first DNS response message belongs to the address range of the data network included in the first information, where the first information includes the address range of the MEC to which the report message needs to be sent.
[0153] In this way, the SMF can instruct the first UPF to send a report message to the SMF only if the application server indicated by the first DNS response message is located in a non-inserted MEC. This reduces the number of report messages sent by the first UPF. Specifically, the SMF can send first information to the first UPF, including information about the MEC for which the first UPF needs to send the report message. For example, the information may be a DNAI corresponding to the MEC, or may be an address range corresponding to the MEC. Here, the information about the MEC for which the report message needs to be sent is a subset of the UE's access information (in the second information).
[0154] In an optional implementation, the first information further instructs the first UPF to temporarily buffer the first DNS response message.
[0155] Step 503: The UPF receives a DNS request message sent by the UE.
[0156] Step 504: The first UPF processes the DNS request message and sends a DNS request message 2.
[0157] The first UPF may process the DNS request message according to instructions in the second information.
[0158] Specifically, the first UPF checks a data packet sent by the UE, and if the data packet is a DNS request message, performs the following processing on the DNS request message based on the access information of the UE:
[0159] In a first implementation, the first UPF inserts the access information of the UE into the DNS request message. For example, the access information of the UE may be a subnet address or DNAI corresponding to the MEC that can be currently accessed by the UE. Then, the first UPF uses the DNS request message with the access information of the UE inserted as a new DNS request message (referred to as DNS request message 2 in this specification) and sends the new DNS request message to the DNS server, where the DNS server is the DNS server specified by the DNS request message of the UE. If there are multiple access information of the UE, the first UPF may generate one DNS request message for each access information based on the multiple access information of the UE by inserting the access information (which may be understood as generating multiple DNS request messages 2), and the UPF sends multiple new DNS request messages to the DNS server. Alternatively, the first UPF may insert multiple access information into the DNS request message and send the DNS request message to the DNS server.
[0160] In a second implementation, the UPF determines a DNS server corresponding to the access information based on the access information of the UE, and sends a DNS request message to the DNS server corresponding to the access information. In this method, the first UPF sends a DNS request message to a DNS server not requested by the UE, or the address of the DNS server requested by the UE is an anycast address, and the first UPF determines, based on the access information of the UE, that the DNS server corresponding to the anycast address is the DNS server corresponding to the access information. Indeed, if the determined DNS server corresponding to the access information is not the DNS server requested by the UE, the first UPF may send a DNS request message to the DNS server requested by the UE. Alternatively, if the address of the DNS server requested by the UE is an anycast address, the first UPF may send a DNS request message to the DNS server corresponding to all the access information, and may further send a DNS request message to a DNS server corresponding to the anycast address and located in a central data center DC. Optionally, when there are multiple access information of the UE, and each of the multiple access information corresponds to a DNS server, the first UPF may send a DNS request message to each of the multiple DNS servers. In this manner, the UPF does not need to modify the DNS request message. The DNS server corresponding to the access information of the UE may be configured in the first UPF, or may be obtained by the first UPF by using other methods, for example, may be sent to the first UPF by the SMF.
[0161] In an optional implementation, the first UPF may preferably obtain an IP address of a DNS server in the MEC that can be accessed by the UE. If the application server requested by the UE does not exist in the MEC, the UPF attempts to select another application server. For example, in a second implementation, if the first UPF does not obtain an IP address of the application server from the DNS server corresponding to the access information of the UE, the first UPF then sends a DNS request message to the DNS server requested by the UE (or a DNS server in the central DC). Optionally, the first UPF may determine the order of sending the DNS request message based on the priority of the access information in the second information. For example, the first UPF first sends the DNS request message to the DNS server corresponding to the access information with the highest priority.
[0162] Step 505: The first UPF receives the first DNS response message.
[0163] Specifically, the first UPF receives a first DNS response message from a DNS server. When the first UPF sends multiple DNS request messages, the returned first DNS response message may indicate that a corresponding application server was not found.
[0164] When the first UPF inserts the UE's access information into the DNS request message, optionally, the DNS server may indicate the access information corresponding to the selected application server in the first DNS response message, i.e., the DNS server is the application server selected based on the access information.
[0165] In one example, the UE has multiple access information. In this case, in the first implementation form of step 504, when the first UPF sends multiple new DNS request messages to the DNS server, the DNS server that receives the multiple new DNS request messages may return one DNS response message for each DNS request message. In other words, in this case, there are multiple first DNS response messages. Correspondingly, the first UPF may obtain information about multiple application servers.
[0166] In another example, the UE has multiple access information. In this case, in the second implementation form of step 504, when the first UPF sends a DNS request message to each of the multiple DNS servers, each DNS server corresponding to the multiple access information returns one DNS response message. In other words, in this case, there are multiple first DNS response messages. Correspondingly, the first UPF can obtain information about multiple application servers.
[0167] When the first UPF inserts multiple pieces of access information into one DNS request message, the first UPF receives one first DNS response message, and the first DNS response message may include information about one or more application servers. Optionally, the first DNS response message further indicates access information corresponding to the one or more application servers.
[0168] Step 506: When the first UPF determines that the first DNS response message satisfies a first condition, it sends a report message to the SMF. The report message includes information about the application server indicated by the first DNS response message or information about the data network corresponding to the application server.
[0169] In a particular implementation, the information about the application server in the reporting message may be an IP address of the application server, and the information about the data network corresponding to the application server may be information about the MEC in which the application server is located, for example, DNAI or network segment information of the MEC.
[0170] In one implementation, if the IP address of the selected application server in the first DNS response message is an IP address in one MEC that corresponds to the UE's current access information, the first UPF sends a report message to the SMF.
[0171] Specifically, the access information of the UE may be an address range of the MEC that the UE can connect to at the current access location. The first UPF may determine whether the IP address of the application server in the first DNS response message belongs to the MEC based on the address range. Alternatively, if the access information of the UE is a DNAI, the first UPF may obtain the address range of the MEC corresponding to the DNAI, and determine whether the IP address of the application server corresponds to the DNAI based on the address range corresponding to the DNAI. The first UPF may locally configure a correspondence relationship between the DNAI and the address range corresponding to the DNAI, or the SMF may send the correspondence relationship to the first UPF.
[0172] In another implementation, the first UPF determines whether it needs to send a report to the SMF based on the access information corresponding to the selected application server in the first DNS response message. Specifically, if the access information corresponding to the application server corresponds to the MEC specified by the SMF, the first UPF sends the report to the SMF. In this method, the first DNS response message includes the access information corresponding to the selected application server (i.e., information about the MEC).
[0173] Specifically, when the first UPF sends a report message to the SMF, the first UPF may temporarily buffer the first DNS response message.
[0174] In an optional implementation, when there are multiple MECs that can be accessed (in other words, there are multiple access information of the UE), the first UPF may select an application server based on information about the multiple MECs. When the first UPF obtains information about application servers in multiple MECs, for example, obtains addresses of application servers in MEC1 and MEC2, optionally, the first UPF determines a target application server based on a priority of access information of the access network corresponding to the multiple application servers (for example, the obtained priority of the MEC). In this case, the report message includes information about the target application server or access network information corresponding to the target application server.
[0175] Optionally, when the first UPF obtains IP addresses of application servers in multiple different MECs, the first UPF may also send information about the multiple application servers (addresses of the servers or information about the MECs corresponding to the servers) to the SMF. In other words, the report message includes multiple pieces of information about the application servers or includes multiple pieces of information about the MECs corresponding to the application servers, and the SMF selects a target application server.
[0176] In an optional implementation, the report message is a first DNS response message. Specifically, when a first condition is met, the first UPF sends a first DNS response message to the SMF, and the first DNS response message includes an address of the selected application server. In this way, the information about the application server in the report message is the information about the application server in the first DNS response message, and the first UPF does not need to additionally send information about the application server or information about the data network corresponding to the application server in the report message.
[0177] Indeed, optionally, the first UPF may alternatively include in the report message both the first DNS response message (wherein the first DNS response message includes information about the application server) and additional information about the application server or information about the data network corresponding to the application server, which is not limited in the present application.
[0178] Step 507: The SMF inserts a local session anchor L-PSA based on the report message.
[0179] Specifically, the SMF determines the L-PSA to be inserted based on the information about the application server or the information about the MEC in the report message. Specifically, the SMF may determine the DNAI of the data network in which the application server is located to determine the local session anchor to be inserted based on the information about the application server. Alternatively, the SMF determines the local session anchor to be inserted based on the DNAI corresponding to the information about the data network. For example, when the SMF determines that the L-PSA is not connected to the MEC corresponding to the application server based on the information about the application server, it inserts the L-PSA connected to the MEC.
[0180] In an optional implementation, if the ULCL UPF is not inserted in the PDU session of the UE, the SMF determines that the ULCL UPF needs to be inserted and inserts the ULCL UPF. Indeed, if the ULCL UPF is inserted, the SMF does not need to insert the ULCL UPF.
[0181] In an optional implementation, the ULCL UPF inserted by the SMF and the L-PSA connected to the MEC may be co-located.
[0182] In an optional implementation form, if the first information instructs the first UPF to buffer the first DNS response message, step 507 is followed by the following steps 508 and 509.
[0183] Step 508: The SMF sends third information to the first UPF, where the third information instructs the first UPF to send a second DNS response message to the UE.
[0184] Optionally, if the report message sent by the first UPF to the SMF in step 507 includes information about multiple application servers, the SMF may instruct the first UPF to select an application server, i.e., the SMF determines a target application server. For example, the SMF may indicate an IP address of the selected target application server, or may indicate a DNAI corresponding to the application server. In this case, the third information includes the address of the target application server.
[0185] Step 509: The first UPF sends a second DNS response message to the UE.
[0186] In one example, when the first UPF receives only one first DNS response message and the first DNS response message includes only the address of the target application server, the second DNS response message is the first DNS response message buffered by the first UPF.
[0187] In another example, when the first DNS response message includes addresses of multiple application servers and the report message sent by the first UPF to the SMF includes information about the multiple application servers, the first UPF deletes information about the application servers other than the address of the target application server in the first DNS response message based on the address of the target application server in the first message of the SMF to generate a second DNS response message. That is, only the address of the target application server in the first DNS response message is reserved to obtain the second DNS response message. The second DNS response message includes the address of the target application server.
[0188] In another example, when the first DNS response message includes addresses of multiple application servers, and the first UPF determines a target application server based on the priority of the access information corresponding to the application server, and the report message includes only the information of the target application server, the first UPF deletes information about the application server other than the address of the target application server in the first DNS response message to generate a second DNS response message. That is, only the address of the target application server in the first DNS response message is reserved to obtain the second DNS response message. The second DNS response message includes the address of the target application server.
[0189] In another example, when there are multiple first DNS response messages, the first user plane network element selects one first DNS response message including the address of the target application server from the multiple first DNS response messages based on the address of the target application server included in the third information, and uses the first DNS response message as the second DNS response message. The second DNS response message includes the address of the target application server. In this example, the target application server may be determined by the first UPF or may be determined by the SMF.
[0190] In another optional implementation form, if the report message is a first DNS response message or contains a first DNS response message, step 507 is followed by the following step 510.
[0191] Step 510: The SMF sends a third DNS response message to the UE.
[0192] In one example, if the first user plane network element receives only one first DNS response message, and the first DNS response message includes only the address of the target application server, the report message is the first DNS response message. In this case, the third DNS response message is the first DNS response message.
[0193] In another example, when the first DNS response message includes addresses of multiple application servers, i.e., when the report message includes addresses of multiple application servers, the SMF determines the address of the target application server and deletes information about the application server other than the address of the target application server in the first DNS response message to generate a third DNS response message, i.e., only the address of the target application server in the first DNS response message is reserved to obtain the third DNS response message. The third DNS response message includes the address of the target application server.
[0194] In another example, when the first DNS response message includes addresses of multiple application servers and the report message includes an address of a target application server (i.e., the first user plane network element determines the address of the target application server), the SMF deletes information about the application server other than the address of the target application server in the first DNS response message based on the address of the target application server to generate a third DNS response message. That is, only the address of the target application server in the first DNS response message is reserved to obtain the third DNS response message. The third DNS response message includes the address of the target application server.
[0195] In another example, when the report message is a plurality of first DNS response messages, the SMF determines an address of a target application server, selects one first DNS response message including the address of the target application server from the plurality of first DNS response messages, and uses the first DNS response message as a third DNS response message, where the third DNS response message includes the address of the target application server.
[0196] In the above example, in the process of discovering an application server, when the application server indicated by the first DNS response message received by the first UPF is located within the data network specified by the SMF, the insertion of a local session anchor is triggered. Thus, an application server close to the access point of the terminal device is selected, thereby shortening the path between the terminal device and the application server.
[0197] Figure 6 shows an example of another communication method. In this example, the scenario is as follows: the UE creates a PDU session, and the SMF has not inserted a ULCL into the PDU session, or the SMF has inserted a ULCL but has not inserted an L-PSA corresponding to the nearest application server that provides an application and can be accessed by the UE. In this example, the operator configures an anycast address of the application server. Specifically, the same anycast address may be configured for application servers that are located in different MECs and provide the same service. After the UE obtains the anycast address of the application server, the data packet for sending a message includes the anycast address, and the network may select the nearest application server based on the anycast address. Specifically, a specific procedure of this example may include the following steps.
[0198] Step 601: The SMF sends first information to a first UPF. The first information instructs the first user plane network element to send a report message to the SMF when receiving a first DNS response message that satisfies a first condition.
[0199] In this example, the first information further indicates an address range of the anycast address to which the report message needs to be sent. Correspondingly, the first condition is that the address of the application server indicated by the first DNS response message is included in the information about the anycast address.
[0200] In an optional implementation, the first information instructs the first UPF to discover the first DNS response message and determine whether the IP address of the application server held in the first DNS response message is included in an address range of an anycast IP address indicated by the first information. If the IP address of the application server held in the first DNS response message is included in the address range of the anycast IP address indicated by the first information, the first information instructs the first UPF to send a report message to the SMF.
[0201] Specifically, the first information may include the SMF providing to the first UPF a range of anycast addresses that need to be discovered, which may be one or more of the following: an anycast address list, an anycast address segment, an anycast address prefix plus a prefix length, or an anycast address prefix plus a subnet mask.
[0202] It should be noted that the first information may further instruct to send a report message when the address of the application server is any anycast address. In this case, the first information may not hold information about anycast addresses that need to be reported (i.e., instruct to send a report message only when the address of the server is an anycast address) or may not hold information indicating anycast addresses (i.e., the first information includes information indicating any anycast addresses).
[0203] In an optional implementation, the first information further instructs the first UPF to buffer the first DNS response message when sending a report message to the SMF. In other words, the first information further instructs the first UPF to buffer the first DNS response message when finding that the IP address of the application server is an anycast IP address (or a designated anycast IP address).
[0204] Step 602: The UE sends a DNS request message to the first UPF, where the DNS request message includes information about a DNS server.
[0205] Step 603: The first UPF sends a DNS request message to a DNS server indicated by the DNS request message.
[0206] Step 604: The first UPF receives the first DNS response message sent by the DNS server.
[0207] Step 605: When the first UPF determines that the first DNS response message meets a first condition, it sends a report message to the SMF. The report message includes information about the application server indicated by the first DNS response message.
[0208] Specifically, if the first UPF determines that the address of the application server indicated by the first DNS response message is an anycast address indicated by the first information, it sends a report message to the SMF.
[0209] For example, if the IP address of the application server in the first DNS response message is an anycast IP address, and the SMF provides in step 601 a list (or range) of anycast IP addresses that need to be discovered, and the IP address of the application server is in the list, the first UPF sends a report message to the SMF, and the information about the application server included in the report message is the anycast IP address of the application server.
[0210] In an optional implementation form, the first UPF buffers the first DNS response message when sending a report message to the SMF.
[0211] In another optional implementation, the report message is a first DNS response message. Specifically, when a first condition is met, the first UPF directly sends the first DNS response message to the SMF. In this implementation, since the first DNS response message includes information about the application server, the report message does not need to additionally carry information about the application server.
[0212] Step 606: The SMF inserts an L-PSA based on the report message.
[0213] Specifically, the SMF may determine whether to insert an L-PSA based on the anycast address of the application server included in the report message.
[0214] In an optional implementation, the SMF obtains routing information of the anycast address. The routing information of the anycast address includes information on at least one UPF corresponding to the anycast address, or a DNAI corresponding to the anycast address. The SMF determines a local session anchor based on the access information of the UE and the routing information of the anycast address. Optionally, if the routing information is a DNAI corresponding to the anycast address, the SMF may further determine a session anchor that needs to be inserted based on the DNAI.
[0215] For example, if it is determined based on the access information of the terminal device and the routing information of the anycast address that the MEC currently accessible by the terminal device supports the anycast address and the local session anchor connected to the MEC is not inserted, the SMF determines that the L-PSA needs to be inserted. In this way, data packets subsequently transmitted by the UE and whose destination address is the anycast address can be routed to the nearest MEC. If there are multiple corresponding MECs that can support the anycast address in the current access information of the UE, the SMF can select one of the MECs to insert the L-PSA connected to the MEC.
[0216] To support this function, the SMF may obtain the MEC that supports the anycast address. The information (i.e., the MEC that supports the anycast address) may be configured in the SMF.
[0217] In an optional implementation, if a ULCL UPF has not been inserted in the PDU session path of the UE, the SMF determines that a ULCL UPF needs to be inserted and inserts the ULCL UPF.
[0218] In an optional implementation form, if the first information instructs the first UPF to buffer the first DNS response message, step 606 is followed by the following steps 607 and 608.
[0219] Step 607: The SMF sends third information to the first UPF, where the third information instructs the first UPF to send a second DNS response message to the UE.
[0220] Specifically, the second DNS response message is the first DNS response message buffered by the first UPF.
[0221] Step 608: The first UPF sends a second DNS response message to the UE.
[0222] In another optional implementation form, if the report message is a first DNS response message or contains a first DNS response message, step 606 is followed by the following step 609.
[0223] Step 609: The SMF sends a third DNS response message to the UE.
[0224] The third DNS response message is the report message received by the SMF, i.e., the first DNS response message.
[0225] Then, when the UE sends a data packet to the application server, the destination address of the data packet is the anycast IP address of the application server. The data packet may be sent to the application server in the MEC by the ULCL / L-PSA.
[0226] In this example, if an L-PSA or ULCL connected to a MEC supporting a nearby application server is not inserted into the UE's PDU session, the data packets will be routed to a remote PSA even if the application server is local, resulting in route recursion. In this example, the insertion of an L-PSA may be triggered when the UE resolves the IP address of the application server via a DNS server, so that the UE's data packets can be sent to the nearby application server.
[0227] It should be noted that there may be other possible ways. The SMF instructs the first UPF to find a data packet whose destination address is an anycast IP address. If the first UPF finds a data packet whose destination address is an anycast IP address, the first UPF sends a report message to the SMF, and the report message includes the anycast IP address. The SMF determines whether a ULCL needs to be inserted based on the anycast IP address. In other words, in this method, whether to insert a ULCL is not determined based on a DNS response message, but based on the destination address of the data packet. The drawback of this method is that a route recursion may occur in the first data packet whose destination address is an anycast IP address, and the data packet may not be routed (because the first UPF does not have a route for the anycast IP address).
[0228] Based on the above embodiment, an embodiment of the present application further provides a communication device. See Fig. 7. The communication device 700 may include a transceiver unit 701 and a processing unit 702. The transceiver unit 701 is configured to receive information (message or data) by the communication device 700 or transmit information (message or data), and the processing unit 702 is configured to control and manage the operation of the communication device 700. The processing unit 702 may further control steps performed by the transceiver unit 701.
[0229] For example, the communication device 700 may be the SMF in the above embodiment, specifically, a processor, a chip, a chip system, or a functional module in the SMF. Alternatively, the communication device 700 may be the first user plane network element (e.g., the first UPF) in the above embodiment, specifically, a processor, a chip, a chip system, or a functional module in the first user plane network element.
[0230] In one embodiment, when the communication device 700 is configured to perform the functions of the SMF in the embodiment shown in FIG. 4 to FIG. 6, the communication device 700: The method may specifically include a transceiver unit 701 configured to send first information to a first user plane network element, the first information instructing the first user plane network element to send a report message to an SMF when receiving a first domain name server DNS response message that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server, and a processing unit 702 configured to insert a local session anchor based on the report message, wherein the transceiver unit 701 is further configured to receive the report message sent by the first user plane network element.
[0231] In an optional implementation form, the first condition is that the IP address of the application server indicated by the first DNS response message belongs to the address range of the data network included in the first information. Alternatively, the first information further indicates information about an anycast address to which the report message needs to be sent, and the first condition is that the address of the application server indicated by the first DNS response message is included in the information about the anycast address.
[0232] In one implementation, the report message is a first DNS response message.
[0233] In other implementations, the first information further instructs the first user plane network element to buffer the first DNS response message.
[0234] In an optional implementation, the transceiver unit 701 is further configured to send third information to the first user plane network element after the processing unit 702 inserts the local session anchor, where the third information instructs the first user plane network element to send a second DNS response message to the terminal device, where the second DNS response message indicates a selected target application server for the terminal device, and the second DNS response message is the first DNS response message, or the second DNS response message is determined based on the first DNS response message.
[0235] In another optional implementation, the transceiver unit 701 is further configured to send a third DNS response message to the terminal device after the processing unit 702 inserts the local session anchor, where the third DNS response message indicates a target application server selected for the terminal device, and the third DNS response message is the first DNS response message or the third DNS response message is determined based on the first DNS response message.
[0236] In a particular implementation, the transceiver unit 701 is further configured to transmit second information to the first user plane network element. The second information indicates access information of the terminal device. The access information of the terminal device indicates the location of an access point that can be accessed by the terminal device. For example, the access information of the terminal device is a data network access identifier DNAI corresponding to a data network that can be accessed by the terminal device, or an address of the data network that can be accessed by the terminal device (the address can be one or more addresses in an address range supported by the data network). Alternatively, the access information may be address information of a UPF corresponding to a data network that can be accessed by the terminal device (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the terminal device, e.g., an address used to perform NAT translation). The access information of the terminal device is used by the first user plane network element to select an application server for the terminal device. The information about the application server is included in the first DNS response message.
[0237] In an optional implementation, the transceiver unit 701 is further configured to obtain location information of the terminal device from the AMF before sending the second information to the first user plane network element. The processing unit 702 is further configured to determine access information of the terminal device based on the location information of the terminal device.
[0238] Specifically, the second information further indicates the priority of the access information of the terminal device, whereby the first user plane network element selects an application server for the terminal device based on the priority of the access information of the terminal device.
[0239] Optionally, when the report message includes information about multiple application servers, the processing unit 702 is further configured to determine a target application server, and the third information includes an address of the target application server.
[0240] In one example, when inserting a local session anchor based on a report message, the processing unit 702 is specifically configured to determine a DNAI of a data network in which the application server is located based on information about the application server, and determine a local session anchor to be inserted, or to determine a local session anchor to be inserted based on a DNAI corresponding to the information about the data network.
[0241] In another example, the processing unit 702 is further configured to obtain routing information for the anycast address, the routing information for the anycast address including information on at least one network element that performs a user plane function and corresponds to the anycast address, or a DNAI of a data network that corresponds to the anycast address, and to determine a local session anchor based on the access information of the terminal device and the routing information for the anycast address.
[0242] In one embodiment, when the communication device 700 is configured to perform the functionality of a first user plane network element (e.g., a first UPF) in the embodiment shown in FIG. 4 to FIG. 6, the communication device 700 may: The method may specifically include a transceiver unit 701 configured to receive first information from an SMF, the first information instructing a first user plane network element to send a report message to the SMF when a first domain name server DNS response message is received that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server, the transceiver unit 701 configured to receive the first DNS response message, and a processing unit 702 configured to determine that the first DNS response message satisfies the first condition, the transceiver unit 701 further configured to send a report message to the SMF when the processing unit 702 is configured to determine that the first DNS response message satisfies the first condition.
[0243] In a particular implementation, the first information further includes an address range of the data network to which the report message needs to be sent, and the first condition is that the IP address of the application server indicated by the first DNS response message belongs to the address range. Alternatively, the first information further indicates information about an anycast address to which the report message needs to be sent, and the first condition is that the address of the application server indicated by the first DNS response message is included in the information about the anycast address.
[0244] In one implementation, the report message is a first DNS response message.
[0245] In other implementations, the first information further instructs the first user plane network element to buffer the first DNS response message.
[0246] In an optional implementation, the transceiver unit 701 is further configured to receive third information from the SMF, the third information being further configured to instruct the first user plane network element to send a second DNS response message to the terminal device, and to send the second DNS response message to the terminal device, the second DNS response message indicating a target application server selected for the terminal device, the second DNS response message being the first DNS response message or the first DNS response message being determined based on the second DNS response message.
[0247] In a particular implementation, the transceiver unit 701 is further configured to receive second information from the SMF. The second information indicates access information of the terminal device. The access information of the terminal device indicates the location of an access point that can be accessed by the terminal device. For example, the access information of the terminal device is a data network access identifier DNAI corresponding to a data network that can be accessed by the terminal device, or an address of the data network that can be accessed by the terminal device (the address can be one or more addresses in an address range supported by the data network). Alternatively, the access information may be address information of a UPF corresponding to a data network that can be accessed by the terminal device (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the terminal device, e.g., an address used to perform NAT translation). The access information of the terminal device is used by the first user plane network element to select an application server for the terminal device. The information about the application server is included in the first DNS response message.
[0248] For example, the second information further indicates a priority of the access information of the terminal device, whereby the first user plane network element selects an application server for the terminal device based on the priority of the access information of the terminal device.
[0249] In an optional implementation, the processing unit 702 is further configured to add the access information of the terminal device to the DNS request message received from the terminal device to obtain a new DNS request message. Alternatively, the processing unit 702 is further configured to determine a DNS server corresponding to the access information of the terminal device. The transceiver unit 701 is further configured to send the DNS request message to the DNS server corresponding to the access information of the terminal device.
[0250] In one example, the access information of the terminal device is a plurality of pieces of access information. In this case, when adding the access information of the terminal device to the DNS request message received from the terminal device to obtain a new DNS request message, the processing unit 702 is specifically configured to add each piece of access information to the DNS request message, or add a plurality of pieces of access information to the DNS request message to obtain a plurality of new DNS request messages.
[0251] In another example, when determining a DNS server corresponding to the access information of the terminal device, the processing unit 702 is specifically configured to determine a DNS server corresponding to each of the plurality of access information. When sending a DNS request message to a DNS server corresponding to the access information of the terminal device, the transceiver unit 701 is specifically configured to send a DNS request message to a DNS server corresponding to each of the access information.
[0252] In an optional implementation, when obtaining information about multiple application servers, the processing unit 702 is further configured to determine a target application server based on a priority of access information of access networks corresponding to the multiple application servers. The report message further includes information about the target application server or access network information corresponding to the target application server.
[0253] Optionally, the first message includes an address of the target application server. The second DNS response message includes an address of the target application server.
[0254] In an optional implementation, the processing unit 702 is further configured to buffer the first DNS response message when the transceiver unit 701 sends a report message to the SMF.
[0255] It should be noted that in the embodiment of the present application, the division into units is an example and is merely a logical division of functions. In actual implementation, other division methods may be used. The functional units in the embodiment of the present application may be integrated into one processing unit, or each of the units may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.
[0256] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be essentially implemented in the form of a software product, or the part that contributes to the prior art, or all or part of the technical solution may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes some instructions for instructing a computer device (which may be a personal computer, a server, or a network device) or a processor to perform all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium may include any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0257] Based on the above embodiment, an embodiment of the present application further provides a communication device. See Fig. 8. The communication device 800 may include a transceiver 801 and a processor 802. Optionally, the communication device 800 may further include a memory 803. The memory 803 may be located inside the communication device 800 or may be located outside the communication device 800. The processor 802 may control the transceiver 801 to transmit and receive information or data.
[0258] Specifically, the processor 802 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. The processor 802 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0259] The transceiver 801, the processor 802, and the memory 803 are connected to each other. Optionally, the transceiver 801, the processor 802, and the memory 803 are connected to each other by using a bus 804. The bus 804 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be classified into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used to represent a bus in FIG. 8, but this does not mean that there is only one bus or only one type of bus.
[0260] In an optional implementation, the memory 803 is configured to store a program or the like. Specifically, the program may include a program code, which includes computer operation instructions. The memory 803 may include a RAM and may further include a non-volatile memory, for example, one or more magnetic disk memories. The processor 802 executes application programs stored in the memory 803 to perform the aforementioned functions, thereby implementing the functions of the communication device 800.
[0261] For example, the communication device 800 may be the SMF in the above-mentioned embodiment, or may be the first user plane network element (eg, the first UPF) in the above-mentioned embodiment.
[0262] In one embodiment, when the communication device 800 is configured to perform the functions of the SMF in the embodiment shown in FIG. 4 to FIG. 6, the communication device 800: The method may specifically include a transceiver 801 configured to send first information to a first user plane network element, the first information instructing the first user plane network element to send a report message to an SMF when receiving a first domain name server DNS response message that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server, and a processor 802 configured to insert a local session anchor based on the report message, wherein the transceiver 801 is further configured to receive the report message sent by the first user plane network element.
[0263] In an optional implementation form, the first condition is that the IP address of the application server indicated by the first DNS response message belongs to the address range of the data network included in the first information. Alternatively, the first information further indicates information about an anycast address to which the report message needs to be sent, and the first condition is that the address of the application server indicated by the first DNS response message is included in the information about the anycast address.
[0264] In one implementation, the report message is a first DNS response message.
[0265] In other implementations, the first information further instructs the first user plane network element to buffer the first DNS response message.
[0266] In an optional implementation, the transceiver 801 is further configured to send third information to the first user plane network element after the processor 802 inserts the local session anchor, the third information instructing the first user plane network element to send a second DNS response message to the terminal device, the second DNS response message indicating a selected target application server for the terminal device, the second DNS response message being the first DNS response message, or the second DNS response message being determined based on the first DNS response message.
[0267] In another optional implementation, the transceiver 801 is further configured to send a third DNS response message to the terminal device after the processor 802 inserts the local session anchor, the third DNS response message indicating a target application server selected for the terminal device, the third DNS response message being the first DNS response message or the third DNS response message being determined based on the first DNS response message.
[0268] In a particular implementation, the transceiver 801 is further configured to transmit second information to the first user plane network element. The second information indicates access information of the terminal device. The access information of the terminal device indicates the location of an access point that can be accessed by the terminal device. For example, the access information of the terminal device is a data network access identifier DNAI corresponding to a data network that can be accessed by the terminal device, or an address of the data network that can be accessed by the terminal device (the address can be one or more addresses in an address range supported by the data network). Alternatively, the access information may be address information of a UPF corresponding to a data network that can be accessed by the terminal device (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the terminal device, e.g., an address used to perform NAT translation). The access information of the terminal device is used by the first user plane network element to select an application server for the terminal device. The information about the application server is included in the first DNS response message.
[0269] In an optional implementation, the transceiver 801 is further configured to obtain location information of the terminal device from the AMF before sending the second information to the first user plane network element. The processor 802 is further configured to determine access information of the terminal device based on the location information of the terminal device.
[0270] Specifically, the second information further indicates the priority of the access information of the terminal device, whereby the first user plane network element selects an application server for the terminal device based on the priority of the access information of the terminal device.
[0271] Optionally, if the report message includes information about multiple application servers, the processor 802 is further configured to determine a target application server, and the third information includes an address of the target application server.
[0272] In one example, when inserting a local session anchor based on a report message, the processor 802 is specifically configured to determine a DNAI of a data network in which the application server is located based on information about the application server, and determine a local session anchor to be inserted, or to determine a local session anchor to be inserted based on a DNAI corresponding to the information about the data network.
[0273] In another example, the processor 802 is further configured to obtain routing information for the anycast address, the routing information for the anycast address including information on at least one network element that performs a user plane function and corresponds to the anycast address, or a DNAI of a data network that corresponds to the anycast address, and is further configured to determine a local session anchor based on the access information of the terminal device and the routing information for the anycast address.
[0274] In one embodiment, when the communication device 800 is configured to perform the functionality of a first user plane network element (e.g., a first UPF) in the embodiment shown in FIG. 4 to FIG. 6, the communication device 800 may: The method may specifically include receiving first information from the SMF, the first information instructing a first user plane network element to send a report message to the SMF when a first domain name server DNS response message that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server, and including a transceiver 801 configured to receive the first DNS response message and a processor 802 configured to determine that the first DNS response message satisfies the first condition, and the transceiver 801 is further configured to send a report message to the SMF when the processor 802 is configured to determine that the first DNS response message satisfies the first condition.
[0275] In a particular implementation, the first information further includes an address range of the data network to which the report message needs to be sent, and the first condition is that the IP address of the application server indicated by the first DNS response message belongs to the address range. Alternatively, the first information further indicates information about an anycast address to which the report message needs to be sent, and the first condition is that the address of the application server indicated by the first DNS response message is included in the information about the anycast address.
[0276] In one implementation, the report message is a first DNS response message.
[0277] In other implementations, the first information further instructs the first user plane network element to buffer the first DNS response message.
[0278] In an optional implementation, the transceiver 801 is further configured to receive third information from the SMF, the third information being further configured to instruct the first user plane network element to send a second DNS response message to the terminal device, and to send the second DNS response message to the terminal device, the second DNS response message indicating a target application server selected for the terminal device, the second DNS response message being the first DNS response message or the first DNS response message being determined based on the second DNS response message.
[0279] In a particular implementation, the transceiver 801 is further configured to receive second information from the SMF. The second information indicates access information of the terminal device. The access information of the terminal device indicates the location of an access point that can be accessed by the terminal device. For example, the access information of the terminal device is a data network access identifier DNAI corresponding to a data network that can be accessed by the terminal device, or an address of the data network that can be accessed by the terminal device (the address can be one or more addresses in an address range supported by the data network). Alternatively, the access information may be address information of a UPF corresponding to a data network that can be accessed by the terminal device (e.g., an interface address of the UPF, or an address configured in the UPF and used to provide communication to the terminal device, e.g., an address used to perform NAT translation). The access information of the terminal device is used by the first user plane network element to select an application server for the terminal device. The information about the application server is included in the first DNS response message.
[0280] For example, the second information further indicates a priority of the access information of the terminal device, whereby the first user plane network element selects an application server for the terminal device based on the priority of the access information of the terminal device.
[0281] In an optional implementation, the processor 802 is further configured to add the access information of the terminal device to the DNS request message received from the terminal device to obtain a new DNS request message. Alternatively, the processor 802 is further configured to determine a DNS server corresponding to the access information of the terminal device. The transceiver 801 is further configured to send the DNS request message to the DNS server corresponding to the access information of the terminal device.
[0282] In one example, the access information of the terminal device is a plurality of pieces of access information, in this case, the processor 802 is specifically configured to add the access information of the terminal device to the DNS request message received from the terminal device, and when obtaining a new DNS request message, add each of the access information to the DNS request message or add the plurality of pieces of access information to the DNS request message to obtain a plurality of new DNS request messages.
[0283] In another example, when determining a DNS server corresponding to the access information of the terminal device, the processor 802 is specifically configured to determine a DNS server corresponding to each of the plurality of access information. When sending a DNS request message to a DNS server corresponding to the access information of the terminal device, the transceiver 801 is specifically configured to send a DNS request message to a DNS server corresponding to each of the access information.
[0284] In an optional implementation, when the processor 802 obtains information about multiple application servers, it is further configured to determine a target application server based on a priority of the access information of the access networks corresponding to the multiple application servers. The report message further includes the information about the target application server or the access network information corresponding to the target application server.
[0285] Optionally, the first message includes an address of the target application server. The second DNS response message includes an address of the target application server.
[0286] In an optional implementation, the processor 802 is further configured to buffer the first DNS response message when the transceiver 801 sends a report message to the SMF.
[0287] It should be noted that all the functions performed by the first user plane network element in the above embodiment may be performed by the first network element, and the specific procedures performed by the first network element will not be described in detail again. In this embodiment of the present application, the first network element may be integrated into the first user plane network element (first UPF network element), or the first network element may be a network element independent of the user plane network element, or the first network element may be a local DNS resolver (LDNSR), etc.
[0288] As shown in Figure 9A and Figure 9B, the present application further shows an example of another communication method. In this example, the scenario is as follows: the UE creates a PDU session, and the SMF has not inserted a ULCL into the PDU session, or the SMF has inserted a ULCL but has not inserted an L-PSA corresponding to the nearest application server that provides an application and can be accessed by the UE. In this example, the first network element is a network element that processes a DNS message, and the first network element and the anchor UPF corresponding to the PDU session are not the same network element. In this case, the DNS request message sent by the UE is sent to the anchor UPF network element, and then sent by the anchor UPF network element to the first network element. In this embodiment, if the anchor UPF network element supports NAT translation, when sending the DNS request message to the first network element, the anchor UPF network element replaces the source address in the data packet (i.e., the IP address of the UE, e.g., a private IP address) with a new IP address (e.g., a public IP address). Optionally, the anchor UPF network element further replaces the source port number in the data packet, i.e., replaces the source port number in the data packet with a new port number. In this embodiment, the anchor UPF network element may reserve an address and a port number obtained by NAT translation for the DNS message, and send the reserved address and port number to the SMF. The SMF sends the reserved address and port number to the first network element, so that the first network element can determine a PDU session corresponding to the DNS request based on the address and port number obtained by NAT translation. Specifically, a specific procedure of this example may include the following steps.
[0289] Step 901: The SMF sends an N4 session request message to the anchor UPF.
[0290] Optionally, in the N4 session request message, the SMF requests the anchor UPF network element to reserve an IP address and an optional port number used for NAT translation for the terminal device. In an optional implementation form, the SMF may indicate that the reserved IP address and port number are used only to perform NAT translation for the DNS message of the terminal device. In other words, the SMF requests the anchor UPF network element to reserve an IP address and an optional port number used for NAT translation for the DNS message of the terminal device. The N4 session request message may be sent by the SMF to the UPF in a PDU session establishment process.
[0291] Optionally, if the SMF determines that the anchor UPF performs NAT translation for the session, the SMF requests the anchor UPF network element to assign an IP address and an optional port number used for NAT translation to the DNS message of the terminal device. For example, the SMF may determine that the anchor UPF performs NAT translation for the session based on the UE IP address of the session. For example, the UE IP address is a private network address. Optionally, the anchor UPF may send an indication to the SMF indicating that the anchor UPF supports NAT translation, and the SMF determines that the anchor UPF performs NAT translation for the session based on the indication. In addition, there are other possible cases, which are not limited in this application.
[0292] It should be noted that if the anchor UPF assigns only an IP address to be used for NAT translation, but not a port number, the IP address may actually be used to perform NAT translation for messages other than DNS messages of the terminal device.
[0293] Step 902: The anchor UPF sends an N4 session response message to the SMF.
[0294] In the N4 session response message, the anchor UPF sends the IP address and optional port number reserved for the DNS message and used for NAT translation to the SMF.
[0295] Optionally, if the SMF receives an indication requesting the Anchor UPF to reserve an IP address and optional port number to be used for NAT translation for the terminal device, the Anchor UPF reserves the IP address and optional port number to be used for NAT translation for the DNS message.
[0296] For step 903, please refer to the relevant description of step 501. Different from step 501, in step 903, the second information further includes an IP address and an optional port number reserved for the terminal device by the anchor UPF and used for NAT translation.
[0297] Step 904 is the same as step 502. For details, please refer to the relevant description of step 502.
[0298] Step 905a: The anchor UPF receives a DNS request message.
[0299] Specifically, the anchor UPF receives a DNS request message from the UE.
[0300] For the DNS request message, the source address is the IP address of the UE (UE IP address), and the source port number is the port number assigned by the UE to the DNS request message.
[0301] The anchor UPF performs NAT processing on the DNS request message by using the IP address and optional optional port number obtained by NAT translation and reserved for the DNS message of the terminal device.
[0302] For a DNS request message processed by NAT translation, the source address is a reserved IP address obtained by NAT translation, and the source port number is a reserved port number.
[0303] For step 905b, please refer to the relevant description of step 503.
[0304] Different from step 503, in step 905b, the first network element checks the source address of the DNS request message against the second information to determine the access information of the terminal device corresponding to the DNS request message. For example, corresponding to the access information of the terminal device, the IP address obtained by NAT translation is IP1, and the port number obtained by NAT translation is port number 1. For the DNS request message, if the source address is also IP1 and the source port number is also port number 1, the access information is the access information corresponding to the DNS request message.
[0305] For step 906 and step 907, please refer to the relevant descriptions of step 504 and step 505.
[0306] For step 908, please refer to the related description of step 506. Different from step 506, in step 908, the report message may further include an IP address and an optional port number obtained by NAT translation.
[0307] For step 909, please refer to the relevant description of step 507. Different from step 507, in step 909, if the report message includes an IP address and an optional port number obtained by NAT translation, the SMF determines a corresponding PDU session based on the IP address and the optional port number obtained by NAT translation, and inserts the L-PSA into the PDU session. In step 902, the SMF stores the IP address and the optional port number obtained by NAT translation in the PDU session context.
[0308] For steps 910 to 912, please refer to the relevant descriptions of steps 508 to 510. The difference is as follows: in step 911, the second DNS response message is sent to the anchor UPF network element. Then, the anchor UPF network element performs NAT processing on the data packet, i.e., replaces the destination address (i.e., the IP address obtained by NAT translation) in the data packet with the UE IP address, and optionally replaces the destination port number (i.e., the port number obtained by NAT translation) in the data packet with the source port number in the original DNS request message sent by the UE.
[0309] It should be noted that one or more first network elements may be deployed in an actual deployment. In this case, when creating a PDU session for a terminal device, the SMF needs to select a first network element from the one or more first network elements, use the first network element as a first network element serving the PDU session, use the address of the first network element as an address of a DNS server for the PDU session, and send the address to the terminal device, so that a DNS request message of the terminal device is sent to the selected first network element. In a possible implementation, the SMF receives a message from each of the one or more first network elements. The message includes at least one of a DNN, a single network slice selection assistance information (S-NSSAI), and a service scope supported by the first network element. Alternatively, the message includes an identifier of the first network element. The SMF obtains at least one of a DNN, an S-NSSAI, and a service range supported by the first network element based on an identifier of the first network element from a network element implementing a network repository function (NRF). The SMF determines the first network element from the one or more first network elements based on at least one of the DNN and the S-NSSAI corresponding to the session and information on a UPF selected for the PDU session, and uses the first network element as the first network element corresponding to the PDU session. The service range may be a tracking area list, a DNAI list, a UPF list, a service area identifier, etc. The SMF determining the first network element based on the information on the UPF includes the SMF determining that the UPF is within the service range of the first network element. The SMF transmits the first information and / or the second information to the first network element corresponding to the PDU session.After receiving the success response message of the first network element, the SMF uses the address of the first network element as the address of the DNS server and sends the address to the terminal device.
[0310] It should be noted that this embodiment may also be applied to a scenario corresponding to the embodiment shown in Fig. 6. Corresponding to the scenario of the embodiment shown in Fig. 6, in the embodiment shown in Fig. 9A and Fig. 9B, "please refer to the description of step 501" needs to be modified to "please refer to the description of step 601", "please refer to the description of step 503" needs to be replaced with "please refer to the description of step 602", "please refer to the description of step 504" needs to be replaced with "please refer to the description of step 603", "please refer to the description of step 505" needs to be replaced with "please refer to the description of step 604", "please refer to the description of step 506" needs to be replaced with "please refer to the description of step 605", "please refer to the description of step 507" needs to be replaced with "please refer to the description of step 606", "please refer to the description of step 508" needs to be replaced with "please refer to the description of step 607", and "please refer to the description of step 510" needs to be replaced with "please refer to the description of step 609".
[0311] It should be noted that the functions of the first network element in the embodiment shown in Figures 9A and 9B are integrated into the first UPF network element in the embodiment shown in Figure 5 and the embodiment shown in Figure 6. The first network element in this embodiment corresponds to the first user plane network element in the embodiment shown in Figure 4. The first network element may not process any user plane data packets other than DNS messages.
[0312] It should be noted that the NAT function may alternatively be performed by an independent network element instead of the anchor UPF network element. In this case, the anchor UPF network element in steps 901 and 902 is replaced by an independent network element. In this specification, the entity performing the NAT function is referred to as the first NAT translation network element. The first NAT translation network element may be located within the anchor UPF or may be an independent network element.
[0313] An embodiment of the present application further provides a communication method. The communication method is applicable to the communication system shown in Figure 2. See Figure 10. The specific procedure of the method may include the following steps:
[0314] Step 1001: A first NAT translation network element obtains an IP address used for NAT translation and an optional port number used for NAT translation, where the IP address and the optional port number are reserved for a terminal device.
[0315] In one implementation, the first NAT translation network element reserves an IP address used for NAT translation and an optional port number used for NAT translation for a DNS message of the terminal device.
[0316] Step 1002: A first NAT translation network element sends an IP address used for NAT translation and a port number used for NAT translation to the SMF.
[0317] In an optional implementation form, the first NAT translation network element receives a request message of the SMF, and the request message instructs the first NAT translation network element to reserve, for the terminal device, an IP address to be used for NAT translation and a port number to be used for NAT translation.
[0318] In an optional implementation form, the first NAT translation network element receives a request message of the SMF, and the request message instructs the first NAT translation network element to reserve an IP address to be used for NAT translation and a port number to be used for NAT translation for a DNS message of the terminal device.
[0319] In an optional implementation, the first NAT translation network element receives a DNS message of the terminal device and processes the DNS message based on the IP address used for NAT translation and the optional port number used for NAT translation.
[0320] The first NAT translation network element processing the DNS message specifically includes the following steps:
[0321] The first NAT translation network element receives a DNS request message sent by the terminal device, and replaces a source address (i.e., an IP address of the terminal device) in the DNS request message sent by the terminal device with a reserved IP address used for NAT translation. Optionally, the first NAT translation network element replaces a source port number in the DNS request message with a reserved port number used for NAT translation. The first NAT translation network element transmits the DNS request message used for NAT translation.
[0322] The first NAT translation network element receives the DNS response message, and the destination address in the DNS response message is the IP address used for NAT translation. The first NAT translation network element replaces the destination address in the DNS response message with the IP address of the terminal device. Optionally, the first NAT translation network element replaces the destination port number in the DNS response message (the port number used for NAT translation) with the original port number of the terminal device (i.e., the source port number in the original DNS request message).
[0323] Based on the above embodiment, an embodiment of the present application further provides a communication device. Also refer to Fig. 7. For example, when the communication device 700 is configured to implement the function of the first NAT translation network element in the embodiment shown in Fig. 10, the communication device 700 comprises: Specifically, the method may include a processing unit 702 configured to obtain an Internet Protocol (IP) address used for NAT translation and an optional port number used for NAT translation, where the IP address and the optional port number are reserved for a terminal device, and a transceiver unit 701 configured to send the IP address used for NAT translation and the port number used for NAT translation to the SMF.
[0324] In an optional implementation form, the transceiver unit 701 is further configured to receive a request message of the SMF, where the request message instructs the terminal device to reserve an IP address to be used for NAT translation and an optional port number to be used for NAT translation.
[0325] In an optional implementation, the transceiver unit 701 is further configured to receive a DNS message of the terminal device, and the processing unit 702 is further configured to process the DNS message based on the IP address used for NAT translation and the optional port number used for NAT translation.
[0326] Based on the above embodiment, an embodiment of the present application further provides a communication device. Also refer to Fig. 8. For example, when the communication device 800 is configured to implement the function of the first NAT translation network element in the embodiment shown in Fig. 10, the communication device 800 comprises: Specifically, the method may include a processor 802 configured to obtain an Internet Protocol (IP) address to be used for NAT translation and an optional port number to be used for NAT translation, where the IP address and the optional port number are reserved for a terminal device, and a transceiver 801 configured to send the IP address to be used for NAT translation and the optional port number to be used for NAT translation to the SMF.
[0327] In an optional implementation, the transceiver 801 is further configured to receive an SMF request message, where the request message instructs the terminal device to reserve an IP address to be used for NAT translation and an optional port number to be used for NAT translation.
[0328] In an optional implementation, the transceiver 801 is further configured to receive a DNS message of the terminal device, and the processor 802 is further configured to process the DNS message based on the reserved IP address used for NAT translation and the port number used for NAT translation.
[0329] Based on the above embodiment, an embodiment of the present application provides a communication system, which may include the SMF in the above embodiment, the first user plane network element, etc.
[0330] An embodiment of the present application further provides a computer-readable storage medium, which is configured to store a computer program, and when the computer program is executed by a computer, the computer can perform any communication method provided in the above-mentioned method embodiments.
[0331] An embodiment of the present application further provides a computer program product, configured to store a computer program, which, when executed by a computer, may cause the computer to perform any of the communication methods provided in the above method embodiments.
[0332] An embodiment of the present application further provides a chip, the chip including a processor and a communication interface, the processor is coupled to a memory and configured to invoke a program in the memory to enable the chip to implement any of the communication methods provided in the aforementioned method embodiments.
[0333] It should be understood by those skilled in the art that the embodiments of the present application may be provided as a method, a system, or a computer program product. Thus, the present application may take the form of a hardware-only embodiment, a software-only embodiment, or an embodiment having a combination of software and hardware. In addition, the present application may take the form of a computer program product embodied on one or more computer-usable storage mediums (including, but not limited to, disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.
[0334] The present application is described with reference to flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the present application. It should be understood that computer program instructions may be used to implement each process and / or each block in the flowcharts and / or block diagrams and combinations of processes and / or blocks in the flowcharts and / or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor, or other programmable data processing device to generate a machine, whereby the instructions executed by the processor of the computer or other programmable data processing device generate an apparatus for implementing the specific functions within one or more steps of the flowcharts and / or one or more blocks of the block diagrams.
[0335] These computer program instructions may alternatively be stored in a computer-readable memory that can be caused to operate in a particular manner to a computer or other programmable data processing device, such that the instructions stored in the computer-readable memory produce an artefact that includes an instruction apparatus that implements the functions specified in one or more processes in the flowcharts and / or in one or more blocks in the block diagrams.
[0336] The computer program instructions may alternatively be loaded into a computer or other programmable data processing device such that a sequence of operations and steps are performed on the computer or other programmable data processing device to generate a computer-implemented process. Thus, the instructions that execute on the computer or other programmable data processing device provide steps for implementing a specified function of one or more processes in the flowcharts and / or one or more blocks in the block diagrams.
[0337] Obviously, it is obvious that those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Thus, if these modifications and variations to this application are within the scope of the claims of this application and their equivalent technologies, this application is also intended to cover these modifications and variations. [Explanation of symbols]
[0338] 700 Communication Equipment 701 Transceiver unit 702 Processing Unit 800 Communication Equipment 801 Transceiver 802 Processor 803 Memory 804 Bus
Claims
1. 1. A communication method comprising: a step of the session management network element sending first information to a first network element, the first information instructing the first network element to send a report message to the session management network element when a first domain name server, DNS, response message is received that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server; the session management network element inserting a local session anchor based on the report message; A communication method comprising:
2. The first information further includes an address range to which the report message needs to be sent, and the first condition is that the Internet Protocol,IP,address of the application server indicated by the first DNS response message belongs to the address range; or the first information further indicates information about an anycast address to which the report message needs to be sent, and the first condition is that the address of the application server indicated by the first DNS response message is included in the information about the anycast address; The method of claim 1.
3. The method according to claim 1 or 2, wherein the report message is the first DNS response message.
4. The method of claim 1 or 2, wherein the first information further instructs the first network element to buffer the first DNS response message.
5. After the step of the session management network element inserting a local session anchor, the method further comprises: sending third information to the first network element, the third information instructing the first network element to send a second DNS response message to the terminal device; Further comprising: The second DNS response message indicates a target application server selected for the terminal device, and the second DNS response message is the first DNS response message or the second DNS response message is determined based on the first DNS response message.
5. The method of any one of claims 1, 2 or 4.
6. After the step of the session management network element inserting a local session anchor, the method further comprises: the session management network element sending a third DNS response message to a terminal device, the third DNS response message indicating a target application server selected for the terminal device, the third DNS response message being the first DNS response message or the third DNS response message being determined based on the first DNS response message; 4. The method of claim 3, further comprising:
7. The method comprises: sending second information to the first network element, the second information indicating access information of a terminal device, the access information of the terminal device being used by the first network element to select the application server for the terminal device, the information regarding the application server being included in the first DNS response message; 7. The method of claim 1, further comprising:
8. 8. The method of claim 7, wherein the second information further instructs the first network element to send a DNS request message to a DNS server that matches the access information of the terminal device or to add the access information of the terminal device to the DNS request message.
9. The method according to claim 7 or 8, wherein the access information of the terminal device is a data network access identifier, DNAI, corresponding to a data network that can be accessed by the terminal device, an address of a data network that can be accessed by the terminal device, or information about a user plane network element corresponding to a data network that can be accessed by the terminal device.
10. The method comprises: The session management network element obtains an IP address reserved for the terminal device and used for network address translation, NAT, translation according to a NAT protocol. Further comprising: The second information further includes the IP address used for NAT translation.
10. The method according to any one of claims 7 to 9.
11. The method of claim 10 , wherein the report message further includes the IP address used for NAT translation.
12. The method comprises: said session management network element obtaining from an application function a correspondence between said DNAI and an address range to which said report message needs to be sent; 11. The method of claim 9 or claim 10 at least dependent on claim 9, further comprising:
13. The step of the session management network element inserting a local session anchor based on the report message includes: determining a Data Network Access Identifier (DNAI) of the data network in which the application server is located based on the information about the application server, by the session management network element to determine the local session anchor to be inserted; or the session management network element determining the local session anchor to be inserted based on a DNAI corresponding to the information about the data network.
13. The method of any one of claims 1 to 12, comprising:
14. The method comprises: determining, by the session management network element, a first network element corresponding to the session from a plurality of first network elements based on at least one of a DNN and an S-NSSAI corresponding to the session and information regarding a user plane network element selected for the session; 14. The method of any one of claims 1 to 13, further comprising:
15. The method comprises: the session management network element sending the first information and / or the second information to the first network element corresponding to the session; the session management network element sending the address of the first network element to the terminal device as the address of the DNS server; 15. The method of claim 14, which is at least dependent on claim 8, further comprising:
16. 1. A communication method comprising: a step of receiving first information from a session management network element by a first network element, the first information instructing the first network element to send a report message to the session management network element when a first domain name server, DNS, response message is received that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server; if the first network element determines that the received first DNS response message satisfies a first condition, sending the report message to the session management network element; A communication method comprising:
17. The first information further includes an address range to which the report message needs to be sent, and the first condition is that the Internet Protocol,IP,address of the application server indicated by the first DNS response message belongs to the address range; or the first information further indicates information about an anycast address to which the report message needs to be sent, and the first condition is that the address of the application server indicated by the first DNS response message is included in the information about the anycast address; The method of claim 16.
18. The method according to claim 16 or 17, wherein the report message is the first DNS response message.
19. 18. The method of claim 16 or 17, wherein the first information further instructs the first network element to buffer the first DNS response message.
20. The method comprises: receiving, by the first network element, third information from the session management network element, the third information instructing the first network element to send a second DNS response message to a terminal device; the first network element sending the second DNS response message to the terminal device; Further comprising: The second DNS response message indicates a target application server selected for the terminal device, and the second DNS response message is the first DNS response message or the first DNS response message is determined based on the second DNS response message.
20. The method of any one of claims 16, 17 or 19.
21. The method comprises: receiving second information from the first network element, the second information indicating access information of a terminal device, the access information of the terminal device being used by the first network element to select the application server for the terminal device, the information regarding the application server being included in the first DNS response message; 21. The method of any one of claims 16 to 20, further comprising:
22. 22. The method of claim 21, wherein the second information further instructs the first network element to send a DNS request message to a DNS server that matches the access information of the terminal device or to add the access information of the terminal device to the DNS request message.
23. The method according to claim 21 or 22, wherein the access information of the terminal device is a data network access identifier DNAI corresponding to a data network that can be accessed by the terminal device, an address of a data network that can be accessed by the terminal device, or information about a user plane network element corresponding to a data network that can be accessed by the terminal device.
24. 24. The method according to claim 21, wherein the second information further comprises an IP address reserved for the terminal device and used for network address translation (NAT) translation according to a NAT protocol.
25. The method of claim 24 , wherein the report message further includes the IP address used for NAT translation.
26. The method comprises: the first network element adding the access information of the terminal device to a DNS request message received from the terminal device to obtain a new DNS request message; or The first network element determines a DNS server corresponding to the access information of the terminal device, and sends a DNS request message to the DNS server corresponding to the access information of the terminal device.
26. The method of any one of claims 21 to 25, further comprising:
27. The method comprises: buffering the first DNS response message when the first network element sends the report message to the session management network element.
27. The method of any one of claims 16 to 17 and 19 to 26, further comprising:
28. A communication device adapted for a session management network element, the communication device comprising a processor and a transceiver, the transceiver is configured to transmit and receive information; The processor is coupled to a memory and is configured to invoke a program in the memory to enable the communication device to perform the method according to any one of claims 1 to 15. Communications equipment.
29. A communication device adapted for use in a first network element, the communication device comprising a processor and a transceiver; the transceiver is configured to transmit and receive information; The processor is coupled to a memory and is configured to invoke a program in the memory to enable the communication device to perform the method according to any one of claims 16 to 27. Communications equipment.
30. A communication system comprising a communication device according to claim 28 and a communication device according to claim 29.
31. 1. A communication method comprising: a first Network Address Translation (NAT) translation network element obtaining an Internet Protocol (IP) address reserved for the terminal device and used for NAT translation, the NAT translation being performed according to a NAT protocol; the first NAT translation network element sending the IP address used for NAT translation to a session management network element; Including, The session management network element is configured to send first information to the first NAT translation network element, the first information instructing the first NAT translation network element to send a report message to the session management network element when receiving a first domain name server, DNS, response message that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server; and the session management network element is configured to insert a local session anchor based on the report message; Communication methods.
32. 32. A computer readable storage medium comprising instructions which, when executed on a computer, enable the computer to perform the method of any one of claims 1 to 27 or 31.
33. 1. A communication method comprising: a step of the session management network element sending first information to a first network element, the first information instructing the first network element to send a report message to the session management network element when a first domain name server, DNS, response message is received that satisfies a first condition, the report message including information about an application server indicated by the first DNS response message or information about a data network corresponding to the application server; the first network element receiving the first information; if the first network element determines that the received first DNS response message satisfies a first condition, sending the report message to the session management network element; the session management network element inserting a local session anchor based on the report message; A communication method comprising:
Citation Information
Patent Citations
Service shunting method, device and system
CN110912835A
Session continuity in mobile systems using user plane functions with uplink classifier
US20190274185A1
Methods and apparatus for selecting network resources for UE sessions based on locations of multi-access edge computing (MEC) resources and applications
US20200120446A1
System, apparatus and method to support data server selection
US20200329008A1
