Communication method and communication apparatus

By providing terminal home network information to the DNS server in the mobile communication network, the problem of the terminal being unable to access unauthorized services when visiting the PLMN is solved and the service quality is improved.

WO2024199202A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/083698
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-26
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In a mobile communication network, when a terminal visits a PLMN, if the HPLMN is not authorized to offload services corresponding to the domain name of the VPLMN, the terminal may not be able to access the corresponding services, resulting in limited service quality.

Method used

The first network element sends a query message containing the terminal's home network information to the DNS server to ensure that the DNS server can obtain the application server address corresponding to the unauthorized domain name, so that the terminal can access services provided by the application server.

Benefits of technology

It improves the communication service quality of terminals in the service network, ensures that terminals can access application servers that are not authorized to be diverted to the local data network, and avoids service access failures caused by unauthorized domain names.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024083698_03102024_PF_FP_ABST
    Figure CN2024083698_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a communication method and a communication apparatus. The method comprises: a first network element receiving a first query message from a terminal, the first query message comprising information regarding a first domain name, the first domain name being unauthorized in a network visited by the terminal. The first network element being a network element in the network visited by the terminal. According to the first query message, the first network element sending a second query message to a domain name system (DNS) server, the second query message comprising information regarding the first domain name and information regarding the home network of the terminal, and the home network information being used for determining the address of an application server. And the first network element receiving the application server address from the DNS server. The invention allows for avoiding situations where a terminal is unable to access a service corresponding to a domain name because the domain name is unauthorized within a visited network, thereby improving communication service quality for the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and communication device

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 31, 2023, with application number 202310363701.0 and application name “Communication Method and Communication Device”, the entire contents of which are incorporated by reference into this application. Technical Field

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

[0003] In a mobile communication network, the identifier (ID) of the public land mobile network (PLMN) can be used to distinguish different mobile communication networks (i.e., PLMNs) of different operators. The PLMN to which the terminal subscribes is called the home PLMN (HPLMN). When the terminal leaves the coverage of the HPLMN's wireless network due to movement or other reasons, if the current terminal is in the coverage of another PLMN's wireless network, and the PLMN is a PLMN that has signed a roaming agreement with the terminal's HPLMN, the terminal can access the PLMN through the PLMN's wireless network. The PLMN can be called a visited PLMN (VPLMN), and the terminal accessing the VPLMN can be called roaming. When the user plane of the terminal is terminated in the HPLMN, the terminal's roaming can be called home routed (HR) roaming.

[0004] In the HR roaming scenario of the terminal, the HPLMN can authorize the services corresponding to some domain names to be diverted to the local part of the data network in the VPLMN. The visit-session management function (V-SMF) network element in the VPLMN can configure the relevant network elements in the VPLMN based on the authorization information from the HPLMN, including configuring the edge application server discovery (EASDF). When the terminal queries the Internet protocol (IP) address of the application server (AS) corresponding to the domain name authorized to be diverted to the VPLMN network, the V-EASDF network element can interact with the domain name system (Domain Name System) server to obtain the AS IP address queried by the terminal, so that the AS can provide the terminal with the services corresponding to the domain name.

[0005] However, when a terminal roams in a VPLMN, if the HPLMN does not authorize the offloading of services corresponding to one or more domain names to the local data network of the VPLMN, the service quality that the terminal can obtain may be limited.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a communication method and a communication device, which can enable a terminal to obtain the address of an application server corresponding to a domain name that is not authorized to divert corresponding services to a local data network in a service network, so that the terminal can access the application server in the service network and obtain the services provided by the application server, thereby improving the communication service quality of the terminal.

[0008] In the first aspect, a communication method is provided. The method can be executed by a communication device, which can be a communication device or a component configured in the communication device (such as a chip or a chip system). The following describes the method by taking the first network element as an example.

[0009] The method includes: a first network element receiving a first query message from a terminal, the first network element being in a visited network of the terminal, the first query message including information about a first domain name, the first domain name being unauthorized in the visited network of the terminal; the first network element sending a second query message to a domain name system (DNS) server, the second query message including information about the first domain name and information about the home network of the terminal; and the first network element receiving the address of the application server from the DNS server.

[0010] The home network information in the second query message is used to determine the address of the application server. In other words, the home network information in the second query message is used to obtain the address of the application server. The application server is used to provide the terminal with the service corresponding to the first domain name.

[0011] Exemplarily, the first domain name is not authorized in the visited network of the terminal, including: the service corresponding to the first domain name is not authorized by the home network of the terminal to be diverted to the local data network.

[0012] According to the above solution, when the first network element in the terminal's visited network provides the AS discovery service for the terminal, if the domain name provided by the terminal when querying the address of the AS is a domain name that is not authorized in the terminal's visited network, the first network element provides the information of the terminal's home network to the DNS server, so that the DNS server can query the address of the AS corresponding to the domain name of the local DN of the service network that is not authorized to divert services to the terminal, and provide it to the terminal through the first network element. This enables the terminal to obtain the address of the application server corresponding to the domain name that is not authorized to divert the corresponding service to the local data network in the service network, so that the terminal can access the application server in the service network and obtain the services provided by the application server. This can avoid the terminal being unable to access the service corresponding to the domain name due to unauthorized domain name, and can improve the communication service quality of the terminal.

[0013] In combination with the first aspect, in certain implementations of the first aspect, the method further includes: the first network element receives information from the second network element, the information being used to indicate a rule adopted for a query message from the terminal for querying the address of an application server, the rule including: when the query message for querying the address of the application server includes a domain name that is not authorized in the visited network of the terminal, the first network element provides the DNS server with information about the home network.

[0014] In one embodiment, the rule specifically includes: when the query message for querying the address of the application server includes an unauthorized domain name in the visited network of the terminal, the first network element carries the information of the home network and the unauthorized domain name in a message and provides it to the DNS server.

[0015] According to the above solution, the second network element can indicate to the first network element the rules for processing DNS query messages, and the rules include providing the home network information to the DNS server when the obtained query message contains a domain name that is not authorized in the service network. This allows the first network element to process the DNS query message according to the rule. The DNS server can obtain the home network information of the terminal, and then obtain the address of the AS corresponding to the first domain name based on address affinity according to the first domain name and the home network information of the terminal and provide it to the terminal. The terminal can access the application server in the service network to obtain communication services, which can avoid the terminal being unable to access the service corresponding to the domain name due to unauthorized domain name, and can improve the quality of the terminal's communication services.

[0016] In one implementation, the information is specifically used to indicate a rule adopted for the first query message, and the rule includes: the first network element provides the DNS server with information about the home network.

[0017] In combination with the first aspect, in certain implementations of the first aspect, the first network element is a functional network element for discovering an application server in the visited network of the terminal, and the second network element is a functional network element for managing the session of the terminal in the visited network of the terminal.

[0018] In combination with the first aspect, in some implementations of the first aspect, the second query message includes an ECS option information element, where the ECS option information element indicates information about the home network.

[0019] According to the above solution, the ECS option information element in the DNS query message is reused to transmit the home network information. Compared with the method of modifying the format of the DNS query message to indicate the home network information, the implementation complexity can be reduced.

[0020] In conjunction with the first aspect, in certain implementations of the first aspect, the home network information includes one or more of the following:

[0021] The network protocol IP address of the terminal, the IP address of the user plane function network element in the home network, or the dedicated address of the home network.

[0022] According to the above solution, the home network information can be the IP address of the terminal, the address of the network element in the home network, or the dedicated address of the home network used to obtain the address of the AS, which can improve the accuracy of the DNS server in obtaining the address of the AS based on the home network information.

[0023] In conjunction with the first aspect, in certain implementations of the first aspect, the first network element receiving the address of the application server from the DNS server includes: receiving, by the first network element, a second response message from the DNS server in response to the second query message, the second response message including the address of the application server. Furthermore, the method further includes: sending, by the first network element, a first response message in response to the first query message to the terminal, the first response message including the address of the application server.

[0024] According to the above scheme, the first network element obtains the address of the AS corresponding to the first domain name from the DNS server, and provides the terminal with the address of the AS corresponding to the first domain name in response to the terminal's query, so that the terminal obtains the address of the AS corresponding to the domain name of the local DN that is not authorized to divert services to the visited network in the service network.

[0025] In conjunction with the first aspect, in certain implementations of the first aspect, the method further includes: obtaining, by the first network element, domain name information authorized in a visited network of the terminal and / or domain name information unauthorized in the visited network of the terminal. The first network element determines, based on the domain name information, that the first domain name is unauthorized in the visited network of the terminal.

[0026] Exemplarily, the domain name information includes a first domain name set and / or a second domain name set, the first domain name set including one or more domain names authorized in a visited network of the terminal, and the first domain name does not belong to the first domain name set. The domain name information includes that the second domain name set includes one or more domain names not authorized in the visited network of the terminal, and the first domain name belongs to the second domain name set.

[0027] According to the above solution, the first network element can determine, based on the domain name information, that the first domain name is not authorized in the visited network of the terminal. For example, the determination that the first domain name is not authorized in the visited network of the terminal is based on the fact that the first domain name does not belong to the first domain name set and / or the fact that the first domain name belongs to the second domain name set. When the first network element queries the DNS server for the address of the AS corresponding to the first domain name, the DNS server is provided with the home network information, so that the DNS server can accurately obtain the address of the AS corresponding to the first domain name and feedback it to the terminal.

[0028] In the second aspect, a communication method is provided. The method can be executed by a communication device, which can be a communication device or a component configured in the communication device (such as a chip or a chip system). The following describes the method by taking the second network element as an example.

[0029] The method includes: a second network element sending first information to a terminal, the first information being used to instruct the first network element to discover an application server providing a service for the terminal, the first network element and the second network element being in a visited network of the terminal. The second network element sending second information to the first network element, the second information being used to indicate a rule to be used for a query message from the terminal for querying an address of an application server, the rule including: if the query message for querying the address of the application server includes a domain name that is not authorized in the visited network of the terminal, the first network element providing information about the home network of the terminal to a DNS server.

[0030] Exemplarily, the first domain name is not authorized in the visited network of the terminal, including: the service corresponding to the first domain name is not authorized by the home network of the terminal to be diverted to the local data network.

[0031] According to the above solution, the second network element can indicate to the first network element the rules for processing DNS query messages, which include providing the home network information to the DNS server when the obtained query message contains a domain name that is not authorized in the service network. This allows the first network element to process the DNS query message according to the rule. This enables the DNS server to obtain the home network information of the terminal, and thus obtain the address of the AS corresponding to the first domain name based on address affinity according to the first domain name and the information of the home network of the terminal and provide it to the terminal. This allows the terminal to access the application server in the service network and obtain the services provided by the application server. This can avoid the terminal being unable to access the services corresponding to the domain name due to the unauthorized domain name, and can improve the communication service quality of the terminal.

[0032] In combination with the second aspect, in certain implementations of the second aspect, the rule specifically includes: when the query message used to query the address of the application server includes an unauthorized domain name in the visited network of the terminal, the first network element carries the information of the home network and the unauthorized domain name in a message and provides it to the DNS server.

[0033] For the solutions in the second aspect corresponding to those in the first aspect, the beneficial effects can be found in the description of the first aspect and will not be repeated here.

[0034] In combination with the second aspect, in certain implementations of the second aspect, the method also includes: the second network element receives third information from a third network element, the third network element is in the home network of the terminal, the third information includes information of the home network of the terminal, and the information of the home network is used to query the application server corresponding to the unauthorized domain name in the visited network of the terminal.

[0035] In combination with the second aspect, in some implementations of the second aspect, the information of the home network includes an Internet Protocol IP address of the terminal, an IP address of a user plane function network element in the home network, or a dedicated address of the home network.

[0036] In combination with the second aspect, in certain implementations of the second aspect, the first network element is a functional network element for discovering an application server in the visited network of the terminal, and the second network element is a functional network element for managing the session of the terminal in the visited network of the terminal.

[0037] In combination with the second aspect, in some implementations of the second aspect, the method further includes: the second network element sends the authorized domain name information in the visited network of the terminal and / or the unauthorized domain name information in the visited network of the terminal to the first network element.

[0038] In combination with the second aspect, in certain implementations of the second aspect, the domain name information includes a first domain name set, the first domain name set including one or more domain names authorized in the visited network of the terminal, and the first domain name does not belong to the first domain name set; and / or, the domain name information includes a second domain name set, the second domain name set including one or more domain names that are not authorized in the visited network of the terminal, and the first domain name belongs to the second domain name set.

[0039] On the third aspect, a communication method is provided, which can be executed by a communication device, which can be a communication device or can be executed by a component configured in the communication device (such as a chip or a chip system). The following describes the method by taking the first network element as an example.

[0040] The method includes: a first network element receiving a first query message from a terminal, the first query message including information about a first domain name, the first domain name being unauthorized in a visited network of the terminal; the first network element sending a second query message to a second network element, the second query message including information about the first domain name, and the destination address of the second query message being an address of a Domain Name System (DNS) server, the DNS server being configured to query the terminal for an address of an application server corresponding to a domain name that is unauthorized in the visited network of the terminal, the application server being configured to provide the terminal with a service corresponding to the first domain name.

[0041] Exemplarily, the address of the DNS server is the address of the DNS server corresponding to the home network, or the address of the DNS server is the DNS server in the central data network.

[0042] Exemplarily, the first domain name is not authorized in the visited network of the terminal, including: the service corresponding to the first domain name is not authorized by the home network of the terminal to be diverted to the local data network.

