Communication method and communication device

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

CN118740791AActive Publication Date: 2024-10-01HUAWEI TECH CO LTD

Patent Information

Application Number
CN202310363701.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

In a mobile communication network, when a terminal is roaming in the visited network, if the home network is not authorized to offload services corresponding to domain names to the local data network, the terminal may receive limited service quality and be unable to access services provided by unauthorized application servers. .

Method used

When the first network element receives the query message from the terminal, it provides the home network information to the DNS server to obtain the application server address corresponding to the unauthorized domain name, so that the terminal can access the application server and improve the quality of communication services.

Benefits of technology

It realizes that the terminal obtains unauthorized services in the service network and shunts them to the application server address of the local data network, avoiding the problem of limited service quality and improving the communication service quality of the terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740791A_ABST
    Figure CN118740791A_ABST
Patent Text Reader

Abstract

The invention provides a communication method and a communication device, and the method comprises the steps that a first network element receives a first query message from a terminal, the first query message comprises information of a first domain name, and the first domain name is not authorized in a visited network of the terminal; the first network element is a network element in a visited network of the terminal. The first network element sends a second query message to a domain name system server according to the first query message, the second query message comprises information of the first domain name and information of a home network of the terminal, the information of the home network is used for determining an address of an application server, and the application server is used for providing a service corresponding to the first domain name for the terminal. A first network element receives an address of an application server from a DNS server. The problem that the terminal cannot access the service corresponding to the domain name due to the fact that the domain name is not authorized in the visited network can be avoided, and the communication service quality of the terminal can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] 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 wireless network of the HPLMN due to movement or other reasons, if the current terminal is in the coverage of the wireless network of another PLMN, and the PLMN is a PLMN that has signed a roaming agreement with the HPLMN of the terminal, the terminal can access the PLMN through the wireless network of the PLMN. 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 roaming of the terminal can be called home routed (HR) roaming.

[0003] In the HR roaming scenario of the terminal, the HPLMN can authorize that the services corresponding to some domain names can 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 according to 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.

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

[0005] 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.

[0006] In a 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 a communication device (such as a chip or a chip system). The following describes the method by taking the first network element executing the method as an example.

[0007] The method includes: a first network element receives a first query message from a terminal, the first network element is in a visited network of the terminal, the first query message includes information of a first domain name, and 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, the second query message includes information of the first domain name and information of a home network of the terminal. The first network element receives the address of the application server from the DNS server.

[0008] 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.

[0009] 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.

[0010] According to the above scheme, when the first network element in the visited network of the terminal 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 visited network of the terminal, the first network element provides the information of the home network of the terminal 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 the service to the terminal, and provide it to the terminal through the first network element. The terminal can 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.

[0011] In combination with the first aspect, in certain implementations of the first aspect, the method also 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 a visited network of the terminal, the first network element provides the DNS server with information about the home network.

[0012] In one implementation, 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 one message and provides it to the DNS server.

[0013] According to the above scheme, the second network element can indicate to the first network element the rules for processing DNS query messages, and the rules include providing the information of the home network to the DNS server when the acquired query message contains a domain name that is not authorized in the service network. The first network element can process the DNS query message according to the rule. The DNS server can obtain the information of the home network of the terminal, and then obtain the address of the AS corresponding to the first domain name based on the address affinity according to the first domain name and the information of the home network 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 the unauthorized domain name, and can improve the communication service quality of the terminal.

[0014] In an implementation manner, 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.

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

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

[0017] 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.

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

[0019] 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.

[0020] According to the above scheme, the information of the home network 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 obtaining the address of the AS based on the information of the home network.

[0021] In combination with the first aspect, in some implementations of the first aspect, the first network element receives the address of the application server from the DNS server, including: the first network element receives a second response message from the DNS server for the second query message, the second response message including the address of the application server. And the method further includes: the first network element sends a first response message to the terminal for the first query message, the first response message including the address of the application server.

[0022] 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 address of the AS corresponding to the first domain name to the terminal 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.

[0023] In combination with the first aspect, in some implementations of the first aspect, the method further includes: 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 unauthorized in the visited network of the terminal.

[0024] Exemplarily, the domain name information includes a first domain name set and / or a second 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. The domain name information includes that 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.

[0025] According to the above solution, the first network element can determine that the first domain name is not authorized in the visited network of the terminal based on the domain name information, such as determining that the first domain name is not authorized in the visited network of the terminal based on the fact that the first domain name does not belong to the first domain name set and / or based on 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 information of the home network, so that the DNS server can accurately obtain the address of the AS corresponding to the first domain name and feed it back to the terminal.

[0026] In a 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 (such as a chip or a chip system) configured in the communication device. The following describes the method by taking the second network element executing the method as an example.

[0027] The method includes: a second network element sends first information to a terminal, the first information is used to indicate that the first network element is used 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. The second network element sends second information to the first network element, 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 including: in a case where 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 information of the home network of the terminal to a DNS server.

[0028] 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.

[0029] According to the above scheme, the second network element can indicate to the first network element the rules for processing DNS query messages, and the rules include providing the information of the home network to the DNS server when the acquired query message contains a domain name that is not authorized in the service network. The first network element can process the DNS query message according to the rule. The DNS server can obtain the information of the home network of the terminal, and then obtain the address of the AS corresponding to the first domain name based on the address affinity according to the first domain name and the information of the home network of the terminal and provide it to the terminal. The terminal can access the application server in the service network and obtain the services provided by the application server. It can avoid the terminal being unable to access the service corresponding to the domain name because the domain name is not authorized, and can improve the communication service quality of the terminal.

[0030] 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 one message and provides it to the DNS server.

[0031] 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.

[0032] 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.

[0033] In combination with the second aspect, in certain implementations of the second aspect, the information of the home network includes a network 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.

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

[0035] In combination with the second aspect, in certain 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.

[0036] 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 includes 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 includes 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.

