WO2024109369A1 - 域名查询方法、装置、设备及存储介质 - Google Patents
域名查询方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2024109369A1 WO2024109369A1 PCT/CN2023/123894 CN2023123894W WO2024109369A1 WO 2024109369 A1 WO2024109369 A1 WO 2024109369A1 CN 2023123894 W CN2023123894 W CN 2023123894W WO 2024109369 A1 WO2024109369 A1 WO 2024109369A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- dns
- domain name
- upf
- data
- queried
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4552—Lookup mechanisms between a plurality of directories; Synchronisation of directories, e.g. metadirectories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/58—Caching of addresses or names
Definitions
- the embodiments of the present application relate to the field of mobile communications, and in particular to domain name query technology.
- Domain name resolution is an Internet service that supports the conversion between domain names and Internet Protocol (IP) addresses.
- IP Internet Protocol
- domain name resolution usually involves sending domain name query requests from terminal devices to public network domain name resolution servers through various network devices.
- the public network domain name resolution servers query the mapping relationship between domain names and IP addresses and return the query results.
- the network communication link between the public network domain name resolution server and the terminal device is too long, and the public network domain name resolution server usually needs to process a large number of domain name query requests concurrently, which is too heavy. Therefore, the domain name query speed in the related technology is usually slow, which has a negative impact on the terminal device's subsequent Internet service access.
- the present application provides a domain name query method, device, equipment and storage medium, which support accelerating the speed of domain name query.
- the technical solution is as follows:
- a domain name query method is provided, the method being executed by a computer device, the method comprising:
- a DNS response is sent to the terminal device, wherein the DNS response includes the IP address corresponding to the domain name to be queried.
- a domain name query device comprising:
- a receiving module configured to receive a DNS query request from a terminal device, wherein the DNS query request includes a domain name to be queried;
- a processing module configured to determine an Internet Protocol IP address corresponding to the domain name to be queried based on cache data of the device;
- the sending module is used to send a DNS response to the terminal device, wherein the DNS response includes the IP address corresponding to the domain name to be queried.
- a computer device comprising: a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor, The computer device implements the domain name query method as described above.
- a computer-readable storage medium stores a computer program, wherein the computer program is loaded and executed by a processor, and wherein the computer-readable storage medium implements the domain name query method as described above.
- a computer program product stores a computer program, the computer program is loaded and executed by a processor, and the computer program product implements the domain name query method as described above.
- a chip comprising a programmable logic circuit and/or program instructions, and a computer device equipped with the chip is used to implement the domain name query method as described above.
- the domain name query is performed by a computer device for implementing the user plane function UPF.
- the method provided by the present application supports the completion of the domain name query corresponding to the DNS query request by the computer device for implementing UPF based on the cache data of UPF before the DNS query request is sent to the DNS server of the public network.
- the required network communication link is shorter, which can improve the speed of domain name query.
- the DNS query request since the DNS query request does not need to reach the DNS server of the public network, the DNS query request that the DNS server needs to process can be reduced, thereby reducing the processing load of the DNS server of the public network.
- the method provided in the embodiment of the present application does not need to add new equipment in the core network, and can be implemented using the existing computer equipment for implementing UPF. Therefore, the implementation cost of the method provided by the present application is low; in addition, the domain name query is performed using the existing computer equipment for implementing UPF, and there is no need to set additional complex diversion rules, which has high compatibility and low implementation difficulty.
- FIG1 is a schematic diagram showing a domain name query process in the related art
- FIG2 is a schematic diagram showing a domain name query process in the related art
- FIG3 shows a structural block diagram of a communication system provided by some exemplary embodiments of the present application.
- FIG4 is a schematic diagram showing the structure of a communication system provided by some exemplary embodiments of the present application.
- FIG5 is a schematic diagram showing a flow chart of a domain name query method provided by some exemplary embodiments of the present application.
- FIG6 is a schematic diagram showing a flow chart of a domain name query method provided by some exemplary embodiments of the present application.
- FIG. 7 is a schematic diagram showing a flow chart of a domain name query method provided by some exemplary embodiments of the present application.
- FIG8 is a schematic diagram showing a domain name query method provided by some exemplary embodiments of the present application.
- FIG9 is a schematic diagram showing a domain name query method provided by some exemplary embodiments of the present application.
- FIG10 is a schematic diagram showing a domain name query method provided by some exemplary embodiments of the present application.
- FIG11 is a schematic diagram showing a domain name query method provided by some exemplary embodiments of the present application.
- FIG12 is a schematic diagram showing a flow chart of a domain name query method provided by some exemplary embodiments of the present application.
- FIG13 shows a structural block diagram of a domain name query device provided by some exemplary embodiments of the present application.
- FIG. 14 shows a schematic diagram of the structure of a communication device provided by some exemplary embodiments of the present application.
- DNS Domain Name System
- DNS is used to implement the mutual mapping between domain names and Internet Protocol (IP) addresses. Both domain names and IP addresses can be used to mark computing devices on the network, and domain names are equivalent to aliases for IP addresses. Domain names are composed of letters, numbers, and characters of variable length (such as www.xxxx.com), while IP addresses are composed of four segments of numbers with a strict hierarchy (such as 202.96.133.134).
- IP addresses are more difficult to remember than domain names.
- entering the domain name in the input field for network communication is a more common, more universal and easier operation method.
- the computer recognizes the IP address rather than the domain name during network communication. Therefore, when the user enters the domain name in the input bar, a service that supports the conversion between domain names and IP addresses is required so that the computer can communicate over the network.
- This service is called domain name resolution, and the server that provides this service is called a domain name resolution server or DNS server.
- DNS domain name resolution is usually performed by a terminal device sending a domain name query request to a domain name resolution server on a public network (or wide area network).
- the domain name resolution server on the public network queries the mapping relationship between the domain name and the IP address and returns the query result. This process can also be considered as the domain name query process.
- the domain name resolution server on the public network can also be considered as a public domain name resolution server, and its IP address is usually 8.8.8.8 or 114.114.114.114.114.
- the common DNS domain name resolution process in the related art is shown in Figure 1.
- the terminal device 101 sends a DNS request to the base station 102.
- the DNS request includes the domain name requested by the terminal device 101.
- the DNS request enters the Internet 104 through the core network user plane device (User Plane Function, UPF) 103, and then passes through various routers and switches on the Internet 104 to reach the public network DNS server 105.
- the public network DNS server 105 After receiving the DNS request, the public network DNS server 105 searches for the IP address corresponding to the domain name requested by the terminal device 101, and then constructs a corresponding DNS response based on the queried IP address and sends it.
- the DNS response passes through several routers and switches to reach the core network UPF 103.
- the core network UPF 103 finally returns the DNS response to the terminal device 101 through the base station 102.
- the terminal device 101 can perform subsequent Internet service access based on the received DNS response.
- the physical distance between the public network DNS server 105 and the terminal device 101 is usually far, the network communication link between the two is long, and the public network DNS server usually needs to process a large number of DNS requests concurrently, and the processing load of domain name resolution is heavy. Therefore, the above method will lead to a long processing time for domain name resolution, that is, a long time for domain name query, and even cause domain name resolution failure in severe cases, thereby affecting the time and efficiency of the terminal device to access services, and may even cause the terminal device to be unable to access Internet services.
- the present application proposes a domain name query method, which accelerates domain name query by implementing a computer device of UPF, and has the advantages of low cost, high efficiency and easy compatibility.
- the following is an illustrative embodiment to illustrate this domain name query method and its corresponding device, equipment and storage medium.
- FIG2 shows a schematic diagram of the architecture of a communication system 200 provided in some exemplary embodiments of the present application.
- the communication system 200 may include at least one of the following: a terminal device 201, an access network 203, a core network (CN) 205, and a data network (DN) 207.
- the network 205 can be logically divided into two parts: a user plane and a control plane.
- the control plane is responsible for the management of the mobile network
- the user plane is responsible for the transmission of service data.
- the terminal device 201 is the entrance for mobile users to interact with the network, which can provide basic computing power and storage capacity, display service windows to users, and receive user operation input.
- the terminal device 201 uses a certain air interface technology to establish a signal connection and a data connection with the access network 203, thereby transmitting control signals and service data to the mobile network.
- the terminal device 201 can be deployed on land, on water, and in the air, etc., including but not limited to: handheld devices, wearable devices, vehicle-mounted devices, and Internet of Things devices, such as mobile phones, tablet computers, e-book readers, laptop computers, desktop computers, televisions, game consoles, mobile Internet devices (Mobile Internet Device, MID), augmented reality (Augmented Reality, AR) terminals, virtual reality (Virtual Reality, VR) terminals and mixed reality (Mixed Reality, MR) terminals, wearable devices, handles, electronic tags, controllers, wireless terminals in industrial control (Industrial Control), wireless terminals in self-driving (Self Driving), wireless terminals in remote medical care (Remote Medical), smart grids (SMB), etc.
- handheld devices such as mobile phones, tablet computers, e-book readers, laptop computers, desktop computers, televisions, game consoles, mobile Internet devices (Mobile Internet Device, MID), augmented reality (Augmented Reality, AR) terminals, virtual reality (Virtual Reality, VR
- Wireless terminals in Transportation Safety wireless terminals in Smart City
- wireless terminals in Smart Home wireless terminals in Remote Medical Surgery
- cellular phones cordless phones
- Session Initiation Protocol (SIP) phones Wireless Local Loop (WLL) stations
- PDA Personal Digital Assistant
- STB TV Set Top Box
- CPE Customer Premise Equipment
- the access network 203 is used to implement access-related functions, and can provide network access functions for authorized users within the coverage area of the cell, and use transmission tunnels of different qualities to transmit user data according to the user level, business requirements, etc.
- the access network 203 can manage its own resources, use them reasonably, provide access services to the terminal device 201 on demand, and forward control signals and user data between the terminal device 201 and the core network 205.
- the access network 203 may include access network equipment, which may be equipment that provides access services to the terminal device 201, and may include Radio Access Network (RAN) equipment and AN equipment.
- RAN equipment is mainly wireless network equipment in the 3GPP network
- AN equipment may be access network equipment not defined by 3GPP.
- the names of devices with base station functions may be different.
- RAN Fifth Generation Mobile Communication Technology
- gNB Next Generation Node Basestation
- LTE Long Term Evolution
- eNB evolved Node B
- the core network 205 is responsible for maintaining the subscription data of the mobile network, managing the network elements of the mobile network, and providing functions such as session management, mobility management, policy management, and security authentication for the terminal device 201. For example, when the terminal device 201 is attached, it provides network access authentication for the terminal device 201; when the terminal device 201 has a service request, it allocates network resources for the terminal device 201; when the terminal device 201 moves, it updates network resources for the terminal device 201; when the terminal device 201 is idle, it provides a fast recovery mechanism for the terminal device 201; when the terminal device 201 is detached, it releases network resources for the terminal device 201; when the terminal device 201 has service data, it provides data routing functions for the terminal device 201, such as forwarding uplink data to the data network 207; or, receiving downlink data sent to the terminal device 201 from the data network 207, forwarding it to the access network 203, and thus sending the downlink data to the terminal device 201.
- the core network 205 is deployed in a private network
- Data network 207 is used to provide business services to users.
- Data network 207 can be a private network, such as a local area network; it can also be an external network that is not controlled by the operator, such as the Internet; it can also be a proprietary network jointly deployed by operators, such as the IP Multimedia Core Network Subsystem (IMS).
- Terminal device 201 can access data network 207 through an established Protocol Data Unit (PDU) session.
- PDU Protocol Data Unit
- At least one of the access network 203, the core network 205, and the data network 207 may be considered as a network device.
- Uplink communication refers to sending signals in the direction of the terminal device 201, the access network 203, the core network 205, and the data network 207;
- downlink communication refers to sending signals in the direction of the data network 207, the core network 205, the access network 203, and the terminal device 201.
- the technical solutions described in some embodiments of the present application may be applicable to 5G systems, LTE systems, and the evolved systems of 5G systems and LTE systems, as well as to Beyond Fifth Generation (B5G), 6G systems, and subsequent evolved systems.
- the 5G system may include at least one of non-standalone (NSA) and standalone (SA).
- Figure 3 is a detailed architecture determined based on Figure 2, in which the core network user plane includes: UPF; the core network control plane includes authentication server function (Authentication Server Function, AUSF), access and mobility management (Access and Mobility Management Function, AMF), session management (Session Management Function, SMF), network slice selection function (Network Slice Selection Function, NSSF), network exposure function (Network Exposure Function, NEF), network repository function (Network Repository Function, NRF), unified data management (Unified Data Management, UDM), policy control function (Policy Control Function, PCF), application function (Application Function, AF).
- the functions of these functional entities are as follows:
- AMF is mainly responsible for mobility management in mobile networks, such as user location update, user registration network, user switching, etc.
- SMF is mainly responsible for session management in mobile networks, such as session establishment, modification, and release.
- PCF mainly supports providing a unified policy framework to control network behavior, provides policy rules to the control layer network functions, and is responsible for obtaining user subscription information related to policy decisions.
- AUSF is used to perform terminal security authentication.
- NEF is mainly used to support the opening of capabilities and events.
- NRF is used to provide storage and selection functions of network function entity information for other network elements.
- UDM is used to store user data, such as subscription data, authentication or authorization data, etc.
- AF interacts with the core network to provide application layer services, such as providing information about application layer data routing, providing access network capability opening functions, interacting with the policy framework to provide policy control, interacting with IMS, etc.
- UPF in addition to being responsible for forwarding and receiving user data, also has the related functions of domain name query. That is to say, UPF can not only receive user data from the data network and transmit it to the terminal device through the access network, but also receive user data from the terminal device through the access network and forward it to the data network, and can also realize domain name cache. Domain name storage, domain name query and other functions related to domain name resolution.
- the N1 interface is the reference point between the UE and the AMF
- the N2 interface is the reference point between the RAN and the AMF, used for sending non-access stratum (NAS) messages, etc.
- the N3 interface is the reference point between the RAN and the UPF, used for transmitting user plane data, etc.
- the N4 interface is the reference point between the SMF and the UPF, used for transmitting information such as tunnel identification information of the N3 connection, data cache indication information, and downlink data notification messages
- the N6 interface is the reference point between the UPF and the DN, used for transmitting user plane data, etc.
- the NG interface is the interface between the RAN and the CN.
- the interface name between the network elements in Figures 2 and 3 is only an example.
- the name of the interface in the specific implementation may be other names, and the embodiments of the present application do not specifically limit this.
- the names of the network elements (such as SMF, AF, UPF, etc.) included in Figures 2 and 3 are also only examples, and do not constitute any limitation on the functions of the network elements themselves.
- the above-mentioned network elements may also have other names, and the embodiments of the present application do not specifically limit this.
- the information including but not limited to user device information, user personal information, etc.
- data including but not limited to data used for analysis, stored data, displayed data, etc.
- signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions.
- the information involved in this application is obtained with full authorization, and the terminal device and server only cache the information during the program operation, and will not solidify the storage and reuse the relevant data of the information.
- FIG4 is a flow chart of a domain name query method provided by some exemplary embodiments of the present application. This embodiment is illustrated by an example in which the method is executed by a computer device for implementing the UPF shown in FIG3. The method includes at least some of the following steps:
- Step 410 receiving a DNS query request from a terminal device, where the DNS query request includes a domain name to be queried;
- the DNS query request comes from the terminal device.
- the terminal device sends a DNS query request carrying the domain name to be queried to a DNS server, which is located in a data network.
- the DNS query request needs to pass through a network device, which is at least one of an access network device and a core network device.
- Step 430 Determine the IP address corresponding to the domain name to be queried based on the cache data of the UPF;
- the cache data of UPF includes all or part of the domain name, and data related to the IP address corresponding to the domain name.
- the cache data of the UPF includes DNS cache data
- the DNS cache data includes a mapping relationship between a domain name and an IP address.
- the UPF searches the DNS cache data for the IP address corresponding to the domain name to be queried.
- Step 450 Send a DNS response to the terminal device, where the DNS response includes the IP address corresponding to the domain name to be queried.
- the DNS response is a response to a DNS query request sent to a terminal device.
- the UPF sends the DNS response carrying the IP address corresponding to the domain name to be queried to the terminal device.
- the UPF sends the DNS response carrying the IP address corresponding to the domain name to be queried to the access network device, and the DNS response is sent to the terminal device through the access network device.
- the method provided by the present application is to perform a domain name query by a computer device for implementing UPF.
- the method provided by the present application supports the completion of a domain name query corresponding to a DNS query request by a computer device for implementing UPF based on the cached data of UPF before the DNS query request is sent to the DNS server of the public network, so that the required network communication link is shorter, and the domain name query speed can be improved.
- the DNS query request since the DNS query request does not need to reach the DNS server of the public network, the DNS query request that the DNS server needs to process can be reduced, thereby reducing the processing load of the DNS server of the public network.
- the method provided by the embodiment of the present application does not require the addition of new equipment in the core network, and can be implemented using the existing computer device for implementing UPF. Therefore, the implementation cost of the method provided by the present application is low; in addition, the use of the existing computer device for implementing UPF for domain name query does not require additional complex diversion rules to be set, and has high compatibility and low implementation difficulty.
- FIG5 is a flow chart of a domain name query method provided by some exemplary embodiments of the present application. This embodiment is illustrated by the method being executed by a computer device for implementing the UPF shown in FIG3. The method includes at least some of the following steps:
- Step 510 receiving a DNS query request from a terminal device, where the DNS query request includes a domain name to be queried;
- the DNS query request comes from the terminal device.
- the terminal device sends a DNS query request carrying a domain name to be queried to a DNS server, and the DNS server is located in a data network.
- the DNS query request passes through a network device, which is at least one of an access network device and a core network device.
- the DNS query request includes at least one of the following:
- TCP Transmission Control Protocol
- DNS query request based on Hyper Text Transfer Protocol (HTTP).
- HTTP Hyper Text Transfer Protocol
- the DNS query request is at least one of a UDP DNS query request, a TCP DNS query request, and an HTTP DNS query request. That is, the method provided in the embodiment of the present application can support processing a variety of DNS query requests, has a richer application scenario, and has higher compatibility in various application scenarios.
- Step 530 Determine the IP address corresponding to the domain name to be queried based on the cache data of the UPF;
- the cache data of UPF includes data related to the domain name and the IP address corresponding to the domain name.
- the cache data of the UPF includes DNS cache data
- the DNS cache data refers to data related to the mapping relationship between the domain name and the IP address.
- the UPF queries the IP address corresponding to the domain name to be queried in the DNS cache data.
- the cache data of the UPF or the DNS cache data of the UPF comes from a DNS server, which is located in a data network.
- the cache data of the UPF includes at least one of the following:
- Hot update refers to an update method that updates in real time without restarting or shutting down the device.
- Hot update cache data refers to data cached to UPF by hot update; timed cache data refers to data cached to UPF at a specified time, or data cached to UPF in a periodic manner, or data cached to UPF in a semi-periodic manner; default cache data refers to data cached to UPF in a pre-configured manner, or the initial cache data in UPF; static cache data refers to data cached to UPF by static caching; dynamic cache data refers to data cached to UPF by dynamic caching.
- the UPF when the UPF receives a hot update cache request or hot update cache information from a DNS server, or satisfies a hot update cache condition, the UPF performs hot update cache during operation. Based on the hot update cache request or hot update cache information or hot update cache condition, the UPF performs real-time updates on the data related to the domain name and the IP address corresponding to the domain name in the cache data of the UPF, and the data obtained after the real-time update is the hot update cache data, or the data different from the data before the real-time update after the real-time update is the hot update cache data.
- the cache data of the UPF or the DNS cache data of the UPF is cleared, and based on the DNS query request of the terminal device, the DNS response of the DNS server is received, and the data related to the domain name and the IP address corresponding to the domain name in the DNS response is cached in the cache data of the UPF or the DNS cache data of the UPF to implement hot update cache.
- the first threshold is predefined, or preconfigured, or determined independently by the UPF, or indicated by the DNS server.
- This update method can be implemented without shutting down or restarting the UPF.
- the update process has little impact on the terminal device, and can achieve real-time update of the cache data of the UPF while meeting the domain name query requirements of the terminal device.
- this update method is beneficial to keep the cache data of the UPF in good synchronization with the changes in the DNS service in the data network, so that the DNS cache data of the UPF has better timeliness.
- the UPF when the UPF receives a timed cache request from a DNS server, or the UPF receives timed cache information from a DNS server, or the UPF receives timer information, or the UPF satisfies a timed cache condition, the UPF performs timed caching based on the timed cache request, or the timed cache information, or the timer information, or the specified time in the timed cache condition.
- the UPF updates the data related to the domain name and the IP address corresponding to the domain name in the cache data of the UPF based on the timed cache request, the timed cache information, the timer information, or the timed cache condition.
- the data obtained after the update is the timed cache data, or the data different from the data before the update after the update is the timed cache data.
- the timer is predefined, or preconfigured, or determined autonomously by the UPF, or indicated by the DNS server.
- the timed cache condition is predefined, or preconfigured, or determined autonomously by the UPF, or indicated by the DNS server.
- a data update request is sent to the DNS server, a data update response from the DNS server is received, and the data related to the domain name and the IP address corresponding to the domain name in the data update response is cached in the UPF's cache data or the UPF's DNS cache data to implement timed caching.
- the second threshold is predefined, or preconfigured, or determined autonomously by the UPF, or indicated by the DNS server.
- This update method can be triggered by a DNS server, which is more flexible to implement; it can also be autonomously triggered by the UPF based on time, reducing the waste of signaling resources.
- this update method is beneficial for keeping the UPF's cached data in better synchronization with changes in the DNS service in the data network, so that the UPF's DNS cache data has better Good timeliness.
- the UPF receives an initial cache request, receives initial cache information, receives a configuration cache request, receives configuration cache information, receives a preconfigured cache request, receives preconfigured cache information, or satisfies a default cache condition during a startup phase, an initialization phase, a configuration phase, or a preconfiguration phase, and performs default caching.
- the UPF updates the data related to the domain name and the IP address corresponding to the domain name in the cache data of the UPF based on the initial cache request, the initial cache information, the configuration cache request, the configuration cache information, the preconfigured cache request, the preconfigured cache information, or the default cache condition, and the data obtained after the update is the default cache data, or the data different from the data before the update after the update is the default cache data.
- UPF initializes the cache data of UPF, sends a data update request to the DNS server, receives the data update response from the DNS server, and caches the data related to the domain name and the IP address corresponding to the domain name in the data update response to the cache data of UPF or the DNS cache data of UPF to implement default caching.
- This update method enables UPF to meet the domain name query needs of some terminal devices when it first provides domain name query services, and improves the efficiency of UPF in processing domain name query requests.
- the UPF when static caching is needed, such as when the UPF receives a static caching request, or static caching information, or when a static caching condition is met, the UPF performs static caching. Based on the static caching request, or static caching information, or static caching condition, the UPF updates the data related to the domain name and the IP address corresponding to the domain name in the cache data of the UPF, and the data obtained after the update is the static cache data, or the data different from the data before the update after the update is the static cache data.
- This update method is beneficial for keeping the cache data of the UPF in good synchronization with the changes in the DNS service in the data network, so that the DNS cache data of the UPF has better timeliness.
- the UPF when dynamic caching is required, such as when the UPF receives a dynamic caching request, or dynamic caching information, or when dynamic caching conditions are met, the UPF performs dynamic caching. Based on the dynamic caching request, or dynamic caching information, or dynamic caching conditions, the UPF updates the data related to the domain name and the IP address corresponding to the domain name in the cache data of the UPF, and the data obtained after the update is the dynamic cache data, or the data different from the data before the update after the update is the dynamic cache data.
- This update method is beneficial to keep the cache data of the UPF in good synchronization with the changes of the DNS service in the data network, so that the DNS cache data of the UPF has better timeliness.
- Step 550 Generate a DNS response, where the DNS response includes the IP address corresponding to the domain name to be queried;
- the UPF When the IP address corresponding to the domain name to be queried exists in the cache data of the UPF, the UPF generates a DNS response based on the queried IP address corresponding to the domain name to be queried.
- UPF generates a DNS response based on the mapping relationship between the queried domain name and the IP address.
- Step 570 Send a DNS response to the terminal device, where the DNS response includes the IP address corresponding to the domain name to be queried.
- the DNS response is sent to the end device.
- the UPF sends the DNS response carrying the IP address corresponding to the domain name to be queried to the terminal device.
- the UPF sends the DNS response carrying the IP address corresponding to the domain name to be queried to the access network device, and the DNS response is sent to the terminal device through the access network device.
- the computer device used to implement the UPF when there is an IP address corresponding to the domain name to be queried in the cache data of the UPF, the computer device used to implement the UPF completes the domain name query corresponding to the DNS query request based on the cache data of the UPF.
- the network communication required in this way is much shorter. A shorter link can increase the speed of domain name query.
- the DNS query request since the DNS query request does not need to reach the public network DNS server, the DNS query request that the DNS server needs to process can be reduced, thereby reducing the processing load of the public network DNS server.
- FIG6 is a flow chart of a domain name query method provided by some exemplary embodiments of the present application. This embodiment is illustrated by the method being executed by a computer device for implementing the UPF shown in FIG3. The method includes at least some of the following steps:
- Step 610 receiving a DNS query request from a terminal device, where the DNS query request includes a domain name to be queried;
- the DNS query request comes from the terminal device.
- the terminal device sends a DNS query request carrying the domain name to be queried to a DNS server, which is located in a data network.
- the DNS query request passes through a network device, which is at least one of an access network device and a core network device.
- the source address of the DNS query request is the address of the terminal device, and the target address is the address of the DNS server.
- the DNS query request includes at least one of the following:
- the DNS query request is at least one of a UDP DNS query request, a TCP DNS query request, and an HTTP DNS query request.
- Step 630 Query the IP address corresponding to the domain name to be queried in the cache data of the UPF;
- the cache data of UPF includes data related to the domain name and the IP address corresponding to the domain name.
- the cache data of the UPF includes DNS cache data, which refers to data related to the mapping relationship between the domain name and the IP address.
- DNS cache data refers to data related to the mapping relationship between the domain name and the IP address.
- the UPF searches the DNS cache data of the UPF for the IP address corresponding to the domain name to be queried.
- the cache data of the UPF includes at least one of the following:
- Hot update refers to an update method that updates in real time without restarting or shutting down the device.
- Hot update cache data refers to data cached to UPF by hot update; timed cache data refers to data cached to UPF at a specified time, or data cached to UPF in a periodic manner, or data cached to UPF in a semi-periodic manner; default cache data refers to data cached to UPF in a pre-configured manner, or the initial cache data in UPF; static cache data refers to data cached to UPF by static caching; dynamic cache data refers to data cached to UPF by dynamic caching.
- Step 650 Receive a DNS response, where the DNS response includes an IP address corresponding to the domain name to be queried;
- a DNS query request can be sent to a DNS server, and accordingly, a DNS response is received from the DNS server, where the DNS server is located in a data network and the DNS response includes the IP address corresponding to the domain name to be queried, or the DNS response includes a mapping relationship between the domain name to be queried and the IP address.
- the UPF receives a DNS response from the data network, where the DNS response includes an IP address corresponding to the domain name to be queried, or the DNS response includes a mapping relationship between the domain name to be queried and the IP address.
- the DNS response is generated by a DNS server in the data network
- the source address of the DNS response is the address of the DNS server
- the target address of the DNS response is the address of the terminal device.
- Step 670 Send a DNS response to the terminal device, where the DNS response includes the IP address corresponding to the domain name to be queried;
- the DNS response is sent to the end device.
- the UPF sends the DNS response carrying the IP address corresponding to the domain name to be queried to the terminal device.
- the UPF sends the DNS response carrying the IP address corresponding to the domain name to be queried to the access network device, and the DNS response is sent to the terminal device through the access network device.
- Step 690 Save the IP address corresponding to the domain name to be queried.
- UPF saves the IP address corresponding to the domain name to be queried in the received DNS response to the cache data of UPF or the DNS cache data of UPF.
- UPF saves the mapping relationship between the domain name to be queried in the received DNS response and the IP address to the cache data of UPF or the DNS cache data of UPF.
- the method provided by the present application sends the DNS query request to the DNS server when the IP address corresponding to the domain name to be queried does not exist in the cache data of the UPF, so as to execute the domain name query corresponding to the DNS query request through the DNS server, and then saves the IP address corresponding to the domain name to be queried through the DNS server into the cache data of the UPF, that is, saves the correspondence between the domain name to be queried and the IP address into the cache data of the UPF, thereby enriching the correspondence between the domain name and the IP address stored in the UPF cache data, making it convenient for the computer device used to implement the UPF to directly respond to more DNS query requests in the future, thereby improving the speed and efficiency of domain name queries, and reducing the processing load of the DNS server of the public network.
- Fig. 7 is a schematic diagram of a domain name query method provided by some exemplary embodiments of the present application. Taking the domain name query method implemented in the communication system 200 shown in Fig. 2 as an example, a schematic description is given.
- the terminal device 701 sends a DNS query request, which includes the domain name to be queried.
- the target address of the DNS query request is the address of the DNS server 702, and the DNS server 702 is located in the data network. If the DNS query request wants to reach the DNS server 702, it needs to pass through the network equipment, which includes the access network 703 and the core network 704.
- UPF 7042 (i.e., a computer device implementing UPF) receives the DNS query request and determines the IP address corresponding to the domain name to be queried based on the cache data of UPF 7042.
- UPF 7042 is located in the core network 704.
- UPF 7042 sends a DNS response to terminal device 701, which includes the IP address corresponding to the domain name to be queried. If the DNS response is to reach terminal device 701, it needs to pass through access network 703.
- the DNS response is generated by UPF 7042 or by DNS server 702.
- UPF 7042 If the DNS response is generated by UPF 7042, before UPF 7042 sends the DNS response to terminal device 701, UPF 7042 generates the DNS response based on the IP address corresponding to the domain name to be queried in the cache data of UPF 7042.
- the DNS response generated by UPF 7042 is called the first DNS response.
- the UPF 7042 sends the DNS query request to the DNS server 702 and receives the DNS response returned by the DNS server 702.
- the UPF 7042 saves the mapping relationship between the domain name to be queried and the IP address in the DNS response into the cache data of the UPF 7042.
- the DNS response generated by the DNS server 702 is referred to as the second DNS response.
- the method provided in the present application supports sending the DNS query request to the DNS server when the IP address corresponding to the domain name to be queried does not exist in the cache data of the UPF, so as to execute the domain name query corresponding to the DNS query request through the DNS server, and then save the IP address corresponding to the domain name to be queried through the DNS server into the cache data of the UPF, that is, save the correspondence between the domain name to be queried and the IP address into the cache data of the UPF, thereby enriching the correspondence between the domain name and the IP address stored in the UPF cache data, making it convenient for the computer device used to implement the UPF to directly respond to more DNS query requests in the future, thereby improving the speed and efficiency of domain name queries, and reducing the processing load of the DNS server of the public network.
- FIG8 is a flowchart of a domain name query method provided by some exemplary embodiments of the present application. This embodiment is illustrated by an example in which the method is executed by a computer device for implementing the UPF shown in FIG3. The method includes at least some of the following steps:
- Step 8010 receiving an uplink data packet sent by a terminal device
- UPF receives an uplink data packet from a terminal device, the destination address of which is the address of a DNS server.
- the DNS server is located in a data network, and UPF is located in a core network, and the data network is connected to the core network.
- the terminal device expects or needs to obtain the IP address corresponding to the domain name, and carries the DNS query request in the uplink data packet and sends it to the network device.
- the DNS query request is used to request the IP address corresponding to the domain name.
- the DNS query request can also be called a DNS resolution request.
- the domain name for which the terminal device expects or needs to obtain the corresponding IP address is the domain name to be queried, or it can be understood that the domain name for which the terminal device expects or needs to query is the domain name to be queried.
- the DNS query request includes at least one of the following:
- the DNS query request is at least one of a UDP DNS query request, a TCP DNS query request and an HTTP DNS query request.
- the terminal device sends an uplink data packet to the access network device, and the access network device forwards the uplink data packet to the UPF.
- the access network device sends the uplink data packet to the core network, and after the functional entities within the core network interact, the uplink data packet is delivered to the UPF.
- Step 8020 extracting the DNS query request from the uplink data packet
- the DNS request module detects whether the uplink data packet includes a DNS query request according to at least one of a target address and a destination port of a message in the uplink data packet.
- the destination address of the message in the uplink data packet is a DNS server in the data network, or When the destination port of the message is consistent with the port of the DNS resolution protocol, the UPF detects the DNS query request in the uplink data packet.
- the DNS resolution protocol includes at least one of UDP, TCP, and HTTP.
- the data network includes at least one of the Internet, a Wide Area Network (WAN), a Local Area Network (LAN), and a Private Network.
- WAN Wide Area Network
- LAN Local Area Network
- Private Network a Private Network
- the DNS server in the data network is a public domain name resolution server, or the DNS server in the data network is a domain name resolution server in the public network, the DNS server in the data network is a domain name resolution server in the wide area network, the DNS server in the data network is a domain name resolution server in the local area network, and the DNS server in the data network is a domain name resolution server in the private network.
- the IP address of the DNS server in the data network is configured, or preconfigured, or predefined, or predefined by the communication protocol.
- Step 8030 Parse the domain name to be queried from the DNS query request
- the UPF processes DNS query requests through a domain name query model.
- the UPF inputs at least one of the information such as the domain name to be queried, the IP address of the terminal device, the time when the DNS query request is received, and the identification of the local area network to which the terminal device belongs into the domain name query model for processing, and obtains a recommended processing method for the DNS query request.
- the UPF processes the DNS query request based on the recommended processing method.
- the recommended processing method obtained by the domain name query model is that the UPF generates a DNS response, and at least subsequent steps 8040, 8050, and 8080 are executed.
- the recommended processing method obtained by the domain name query model is that the DNS server generates a DNS response, and at least subsequent steps 8060, 8070, and 8080 are executed.
- the busy time period refers to the time period when the UPF is in a busy state. This time period is predicted by the domain name query model based on historical DNS query requests. For example, the domain name query model predicts the time period when the UPF is in a busy state based on the processing time of historical DNS query requests. If the processing time of the historical DNS query request is greater than the first time threshold, it means that the UPF is in a busy state. If the processing time of the historical DNS query request is less than the first time threshold, it means that the UPF is in a non-busy state.
- the idle time period refers to the time period when the UPF is in an idle state. This time period is predicted by the domain name query model based on historical DNS query requests. For example, the domain name query model predicts the time period when the UPF is in an idle state based on the processing time of historical DNS query requests. If the processing time of the historical DNS query request is less than the second time threshold, it means that the UPF is in an idle state. If the processing time of the historical DNS query request is greater than the second time threshold, it means that the UPF is in a non-idle state.
- the first time threshold and the second time threshold may be the same or different.
- the first time threshold is predefined, or preconfigured, or determined autonomously by the UPF, or indicated by the DNS server.
- the second time threshold is predefined, or preconfigured, or determined autonomously by the UPF, or indicated by the DNS server.
- the recommended processing method obtained by the domain name query model is that the DNS server generates a DNS response, and at least the subsequent steps 8060, 8070, and 8080 are executed.
- the recommended processing method obtained by the domain name query model is that the UPF generates a DNS response, and at least the subsequent steps 8040, 8050, and 8061 are executed. 8080.
- the first identifier is predicted by the domain name query model based on historical DNS query requests.
- the domain name query model predicts the first identifier based on the processing method of historical DNS query requests (whether the DNS response corresponding to the terminal device in a certain local area network is generated by the UPF or the DNS server).
- the local area network identifier to which the terminal device belongs belongs to the first identifier, which means that the probability of the IP address corresponding to the domain name to be queried from the terminal device in this local area network existing in the cache data of the UPF is lower than the first probability threshold, that is, the cache data of the UPF is highly likely to not include the IP address corresponding to the domain name to be queried of the terminal device in the local area network.
- the second identifier is predicted by the domain name query model based on historical DNS query requests.
- the domain name query model predicts the second identifier based on the processing method of historical DNS query requests (whether the DNS response corresponding to the terminal device in a certain local area network is generated by the UPF or the DNS server).
- the local area network identifier to which the terminal device belongs belongs to the second identifier, which means that the probability that the IP address corresponding to the domain name to be queried from the terminal device in this local area network exists in the cache data of the UPF is higher than the second probability threshold, that is, the cache data of the UPF has a high probability of including the IP address corresponding to the domain name to be queried of the terminal device in the local area network.
- the first probability threshold and the second probability threshold may be the same or different.
- the first probability threshold is predefined, or preconfigured, or determined autonomously by the UPF, or indicated by the DNS server.
- the second probability threshold is predefined, or preconfigured, or determined autonomously by the UPF, or indicated by the DNS server.
- Step 8040 Query the IP address corresponding to the domain name to be queried in the cache data of the UPF;
- the cache data of UPF comes from the DNS server, and the DNS server is located in the data network.
- the cache data of UPF includes data related to the domain name and the IP address corresponding to the domain name.
- the cache data of UPF includes DNS cache data, which refers to data related to the mapping relationship between domain names and IP addresses.
- DNS cache data refers to data related to the mapping relationship between domain names and IP addresses.
- Step 8050 Generate a first DNS response, where the first DNS response includes an IP address corresponding to the domain name to be queried;
- the IP address corresponding to the domain name to be queried exists in the cache data of the UPF, or it can be understood that the mapping relationship between the domain name to be queried and the IP address exists in the cache data of the UPF.
- the DNS cache data of UPF contains the IP address corresponding to the domain name to be queried, or it can be understood that the DNS cache data of UPF contains the mapping relationship between the domain name to be queried and the IP address.
- the UPF generates a first DNS response based on the queried IP address corresponding to the domain name to be queried.
- the UPF generates a first DNS response based on the queried mapping relationship between the domain name to be queried and the IP address.
- Step 8060 Receive a second DNS response, where the second DNS response includes an IP address corresponding to the domain name to be queried;
- the IP address corresponding to the domain name to be queried does not exist in the cache data of the UPF, or it can be understood that there is no mapping relationship between the domain name to be queried and the IP address in the cache data of the UPF.
- the IP address corresponding to the domain name to be queried does not exist in the DNS cache data of the UPF, or it can be understood that there is no mapping relationship between the domain name to be queried and the IP address in the DNS cache data of the UPF.
- the UPF receives a second DNS response from the data network, wherein the source address of the second DNS response is the address of the DNS server, and the target address is the address of the terminal device.
- Step 8070 Save the IP address corresponding to the domain name to be queried included in the second DNS response into the cache data of the UPF;
- the UPF saves the mapping relationship between the domain name to be queried and the IP address included in the second DNS response into the cache data of the UPF.
- Step 8080 Send DNS response.
- the DNS response is a first DNS response, or a second DNS response.
- the DNS response includes the IP address corresponding to the domain name to be queried, or the DNS response includes a mapping relationship between the domain name to be queried and the IP address.
- the UPF sends a DNS response to the access network device, and the access network device forwards the DNS response to the terminal device.
- the method provided by the present application parses the uplink data packet sent by the terminal device to the DNS server, obtains the DNS query request therefrom, and obtains the domain name to be queried in the DNS query request.
- the domain name query corresponding to the DNS query request can be completed directly based on the cache data of the UPF, the IP address corresponding to the domain name to be queried can be obtained, and it can be fed back to the terminal device; compared with transmitting the DNS query request to the DNS server in the public network, the network communication link required in this way is shorter, the domain name query speed can be improved, and since the DNS query request does not need to reach the DNS server of the public network, the DNS query request that needs to be processed by the DNS server can be reduced, thereby reducing the processing load of the DNS server of the public network.
- the computer device used to implement the UPF can send the DNS query request to the DNS server, receive the data packet fed back by the DNS server, extract the DNS response from the data packet, parse the IP address corresponding to the domain name to be queried from the DNS response, and then store the correspondence between the domain name to be queried and the IP address in the UPF's cache data; in this way, the domain name query is ensured to be implemented reliably, and at the same time, the correspondence between the domain name and the IP address stored in the UPF cache data is enriched, which makes it easier for the computer device used to implement the UPF to directly respond to more DNS query requests in the future, thereby improving the speed and efficiency of domain name queries and reducing the processing load of the DNS server of the public network.
- the above step 8060 can be implemented as at least part of the following steps 8061, 8063, 8065, and 8067, as shown in Figure 9.
- the computer device used to implement UPF is referred to as UPF.
- Step 8061 UPF sends a DNS query request to the DNS server
- the DNS query request includes the domain name to be queried from the terminal device.
- the DNS server is located on the data network.
- the data network includes at least one of the Internet, a WAN, a LAN, and a private network.
- Step 8063 UPF receives the data packet from the DNS server
- the DNS server sends a second DNS response to the UPF.
- the DNS server sends the second DNS response to the core network, and after interaction with functional entities within the core network, the second DNS response is delivered to the UPF.
- the DNS server carries the second DNS response in a data packet and sends it to the core network.
- the DNS server sends a data packet to the core network, and after interaction with a functional entity within the core network, the data packet is delivered to the UPF.
- the data packet includes a second DNS response.
- the DNS server queries the IP address corresponding to the domain name to be queried, or queries the mapping relationship between the domain name to be queried and the IP address based on the domain name to be queried included in the received DNS query request.
- the DNS server generates a second DNS response based on the queried IP address corresponding to the domain name to be queried, or based on the mapping relationship between the queried domain name to be queried and the IP address.
- the second DNS response is generated by the DNS server.
- the DNS server is a DNS server in a data network.
- the DNS server in the data network is a public domain name resolution server, or the DNS server in the data network is a domain name resolution server in a public network, the DNS server in the data network is a domain name resolution server in a wide area network, the DNS server in the data network is a domain name resolution server in a local area network, and the DNS server in the data network is a domain name resolution server in a private network.
- Step 8065 UPF extracts the second DNS response from the data packet.
- the UPF inspects the data packet and detects the second DNS response in the data packet.
- Step 8067 UPF resolves the IP address corresponding to the domain name to be queried from the second DNS response.
- the UPF parses the second DNS response to obtain a mapping relationship between the domain name to be queried and the IP address.
- part or all of the steps performed by the UPF described above are performed by the UPF basic module in the UPF.
- the UPF basic module in the UPF is used to implement the basic functions of the UPF, or the UPF basic module in the UPF is used to implement the function of indirect processing of domain name queries, or the UPF basic module in the UPF is used to implement the function of processing domain name queries.
- some or all of the steps performed by the UPF described above are performed by the DNS module in the UPF.
- the UPF basic module in the UPF is used to implement non-basic functions of the UPF, or the UPF basic module in the UPF is used to implement functions related to processing domain name queries.
- the DNS module in the UPF includes at least one of a DNS request module, a DNS cache module, and a DNS response module.
- FIG10 is a flowchart of a domain name query method provided by some exemplary embodiments of the present application. This embodiment is illustrated by taking the method as being executed by the communication system 200 shown in FIG2 , and the computer device for implementing the UPF at least including a UPF basic module, a DNS request module, and a DNS cache module. The method includes at least some of the following steps:
- Step 1001 The terminal device sends an uplink IP packet to the base station;
- the domain name that the terminal device expects or needs to query is an Internet business domain name.
- the terminal device When the terminal device starts to access Internet services, it carries the DNS query request in the uplink IP packet and sends it to the network device.
- the source address of the uplink IP packet is the address of the terminal device, and the destination address is the address of the DNS server.
- the server is located in the data network.
- the DNS query request is used to request the IP address corresponding to the Internet service domain name.
- the DNS query request can also be called a DNS resolution request.
- the Internet service domain name is the domain name to be queried.
- the DNS query request includes at least one of the following:
- the DNS query request is at least one of a UDP DNS query request, a TCP DNS query request, and an HTTP DNS query request.
- the uplink IP packet includes a DNS query request and an IP address of a terminal device, and the DNS query request includes a domain name to be queried.
- Step 1002 The base station forwards the uplink IP packet to the UPF;
- the base station as an access network device, forwards the uplink IP packet from the terminal device to the core network, and finally, the uplink IP packet reaches the UPF in the core network.
- Step 1003 The UPF basic module receives the uplink IP packet and forwards the uplink IP packet to the DNS request module;
- Step 1004 The DNS request module detects the uplink IP packet and parses the DNS query request;
- a DNS request module (DNS Request Filter, DNS-Req Filter) is used to detect and resolve DNS query requests, and is responsible for detecting DNS query requests from an uplink IP message or an uplink IP packet, resolving the DNS query request, obtaining the domain name field in the DNS query request, and thereby obtaining the domain name to be queried in the DNS query request.
- the DNS request module detects and resolves the DNS query request in the uplink IP packet, so that the DNS query request can be processed before reaching the DNS server, eliminating the resource consumption of the communication link from the DNS request module to the DNS server, saving the processing time of the DNS query request, and improving the processing efficiency of the DNS query request.
- the DNS request module detects whether the uplink IP message or uplink IP packet includes a DNS query request based on at least one of a target address and a destination port of the uplink IP message.
- the DNS request module detects a DNS query request in the uplink IP message or the uplink IP packet.
- the DNS resolution protocol includes at least one of UDP, TCP, and HTTP.
- the target address of the uplink IP message is a DNS server on the public network (IP address is 8.8.8.8 or 114.114.114.114), and the destination port of the UDP message carried by the DNS query request is 53, then it is determined that the uplink IP message or the uplink IP packet includes a DNS query request, that is, a DNS query request is detected in the uplink IP message or the uplink IP packet.
- the IP address of the DNS server in the data network is configured, or preconfigured, or predefined, or predefined by the communication protocol.
- the IP address of the DNS server in the data network is not just the IP address of a general public DNS server (such as 8.8.8.8 or 114.114.114.114).
- Step 1005 The DNS request module sends the domain name to be queried to the DNS cache module;
- Step 1006 The DNS cache module queries the IP address corresponding to the domain name
- the DNS cache module (DNS Cache) is used to query and cache the mapping relationship between domain names and IP addresses, that is, the DNS cache module is used to query and cache the IP addresses corresponding to domain names.
- the DNS cache module receives the domain name query request sent by the DNS request module, completes the query of the mapping relationship between the domain name and the IP address, or completes the query of the IP address corresponding to the domain name.
- the domain name query request sent by the DNS request module can be considered as a domain name query request local to the UPF.
- the query of the mapping relationship between the domain name and the IP address can also be considered as the retrieval of the mapping relationship between the domain name and the IP address.
- the query of the IP address corresponding to the domain name can also be considered as the retrieval of the IP address corresponding to the domain name.
- the DNS cache module queries or retrieves the mapping relationship between the domain name and the IP address in the DNS cache data of the UPF, or the DNS cache module queries or retrieves the IP address corresponding to the domain name in the DNS cache data of the UPF.
- the cache data of UPF or the DNS cache data of UPF includes at least one of hot update cache data, timed cache data, default cache data, static cache data, and dynamic cache data, so that the cache data of UPF maintains good synchronization with changes in the DNS service in the data network, and the cache data of UPF has better timeliness.
- step 1007 if there is an IP address corresponding to the domain name to be queried in the cache data of the UPF or the DNS cache data of the UPF, or there is a mapping relationship between the domain name to be queried and the IP address, step 1007 is executed.
- Step 1007 The DNS cache module sends the IP address corresponding to the domain name to be queried to the DNS request module;
- the DNS cache module sends the queried or retrieved mapping relationship between the domain name to be queried and the IP address, or the DNS cache module sends the queried or retrieved IP address corresponding to the domain name to be queried to the DNS request module. It can also be understood that the DNS cache module returns the queried or retrieved mapping relationship between the domain name to be queried and the IP address, or the DNS cache module returns the queried or retrieved IP address corresponding to the domain name to be queried to the DNS request module.
- Step 1008 The DNS request module generates a first DNS response
- the DNS request module generates a first DNS response based on the IP address corresponding to the domain name to be queried from the DNS cache module, or the DNS request module generates a first DNS response based on the mapping relationship between the domain name to be queried and the IP address from the DNS cache module.
- the first DNS response includes the IP address corresponding to the domain name to be queried.
- the DNS request module generates a DNS response, so that the DNS query request can be processed before reaching the DNS server, eliminating the resource consumption of the communication link from the DNS request module to the DNS server, eliminating the resource consumption of the DNS server processing the DNS query request, saving the processing time of the DNS query request, and improving the processing efficiency of the DNS query request.
- Step 1009 The DNS request module sends the first DNS response to the UPF basic module
- the DNS request module sends a data packet of the first DNS response to the UPF basic module.
- Step 1010 The UPF basic module sends the first DNS response to the base station
- the UPF basic module processes the first DNS response, such as encapsulating it, and sends the processed first DNS response to the terminal device.
- the UPF basic module sends the first DNS response to an access network, such as a base station, through a tunnel, and the access network delivers the first DNS response to the terminal device.
- an access network such as a base station
- Step 1011 The base station sends a first DNS response to the terminal device.
- the terminal device accesses Internet services based on the received first DNS response through the IP address corresponding to the domain name to be queried included in the first DNS response.
- the above-mentioned UPF basic module, DNS request module, and DNS cache module implement corresponding functions through software or programs.
- the above-mentioned UPF basic module, DNS request module, and DNS cache module are regarded as part or all of a UPF as a whole.
- the method provided by the present application supports the implementation of domain name query by the UPF basic module, DNS request module and DNS cache module in the UPF.
- the method provided by the present application supports the completion of the domain name query corresponding to the DNS query request based on the cache data of the UPF before the DNS query request is sent to the DNS server of the public network, so that the required network communication link is shorter, and the domain name query speed can be improved.
- the DNS query request since the DNS query request does not need to reach the DNS server of the public network, the DNS query request that the DNS server needs to process can be reduced, thereby reducing the processing load of the DNS server of the public network.
- the method provided by the embodiment of the present application does not need to add new equipment in the core network, and can be implemented using the existing computer equipment that implements UPF. Therefore, the implementation cost of the method provided by the present application is low; in addition, the use of the existing computer equipment that implements UPF for domain name query does not need to set additional complex diversion rules, and has high compatibility and low implementation difficulty.
- FIG11 is a flowchart of a domain name query method provided by some exemplary embodiments of the present application. This embodiment is illustrated by taking the method as an example that the method is executed by a computer device for implementing the UPF shown in FIG3 , and the UPF at least includes a UPF basic module, a DNS request module, a DNS cache module, and a DNS response module. The method includes at least some of the following steps:
- Step 1101 The terminal device sends an uplink IP packet to the base station;
- the domain name that the terminal device expects or needs to query is an Internet business domain name.
- the terminal device When the terminal device starts to access the Internet service, it carries the DNS query request in the uplink IP packet and sends it to the network device.
- the source address of the uplink IP packet is the address of the terminal device, and the destination address is the address of the DNS server.
- the DNS server is located in the data network.
- the DNS query request is used to request the IP address corresponding to the Internet service domain name. Among them, the DNS query request can also be called a DNS resolution request.
- the Internet service domain name is the domain name to be queried.
- the DNS query request includes at least one of the following:
- the DNS query request is at least one of a UDP DNS query request, a TCP DNS query request, and an HTTP DNS query request.
- the uplink IP packet includes a DNS query request and the IP address of the terminal device.
- the request includes the domain name to be queried.
- Step 1102 The base station forwards the uplink IP packet to the UPF;
- the base station as an access network device, forwards the uplink IP packet from the terminal device to the core network, and finally, the uplink IP packet reaches the UPF in the core network.
- Step 1103 The UPF basic module receives the uplink IP packet and forwards the uplink IP packet to the DNS request module;
- Step 1104 The DNS request module detects the uplink IP packet and parses the DNS query request;
- the DNS request module is used to implement the detection and resolution of DNS query requests. It is responsible for detecting the DNS query request from the uplink IP message or uplink IP packet, and resolving the DNS query request to obtain the domain name field in the DNS query request, thereby obtaining the domain name to be queried in the DNS query request.
- the DNS request module detects whether the uplink IP message or uplink IP packet includes a DNS query request based on at least one of a target address and a destination port of the uplink IP message.
- the DNS request module detects a DNS query request in the uplink IP message or the uplink IP packet.
- the DNS resolution protocol includes at least one of UDP, TCP, and HTTP.
- the target address of the uplink IP message is a DNS server on the public network (IP address is 8.8.8.8 or 114.114.114.114), and the destination port of the UDP message carried by the DNS query request is 53, then it is determined that the uplink IP message or the uplink IP packet includes a DNS query request, that is, a DNS query request is detected in the uplink IP message or the uplink IP packet.
- the IP address of the DNS server in the data network is configured, or preconfigured, or predefined, or predefined by the communication protocol.
- the IP address of the DNS server in the data network is not just the IP address of a general public DNS server (such as 8.8.8.8 or 114.114.114.114).
- Step 1105 The DNS request module sends the domain name to be queried to the DNS cache module;
- Step 1106 The DNS cache module queries the IP address corresponding to the domain name
- the DNS cache module is used to query and cache the mapping relationship between the domain name and the IP address, that is, the DNS cache module is used to query and cache the IP address corresponding to the domain name.
- the DNS cache module receives a domain name query request sent by the DNS request module, queries the mapping relationship between the domain name and the IP address, or queries the IP address corresponding to the domain name.
- the domain name query request sent by the DNS request module can be considered as a domain name query request local to the UPF.
- the query of the mapping relationship between the domain name and the IP address can also be considered as the retrieval of the mapping relationship between the domain name and the IP address.
- the query of the IP address corresponding to the domain name can also be considered as the retrieval of the IP address corresponding to the domain name.
- the DNS cache module queries or retrieves the mapping relationship between the domain name and the IP address in the DNS cache data of the UPF, or the DNS cache module queries or retrieves the IP address corresponding to the domain name in the DNS cache data of the UPF.
- the cache data of UPF or the DNS cache data of UPF includes at least one of hot update cache data, timed cache data, default cache data, static cache data, and dynamic cache data, so that the cache data of UPF maintains good synchronization with changes in the DNS service in the data network, and the update of the cache data of UPF is more timely.
- the IP address corresponding to the domain name to be queried does not exist in the cache data of UPF or the DNS cache data of UPF, that is, UPF has not found the IP address corresponding to the domain name or the mapping relationship between the domain name and the IP address in the cache data of UPF or the DNS cache data of UPF, and step 1107 is executed.
- Step 1107 The DNS cache module sends query failure feedback information to the DNS request module;
- the DNS cache module if the DNS cache module does not query or retrieve the mapping relationship between the domain name to be queried and the IP address, or if the DNS cache module does not query or retrieve the IP address corresponding to the domain name to be queried, the DNS cache module does not return the domain name query result to the DNS request module, or the DNS cache module returns a query failure result to the DNS request module.
- the query failure result includes a query failure of the mapping relationship between the domain name to be queried and the IP address, or a query failure of the IP address corresponding to the domain name to be queried.
- the DNS cache module fails to query or retrieve the mapping relationship between the domain name to be queried and the IP address, or the DNS cache module fails to query or retrieve the IP address corresponding to the domain name to be queried, and sends query failure feedback information to the DNS request module.
- the query failure feedback information is used to indicate that the DNS cache module query failed, including: the DNS cache module fails to query the mapping relationship between the domain name to be queried and the IP address, the DNS cache module fails to query the IP address corresponding to the domain name to be queried, the DNS cache module does not query the mapping relationship between the domain name to be queried and the IP address in the cache data of the UPF, the DNS cache module does not query the IP address corresponding to the domain name to be queried in the cache data of the UPF, or the DNS cache module does not query the mapping relationship between the domain name to be queried and the IP address in the DNS cache data, or the DNS cache module does not query the IP address corresponding to the domain name to be queried in the DNS cache data.
- Step 1108 The DNS request module sends a DNS query request to the UPF basic module
- the DNS request module receives information from the DNS cache module indicating a query failure result or a query failure feedback information, and the DNS request module sends a DNS query request to the UPF basic module.
- the DNS request module does not receive the mapping relationship between the domain name to be queried and the IP address sent by the DNS cache module within the first time period, or the DNS request module does not receive the IP address corresponding to the domain name to be queried sent by the DNS cache module within the first time period, and the DNS request module sends a DNS query request to the UPF basic module.
- the first duration is configured, or preconfigured, or predefined.
- Step 1109 The UPF basic module sends a DNS query request to the data network
- the UPF base module sends a DNS query request to a DNS server in the data network.
- Step 1110 The UPF basic module receives the second DNS response
- the second DNS response includes the IP address corresponding to the domain name to be queried, which comes from the data network.
- the source address of the second DNS response is the address of the DNS server, and the target address is the address of the terminal device.
- the second DNS response is generated by a DNS server in the data network.
- the data network carries the second DNS response in a downstream IP packet and sends it.
- the source address of the downstream IP packet is the address of the DNS server, and the destination address is the address of the terminal device.
- the data network sends a downlink IP packet including (or carrying) a second DNS response to the core network.
- the downlink IP packet including (or carrying) the second DNS response reaches the UPF in the core network.
- the data network includes at least one of the Internet, a WAN, a LAN, and a private network.
- the data network queries the IP address corresponding to the domain name to be queried, or queries the mapping relationship between the domain name to be queried and the IP address based on the domain name to be queried included in the received DNS query request.
- the data network generates a second DNS response based on the queried IP address corresponding to the domain name to be queried, or based on a mapping relationship between the queried domain name to be queried and the IP address.
- the DNS server in the data network is a public domain name resolution server, or the DNS server in the data network is a domain name resolution server in a public network, the DNS server in the data network is a domain name resolution server in a wide area network, the DNS server in the data network is a domain name resolution server in a local area network, and the DNS server in the data network is a domain name resolution server in a private network.
- Step 1111 The UPF basic module sends the second DNS response to the DNS response module
- the UPF basic module sends a downstream IP packet including (or carrying) the second DNS response to the DNS response module, or the UPF basic module sends a downstream IP packet including (or carrying) the second DNS response to the DNS response module.
- Step 1112 The DNS response module detects the second DNS response and parses the second DNS response
- a DNS response module (DNS Response Filter, DNS-Resq Filter) is used to implement detection and resolution of DNS responses.
- the DNS response module detects whether the downstream IP message or downstream IP packet includes a DNS response based on at least one of a source address and a source port of the downstream IP message.
- the DNS response module detects a DNS response in the downstream IP message or the downstream IP packet.
- the DNS resolution protocol includes at least one of UDP, TCP, and HTTP.
- the source address of the downstream IP message is a DNS server on the public network (IP address is 8.8.8.8 or 114.114.114.114), and the source port of the UDP message carried by the DNS response is 53, then it is determined that the downstream IP message or downstream IP packet includes a DNS response, that is, the DNS response is detected in the downstream IP message or downstream IP packet.
- the IP address of the DNS server in the data network is configured, or preconfigured, or predefined, or predefined by the communication protocol.
- the IP address of the DNS server in the data network is not just the IP address of a general public DNS server (such as 8.8.8.8 or 114.114.114.114).
- the DNS response module parses the second DNS response to obtain the domain name in the DNS response and the IP address corresponding to the domain name, or obtains the mapping relationship between the domain name in the DNS response and the IP address.
- the domain name in the DNS response includes the Internet service domain name in step 1101.
- Step 1113 The DNS response module sends the IP address corresponding to the domain name to the DNS cache module;
- the DNS response module sends the resolved domain name and the IP address corresponding to the domain name, or the DNS response module sends the mapping relationship between the resolved domain name and the IP address to the DNS cache module.
- Step 1114 The DNS cache module stores the IP address corresponding to the domain name
- the DNS cache module stores the received domain name and the IP address corresponding to the domain name, or the DNS The cache module stores the mapping relationship between the received domain name and the IP address.
- the DNS cache module saves the received domain name and the IP address corresponding to the domain name, or the mapping relationship between the domain name and the IP address, into the cache data of the UPF.
- the DNS cache module saves the received domain name and the IP address corresponding to the domain name, or the mapping relationship between the domain name and the IP address, into the DNS cache data.
- the DNS cache module saves the IP address corresponding to the domain name or the mapping relationship between the domain name and the IP address, which can be considered as saving the IP address corresponding to the domain name or the mapping relationship between the domain name and the IP address locally in the UPF.
- the DNS cache module saves the mapping relationship between the domain name and the IP address in the second DNS response in the cache data of the UPF, and supports processing the DNS query request through the UPF request module when the DNS query request is received in the future, so that the DNS query request can be processed before reaching the DNS server, eliminating the resource consumption of the communication link from the DNS request module to the DNS server, eliminating the resource consumption of the DNS server processing the DNS query request, saving the processing time of the DNS query request, and improving the processing efficiency of the DNS query request.
- Step 1115 The UPF basic module sends the second DNS response to the base station
- the second DNS response includes the IP address corresponding to the domain name to be queried.
- the UPF basic module processes the second DNS response, such as encapsulating it, and sends the processed second DNS response to the terminal device.
- the UPF basic module sends the second DNS response to the access network, such as a base station, through a tunnel, and the access network delivers the second DNS response to the terminal device.
- the access network such as a base station
- Step 1116 The base station sends a second DNS response to the terminal device.
- the terminal device accesses Internet services based on the received second DNS response through the IP address corresponding to the domain name to be queried included in the second DNS response.
- the above-mentioned UPF basic module, DNS request module, and DNS cache module implement corresponding functions through software or programs.
- the above-mentioned UPF basic module, DNS request module, DNS cache module, and DNS response module are regarded as part or all of a UPF as a whole.
- the method provided by the present application supports the UPF basic module, DNS request module, DNS cache module and DNS response module in the UPF to perform domain name query and return the queried IP address to the terminal device.
- the method provided by the present application supports the completion of the domain name query corresponding to the DNS query request based on the cache data of the UPF before the DNS query request is sent to the DNS server of the public network, so that the required network communication link is shorter, and the domain name query speed can be improved.
- the DNS query request since the DNS query request does not need to reach the DNS server of the public network, the DNS query request that the DNS server needs to process can be reduced, thereby reducing the processing load of the DNS server of the public network.
- the method provided by the embodiment of the present application does not need to add new equipment in the core network, and can be implemented using the existing computer equipment that implements UPF. Therefore, the implementation cost of the method provided by the present application is low; in addition, the use of the existing computer equipment that implements UPF for domain name query does not need to set additional complex diversion rules, and has high compatibility and low implementation difficulty.
- the method provided in the present application supports the computer device used to implement UPF to save the IP address corresponding to the domain name from the data network to the cache data of UPF, which is beneficial to the subsequent processing of DNS query requests by UPF, and further Improved the efficiency and speed of domain name query.
- FIG12 is a flow chart of a domain name query method provided by some exemplary embodiments of the present application. This embodiment is illustrated by taking the method executed by the terminal device shown in FIG3 as an example. The method includes at least some of the following steps:
- Step 122 Send a DNS query request
- a terminal device sends a DNS query request carrying a domain name to be queried to a network device, which is an access network device and/or a core network device.
- the DNS query request includes at least one of the following:
- the DNS query request is at least one of a UDP DNS query request, a TCP DNS query request, and an HTTP DNS query request.
- Step 124 Receive a DNS response
- the terminal device receives a DNS response from a network device, where the DNS response carries an IP address corresponding to the domain name to be queried.
- the terminal device receives a DNS response from the access network, and the access network receives a DNS response from the core network, where the DNS response carries an IP address corresponding to the domain name to be queried.
- the DNS response comes from the core network UPF.
- the DNS response is generated by the core network UPF, or the DNS response is generated by a DNS server in the data network.
- the terminal device parses the DNS response from the network device and obtains the IP address corresponding to the domain name to be queried in the DNS response.
- Step 126 Access the IP address.
- the terminal device accesses the IP address or the Internet service corresponding to the IP address based on the received IP address corresponding to the domain name to be queried.
- the method provided in the embodiment of the present application supports the terminal device to obtain the DNS response from the UPF.
- the method provided in the present application supports the domain name query corresponding to the DNS query request based on the cache data of the UPF before the DNS query request is sent to the DNS server of the public network.
- the required network communication link is shorter, which can improve the domain name query speed.
- the DNS query request since the DNS query request does not need to reach the DNS server of the public network, the DNS query request that the DNS server needs to process can be reduced, thereby reducing the processing load of the DNS server of the public network.
- the method provided in the embodiment of the present application does not need to add new equipment in the core network, and can be implemented using the existing computer equipment that implements the UPF. Therefore, the implementation cost of the method provided in the present application is low; in addition, the use of the existing computer equipment that implements the UPF for domain name query does not need to set additional complex diversion rules, and has high compatibility and low implementation difficulty.
- Fig. 13 shows a schematic diagram of the structure of a domain name query device provided by some exemplary embodiments of the present application.
- the device includes: at least part of a receiving module 132, a processing module 134, and a sending module 136.
- the receiving module 132 is used to receive a DNS query request from a terminal device, wherein the DNS query request includes a domain name to be queried.
- the processing module 134 is used to determine the IP address corresponding to the domain name to be queried based on the cache data of the device.
- the sending module 136 is used to send a DNS response to the terminal device, where the DNS response includes the IP address corresponding to the domain name to be queried.
- the processing module 134 is further configured to generate the DNS response according to the IP address corresponding to the domain name to be queried when the IP address corresponding to the domain name to be queried exists in the cache data of the device.
- the device further includes a sending module 136, and the sending module 136 is used to send the DNS query request to the DNS server when the IP address corresponding to the domain name to be queried does not exist in the cache data of the device.
- the receiving module 132 is further configured to receive a DNS response from the DNS server;
- the DNS server is located in the data network, the UPF is located in the core network, and the data network is connected to the core network.
- the processing module 134 is further configured to save the IP address corresponding to the domain name to be queried included in the DNS response into cache data of the device.
- the receiving module 132 is further used to receive a data packet from the DNS server, wherein the destination address of the data packet is the address of the terminal device.
- the processing module 134 is further configured to extract the DNS response from the data packet.
- the processing module 134 is further configured to resolve the IP address corresponding to the domain name to be queried in the DNS response.
- the receiving module 132 is further used to receive an uplink data packet sent by the terminal device, and the destination address of the uplink data packet is the address of the DNS server.
- the processing module 134 is further configured to extract the DNS query request from the uplink data packet.
- the processing module 134 is further used to parse the domain name to be queried from the DNS query request;
- the DNS server is located in the data network, the UPF is located in the core network, and the data network is connected to the core network.
- the cache data of the UPF comes from a DNS server, which is located in a data network.
- the cache data of the UPF includes at least one of the following:
- the DNS query request includes at least one of the following:
- the device provided by the present application supports completing the domain name query corresponding to the DNS query request based on the cached data of the UPF before the DNS query request is sent to the DNS server of the public network, so that the required network communication link is shorter, and the domain name query speed can be improved.
- the DNS query request since the DNS query request does not need to reach the DNS server of the public network, the DNS query request that the DNS server needs to process can be reduced, thereby reducing the processing load of the DNS server of the public network.
- the device provided by the embodiment of the present application does not need to add new equipment in the core network, and can be implemented using the existing computer equipment that implements the UPF. Therefore, the implementation cost of the method provided by the present application is low; in addition, the use of the existing computer equipment that implements the UPF for domain name query does not need to set additional complex diversion rules, and has high compatibility and low implementation difficulty.
- the device provided in the above embodiment is only illustrated by the division of the above functional modules in domain name query.
- the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
- the specific implementation process is detailed in the method embodiment, which will not be repeated here.
- FIG14 shows a block diagram of a communication device 1400 provided in some exemplary embodiments of the present application.
- the communication device 1400 includes: a processor 1401 , a receiver 1402 , a transmitter 1403 , a memory 1404 and a bus 1405 .
- the processor 1401 includes one or more processing cores, and the processor 1401 executes various functional applications and information processing by running software programs and modules. In some embodiments, the processor 1401 can be used to implement the functions and steps of the processing module 134 described above.
- Receiver 1402 and transmitter 1403 can be implemented as a communication component, which can be a communication chip.
- receiver 1402 can be used to implement the functions and steps of receiving module 132 as described above.
- transmitter 1403 can be used to implement the functions and steps of sending module 136 as described above.
- the memory 1404 is connected to the processor 1401 via a bus 1405.
- the memory 1404 may be used to store at least one instruction, and the processor 1401 may be used to execute the at least one instruction to implement each step in the above method embodiment.
- memory 1404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof.
- Volatile or non-volatile storage devices include but are not limited to: magnetic disks or optical disks, Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Static Random-Access Memory (SRAM), Read-Only Memory (ROM), magnetic storage, flash memory, and Programmable Read-Only Memory (PROM).
- the receiver 1402 receives signals/data independently, or the processor 1401 controls the receiver 1402 receives signals/data, or the processor 1401 requests the receiver 1402 to receive signals/data, or the processor 1401 cooperates with the receiver 1402 to receive signals/data.
- the transmitter 1403 independently sends signals/data, or the processor 1401 controls the transmitter 1403 to send signals/data, or the processor 1401 requests the transmitter 1403 to send signals/data, or the processor 1401 cooperates with the transmitter 1403 to send signals/data.
- a computer-readable storage medium is further provided, wherein at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor, and the computer-readable storage medium implements the domain name query method provided by the above-mentioned various method embodiments.
- a chip is further provided.
- the chip includes a programmable logic circuit and/or program instructions. When the chip runs on a communication device, it is used to implement the domain name query method provided by the above-mentioned various method embodiments.
- a computer program product is further provided.
- the computer program product is executed on a processor of a computer device, the computer device executes the above-mentioned domain name query method.
- a computer program is further provided.
- the computer program includes computer instructions.
- a processor of a computer device executes the computer instructions, so that the computer device executes the above-mentioned domain name query method.
- Computer-readable media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another.
- the storage medium can be any available medium that a general or special-purpose computer can access.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
Claims (13)
- 一种域名查询方法,所述方法由计算机设备执行,所述方法包括:接收终端设备的域名系统DNS查询请求,所述DNS查询请求中包括待查询域名;基于用户面功能UPF的缓存数据确定所述待查询域名对应的互联网协议IP地址;向所述终端设备发送DNS响应,所述DNS响应中包括所述待查询域名对应的IP地址。
- 根据权利要求1所述的方法,所述基于UPF的缓存数据确定所述待查询域名对应的互联网协议IP地址,包括:在所述UPF的缓存数据中存在所述待查询域名对应的IP地址的情况下,根据所述待查询域名对应的IP地址生成所述DNS响应。
- 根据权利要求1或2所述的方法,所述基于UPF的缓存数据确定所述待查询域名对应的互联网协议IP地址,包括:在所述UPF的缓存数据中不存在所述待查询域名对应的IP地址的情况下,向DNS服务器发送所述DNS查询请求;接收来自所述DNS服务器的所述DNS响应;其中,所述DNS服务器位于数据网络,所述UPF位于核心网,所述数据网络与所述核心网相连。
- 根据权利要求3所述的方法,所述方法还包括:将所述DNS响应中的所述待查询域名对应的IP地址,保存至所述UPF的缓存数据中。
- 根据权利要求3或4所述的方法,所述接收来自所述DNS服务器的所述DNS响应,包括:接收来自所述DNS服务器的数据包,所述数据包的目标地址是所述终端设备的地址;在所述数据包中提取所述DNS响应;所述方法还包括:从所述DNS响应中,解析出所述待查询域名对应的IP地址。
- 根据权利要求1至5任一所述的方法,所述接收终端设备的DNS查询请求,包括:接收所述终端设备发送的上行数据包,所述上行数据包的目标地址是DNS服务器的地址;在所述上行数据包中提取所述DNS查询请求;所述方法还包括:从所述DNS查询请求,解析出所述待查询域名;其中,所述DNS服务器位于数据网络,所述UPF位于核心网,所述数据网络与所述核心网相连。
- 根据权利要求1至6任一所述的方法,所述UPF的缓存数据来自DNS服务器,所述DNS服务器位于数据网络。
- 根据权利要求1至7任一所述的方法,所述DNS查询请求包括如下至少之一:基于用户数据报协议UDP的DNS查询请求;基于传输控制协议TCP的DNS查询请求;基于超文本传输协议HTTP的DNS查询请求。
- 一种域名查询装置,所述装置包括:接收模块,用于接收来自终端设备的域名系统DNS查询请求,所述DNS查询请求中包括待查询域名;处理模块,用于在所述装置的缓存数据中查询所述待查询域名对应的互联网协议IP地址;发送模块,用于向所述终端设备发送DNS响应,所述DNS响应中包括所述待查询域名对应的IP地址。
- 一种计算机设备,所述计算机设备包括:处理器和存储器,所述存储器存储有计算机程序,所述计算机程序由所述处理器加载并执行,所述计算机设备实现如权利要求1至8任一所述的域名查询方法。
- 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序由处理器加载并执行,所述计算机可读存储介质实现如权利要求1至8任一所述的域名查询方法。
- 一种计算机程序产品,所述计算机程序产品存储有计算机程序,所述计算机程序由处理器加载并执行,所述计算机程序产品实现如权利要求1至8任一所述的域名查询方法。
- 一种芯片,所述芯片包括可编程逻辑电路和/或程序指令,安装有所述芯片的计算机设备用于实现如权利要求1至8任一所述的域名查询方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2025514187A JP2025533410A (ja) | 2022-11-23 | 2023-10-11 | ドメイン名問合せ方法、装置、デバイス、コンピュータプログラム及びチップ |
| US18/908,676 US20250030658A1 (en) | 2022-11-23 | 2024-10-07 | Domain name query method and apparatus, device, and storage medium |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211478295.4A CN118075231A (zh) | 2022-11-23 | 2022-11-23 | 域名查询方法、装置、设备及存储介质 |
| CN202211478295.4 | 2022-11-23 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US18/908,676 Continuation US20250030658A1 (en) | 2022-11-23 | 2024-10-07 | Domain name query method and apparatus, device, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2024109369A1 true WO2024109369A1 (zh) | 2024-05-30 |
Family
ID=91094261
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/123894 Ceased WO2024109369A1 (zh) | 2022-11-23 | 2023-10-11 | 域名查询方法、装置、设备及存储介质 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US20250030658A1 (zh) |
| JP (1) | JP2025533410A (zh) |
| CN (1) | CN118075231A (zh) |
| WO (1) | WO2024109369A1 (zh) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110995881A (zh) * | 2019-11-29 | 2020-04-10 | 南京亚信智网科技有限公司 | 一种域名存储方法及装置 |
| CN113301077A (zh) * | 2020-05-20 | 2021-08-24 | 阿里巴巴集团控股有限公司 | 云计算服务部署与分流方法、系统、设备及存储介质 |
| CN113382031A (zh) * | 2020-03-10 | 2021-09-10 | 华为技术有限公司 | 一种域名查询方法及装置 |
| US20210352042A1 (en) * | 2019-05-10 | 2021-11-11 | Tencent Technology (Shenzhen) Company Limited | Method, apparatus, and system for selecting mec node |
| EP3979601A2 (en) * | 2020-10-01 | 2022-04-06 | Nokia Technologies Oy | Apparatus, methods, and computer programs |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11140695B1 (en) * | 2017-11-09 | 2021-10-05 | Verana Networks, Inc. | Wireless mesh network |
| US11218438B2 (en) * | 2019-04-12 | 2022-01-04 | Huawei Technologies Co., Ltd. | System, apparatus and method to support data server selection |
| CN112422701B (zh) * | 2019-08-20 | 2022-05-24 | 华为技术有限公司 | 域名系统查询的方法和通信装置 |
| US11356404B2 (en) * | 2020-03-04 | 2022-06-07 | Qualcomm Incorporated | Domain name system (DNS) override for edge computing |
-
2022
- 2022-11-23 CN CN202211478295.4A patent/CN118075231A/zh active Pending
-
2023
- 2023-10-11 WO PCT/CN2023/123894 patent/WO2024109369A1/zh not_active Ceased
- 2023-10-11 JP JP2025514187A patent/JP2025533410A/ja active Pending
-
2024
- 2024-10-07 US US18/908,676 patent/US20250030658A1/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20210352042A1 (en) * | 2019-05-10 | 2021-11-11 | Tencent Technology (Shenzhen) Company Limited | Method, apparatus, and system for selecting mec node |
| CN110995881A (zh) * | 2019-11-29 | 2020-04-10 | 南京亚信智网科技有限公司 | 一种域名存储方法及装置 |
| CN113382031A (zh) * | 2020-03-10 | 2021-09-10 | 华为技术有限公司 | 一种域名查询方法及装置 |
| CN113301077A (zh) * | 2020-05-20 | 2021-08-24 | 阿里巴巴集团控股有限公司 | 云计算服务部署与分流方法、系统、设备及存储介质 |
| EP3979601A2 (en) * | 2020-10-01 | 2022-04-06 | Nokia Technologies Oy | Apparatus, methods, and computer programs |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118075231A (zh) | 2024-05-24 |
| JP2025533410A (ja) | 2025-10-07 |
| US20250030658A1 (en) | 2025-01-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP4213577B1 (en) | Address information sending method and apparatus, address information obtaining method and apparatus, device, and medium | |
| US12532195B2 (en) | Communication method and apparatus | |
| US10912018B2 (en) | PDU type setting method, UE policy setting method, and related entity | |
| EP4280567B1 (en) | Communication method and device | |
| US10848569B2 (en) | Session processing method and related device | |
| US11317450B2 (en) | Wireless communication method and network device | |
| WO2011137792A1 (zh) | 一种推送设备间的协作方法及装置 | |
| KR102942658B1 (ko) | 네트워크 기능 등록 방법, 발견 방법, 장치, 장비 및 매체 | |
| US11917718B2 (en) | Local area network communication management method and apparatus | |
| US20250365578A1 (en) | Communication method and communication apparatus | |
| US12133149B2 (en) | Service invocation method and network device | |
| CN115843434B (zh) | 网元发现方法、装置、设备及存储介质 | |
| US20240267829A1 (en) | Communication method and apparatus | |
| WO2024109369A1 (zh) | 域名查询方法、装置、设备及存储介质 | |
| JP7651722B2 (ja) | 通信方法および通信装置 | |
| CN115209522B (zh) | 网络功能注册方法、发现方法、装置、设备及介质 | |
| US12507142B2 (en) | Dynamic switching between a home network and a roaming network based on data connectivity in the home network | |
| US20250267612A1 (en) | Communication method, communication apparatus, and communication system | |
| US20250150955A1 (en) | Methods, apparatuses, and computer program products for enhancing local breakout sessions in roaming scenarios | |
| WO2024022370A1 (zh) | 信息获取和发送方法、服务器访问和会话建立方法及设备 | |
| CN121284009A (zh) | 一种ims注册方法、装置、设备及存储介质 | |
| WO2025237114A1 (zh) | 一种通信方法、通信装置及通信系统 | |
| WO2026067378A1 (zh) | 通信方法、装置及设备 | |
| CN121173484A (zh) | 一种用户认证和激活方法、设备及系统 | |
| HK40075074A (zh) | 服务调用方法及网络设备 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23893461 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2025514187 Country of ref document: JP |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 23893461 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06.10.2025) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 23893461 Country of ref document: EP Kind code of ref document: A1 |