[0043] According to the above solution, when the first network element in the terminal's visited network provides the AS discovery service for the terminal, if the first domain name provided by the terminal when querying the address of the AS is a domain name that is not authorized in the visited network, the first network element provides a query message to the second network element, which includes the unauthorized domain name and the destination address is the address of the above-mentioned DNS server. Through the transmission of the query message by the second network element, the network elements in the network can, based on the destination address of the query message, transmit the query message to the DNS server that can query the address of the AS corresponding to the domain name that is not authorized in the terminal's visited network. This enables the terminal to obtain the address of the application server corresponding to the domain name that is not authorized to divert the corresponding service to the local data network in the service network, so that the terminal can access the application server in the service network and obtain the services provided by the application server. This can avoid the terminal being unable to access the service corresponding to the domain name due to the unauthorized domain name, and can improve the communication service quality of the terminal.

[0044] In combination with the third aspect, in some implementations of the third aspect, the first network element receives the address of the application server from the second network element.

[0045] According to the above scheme, when the above DNS server queries the address of the AS corresponding to the domain name that is not authorized in the terminal's visited network, it can specifically feed back the address of the AS to the terminal through the second network element and the first network element that transmit the query message to the terminal, so that the terminal can obtain the address of the AS.

[0046] In combination with the third aspect, in certain implementations of the third aspect, the method also includes: the first network element receives information from the second network element, the information being used to indicate the rules adopted for the query message from the terminal for querying the address of the application server, the rules including: when the query message for querying the address of the application server includes a domain name that is unauthorized in the visited network of the terminal, the first network element sends a query message to the second network element, the query message including the unauthorized domain name and the destination address being the address of the DNS server.

[0047] In one embodiment, the method also includes: the first network element receives information from the second network element, the information is used to indicate the rules adopted for the first query message, and the rules include: the first network element provides the second query message to the second network element, which includes the first domain name and the destination address is the address of the DNS server.

[0048] According to the above scheme, the second network element can indicate the rules for processing DNS query messages to the first network element, so that the first network element can implement, based on the rules, that the query message containing the unauthorized domain name and the destination address being the address of the DNS server can be passed to the second network element, and finally to the DNS server.

[0049] In combination with the third aspect, in certain implementations of the third aspect, the first network element is a functional network element for discovering an application server in the visited network of the terminal, and the second network element is a functional network element for managing the session of the terminal in the visited network of the terminal.

[0050] In conjunction with the third aspect, in certain implementations of the third aspect, the first network element receiving the address of the application server from the second network element includes: receiving, by the first network element, a second response message from the second network element in response to the second query message, the second response message including the address of the application server. Furthermore, the method further includes: sending, by the first network element, a first response message in response to the first query message to the terminal, the first response message including the address of the application server.

[0051] In conjunction with the third aspect, in certain implementations of the third aspect, the method further includes: obtaining, by the first network element, domain name information authorized in a visited network of the terminal and / or domain name information unauthorized in the visited network of the terminal. The first network element determines, based on the domain name information, that the first domain name is unauthorized in the visited network of the terminal.

[0052] In conjunction with the third aspect, in certain implementations of the third aspect, the domain name information includes a first domain name set and / or a second domain name set, wherein the first domain name set includes one or more domain names authorized in a visited network of the terminal, and the first domain name does not belong to the first domain name set. The second domain name set includes one or more domain names unauthorized in the visited network of the terminal, and the first domain name belongs to the second domain name set.

[0053] In a fourth aspect, a communication method is provided. The method can be executed by a communication device, which can be a communication device or a component configured in a communication device (such as a chip or a chip system). The following is an example of the second network element executing the method.

[0054] The method includes: a second network element receives a second query message from a first network element, the second query message includes information about a first domain name from a terminal, and the destination address of the second query message is an address of a domain name system DNS server, the first domain name is not authorized in a visited network of the terminal, the DNS server is used to query the terminal for an address of an application server corresponding to a domain name that is not authorized in the visited network of the terminal, the application server is used to provide the terminal with services corresponding to the first domain name, the second query message is used to query the DNS server for an address of an application server corresponding to the first domain name for the terminal, the first network element is a functional network element in the visited network of the terminal for managing the session of the terminal, and the second network element is a functional network element in the visited network of the terminal for discovering application servers.

[0055] According to the above solution, the second network element indicates to the first network element the rules for handling DNS query messages. Based on the rules, the first network element can forward query messages containing the unauthorized domain name and with the destination address being the DNS server address to the second network element, namely, the control plane network element in the terminal's visited network that manages the terminal session. The terminal then forwards the query message to the control plane network element in the visited network, allowing the network elements in the network to forward the query message, based on the destination address of the query message, to a DNS server that can retrieve the address of the AS corresponding to the domain name unauthorized in the terminal's visited network. Furthermore, in this solution, even if the terminal encrypts the query message, the first network element for discovering the AS can still determine whether the domain name contained in the query message is unauthorized in the visited network. Thus, based on the rules, the query message is forwarded, allowing the terminal to obtain the address of the AS corresponding to the domain name. This enables the terminal to obtain the address of the application server corresponding to the domain name that is not authorized to offload the corresponding service to the local data network in the serving network, allowing the terminal to access the application server in the serving network and obtain the services provided by the application server. This can prevent the terminal from being unable to access the service corresponding to the domain name due to the domain name being unauthorized, and can improve the communication service quality of the terminal.

[0056] In combination with the fourth aspect, in certain implementations of the fourth aspect, the second network element queries the DNS server for the address of the application server corresponding to the first domain name for the terminal through a network element in the terminal's home network.

[0057] Exemplarily, the second network element sends a third query message to the third network element, and the third query message is used to query the DNS server for the address of the application server corresponding to the first domain name for the terminal, and the third query message includes information of the first domain name, wherein the third network element is a functional network element in the home network for managing the session of the terminal.

[0058] According to the above solution, the terminal transmits the query message through the control plane network element of the visited network, allowing the query message to be transmitted to the terminal's home network and then, through the home network, to a DNS server capable of querying the address of the AS corresponding to the first domain name. This enables the terminal to obtain, in the serving network, the address of the application server corresponding to the domain name that is not authorized to offload the corresponding service to the local data network.

[0059] In conjunction with the fourth aspect, in certain implementations of the fourth aspect, the method further includes:

[0060] The second network element sends information to the first network element, where the information is used to indicate a rule adopted for a query message from the terminal for querying the address of the application server, where the rule includes: when the query message for querying the address of the application server includes a domain name that is unauthorized in a visited network of the terminal, the first network element sends a query message to the second network element, where the query message includes the unauthorized domain name and the destination address is the address of the DNS server.

[0061] In one embodiment, the second network element sends information to the first network element, where the information is used to indicate the rules adopted for the first query message, and the rules include: the first network element provides the second query message to the second network element, which includes the first domain name and the destination address is the address of the DNS server.

[0062] For the solutions in the fourth aspect corresponding to those in the third aspect, the beneficial effects can be found in the description of the third aspect and will not be repeated here.

[0063] In combination with the fourth aspect, in certain implementations of the fourth aspect, the response message containing the address of the AS corresponding to the first domain name can be transmitted to the terminal through the first network element, the second network element and the third network element that transmit the query message, that is, it can be transmitted to the terminal through the control plane network element that transmits the query message.

[0064] Specifically, the second network element receives a third response message from a third network element, the third response message including the address of the application server corresponding to the first domain name, and the third network element is a functional network element in the home network for managing the session of the terminal. Furthermore, the method further includes: the second network element sending a second response message to the first network element in response to the second query message, the second response message including the address of the application server corresponding to the first domain name.

[0065] In combination with the fourth aspect, in certain implementations of the fourth aspect, the response message containing the address of the AS corresponding to the first domain name can be delivered to the terminal through the user plane network element in the home network and the user plane network element of the terminal's visited network.

[0066] In the fifth aspect, a communication method is provided. The method can be executed by a communication device, which can be a communication device or a component configured in the communication device (such as a chip or a chip system). The following is an example of the second network element executing the method.

[0067] The method includes: a second network element sending first information to a terminal, the first information being used to instruct the first network element to discover an application server providing a service for the terminal, the first network element being a functional network element in a visited network of the terminal being used to manage sessions of the terminal, and the second network element being a functional network element in the visited network being used to discover application servers. The second network element sending second information to the first network element, the second information being used to indicate a rule to be used for a first query message from the terminal for querying an address of an application server, the rule including: if the first query message includes a domain name that is unauthorized in the visited network, the first network element sending a second query message to the second network element, the second query message including the unauthorized domain name and having a destination address that is an address of a DNS server, wherein the DNS server is used to query the terminal for the address of an application server corresponding to the unauthorized domain name in the visited network.

[0068] For the beneficial effects of the scheme in the fifth aspect, please refer to the description of the beneficial effects of the corresponding schemes in the third and fourth aspects, and will not be repeated here.

[0069] In the sixth aspect, a communication method is provided, which can be executed by a communication device, which can be a communication device or can be executed by a component configured in the communication device (such as a chip or a chip system). The following is an example of the first network element executing the method.

[0070] The method includes: a fourth network element receiving a first query message, the first query message including information about a first domain name from a terminal, the first domain name being unauthorized in a visited network of the terminal; and the fourth network element sending a fourth query message, the fourth query message including information about the first domain name, the destination address of the fourth query message being an address of a Domain Name System (DNS) server, the DNS server being configured to query the terminal for an address of an application server corresponding to a domain name that is unauthorized in the visited network of the terminal, the application server being configured to provide the terminal with a service corresponding to the first domain name.

[0071] Exemplarily, the fourth network element is a functional network element in the terminal's visited network for managing the terminal's session, a functional network element in the home network for managing the terminal's session, a user plane functional network element in the home network, or a functional network element in the home network for discovering an application server.

[0072] Exemplarily, the first domain name is not authorized in the visited network of the terminal, including: the service corresponding to the first domain name is not authorized by the home network to be diverted to the local data network.

[0073] According to the above solution, when the fourth network element obtains a domain name that is not authorized in the visited network from the first terminal, the fourth network element transmits a query message containing the unauthorized domain name and the destination address is the address of the above-mentioned DNS server. Based on the destination address of the query message, the network element in the network can transmit the query message to the DNS server that can query the address of the AS corresponding to the domain name that is not authorized in the visited network of the terminal. It can enable the terminal to obtain the address of the application server corresponding to the domain name that is not authorized to divert the corresponding service to the local data network in the service network, so that the terminal can access the application server in the service network and obtain the service provided by the application server. It can avoid the terminal being unable to access the service corresponding to the domain name due to the unauthorized domain name, and can improve the communication service quality of the terminal.

[0074] In combination with the sixth aspect, in some implementations of the sixth aspect, the fourth network element receives the address of the application server.

[0075] In combination with the sixth aspect, in certain implementations of the sixth aspect, the fourth network element is a functional network element in the visited network of the terminal for managing the session of the terminal, and sending the fourth query message includes: sending the fourth query message to the functional network element in the home network for managing the session of the terminal.

[0076] In conjunction with the sixth aspect, in certain implementations of the sixth aspect, the fourth network element is a functional network element in a visited network of the terminal for managing a session of the terminal, and the method further includes: the fourth network element sending information to a first network element, the first network element being a network element in the visited network of the terminal for discovering an application server. The information is used to indicate a rule to be used for a query message from the terminal for querying an address of an application server, the rule including: if the query message for querying the address of the application server includes a domain name that is unauthorized in the visited network of the terminal, the first network element sending the query message for querying the address of the application server to the second network element.

[0077] In conjunction with the sixth aspect, in certain implementations of the sixth aspect, the fourth network element receiving the address of the application server includes: receiving, by the fourth network element, a fourth response message to the fourth query message, the fourth response message including the address of the application server; and sending, by the fourth network element, a first response message to the terminal in response to the first query message, the first response message including the address of the application server.

[0078] In the seventh aspect, a communication method is provided, which can be executed by a communication device, which can be a communication device or can be executed by a component configured in the communication device (such as a chip or a chip system). The following is an example of a terminal executing the method.

[0079] The method includes: a terminal determining that a first domain name to be queried is not authorized in a visited network; the terminal determining a first message, the first message including a query message and indication information, the query message being used to query an address of an application server corresponding to the first domain name; the indication information being used to indicate that the query message is used to query an address of an AS corresponding to a domain name not authorized in the visited network, or the indication information being used to indicate that the query message includes a domain name not authorized in the visited network; and the terminal sending the first message to a user plane function network element in the visited network.

[0080] According to the above solution, the terminal notifies the user plane network element through indication information that the query message includes a domain name that is not authorized in the visited network. Therefore, even if the terminal encrypts the query message (such as DHO or DOT), although the user plane function network element cannot interpret the query message, it can determine to transmit the query message to the UPF network element in the home network through the indication information in the first message without interpreting the query message, so as to query the address of the AS corresponding to the domain name that is not authorized in the visited network for the terminal through the home network. This allows the terminal to access the address of the application server corresponding to the unauthorized domain name in the visited network and obtain the services provided by the application server. This can prevent the terminal from being unable to access the services corresponding to the domain name due to the unauthorized domain name, and can improve the communication service quality of the terminal.

[0081] In the eighth aspect, a communication method is provided, which can be executed by a communication device, which can be a communication device or a component configured in a communication device (such as a chip or a chip system). The following is an example of a terminal executing the method.