[0037] According to a third aspect, a communication method is provided. The method can be executed by a communication device, which may be a communication device or a component (such as a chip or a chip system) configured in the communication device. The method is described below by taking the first network element executing the method as an example.

[0038] The method includes: a first network element receives a first query message from a terminal, the first query message includes information of a first domain name, and 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 second network element, the second query message includes information of the first domain name, and the destination address of the second query message is an address of a domain name system DNS server, 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, and the application server is used to provide the terminal with a service corresponding to the first domain name.

[0039] 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.

[0040] 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.

[0041] According to the above scheme, when the first network element in the visited network of the terminal 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 containing the unauthorized domain name and the destination address is the address of the above DNS server to the second network element. 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 visited network of the terminal. The terminal can 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.

[0042] 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.

[0043] 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, the address of the AS can be fed back 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.

[0044] 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 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 an unauthorized domain name 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.

[0045] 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 network element with the second query message containing the first domain name and the destination address being the address of the DNS server.

[0046] 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.

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

[0048] In combination with the third aspect, in some implementations of the third aspect, the first network element receiving the address of the application server from the second network element includes: the first network element receiving a second response message from the second network element for the second query message, the second response message including the address of the application server. And the method further includes: the first network element sending a first response message to the terminal for the first query message, the first response message including the address of the application server.

[0049] In combination with the third aspect, in some implementations of the third aspect, the method further includes: the first network element obtains domain name information authorized in a visited network of the terminal and / or domain name information not authorized 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 the visited network of the terminal.

[0050] In combination 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 that are not authorized in a visited network of the terminal, and the first domain name belongs to the second domain name set.

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

[0052] 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 a 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 address of an application server corresponding to a domain name that is not authorized in the visited network of the terminal for 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 the 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 application servers.

[0053] According to the above scheme, the second network element indicates the rule for processing the DNS query message to the first network element, so that the first network element can transmit the query message containing the unauthorized domain name and the destination address of the DNS server to the second network element, that is, the control plane network element for managing the terminal session in the visited network of the terminal, based on the rule, and the terminal transmits the query message in the control plane network element of the visited network, so that 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 based on the destination address of the query message. In addition, in this scheme, even if the terminal encrypts the query message, the first network element used to discover the AS can determine whether the domain name contained in the query message is an unauthorized domain name in the visited network, so as to transmit the query message based on the rule, so that the terminal obtains the address of the AS corresponding to the domain name. It can be achieved that the terminal obtains 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. This can avoid the situation where the terminal cannot 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.

[0054] 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 home network of the terminal.

[0055] Exemplarily, the second network element sends a third query message to a 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 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.

[0056] According to the above solution, the query message is transmitted by the terminal in the control plane network element of the visited network, so that the query message can be transmitted to the home network of the terminal, and then transmitted to the DNS server that can query the address of the AS corresponding to the first domain name through the home network. In this way, the terminal can 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.

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

[0058] 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 an 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.

[0059] In one implementation, the second network element sends information to the first 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 provides the second network element with the second query message containing the first domain name and the destination address being the address of the DNS server.

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

[0061] 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.

[0062] Specifically, the second network element receives a third response message from a third network element, the third response message includes 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. And the method also includes: the second network element sends a second response message to the first network element for the second query message, the second response message includes the address of the application server corresponding to the first domain name.

[0063] In combination with the fourth aspect, in certain implementations of the fourth aspect, a response message including the address of the AS corresponding to the first domain name may be transmitted to the terminal via a user plane network element in the home network and a user plane network element in the visited network of the terminal.

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

[0065] The method includes: a second network element sends first information to a terminal, the first information is used to indicate that the first network element is used to discover an application server that provides services for the terminal, the first network element is a functional network element in a visited network of the terminal for managing the terminal session, and the second network element is a functional network element in the visited network for discovering application servers. The second network element sends second information to the first network element, the second information is used to indicate a rule adopted for a first query message from the terminal for querying an address of an application server, the rule including: in the case where the first query message includes a domain name that is not authorized in the visited network, the first network element sends a second query message including the unauthorized domain name and the destination address is the address of a DNS server to the second network element, wherein the DNS server is used to query the address of an application server corresponding to the domain name that is not authorized in the visited network for the terminal.

[0066] For the beneficial effects of the scheme in the fifth aspect, reference can be made to the description of the beneficial effects of the corresponding schemes in the third and fourth aspects, which will not be repeated here.

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

[0068] The method includes: a fourth network element receives a first query message, the first query message includes information of a first domain name from a terminal, the first domain name is not authorized in a visited network of the terminal. The fourth network element sends a fourth query message, the fourth query message includes information of the first domain name, and the destination address of the fourth query message is an address of a domain name system DNS server, 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, and the application server is used to provide the terminal with a service corresponding to the first domain name.

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

[0070] 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.

[0071] According to the above scheme, 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 DNS server. 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 based on the destination address of the query message. 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 services 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.

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

[0073] 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 a functional network element in the home network for managing the session of the terminal.

[0074] 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 sends information to a first network element, the first network element being a network element in a visited network of the terminal for discovering an application server. The 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 including: in a case where the query message for querying an address of an application server includes a domain name that is not authorized in the visited network of the terminal, the first network element sends the query message for querying the address of the application server to the second network element.

[0075] In combination with the sixth aspect, in some implementations of the sixth aspect, the fourth network element receiving the address of the application server includes: the fourth network element receiving a fourth response message to the fourth query message, the fourth response message including the address of the application server. The fourth network element sends a first response message to the terminal to the first query message, the first response message including the address of the application server.

[0076] In the seventh 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 describes the method by taking a terminal executing the method as an example.

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

[0078] According to the above scheme, 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, so that even if the terminal encrypts the query message for protection (such as DHO, DOT), although the user plane function network element cannot interpret the query message, it can 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 visited network for the terminal through the home network. The terminal can access the address of the application server corresponding to the unauthorized domain name in the visited network to obtain the services provided by the application server. It can avoid the terminal being unable to access the services corresponding to the domain name because the domain name is not authorized, and can improve the communication service quality of the terminal.

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

