Domain name system query method and device
By forwarding domain name query requests to the third domain name system server in ULCL UPF, the problem that user equipment cannot obtain domain name resolution results from private network DNS servers that do not support IPv6 addresses is solved, and access to local data networks is supported.
Patent Information
- Application Number
- CN202410900742.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-09-10
AI Technical Summary
In the existing technology, the user equipment cannot correctly query the domain name resolution results from the private network DNS server that does not support IPv6 addresses, resulting in the inability to access the local data network.
By receiving the domain name query request in the ULCL UPF, matching the diversion rules, the request is forwarded to the third domain name system server. The server is configured with the same IPv6 address as the public network DNS server, and communicates with the private network DNS server through the third domain name system server. , obtain the domain name resolution result, or when no result is found, forward to the second domain name system server to obtain the resolution result.
This enables user equipment to correctly query domain name resolution results from private network DNS servers that do not support IPv6 addresses, ensuring that user equipment can access the local data network.
Smart Images

Figure CN118631783A
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a method and device for querying a domain name system. Background Art
[0002] The user plane function (UPF) network elements of the fifth-generation mobile communication technology core network (5GC) can be divided into international Internet (abbreviated as: public network) UPF network elements and edge UPF network elements according to the deployment location and purpose. Usually, public network UPF network elements are deployed in central data centers (Central Data Center, Central DC), such as regional computer rooms. Public network UPF network elements are used to provide data forwarding services for user devices accessing the public network. Edge UPF network elements can be deployed in local data centers (Local Data Center, Local DC) in cities, districts, counties, parks, etc. Edge UPF network elements are used to provide data forwarding services for user devices in dedicated local area networks (abbreviated as: private networks) to access local data networks (Local Data Network, Local DN) nearby.
[0003] Deploy edge UPF network elements under the public network architecture, and use the uplink classifier (ULCL) to enable user equipment (UE) to access the public network and private network at the same time, which can be called a mobile private network. In the current network architecture of the mobile private network, the UPF connected to the data network (DN) is called the protocol data unit session anchor UPF (PDU Session Anchor UPF, PSA UPF). The public network UPF and the edge UPF are both protocol data unit session anchor user plane functions, which are different session anchors for the same protocol data unit session (PDU Session). The public network UPF can allocate an IP address to the UE, which is called an IP anchor or a primary session anchor (PSA1, referred to as the primary anchor), and the edge UPF can be called an auxiliary session anchor (PSA2, referred to as the auxiliary anchor). The UPF with the diversion function can forward public network services to the public network, and divert local services to the edge PSA UPF, which is called an uplink classifier UPF (ULCL UPF).
[0004] However, in the prior art, if the private network DNS (Domain Name System, DNS) server does not support Internet Protocol version 6 (Internet Protocol version 6, Ipv6) address, only Internet Protocol version 4 (Internet Protocol version 4, IPv4) address, and the UE uses the IPv6 address to initiate a domain name query request, and the destination address is the IPv6 address of the first domain name system server (public network DNS server), the ULCL UPF cannot modify the destination address in the domain name query request. In this case, the private network domain name query request cannot be responded to, resulting in the failure of the UE domain name query and the inability to access the local data network. Summary of the invention
[0005] The technical problem to be solved by the present application is to provide a method and device for domain name system query in view of the above-mentioned deficiencies in the prior art. By using this method, a user device can correctly query the domain name resolution result from a private network DNS server that does not support IPv6 addresses.
[0006] In a first aspect, the present application provides a method for querying a domain name system, which is applied to a ULCL UPF, and the method includes:
[0007] Receive a domain name query request sent by a UE;
[0008] Determine whether the domain name query request can match the diversion rule;
[0009] If the judgment result is yes, the domain name query request is forwarded to the third domain name system server via the edge UPF;
[0010] receiving a domain name resolution result fed back by the third domain name system server, and sending the domain name resolution result to the UE;
[0011] The domain name resolution result fed back by the third domain name system server is obtained by querying the third domain name system server, or, when the third domain name system server fails to query the domain name resolution result, is forwarded by the third domain name system server to the second domain name system server and obtained by querying the second domain name system server; the UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
[0012] In some embodiments, the method further comprises:
[0013] If the judgment result is no, forwarding the domain name query request to the first domain name system server via the public network PUF;
[0014] The first domain name system server is configured with a first IPv4 address and a first IPv6 address.
[0015] In a second aspect, the present application provides a method for querying a domain name system, which is applied to a third domain name system server, and the method includes:
[0016] receiving a domain name query request forwarded by the ULCL UPF; the domain name query request is forwarded by the edge UPF after the ULCL UPF matches the diversion rule;
[0017] Query the cached first domain name IP address mapping table to obtain the domain name resolution result, or,
[0018] When no domain name resolution result is obtained after querying, forwarding the domain name query request to a second domain name system server, and receiving the domain name resolution result obtained by querying the second domain name system server;
[0019] Returning the received domain name resolution result to the UE;
[0020] The UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
[0021] In some embodiments, the receiving the domain name query request forwarded by the ULCL UPF specifically includes:
[0022] The domain name query request forwarded by the ULCL UPF is received according to the first IPv6 address which is the same as the first domain name system server; the first domain name system server is used to receive the domain name query request forwarded by the public network PUF when the ULCL UPF determines that the diversion rule of the domain name query request is no.
[0023] In some embodiments, forwarding the domain name query request to a second domain name system server specifically includes:
[0024] The domain name query request is forwarded to a second domain name system server corresponding to the second IPv4 address using the third IPv4 address.
[0025] In some embodiments, returning the received domain name resolution result to the UE specifically includes:
[0026] Use the first IPv6 address to return the domain name resolution result to the UE corresponding to the fourth IPv6 address.
[0027] In some embodiments, after receiving the domain name resolution result obtained by querying the second domain name system server, the method further includes:
[0028] The domain name to be queried in the domain name resolution result and the IP address corresponding to the domain name to be queried are cached in the first domain name IP address mapping table, so that the UE can directly obtain the IP address corresponding to the domain name to be queried through the third domain name system server.
[0029] In a third aspect, the present application provides a device for querying a domain name system, which is applied to ULCL UPF, and the device includes:
[0030] A first receiving module, configured to receive a domain name query request sent by a UE;
[0031] A judgment module, connected to the first receiving module, configured to judge whether the domain name query request can match the diversion rule;
[0032] A first forwarding module, connected to the judgment module, configured to forward the domain name query request to a third domain name system server via the edge UPF if the judgment result of the judgment module is yes;
[0033] a processing module, connected to the first forwarding module, configured to receive a domain name resolution result fed back by the third domain name system server, and send it to the UE;
[0034] The domain name resolution result fed back by the third domain name system server is obtained by querying the third domain name system server, or, when the third domain name system server fails to query the domain name resolution result, is forwarded by the third domain name system server to the second domain name system server and obtained by querying the second domain name system server; the UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
[0035] In a fourth aspect, the present application provides a device for querying a domain name system, which is applied to a third domain name system server, and the device includes:
[0036] A second receiving module, which is configured to receive a domain name query request forwarded by the ULCL UPF; the domain name query request is forwarded by the edge UPF after the ULCL UPF matches the diversion rule.
[0037] The first query module is connected to the second receiving module and is configured to query the cached first domain name IP address mapping table to obtain a domain name resolution result, or,
[0038] A second query module is connected to the second receiving module and is configured to forward the domain name query request to a second domain name system server and receive the domain name resolution result obtained by querying the second domain name system server when no domain name resolution result is obtained after querying;
[0039] A returning module, connected to the first query module and the second query module, configured to return the received domain name resolution result to the UE;
[0040] The UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
[0041] In a fifth aspect, the present application provides a device for querying a domain name system, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the method for querying the domain name system described in the first aspect or the second aspect above.
[0042] The method and device for domain name system query provided by the present application receive domain name query requests through ULCL UPF, match diversion rules, divert to a third domain name system server in a private network, receive the domain name resolution result obtained by forwarding it to a private network DNS server via the third domain name system server, and query the private network DNS server. The correct domain name resolution result can be returned to the user device, so that the user device can correctly query the domain name resolution result from the private network DNS server that does not support IPv6 addresses, thereby providing support for the user device to access the local data network. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0044] Figure 1 A flowchart of a method for querying a domain name system provided in an embodiment of the present application;
[0045] Figure 2 A flowchart of another method for querying a domain name system provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of a network architecture for a method for querying a domain name system provided in an embodiment of the present application;
[0047] Figure 4 A schematic diagram of a network architecture for applying another method for querying a domain name system provided in an embodiment of the present application;
[0048] Figure 5 A schematic diagram of the structure of a device for querying a domain name system provided in an embodiment of the present application;
[0049] Figure 6A schematic diagram of the structure of another device for querying a domain name system provided in an embodiment of the present application;
[0050] Figure 7 Another structural schematic diagram of a domain name system query device provided in an embodiment of the present application.
[0051] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0052] In order to enable those skilled in the art to better understand the technical solution of the present application, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments and drawings described herein are only used to explain the present application, rather than to limit the present application.
[0053] It can be understood that, in the absence of conflict, the various embodiments in the present application and the various features in the embodiments can be combined with each other.
[0054] It can be understood that, for the convenience of description, the drawings of the present application only show the parts related to the present application, while the parts unrelated to the present application are not shown in the drawings.
[0055] It can be understood that each unit and module involved in the embodiments of the present application may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.
[0056] It can be understood that the terms "first", "second", etc. in the embodiments of the present application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.
[0057] It is understandable that, in the absence of conflict, the functions and steps marked in the flowcharts and block diagrams of the present application may occur in an order different from that marked in the drawings.
[0058] It is understood that the flowcharts and block diagrams of the present application illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present application. Among them, each box in the flowchart or block diagram may represent a unit, module, program segment, code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or by a combination of hardware and computer instructions.
[0059] It can be understood that the units and modules involved in the embodiments of the present application can be implemented by software or hardware, for example, the units and modules can be located in a processor.
[0060] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0061] The existing technical solution supports UE to access multiple data networks at the same time, that is, to access the international Internet through the public network UPF, and to access the local data network through the edge UPF. The Session Management Function (SMF) will send the Internet Protocol version 4 address and the Internet Protocol version 6 address of the public network Domain Name System (Domain Name System, DNS) server (first domain name system server) to the UE. When the UE accesses the public network or private network domain name, it needs to initiate a domain name query request to the public network DNS server. After receiving the domain name query request sent by the UE, the ULCL UPF can parse the Uniform Resource Locator (Uniform Resource Locator, URL) information in the domain name query request. If it is determined that the domain name in the query request is a private network domain name, it matches the diversion rule and needs to be diverted to the edge UPF, and then sent to the private network DNS server (second domain name system server) for domain name query. The ULCL UPF can modify the destination address in the domain name query request to the address of the private network DNS server, thereby redirecting the domain name query request to the private network DNS server.
[0062] However, in the related art, the DNS server (second domain name system server) is deployed in the customer / enterprise intranet, and the private network DNS server does not support IPv6 addresses but only has IPv4 addresses. If the UE uses the IPv6 address to initiate a domain name query request, and the destination address is the IPv6 address of the first domain name system server (public network DNS server), when the ULCL UPF determines that the domain name query request needs to be diverted to the private network, the ULCL UPF cannot modify the destination address in the domain name query request. In this case, the UE cannot access the private network DNS server, the private network domain name query request of the user device cannot be responded to, resulting in query failure, and the user device cannot access the local data network.
[0063] The inventor has found through research that a third domain name system server is deployed on a multi-access edge computing (Multi-Access Edge Computing, MEC) edge cloud close to the edge UPF. On the one hand, the third domain name system server is configured with the same IPv6 address as the first domain name system server (public network DNS server), so that after the ULCL UPF determines that the domain name query request sent by the UE matches the diversion rule, the destination address of the domain name query request can be modified to have the same IPv6 address as the first domain name system server in the private network, that is, the domain name query request is forwarded to the third domain name system server. Then, through the IPv4 address configured in the third domain name system server, communicate with the second domain name system server in the private network, forward the domain name query request, and obtain the domain name query result. Thus, the DNS relay function in the private network is realized, so that the user device can correctly query the domain name resolution result from the private network DNS server that does not support IPv6 addresses, thereby providing support for the user device to access the local data network. On the other hand, compared with improving the second domain name server in the customer / enterprise intranet, deploying the third domain name system server on the multi-access edge computing (Multi-Access Edge Computing, MEC) edge cloud can reduce the amount of engineering improvement.
[0064] Based on this, in order to solve the problems of the prior art, the present invention provides a method and device for querying a domain name system, so that a user device can correctly query the domain name resolution result from a private network DNS server that does not support IPv6 addresses and access the local data network.
[0065] Embodiment 1:
[0066] Figure 1 A flowchart of a method for querying a domain name system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the present application provides a method for querying a domain name system, which is applied to ULCL UPF. The method includes steps S11 to S14:
[0067] Step S11: Receive a domain name query request sent by a UE.
[0068] Specifically, the domain name query request carries the data network name to be accessed (domain name, for example, internal.local) and a target address representing the IP address corresponding to the domain name that can be resolved. The domain name system server can be accessed according to the target address.
[0069] The target address in the domain name query request sent by the UE may be an IPv4 address and / or an IPv6 address. In some implementations, the UE sends the ULCL UPF domain name query request via a fourth IPv6 address.
[0070] In some embodiments, the target address in the domain name query request can be sent by the SMF to the user. During implementation, the UE initiates a session creation request and carries the Data Network Name (DNN) to the Access and Mobility Management Function (AMF). The AMF will carry information such as DNN, slice, and regional location to the Network Repository Function (NRF) to query the SMF that can be used to create a DNN session, obtain the SMF information, and send a protocol data unit session (PDU Session) creation request to the SMF. After the session is successfully created, the SMF will return the fourth IPv4 address and the fourth IPv6 address of the terminal address, as well as the first IPv4 address and the first IPv6 address of the first domain name system server (public network DNS server) to the AMF. The AMF transmits the terminal address and DNS server information to the UE through the non-access layer (NAS).
[0071] In some implementations, the UE queries the cached second domain name IP address mapping table, and if the IP address corresponding to the domain name is not found, a domain name query request is initiated. If the IP address corresponding to the domain name is found in the cached second domain name IP address mapping table, that is, the domain name resolution result is found, the IP network is accessed directly according to the domain name resolution result to improve the efficiency of the domain name query.
[0072] Step S12: Determine whether the domain name query request can match the diversion rule.
[0073] Here, the ULCL UPF determines the domain name type according to the type of data network accessed in the domain name query request, and determines whether the domain name query request can match the diversion rule according to the domain name type. It can be understood that according to the type of data network accessed in the domain name query request, the path for data network access is determined, and a request for accessing the local data network is sent to the UE without long-distance transmission through the public network, so as to reduce the transmission distance for accessing the local data network and improve the efficiency of data network access.
[0074] Specifically, after receiving the domain name query request sent by the UE, the ULCL UPF parses the URL information in the domain name query request and determines whether the type of the data network is the Internet or the local data network. If the accessed data network is the Internet, the domain name type of the domain name query request is determined to be a public network domain name. If the accessed data network is a local data network, the domain name type of the domain name query request is determined to be a private network domain name. Further, if it is a private network domain name, the diversion rule is matched. If it is a public network domain name, there is no need to match the diversion rule.
[0075] Step S13: If the judgment result is yes, the domain name query request is forwarded to the third domain name system server via the edge UPF.
[0076] Here, the edge UPF can be deployed in local data centers such as cities, counties, and parks to provide data forwarding services for user devices in private networks to access local data networks.
[0077] During implementation, if the ULCL UPF determines that the matching diversion rule result is yes, it sends the domain name query request to the edge UPF. The edge UPF determines the third domain name system server that provides the domain name system service according to the target address in the domain name query request, and sends the domain name query request to the third domain name system server.
[0078] Specifically, the third domain name system server is configured with the same IPv6 address as the public network domain name system server, and the domain name query request will be forwarded to the third domain name system server by the edge UPF. In some embodiments, the third domain name system server is configured with the same first IPv6 address as the public network domain name system server, for example, the first IPv6 address may be 2408:8142:60f1:1.
[0079] In some other embodiments, the third domain name system server is also configured with the same first Ipv4 address as the public network domain name system server. In this way, any address used by the UE in the form of an IPv4 address and / or an IPv6 address can be forwarded to the third domain name system server through the edge UPF, so that the IP address required by the UE to access the local data network can be determined through the third domain name system server.
[0080] Step S14: Receive the domain name resolution result fed back by the third domain name system server, and send it to the UE.
[0081] The domain name resolution result fed back by the third domain name system server is obtained by querying the third domain name system server, or, when the third domain name system server fails to query the domain name resolution result, is forwarded by the third domain name system server to the second domain name system server and obtained by querying the second domain name system server.
[0082] Here, the domain name resolution result includes the IP address corresponding to the domain name in the domain name query request, so that the UE can access the data network corresponding to the domain name.
[0083] During implementation, the third domain name system server queries the cached first domain name IP address mapping table. If a record of the private network domain name is retrieved in the first domain name IP address mapping table, a domain name resolution result is generated for the IP address of the private network domain name, and the domain name resolution result is directly returned to the ULCL UPF to improve the efficiency of domain name query.
[0084] In addition, if the third domain name system server does not retrieve the record of the private network domain name in the first domain name IP address mapping table, the third domain name system server modifies the target address in the domain name query request to the second IPv4 address of the second domain name system server according to the configured third IPv4 address, so as to forward the domain name query request to the second domain name system server, and obtain the IP address corresponding to the private network domain name through the second domain name system server. For example, the IP address corresponding to the queried domain name "internal.local" is "172.16.0.1".
[0085] In some other implementations, the second domain name system server may also serve as a relay domain name system server to obtain the domain name resolution result through other domain name system servers in the private network.
[0086] The third DNS server obtains the resolution result from the second DNS server, and sends the resolution result to the ULCL UPF, which then sends the resolution result to the UE. In some other implementations, the domain name resolution result may also be sent to the UE via the third DNS server, which is not limited in this application.
[0087] In this embodiment, by receiving domain name query requests through ULCL UPF, matching diversion rules, diverting to a private network domain name system server, and receiving domain name resolution results, the correct domain name resolution results can be returned to the user device, so that the user device can correctly query the domain name resolution results from the private network that does not support IPv6 addresses, thereby providing support for the user device to access the local data network.
[0088] In some embodiments, the method further comprises step S15:
[0089] Step S15: If the judgment result is no, the domain name query request is forwarded to a first domain name system server via the public network PUF; the first domain name system server is configured with a first IPv4 address and a first IPv6 address.
[0090] If it is a public domain name, the domain name request is sent to the public domain name system server, so that the UE accesses the public domain name service system to obtain the IP address corresponding to the public domain name.
[0091] Specifically, if the result of matching the diversion rule is no, the ULCL UPF sends the domain name query request to the public network UPF. The public network UPF determines the first domain name system server providing the domain name system service according to the target address in the domain name query request, and sends the domain name query request to the first domain name system server.
[0092] During implementation, the first domain name system server is configured with a first IPv4 address and a first IPv6 address, so that any address of the UE using an IPv4 address and / or an IPv6 address can be forwarded to the first domain name system server via the public network UPF.
[0093] In this embodiment, the domain name request is forwarded to the public network domain name system server through the ULCL UPF, and the domain name resolution result returned by the public network domain name system server is received, so that the user equipment can quickly access the international Internet.
[0094] Embodiment 2:
[0095] Figure 2 A flowchart of another method for querying a domain name system provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the present application provides a method for querying a domain name system, which is applied to a third domain name system server, and the method includes steps S21 to S24:
[0096] Step S21: receiving a domain name query request forwarded by the ULCL UPF; the domain name query request is forwarded by the edge UPF after the ULCL UPF matches the diversion rule.
[0097] Here, the implementation process of the domain name query request forwarded by the ULCL UPF may refer to the description in Embodiment 1.
[0098] The third domain name system server receives the domain name query request forwarded by the ULCL UPF through the first IPv6 address that is the same as that of the first domain name system server.
[0099] Step S22: query the cached first domain name IP address mapping table to obtain the domain name resolution result, or,
[0100] Step S23: When no domain name resolution result is obtained after querying, the domain name query request is forwarded to the second domain name system server, and the domain name resolution result obtained by querying the second domain name system server is received.
[0101] Specifically, the third domain name system server stores a first domain name IP address mapping table. After receiving the domain name query request, the third domain name system server first searches the first domain name IP address mapping table in its cache. If the record of the private network domain name is retrieved in the first domain name IP address mapping table, the domain name resolution result is generated for the IP address of the private network domain name, and the domain name resolution result is directly returned to the ULCL UPF to improve the efficiency of the domain name query.
[0102] If the third domain name system server does not retrieve the record of the private network domain name in the first domain name IP address mapping table, the third domain name system server modifies the target address in the domain name query request to the second IPv4 address of the second domain name system server according to the configured third IPv4 address. For example, the third domain name system server uses the third IPv4 address 172.16.0.3 to initiate a domain name query request to the second IPv4 address 172.16.0.2 of the second domain name system server to address the second domain name system server, and obtains the domain name resolution result through the query of the second domain name system server. For example, the IP address corresponding to the domain name "internal.local" queried by the second domain name system server is "172.16.0.1".
[0103] Step S24: Return the received domain name resolution result to the UE.
[0104] Here, the received domain name resolution result includes a domain name resolution result obtained by directly querying the third domain name system server and a domain name resolution result obtained by indirectly querying the second domain name system server.
[0105] In this embodiment, by receiving the domain name query request through the third domain name system server, self-checking the domain name IP address mapping table, and forwarding the domain name query request, the correct domain name resolution result can be obtained and returned to the UE, so that the user equipment can correctly query the domain name resolution result from the private network that does not support IPv6 addresses, thereby providing support for the user equipment to access the local data network.
[0106] In some embodiments, the above step S21 specifically includes:
[0107] The domain name query request forwarded by the ULCL UPF is received according to the first IPv6 address which is the same as the first domain name system server; the first domain name system server is used to receive the domain name query request forwarded by the public network PUF when the ULCL UPF determines that the diversion rule of the domain name query request is no.
[0108] Here, the first domain name system server is a public DNS server deployed in the public network. The third domain name system server has the same IPv6 address (first IPv6 address) as the first domain name system server, so that the UE can use the domain name resolution function provided by the first domain name system server and the third domain name system server using the IPv6 address (fourth IPv6 address). For example, the first IPv6 address is 2408:8142:60f1:1, and the fourth IPv6 address is 2408:8142:60f4:4.
[0109] In some embodiments, the third domain name system server and the first domain name system server also have the same Ipv4 address (first Ipv4 address), so that the UE can use the domain name resolution function provided by the first domain name system server and the third domain name system server using the Ipv4 address (fourth Ipv4 address).
[0110] In addition, when the ULCL UPF determines that the diversion rule of the domain name query request is no, the implementation method of forwarding the domain name query request to the first domain name system server via the public network PUF can refer to the specific description in the above embodiment 1.
[0111] In this embodiment, the third domain name system server uses the first IPv6 address to receive the query request, thereby achieving the diversion of the domain name query request, reducing the distance of domain name query request data transmission, and improving the efficiency of the domain name query request.
[0112] In some embodiments, forwarding the domain name query request to a second domain name system server specifically includes:
[0113] The domain name query request is forwarded to a second domain name system server corresponding to the second IPv4 address using the third IPv4 address.
[0114] Here, the third DNS server is also configured with a third IPv4 address for communication within the private network. The second DNS server is configured with a second IPv4 address. For example, the third DNS server uses the third IPv4 address 172.16.0.3 to initiate a domain name query request to the second IPv4 address 172.16.0.2 of the second DNS server (private network DNS server).
[0115] In this embodiment, a third IPv4 address is used to forward the query request, so that the UE uses an IPv6 address, can access a private network DNS server that supports IPv4 addresses but not IPv6 addresses, and can obtain the correct domain name resolution result.
[0116] In some embodiments, returning the received domain name resolution result to the UE specifically includes:
[0117] Use the first IPv6 address to return the domain name resolution result to the UE corresponding to the fourth IPv6 address.
[0118] Here, the third domain name system server may also use the configured first IPv6 address to return the domain name resolution result to the UE. The way of returning to the UE may be to return directly or forward to the UE through the ULCL UPF.
[0119] In this embodiment, the first IPv6 address is used to return the resolution result, so that the UE can use the IPv6 address to access the private network DNS server that supports IPv4 addresses but not IPv6 addresses, and then obtain the correct domain name resolution result.
[0120] In some embodiments, after receiving the domain name resolution result obtained by querying the second domain name system server, the method further includes:
[0121] The domain name to be queried in the domain name resolution result and the IP address corresponding to the domain name to be queried are cached in the first domain name IP address mapping table, so that the UE can directly obtain the IP address corresponding to the domain name to be queried through the third domain name system server.
[0122] In this embodiment, the domain name resolution result is cached in the first domain name IP address mapping table so that the UE can subsequently directly obtain the IP address corresponding to the domain name to be queried through the third domain name system server, thereby improving the efficiency of domain name query.
[0123] Embodiment 3:
[0124] The specific implementation process of the above method is described below in conjunction with specific application examples.
[0125] Figure 3 A network architecture diagram of a method for querying a domain name system provided in an embodiment of the present application, referring to Figure 3 , this embodiment includes the following steps:
[0126] 1. The public network UPF network element deployed in the regional central data center can be used to access the international Internet, and has a first domain name system server (public network DNS server) for public network domain name resolution. The first domain name system server (public network DNS server) is configured with a first IPv4 and a first IPv6 address, and can allow UE to access through IPv4 or IPv6. The edge UPF network element deployed in a city or park can be used to access the local data network (Local Data Network, Local DN). The local data network has a second domain name system server (private network DNS server) for private network domain name resolution. The second domain name system server (private network DNS server) is configured with a second IPv4 address and can only be accessed through IPv4. At the same time, a third domain name system server is deployed close to the edge UPF. Figure 4 A network architecture diagram of another method for querying a domain name system provided in an embodiment of the present application is shown in FIG. Figure 4As shown, a third domain name system server is deployed on a multi-access edge computing (MEC) edge cloud close to the edge UPF, and the third domain name system server is deployed on a network edge node close to the data generation source (such as a user, device, or sensor) to reduce latency. The third domain name system server is configured with the same first IPv4 and first IPv6 addresses as the first domain name system server (public network DNS server), and can be accessed via IPv4 or IPv6. In addition, the third domain name system server is also configured with a third IPv4 address, which can be used to initiate a domain name query request to the second IPv4 address of the second domain name system server (private network DNS server) to implement a DNS relay function.
[0127] 2. The user equipment (UE) initiates a session creation request, carrying the data network name (DNN) to the access and mobility management function (AMF). The AMF will carry information such as DNN, slice, and regional location to the NRF to query the SMF that can be used to create a DNN session, obtain the SMF information, and send a protocol data unit session (PDU Session) creation request to the SMF. After the session is successfully created, the SMF will return the fourth IPv4 address and the fourth IPv6 address of the terminal address, as well as the first IPv4 address and the first IPv6 address of the first domain name system server (public network DNS server) to the AMF. The AMF transmits the terminal address and DNS server information to the UE through the non-access layer (NAS).
[0128] 3. When the user equipment wants to access a domain name, because the IP address corresponding to the domain name does not exist in its cache, the UE will send a first domain name query request message to the first domain name system server (public network DNS server). The source address of the first domain name query request message is the fourth IPv4 address or the fourth IPv6 address, and the destination address is the first IPv4 or the first IPv6.
[0129] 4. After receiving the domain name query request sent by the UE, the ULCL UPF parses the URL (Uniform Resource Locator) information in the domain name query request to determine whether the domain name in the query request is a private network domain name and whether it matches the diversion rule.
[0130] 5. If the domain name in the first domain name query request is a public domain name, it does not match the diversion rule and is forwarded by the ULCL UPF to the public network UPF (PSA1) and sent to the first domain name system server (public network DNS server). The public network DNS server replies with a first response message, and the UE correctly obtains the domain name resolution result.
[0131] 6. If the domain name in the first domain name query request is a private network domain name, the diversion rule is matched and diverted to the edge UPF (PSA2). Because the third domain name system server is configured with the same first IPv4 and first IPv6 addresses as the first domain name system server (public network DNS server), the first domain name query request will be forwarded to the third domain name system server.
[0132] 7. The third domain name system server queries its "domain name-IP address" comparison table. If no record of the private network domain name is found in the table, it uses the third IPv4 address to send a second domain name query request to the second IPv4 address of the second domain name system server (private network DNS server), and the private network DNS server replies with a second response message. After the third domain name system server obtains the resolution result from the second response message, it sends a first response message to the UE and returns the resolution result to the user equipment.
[0133] Specifically, assuming that the first domain name system server (public network DNS server) and the third domain name system server are configured to use the first IPv4 address 114.114.114.114 and the first IPv6 address 2408:8142:60f1:1, the UE obtains the fourth IPv4 address 10.0.0.4 and the fourth IPv6 address 2408:8142:60f4:4,
[0134] When the UE uses the fourth IPv6 address 2408:8142:60f4:4 to initiate a domain name query request, its destination address is the first IPv6 address 2408:8142:60f1:1.
[0135] If the domain name query request is the private network domain name internal.local, it matches the diversion rule and is diverted to the edge UPF (PSA2), and is forwarded to the third domain name system server through the N6 interface of the edge UPF.
[0136] The third domain name system server queries its "domain name-IP address" comparison table. If no record of the private network domain name is found in the table, it uses the third IPv4 address 172.16.0.3 to initiate a domain name query request to the second IPv4 address 172.16.0.2 of the second domain name system server (private network DNS server) to query the resolution of the private network domain name internal.local. The private network DNS server replies with a response message. The third domain name system server obtains the resolution result from the second response message, such as 172.16.0.1, and then uses the first IPv6 address 2408:8142:60f1:1 to reply to the UE's fourth IPv6 address 2408:8142:60f4:4 with the resolution result 172.16.0.1 of the domain name internal.local.
[0137] This embodiment describes a method and apparatus for querying a domain name system, so that a user equipment (UE) that simultaneously accesses multiple data networks can correctly obtain the resolution results of each data network domain name.
[0138] Embodiment 4:
[0139] Figure 5 A schematic diagram of the structure of a device for querying a domain name system provided in an embodiment of the present application, such as Figure 5 As shown, the present application provides a device for querying a domain name system, which is applied to ULCL UPF. The device 100 includes:
[0140] A first receiving module 11, configured to receive a domain name query request sent by a UE;
[0141] A judging module 12, connected to the first receiving module 11, configured to judge whether the domain name query request can match the diversion rule;
[0142] The first forwarding module 13 is connected to the judgment module 12, and is configured to forward the domain name query request to the third domain name system server via the edge UPF if the judgment result of the judgment module is yes;
[0143] The processing module 14 is connected to the first forwarding module 13 and is configured to receive the domain name resolution result fed back by the third domain name system server and send it to the UE;
[0144] The domain name resolution result fed back by the third domain name system server is obtained by querying the third domain name system server, or, when the third domain name system server fails to query the domain name resolution result, is forwarded by the third domain name system server to the second domain name system server and obtained by querying the second domain name system server; the UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
[0145] In some embodiments, the device also includes: a second forwarding module, connected to the judgment module, which is configured to forward the domain name query request to a first domain name system server via a public network PUF if the judgment result of the judgment module is no; the first domain name system server is configured with a first IPv4 address and a first IPv6 address.
[0146] It should be noted that this embodiment is a corresponding device of the method for querying the domain name system in the above embodiment 1. The method in embodiment 1 can be implemented by using this device. The specific implementation method can refer to the description in the above embodiment 1, and this embodiment will not be repeated here.
[0147] Embodiment 5:
[0148] Figure 6 A structural diagram of another device for querying a domain name system provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the present application provides a device for querying a domain name system, which is applied to a third domain name system server. The device 200 includes:
[0149] A second receiving module 21 is configured to receive a domain name query request forwarded by the ULCL UPF; the domain name query request is forwarded by the edge UPF after the ULCL UPF matches the diversion rule.
[0150] The first query module 22 is connected to the second receiving module 21 and is configured to query the cached first domain name IP address mapping table to obtain a domain name resolution result, or,
[0151] The second query module 23 is connected to the second receiving module 21 and is configured to forward the domain name query request to the second domain name system server when no domain name resolution result is obtained after query, and receive the domain name resolution result obtained by querying the second domain name system server;
[0152] A returning module 24, connected to the first query module 22 and the second query module 23, configured to return the received domain name resolution result to the UE;
[0153] The UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
[0154] In some embodiments, the second receiving module 21 is further used to receive a domain name query request forwarded by the ULCL UPF according to the same first IPv6 address as the first domain name system server; the first domain name system server is used to receive the domain name query request forwarded by the public network PUF when the ULCL UPF determines that the diversion rule of the domain name query request is no.
[0155] In some embodiments, the second query module 23 is further configured to use a third IPv4 address to forward the domain name query request to a second domain name system server corresponding to the second IPv4 address.
[0156] In some embodiments, the returning module 24 is further configured to use the first IPv6 address to return the domain name resolution result to the UE corresponding to the fourth IPv6 address.
[0157] In some embodiments, the device also includes a cache module connected to the second receiving module, which is configured to cache the domain name to be queried in the domain name resolution result and the IP address corresponding to the domain name to be queried into the first domain name IP address mapping table, so that the UE can directly obtain the IP address corresponding to the domain name to be queried through the third domain name system server.
[0158] It should be noted that this embodiment is a corresponding device of the method for querying the domain name system in the above embodiment 2. The method in embodiment 2 can be implemented by using this device. The specific implementation method can refer to the description in the above embodiment 2, and this embodiment will not be repeated here.
[0159] The present application provides a device for querying a domain name system, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to implement the method for querying the domain name system of the above-mentioned embodiment 1 or embodiment 2.
[0160] Figure 7 Another structural diagram of a domain name system query device provided by this application, such as Figure 7 As shown, the present application provides a device for querying a domain name system, including a memory 31 and a processor 32, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the method for querying the domain name system in the above-mentioned embodiments of the present application.
[0161] The memory is connected to the processor, the memory may be a flash memory or a read-only memory or other memory, and the processor may be a central processing unit or a single-chip microcomputer.
[0162] In some embodiments, the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for querying the domain name system in the above-mentioned embodiments of the present application is implemented.
[0163] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0164] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present application, but the present application is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of the present application, and these modifications and improvements are also considered to be within the scope of protection of the present application.
Claims
1. A method for querying a domain name system, characterized in that: Applied to ULCL UPF, the method comprises: Receive a domain name query request sent by a UE; Determine whether the domain name query request can match the diversion rule; If the judgment result is yes, the domain name query request is forwarded to the third domain name system server via the edge UPF; receiving a domain name resolution result fed back by the third domain name system server, and sending the domain name resolution result to the UE; The domain name resolution result fed back by the third domain name system server is obtained by querying the third domain name system server, or, when the third domain name system server fails to query the domain name resolution result, is forwarded by the third domain name system server to the second domain name system server and obtained by querying the second domain name system server; the UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
2. The method for querying the domain name system according to claim 1, characterized in that: The method further comprises: If the judgment result is no, forwarding the domain name query request to the first domain name system server via the public network PUF; The first domain name system server is configured with a first IPv4 address and a first IPv6 address.
3. A method for querying a domain name system, characterized in that: Applied to a third domain name system server, the method comprises: receiving a domain name query request forwarded by the ULCL UPF; the domain name query request is forwarded by the edge UPF after the ULCL UPF matches the diversion rule; Query the cached first domain name IP address mapping table to obtain the domain name resolution result, or, When no domain name resolution result is obtained after querying, forwarding the domain name query request to a second domain name system server, and receiving the domain name resolution result obtained by querying the second domain name system server; Returning the received domain name resolution result to the UE; The UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
4. The method for querying the domain name system according to claim 3, characterized in that: The receiving the domain name query request forwarded by the ULCL UPF specifically includes: The domain name query request forwarded by the ULCL UPF is received according to the first IPv6 address which is the same as the first domain name system server; the first domain name system server is used to receive the domain name query request forwarded by the public network PUF when the ULCL UPF determines that the diversion rule of the domain name query request is no.
5. The method for querying the domain name system according to claim 3, characterized in that: The forwarding the domain name query request to the second domain name system server specifically includes: The domain name query request is forwarded to a second domain name system server corresponding to the second IPv4 address using the third IPv4 address.
6. The method for querying the domain name system according to claim 3, characterized in that: The returning the received domain name resolution result to the UE specifically includes: Use the first IPv6 address to return the domain name resolution result to the UE corresponding to the fourth IPv6 address.
7. The method for querying the domain name system according to any one of claims 3 to 6, characterized in that: After receiving the domain name resolution result obtained by querying the second domain name system server, the method further includes: The domain name to be queried in the domain name resolution result and the IP address corresponding to the domain name to be queried are cached in the first domain name IP address mapping table, so that the UE can directly obtain the IP address corresponding to the domain name to be queried through the third domain name system server.
8. A device for querying a domain name system, characterized in that: Applied to ULCL UPF, the device comprises: A first receiving module, configured to receive a domain name query request sent by a UE; A judgment module, connected to the first receiving module, configured to judge whether the domain name query request can match the diversion rule; A first forwarding module, connected to the judgment module, configured to forward the domain name query request to a third domain name system server via the edge UPF if the judgment result of the judgment module is yes; a processing module, connected to the first forwarding module, configured to receive a domain name resolution result fed back by the third domain name system server, and send it to the UE; The domain name resolution result fed back by the third domain name system server is obtained by querying the third domain name system server, or, when the third domain name system server fails to query the domain name resolution result, is forwarded by the third domain name system server to the second domain name system server and obtained by querying the second domain name system server; the UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
9. A device for querying a domain name system, characterized in that: Applied to a third domain name system server, the device comprises: A second receiving module, which is configured to receive a domain name query request forwarded by the ULCL UPF; the domain name query request is forwarded by the edge UPF after the ULCL UPF matches the diversion rule. The first query module is connected to the second receiving module and is configured to query the cached first domain name IP address mapping table to obtain a domain name resolution result, or, A second query module is connected to the second receiving module and is configured to forward the domain name query request to a second domain name system server and receive the domain name resolution result obtained by querying the second domain name system server when no domain name resolution result is obtained after querying; A returning module, connected to the first query module and the second query module, configured to return the received domain name resolution result to the UE; The UE is configured with a fourth IPv6 address, the third domain name system server is configured with a third IPv4 address and a first IPv6 address, and the second domain name system server is configured with a second IPv4 address.
10. A device for querying a domain name system, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the method for querying a domain name system according to any one of claims 1 to 7.