[0082] The method includes: a first user plane function network element receiving a first message from a terminal, the first message including a query message and indication information, the query message being used to query an address of an application server corresponding to a first domain name, the indication information being used to indicate that the query message is used to query an address of an AS corresponding to a domain name that is not authorized in a visited network, or the indication information being used to indicate that the query message includes a domain name that is not authorized in the visited network. The first user plane function network element is located in the visited network of the terminal. The first user plane function network element sends the query message to a second user plane function network element located in the home network of the terminal.

[0083] For the beneficial effects of the solution in the eighth aspect, please refer to the description of the beneficial effects of the solution in the seventh aspect, which will not be repeated here.

[0084] In a ninth aspect, a communication method is provided, which can be executed by a communication system comprising a first network element and a second network element.

[0085] The method includes: the second network element sends first information to the terminal, the first information is used to instruct the first network element to discover an application server that provides services for the terminal, the first network element and the second network element are in the visited network of the terminal, and the first network element and the second network element are in the visited network of the terminal.

[0086] The second network element sends second information to the first network element, where the second information is used to indicate a rule adopted for a query message from the terminal for querying the address of an application server, the rule including: when the query message for querying the address of the application server includes a domain name that is not authorized in a visited network of the terminal, the first network element provides information of the home network of the terminal to the DNS server.

[0087] The first network element receives a first query message from the terminal, where the first query message includes information about a first domain name, and the first domain name is not authorized in a visited network of the terminal.

[0088] The first network element sends a second query message to the domain name system DNS server. The second query message includes information about the first domain name and information about the terminal's home network. The information about the home network is used to determine the address of an application server. The application server is used to provide the terminal with services corresponding to the first domain name.

[0089] The first network element receives the address of the application server from the DNS server, and the first network element sends the address of the application server to the terminal.

[0090] In combination with the ninth aspect, in certain implementations of the ninth aspect, the communication system also includes the above-mentioned terminal.

[0091] In a tenth aspect, a communication method is provided, which can be executed by a communication system comprising a first network element and a second network element.

[0092] The method includes: a first network element receiving a first query message from a terminal, the first query message including information of a first domain name, the first domain name being unauthorized in a visited network of the terminal;

[0093] The first network element sends a second query message to the second network element, where the second query message includes information about the first domain name, and a destination address of the second query message is an address of a domain name system (DNS) server, where the DNS server is used to query, for the terminal, an address of an application server corresponding to an unauthorized domain name in a visited network of the terminal, where the application server is used to provide a service corresponding to the first domain name for the terminal;

[0094] The second network element queries the DNS server for the address of the application server corresponding to the first domain name for the terminal through the network element in the home network of the terminal;

[0095] The first network element receives the address of the application server from the second network element;

[0096] The first network element sends the address of the application server to the terminal.

[0097] In an eleventh aspect, a communication device is provided, which may include a module for performing the methods / operations / steps / actions described in aspects 1 to 8 and any possible implementation of aspects 1 to 8. The module may be a hardware circuit, software, or a combination of hardware circuits and software. For details, please refer to the detailed description in the corresponding method examples above, which will not be repeated here.

[0098] In a twelfth aspect, a communication device is provided, comprising a processor. The processor is coupled to the memory and can be used to execute instructions in the memory to implement the method in the first to eighth aspects and any possible implementation of the first to eighth aspects.

[0099] Optionally, the communication device further includes the memory.

[0100] Optionally, the communication device further comprises a communication interface, and the processor is coupled to the communication interface. In the present application, the communication interface can be a transceiver, a pin, a circuit, a bus, a module or other types of communication interfaces, without limitation.

[0101] In one implementation, the communication apparatus is a communication device. When the communication apparatus is a communication device, the communication interface may be a transceiver, or the communication interface may be an input / output interface.

[0102] Optionally, the transceiver may be a transceiver circuit. Optionally, the input / output interface may be an input / output circuit.

[0103] In another implementation, the communication device is a chip configured in a communication device. When the communication device is a chip configured in a communication device, the communication interface may be an input / output interface.

[0104] In a thirteenth aspect, a processor is provided, comprising: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method of aspects 1 to 8 and any possible implementation of aspects 1 to 8.

[0105] In a specific implementation, the processor may be one or more chips, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, or various logic circuits. The input signal received by the input circuit may be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit may be, for example, but not limited to, output to and transmitted by a transmitter. The input circuit and the output circuit may be the same circuit, which functions as an input circuit and an output circuit at different times. This application does not limit the specific implementation of the processor and various circuits.

[0106] In the fourteenth aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute the method in the above-mentioned first to eighth aspects and any possible implementation of the first to eighth aspects.

[0107] In the fifteenth aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions) which, when run on a computer, enables the computer to execute the method in the above-mentioned first to eighth aspects and any possible implementation of the first to eighth aspects.

[0108] In the sixteenth aspect, the present application provides a communication system, which includes a first communication device and a second communication device, the first communication device being used to execute the method executed by the first network element in any possible implementation of the above-mentioned first to eighth aspects and the first to eighth aspects, and the second communication device being used to execute the method executed by the second network element in any possible implementation of the above-mentioned first to eighth aspects and the first to eighth aspects.

[0109] In one embodiment, the communication system further includes a terminal for executing the method in any possible implementation of the first to eighth aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0110] FIG1 is a schematic diagram of a communication system architecture provided by an embodiment of the present application;

[0111] FIG1A is another schematic diagram of a communication system architecture provided by an embodiment of the present application;

[0112] FIG2 is a schematic flow chart of a communication method provided in an embodiment of the present application;

[0113] FIG3 is a schematic flowchart of a communication method provided in an embodiment of the present application applied to a terminal roaming scenario;

[0114] FIG4 is another schematic flow chart of a communication method provided in an embodiment of the present application;

[0115] FIG5 is another schematic flowchart of the communication method provided in an embodiment of the present application applied to a terminal roaming scenario;

[0116] FIG6 is a schematic block diagram of a communication device provided in an embodiment of the present application;

[0117] FIG7 is another schematic structural diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0118] The technical solution in this application will be described below with reference to the accompanying drawings.

[0119] In the embodiments of this application, " / " can indicate that the objects associated with each other are in an "or" relationship. For example, A / B can mean A or B. "And / or" can be used to describe the existence of three relationships between the associated objects. For example, "A and / or B" can mean: A exists alone, A and B exists simultaneously, and B exists alone. A and B can be singular or plural. To facilitate the description of the technical solutions of the embodiments of this application, the words "first" and "second" can be used to distinguish them in the embodiments of this application. The words "first" and "second" do not limit the quantity or order of execution, and the words "first" and "second" do not necessarily mean different. In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. The use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete way to facilitate understanding. In the embodiments of the present application, at least one (kind) can also be described as one (kind) or multiple (kinds), and multiple (kinds) can be two (kinds), three (kinds), four (kinds) or more (kinds), and this application does not limit it.

[0120] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as long term evolution (LTE) systems, fifth generation (5G) communication systems, such as 5G new radio (NR) systems, sixth generation (6G) communication systems, and future communication systems, or systems that integrate multiple communication systems, etc., and are not limited to the embodiments of the present application.

[0121] The terminal device involved in the embodiments of the present application may also be referred to as a terminal. A terminal may be a device with wireless transceiver capabilities. The terminal may be deployed on land, including indoors, outdoors, handheld, and / or vehicle-mounted; it may also be deployed on water (such as a ship, etc.); it may also be deployed in the air (for example, on an airplane, a balloon, and a satellite, etc.). The terminal device may be a user equipment (UE). The UE includes a handheld device, a vehicle-mounted device, a wearable device, or a computing device with wireless communication capabilities. Exemplarily, the UE may be a mobile phone, a tablet computer, or a computer with wireless transceiver capabilities. The terminal device may also be a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in unmanned driving, a wireless terminal in telemedicine, a wireless terminal in a smart grid, a wireless terminal in a smart city, and / or a wireless terminal in a smart home, etc.

[0122] The radio access network (RAN) network element involved in the embodiments of the present application may be a RAN device, including a base station (BS), which may be a device deployed in a radio access network that can communicate wirelessly with a terminal device. The base station may have various forms, such as a macro base station, a micro base station, a relay station or an access point. The base station involved in the embodiments of the present application may be a next generation access network (NG-RAN) device in a 5G system, a base station in a long term evolution (LTE) system, or a base station in another system, without limitation. Among them, the NG-RAN device in the 5G system may also be called a transmission reception point (TRP) or a next generation network element B (generation Node B, gNB or gNodeB). Among them, the base station may be an integrated base station or a base station separated into multiple network elements, without limitation. For example, the base station is a base station separated from a centralized unit (CU) and a distributed unit (DU), that is, the base station includes a CU and a DU.

[0123] Figure 1 is a schematic diagram of a network architecture applicable to an embodiment of the present application. As shown in Figure 1, the network architecture may include a UE, an access network element (such as a (R)AN) in an access network, and a core network element in a core network. The core network may include an access and mobility management function (AMF) network element, a session management function (SMF) network element, a user plane function (UPF) network element, an authentication server function (AUSF) network element, a policy control function (PCF) network element, an application function (AF) network element, a unified data management function (UDM) network element, a network slice selection function (NSSF) network element, and other functional units as shown in Figure 1. Each functional network element is introduced below.

[0124] The AMF network element is mainly responsible for mobility management, access management and other services, such as user location update, user registration network, user switching, etc.

[0125] The SMF network element is primarily responsible for session management, terminal device address management and allocation, Dynamic Host Configuration Protocol (DHCP) functions, and user plane function selection and control. It primarily manages sessions in mobile networks, such as session establishment, modification, and release. Specific functions include allocating IP addresses to users and selecting the UPF that provides packet forwarding capabilities.

[0126] FIG1A is a schematic diagram of an HR roaming network architecture applicable to an embodiment of the present application. In an HR roaming scenario, the SMF network element in the terminal's home network can be denoted as an H-SMF network element, and the network element in the terminal's visited network can be denoted as a V-SMF network element. Information can be exchanged between the V-SMF network element and the H-SMF network element via interface 16 (denoted as N16).

[0127] The UPF network element is mainly responsible for data packet routing and forwarding, message filtering, and performance of quality of service (QoS) control related functions for external connections to the data network (DN) and the user plane. The UPF network element directly connected to the DN through N6 in a session is called a protocol data unit (PDU) session anchor (PSA). Specifically, the core network may include a UPF network element connected to the DNS server (which may be called the central DNS server) in the central data network (Central DN), and the UPF network element may be specifically called a center PSA (C-PSA). The core network may also include a UPF network element connected to the DNS server in the local data network (Local part of DN), and the UPF network element may be specifically called a local PSA (L-PSA). A local data network refers to a group of network entities deployed in a local data network, or a local data network refers to a data network deployed locally.

[0128] In the HR roaming scenario, as shown in Figure 1A, the UPF network element in the terminal's home network can be denoted as the H-UPF network element, and the UPF network element in the terminal's visited network can be denoted as the V-UPF network element. The V-UPF network element and the H-UPF network element can exchange information through interface 9 (denoted as N9).

[0129] UDM is primarily responsible for storing the subscription data, credentials, and Subscriber Permanent Identifier (SUPI) of subscribed terminal devices in the network, and provides a service-oriented interface called Nudm. This data can be used for authentication and authorization of terminal devices to access the operator's network.

[0130] AUSF is mainly responsible for the authentication function of terminal devices.

[0131] The PCF network element is mainly responsible for providing a unified policy framework for network behavior management, providing policy rules for control plane functions, obtaining registration information related to policy decisions, etc. The service interface provided is Npcf.

[0132] In the HR roaming scenario, as shown in Figure 1A, the PCF network element in the terminal's home network can be denoted as the H-PCF network element, and the UPF network element in the terminal's visited network can be denoted as the V-PCF network element. The V-PCF network element and the H-PCF network element can exchange information through interface 24 (denoted as N24).

[0133] The NSSF network element is mainly responsible for selecting a set of network slice instances to provide services to the UE through network slicing technology, dividing a physical network into multiple logical networks to achieve multiple uses of one network and provide users with personalized network services.

[0134] In the HR roaming scenario, the NSSF network element in the terminal's home network can be recorded as the H-NSSF network element, and the network element in the terminal's visited network can be recorded as the V-NSSF network element. The V-NSSF network element and the H-NSSF network element can exchange information through interface 58 (referred to as N31).

[0135] It should be noted that the above-mentioned functional networks can work independently or be combined to implement certain control functions, such as access control and mobility management functions such as access authentication, security encryption, location registration, etc. for terminal devices, as well as session management functions such as establishment, release and modification of user plane transmission paths.

[0136] As shown in Figure 1, the functional network elements can communicate with each other through network interfaces, such as: UE can transmit control plane messages with AMF network elements through interface 1 (denoted as N1), RAN network elements can establish user plane data transmission channels with UPF through interface 3 (denoted as N3), RAN network elements can establish control plane signaling connections with AMF network elements through interface 2 (denoted as N2), UPF can exchange information with SMF network elements through interface 4 (denoted as N4), UPF can exchange user plane data with data network DN through interface 6 (denoted as N6), different UPF network elements can exchange information through interface N9, AMF network elements can exchange information with SMF network elements through interface 11 (denoted as N11), SMF network elements can exchange information with PCF network elements through interface 7 (denoted as N7), and AMF network elements can exchange information with AUSF through interface 12 (denoted as N12). It should be noted that Figure 1 is only an exemplary architecture diagram. In addition to the functional units shown in Figure 1, the network architecture may also include other functional units. This application is not limited to this.