[0080] The method includes: a first user plane function network element receives a first message from a terminal, the first message includes a query message and indication information, the query message is used to query the address of an application server corresponding to a first domain name, the indication information is used to indicate that the query message is used to query the address of an AS corresponding to a domain name that is not authorized in a visited network, or the indication information is used to indicate that the query message contains a domain name that is not authorized in the visited network. The first user plane function network element is 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, and the second user plane function network element is in the home network of the terminal.

[0081] For the beneficial effects of the scheme in the eighth aspect, reference may be made to the description of the beneficial effects of the scheme in the seventh aspect, which will not be repeated here.

[0082] In a ninth aspect, a communication method is provided. The method can be executed by a communication system, and the communication system includes a first network element and a second network element.

[0083] 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 to the terminal, the first network element and the second network element are in a visited network of the terminal, and the first network element and the second network element are in a visited network of the terminal.

[0084] 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, where the rule includes: 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.

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

[0086] 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.

[0087] 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.

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

[0089] In a tenth aspect, a communication method is provided. The method can be executed by a communication system, and the communication system includes a first network element and a second network element.

[0090] The method includes: a first network element receives a first query message from a terminal, the first query message includes information of a first domain name, and the first domain name is not authorized in a visited network of the terminal;

[0091] 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 the address of an application server corresponding to an unauthorized domain name in a visited network of the terminal for the terminal, and the application server is used to provide the terminal with a service corresponding to the first domain name;

[0092] 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;

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

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

[0095] In the eleventh aspect, a communication device is provided, which may include a module corresponding to the method / operation / step / action described in the first aspect to the eighth aspect and any possible implementation of the first aspect to the eighth aspect, and the module may be a hardware circuit, or software, or a combination of a hardware circuit and software. For details, please refer to the detailed description in the corresponding method example above, which will not be repeated here.

[0096] 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.

[0097] Optionally, the communication device also includes the memory.

[0098] 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 may be a transceiver, a pin, a circuit, a bus, a module or other types of communication interfaces, without limitation.

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

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

[0101] 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.

[0102] In a thirteenth aspect, a processor is provided, comprising: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any possible implementation of the first to eighth aspects and the first to eighth aspects.

[0103] In the specific implementation process, the above-mentioned processor can be one or more chips, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be received and input by, for example, but not limited to, a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used 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.

[0104] In the fourteenth aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instruction), 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.

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

[0106] 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 is used to execute the method performed 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 is used to execute the method performed by the second network element in any possible implementation of the above-mentioned first to eighth aspects and the first to eighth aspects.

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

[0108] Figure 1 is a schematic diagram of a communication system architecture provided by an embodiment of the present application;

[0109] Figure 1A is another schematic diagram of the communication system architecture provided by an embodiment of the present application;

[0110] Figure 2 is a schematic flow chart of a communication method provided in an embodiment of the present application;

[0111] Figure 3This is a schematic flow chart of the communication method provided in the embodiment of the present application applied to the terminal roaming scenario;

[0112] Figure 4 is another schematic flow chart of the communication method provided in an embodiment of the present application;

[0113] Figure 5 is another schematic flow chart of the communication method provided in the embodiment of the present application applied to the terminal roaming scenario;

[0114] Figure 6 is a schematic block diagram of a communication device provided in an embodiment of the present application;

[0115] Figure 7 It is another schematic structural diagram of the communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0116] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0117] In the embodiment of the present application, " / " can indicate that the objects associated before and after are in an "or" relationship, for example, A / B can indicate A or B; "and / or" can be used to describe that there are three relationships between the associated objects, for example, A and / or B can indicate: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In order to facilitate the description of the technical solution of the embodiment of the present application, in the embodiment of the present application, the words "first" and "second" can be used to distinguish. The words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit the difference. In the embodiment of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations, and any embodiment or design described as "exemplary" or "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or design. The use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way for easy understanding. In the embodiments of the present application, at least one (kind) can also be described as one (kind) or more (kinds), and more (kinds) can be two (kinds), three (kinds), four (kinds) or more (kinds), and the present application does not impose any limitation.

[0118] The technical solutions of the embodiments of the present application can be applied to various communication systems, for example: 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.

[0119] The terminal device involved in the embodiments of the present application may also be referred to as a terminal. The terminal may be a device with wireless transceiver function. The terminal may be deployed on land, including indoors, outdoors, handheld, and / or vehicle-mounted; it may also be deployed on the water (such as a ship, etc.); it may also be deployed in the air (such as 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 function. Exemplarily, the UE may be a mobile phone, a tablet computer, or a computer with wireless transceiver function. 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.

[0120] The radio access network (RAN) network element involved in the embodiment 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 embodiment 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 referred to as 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 by a centralized unit (CU) and a distributed unit (DU), that is, the base station includes a CU and a DU.

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

[0122] 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.

[0123] The SMF network element is mainly responsible for session management, terminal device address management and allocation, dynamic host configuration protocol functions, user plane function selection and control, etc. It is mainly responsible for session management in mobile networks, such as session establishment, modification, and release. Specific functions include allocating IP addresses to users and selecting UPFs that provide message forwarding functions.

[0124] like Figure 1A A schematic diagram of an HR roaming network architecture applicable to an embodiment of the present application is shown. In the HR roaming scenario, the SMF network element in the home network of the terminal can be recorded as an H-SMF network element, and the network element in the visited network of the terminal can be recorded as a V-SMF network element. Information can be exchanged between the V-SMF network element and the H-SMF network element through interface 16 (recorded as N16).

[0125] The UPF network element is mainly responsible for data packet routing and forwarding, message filtering, and execution of quality of service (QoS) control related functions connected to the data network (DN) and the user plane. The UPF network element directly connected to the DN through N6 in the session is called a protocol data unit (PDU) session anchor (PSA). Specifically, the core network may include a UPF network element connected to a DNS server (which may be called a central DNS server) in a central data network (Central DN), and the UPF network element may be specifically referred to as a center PSA (C-PSA). The core network may also include a UPF network element connected to a DNS server in a local data network (Local part of DN), and the UPF network element may be specifically referred to as a local PSA (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.

[0126] In the HR roaming scenario, Figure 1A As shown, the UPF network element in the home network of the terminal can be recorded as an H-UPF network element, and the UPF network element in the visited network of the terminal can be recorded as a V-UPF network element. The V-UPF network element and the H-UPF network element can exchange information through interface 9 (recorded as N9).

[0127] UDM is mainly responsible for storing the contract data, credentials and persistent identity (SUPI) of the contracted terminal devices in the network, and provides the service interface Nudm. These data can be used for authentication and authorization of terminal devices to access the operator's network.

[0128] AUSF is mainly responsible for the authentication function of terminal equipment.

[0129] 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-oriented interface provided is Npcf.

[0130] In the HR roaming scenario, Figure 1A As shown, the PCF network element in the home network of the terminal can be recorded as an H-PCF network element, and the UPF network element in the visited network of the terminal can be recorded as a V-PCF network element. The V-PCF network element and the H-PCF network element can exchange information through an interface 24 (recorded as N24).

[0131] 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.

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

[0133] It should be noted that the above-mentioned functional networks can work independently or be combined together 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 change of user plane transmission paths.

[0134] like Figure 1The functional network elements shown 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 with each other 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 This is only an exemplary architecture diagram. Figure 1 In addition to the functional units shown in the figure, the network architecture may also include other functional units, which are not limited in the present application.

[0135] 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 Internet protocol (IP) address of the EAS. 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 instruction of the SMF network element, including: receiving a DNS query message from the UE, including a full qualified domain name (FQDN), and reporting the FQDN in the DNS query message to the SMF network element. And, the EASDF network element receives the 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.

[0136] When a terminal roams in a VPLMN, the HPLMN can authorize services corresponding to one or more FQDNs to be diverted to the local data network of the VPLMN. However, for FQDNs that the HPLMN does not authorize to divert services to the local data network of the VPLMN, the quality of services that the terminal can obtain may be limited. For example, when a terminal roams in a VPLMN, it may not be able to access services corresponding to domain names that are not authorized to be diverted to the local data network of the VPLMN.

[0137] In view of the above problems, the embodiments of the present application provide corresponding solutions. The functional network element for discovering the application server (AS) can obtain the information of the home network of the terminal, and provide the information of the home network of the terminal to the DNS server when providing the AS discovery service for the terminal, 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 the service to the terminal, and then provide it to the terminal through the functional network element for discovering the AS, so that the terminal can 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 the service to the terminal in the service network. The terminal can access the services it needs and improve the communication quality of the terminal.

[0138] Figure 2 It is a schematic flow chart of the communication method 200 provided in an embodiment of the present application. In the communication method 200, the service network of the terminal may be a visited network, that is, the terminal roams in the visited network. Alternatively, the service network of the terminal may be an intermediate network whose PLMN is the same as the PLMN of the terminal's home network. Among them, the intermediate network can be understood as a network composed of intermediate network elements that provide services to the terminal, for example, the intermediate session management function network element (I-SMF, Intermediate SMF) provides session management services to the terminal. The method 200 can enable the terminal to query the address of the AS corresponding to the domain name that is not authorized in the visited network or the service network, and access the AS in the visited network or the intermediate network. Alternatively, the service network may be the home network of the terminal, for example, the terminal is in Figure 2 In the illustrated embodiment, the terminal needs to query the address of the AS that does not cooperate with the home network of the terminal, or the AS cooperates with other operator networks other than the home network of the terminal. The method 200 can enable the terminal to query the address of the AS and access the AS that does not cooperate with the home network. The following mainly takes the service network of the terminal as the visited network of the terminal as an example for explanation, it should be understood that the present application is not limited to this, and the service network can also be the above-mentioned intermediate network or home network.

[0139] 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 may 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:

[0140] 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.

[0141] 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.

[0142] 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, and 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, which is not limited in the present application, and the present application only uses the domain name as an example for explanation.

[0143] 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 distributed. 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.

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

[0145] 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.

[0146] In another example, the first network element obtains domain name information that is not authorized in the service network, and the domain name information may include a second domain name set. The first network element obtains domain name information that is authorized in the service network and domain name information that is not authorized in the service network. The first domain name set includes one or more domain names that are not authorized in the service network, and 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 belongs to the second domain name set.

[0147] 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.

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

[0149] In one manner, the first network element obtains the domain name information from the configuration information of the first network element (such as the configuration information stored inside the first network element). That is, the domain name information is configured in the first network element.

[0150] Exemplarily, 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.

[0151] In another manner, after receiving the first query message, the first network element may send a request message to the second network element, where the request message is used to request domain name information authorized in the service network and / or domain name information not authorized in the service network. After receiving the request message, the second network element sends the domain name information requested by the request message to the first network element. The first network element determines, based on the domain name information, that the first domain name is not authorized in the service network.

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

[0153] 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 an unauthorized traffic for Home Routed with Session Breakout in VPLMN information element in the VPLMN offloading information. However, the present application is not limited thereto.

[0154] In another optional implementation, after receiving the first query message, 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 not authorized in the service network according to the first domain name and the domain name information authorized in the service network and / or the domain name information not authorized in the service network acquired by the second network element, and the second network element sends the information of the home network of the terminal to the first network element. The information of the home network is used by the first network element to determine the second query message in S202.

[0155] In one manner, 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 service network.

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

[0157] 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.

[0158] 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 service network, and then the first network element includes the information of the home network of the terminal obtained before receiving the first query message and the information of the first domain name obtained based on the first query message in the 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 the second query message including the first domain name and the information of the home network of the terminal to the DNS server.

[0159] 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 service network of the terminal 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 the intermediate network).

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

[0161] The information of the home network of the terminal 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 information of the home network of the terminal may be an Internet Protocol (IP) address of the terminal, an IP address of a user plane function network element in the home network of the terminal, or a dedicated address of the home network of the terminal. After the DNS server obtains the information of the home network of the terminal through the second query message, it can determine the address of the AS corresponding to the first domain name based on the address affinity.

[0162] For example, the information of the home network of the terminal may be the IP address 1 of the terminal, and the IP address 1 may be used to obtain the address of the AS corresponding to the domain name that is not authorized in the service network, and the IP address 1 of the terminal is anchored to the UPF network element in the home network of the terminal. The second query message includes the IP address 1 of the terminal, and the DNS server may determine the address of the AS corresponding to the first domain name based on the IP address 1.

[0163] 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 may 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 thereto, and 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.

[0164] The information of the home network of the terminal may also be the IP address of the UPF network element in the home network of the terminal or the dedicated address of the home network. The dedicated address of the home network of the terminal may be a dedicated address used to obtain the address of the AS corresponding to the unauthorized domain name in the service network of the terminal, 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.

[0165] In an optional implementation manner, 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 the rule adopted for the query message from the terminal.

[0166] The second network element may send information to the first network element, the information being 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.

[0167] In example 1, 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 a home network of the terminal to a DNS server.

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

[0169] 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.

[0170] 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, and the DNS context update information includes a rule for a query message from the terminal, and the rule includes: when receiving a query message from the terminal containing a domain name that is not authorized in the visited network, the EASDF network element adds the information of the home network of the terminal 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 information of the home network of the terminal 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 information of the home network as the ECS option information element.

[0171] 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.

[0172] 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 service network, and sends the information of the home network of the terminal to the first network element. The first network element provides the information of the home network of the terminal to the DNS server.

[0173] For example, the first network element is an EASDF network element in a 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.

[0174] The difference between Example 2 and Example 1 is that in Example 1, the first network element obtains the information of the home network of the terminal before receiving the first query message, and determines that the second query message contains the information of the home network of the terminal based on the fact that the first domain name is not authorized in the service network. In Example 2, the second network element obtains the information of the home network of the terminal 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 information of the home network of the terminal.

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

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

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

[0178] For example, the DNS server sends a second response message to the first network element for the second query message, and 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 according to the second response message.

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

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

[0181] For example, the first network element sends a first response message to the terminal for 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.

[0182] According to the above scheme, 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 the information of the home network of the terminal, so that the DNS server can query the address of the AS corresponding to the first domain name based on the information of the home network of the terminal, and feedback it to the terminal. It can enable 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), so that the terminal can access the services provided by the AS, ensuring that the terminal device can access the services corresponding to the unauthorized domain name. It can avoid the terminal being unable to access the services corresponding to the domain name because the domain name is not authorized.