[0137] In edge computing (EC) deployment scenarios, some services may be provided by multiple edge application servers (EAS) deployed at the edge of the network. When a terminal needs to access these services, the EC scenario requires the terminal to access and access the available EAS closest to the terminal. Therefore, the terminal needs to obtain the appropriate EAS internet protocol (IP) address. The terminal can discover the EASDF network element through the edge application server in the network that assists the terminal in discovering the EAS. The EASDF network element mainly processes the Domain Name System (DNS) message according to the instructions of the SMF network element, including: receiving a DNS query message from the UE, including the full qualified domain name (FQDN), and reporting the FQDN in the DNS query message to the SMF network element. In addition, the EASDF network element receives DNS extended mechanisms for DNS-client-subnet (ECS) option establishment information (this information is recorded as info to build ECS option) from the SMF network element, and adds the ECS option information element in the DNS query according to the ECS option establishment information. The EASDF network element sends the processed DNS query to the DNS server and receives a DNS response message from the DNS server to obtain the EAS IP address corresponding to the FQDN queried by the UE and sends it to the UE.

[0138] When a terminal roams within a VPLMN, the HPLMN can authorize the offloading of services corresponding to one or more FQDNs to the VPLMN's local data network. However, for FQDNs for which the HPLMN has not authorized offloading of services to the VPLMN's local data network, the quality of service available to the terminal may be limited. For example, when roaming within a VPLMN, a terminal may be unable to access services corresponding to domain names that are not authorized to be offloaded to the VPLMN's local data network.

[0139] In response to the above-mentioned problems, an embodiment of the present application provides a corresponding solution. The functional network element for discovering an application server (AS) can obtain the information of the terminal's home network. When providing the AS discovery service for the terminal, the information of the terminal's home network is provided to the DNS server, so that the DNS server can query the address of the AS corresponding to the domain name of the local DN of the service network that is not authorized to divert services to the terminal. The address is then provided to the terminal through the functional network element for discovering the AS, thereby enabling the terminal to obtain the address of the AS corresponding to the domain name of the local DN of the service network that is not authorized to divert services to the terminal in the service network. This enables the terminal to access the services it needs and improve the communication quality of the terminal.

[0140] Figure 2 is a schematic flow chart of a communication method 200 provided in an embodiment of the present application. In this communication method 200, the terminal's serving network may be a visited network, meaning the terminal is roaming in the visited network. Alternatively, the terminal's serving network may be an intermediate network whose PLMN is the same as the PLMN of the terminal's home network. An intermediate network can be understood as a network composed of intermediate network elements providing services to the terminal, for example, an intermediate session management function (I-SMF) network element providing session management services to the terminal. This method 200 enables the terminal to query the address of an AS corresponding to a domain name that is not authorized in the visited network or serving network, thereby enabling access to the AS in the visited network or intermediate network. Alternatively, the serving network may be the terminal's home network. For example, in the embodiment shown in Figure 2, the terminal needs to query the address of an AS that is not cooperating with the terminal's home network, or that AS is cooperating with a network of another operator other than the terminal's home network. This method 200 enables the terminal to query the address of the AS and access the AS that is not cooperating with the home network. The following mainly uses the example of the terminal's service network being the terminal's visited network as an example for explanation. It should be understood that the present application is not limited to this, and the service network may also be the above-mentioned intermediate network or home network.

[0141] The first network element is a functional network element for discovering the AS in the current service network of the terminal. For example, the first network element can be called an edge application server discovery function EASDF network element or an application server discovery function ASDF network element. The method 200 includes but is not limited to the following steps:

[0142] S201: The terminal sends a first query message to a first network element, where the first query message includes information about a first domain name.

[0143] The first query message is used to query the address of the AS corresponding to the first domain name, and the AS is used to provide services for the terminal.

[0144] The first network element receives the first query message from the terminal. The first network element determines the address of the AS corresponding to the first domain name queried by the terminal. The information of the first domain name in the first query message may be the first domain name, such as the first domain name may be a full qualified domain name (FQDN). Alternatively, the information of the first domain name may be an identifier of the first domain name. The information of the first domain name is used to enable the first network element to determine the first domain name. The present application does not limit the specific implementation form of the information of the first domain name. It should be understood that the first domain name can also be described as business information, that is, business information can be represented by a domain name, or business information can be represented by a uniform resource identifier (URI) / uniform resource locator (URL), and business information can also be represented by an application identifier. The present application does not limit this, and the present application only uses the domain name as an example for illustration.

[0145] The first network element can determine that the first domain name is not authorized in the service network. In the present application, the domain name is not authorized in the service network of the terminal, including: the service corresponding to the domain name is not authorized by the terminal's home network to be diverted to the local DN. The domain name is authorized in the service network of the terminal, including: the service corresponding to the domain name is authorized by the terminal's home network to be diverted to the local DN. Among them, the local DN refers to a DN deployed locally and / or distributedly. The local DN can be accessed by the network element in the visited network, or the terminal can access the local DN through the visited network. For example, the first domain name is not authorized in the service network of the terminal, including: the service corresponding to the first domain name is not authorized by the terminal's home network to be diverted to the local DN.

[0146] In an optional implementation, the first network element may obtain information about domain names authorized in the serving network and / or information about domain names not authorized in the serving network. The first network element determines, based on the domain name information, that the first domain name is not authorized in the serving network.

[0147] In one example, a first network element obtains domain name information authorized in a service network. The domain name information may include a first domain name set. The first domain name set includes one or more domain names authorized in the service network. The first network element may determine that the first domain name is an unauthorized domain name in the service network based on the fact that the first domain name does not belong to the first domain name set.

[0148] In another example, a first network element obtains domain name information that is not authorized in a serving network. The domain name information may include a second domain name set. The first network element obtains domain name information that is authorized in the serving network and domain name information that is not authorized in the serving network. The first domain name set includes one or more domain names that are not authorized in the serving network. The first network element may determine that the first domain name is an unauthorized domain name in the serving network based on the fact that the first domain name belongs to the second domain name set.

[0149] In another example, the domain name information may include the above-mentioned first domain name set and the above-mentioned second domain name set. The first network element determines that the first domain name is an unauthorized domain name in the service network based on the fact that the first domain name does not belong to the first domain name set and / or the first domain name belongs to the second domain name set.

[0150] The first network element may obtain the domain name information in the following ways, but is not limited to:

[0151] In one embodiment, the first network element obtains the domain name information from the configuration information of the first network element (such as the configuration information stored in the first network element). In other words, the domain name information is configured in the first network element.

[0152] For example, before the first network element receives the first query message, the second network element may send the domain name information to the first network element, and the first network element stores the domain name information in the configuration information of the first network element. After receiving the first query message, the first network element obtains the domain name information from the configuration information.

[0153] In another embodiment, after receiving the first query message, the first network element may send a request message to the second network element, requesting information about domain names authorized in the serving network and / or information about domain names not authorized in the serving network. After receiving the request message, the second network element sends the domain name information requested in the request message to the first network element. Based on the domain name information, the first network element determines that the first domain name is not authorized in the serving network.

[0154] The above-mentioned second network element can be a functional network element used to manage the session of the terminal in the service network of the terminal. The second network element can be called a session management function SMF network element.

[0155] In one example, the service network of the terminal may be a visited network of the terminal, the first network element is an EASDF network element in the visited network, namely, a V-EASDF network element, and the second network element is an SMF network element in the visited network, namely, a V-SMF network element. The V-SMF network element may send the domain name information to the V-EASDF network element. The domain name information may be included in the VPLMN offloading information (VPLMN offloading info) sent by the V-SMF network element to the V-EASDF network element, such as the domain name information may be an authorized traffic for Home Routed with Session Breakout in VPLMN information element or a non-authorized traffic for Home Routed with Session Breakout in VPLMN information element in the VPLMN offloading information. However, the present application is not limited thereto.

[0156] In another optional implementation, after receiving the first query message, the first network element sends the first domain name to the second network element. The second network element determines that the first domain name is not authorized in the serving network based on the first domain name and information about authorized domain names and / or unauthorized domain names in the serving network obtained by the second network element. The second network element sends information about the home network of the terminal to the first network element. The home network information is used by the first network element to determine the second query message in S202.

[0157] In one embodiment, the first network element may determine, based on the acquired information about the home network of the terminal, that the first domain name is not authorized in the serving network.

[0158] Alternatively, the first network element may not determine whether the first domain name is authorized in the serving network. After the first network element obtains the terminal's home network information from the second network element, it determines a second query message in S202 based on the first query message and the terminal's home network information. In S202, the first network element sends a second query message to the DNS server. The second query message includes information about the first domain name and information about the terminal's home network. The home network information is used to determine the address of the AS corresponding to the first domain name.

[0159] The information of the home network of the terminal in the second query message may be considered as information used to obtain the address of the AS corresponding to the first domain name.

[0160] In S201, the first network element determines, based on the first query message, that the terminal queries the address of the AS corresponding to the first domain name that is not authorized in the serving network. The first network element then includes the information of the terminal's home network obtained before receiving the first query message and the information of the first domain name obtained based on the first query message in a second query message and sends it to the DNS server. Alternatively, after receiving the first query message, the first network element sends the first domain name to the second network element, and after obtaining the information of the home network from the second network element, sends a second query message including the first domain name and the information of the terminal's home network to the DNS server.

[0161] A second query message containing information about the terminal's home network is sent to the DNS server through the first network element, so that the DNS server can determine the address of the AS corresponding to the first domain name that is not authorized in the terminal's service network based on the information about the terminal's home network in the second query message, so that the terminal can obtain the address of the AS corresponding to the first domain name that is not authorized in the service network in the service network (i.e., the visited network or intermediate network).

[0162] Exemplarily, the second query message includes an ECS option information element, where the ECS option information element is used to indicate information about the home network of the terminal.

[0163] The terminal's home network information may be information used to characterize the location of the home network, such as address information used to characterize the location of the home network. Exemplarily, the terminal's home network information may be an Internet Protocol (IP) address of the terminal, an IP address of a user plane function network element in the terminal's home network, or a dedicated address of the terminal's home network. This allows the DNS server to obtain the terminal's home network information through the second query message and, based on address affinity, determine the address of the AS corresponding to the first domain name.

[0164] For example, the terminal's home network information may be the terminal's IP address 1, which can be used to obtain the address of the AS corresponding to the unauthorized domain name in the serving network. The terminal's IP address 1 is anchored to the UPF network element in the terminal's home network. The second query message includes the terminal's IP address 1, and the DNS server can determine the address of the AS corresponding to the first domain name based on the IP address 1.

[0165] The home network of the terminal may allocate two IP addresses to the terminal. For example, in a multi-homed scenario, the network side allocates IP address 1 and IP address 2 to the terminal. If the source address in the first query message is IP address 2 of the terminal and the destination address is the IP of the first network element, the first network element can determine that the first query message comes from the terminal based on the source address in the first query message being IP address 2 of the terminal. However, the present application is not limited to this. The IP address of the terminal used to obtain the address of the AS corresponding to the first domain name and the IP address of the terminal used by the terminal to receive or send messages may be the same IP address of the terminal.

[0166] The information of the terminal's home network may also be the IP address of a UPF network element in the terminal's home network or a dedicated address of the home network. The dedicated address of the terminal's home network may be a dedicated address used to obtain the address of the AS corresponding to an unauthorized domain name in the terminal's service network, or the dedicated address of the home network may also be used for other purposes. This application is not limited to this. For example, the dedicated address of the home network may be the IP address of the terminal, where the IP address of the terminal refers to the IP address after network address translation (NAT). For another example, the dedicated address of the home network may be the address of a specific network element of the home network, specifically the address of the home network session management function network element, or the address of the home network edge application server discovery function.

[0167] In an optional implementation, the first network element may provide the information of the home network of the terminal to the DNS server after receiving the first query message according to a rule adopted for the query message from the terminal.

[0168] The second network element may send information to the first network element, where the information is used to indicate the rule adopted for the query message from the terminal. Correspondingly, the first network element receives the information, indicating the rule adopted for the query message from the terminal.

[0169] In a first example, the rule includes: when a query message from a terminal includes a domain name that is not authorized in a visited network, the first network element provides information about the home network of the terminal to a DNS server.

[0170] The second network element may obtain the home network information of the terminal from a network element in the home network and send the information to the first network element. The home network information of the terminal may be included in the information used to indicate the rule.

[0171] The rule indicated by the second network element to the first network element specifically includes: when the query message from the terminal includes an unauthorized domain name in the visited network, the first network element provides the home network information of the terminal and the unauthorized domain name to the DNS server in one message.

[0172] For example, the second network element may be an SMF network element in the service network of the terminal, and the first network element may be an EASDF network element in the service network of the terminal. The SMF network element sends DNS context update information to the EASDF network element. The DNS context update information includes a rule for query messages from the terminal. The rule includes: when a query message received from the terminal includes a domain name that is not authorized in the visited network, the EASDF network element adds the terminal's home network information as an ECS option information element to the query message and provides it to the DNS server. When the EASDF network element receives the first query message from the terminal, the EASDF network element adds the terminal's home network information as an ECS option information element to the first query message to obtain a second query message, and sends the second query message to the DNS server, so that the DNS server determines the address of the AS corresponding to the first domain name based on the home network information as the ECS option information element.