[0183] Figure 3 It is a schematic flow chart of the communication method 300 provided in an embodiment of the present application. Figure 3 The illustrated embodiment shows Figure 2 The illustrated embodiment is applied to a specific implementation method 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, and the V-SMF network element is an example of a second network element, and in the visited network, the V-SMF network element is a functional network element for managing the session of the UE, and the AMF network element is a functional network element for access management and / or mobility management of the UE in the visited network. The H-SMF network element is a functional network element for managing the session of the UE in the home network of the UE. It should be understood that the present application does not limit the names of the various network elements, and in the 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:

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

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

[0186] The UE sends a NAS message carrying session establishment / modification request information to the AMF network element in the visited network to initiate the home routing HR session establishment / modification process. Correspondingly, the AMF network element receives the NAS message from the UE and determines that the UE initiates the HR session establishment process based on the session establishment / modification request information in the NAS message.

[0187] 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 allowed indication information.

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

[0189] Exemplarily, 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.

[0190] S303, the V-SMF network element and the V-EASDF network element execute the DNS context creation / update process.

[0191] 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.

[0192] 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 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.

[0193] The DNS context creation process can be implemented 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 implementing the DNS context creation / update of the V-EASDF network element. Exemplarily, 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 Reponse) message.

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

[0195] 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, and 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 authorization session of the UE to be locally diverted in the visited network according to the HR-SBO authorization indication information in the session creation / update request message.

[0196] Exemplarily, the session creation request message may be recorded as N SMF _PDU Session_Create / Update request message.

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

[0198] 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. Exemplarily, the session creation / update response message can be recorded as N SMF _PDU Session_Create / Update request message.

[0199] The VPLMN diversion information includes the domain name information introduced above, such as the domain name information authorized in the visited network (the domain name information may include the first domain name set) and / or the domain name information not authorized in the visited network (the domain name information may include the second domain name set). For example, the domain name in the domain name set may be an FQDN or other domain name. The following description is made by taking the domain name as an example of an FQDN.

[0200] 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.

[0201] In an optional implementation, the VPLMN diversion information may also 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 an 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.

[0202] 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 described 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.

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

[0204] In this Figure 3 In the illustrated embodiment, the session creation / update response message may also include the information of the UE's home network, and the information of the UE's home network is used by the V-SMF network element to provide the V-EASDF network element so that the V-EASDF network element provides the DNS server with the information of the home network when receiving a query message from the UE containing a domain name that is not authorized in the visited network. 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 cells.

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

[0206] 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.

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

[0208] 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.

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

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

[0211] 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 a DNS processing rule. Optionally, the DNS context update request message may also carry, but is not limited to, one or more of the following information:

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

[0213] Exemplarily, 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.

[0214] After the V-SMF network element completes the DNS context update of the V-EASDF network element, the network element in the visited network can continue to perform other steps of session creation / modification for the UE ( Figure 3 The method includes: the V-SMF network element sends a session creation / modification acceptance message to the UE, and the session creation / modification acceptance message carries the address of the V-EASDF network element. After the UE receives the session creation / modification acceptance message, it can determine the address of the V-EASDF network element used to discover the AS for the UE.

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

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

[0217] 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 FQDN 1. Specifically, the first query message can be transmitted to the V-EASDF network element through the user plane. For example, the first query message is transmitted to the V-EASDF through the RAN and V-UPF network elements.

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

[0219] In an optional implementation, the V-EASDF network element may obtain domain name information, such as the V-EASDF network element obtains domain name information in a DNS context, and determines, 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, the domain names included in the first domain name set are domain names authorized in the visited network, and 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, the domain names included in the second domain name set are domain names that are unauthorized in the home network, and 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.

[0220] The V-EASDF network element determines that the FQDN 1 queried by the UE is an unauthorized domain name in the visited network, and the V-EASDF network element determines a second query message according to the DNS message processing rule, and the second query message includes the FQDN 1 and the information of the home network of the UE. For example, the V-EASDF network element adds the information of the home network of the UE to the first query message to obtain the second query message.

[0221] The DNS processing rule specifically includes: when receiving a query message from a terminal containing a domain name that is not authorized in a visited network, adding the information of the home network of the UE as an ECS option to the query message, and providing the query message to a DNS server. The V-EASDF network element can add the information of the home network of the UE as an ECS option to the first query message according to the processing rule to obtain a second query message.

[0222] 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 processing rules of the DNS query message. The V-SMF network element determines the ECS option corresponding to FQDN 1 (or determines the information corresponding to the FQDN 1 for constructing the ECS option) according to FQDN 1. The V-SMF network element sends the information of the home network of the UE to the V-EASDF network element. The V-EASDF network element can add the information of the home network of the UE as an ECS option to the second query message so that the second query message includes the information of the home network of the terminal.

[0223] S309, the V-EASDF network element sends a second query message to the DNS server.

[0224] 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 the address affinity according to the information of FQDN 1 and the home network of the UE.

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

[0226] For example, the DNS server sends a second response message to the V-EASDF network element for the second query message, and the second response message includes the address of the AS corresponding to the 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 the FQDN 1 according to the second response message.

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

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

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

[0230] As described above, the above S309 to S311 are executed when the V-EASDF network element can determine in S308 that FQDN 1 is an unauthorized domain name in the visited network. If the V-EASDF network element determines that FQDN 1 is an authorized domain name in the visited network, the V-EASDF network element interacts with the V-SMF network element to trigger the V-SMF network element to insert / update VPLMNULCL / BP / L-PSA. The V-EASDF network element reports FQDN 1 to the V-SMF network element. The V-SMF network element determines the 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. The DNS server queries the address of the AS corresponding to FQDN 1 based on the received query message 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 for the first query message, and the response message carries the address of the AS corresponding to FQDN 1.

[0231] 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 can provide the DNS server with the information of the home network of the UE, so that the DNS server can query the address of the AS corresponding to FQDN 1 based on the information of the home network of the UE, and feed it back to the terminal. The terminal can obtain the address of the AS corresponding to the domain name that is not authorized in the serving network in the visited network, so that the terminal can access the service provided by the AS.

[0232] An embodiment of the present application also provides a method, in which when a query message from a terminal includes a domain name that is not authorized by the home network to be diverted to a local DN corresponding to a service network, the core network of the service network can transmit the query message to the home network via a control plane network element, thereby reaching a server in the local DN corresponding to the home network or reaching a 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.

[0233] Figure 4 4 is a schematic flow chart of a communication method 400 provided in an embodiment of the present application. Figure 4 As shown, 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. Or, Figure 4 The DNS server shown 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 described using the DNS server as an example, and the method 400 includes but is not limited to the following steps:

[0234] 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.

[0235] Correspondingly, 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 the address of the AS corresponding to the first domain name queried by the terminal, 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 above description of S201, which will not be repeated here.

[0236] 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.

[0237] 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 service 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 according to a rule adopted for the query message.

[0238] Exemplarily, the second network element may send information to the first network element, the information being used to indicate the rule adopted for the query message 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 determines the rule adopted for the query message based on the information, and the first network element processes the query message based on the rule when receiving the query message. For example, the information may be carried in a DNS context update message sent by the second network element to the first network element.

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

[0240] Method 1, recorded as Rule 1, includes: when the query message for querying the address of the AS includes an unauthorized domain name 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.

[0241] 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 it to the second network element, where the second query message includes information of the first domain name.

[0242] For example, the first network element may send the first query message to the second network element, 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 be different from the first query message, such as including at least one different piece of information.

[0243] Method 2, recorded 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, including the unauthorized domain name and the destination address is the address of the DNS server.

[0244] 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 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.

[0245] 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, the second query message includes information of the first domain name, and the destination address of the second query message is the address of the DNS server.

[0246] 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. After 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, it obtains the 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 and the first query message may also contain other different information in addition to the destination address.

[0247] 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: in the case of receiving a query message 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 domain name information authorized in the service network and / or the domain name information not authorized in the service network obtained by the second network element, and the second network element sends an indication message to the first network element, and the indication message is used to instruct the first network element to send a second query message to the second network element.

[0248] 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.

[0249] In another embodiment, the indication information specifically indicates that the first network element sends 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. So that 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.

[0250] In another embodiment, the above rule 3 further includes: after the first network element sends the domain name to the second network element and receives indication information from the second network element instructing the first network element to send a query message, the destination address of the query message sent by the first network element to the second network element in response to the indication information is the address of the DNS server. The first network element may send a second query message with the destination address of the DNS server to the second network element based on rule 3.

[0251] 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.

[0252] 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.

[0253] The present application also provides a method for replacing S402, that is, after S401, the first network element may not execute S402, and 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 service network, then the second network element determines (or generates) a third query message, the third query message includes the first domain name, and the destination address is the address of the DNS server. The third query message is used for the second network element to query the DNS server for the address of the AS corresponding to the first domain name for the terminal through the network element in the home network in S403.

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

[0255] 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 the third query message according to the second query message, the third query message includes information of the first domain name, and the second network element sends the third query message to the third network element.

[0256] 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.

[0257] If the second query message received by the second network element from the first network element includes information of 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.

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

[0259] In another implementation, the destination address of the third query message sent by the second network element to the third network element is the address of the DNS server. The address of the DNS server may be obtained by the second network element from the 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 address of the DNS server is the address of the DNS server corresponding to the home network of the terminal or the address of the central DNS server. So that the DNS server corresponding to the destination address can obtain the query message, thereby querying the address of the AS corresponding to the first domain name for the terminal.

[0260] 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.

[0261] 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 obtained after being 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. So that the DNS server corresponding to the destination address can obtain the query message, thereby querying the address of the AS corresponding to the first domain name for the terminal.

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

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

[0264] Exemplarily, the address of the AS may be delivered by the DNS server to the third network element, and then delivered by the third network element to the second network element and then to the first network element, so that the terminal can obtain the address of the AS from the first network element. That is, the address of the AS is returned to the terminal through the network element that delivers the query message. However, the present application is not limited thereto, and the address of the AS may be delivered to the terminal without passing through one or more network elements in the home network and the visited network that deliver the query message.

[0265] 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 feed it back to the terminal through the home network and the service network, so that the terminal can access the services provided by the AS.

[0266] Figure 5 It is a schematic flow chart of the communication method 500 provided in an embodiment of the present application. Figure 5 The illustrated embodiment shows Figure 4 The embodiment shown is a specific implementation method applied to a scenario where the service network of the terminal (taking UE as an example) is a visited network. It should be understood that before S501 of the method 500, the UE and each network element may perform the following operations: Figure 3 For details, please refer to S301 to S305 shown in Figure 3 Description of the illustrated embodiment. Figure 5 In the embodiment shown Figure 3 The same parts in the embodiments shown can be referred to in Figure 3 The description in the illustrated embodiment is omitted for brevity. The method 500 may include but is not limited to the following steps:

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

[0268] The V-SMF network element updates the DNS context of the V-EASDF network element, which includes the DNS message handling rules that the V-SMF network element sends to the V-EASDF network element. The rules can be the ones described above. Figure 4 Rule 1 and Rule 2 in the illustrated embodiment.

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

[0270] 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.

[0271] S503, the V-EASDF network element determines the second query message.

[0272] 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.

[0273] In an example, the rule is the above-mentioned Rule 1. 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.

[0274] In another example, the rule is the above-mentioned Rule 2. The V-EASDF network element determines the 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.

[0275] In another example, the rule is the above-mentioned Rule 3, and 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, and 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, which will not be repeated here.

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

[0277] 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.

[0278] 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, which will not be repeated here.

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

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

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

[0282] S506, the H-SMF network element transmits the query message to the DNS server.

[0283] 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.

[0284] 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 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 the H-EASDF modifies the destination address of the third query message, and then passes the query message to the DNS server corresponding to the destination address. Among them, the modification of the destination address of the third query message by H-EASDF is performed based on the DNS processing rules issued by the H-SMF.

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

[0286] 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.

[0287] 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 delivered to the UE via the V-UPF network element. Alternatively, the path of the DNS response message from the DNS server to the UE may be delivered 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.

[0288] 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 transmitted from the DNS server to the UE may be sequentially transmitted 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 transmitted from the DNS server to the UE may be sequentially transmitted 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.

[0289] 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 transmitted to the home network through the V-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 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.

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

[0291] 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, the first message including a query message and indication information, the query message is used to query the address of the AS corresponding to the first domain name, 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.

[0292] In one method, the terminal adds the indication information to the air interface protocol message header and sends it to the access network element, for example, the indication information is added to the service data adaptation protocol (SDAP) header or the packet data convergence protocol (PDCP) header. The base station then adds the indication information to the core network user plane protocol message header, for example, the general packet radio service (GPRS) tunneling protocol-user plane (GPRS tunneling protocol-user plane, GTP-U) header.

[0293] The terminal sends the first message to the UPF network element in the service 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 service 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 address of the AS corresponding to the domain name that is not authorized in the service network can be queried for the terminal through the UPF in the home network. In this manner, the UPF network element in the service network does not need to interpret the query message of the first message, and can determine to pass the query message to the UPF network element in the home network based on the indication information in the first message.

[0294] Specifically, the first message may include a container, which carries the query message of the terminal. The indication information in the first message is carried outside the container. After the UPF network element in the service network reads the indication information in the first message, it sends the container to the UPF in the home network. The UPF network element in the service network transparently transmits (referred to as transparent transmission) the container to the UPF network element in the home network.

[0295] In this scheme, even if the terminal encrypts the query message for protection (such as query messages 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. Among them, DOH is the abbreviation of DNS over HTTPS. DOH is a secure domain name resolution scheme that uses the encrypted HTTPS protocol for DNS resolution requests. Among them, 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.

[0296] It should be understood that in the previous Figures 2 to 5 In the embodiment, the first network element and the second network element are capable of decrypting the encrypted query message from the terminal. Therefore, regardless of whether the query message is encrypted or not, Figures 2 to 5 The embodiments can all be implemented so that the terminal queries the address of the AS corresponding to the unauthorized domain name in the service network.

[0297] It is understandable that, in order to implement the functions in the above embodiments, the above network elements and terminals include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and method steps of each example described in the embodiments disclosed in this application, 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 the form of hardware or computer software driving hardware depends on the specific application scenario and design constraints of the technical solution.

[0298] Figure 6 and Figure 7A schematic diagram of the structure of a possible communication device provided for an embodiment 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 method embodiment, and thus can also achieve the beneficial effects of the above method embodiment. In an embodiment of the present application, the communication device can be such as Figure 1 The EASDF network element, SMF network element or UPF network element shown may also be a module (such as a chip or a chip system) of a communication device that implements the functions of the above network elements.

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

[0300] 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.

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

[0302] For more detailed description of the processing unit 610 and the transceiver unit 620, please refer to Figures 3 to 5 The method embodiment shown is described in detail.

[0303] 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, and 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.

[0304] When the above communication device is a module applied to a network device, the network device module implements the function of the network element in the above method embodiment. The network device module receives information from other modules in the network device, and 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, and 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.

[0305] like Figure 7 As shown, the communication device 700 includes a processor 710 and an interface circuit 720. The processor 710 and the interface circuit 720 are coupled to each other. It is understood that the interface circuit 720 can be a transceiver or an input-output interface. Optionally, the communication device 700 may also include a memory 730 for storing instructions executed by the processor 710 or storing input data required by the processor 710 to execute instructions or storing data generated after the processor 710 executes instructions.

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

[0307] 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, register, hard disk, mobile hard disk, CD-ROM or any other form of storage medium 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 a component of the processor. The processor and the 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 the storage medium can also be present in a communication device as discrete components.

[0308] According to the method provided in the embodiment of the application, the embodiment of the application also provides a computer program product, which includes: computer program code, when the computer program code is executed by one or more processors, the device including the processor executes as follows Figures 3 to 5 The method shown.

[0309] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device.

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

[0311] As described above, the computer program or instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program or instruction may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may 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 may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disc; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0312] 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.

[0313] In the several 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, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0315] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.