[0173] In Example 2, the rule includes: after receiving a query message from the terminal, providing the domain name in the query message to the second network element.

[0174] As described above, the first network element sends the first domain name to the second network element according to the rule. The second network element determines that the first domain name is not authorized in the serving network and sends the terminal's home network information to the first network element. The first network element provides the terminal's home network information to the DNS server.

[0175] For example, the first network element is an EASDF network element in the service network, and the second network element is an SMF network element in the service network. The SMF network element determines the ECS option corresponding to the first domain name (or determines the information corresponding to the domain name for constructing the ECS option) based on the first domain name reported by the EASDF network element. The V-SMF network element sends the information of the terminal's home network to the EASDF network element. The EASDF network element can add the information of the terminal's home network as an ECS option to the second query message so that the second query message includes the information of the terminal's home network. In this example, the EASDF network element does not need to determine whether the first domain name is authorized in the service network.

[0176] The difference between Example 2 and Example 1 is that in Example 1, the first network element obtains the terminal's home network information before receiving the first query message, and determines that the second query message contains the terminal's home network information based on the fact that the first domain name is not authorized in the serving network. In Example 2, the second network element obtains the terminal's home network information after receiving the first query message and sending the first domain name to the second network element, and determines that the second query message contains the terminal's home network information.

[0177] Exemplarily, both the first query message and the second query message may be referred to as DNS query messages.

[0178] S203: The DNS server sends the address of the AS corresponding to the first domain name to the first network element.

[0179] Correspondingly, the first network element receives the address of the AS corresponding to the first domain name from the DNS server.

[0180] For example, the DNS server sends a second response message to the first network element in response to the second query message, where the second response message includes the address of the AS corresponding to the first domain name. The first network element receives the second response message from the DNS server and determines the address of the AS corresponding to the first domain name based on the second response message.

[0181] S204: The first network element sends the address of the AS corresponding to the first domain name to the terminal.

[0182] Correspondingly, the terminal receives the address of the AS corresponding to the first domain name from the first network element.

[0183] For example, the first network element sends a first response message to the terminal in response to the first query message, and the second response message includes the address of the AS corresponding to the first domain name. The terminal receives the first response message from the first network element and determines the address of the AS corresponding to the first domain name according to the first response message.

[0184] According to the above solution, when the first network element receives a query message from a terminal containing a domain name that is not authorized in the service network, the first network element can provide the DNS server with information about the terminal's home network, so that the DNS server can query the address of the AS corresponding to the first domain name based on the information about the terminal's home network and feedback it to the terminal. This enables the terminal to obtain the address of the AS corresponding to the domain name that is not authorized in the service network (visited network or intermediate network), allowing the terminal to access the services provided by the AS, ensuring that the terminal device can access the services corresponding to the unauthorized domain name. This can prevent the terminal from being unable to access the services corresponding to the domain name due to the domain name being unauthorized.

[0185] Figure 3 is a schematic flow chart of a communication method 300 provided by an embodiment of the present application. The embodiment shown in Figure 3 shows a specific implementation method of the embodiment shown in Figure 2 in a scenario where the service network of the terminal (taking UE as an example) is a visited network. Among them, the V-EASDF network element is an example of a first network element, and in the visited network, the V-EASDF network element is used to provide the UE with a functional network element for discovering AS, the V-SMF network element is an example of a second network element, and in the visited network, the V-SMF network element is used to manage the functional network element of the UE's session, and the AMF network element is a functional network element used for access management and / or mobility management of the UE in the visited network. The H-SMF network element is a functional network element used to manage the UE's session in the UE's home network. It should be understood that the present application does not limit the names of the various network elements, and in a specific implementation, network elements with other names having corresponding functions may also be used to implement the communication method 300. The method 300 may include but is not limited to the following steps:

[0186] S301, the UE may send a NAS message to the AMF network element, where the NAS message includes a session establishment / modification request message.

[0187] The session establishment / modification request message refers to a session establishment request message or a session modification request message.

[0188] In the visited network, the UE sends a NAS message carrying a session establishment / modification request to the AMF element, initiating the home routing HR session establishment / modification procedure. In response, the AMF element receives the NAS message from the UE and, based on the session establishment / modification request information in the NAS message, determines that the UE should initiate the HR session establishment procedure.

[0189] S302, the AMF network element sends a create / update session management context request message to the V-SMF network element, and the request message carries HR-SBO authorized indication information (HR-SBO allowed indication).

[0190] The HR-SBO authorization indication information is used to indicate authorization (or permission) for the HR session to be offloaded locally (ie, in the VPLMN). The AMF network element may determine the HR-SBO authorization indication information based on the subscription information of the home network.

[0191] For example, the create session management context request message may be denoted as N SMF _Protocol Data Unit (PDU) Session_Create / Update Management Context Request (N SMF_ PDUSession_Create / UpdateSMContext requeset) message.

[0192] S303, the V-SMF network element and the V-EASDF network element perform a DNS context creation / update process.

[0193] After the V-SMF network element receives the create / update management context request message from the AMF network element, the V-SMF network element selects the V-EASDF network element used to discover the AS for the UE, and the V-SMF network element and the V-EASDF network element perform the DNS context creation / update process of the V-EASDF network element.

[0194] The DNS context may include but is not limited to the IP address of the UE, the data network name (DNN), and single network slice selection assistance information (S-NSSAI) for identifying the network slice. It should be understood that since the visited network has not yet exchanged information with the home network at this time and has not yet obtained the IP address allocated by the home network to the UE, the IP address of the UE contained in the DNS context at this time is a special value or special IP address that can be used to identify the UE.

[0195] The DNS context creation process can be done by the V-SMF network element calling the DNS context creation / update request message to the V-EASDF network element, and receiving the DNS context creation / update response message from the V-EASDF network element, thereby realizing the DNS context creation / update of the V-EASDF network element. For example, the DNS context creation / update request message can be recorded as N EASDF __DNS context_create / update request(N EASDF _DNSContext_Create / Update Request) message. The DNS context creation / update response message can be recorded as N EASDF _DNS Context_Create / Update Response(N EASDF _DNSContext_Create / Update Response) message.

[0196] S304, the V-SMF network element sends a session creation / update request message to the H-SMF network element.

[0197] After the DNS context creation / update of the V-EASDF network element is completed, the V-SMF network element sends a session creation / update request message to the H-SMF network element. The session creation / update request message includes the HR-SBO authorization indication information obtained from the AMF network element in S302. After receiving the session creation / update request message from the V-SMF network element, the H-SMF network element determines the visited network of the UE and requests authorization for the session to be locally diverted in the visited network based on the HR-SBO authorization indication information in the session creation / update request message.

[0198] For example, the session creation request message may be recorded as N SMF _PDU Session_ Create / Update Request message.

[0199] S305, the H-SMF network element sends a session creation / update response message to the V-SMF network element. The session creation / update response message carries VPLMN offload information.

[0200] Correspondingly, the V-SMF network element receives the session creation / update response message from the H-SMF network element and obtains the VPLMN diversion information. For example, the session creation / update response message can be recorded as N SMF _PDU Session_ Create / Update Request message.

[0201] The VPLMN offload information includes the domain name information described above, such as domain name information authorized in the visited network (which may include the first domain name set described above) and / or domain name information unauthorized in the visited network (which may include the second domain name set described above). For example, the domain names in the domain name set may be FQDNs or other domain names. The following description uses FQDNs as an example.

[0202] The V-SMF network element can determine, based on the VPLMN diversion information, that the corresponding service is authorized by the UE's home network to be diverted to the domain name of the local data network in the visited network, and / or, the V-SMF network element can determine, based on the VPLMN diversion information, that the corresponding service is not authorized by the UE's home network to be diverted to the domain name of the local data network in the visited network.

[0203] In an optional implementation, the VPLMN diversion information may further include the address of an AS authorized in the visited network and / or the address of an AS not authorized in the visited network, such as the address of the AS may specifically be the IP address of the AS. The V-SMF network element may determine, based on the VPLMN diversion information, that the corresponding service is authorized by the UE's home network to be diverted to the address of the AS in the local data network of the visited network, and / or the V-SMF network element may determine, based on the VPLMN diversion information, that the corresponding service is not authorized by the UE's home network to be diverted to the address of the AS in the local data network of the visited network.

[0204] In addition to the VPLMN diversion information, the session creation / update response message also includes the IP address of the UE, that is, the IP address assigned to the UE by the home network. In an optional implementation, the session creation / update response message includes two IP addresses assigned to the UE by the network side, such as IP address 1 and IP address 2. As mentioned above, IP address 1 can be used to obtain the address of the AS corresponding to the domain name that is not authorized in the visited network. The IP address 1 is anchored to the UPF network element in the home network of the terminal. IP address 2 is used to receive or send messages (or packets). However, the present application is not limited to this. The session creation / update response message may also only include an IP address assigned to the UE by the home network to implement the above two functions.

[0205] The session creation / update response message may also include tunnel information of the UPF network element in the home network (i.e., the H-UPF network element). This tunnel information of the H-UPF network element is used to establish a tunnel connection between the UPF network element in the visited network (i.e., the V-UPF network element) and the H-UPF network element. The tunnel information of the H-UPF network element may include the IP address and tunnel endpoint identifier (TEID) of the H-UPF network element.

[0206] In the embodiment shown in FIG3 , the session creation / update response message may further include information about the UE's home network. The UE's home network information is provided by the V-SMF network element to the V-EASDF network element so that when the V-EASDF network element receives a query message from the UE containing a domain name that is not authorized in the visited network, it provides the home network information to the DNS server. In other words, the H-SMF network element may specifically send the UE's home network information to the V-SMF network element. However, the present application is not limited thereto, and the H-SMF network element may also carry the UE's home network information to the V-SMF network element through other messages or information elements.

[0207] S306, the V-SMF network element and the V-EASDF network element perform a DNS context update process.

[0208] The V-SMF network element updates the DNS context of the V-EASDF network element, which includes the DNS message handling rules sent by the V-SMF network element.

[0209] In an optional embodiment, the rule includes: upon receiving a query message from a terminal containing a domain name that is not authorized in a visited network, providing information about the UE's home network to a DNS server. Exemplarily, the UE's home network information may include the UE's IP address, the IP address of the UE's H-UPF network element, or a dedicated address of the home network.

[0210] If the information of the home network of the UE includes a dedicated address of the home network, the dedicated address of the home network may be obtained by the V-SMF network element from the H-SMF network element. However, the present application is not limited thereto.

[0211] Specifically, the rule may include: when receiving a query message from the terminal containing a domain name that is not authorized in the visited network, adding information of the UE's home network to the query message, and providing the processed query message to the DNS server.

[0212] In another optional implementation, the rule includes: after receiving the query message from the terminal, providing the domain name in the query message to the second network element.

[0213] The DNS context update process may include the V-SMF network element invoking a DNS context update request message to send to the V-EASDF network element, and receiving a DNS context creation response message from the V-EASDF network element, thereby implementing the DNS context update of the V-EASDF network element. For example, the DNS context update message may carry DNS processing rules. Optionally, the DNS context update request message may also carry, but is not limited to, one or more of the following information:

[0214] Information about the UE's home network, information about the domain name authorized in the visited network, or information about the domain name authorized in the visited network.

[0215] For example, the DNS context update request message may be denoted as N EASDF _DNS context_update request(N EASDF _DNSContext_Update Request) message. The DNS context update response message can be recorded as N EASDF __DNSContext_UpdateResponse(N EASDF _DNSContext_Update Reponse) message.

[0216] After the V-SMF network element completes the DNS context update for the V-EASDF network element, the network element in the visited network can proceed with other steps for creating / modifying the session for the UE (not shown in FIG3 ), including: the V-SMF network element sends a session creation / modification accept message to the UE, where the session creation / modification accept message carries the address of the V-EASDF network element. After receiving the session creation / modification accept message, the UE can determine the address of the V-EASDF network element used to discover the AS for the UE.

[0217] When the UE needs to query a service, the UE initiates a service query process, which specifically includes the following steps:

[0218] S307: The UE sends a first query message to the V-EASDF network element. The first query message carries FQDN 1.

[0219] The source IP address of the first query message is the IP address of the UE, and the destination IP address is the address of the V-EASDF network element. Accordingly, the V-EASDF network element receives the first query message from the UE and determines the address of the AS corresponding to the UE's query for FQDN 1. Specifically, the first query message can be delivered to the V-EASDF network element via the user plane. For example, the first query message can be delivered to the V-EASDF network element via the RAN and the V-UPF network element.

[0220] S308: The V-EASDF network element determines a second query message, wherein the second query message includes FQDN 1 and information about the home network of the UE.

[0221] In an optional implementation, the V-EASDF network element may obtain domain name information, such as by obtaining domain name information in a DNS context, and determining, based on the domain name information, that FQDN 1 is an unauthorized domain name in the visited network. If the domain name information includes a first domain name set, and the domain names included in the first domain name set are authorized domain names in the visited network, the V-EASDF network element determines that FQDN 1 does not belong to the first domain name set, thereby determining that FQDN 1 is an unauthorized domain name in the visited network. And / or, if the domain name information includes a second domain name set, and the domain names included in the second domain name set are unauthorized domain names in the home network, the V-EASDF network element determines that FQDN 1 belongs to the first domain name set, thereby determining that FQDN 1 is an unauthorized domain name in the visited network.

[0222] The V-EASDF network element determines that FQDN 1 queried by the UE is an unauthorized domain name in the visited network. The V-EASDF network element then determines, based on DNS message processing rules, a second query message that includes FQDN 1 and information about the UE's home network. For example, the V-EASDF network element adds the UE's home network information to the first query message to generate a second query message.

[0223] The DNS processing rule specifically includes: upon receiving a query message from a terminal containing a domain name that is not authorized in a visited network, adding the UE's home network information as an ECS option to the query message, and providing the query message to a DNS server. The V-EASDF network element may, based on the processing rule, add the UE's home network information as an ECS option to the first query message, thereby generating a second query message.

[0224] In another optional implementation, the V-EASDF network element provides the FQDN 1 to the V-SMF network element after receiving the first query message based on the DNS query message processing rules. The V-SMF network element determines the ECS option corresponding to FQDN 1 (or determines the information corresponding to FQDN 1 for constructing the ECS option) based on FQDN 1. The V-SMF network element sends the UE's home network information to the V-EASDF network element. The V-EASDF network element can add the UE's home network information as an ECS option to the second query message so that the second query message includes the terminal's home network information.

[0225] S309: The V-EASDF network element sends a second query message to the DNS server.

[0226] Correspondingly, the DNS server receives the second query message from the V-EASDF network element. The DNS server can determine the address of the AS corresponding to FQDN 1 based on address affinity according to FQDN 1 and the information of the UE's home network.

[0227] S310: The DNS server sends the address of the AS corresponding to FQDN 1 to the V-EASDF network element.

[0228] For example, the DNS server sends a second response message to the V-EASDF network element in response to the second query message, where the second response message includes the address of the AS corresponding to FQDN 1. The V-EASDF network element receives the second response message from the DNS server and determines the address of the AS corresponding to FQDN 1 based on the second response message.

[0229] S311, the V-EASDF network element sends the address of the AS corresponding to FQDN 1 to the UE.

[0230] Correspondingly, the UE receives the address of the AS corresponding to the FQDN 1 from the V-EASDF network element.

[0231] For example, the V-EASDF network element sends a first response message to the UE in response to the first query message, and the second response message includes the address of the AS corresponding to FQDN 1. The UE receives the first response message from the V-EASDF network element and determines the address of the AS corresponding to FQDN 1 according to the first response message.

[0232] As described above, if the V-EASDF network element can determine in S308 that FQDN 1 is an unauthorized domain name in the visited network, the above S309 to S311 are executed. If the V-EASDF network element determines that FQDN 1 is an authorized domain name in the visited network, the V-EASDF network element exchanges information with the V-SMF network element to trigger the V-SMF network element to insert / update the VPLMN ULCL / BP / L-PSA. The V-EASDF network element reports FQDN 1 to the V-SMF network element. The V-SMF network element determines ECS option establishment indication information based on FQDN 1 and AS deployment information (including FQDN, data network access identifier (DNAI) and other information), and sends the ECS option establishment indication information to the V-EASDF network element. The V-EASDF network element adds the ECS option in the first query message based on the ECS option establishment indication information, and sends the processed query message to the DNS server. Based on the received query message, the DNS server queries the address of the AS corresponding to FQDN 1 and sends it to the V-EASDF network element. The V-EASDF network element reports the address of the AS corresponding to FQDN 1 to the V-SMF network element, triggering the V-SMF network element to insert / update the ULCL / BP / L-PSA. The V-SMF network element instructs the V-EASDF network element to send a response message to the UE in response to the first query message, which carries the address of the AS corresponding to FQDN 1.

[0233] According to the above solution, when the V-EASDF network element receives a query message from a UE containing a domain name that is not authorized in the visited network, the V-EASDF network element can provide the DNS server with the UE's home network information. The DNS server can then query the address of the AS corresponding to FQDN 1 based on the UE's home network information and feedback it to the terminal. This enables the terminal to obtain the address of the AS corresponding to the domain name that is not authorized in the serving network in the visited network, allowing the terminal to access services provided by the AS.

[0234] An embodiment of the present application also provides a method, in which, when a query message from a terminal contains a domain name that is not authorized by the home network to be diverted to the local DN corresponding to the service network, the core network of the service network can pass the query message to the home network via the control plane network element, thereby reaching the server in the local DN corresponding to the home network or reaching the central server, thereby enabling the terminal to obtain the address of the AS corresponding to the domain name that is not authorized in the service network in the service network.

[0235] Figure 4 is a schematic flow chart of a communication method 400 provided in an embodiment of the present application. As shown in Figure 4, the first network element is a network element in the service network of the terminal (such as a visited network or an intermediate network) for discovering the AS, the second network element is a network element in the service network of the terminal for managing the session of the terminal, and the third network element is a network element in the home network of the terminal. The DNS server is a local server or a central server corresponding to the home network. Alternatively, the DNS server shown in Figure 4 can be replaced by a network element in the home network for discovering the AS, and the network element for discovering the AS can be called a DNS resolver. The following is an illustration taking the DNS server as an example. The method 400 includes but is not limited to the following steps:

[0236] S401: A terminal sends a first query message to a first network element, where the first query message includes information about a first domain name.

[0237] Accordingly, the first network element receives the first query message from the terminal. The first network element receives the first query message from the terminal. The first network element determines that the terminal queries the address of the AS corresponding to the first domain name, and the first network element can determine that the first domain name is not authorized in the service network. S401 can be implemented with reference to the description of S201 above and is not repeated here.

[0238] S402: The first network element sends a second query message to the second network element, where the second query message includes information about the first domain name.

[0239] In an optional implementation, the first network element may determine a second query message and send the second query message to the second network element based on the fact that the first domain name included in the received first query message is an unauthorized domain name in the serving network. Specifically, the first network element may determine the second query message and determine to send the second query message to the second network element based on a rule adopted for query messages.

[0240] For example, the second network element may send information to the first network element, indicating the rules to be used for query messages from the terminal for querying the address of the application server. Accordingly, the first network element receives the information from the second network element and, based on the information, determines the rules to be used for the query messages. Upon receiving the query message, the first network element processes the query message based on the rules. For example, the information may be included in a DNS context update message sent by the second network element to the first network element.

[0241] The rules may include, but are not limited to, the following implementations.

[0242] Method 1, denoted as Rule 1, includes: when the query message for querying the address of the AS includes a domain name that is not authorized in the visited network of the terminal, the first network element sends a query message including the unauthorized domain name to the second network element.

[0243] After receiving the first query message including the first domain name that is not authorized in the service network, the first network element determines a second query message according to rule 1 and sends the second query message to the second network element, where the second query message includes information about the first domain name.

[0244] For example, the first network element may send the first query message to the second network element, where the second query message is the first query message, the source address of the first query message is the IP address of the terminal, and the destination address is the address of the first network element. However, the present application is not limited thereto, and the second query message may differ from the first query message, such as by including at least one different piece of information.

[0245] Method 2, denoted as Rule 2, includes: when the query message used to query the address of the application server includes an unauthorized domain name in the terminal's visited network, the first network element sends a query message to the second network element, which includes the unauthorized domain name and the destination address is the address of the DNS server.

[0246] The information for indicating the rule sent by the second network element to the first network element includes the address of the DNS server, which can be the address of the DNS server corresponding to the terminal's home network or the address of the central DNS server. The first network element obtains the address of the DNS service from the information.

[0247] After receiving the first query message containing the first domain name that is not authorized in the service network, the first network element determines the second query message according to rule 2 and sends it to the second network element, where the second query message includes information about the first domain name, and the destination address of the second query message is the address of the DNS server.

[0248] For example, the source address of the first query message is the IP address of the terminal, and the destination address is the address of the first network element. The first network element modifies the destination address of the first query message to the address of the DNS server obtained from the second network element, obtains a second query message, and sends the second query message to the second network element. However, the present application is not limited to this, and the second query message may include other different information from the first query message in addition to a different destination address.

[0249] In another optional implementation, the first network element does not determine whether the first domain name is authorized in the service network. For example, if the second network element notifies the first network element that the processing rule for the query message is Rule 3, Rule 3 includes: when a query message is received from a terminal, providing the domain name in the query message to the second network element. After receiving the first query message, the first network element sends the first domain name to the second network element based on Rule 3. The second network element determines that the first domain name is not authorized in the service network based on the first domain name and the information of the authorized domain name in the service network and / or the information of the unauthorized domain name in the service network obtained by the second network element, and the second network element sends an indication message to the first network element, where the indication message is used to instruct the first network element to send a second query message to the second network element.

[0250] In one manner, the first network element sends the first query message to the second network element according to the indication information, that is, the second query message is the first query message.

[0251] In another embodiment, the indication information specifically instructs the first network element to send a second query message to the second network element, and the destination address of the second query message is the address of the DNS server. After receiving the indication information, the first network element sends the second query message to the second network element, and the destination address of the second query message is the address of the DNS server.

[0252] In another embodiment, Rule 3 further includes: after the first network element sends the domain name to the second network element and receives instruction information from the second network element instructing the first network element to send a query message, the first network element sends the query message to the second network element in response to the instruction information, with the destination address being the address of the DNS server. The first network element may, based on Rule 3, send a second query message to the second network element with the destination address being the DNS server.

[0253] Optionally, the first network element may specifically obtain the address of the DNS server before receiving the first query message or obtain the address of the DNS server from the indication information. The address of the DNS server may be the address of the DNS server corresponding to the home network of the terminal or the address of the central DNS server. The first network element obtains the address of the DNS service from the information.

[0254] In this embodiment, if the second network element determines that the domain name from the first network element is an authorized domain name in the service network, the second network element can determine the ECS option establishment indication information based on the first domain name and AS deployment information (including FQDN, data network access identifier (DNAI) and other information), and send the ECS option establishment indication information to the V-EASDF network element. The first network element adds the ECS option to the first query message based on the ECS option establishment indication information, and sends the processed query message to the local DNS server in the visited network.

[0255] The present application also provides a method to replace S402, that is, after S401, the first network element may not execute S402, and instead execute the following steps: the first network element sends the first domain name to the second network element, and the second network element determines that the first domain name is an unauthorized domain name in the serving network, then the second network element determines (or generates) a third query message, the third query message including the first domain name, and the destination address is the address of the DNS server. The third query message is used by the second network element in S403 to query the DNS server for the address of the AS corresponding to the first domain name on behalf of the terminal through the network element in the home network.

[0256] S403: The second network element queries the DNS server for the address of the AS corresponding to the first domain name on behalf of the terminal through the network element in the home network.

[0257] Among them, the second network element queries the address of the AS corresponding to the first domain name for the terminal from the local DNS server in the home network (hereinafter referred to as the DNS server corresponding to the home network) or the central server through the network element in the home network, including: after the second network element receives the second query message, it obtains a third query message based on the second query message, and the third query message includes information about the first domain name, and the second network element sends the third query message to the third network element.

[0258] The third network element is a network element in the home network of the terminal. The second network element transmits the third query message to the home network of the terminal, so that the network element in the home network queries the DNS server for the address of the AS corresponding to the first domain name for the terminal.

[0259] If the second query message received by the second network element from the first network element includes information about the first domain name, and the source address of the second query message is the IP address of the terminal, and the destination address is the address of the first network element.

[0260] In one embodiment, the third query message sent by the second network element to the third network element is a second query message. That is, after receiving the second query message from the first network element, the second network element forwards the second query message to the third network element. For example, the third network element may modify the destination address in the second query message to the address of a DNS server corresponding to the home network or the address of a central server, so that the DNS server corresponding to the destination address can obtain the query message and thereby query the address of the AS corresponding to the first domain name for the terminal.

[0261] In another embodiment, the destination address of the third query message sent by the second network element to the third network element is the address of a DNS server. The DNS server address may be obtained by the second network element from a network element in the home network, and the second network element sets the destination address of the third query message to the address of the DNS server. For example, the DNS server address may be the address of the DNS server corresponding to the home network of the terminal or the address of a central DNS server. This allows the DNS server corresponding to the destination address to obtain the query message and thereby query the address of the AS corresponding to the first domain name for the terminal.

[0262] For example, the second network element modifies the destination address of the second query message to the address of the DNS server to obtain a third query message. However, the present application is not limited thereto, and the third query message and the second query message may also contain other different information in addition to the destination address.

[0263] If the second network element receives a second query message from the first network element, and the second query message includes information about the first domain name, and the source address of the second query message is the IP address of the terminal and the destination address is the address of the DNS server, the third query message sent by the second network element to the third network element may be the second query message, or the second query message processed by the second network element. The source address of the third query message is the IP address of the terminal and the destination address is the address of the DNS server. The DNS server corresponding to the destination address can obtain the query message and query the address of the AS corresponding to the first domain name for the terminal.

[0264] S404: The terminal obtains the address of the AS corresponding to the first domain name from the DNS server.

[0265] After the DNS server queries the address of the AS corresponding to the first domain name, it can transfer the address of the AS to the network element in the service network through the network element in the home network, and then transfer it to the terminal.

[0266] For example, the address of the AS can be transmitted by the DNS server to a third network element, which then transmits it to the second network element and then to the first network element. The terminal can then obtain the address of the AS from the first network element. That is, the address of the AS is returned to the terminal via the network element that transmits the query message. However, the present application is not limited to this. The address of the AS can be transmitted to the terminal without passing through one or more network elements in the home network and the visited network that transmit the query message.