[0316] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A communication method, characterized in that: include: A first network element receives a first query message from a terminal, the first network element is in a visited network of the terminal, the first query message includes information of a first domain name, and 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, and the application server is used to provide the terminal with a service corresponding to the first domain name; 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, 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 comprising: 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 provides the DNS server with information about the home network.

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 used to discover an application server in a visited network of the terminal, and the second network element is a functional network element used to manage 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 of 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 receives the address of the application server from the DNS server, including: The first network element receives a second response message from the DNS server for the second query message, where the second response message includes an address of the application server; And, the method further comprises: The first network element sends a first response message to the terminal for 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, according to 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. 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 comprising: 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.

13. The method according to claim 12, 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.

14. The method according to claim 12 or 13, 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 of the home network of the terminal, and the information of the home network is used to query an application server corresponding to an unauthorized domain name in a visited network of the terminal.

15. The method according to any one of claims 12 to 14, characterized in that The information of the home network includes 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.

16. The method according to any one of claims 12 to 15, characterized in that The first network element is a functional network element used to discover an application server in a visited network of the terminal, and the second network element is a functional network element used to manage a session of the terminal in the visited network of the terminal.

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

18. A communication method, characterized in that: include: The first network element receives a first query message from a terminal, where the first query message includes information of 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 the address of an application server corresponding to a domain name that is not authorized in a visited network of the terminal for the terminal, and the application server is used to provide the terminal with a service corresponding to the first domain name; The first network element receives the address of the application server from the second network element.