[0267] According to the above scheme, when the EASDF network element in the service network receives a query message from the UE containing a domain name that is not authorized in the visited network, the EASDF network element sends a query message to the SMF network element so that the message can be transmitted to the home network through the SMF network element, and through the transmission of the home network, the DNS server or central server corresponding to the home network can query the address of the AS corresponding to the first domain name for the terminal and feedback it to the terminal through the home network and the service network, so that the terminal can access the services provided by the AS.

[0268] Figure 5 is a schematic flow chart of a communication method 500 provided by an embodiment of the present application. The embodiment shown in Figure 5 illustrates a specific implementation of the embodiment shown in Figure 4 applied in a scenario where the serving network of a terminal (taking a UE as an example) is a visited network.

[0269] It should be understood that before S501 of the method 500, the UE and each network element may perform S301 to S305 as shown in Figure 3. For details, please refer to the description of the embodiment shown in Figure 3. For the parts of the embodiment shown in Figure 5 that are the same as those in the embodiment shown in Figure 3, please refer to the description of the embodiment shown in Figure 3. For the sake of brevity, they are not repeated here. The method 500 may include but is not limited to the following steps:

[0270] S501, the V-SMF network element and the V-EASDF network element perform a DNS context update process.

[0271] The V-SMF network element updates the DNS context of the V-EASDF network element, which includes sending DNS message handling rules from the V-SMF network element to the V-EASDF network element. The rules may be rules 1 and 2 in the embodiment shown in FIG4 described above.

[0272] S502: The UE sends a first query message to the V-EASDF network element, where the first query message includes FQDN 1.

[0273] Correspondingly, the V-EASDF network element receives the first query message from the UE, and determines that the UE queries the address of the AS corresponding to FQDN 1, and that FQDN 1 is an unauthorized domain name in the visited network of the UE.

[0274] S503: The V-EASDF network element determines the second query message.

[0275] The source IP address of the first query message is the IP address of the UE, and the destination IP address is the address of the V-EASDF network element. The V-EASDF network element obtains the second query message according to the DNS message processing rule obtained in S501.

[0276] In one example, the rule is Rule 1 above. The V-EASDF network element determines the second query message according to Rule 1. The second query message includes FQDN 1, and the source address of the second query message is the IP address of the UE and the destination address is the address of the V-EASDF network element.

[0277] In another example, the rule is the above-mentioned Rule 2. The V-EASDF network element determines a second query message according to Rule 2. The second query message includes FQDN 1, and the source address of the second query message is the IP address of the UE and the destination address is the address of the DNS server. The address of the DNS server may be the address of the DNS server corresponding to the home network or the address of the central server. The address of the DNS server may be obtained by the V-EASDF network element from the V-SMF network element in S501. The V-SMF network element may obtain the address of the DNS server from the home network. For example, the address of the DNS server may be included in the VPLMN diversion information in the session creation / update response message.

[0278] In another example, the rule is the above-mentioned Rule 3. The V-EASDF network element sends FQDN 1 to the V-SMF network element according to Rule 3. After the V-SMF network element determines that FQDN 1 is an unauthorized domain name in the visited network, the V-SMF network element instructs the V-EASDF network element to send a query message to the V-SMF network element. The V-EASDF network element determines the second query message and sends it to the V-SMF network element. The second query message includes FQDN 1. The destination address of the second query message is the address of the V-EASDF network element or the address of the DNS server. The specific way in which the V-EASDF network element determines the second query message can be specifically referred to the relevant description in S402 and will not be repeated here.

[0279] Exemplarily, the address of the DNS server may be the IP address of the DNS server.

[0280] S504, the V-EASDF network element sends a DNS context notification message to the V-SMF network element, where the DNS context update message includes the second query message.

[0281] The V-EASDF network element sends the DNS context notification message containing the second query message to the V-SMF network element according to the DNS query message processing rules. Accordingly, the SMF network element receives the DNS context update message from the V-EASDF network element, obtains the second query message, and determines the third query message based on the second query message. The specific method can be referred to the description in S403 above and will not be repeated here.

[0282] For example, the DNS context notification message may be denoted as N EASDF _DNS context_notification(N EASDF _DNSContext_Notify) message.

[0283] S505. The V-SMF network element sends a session update request message to the H-SMF network element. The session update request message includes the third query message.

[0284] Correspondingly, the H-SMF network element receives the session update request message from the V-SMF network element and obtains the third query message. For example, the session update request message can be recorded as N SMF _PDU Session_Update Request(N SMF _PDUSession_Update Request) message.

[0285] S506: The H-SMF network element transmits the query message to the DNS server.

[0286] In one example, the source address of the third query message is the IP address of the UE and the destination address is the address of the DNS server. The H-SMF network element can send the third query message to the H-UPF network element, which is sent by the H-UPF network element to the DNS server corresponding to the address of the DNS server.

[0287] In another example, the source address of the third query message is the IP address of the UE and the destination address is the address of the V-EASDF. The H-SMF network element can modify the destination address of the third query message to the address of the DNS server and then send it to the H-UPF network element. Alternatively, the H-SMF network element passes the third query message to the H-UPF network element, and the H-UPF network element modifies the destination address of the third query message. The H-UPF network element sends the query message to the DNS server corresponding to the destination address. Alternatively, the H-UPF network element sends the third query message to the H-EASDF network element, and after the H-EASDF modifies the destination address of the third query message, the query message is passed to the DNS server corresponding to the destination address. The modification of the destination address of the third query message by the H-EASDF is performed based on the DNS processing rules issued by the H-SMF.

[0288] S507: The terminal obtains the address of the AS corresponding to FQDN 1 from the DNS server.

[0289] After determining the address of the AS corresponding to FQDN 1, the DNS server sends a DNS response message, which includes the address of the AS corresponding to FQDN 1. The source address of the DNS response message is the address of the DNS server.

[0290] In one example, the destination address of the DNS response message is the IP address of the UE. The DNS response message may be delivered by the DNS server to the H-UPF network element, and then to the UE via the V-UPF network element. Alternatively, the DNS response message may be delivered from the DNS server to the UE via the H-UPF network element, the V-UPF network element, the V-EASDF network element, and the V-UPF network element in sequence.

[0291] In another example, the destination address of the DNS response message is the IP address of the V-EASDF network element, and the path for the DNS response message to be delivered from the DNS server to the UE may be sequentially delivered through the H-UPF network element, the H-SMF network element, the V-SMF network element, the V-EASDF network element, and the V-UPF network element to the UE. Alternatively, the path for the DNS response message to be delivered from the DNS server to the UE may be sequentially delivered through the H-UPF network element, the V-UPF network element, the V-EASDF network element, and the V-UPF network element to the UE.

[0292] According to the above scheme, when the V-EASDF network element receives a query message from the UE containing a domain name that is not authorized in the visited network, the V-EASDF network element sends a query message to the V-SMF network element so that the message can be delivered to the home network through the V-SMF network element, and through the delivery of the home network, the DNS server or central server corresponding to the home network can query the address of the AS corresponding to FQDN 1 for the terminal and feedback it to the terminal through the home network and the service network, so that the terminal can access the services provided by the AS.

[0293] This application also provides another solution, in which a terminal queries the address of an AS corresponding to an unauthorized domain name in the service network through the user plane of the service network. This solution is described below.

[0294] The terminal determines that the first domain name to be queried is not authorized in the service network, and the terminal determines a first message, which includes a query message and indication information. The query message is used to query the address of the AS corresponding to the first domain name, and the indication information is used to indicate that the query message is used to query the address of the AS corresponding to the domain name that is not authorized in the service network, or the indication information is used to indicate that the query message contains a domain name that is not authorized in the service network.

[0295] In one approach, the terminal adds the indication information to an air interface protocol message header and sends it to the access network element. For example, the indication information is added to a Service Data Adaptation Protocol (SDAP) header or a Packet Data Convergence Protocol (PDCP) header. The base station then adds the indication information to a core network user plane protocol message header, such as a General Packet Radio Service (GPRS) Tunneling Protocol-User Plane (GTP-U) header.

[0296] The terminal sends the first message to the UPF network element in the serving network. The UPF network element determines, based on the indication information in the first message, that the query message is used to query the address of the AS corresponding to the domain name that is not authorized in the serving network. The UPF network element then sends the query message to the UPF network element in the home network of the terminal, so that the UPF in the home network can query the address of the AS corresponding to the domain name that is not authorized in the serving network for the terminal. In this manner, the UPF network element in the serving network does not need to interpret the query message in the first message; based on the indication information in the first message, it can determine to transmit the query message to the UPF network element in the home network.

[0297] Specifically, the first message may include a container that carries the terminal's query message. The indication information in the first message is carried outside the container. The UPF network element in the serving network reads the indication information in the first message and then sends the container to the UPF in the home network. The UPF network element in the serving network transparently transmits (referred to as transparent transmission) the container to the UPF network element in the home network.

[0298] In this solution, even if the terminal encrypts the query message for protection (such as a query message encrypted using DOH or DOT), the UPF network element in the service network cannot interpret the query message. The UPF network element can also determine to pass the query message to the UPF network element in the home network through the indication information in the first message without interpreting the query message, so as to query the address of the AS corresponding to the domain name that is not authorized in the service network for the terminal through the home network. DOH is the abbreviation of DNS over HTTPS. DOH is a secure domain name resolution solution that uses the encrypted HTTPS protocol for DNS resolution requests. HTTPS refers to Hypertext Transfer Protocol Secure. DOT is a DNS request that encrypts messages based on TLS. It is the abbreviation of DNS over TLS. TLS refers to Hypertext Transfer Protocol Secure.

[0299] It should be understood that in the embodiments of Figures 2 to 5 above, the first network element and the second network element have the ability to decrypt the encrypted query message from the terminal. Therefore, regardless of whether the query message is encrypted, the embodiments of Figures 2 to 5 can be implemented for the terminal to query the address of the AS corresponding to the domain name that is not authorized in the service network.

[0300] It is understood that, in order to implement the functions in the above embodiments, each of the network elements and terminals includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily appreciate that, in conjunction with the various exemplary units and method steps described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in hardware or in a manner driven by computer software depends on the specific application scenario and design constraints of the technical solution.

[0301] Figures 6 and 7 are schematic diagrams of the structures of possible communication devices provided in embodiments of the present application. These communication devices can be used to implement the functions of each network element (such as the first network element, the second network element, the third network element, and the fourth network element) in the above-mentioned method embodiments, thereby also achieving the beneficial effects of the above-mentioned method embodiments. In the embodiments of the present application, the communication device can be an EASDF network element, an SMF network element, or a UPF network element as shown in Figure 1, or a module (such as a chip or chip system) of a communication device that implements the functions of the above-mentioned network elements.

[0302] The communication device 600 includes a transceiver unit 620, which can be used to receive or send information. The communication device 600 can also include a processing unit 610, which can be used to process instructions or data to implement corresponding operations.

[0303] It should be understood that when the communication device 600 is a chip configured in (or used in) a communication device, the transceiver unit 620 in the communication device 600 can be the input / output interface or circuit of the chip, and the processing unit 610 in the communication device 600 can be the processor in the chip.

[0304] Optionally, the communication device 600 may further include a storage unit 630, which may be used to store instructions or data. The processing unit 610 may execute the instructions or data stored in the storage unit to enable the communication device to perform corresponding operations.

[0305] For a more detailed description of the processing unit 610 and the transceiver unit 620 , reference may be made to the relevant descriptions in the method embodiments shown in FIG. 3 to FIG. 5 .

[0306] It should be understood that the transceiver unit 620 in the communication device 600 can be implemented through a communication interface (such as a transceiver, a transceiver circuit, an input / output interface, or a pin, etc.). When the communication interface is a transceiver, the transceiver can be composed of a receiver and / or a transmitter. The processing unit 610 in the communication device 600 can be implemented by at least one processor. The processing unit 610 in the communication device 600 can also be implemented by at least one logic circuit. Optionally, the communication device 600 also includes a storage unit, which can be implemented by a memory.

[0307] When the communication device is a module applied to a network device, the network device module implements the functions of the network element in the above method embodiment. The network device module receives information from other modules in the network device, where the information is received by the network device from other devices (such as other network devices or terminals); or the network device module sends information to other modules in the network device, where the information is sent by the network device to other devices (such as other network devices or terminals). The network device module here can be a chip of the network device.

[0308] As shown in Figure 7, communication device 700 includes a processor 710 and an interface circuit 720. Processor 710 and interface circuit 720 are coupled to each other. It will be appreciated that interface circuit 720 may be a transceiver or an input / output interface. Optionally, communication device 700 may further include a memory 730 for storing instructions executed by processor 710, input data required by processor 710 to execute instructions, or data generated after processor 710 executes instructions.

[0309] It is understood that the processor in the embodiments of the present application may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0310] The method steps in the embodiments of the present application can be implemented in hardware or in software instructions that can be executed by a processor. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory, flash memory, read-only memory, programmable read-only memory, erasable programmable read-only memory, electrically erasable programmable read-only memory, registers, hard disk, mobile hard disk, CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. The storage medium can also be an integral part of the processor. The processor and storage medium can be located in an ASIC. In addition, the ASIC can be located in an access network device or a terminal device. The processor and storage medium can also exist in a communication device as discrete components.

[0311] According to the method provided in the embodiment of the application, the embodiment of the present application also provides a computer program product, which includes: computer program code, when the computer program code is executed by one or more processors, it enables the device including the processor to execute the method shown in Figures 3 to 5.

[0312] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device.

[0313] According to the method provided in an embodiment of the present application, an embodiment of the present application also provides a computer-readable storage medium, which stores the above-mentioned computer program or instructions. When the computer program or instructions are executed by one or more processors, the device including the processor executes the method shown in Figures 2 to 5.

[0314] As described above, the computer program or instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer program or instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video disk; or a semiconductor medium, such as a solid-state drive. The computer-readable storage medium can be a volatile or non-volatile storage medium, or can include both volatile and non-volatile types of storage media.

[0315] According to the method provided in the embodiment of the present application, the embodiment of the present application also provides a communication system, including the one or more first communication devices mentioned above. The system may further include the one or more second communication devices mentioned above.

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

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

[0318] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

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

Claims

1. A communication method, characterized in that: include: A first network element receives a first query message from a terminal, where the first network element is in a visited network of the terminal, and the first query message includes information about a first domain name, where the first domain name is not authorized in the visited network of the terminal; The first network element sends a second query message to a domain name system (DNS) server, where the second query message includes information about the first domain name and information about a home network of the terminal, where the information about the home network is used to determine an address of an application server; The first network element receives the address of the application server from the DNS server.

2. The method according to claim 1, characterized in that The method further comprises: The first network element receives information from the second network element, where the information is used to indicate a rule adopted for a query message from the terminal for querying the address of an application server, the rule including: when the query message for querying the address of the application server includes a domain name that is not authorized in a visited network of the terminal, the first network element provides the DNS server with information of the home network.

3. The method according to claim 1, characterized in that The method further comprises: The first network element receives information from the second network element, where the information is used to indicate a rule adopted for the first query message, where the rule includes: the first network element providing the home network information to the DNS server.

4. The method according to claim 2 or 3, characterized in that The rule specifically includes: when the query message for querying the address of the application server includes an unauthorized domain name in the visited network of the terminal, the first network element provides the home network information and the unauthorized domain name to the DNS server in one message.

5. The method according to any one of claims 2 to 4, characterized in that The first network element is a functional network element for discovering an application server in a visited network of the terminal, and the second network element is a functional network element for managing a session of the terminal in the visited network of the terminal.

6. The method according to any one of claims 1 to 5, characterized in that The second query message includes an ECS option information element, and the ECS option information element indicates information about the home network.

7. The method according to any one of claims 1 to 6, characterized in that The home network information includes one or more of the following: The network protocol IP address of the terminal, the IP address of the user plane function network element in the home network, or the dedicated address of the home network.

8. The method according to any one of claims 1 to 7, characterized in that The first network element receiving the address of the application server from the DNS server includes: The first network element receives a second response message for the second query message from the DNS server, where the second response message includes the address of the application server; And, the method further comprises: The first network element sends a first response message to the terminal in response to the first query message, where the first response message includes the address of the application server.

9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: The first network element obtains domain name information authorized in a visited network of the terminal and / or domain name information unauthorized in the visited network of the terminal; The first network element determines, based on the domain name information, that the first domain name is not authorized in a visited network of the terminal.

10. The method according to claim 9, characterized in that The domain name information includes a first domain name set, the first domain name set includes one or more domain names authorized in a visited network of the terminal, and the first domain name does not belong to the first domain name set; and / or The domain name information includes a second domain name set, the second domain name set includes one or more domain names that are not authorized in a visited network of the terminal, and the first domain name belongs to the second domain name set.

11. The method according to any one of claims 1 to 10, characterized in that The first domain name is not authorized in the visited network of the terminal, including: the service corresponding to the first domain name is not authorized by the home network to be diverted to the local data network.

12. The method according to any one of claims 1 to 11, characterized in that The application server is used to provide the terminal with a service corresponding to the first domain name.

13. A communication method, characterized in that: include: The second network element sends first information to the terminal, where the first information is used to instruct the first network element to discover an application server that provides a service for the terminal, and the first network element and the second network element are in a visited network of the terminal; The second network element sends second information to the first network element, where the second information is used to indicate a rule adopted for a query message from the terminal for querying the address of an application server, the rule including: when the query message for querying the address of the application server includes a domain name that is not authorized in a visited network of the terminal, the first network element provides information of the home network of the terminal to the DNS server.

14. The method according to claim 13, characterized in that The rule specifically includes: when the query message for querying the address of the application server includes an unauthorized domain name in the visited network of the terminal, the first network element provides the home network information and the unauthorized domain name to the DNS server in one message.

15. The method according to claim 13 or 14, characterized in that The method further comprises: The second network element receives third information from a third network element, where the third network element is in the home network of the terminal. The third information includes information about the home network of the terminal, and the information about the home network is used to query an application server corresponding to an unauthorized domain name in the visited network of the terminal.

16. The method according to any one of claims 13 to 15, characterized in that The home network information includes one or more of the following: The network protocol IP address of the terminal, the IP address of the user plane function network element in the home network, or the dedicated address of the home network.

17. The method according to any one of claims 13 to 16, characterized in that The first network element is a functional network element for discovering an application server in a visited network of the terminal, and the second network element is a functional network element for managing a session of the terminal in the visited network of the terminal.

18. The method according to any one of claims 13 to 17, characterized in that The domain name that is not authorized in the visited network of the terminal includes: the service corresponding to the domain name is not authorized by the home network to be diverted to the local data network.

19. A communication method, characterized in that: include: A first network element receives a first query message from a terminal, where the first query message includes information about a first domain name, where the first domain name is not authorized in a visited network of the terminal; The first network element sends a second query message to the second network element, where the second query message includes information about the first domain name, and a destination address of the second query message is an address of a domain name system (DNS) server, where the DNS server is used to query, for the terminal, an address of an application server corresponding to an unauthorized domain name in a visited network of the terminal, and the application server is used to provide a service corresponding to the first domain name for the terminal; The first network element receives the address of the application server from the second network element.

20. The method according to claim 19, characterized in that The DNS server is a DNS server corresponding to a home network of the terminal; or, the DNS server is a central DNS server in a central data network.

21. The method according to claim 19 or 20, characterized in that The method further comprises: The first network element receives information from the second network element, where the information is used to indicate a rule adopted for a query message from the terminal for querying the address of an application server, the rule including: when the query message for querying the address of the application server includes a domain name that is unauthorized in a visited network of the terminal, the first network element sends a query message to the second network element, the query message including the unauthorized domain name and the destination address being the address of the DNS server.

22. The method according to claim 19 or 20, characterized in that The method further comprises: The first network element receives information from the second network element, where the information is used to indicate a rule adopted for the first query message, and the rule includes: the first network element provides the second network element with the second query message including the first domain name and the destination address being the address of the DNS server.

23. The method according to any one of claims 19 to 22, characterized in that The first network element is a functional network element for discovering an application server in a visited network of the terminal, and the second network element is a functional network element for managing a session of the terminal in the visited network of the terminal.

24. The method according to any one of claims 19 to 23, characterized in that The first network element receiving the address of the application server from the second network element includes: The first network element receives a second response message for the second query message from the second network element, and the second response message The information includes the address of the application server; And, the method further comprises: The first network element sends a first response message to the terminal in response to the first query message, where the first response message includes the address of the application server.

25. The method according to any one of claims 19 to 24, characterized in that The method further comprises: The first network element obtains domain name information authorized in a visited network of the terminal and / or domain name information unauthorized in the visited network of the terminal; The first network element determines, based on the domain name information, that the first domain name is not authorized in a visited network of the terminal.

26. The method according to claim 25, characterized in that The domain name information includes a first domain name set, the first domain name set includes one or more domain names authorized in a visited network of the terminal, and the first domain name does not belong to the first domain name set; and / or The domain name information includes a second domain name set, the second domain name set includes one or more domain names that are not authorized in a visited network of the terminal, and the first domain name belongs to the second domain name set.

27. The method according to any one of claims 19 to 26, characterized in that The first domain name is not authorized in the visited network of the terminal, including: the service corresponding to the first domain name is not authorized by the home network of the terminal to be diverted to the local data network.

28. A communication method, characterized in that: include: The second network element receives a second query message from the first network element, where the second query message includes information about a first domain name from the terminal, and a destination address of the second query message is an address of a domain name system (DNS) server, where the first domain name is not authorized in a visited network of the terminal, the DNS server is used to query the terminal for an address of an application server corresponding to the domain name that is not authorized in the visited network of the terminal, the application server is used to provide a service corresponding to the first domain name for the terminal, and the second query message is used to query the DNS server for an address of the application server corresponding to the first domain name for the terminal, the first network element is a functional network element in the visited network of the terminal for managing a session of the terminal, and the second network element is a functional network element in the visited network of the terminal for discovering an application server; The second network element queries the DNS server for the address of the application server corresponding to the first domain name on behalf of the terminal through a network element in the home network of the terminal.

29. The method according to claim 28, characterized in that The DNS server is a DNS server corresponding to a home network of the terminal; or, the DNS server is a DNS server in a central data network.

30. The method according to claim 28 or 29, characterized in that The method further comprises: The second network element sends information to the first network element, where the information is used to indicate a rule adopted for a query message from the terminal for querying the address of the application server, the rule including: when the query message for querying the address of the application server includes a domain name that is unauthorized in the visited network of the terminal, the first network element sends a query message to the second network element, the query message including the unauthorized domain name and the destination address being the address of the DNS server.

31. The method according to any one of claims 28 to 30, characterized in that The method further comprises: The second network element receives a third response message from a third network element, where the third response message includes an address of an application server corresponding to the first domain name, and the third network element is a functional network element in the home network for managing a session of the terminal; And, the method further comprises: The second network element sends a second response message to the first network element for the second query message, where the second response message includes an address of an application server corresponding to the first domain name.

32. The method according to any one of claims 28 to 31, characterized in that The second network element queries the DNS server for the address of the application server corresponding to the first domain name on behalf of the terminal through a network element in the home network of the terminal, including: The second network element sends a third query message to the third network element, where the third query message is used to query the DNS server for the address of the application server corresponding to the first domain name for the terminal, and the third query message includes information about the first domain name. The third network element is a functional network element in the home network for managing the session of the terminal.

33. The method according to any one of claims 28 to 32, characterized in that The first domain name is not authorized in the visited network of the terminal, including: the service corresponding to the first domain name is not authorized by the home network to be diverted to the local data network.

34. A communication method, characterized in that: include: The second network element sends first information to the terminal, wherein the first information is used to instruct the first network element to discover an application server that provides services for the terminal, and the first network element and the second network element are in a visited network of the terminal. In a visited network of the terminal; The second network element sends second information to the first network element, where the second information is used to indicate a rule adopted for a query message from the terminal for querying an address of an application server, the rule comprising: if the query message for querying the address of the application server includes a domain name that is not authorized in a visited network of the terminal, the first network element provides information about the home network of the terminal to a DNS server; The first network element receives a first query message from the terminal, where the first query message includes information about a first domain name, where the first domain name is not authorized in a visited network of the terminal; The first network element sends a second query message to a domain name system (DNS) server, where the second query message includes information about the first domain name and information about a home network of the terminal, where the home network information is used to determine an address of an application server, and the application server is used to provide a service corresponding to the first domain name for the terminal; The first network element receives the address of the application server from the DNS server; The first network element sends the address of the application server to the terminal.

35. A communication method, characterized in that: include: A first network element receives a first query message from a terminal, where the first query message includes information about a first domain name, where the first domain name is not authorized in a visited network of the terminal; The first network element sends a second query message to the second network element, where the second query message includes information about the first domain name, and a destination address of the second query message is an address of a domain name system (DNS) server, where the DNS server is used to query, for the terminal, an address of an application server corresponding to an unauthorized domain name in a visited network of the terminal, and the application server is used to provide a service corresponding to the first domain name for the terminal; The second network element queries the DNS server for the address of the application server corresponding to the first domain name for the terminal through the network element in the home network of the terminal; The first network element receives the address of the application server from the second network element; The first network element sends the address of the application server to the terminal.

36. A communication device, characterized in that The communication device comprises a processor coupled to a memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory so that the communication device performs the method according to any one of claims 1 to 33.

37. A communication device, characterized in that: Comprising means for performing the method of any one of claims 1 to 33.

38. A communication system, characterized in that: include: A communication device for performing the method according to any one of claims 1 to 12 and a communication device for performing the method according to any one of claims 13 to 18; and / or, A communication device for performing the method according to any one of claims 19 to 27 and a communication device for performing the method according to any one of claims 28 to 33.

39. A computer-readable storage medium comprising a computer program, which, when run on a computer, causes the computer to perform the method according to any one of claims 1 to 33.

40. A computer program product, characterized in that The computer program product comprises a computer program, which enables a computer to perform the method according to any one of claims 1 to 33 when the computer program is executed.

41. A communication method, characterized in that: include: A first network element receives a first query message from a terminal, where the first network element is in a visited network of the terminal, and the first query message includes information about a first domain name, where the first domain name is not authorized in the visited network of the terminal; The first network element sends a second query message to a domain name system (DNS) server, where the second query message includes information about the first domain name and information about a home network of the terminal, where the information about the home network is used to determine an address of an application server; The first network element receives the address of the application server from the DNS server; The method further comprises: The DNS server receives the second query message and sends the address of the application server.

Citation Information

Patent Citations

  • Communication method and communication device

    CN118740791A

  • Domain name system query method and communication device

    CN112422701A

  • Method and device for obtaining edge service

    CN113794784A

  • Edge application server discovery method and device

    CN114125808A