19. The method according to claim 18, 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.

20. The method according to claim 18 or 19, characterized in that The method further comprises: 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 comprising: 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.

21. The method according to claim 18 or 19, 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.

22. The method according to any one of claims 18 to 21, characterized in that The first network element is a functional network element used to discover an application server in a visited network of the terminal, and the second network element is a functional network element used to manage a session of the terminal in the visited network of the terminal.

23. The method according to any one of claims 18 to 22, 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, where the second response message includes an address of the application server; And, the method further comprises: The first network element sends a first response message to the terminal for the first query message, where the first response message includes the address of the application server.

24. The method according to any one of claims 18 to 23, 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, according to the domain name information, that the first domain name is not authorized in a visited network of the terminal.

25. The method according to claim 24, 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.

26. The method according to any one of claims 18 to 25, 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.

27. A communication method, characterized in that: include: The second network element receives a second query message from the first network element, the second query message includes information of 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, 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 a service 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 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 for the terminal through the network element in the home network of the terminal.

28. The method according to claim 27, 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.

29. The method according to claim 27 or 28, characterized in that The method further comprises: The second network element sends information to the first 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 comprising: 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.

30. The method according to any one of claims 27 to 29, 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.

31. The method according to any one of claims 27 to 30, characterized in that 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 home network of the terminal, including: The second network element sends a third query message to a 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 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.

32. The method according to any one of claims 27 to 31, 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.

33. 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, the first network element and the second network element are in a visited network of the terminal, and the first network element and the second network element are in the 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: 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 a 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 of 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 information about the home network is used to determine an address of an application server, and the application server is used to provide the terminal with a service corresponding to the first domain name; 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.

34. A communication method, characterized in that: include: The first network element receives a first query message from a terminal, where the first query message includes information of 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 the address of an application server corresponding to a domain name that is not authorized in a visited network of the terminal for the terminal, and the application server is used to provide the terminal with a service corresponding to the first domain name; 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.

35. A communication device, characterized in that: The communication device comprises a processor, the processor is coupled to a memory, the memory is used to store a computer program, and the processor is 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 32.

36. A communication device, characterized in that: Comprising means for performing the method as claimed in any one of claims 1 to 32.

37. A communication system, characterized in that: include: A communication device for executing the method according to any one of claims 1 to 11 and a communication device for executing the method according to any one of claims 12 to 17; and / or, A communication device for executing the method according to any one of claims 18 to 26 and a communication device for executing the method according to any one of claims 27 to 32.

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

39. 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 32 when the computer program is executed.

Citation Information

Patent Citations

  • The method and system for access to the home packet data network

    CN101009864A

  • A method, system, apparatus and control function entity for providing user information

    WO2007076722A1

  • DNS query method and apparatus

    WO2021081712A1

  • Method, apparatus and system for discovering application

    WO2021168715A1

Cited By

  • Communication method and communication apparatus

    EP4668709A1

  • Communication method and communication apparatus

    WO2024199202A1